| 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 | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <http://www.imagemagick.org>. |
| 6 | # |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 7 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 11 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18 | |
| 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35 | fi |
| 36 | |
| 37 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | 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] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | 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] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 62 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
| 84 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
| 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 94 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 95 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS |
| 105 | |
| 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
| 114 | $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] | 115 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | fi |
| 117 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
| 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
| 135 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 177 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 178 | |
| 179 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 180 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 183 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 184 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 185 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 186 | if (eval "$as_required") 2>/dev/null; then : |
| 187 | as_have_required=yes |
| 188 | else |
| 189 | as_have_required=no |
| 190 | fi |
| 191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 192 | |
| 193 | else |
| 194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 195 | as_found=false |
| 196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 197 | do |
| 198 | IFS=$as_save_IFS |
| 199 | test -z "$as_dir" && as_dir=. |
| 200 | as_found=: |
| 201 | case $as_dir in #( |
| 202 | /*) |
| 203 | for as_base in sh bash ksh sh5; do |
| 204 | # Try only shells that exist, to save several forks. |
| 205 | as_shell=$as_dir/$as_base |
| 206 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 209 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 210 | break 2 |
| 211 | fi |
| 212 | fi |
| 213 | done;; |
| 214 | esac |
| 215 | as_found=false |
| 216 | done |
| 217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 218 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 219 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 220 | fi; } |
| 221 | IFS=$as_save_IFS |
| 222 | |
| 223 | |
| 224 | if test "x$CONFIG_SHELL" != x; then : |
| 225 | # We cannot yet assume a decent shell, so we have to provide a |
| 226 | # neutralization value for shells without unset; and this also |
| 227 | # works around shells that cannot unset nonexistent variables. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 228 | # Preserve -v and -x to the replacement shell. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 229 | BASH_ENV=/dev/null |
| 230 | ENV=/dev/null |
| 231 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 232 | export CONFIG_SHELL |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 233 | case $- in # (((( |
| 234 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 235 | *v* ) as_opts=-v ;; |
| 236 | *x* ) as_opts=-x ;; |
| 237 | * ) as_opts= ;; |
| 238 | esac |
| 239 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 240 | fi |
| 241 | |
| 242 | if test x$as_have_required = xno; then : |
| 243 | $as_echo "$0: This script requires a shell more modern than all" |
| 244 | $as_echo "$0: the shells that I found on your system." |
| 245 | if test x${ZSH_VERSION+set} = xset ; then |
| 246 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 247 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 248 | else |
| 249 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 250 | $0: http://www.imagemagick.org about your system, including |
| 251 | $0: any error possibly output before this message. Then |
| 252 | $0: install a modern shell, or manually run the script |
| 253 | $0: under such a shell if you do have one." |
| 254 | fi |
| 255 | exit 1 |
| 256 | fi |
| 257 | fi |
| 258 | fi |
| 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 260 | export SHELL |
| 261 | # Unset more variables known to interfere with behavior of common tools. |
| 262 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 263 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 264 | |
| 265 | ## --------------------- ## |
| 266 | ## M4sh Shell Functions. ## |
| 267 | ## --------------------- ## |
| 268 | # as_fn_unset VAR |
| 269 | # --------------- |
| 270 | # Portably unset VAR. |
| 271 | as_fn_unset () |
| 272 | { |
| 273 | { eval $1=; unset $1;} |
| 274 | } |
| 275 | as_unset=as_fn_unset |
| 276 | |
| 277 | # as_fn_set_status STATUS |
| 278 | # ----------------------- |
| 279 | # Set $? to STATUS, without forking. |
| 280 | as_fn_set_status () |
| 281 | { |
| 282 | return $1 |
| 283 | } # as_fn_set_status |
| 284 | |
| 285 | # as_fn_exit STATUS |
| 286 | # ----------------- |
| 287 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 288 | as_fn_exit () |
| 289 | { |
| 290 | set +e |
| 291 | as_fn_set_status $1 |
| 292 | exit $1 |
| 293 | } # as_fn_exit |
| 294 | |
| 295 | # as_fn_mkdir_p |
| 296 | # ------------- |
| 297 | # Create "$as_dir" as a directory, including parents if necessary. |
| 298 | as_fn_mkdir_p () |
| 299 | { |
| 300 | |
| 301 | case $as_dir in #( |
| 302 | -*) as_dir=./$as_dir;; |
| 303 | esac |
| 304 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 305 | as_dirs= |
| 306 | while :; do |
| 307 | case $as_dir in #( |
| 308 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 309 | *) as_qdir=$as_dir;; |
| 310 | esac |
| 311 | as_dirs="'$as_qdir' $as_dirs" |
| 312 | as_dir=`$as_dirname -- "$as_dir" || |
| 313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 314 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 315 | X"$as_dir" : 'X\(//\)$' \| \ |
| 316 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 317 | $as_echo X"$as_dir" | |
| 318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 319 | s//\1/ |
| 320 | q |
| 321 | } |
| 322 | /^X\(\/\/\)[^/].*/{ |
| 323 | s//\1/ |
| 324 | q |
| 325 | } |
| 326 | /^X\(\/\/\)$/{ |
| 327 | s//\1/ |
| 328 | q |
| 329 | } |
| 330 | /^X\(\/\).*/{ |
| 331 | s//\1/ |
| 332 | q |
| 333 | } |
| 334 | s/.*/./; q'` |
| 335 | test -d "$as_dir" && break |
| 336 | done |
| 337 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 338 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 339 | |
| 340 | |
| 341 | } # as_fn_mkdir_p |
| 342 | # as_fn_append VAR VALUE |
| 343 | # ---------------------- |
| 344 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 345 | # advantage of any shell optimizations that allow amortized linear growth over |
| 346 | # repeated appends, instead of the typical quadratic growth present in naive |
| 347 | # implementations. |
| 348 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 349 | eval 'as_fn_append () |
| 350 | { |
| 351 | eval $1+=\$2 |
| 352 | }' |
| 353 | else |
| 354 | as_fn_append () |
| 355 | { |
| 356 | eval $1=\$$1\$2 |
| 357 | } |
| 358 | fi # as_fn_append |
| 359 | |
| 360 | # as_fn_arith ARG... |
| 361 | # ------------------ |
| 362 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 363 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 364 | # must be portable across $(()) and expr. |
| 365 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 366 | eval 'as_fn_arith () |
| 367 | { |
| 368 | as_val=$(( $* )) |
| 369 | }' |
| 370 | else |
| 371 | as_fn_arith () |
| 372 | { |
| 373 | as_val=`expr "$@" || test $? -eq 1` |
| 374 | } |
| 375 | fi # as_fn_arith |
| 376 | |
| 377 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 378 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 379 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 380 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 381 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 382 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 383 | as_fn_error () |
| 384 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 385 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 386 | if test "$4"; then |
| 387 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 388 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 389 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 390 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 391 | as_fn_exit $as_status |
| 392 | } # as_fn_error |
| 393 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 394 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 395 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 396 | as_expr=expr |
| 397 | else |
| 398 | as_expr=false |
| 399 | fi |
| 400 | |
| 401 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 402 | as_basename=basename |
| 403 | else |
| 404 | as_basename=false |
| 405 | fi |
| 406 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 407 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 408 | as_dirname=dirname |
| 409 | else |
| 410 | as_dirname=false |
| 411 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 412 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 413 | as_me=`$as_basename -- "$0" || |
| 414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 415 | X"$0" : 'X\(//\)$' \| \ |
| 416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 417 | $as_echo X/"$0" | |
| 418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | /^X\/\(\/\/\)$/{ |
| 423 | s//\1/ |
| 424 | q |
| 425 | } |
| 426 | /^X\/\(\/\).*/{ |
| 427 | s//\1/ |
| 428 | q |
| 429 | } |
| 430 | s/.*/./; q'` |
| 431 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 432 | # Avoid depending upon Character Ranges. |
| 433 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 434 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 435 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 436 | as_cr_digits='0123456789' |
| 437 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 438 | |
| 439 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 440 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 441 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 442 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 443 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 444 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 445 | sed -n ' |
| 446 | p |
| 447 | /[$]LINENO/= |
| 448 | ' <$as_myself | |
| 449 | sed ' |
| 450 | s/[$]LINENO.*/&-/ |
| 451 | t lineno |
| 452 | b |
| 453 | :lineno |
| 454 | N |
| 455 | :loop |
| 456 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 457 | t loop |
| 458 | s/-\n.*// |
| 459 | ' >$as_me.lineno && |
| 460 | chmod +x "$as_me.lineno" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 461 | { $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] | 462 | |
| 463 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 464 | # (the dirname of $[0] is not the place where we might find the |
| 465 | # original and so on. Autoconf is especially sensitive to this). |
| 466 | . "./$as_me.lineno" |
| 467 | # Exit status is that of the last command. |
| 468 | exit |
| 469 | } |
| 470 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 471 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 472 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 473 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 474 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 475 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 476 | xy) ECHO_C='\c';; |
| 477 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 478 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 479 | esac;; |
| 480 | *) |
| 481 | ECHO_N='-n';; |
| 482 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 483 | |
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
| 485 | if test -d conf$$.dir; then |
| 486 | rm -f conf$$.dir/conf$$.file |
| 487 | else |
| 488 | rm -f conf$$.dir |
| 489 | mkdir conf$$.dir 2>/dev/null |
| 490 | fi |
| 491 | if (echo >conf$$.file) 2>/dev/null; then |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s='ln -s' |
| 494 | # ... but there are two gotchas: |
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 497 | # In both cases, we have to default to `cp -p'. |
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 499 | as_ln_s='cp -p' |
| 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s=ln |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
| 505 | else |
| 506 | as_ln_s='cp -p' |
| 507 | fi |
| 508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 509 | rmdir conf$$.dir 2>/dev/null |
| 510 | |
| 511 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 512 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 513 | else |
| 514 | test -d ./-p && rmdir ./-p |
| 515 | as_mkdir_p=false |
| 516 | fi |
| 517 | |
| 518 | if test -x / >/dev/null 2>&1; then |
| 519 | as_test_x='test -x' |
| 520 | else |
| 521 | if ls -dL / >/dev/null 2>&1; then |
| 522 | as_ls_L_option=L |
| 523 | else |
| 524 | as_ls_L_option= |
| 525 | fi |
| 526 | as_test_x=' |
| 527 | eval sh -c '\'' |
| 528 | if test -d "$1"; then |
| 529 | test -d "$1/."; |
| 530 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 531 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 532 | -*)set "./$1";; |
| 533 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 534 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 535 | ???[sx]*):;;*)false;;esac;fi |
| 536 | '\'' sh |
| 537 | ' |
| 538 | fi |
| 539 | as_executable_p=$as_test_x |
| 540 | |
| 541 | # Sed expression to map a string onto a valid CPP name. |
| 542 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 543 | |
| 544 | # Sed expression to map a string onto a valid variable name. |
| 545 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 547 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 548 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 549 | lt_ltdl_dir='ltdl' |
| 550 | |
| 551 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" |
| 552 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 553 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 554 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 555 | exec 6>&1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 558 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
| 562 | # |
| 563 | # Initializations. |
| 564 | # |
| 565 | ac_default_prefix=/usr/local |
| 566 | ac_clean_files= |
| 567 | ac_config_libobj_dir=. |
| 568 | LIBOBJS= |
| 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 573 | |
| 574 | # Identity of this package. |
| 575 | PACKAGE_NAME='ImageMagick' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 576 | PACKAGE_TARNAME='ImageMagick' |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 577 | PACKAGE_VERSION='7.0.0-0' |
| 578 | PACKAGE_STRING='ImageMagick 7.0.0-0' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 579 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 580 | PACKAGE_URL='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 581 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 582 | ac_unique_file="MagickCore/MagickCore.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 583 | ac_config_libobj_dir=ltdl |
| 584 | # Factoring default headers for most tests. |
| 585 | ac_includes_default="\ |
| 586 | #include <stdio.h> |
| 587 | #ifdef HAVE_SYS_TYPES_H |
| 588 | # include <sys/types.h> |
| 589 | #endif |
| 590 | #ifdef HAVE_SYS_STAT_H |
| 591 | # include <sys/stat.h> |
| 592 | #endif |
| 593 | #ifdef STDC_HEADERS |
| 594 | # include <stdlib.h> |
| 595 | # include <stddef.h> |
| 596 | #else |
| 597 | # ifdef HAVE_STDLIB_H |
| 598 | # include <stdlib.h> |
| 599 | # endif |
| 600 | #endif |
| 601 | #ifdef HAVE_STRING_H |
| 602 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 603 | # include <memory.h> |
| 604 | # endif |
| 605 | # include <string.h> |
| 606 | #endif |
| 607 | #ifdef HAVE_STRINGS_H |
| 608 | # include <strings.h> |
| 609 | #endif |
| 610 | #ifdef HAVE_INTTYPES_H |
| 611 | # include <inttypes.h> |
| 612 | #endif |
| 613 | #ifdef HAVE_STDINT_H |
| 614 | # include <stdint.h> |
| 615 | #endif |
| 616 | #ifdef HAVE_UNISTD_H |
| 617 | # include <unistd.h> |
| 618 | #endif" |
| 619 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 620 | ac_header_list= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 621 | ac_subst_vars='ltdl_LTLIBOBJS |
| 622 | ltdl_LIBOBJS |
| 623 | am__EXEEXT_FALSE |
| 624 | am__EXEEXT_TRUE |
| 625 | LTLIBOBJS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 626 | MAGICK_FEATURES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 627 | MAGICK_LIBS |
| 628 | MAGICK_LDFLAGS |
| 629 | MAGICK_PCFLAGS |
| 630 | MAGICK_CPPFLAGS |
| 631 | MAGICK_CXXFLAGS |
| 632 | MAGICK_CFLAGS |
| 633 | MAGICK_DEP_LIBS |
| 634 | MAGICK_LTDLDEPS |
| 635 | MAGICK_LIBLTDL |
| 636 | OSX_GCOV_LDFLAG |
| 637 | DELEGATES |
| 638 | MAGICKCORE_PATH |
| 639 | PERL_SUPPORTS_DESTDIR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 640 | WITH_PERL_DYNAMIC_FALSE |
| 641 | WITH_PERL_DYNAMIC_TRUE |
| 642 | WITH_PERL_STATIC_FALSE |
| 643 | WITH_PERL_STATIC_TRUE |
| 644 | WITH_PERL_FALSE |
| 645 | WITH_PERL_TRUE |
| 646 | PERL_VERSION |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 647 | GSVersion |
| 648 | GSPSDevice |
| 649 | GSPDFDevice |
| 650 | GSMonoDevice |
| 651 | GSEPSDevice |
| 652 | GSColorDevice |
| 653 | GSCMYKDevice |
| 654 | GSAlphaDevice |
| 655 | XPSVersion |
| 656 | XPSCMYKDevice |
| 657 | XPSColorDevice |
| 658 | XPSMonoDevice |
| 659 | PCLVersion |
| 660 | PCLCMYKDevice |
| 661 | PCLColorDevice |
| 662 | PCLMonoDevice |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 663 | ZIP_DELEGATE_FALSE |
| 664 | ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 665 | ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 666 | P7ZIP_DELEGATE_FALSE |
| 667 | P7ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 668 | P7ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 669 | RPM_DELEGATE_FALSE |
| 670 | RPM_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 671 | RPM |
| 672 | PERL |
| 673 | TAR |
| 674 | ShowImageDelegate |
| 675 | type_include_files |
| 676 | ghostscript_font_dir |
| 677 | windows_font_dir |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 678 | dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 679 | PrintDelegate |
| 680 | ZipDelegate |
| 681 | XPSDelegate |
| 682 | WWWDecodeDelegate |
| 683 | WMFDecodeDelegate |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 684 | UniconvertorDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 685 | TXTDelegate |
| 686 | SCANDecodeDelegate |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 687 | RSVGDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 688 | RMDelegate |
| 689 | RLEEncodeDelegate |
| 690 | PSDelegate |
| 691 | POVDelegate |
| 692 | PGPDecodeDelegate |
| 693 | PCLDelegate |
| 694 | MVDelegate |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 695 | MrSIDDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 696 | MPEGEncodeDelegate |
| 697 | MPEGDecodeDelegate |
| 698 | MANDelegate |
| 699 | LaunchDelegate |
| 700 | LZWEncodeDelegate |
| 701 | LZWDecodeDelegate |
| 702 | LPRDelegate |
| 703 | LPDelegate |
| 704 | ILBMEncodeDelegate |
| 705 | ILBMDecodeDelegate |
| 706 | HTMLDecodeDelegate |
| 707 | HPGLDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | GnuplotDecodeDelegate |
| 709 | MogrifyDelegate |
| 710 | DisplayDelegate |
| 711 | ConvertDelegate |
| 712 | FIGDecodeDelegate |
| 713 | EditorDelegate |
| 714 | EchoDelegate |
| 715 | DVIDecodeDelegate |
| 716 | GVCDecodeDelegate |
| 717 | DNGDecodeDelegate |
| 718 | CatDelegate |
| 719 | CGMDecodeDelegate |
| 720 | BrowseDelegate |
| 721 | BZIPDelegate |
| 722 | BlenderDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 723 | AutotraceDecodeDelegate |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 724 | SHAREARCH_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 725 | SHARE_PATH |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 726 | CONFIGURE_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 727 | DOCUMENTATION_PATH |
| 728 | FILTER_PATH |
| 729 | CODER_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 730 | LIBRARY_PATH |
| 731 | EXECUTABLE_PATH |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 732 | INCLUDE_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 733 | PERLMAINCC |
| 734 | XML_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 735 | XML_DELEGATE_FALSE |
| 736 | XML_DELEGATE_TRUE |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 737 | xml2_config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 738 | WMF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 739 | WMF_DELEGATE_FALSE |
| 740 | WMF_DELEGATE_TRUE |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 741 | WEBP_LIBS |
| 742 | WEBP_DELEGATE_FALSE |
| 743 | WEBP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 744 | TIFF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 745 | TIFF_DELEGATE_FALSE |
| 746 | TIFF_DELEGATE_TRUE |
| 747 | CAIRO_DELEGATE_FALSE |
| 748 | CAIRO_DELEGATE_TRUE |
| 749 | RSVG_DELEGATE_FALSE |
| 750 | RSVG_DELEGATE_TRUE |
| 751 | CAIRO_SVG_LIBS |
| 752 | CAIRO_SVG_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 753 | RSVG_LIBS |
| 754 | RSVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 755 | PNG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 756 | PNG_DELEGATE_FALSE |
| 757 | PNG_DELEGATE_TRUE |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 758 | PANGOFT2_DELEGATE_FALSE |
| 759 | PANGOFT2_DELEGATE_TRUE |
| 760 | PANGO_DELEGATE_FALSE |
| 761 | PANGO_DELEGATE_TRUE |
| 762 | PANGO_LIBS |
| 763 | PANGO_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 764 | OPENEXR_DELEGATE_FALSE |
| 765 | OPENEXR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 766 | OPENEXR_LIBS |
| 767 | OPENEXR_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 768 | LZMA_LIBS |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 769 | LZMA_DELEGATE_FALSE |
| 770 | LZMA_DELEGATE_TRUE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 771 | LQR_DELEGATE_FALSE |
| 772 | LQR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 773 | LQR_LIBS |
| 774 | LQR_CFLAGS |
| 775 | LCMS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 776 | LCMS_DELEGATE_FALSE |
| 777 | LCMS_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 778 | JP2_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 779 | JP2_DELEGATE_FALSE |
| 780 | JP2_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 781 | JPEG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 782 | JPEG_DELEGATE_FALSE |
| 783 | JPEG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 784 | JBIG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 785 | JBIG_DELEGATE_FALSE |
| 786 | JBIG_DELEGATE_TRUE |
| 787 | GVC_DELEGATE_FALSE |
| 788 | GVC_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 789 | GVC_LIBS |
| 790 | GVC_CFLAGS |
| 791 | GS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 792 | GS_DELEGATE_FALSE |
| 793 | GS_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 794 | FREETYPE_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 795 | FREETYPE_DELEGATE_FALSE |
| 796 | FREETYPE_DELEGATE_TRUE |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 797 | freetype_config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 798 | FONTCONFIG_DELEGATE_FALSE |
| 799 | FONTCONFIG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 800 | FONTCONFIG_LIBS |
| 801 | FONTCONFIG_CFLAGS |
| 802 | FPX_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 803 | FPX_DELEGATE_FALSE |
| 804 | FPX_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 805 | FFTW_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 806 | FFTW_DELEGATE_FALSE |
| 807 | FFTW_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 808 | DJVU_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 809 | DJVU_DELEGATE_FALSE |
| 810 | DJVU_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 811 | DPS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 812 | DPS_DELEGATE_FALSE |
| 813 | DPS_DELEGATE_TRUE |
| 814 | AUTOTRACE_DELEGATE_FALSE |
| 815 | AUTOTRACE_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 816 | AUTOTRACE_LIBS |
| 817 | AUTOTRACE_CFLAGS |
| 818 | LIB_DL |
| 819 | ZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 820 | ZLIB_DELEGATE_FALSE |
| 821 | ZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 822 | XEXT_LIBS |
| 823 | X11_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 824 | X11_DELEGATE_FALSE |
| 825 | X11_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 826 | X_EXTRA_LIBS |
| 827 | X_LIBS |
| 828 | X_PRE_LIBS |
| 829 | X_CFLAGS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 830 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 831 | BZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 832 | BZLIB_DELEGATE_FALSE |
| 833 | BZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 834 | CCMALLOCDelegate |
| 835 | UMEM_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 836 | HasUMEM_FALSE |
| 837 | HasUMEM_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 838 | THREAD_LIBS |
| 839 | GOMP_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 840 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 841 | WITH_MAGICK_PLUS_PLUS_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 842 | OPENMP_CXXFLAGS |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 843 | MATH_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 844 | POW_LIB |
| 845 | LIBOBJS |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 846 | UINTPTR_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 847 | UINTPTR_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 848 | UINTMAX_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 849 | UINTMAX_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 850 | UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 851 | UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 852 | INT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 853 | INT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 854 | UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 855 | UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 856 | INT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 857 | INT32_T |
| 858 | UINT16_T |
| 859 | INT16_T |
| 860 | UINT8_T |
| 861 | INT8_T |
| 862 | LIBRARY_EXTRA_CPPFLAGS |
| 863 | MODULE_EXTRA_CPPFLAGS |
| 864 | LIBSTDCLDFLAGS |
| 865 | PERL_MAKE_OPTIONS |
| 866 | QUANTUM_DEPTH |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 867 | MAINT |
| 868 | MAINTAINER_MODE_FALSE |
| 869 | MAINTAINER_MODE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 870 | MAGICK_HDRI |
| 871 | DLLDFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 872 | WITH_LTDL_FALSE |
| 873 | WITH_LTDL_TRUE |
| 874 | WITH_MODULES_FALSE |
| 875 | WITH_MODULES_TRUE |
| 876 | WITH_SHARED_LIBS_FALSE |
| 877 | WITH_SHARED_LIBS_TRUE |
| 878 | LTDLOPEN |
| 879 | LT_CONFIG_H |
| 880 | CONVENIENCE_LTDL_FALSE |
| 881 | CONVENIENCE_LTDL_TRUE |
| 882 | INSTALL_LTDL_FALSE |
| 883 | INSTALL_LTDL_TRUE |
| 884 | ARGZ_H |
| 885 | sys_symbol_underscore |
| 886 | LIBADD_DL |
| 887 | LT_DLPREOPEN |
| 888 | LIBADD_DLD_LINK |
| 889 | LIBADD_SHL_LOAD |
| 890 | LIBADD_DLOPEN |
| 891 | LT_DLLOADERS |
| 892 | INCLTDL |
| 893 | LTDLINCL |
| 894 | LTDLDEPS |
| 895 | LIBLTDL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 896 | LIBTOOL_DEPS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 897 | CXXCPP |
| 898 | OTOOL64 |
| 899 | OTOOL |
| 900 | LIPO |
| 901 | NMEDIT |
| 902 | DSYMUTIL |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 903 | MANIFEST_TOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 904 | RANLIB |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 905 | ac_ct_AR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 906 | AR |
| 907 | NM |
| 908 | ac_ct_DUMPBIN |
| 909 | DUMPBIN |
| 910 | LIBTOOL |
| 911 | OBJDUMP |
| 912 | DLLTOOL |
| 913 | AS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 914 | LFS_CPPFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 915 | CL_LIBS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 916 | CL_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 917 | OPENMP_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 918 | PTHREAD_CFLAGS |
| 919 | PTHREAD_LIBS |
| 920 | PTHREAD_CC |
| 921 | ax_pthread_config |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 922 | SHAREARCH_DIR |
| 923 | INCLUDEARCH_DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 924 | WinPathScript |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 925 | USING_CL_FALSE |
| 926 | USING_CL_TRUE |
| 927 | CYGWIN_BUILD_FALSE |
| 928 | CYGWIN_BUILD_TRUE |
| 929 | WIN32_NATIVE_BUILD_FALSE |
| 930 | WIN32_NATIVE_BUILD_TRUE |
| 931 | WINGDI32_DELEGATE_FALSE |
| 932 | WINGDI32_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 933 | GDI32_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 934 | PKG_CONFIG |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 935 | LN_S |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 936 | LD |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 937 | FGREP |
| 938 | SED |
| 939 | am__fastdepCXX_FALSE |
| 940 | am__fastdepCXX_TRUE |
| 941 | CXXDEPMODE |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 942 | ac_ct_CXX |
| 943 | CXXFLAGS |
| 944 | CXX |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 945 | EGREP |
| 946 | GREP |
| 947 | CPP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 948 | am__fastdepCC_FALSE |
| 949 | am__fastdepCC_TRUE |
| 950 | CCDEPMODE |
| 951 | AMDEPBACKSLASH |
| 952 | AMDEP_FALSE |
| 953 | AMDEP_TRUE |
| 954 | am__quote |
| 955 | am__include |
| 956 | DEPDIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 957 | OBJEXT |
| 958 | EXEEXT |
| 959 | ac_ct_CC |
| 960 | CPPFLAGS |
| 961 | LDFLAGS |
| 962 | CFLAGS |
| 963 | CC |
| 964 | DIRSEP |
| 965 | MAGICK_FILTER_MODULE_PATH |
| 966 | MAGICK_CONFIGURE_BUILD_PATH |
| 967 | MAGICK_CONFIGURE_SRC_PATH |
| 968 | MAGICK_CODER_MODULE_PATH |
| 969 | MAN_DIR |
| 970 | INFO_DIR |
| 971 | PERSISTINCLUDE_DIR |
| 972 | INCLUDE_DIR |
| 973 | LIB_DIR |
| 974 | LOCALSTATE_DIR |
| 975 | SHAREDSTATE_DIR |
| 976 | SYSCONF_DIR |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 977 | DOC_DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 978 | DATA_DIR |
| 979 | LIBEXEC_DIR |
| 980 | SBIN_DIR |
| 981 | BIN_DIR |
| 982 | EXEC_PREFIX_DIR |
| 983 | PREFIX_DIR |
| 984 | CONFIG_STATUS_DEPENDENCIES |
| 985 | MAGICK_LIB_VERSION_NUMBER |
| 986 | MAGICK_LIB_VERSION_TEXT |
| 987 | MAGICK_LIB_VERSION |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 988 | AM_BACKSLASH |
| 989 | AM_DEFAULT_VERBOSITY |
| 990 | am__untar |
| 991 | am__tar |
| 992 | AMTAR |
| 993 | am__leading_dot |
| 994 | SET_MAKE |
| 995 | AWK |
| 996 | mkdir_p |
| 997 | MKDIR_P |
| 998 | INSTALL_STRIP_PROGRAM |
| 999 | STRIP |
| 1000 | install_sh |
| 1001 | MAKEINFO |
| 1002 | AUTOHEADER |
| 1003 | AUTOMAKE |
| 1004 | AUTOCONF |
| 1005 | ACLOCAL |
| 1006 | VERSION |
| 1007 | PACKAGE |
| 1008 | CYGPATH_W |
| 1009 | am__isrc |
| 1010 | INSTALL_DATA |
| 1011 | INSTALL_SCRIPT |
| 1012 | INSTALL_PROGRAM |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 1013 | PACKAGE_VERSION_ADDENDUM |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1014 | PACKAGE_RELEASE_DATE |
| 1015 | PACKAGE_LIB_VERSION_NUMBER |
| 1016 | PACKAGE_LIB_VERSION |
| 1017 | PACKAGE_CHANGE_DATE |
| 1018 | PACKAGE_RELEASE |
| cristy | 878c2f1 | 2011-08-19 00:25:19 +0000 | [diff] [blame] | 1019 | PACKAGE_PERL_VERSION |
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 1020 | MAGICK_SVN_REVISION |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 1021 | MAGICK_LIBRARY_VERSION_INFO |
| 1022 | MAGICK_LIBRARY_CURRENT_MIN |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1023 | MAGICK_LIBRARY_AGE |
| 1024 | MAGICK_LIBRARY_REVISION |
| 1025 | MAGICK_LIBRARY_CURRENT |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 1026 | MAGICK_TARGET_OS |
| 1027 | MAGICK_TARGET_VENDOR |
| 1028 | MAGICK_TARGET_CPU |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1029 | target_os |
| 1030 | target_vendor |
| 1031 | target_cpu |
| 1032 | target |
| 1033 | host_os |
| 1034 | host_vendor |
| 1035 | host_cpu |
| 1036 | host |
| 1037 | build_os |
| 1038 | build_vendor |
| 1039 | build_cpu |
| 1040 | build |
| 1041 | CONFIGURE_ARGS |
| 1042 | DISTCHECK_CONFIG_FLAGS |
| 1043 | target_alias |
| 1044 | host_alias |
| 1045 | build_alias |
| 1046 | LIBS |
| 1047 | ECHO_T |
| 1048 | ECHO_N |
| 1049 | ECHO_C |
| 1050 | DEFS |
| 1051 | mandir |
| 1052 | localedir |
| 1053 | libdir |
| 1054 | psdir |
| 1055 | pdfdir |
| 1056 | dvidir |
| 1057 | htmldir |
| 1058 | infodir |
| 1059 | docdir |
| 1060 | oldincludedir |
| 1061 | includedir |
| 1062 | localstatedir |
| 1063 | sharedstatedir |
| 1064 | sysconfdir |
| 1065 | datadir |
| 1066 | datarootdir |
| 1067 | libexecdir |
| 1068 | sbindir |
| 1069 | bindir |
| 1070 | program_transform_name |
| 1071 | prefix |
| 1072 | exec_prefix |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1073 | PACKAGE_URL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1074 | PACKAGE_BUGREPORT |
| 1075 | PACKAGE_STRING |
| 1076 | PACKAGE_VERSION |
| 1077 | PACKAGE_TARNAME |
| 1078 | PACKAGE_NAME |
| 1079 | PATH_SEPARATOR |
| 1080 | SHELL' |
| 1081 | ac_subst_files='' |
| 1082 | ac_user_opts=' |
| 1083 | enable_option_checking |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1084 | enable_silent_rules |
| 1085 | enable_dependency_tracking |
| 1086 | with_gnu_ld |
| 1087 | with_dmalloc |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1088 | enable_bounds_checking |
| 1089 | enable_osx_universal_binary |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 1090 | with_includearch_dir |
| 1091 | with_sharearch_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1092 | with_threads |
| 1093 | enable_openmp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1094 | enable_opencl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1095 | enable_largefile |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1096 | enable_shared |
| 1097 | enable_static |
| 1098 | with_pic |
| 1099 | enable_fast_install |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1100 | with_sysroot |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1101 | enable_libtool_lock |
| 1102 | with_included_ltdl |
| 1103 | with_ltdl_include |
| 1104 | with_ltdl_lib |
| 1105 | enable_ltdl_install |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1106 | with_modules |
| 1107 | enable_delegate_build |
| 1108 | enable_deprecated |
| 1109 | enable_installed |
| 1110 | enable_cipher |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1111 | enable_zero_configuration |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1112 | enable_hdri |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1113 | enable_assert |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1114 | enable_maintainer_mode |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1115 | enable_ccmalloc |
| 1116 | enable_efence |
| 1117 | enable_prof |
| 1118 | enable_gprof |
| 1119 | enable_gcov |
| 1120 | with_method_prefix |
| 1121 | with_quantum_depth |
| 1122 | with_cache |
| 1123 | with_frozenpaths |
| 1124 | with_magick_plus_plus |
| 1125 | with_perl |
| 1126 | with_perl_options |
| 1127 | with_umem |
| 1128 | with_libstdc |
| 1129 | with_bzlib |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1130 | with_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1131 | with_zlib |
| 1132 | with_autotrace |
| 1133 | with_dps |
| 1134 | with_djvu |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1135 | with_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1136 | with_fftw |
| 1137 | with_fpx |
| 1138 | with_fontconfig |
| 1139 | with_freetype |
| 1140 | with_gslib |
| 1141 | with_fontpath |
| 1142 | with_gs_font_dir |
| 1143 | with_gvc |
| 1144 | with_jbig |
| 1145 | with_jpeg |
| 1146 | with_jp2 |
| 1147 | with_lcms |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1148 | with_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1149 | with_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1150 | with_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1151 | with_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1152 | with_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1153 | with_png |
| 1154 | with_rsvg |
| 1155 | with_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1156 | with_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1157 | with_windows_font_dir |
| 1158 | with_wmf |
| 1159 | with_xml |
| 1160 | ' |
| 1161 | ac_precious_vars='build_alias |
| 1162 | host_alias |
| 1163 | target_alias |
| 1164 | CC |
| 1165 | CFLAGS |
| 1166 | LDFLAGS |
| 1167 | LIBS |
| 1168 | CPPFLAGS |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1169 | CPP |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1170 | CXX |
| 1171 | CXXFLAGS |
| 1172 | CCC |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1173 | PKG_CONFIG |
| 1174 | CXXCPP |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1175 | XMKMF |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1176 | AUTOTRACE_CFLAGS |
| 1177 | AUTOTRACE_LIBS |
| 1178 | FONTCONFIG_CFLAGS |
| 1179 | FONTCONFIG_LIBS |
| 1180 | GVC_CFLAGS |
| 1181 | GVC_LIBS |
| 1182 | LQR_CFLAGS |
| 1183 | LQR_LIBS |
| 1184 | OPENEXR_CFLAGS |
| 1185 | OPENEXR_LIBS |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1186 | PANGO_CFLAGS |
| 1187 | PANGO_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1188 | RSVG_CFLAGS |
| 1189 | RSVG_LIBS |
| 1190 | CAIRO_SVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1191 | CAIRO_SVG_LIBS' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1192 | |
| 1193 | |
| 1194 | # Initialize some variables set by options. |
| 1195 | ac_init_help= |
| 1196 | ac_init_version=false |
| 1197 | ac_unrecognized_opts= |
| 1198 | ac_unrecognized_sep= |
| 1199 | # The variables have the same names as the options, with |
| 1200 | # dashes changed to underlines. |
| 1201 | cache_file=/dev/null |
| 1202 | exec_prefix=NONE |
| 1203 | no_create= |
| 1204 | no_recursion= |
| 1205 | prefix=NONE |
| 1206 | program_prefix=NONE |
| 1207 | program_suffix=NONE |
| 1208 | program_transform_name=s,x,x, |
| 1209 | silent= |
| 1210 | site= |
| 1211 | srcdir= |
| 1212 | verbose= |
| 1213 | x_includes=NONE |
| 1214 | x_libraries=NONE |
| 1215 | |
| 1216 | # Installation directory options. |
| 1217 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1218 | # and all the variables that are supposed to be based on exec_prefix |
| 1219 | # by default will actually change. |
| 1220 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1221 | # (The list follows the same order as the GNU Coding Standards.) |
| 1222 | bindir='${exec_prefix}/bin' |
| 1223 | sbindir='${exec_prefix}/sbin' |
| 1224 | libexecdir='${exec_prefix}/libexec' |
| 1225 | datarootdir='${prefix}/share' |
| 1226 | datadir='${datarootdir}' |
| 1227 | sysconfdir='${prefix}/etc' |
| 1228 | sharedstatedir='${prefix}/com' |
| 1229 | localstatedir='${prefix}/var' |
| 1230 | includedir='${prefix}/include' |
| 1231 | oldincludedir='/usr/include' |
| 1232 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1233 | infodir='${datarootdir}/info' |
| 1234 | htmldir='${docdir}' |
| 1235 | dvidir='${docdir}' |
| 1236 | pdfdir='${docdir}' |
| 1237 | psdir='${docdir}' |
| 1238 | libdir='${exec_prefix}/lib' |
| 1239 | localedir='${datarootdir}/locale' |
| 1240 | mandir='${datarootdir}/man' |
| 1241 | |
| 1242 | ac_prev= |
| 1243 | ac_dashdash= |
| 1244 | for ac_option |
| 1245 | do |
| 1246 | # If the previous option needs an argument, assign it. |
| 1247 | if test -n "$ac_prev"; then |
| 1248 | eval $ac_prev=\$ac_option |
| 1249 | ac_prev= |
| 1250 | continue |
| 1251 | fi |
| 1252 | |
| 1253 | case $ac_option in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1254 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1255 | *=) ac_optarg= ;; |
| 1256 | *) ac_optarg=yes ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1257 | esac |
| 1258 | |
| 1259 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1260 | |
| 1261 | case $ac_dashdash$ac_option in |
| 1262 | --) |
| 1263 | ac_dashdash=yes ;; |
| 1264 | |
| 1265 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1266 | ac_prev=bindir ;; |
| 1267 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1268 | bindir=$ac_optarg ;; |
| 1269 | |
| 1270 | -build | --build | --buil | --bui | --bu) |
| 1271 | ac_prev=build_alias ;; |
| 1272 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1273 | build_alias=$ac_optarg ;; |
| 1274 | |
| 1275 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1276 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1277 | ac_prev=cache_file ;; |
| 1278 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1279 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1280 | cache_file=$ac_optarg ;; |
| 1281 | |
| 1282 | --config-cache | -C) |
| 1283 | cache_file=config.cache ;; |
| 1284 | |
| 1285 | -datadir | --datadir | --datadi | --datad) |
| 1286 | ac_prev=datadir ;; |
| 1287 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1288 | datadir=$ac_optarg ;; |
| 1289 | |
| 1290 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1291 | | --dataroo | --dataro | --datar) |
| 1292 | ac_prev=datarootdir ;; |
| 1293 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1294 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1295 | datarootdir=$ac_optarg ;; |
| 1296 | |
| 1297 | -disable-* | --disable-*) |
| 1298 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1299 | # Reject names that are not valid shell variable names. |
| 1300 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1301 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1302 | ac_useropt_orig=$ac_useropt |
| 1303 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1304 | case $ac_user_opts in |
| 1305 | *" |
| 1306 | "enable_$ac_useropt" |
| 1307 | "*) ;; |
| 1308 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1309 | ac_unrecognized_sep=', ';; |
| 1310 | esac |
| 1311 | eval enable_$ac_useropt=no ;; |
| 1312 | |
| 1313 | -docdir | --docdir | --docdi | --doc | --do) |
| 1314 | ac_prev=docdir ;; |
| 1315 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1316 | docdir=$ac_optarg ;; |
| 1317 | |
| 1318 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1319 | ac_prev=dvidir ;; |
| 1320 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1321 | dvidir=$ac_optarg ;; |
| 1322 | |
| 1323 | -enable-* | --enable-*) |
| 1324 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1325 | # Reject names that are not valid shell variable names. |
| 1326 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1327 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1328 | ac_useropt_orig=$ac_useropt |
| 1329 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1330 | case $ac_user_opts in |
| 1331 | *" |
| 1332 | "enable_$ac_useropt" |
| 1333 | "*) ;; |
| 1334 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1335 | ac_unrecognized_sep=', ';; |
| 1336 | esac |
| 1337 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1338 | |
| 1339 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1340 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1341 | | --exec | --exe | --ex) |
| 1342 | ac_prev=exec_prefix ;; |
| 1343 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1344 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1345 | | --exec=* | --exe=* | --ex=*) |
| 1346 | exec_prefix=$ac_optarg ;; |
| 1347 | |
| 1348 | -gas | --gas | --ga | --g) |
| 1349 | # Obsolete; use --with-gas. |
| 1350 | with_gas=yes ;; |
| 1351 | |
| 1352 | -help | --help | --hel | --he | -h) |
| 1353 | ac_init_help=long ;; |
| 1354 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1355 | ac_init_help=recursive ;; |
| 1356 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1357 | ac_init_help=short ;; |
| 1358 | |
| 1359 | -host | --host | --hos | --ho) |
| 1360 | ac_prev=host_alias ;; |
| 1361 | -host=* | --host=* | --hos=* | --ho=*) |
| 1362 | host_alias=$ac_optarg ;; |
| 1363 | |
| 1364 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1365 | ac_prev=htmldir ;; |
| 1366 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1367 | | --ht=*) |
| 1368 | htmldir=$ac_optarg ;; |
| 1369 | |
| 1370 | -includedir | --includedir | --includedi | --included | --include \ |
| 1371 | | --includ | --inclu | --incl | --inc) |
| 1372 | ac_prev=includedir ;; |
| 1373 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1374 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1375 | includedir=$ac_optarg ;; |
| 1376 | |
| 1377 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1378 | ac_prev=infodir ;; |
| 1379 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1380 | infodir=$ac_optarg ;; |
| 1381 | |
| 1382 | -libdir | --libdir | --libdi | --libd) |
| 1383 | ac_prev=libdir ;; |
| 1384 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1385 | libdir=$ac_optarg ;; |
| 1386 | |
| 1387 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1388 | | --libexe | --libex | --libe) |
| 1389 | ac_prev=libexecdir ;; |
| 1390 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1391 | | --libexe=* | --libex=* | --libe=*) |
| 1392 | libexecdir=$ac_optarg ;; |
| 1393 | |
| 1394 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1395 | ac_prev=localedir ;; |
| 1396 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1397 | localedir=$ac_optarg ;; |
| 1398 | |
| 1399 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1400 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1401 | ac_prev=localstatedir ;; |
| 1402 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1403 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1404 | localstatedir=$ac_optarg ;; |
| 1405 | |
| 1406 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1407 | ac_prev=mandir ;; |
| 1408 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1409 | mandir=$ac_optarg ;; |
| 1410 | |
| 1411 | -nfp | --nfp | --nf) |
| 1412 | # Obsolete; use --without-fp. |
| 1413 | with_fp=no ;; |
| 1414 | |
| 1415 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1416 | | --no-cr | --no-c | -n) |
| 1417 | no_create=yes ;; |
| 1418 | |
| 1419 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1420 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1421 | no_recursion=yes ;; |
| 1422 | |
| 1423 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1424 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1425 | | --oldin | --oldi | --old | --ol | --o) |
| 1426 | ac_prev=oldincludedir ;; |
| 1427 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1428 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1429 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1430 | oldincludedir=$ac_optarg ;; |
| 1431 | |
| 1432 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1433 | ac_prev=prefix ;; |
| 1434 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1435 | prefix=$ac_optarg ;; |
| 1436 | |
| 1437 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1438 | | --program-pre | --program-pr | --program-p) |
| 1439 | ac_prev=program_prefix ;; |
| 1440 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1441 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1442 | program_prefix=$ac_optarg ;; |
| 1443 | |
| 1444 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1445 | | --program-suf | --program-su | --program-s) |
| 1446 | ac_prev=program_suffix ;; |
| 1447 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1448 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1449 | program_suffix=$ac_optarg ;; |
| 1450 | |
| 1451 | -program-transform-name | --program-transform-name \ |
| 1452 | | --program-transform-nam | --program-transform-na \ |
| 1453 | | --program-transform-n | --program-transform- \ |
| 1454 | | --program-transform | --program-transfor \ |
| 1455 | | --program-transfo | --program-transf \ |
| 1456 | | --program-trans | --program-tran \ |
| 1457 | | --progr-tra | --program-tr | --program-t) |
| 1458 | ac_prev=program_transform_name ;; |
| 1459 | -program-transform-name=* | --program-transform-name=* \ |
| 1460 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1461 | | --program-transform-n=* | --program-transform-=* \ |
| 1462 | | --program-transform=* | --program-transfor=* \ |
| 1463 | | --program-transfo=* | --program-transf=* \ |
| 1464 | | --program-trans=* | --program-tran=* \ |
| 1465 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1466 | program_transform_name=$ac_optarg ;; |
| 1467 | |
| 1468 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1469 | ac_prev=pdfdir ;; |
| 1470 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1471 | pdfdir=$ac_optarg ;; |
| 1472 | |
| 1473 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1474 | ac_prev=psdir ;; |
| 1475 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1476 | psdir=$ac_optarg ;; |
| 1477 | |
| 1478 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1479 | | -silent | --silent | --silen | --sile | --sil) |
| 1480 | silent=yes ;; |
| 1481 | |
| 1482 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1483 | ac_prev=sbindir ;; |
| 1484 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1485 | | --sbi=* | --sb=*) |
| 1486 | sbindir=$ac_optarg ;; |
| 1487 | |
| 1488 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1489 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1490 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1491 | | --sha | --sh) |
| 1492 | ac_prev=sharedstatedir ;; |
| 1493 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1494 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1495 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1496 | | --sha=* | --sh=*) |
| 1497 | sharedstatedir=$ac_optarg ;; |
| 1498 | |
| 1499 | -site | --site | --sit) |
| 1500 | ac_prev=site ;; |
| 1501 | -site=* | --site=* | --sit=*) |
| 1502 | site=$ac_optarg ;; |
| 1503 | |
| 1504 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1505 | ac_prev=srcdir ;; |
| 1506 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1507 | srcdir=$ac_optarg ;; |
| 1508 | |
| 1509 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1510 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1511 | ac_prev=sysconfdir ;; |
| 1512 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1513 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1514 | sysconfdir=$ac_optarg ;; |
| 1515 | |
| 1516 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1517 | ac_prev=target_alias ;; |
| 1518 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1519 | target_alias=$ac_optarg ;; |
| 1520 | |
| 1521 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1522 | verbose=yes ;; |
| 1523 | |
| 1524 | -version | --version | --versio | --versi | --vers | -V) |
| 1525 | ac_init_version=: ;; |
| 1526 | |
| 1527 | -with-* | --with-*) |
| 1528 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1529 | # Reject names that are not valid shell variable names. |
| 1530 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1531 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1532 | ac_useropt_orig=$ac_useropt |
| 1533 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1534 | case $ac_user_opts in |
| 1535 | *" |
| 1536 | "with_$ac_useropt" |
| 1537 | "*) ;; |
| 1538 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1539 | ac_unrecognized_sep=', ';; |
| 1540 | esac |
| 1541 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1542 | |
| 1543 | -without-* | --without-*) |
| 1544 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1545 | # Reject names that are not valid shell variable names. |
| 1546 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1547 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1548 | ac_useropt_orig=$ac_useropt |
| 1549 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1550 | case $ac_user_opts in |
| 1551 | *" |
| 1552 | "with_$ac_useropt" |
| 1553 | "*) ;; |
| 1554 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1555 | ac_unrecognized_sep=', ';; |
| 1556 | esac |
| 1557 | eval with_$ac_useropt=no ;; |
| 1558 | |
| 1559 | --x) |
| 1560 | # Obsolete; use --with-x. |
| 1561 | with_x=yes ;; |
| 1562 | |
| 1563 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1564 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1565 | ac_prev=x_includes ;; |
| 1566 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1567 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1568 | x_includes=$ac_optarg ;; |
| 1569 | |
| 1570 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1571 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1572 | ac_prev=x_libraries ;; |
| 1573 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1574 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1575 | x_libraries=$ac_optarg ;; |
| 1576 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1577 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1578 | Try \`$0 --help' for more information" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1579 | ;; |
| 1580 | |
| 1581 | *=*) |
| 1582 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1583 | # Reject names that are not valid shell variable names. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1584 | case $ac_envvar in #( |
| 1585 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1586 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1587 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1588 | eval $ac_envvar=\$ac_optarg |
| 1589 | export $ac_envvar ;; |
| 1590 | |
| 1591 | *) |
| 1592 | # FIXME: should be removed in autoconf 3.0. |
| 1593 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1594 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1595 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1596 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1597 | ;; |
| 1598 | |
| 1599 | esac |
| 1600 | done |
| 1601 | |
| 1602 | if test -n "$ac_prev"; then |
| 1603 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1604 | as_fn_error $? "missing argument to $ac_option" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1605 | fi |
| 1606 | |
| 1607 | if test -n "$ac_unrecognized_opts"; then |
| 1608 | case $enable_option_checking in |
| 1609 | no) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1610 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1611 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1612 | esac |
| 1613 | fi |
| 1614 | |
| 1615 | # Check all directory arguments for consistency. |
| 1616 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1617 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1618 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1619 | libdir localedir mandir |
| 1620 | do |
| 1621 | eval ac_val=\$$ac_var |
| 1622 | # Remove trailing slashes. |
| 1623 | case $ac_val in |
| 1624 | */ ) |
| 1625 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1626 | eval $ac_var=\$ac_val;; |
| 1627 | esac |
| 1628 | # Be sure to have absolute directory names. |
| 1629 | case $ac_val in |
| 1630 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1631 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1632 | esac |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1633 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1634 | done |
| 1635 | |
| 1636 | # There might be people who depend on the old broken behavior: `$host' |
| 1637 | # used to hold the argument of --host etc. |
| 1638 | # FIXME: To remove some day. |
| 1639 | build=$build_alias |
| 1640 | host=$host_alias |
| 1641 | target=$target_alias |
| 1642 | |
| 1643 | # FIXME: To remove some day. |
| 1644 | if test "x$host_alias" != x; then |
| 1645 | if test "x$build_alias" = x; then |
| 1646 | cross_compiling=maybe |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1647 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1648 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1649 | elif test "x$build_alias" != "x$host_alias"; then |
| 1650 | cross_compiling=yes |
| 1651 | fi |
| 1652 | fi |
| 1653 | |
| 1654 | ac_tool_prefix= |
| 1655 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1656 | |
| 1657 | test "$silent" = yes && exec 6>/dev/null |
| 1658 | |
| 1659 | |
| 1660 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1661 | ac_ls_di=`ls -di .` && |
| 1662 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1663 | as_fn_error $? "working directory cannot be determined" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1664 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1665 | as_fn_error $? "pwd does not report name of working directory" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1666 | |
| 1667 | |
| 1668 | # Find the source files, if location was not specified. |
| 1669 | if test -z "$srcdir"; then |
| 1670 | ac_srcdir_defaulted=yes |
| 1671 | # Try the directory containing this script, then the parent directory. |
| 1672 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1673 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1674 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1675 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1676 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1677 | $as_echo X"$as_myself" | |
| 1678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1679 | s//\1/ |
| 1680 | q |
| 1681 | } |
| 1682 | /^X\(\/\/\)[^/].*/{ |
| 1683 | s//\1/ |
| 1684 | q |
| 1685 | } |
| 1686 | /^X\(\/\/\)$/{ |
| 1687 | s//\1/ |
| 1688 | q |
| 1689 | } |
| 1690 | /^X\(\/\).*/{ |
| 1691 | s//\1/ |
| 1692 | q |
| 1693 | } |
| 1694 | s/.*/./; q'` |
| 1695 | srcdir=$ac_confdir |
| 1696 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1697 | srcdir=.. |
| 1698 | fi |
| 1699 | else |
| 1700 | ac_srcdir_defaulted=no |
| 1701 | fi |
| 1702 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1703 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1704 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1705 | fi |
| 1706 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1707 | ac_abs_confdir=`( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1708 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1709 | pwd)` |
| 1710 | # When building in place, set srcdir=. |
| 1711 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1712 | srcdir=. |
| 1713 | fi |
| 1714 | # Remove unnecessary trailing slashes from srcdir. |
| 1715 | # Double slashes in file names in object file debugging info |
| 1716 | # mess up M-x gdb in Emacs. |
| 1717 | case $srcdir in |
| 1718 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1719 | esac |
| 1720 | for ac_var in $ac_precious_vars; do |
| 1721 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1722 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1723 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1724 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1725 | done |
| 1726 | |
| 1727 | # |
| 1728 | # Report the --help message. |
| 1729 | # |
| 1730 | if test "$ac_init_help" = "long"; then |
| 1731 | # Omit some internal or obsolete options to make the list less imposing. |
| 1732 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1733 | cat <<_ACEOF |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1734 | \`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1735 | |
| 1736 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1737 | |
| 1738 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1739 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1740 | |
| 1741 | Defaults for the options are specified in brackets. |
| 1742 | |
| 1743 | Configuration: |
| 1744 | -h, --help display this help and exit |
| 1745 | --help=short display options specific to this package |
| 1746 | --help=recursive display the short help of all the included packages |
| 1747 | -V, --version display version information and exit |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1748 | -q, --quiet, --silent do not print \`checking ...' messages |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1749 | --cache-file=FILE cache test results in FILE [disabled] |
| 1750 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1751 | -n, --no-create do not create output files |
| 1752 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1753 | |
| 1754 | Installation directories: |
| 1755 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1756 | [$ac_default_prefix] |
| 1757 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1758 | [PREFIX] |
| 1759 | |
| 1760 | By default, \`make install' will install all the files in |
| 1761 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1762 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1763 | for instance \`--prefix=\$HOME'. |
| 1764 | |
| 1765 | For better control, use the options below. |
| 1766 | |
| 1767 | Fine tuning of the installation directories: |
| 1768 | --bindir=DIR user executables [EPREFIX/bin] |
| 1769 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1770 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1771 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1772 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1773 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1774 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1775 | --includedir=DIR C header files [PREFIX/include] |
| 1776 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1777 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1778 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1779 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1780 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1781 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 1782 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1783 | --htmldir=DIR html documentation [DOCDIR] |
| 1784 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1785 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1786 | --psdir=DIR ps documentation [DOCDIR] |
| 1787 | _ACEOF |
| 1788 | |
| 1789 | cat <<\_ACEOF |
| 1790 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1791 | Program names: |
| 1792 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1793 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1794 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1795 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1796 | X features: |
| 1797 | --x-includes=DIR X include files are in DIR |
| 1798 | --x-libraries=DIR X library files are in DIR |
| 1799 | |
| 1800 | System types: |
| 1801 | --build=BUILD configure for building on BUILD [guessed] |
| 1802 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1803 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1804 | _ACEOF |
| 1805 | fi |
| 1806 | |
| 1807 | if test -n "$ac_init_help"; then |
| 1808 | case $ac_init_help in |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1809 | short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1810 | esac |
| 1811 | cat <<\_ACEOF |
| 1812 | |
| 1813 | Optional Features: |
| 1814 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1815 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1816 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1817 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1818 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1819 | --disable-dependency-tracking speeds up one-time build |
| 1820 | --enable-dependency-tracking do not reject slow dependency extractors |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1821 | --bounds-checking enable run-time bounds-checking |
| 1822 | --enable-osx-universal-binary |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1823 | build universal binary on OS X [[default=no]] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1824 | --disable-openmp do not use OpenMP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1825 | --disable-opencl do not use OpenCL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1826 | --disable-largefile omit support for large files |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1827 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1828 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1829 | --enable-fast-install[=PKGS] |
| 1830 | optimize for fast installation [default=yes] |
| 1831 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1832 | --enable-ltdl-install install libltdl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1833 | --enable-delegate-build look for delegate libraries in build directory |
| 1834 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1835 | MagickWand API's |
| 1836 | --disable-installed Formally install ImageMagick under PREFIX |
| 1837 | --disable-cipher disable enciphering and deciphering image pixels |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1838 | --enable-zero-configuration |
| 1839 | enable self-contained, embeddable, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1840 | zero-configuration ImageMagick |
| 1841 | --enable-hdri accurately represent the wide range of intensity |
| 1842 | levels found in real scenes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1843 | --disable-assert disable assert() statements in build |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1844 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1845 | (and sometimes confusing) to the casual installer |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1846 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1847 | --enable-efence enable 'efence' memory debug support |
| 1848 | --enable-prof enable 'prof' profiling support |
| 1849 | --enable-gprof enable 'gprof' profiling support |
| 1850 | --enable-gcov enable 'gcov' profiling support |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1851 | --disable-assert turn off assertions |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1852 | |
| 1853 | Optional Packages: |
| 1854 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1855 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1856 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1857 | --with-dmalloc use dmalloc, as in |
| 1858 | http://www.dmalloc.com/dmalloc.tar.gz |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 1859 | --includearch-dir=DIR ARCH specific include directory |
| 1860 | --sharearch-dir=DIR ARCH specific config directory |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1861 | --without-threads disable threads support |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1862 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1863 | both] |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1864 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1865 | (or the compiler's sysroot if not specified). |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1866 | --with-included-ltdl use the GNU ltdl sources included here |
| 1867 | --with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1868 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1869 | --with-modules enable building dynamically loadable modules |
| 1870 | --with-method-prefix=PREFIX |
| 1871 | prefix MagickCore API methods |
| 1872 | --with-quantum-depth=DEPTH |
| 1873 | number of bits in a pixel quantum (default 16) |
| 1874 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1875 | memory) |
| 1876 | --with-frozenpaths freeze delegate paths |
| 1877 | --without-magick-plus-plus |
| 1878 | disable build/install of Magick++ |
| 1879 | --with-perl enable build/install of PerlMagick |
| 1880 | --with-perl-options=OPTIONS |
| 1881 | options to pass on command-line when generating |
| 1882 | PerlMagick's build file |
| 1883 | --with-umem enable umem memory allocation library support |
| 1884 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1885 | --without-bzlib disable BZLIB support |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1886 | --with-x use the X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1887 | --without-zlib disable ZLIB support |
| 1888 | --with-autotrace enable autotrace support |
| 1889 | --without-dps disable Display Postscript support |
| 1890 | --without-djvu disable DjVu support |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1891 | --with-dejavu-font-dir=DIR |
| 1892 | DejaVu font directory |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1893 | --without-fftw disable FFTW support |
| 1894 | --without-fpx disable FlashPIX support |
| 1895 | --without-fontconfig disable fontconfig support |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1896 | --without-freetype disable Freetype support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1897 | --without-gslib enable Ghostscript library support |
| 1898 | --with-fontpath=DIR prepend to default font search path |
| 1899 | --with-gs-font-dir=DIR Ghostscript font directory |
| 1900 | --without-gvc disable GVC support |
| 1901 | --without-jbig disable JBIG support |
| 1902 | --without-jpeg disable JPEG support |
| 1903 | --without-jp2 disable JPEG-2000 support |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1904 | --without-lcms disable lcms (v1.1X) support |
| 1905 | --without-lcms2 disable lcms (v2.X) support |
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1906 | --without-lqr disable Liquid Rescale support |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1907 | --without-lzma disable LZMA support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1908 | --without-openexr disable OpenEXR support |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1909 | --without-pango disable PANGO support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1910 | --without-png disable PNG support |
| 1911 | --without-rsvg disable RSVG support |
| 1912 | --without-tiff disable TIFF support |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1913 | --without-webp disable WEBP support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1914 | --with-windows-font-dir=DIR |
| 1915 | directory containing MS-Windows fonts |
| 1916 | --without-wmf disable WMF support |
| 1917 | --without-xml disable XML support |
| 1918 | |
| 1919 | Some influential environment variables: |
| 1920 | CC C compiler command |
| 1921 | CFLAGS C compiler flags |
| 1922 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1923 | nonstandard directory <lib dir> |
| 1924 | LIBS libraries to pass to the linker, e.g. -l<library> |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1925 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1926 | you have headers in a nonstandard directory <include dir> |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1927 | CPP C preprocessor |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1928 | CXX C++ compiler command |
| 1929 | CXXFLAGS C++ compiler flags |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1930 | PKG_CONFIG path to pkg-config utility |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1931 | CXXCPP C++ preprocessor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1932 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1933 | AUTOTRACE_CFLAGS |
| 1934 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 1935 | AUTOTRACE_LIBS |
| 1936 | linker flags for AUTOTRACE, overriding pkg-config |
| 1937 | FONTCONFIG_CFLAGS |
| 1938 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 1939 | FONTCONFIG_LIBS |
| 1940 | linker flags for FONTCONFIG, overriding pkg-config |
| 1941 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 1942 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 1943 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 1944 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| 1945 | OPENEXR_CFLAGS |
| 1946 | C compiler flags for OPENEXR, overriding pkg-config |
| 1947 | OPENEXR_LIBS |
| 1948 | linker flags for OPENEXR, overriding pkg-config |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1949 | PANGO_CFLAGS |
| 1950 | C compiler flags for PANGO, overriding pkg-config |
| 1951 | PANGO_LIBS linker flags for PANGO, overriding pkg-config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1952 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 1953 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 1954 | CAIRO_SVG_CFLAGS |
| 1955 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 1956 | CAIRO_SVG_LIBS |
| 1957 | linker flags for CAIRO_SVG, overriding pkg-config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1958 | |
| 1959 | Use these variables to override the choices made by `configure' or to help |
| 1960 | it to find libraries and programs with nonstandard names/locations. |
| 1961 | |
| 1962 | Report bugs to <http://www.imagemagick.org>. |
| 1963 | _ACEOF |
| 1964 | ac_status=$? |
| 1965 | fi |
| 1966 | |
| 1967 | if test "$ac_init_help" = "recursive"; then |
| 1968 | # If there are subdirs, report their specific --help. |
| 1969 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1970 | test -d "$ac_dir" || |
| 1971 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1972 | continue |
| 1973 | ac_builddir=. |
| 1974 | |
| 1975 | case "$ac_dir" in |
| 1976 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1977 | *) |
| 1978 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1979 | # A ".." for each directory in $ac_dir_suffix. |
| 1980 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1981 | case $ac_top_builddir_sub in |
| 1982 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1983 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1984 | esac ;; |
| 1985 | esac |
| 1986 | ac_abs_top_builddir=$ac_pwd |
| 1987 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1988 | # for backward compatibility: |
| 1989 | ac_top_builddir=$ac_top_build_prefix |
| 1990 | |
| 1991 | case $srcdir in |
| 1992 | .) # We are building in place. |
| 1993 | ac_srcdir=. |
| 1994 | ac_top_srcdir=$ac_top_builddir_sub |
| 1995 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1996 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1997 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1998 | ac_top_srcdir=$srcdir |
| 1999 | ac_abs_top_srcdir=$srcdir ;; |
| 2000 | *) # Relative name. |
| 2001 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2002 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2003 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2004 | esac |
| 2005 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2006 | |
| 2007 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2008 | # Check for guested configure. |
| 2009 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2010 | echo && |
| 2011 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2012 | elif test -f "$ac_srcdir/configure"; then |
| 2013 | echo && |
| 2014 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2015 | else |
| 2016 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2017 | fi || ac_status=$? |
| 2018 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2019 | done |
| 2020 | fi |
| 2021 | |
| 2022 | test -n "$ac_init_help" && exit $ac_status |
| 2023 | if $ac_init_version; then |
| 2024 | cat <<\_ACEOF |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 2025 | ImageMagick configure 7.0.0-0 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2026 | generated by GNU Autoconf 2.68 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2027 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2028 | Copyright (C) 2010 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2029 | This configure script is free software; the Free Software Foundation |
| 2030 | gives unlimited permission to copy, distribute and modify it. |
| 2031 | _ACEOF |
| 2032 | exit |
| 2033 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2034 | |
| 2035 | ## ------------------------ ## |
| 2036 | ## Autoconf initialization. ## |
| 2037 | ## ------------------------ ## |
| 2038 | |
| 2039 | # ac_fn_c_try_compile LINENO |
| 2040 | # -------------------------- |
| 2041 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2042 | ac_fn_c_try_compile () |
| 2043 | { |
| 2044 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2045 | rm -f conftest.$ac_objext |
| 2046 | if { { ac_try="$ac_compile" |
| 2047 | case "(($ac_try" in |
| 2048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2049 | *) ac_try_echo=$ac_try;; |
| 2050 | esac |
| 2051 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2052 | $as_echo "$ac_try_echo"; } >&5 |
| 2053 | (eval "$ac_compile") 2>conftest.err |
| 2054 | ac_status=$? |
| 2055 | if test -s conftest.err; then |
| 2056 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2057 | cat conftest.er1 >&5 |
| 2058 | mv -f conftest.er1 conftest.err |
| 2059 | fi |
| 2060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2061 | test $ac_status = 0; } && { |
| 2062 | test -z "$ac_c_werror_flag" || |
| 2063 | test ! -s conftest.err |
| 2064 | } && test -s conftest.$ac_objext; then : |
| 2065 | ac_retval=0 |
| 2066 | else |
| 2067 | $as_echo "$as_me: failed program was:" >&5 |
| 2068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2069 | |
| 2070 | ac_retval=1 |
| 2071 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2073 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2074 | |
| 2075 | } # ac_fn_c_try_compile |
| 2076 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2077 | # ac_fn_c_try_cpp LINENO |
| 2078 | # ---------------------- |
| 2079 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2080 | ac_fn_c_try_cpp () |
| 2081 | { |
| 2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2083 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2084 | case "(($ac_try" in |
| 2085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2086 | *) ac_try_echo=$ac_try;; |
| 2087 | esac |
| 2088 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2089 | $as_echo "$ac_try_echo"; } >&5 |
| 2090 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2091 | ac_status=$? |
| 2092 | if test -s conftest.err; then |
| 2093 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2094 | cat conftest.er1 >&5 |
| 2095 | mv -f conftest.er1 conftest.err |
| 2096 | fi |
| 2097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2098 | test $ac_status = 0; } > conftest.i && { |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2099 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2100 | test ! -s conftest.err |
| 2101 | }; then : |
| 2102 | ac_retval=0 |
| 2103 | else |
| 2104 | $as_echo "$as_me: failed program was:" >&5 |
| 2105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2106 | |
| 2107 | ac_retval=1 |
| 2108 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2109 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2110 | as_fn_set_status $ac_retval |
| 2111 | |
| 2112 | } # ac_fn_c_try_cpp |
| 2113 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2114 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2115 | # ------------------------------------------------------- |
| 2116 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2117 | # the include files in INCLUDES and setting the cache variable VAR |
| 2118 | # accordingly. |
| 2119 | ac_fn_c_check_header_mongrel () |
| 2120 | { |
| 2121 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2122 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2124 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2125 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2126 | $as_echo_n "(cached) " >&6 |
| 2127 | fi |
| 2128 | eval ac_res=\$$3 |
| 2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2130 | $as_echo "$ac_res" >&6; } |
| 2131 | else |
| 2132 | # Is the header compilable? |
| 2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2134 | $as_echo_n "checking $2 usability... " >&6; } |
| 2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2136 | /* end confdefs.h. */ |
| 2137 | $4 |
| 2138 | #include <$2> |
| 2139 | _ACEOF |
| 2140 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2141 | ac_header_compiler=yes |
| 2142 | else |
| 2143 | ac_header_compiler=no |
| 2144 | fi |
| 2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2147 | $as_echo "$ac_header_compiler" >&6; } |
| 2148 | |
| 2149 | # Is the header present? |
| 2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2151 | $as_echo_n "checking $2 presence... " >&6; } |
| 2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2153 | /* end confdefs.h. */ |
| 2154 | #include <$2> |
| 2155 | _ACEOF |
| 2156 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2157 | ac_header_preproc=yes |
| 2158 | else |
| 2159 | ac_header_preproc=no |
| 2160 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2161 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2163 | $as_echo "$ac_header_preproc" >&6; } |
| 2164 | |
| 2165 | # So? What about this header? |
| 2166 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2167 | yes:no: ) |
| 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2169 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2171 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2172 | ;; |
| 2173 | no:yes:* ) |
| 2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2175 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2177 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2179 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2181 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2183 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2184 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2185 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2186 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2187 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2188 | ;; |
| 2189 | esac |
| 2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2191 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2192 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2193 | $as_echo_n "(cached) " >&6 |
| 2194 | else |
| 2195 | eval "$3=\$ac_header_compiler" |
| 2196 | fi |
| 2197 | eval ac_res=\$$3 |
| 2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2199 | $as_echo "$ac_res" >&6; } |
| 2200 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2201 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2202 | |
| 2203 | } # ac_fn_c_check_header_mongrel |
| 2204 | |
| 2205 | # ac_fn_c_try_run LINENO |
| 2206 | # ---------------------- |
| 2207 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2208 | # that executables *can* be run. |
| 2209 | ac_fn_c_try_run () |
| 2210 | { |
| 2211 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2212 | if { { ac_try="$ac_link" |
| 2213 | case "(($ac_try" in |
| 2214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2215 | *) ac_try_echo=$ac_try;; |
| 2216 | esac |
| 2217 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2218 | $as_echo "$ac_try_echo"; } >&5 |
| 2219 | (eval "$ac_link") 2>&5 |
| 2220 | ac_status=$? |
| 2221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2222 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2223 | { { case "(($ac_try" in |
| 2224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2225 | *) ac_try_echo=$ac_try;; |
| 2226 | esac |
| 2227 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2228 | $as_echo "$ac_try_echo"; } >&5 |
| 2229 | (eval "$ac_try") 2>&5 |
| 2230 | ac_status=$? |
| 2231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2232 | test $ac_status = 0; }; }; then : |
| 2233 | ac_retval=0 |
| 2234 | else |
| 2235 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2236 | $as_echo "$as_me: failed program was:" >&5 |
| 2237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2238 | |
| 2239 | ac_retval=$ac_status |
| 2240 | fi |
| 2241 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2242 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2243 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2244 | |
| 2245 | } # ac_fn_c_try_run |
| 2246 | |
| 2247 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2248 | # ------------------------------------------------------- |
| 2249 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2250 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2251 | ac_fn_c_check_header_compile () |
| 2252 | { |
| 2253 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2255 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2256 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2257 | $as_echo_n "(cached) " >&6 |
| 2258 | else |
| 2259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2260 | /* end confdefs.h. */ |
| 2261 | $4 |
| 2262 | #include <$2> |
| 2263 | _ACEOF |
| 2264 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2265 | eval "$3=yes" |
| 2266 | else |
| 2267 | eval "$3=no" |
| 2268 | fi |
| 2269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2270 | fi |
| 2271 | eval ac_res=\$$3 |
| 2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2273 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2274 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2275 | |
| 2276 | } # ac_fn_c_check_header_compile |
| 2277 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2278 | # ac_fn_cxx_try_compile LINENO |
| 2279 | # ---------------------------- |
| 2280 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2281 | ac_fn_cxx_try_compile () |
| 2282 | { |
| 2283 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2284 | rm -f conftest.$ac_objext |
| 2285 | if { { ac_try="$ac_compile" |
| 2286 | case "(($ac_try" in |
| 2287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2288 | *) ac_try_echo=$ac_try;; |
| 2289 | esac |
| 2290 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2291 | $as_echo "$ac_try_echo"; } >&5 |
| 2292 | (eval "$ac_compile") 2>conftest.err |
| 2293 | ac_status=$? |
| 2294 | if test -s conftest.err; then |
| 2295 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2296 | cat conftest.er1 >&5 |
| 2297 | mv -f conftest.er1 conftest.err |
| 2298 | fi |
| 2299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2300 | test $ac_status = 0; } && { |
| 2301 | test -z "$ac_cxx_werror_flag" || |
| 2302 | test ! -s conftest.err |
| 2303 | } && test -s conftest.$ac_objext; then : |
| 2304 | ac_retval=0 |
| 2305 | else |
| 2306 | $as_echo "$as_me: failed program was:" >&5 |
| 2307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2308 | |
| 2309 | ac_retval=1 |
| 2310 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2311 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2312 | as_fn_set_status $ac_retval |
| 2313 | |
| 2314 | } # ac_fn_cxx_try_compile |
| 2315 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2316 | # ac_fn_c_try_link LINENO |
| 2317 | # ----------------------- |
| 2318 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2319 | ac_fn_c_try_link () |
| 2320 | { |
| 2321 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2323 | if { { ac_try="$ac_link" |
| 2324 | case "(($ac_try" in |
| 2325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2326 | *) ac_try_echo=$ac_try;; |
| 2327 | esac |
| 2328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2329 | $as_echo "$ac_try_echo"; } >&5 |
| 2330 | (eval "$ac_link") 2>conftest.err |
| 2331 | ac_status=$? |
| 2332 | if test -s conftest.err; then |
| 2333 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2334 | cat conftest.er1 >&5 |
| 2335 | mv -f conftest.er1 conftest.err |
| 2336 | fi |
| 2337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2338 | test $ac_status = 0; } && { |
| 2339 | test -z "$ac_c_werror_flag" || |
| 2340 | test ! -s conftest.err |
| 2341 | } && test -s conftest$ac_exeext && { |
| 2342 | test "$cross_compiling" = yes || |
| 2343 | $as_test_x conftest$ac_exeext |
| 2344 | }; then : |
| 2345 | ac_retval=0 |
| 2346 | else |
| 2347 | $as_echo "$as_me: failed program was:" >&5 |
| 2348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2349 | |
| 2350 | ac_retval=1 |
| 2351 | fi |
| 2352 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2353 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2354 | # interfere with the next link command; also delete a directory that is |
| 2355 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2356 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2357 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2358 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2359 | |
| 2360 | } # ac_fn_c_try_link |
| 2361 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2362 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2363 | # ---------------------------------- |
| 2364 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2365 | ac_fn_c_check_func () |
| 2366 | { |
| 2367 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2369 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2370 | if eval \${$3+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2371 | $as_echo_n "(cached) " >&6 |
| 2372 | else |
| 2373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2374 | /* end confdefs.h. */ |
| 2375 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2377 | #define $2 innocuous_$2 |
| 2378 | |
| 2379 | /* System header to define __stub macros and hopefully few prototypes, |
| 2380 | which can conflict with char $2 (); below. |
| 2381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2382 | <limits.h> exists even on freestanding compilers. */ |
| 2383 | |
| 2384 | #ifdef __STDC__ |
| 2385 | # include <limits.h> |
| 2386 | #else |
| 2387 | # include <assert.h> |
| 2388 | #endif |
| 2389 | |
| 2390 | #undef $2 |
| 2391 | |
| 2392 | /* Override any GCC internal prototype to avoid an error. |
| 2393 | Use char because int might match the return type of a GCC |
| 2394 | builtin and then its argument prototype would still apply. */ |
| 2395 | #ifdef __cplusplus |
| 2396 | extern "C" |
| 2397 | #endif |
| 2398 | char $2 (); |
| 2399 | /* The GNU C library defines this for functions which it implements |
| 2400 | to always fail with ENOSYS. Some functions are actually named |
| 2401 | something starting with __ and the normal name is an alias. */ |
| 2402 | #if defined __stub_$2 || defined __stub___$2 |
| 2403 | choke me |
| 2404 | #endif |
| 2405 | |
| 2406 | int |
| 2407 | main () |
| 2408 | { |
| 2409 | return $2 (); |
| 2410 | ; |
| 2411 | return 0; |
| 2412 | } |
| 2413 | _ACEOF |
| 2414 | if ac_fn_c_try_link "$LINENO"; then : |
| 2415 | eval "$3=yes" |
| 2416 | else |
| 2417 | eval "$3=no" |
| 2418 | fi |
| 2419 | rm -f core conftest.err conftest.$ac_objext \ |
| 2420 | conftest$ac_exeext conftest.$ac_ext |
| 2421 | fi |
| 2422 | eval ac_res=\$$3 |
| 2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2424 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2425 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2426 | |
| 2427 | } # ac_fn_c_check_func |
| 2428 | |
| 2429 | # ac_fn_cxx_try_cpp LINENO |
| 2430 | # ------------------------ |
| 2431 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2432 | ac_fn_cxx_try_cpp () |
| 2433 | { |
| 2434 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2435 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2436 | case "(($ac_try" in |
| 2437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2438 | *) ac_try_echo=$ac_try;; |
| 2439 | esac |
| 2440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2441 | $as_echo "$ac_try_echo"; } >&5 |
| 2442 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2443 | ac_status=$? |
| 2444 | if test -s conftest.err; then |
| 2445 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2446 | cat conftest.er1 >&5 |
| 2447 | mv -f conftest.er1 conftest.err |
| 2448 | fi |
| 2449 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2450 | test $ac_status = 0; } > conftest.i && { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2451 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2452 | test ! -s conftest.err |
| 2453 | }; then : |
| 2454 | ac_retval=0 |
| 2455 | else |
| 2456 | $as_echo "$as_me: failed program was:" >&5 |
| 2457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2458 | |
| 2459 | ac_retval=1 |
| 2460 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2461 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2462 | as_fn_set_status $ac_retval |
| 2463 | |
| 2464 | } # ac_fn_cxx_try_cpp |
| 2465 | |
| 2466 | # ac_fn_cxx_try_link LINENO |
| 2467 | # ------------------------- |
| 2468 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2469 | ac_fn_cxx_try_link () |
| 2470 | { |
| 2471 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2472 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2473 | if { { ac_try="$ac_link" |
| 2474 | case "(($ac_try" in |
| 2475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2476 | *) ac_try_echo=$ac_try;; |
| 2477 | esac |
| 2478 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2479 | $as_echo "$ac_try_echo"; } >&5 |
| 2480 | (eval "$ac_link") 2>conftest.err |
| 2481 | ac_status=$? |
| 2482 | if test -s conftest.err; then |
| 2483 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2484 | cat conftest.er1 >&5 |
| 2485 | mv -f conftest.er1 conftest.err |
| 2486 | fi |
| 2487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2488 | test $ac_status = 0; } && { |
| 2489 | test -z "$ac_cxx_werror_flag" || |
| 2490 | test ! -s conftest.err |
| 2491 | } && test -s conftest$ac_exeext && { |
| 2492 | test "$cross_compiling" = yes || |
| 2493 | $as_test_x conftest$ac_exeext |
| 2494 | }; then : |
| 2495 | ac_retval=0 |
| 2496 | else |
| 2497 | $as_echo "$as_me: failed program was:" >&5 |
| 2498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2499 | |
| 2500 | ac_retval=1 |
| 2501 | fi |
| 2502 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2503 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2504 | # interfere with the next link command; also delete a directory that is |
| 2505 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2506 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2507 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2508 | as_fn_set_status $ac_retval |
| 2509 | |
| 2510 | } # ac_fn_cxx_try_link |
| 2511 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2512 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2513 | # --------------------------------------------- |
| 2514 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2515 | # accordingly. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2516 | ac_fn_c_check_decl () |
| 2517 | { |
| 2518 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2519 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2520 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2522 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2523 | if eval \${$3+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2524 | $as_echo_n "(cached) " >&6 |
| 2525 | else |
| 2526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2527 | /* end confdefs.h. */ |
| 2528 | $4 |
| 2529 | int |
| 2530 | main () |
| 2531 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2532 | #ifndef $as_decl_name |
| 2533 | #ifdef __cplusplus |
| 2534 | (void) $as_decl_use; |
| 2535 | #else |
| 2536 | (void) $as_decl_name; |
| 2537 | #endif |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2538 | #endif |
| 2539 | |
| 2540 | ; |
| 2541 | return 0; |
| 2542 | } |
| 2543 | _ACEOF |
| 2544 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2545 | eval "$3=yes" |
| 2546 | else |
| 2547 | eval "$3=no" |
| 2548 | fi |
| 2549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2550 | fi |
| 2551 | eval ac_res=\$$3 |
| 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2553 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2554 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2555 | |
| 2556 | } # ac_fn_c_check_decl |
| 2557 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2558 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2559 | # ------------------------------------------- |
| 2560 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2561 | # variable VAR accordingly. |
| 2562 | ac_fn_c_check_type () |
| 2563 | { |
| 2564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2566 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2567 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2568 | $as_echo_n "(cached) " >&6 |
| 2569 | else |
| 2570 | eval "$3=no" |
| 2571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2572 | /* end confdefs.h. */ |
| 2573 | $4 |
| 2574 | int |
| 2575 | main () |
| 2576 | { |
| 2577 | if (sizeof ($2)) |
| 2578 | return 0; |
| 2579 | ; |
| 2580 | return 0; |
| 2581 | } |
| 2582 | _ACEOF |
| 2583 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2585 | /* end confdefs.h. */ |
| 2586 | $4 |
| 2587 | int |
| 2588 | main () |
| 2589 | { |
| 2590 | if (sizeof (($2))) |
| 2591 | return 0; |
| 2592 | ; |
| 2593 | return 0; |
| 2594 | } |
| 2595 | _ACEOF |
| 2596 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2597 | |
| 2598 | else |
| 2599 | eval "$3=yes" |
| 2600 | fi |
| 2601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2602 | fi |
| 2603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2604 | fi |
| 2605 | eval ac_res=\$$3 |
| 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2607 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2608 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2609 | |
| 2610 | } # ac_fn_c_check_type |
| 2611 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2612 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2613 | # ---------------------------------------------------- |
| 2614 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2615 | # INCLUDES, setting cache variable VAR accordingly. |
| 2616 | ac_fn_c_check_member () |
| 2617 | { |
| 2618 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2620 | $as_echo_n "checking for $2.$3... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2621 | if eval \${$4+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2622 | $as_echo_n "(cached) " >&6 |
| 2623 | else |
| 2624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2625 | /* end confdefs.h. */ |
| 2626 | $5 |
| 2627 | int |
| 2628 | main () |
| 2629 | { |
| 2630 | static $2 ac_aggr; |
| 2631 | if (ac_aggr.$3) |
| 2632 | return 0; |
| 2633 | ; |
| 2634 | return 0; |
| 2635 | } |
| 2636 | _ACEOF |
| 2637 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2638 | eval "$4=yes" |
| 2639 | else |
| 2640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2641 | /* end confdefs.h. */ |
| 2642 | $5 |
| 2643 | int |
| 2644 | main () |
| 2645 | { |
| 2646 | static $2 ac_aggr; |
| 2647 | if (sizeof ac_aggr.$3) |
| 2648 | return 0; |
| 2649 | ; |
| 2650 | return 0; |
| 2651 | } |
| 2652 | _ACEOF |
| 2653 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2654 | eval "$4=yes" |
| 2655 | else |
| 2656 | eval "$4=no" |
| 2657 | fi |
| 2658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2659 | fi |
| 2660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2661 | fi |
| 2662 | eval ac_res=\$$4 |
| 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2664 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2666 | |
| 2667 | } # ac_fn_c_check_member |
| 2668 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2669 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2670 | # ----------------------------------- |
| 2671 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2672 | # accordingly. |
| 2673 | ac_fn_c_find_intX_t () |
| 2674 | { |
| 2675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2677 | $as_echo_n "checking for int$2_t... " >&6; } |
| 2678 | if eval \${$3+:} false; then : |
| 2679 | $as_echo_n "(cached) " >&6 |
| 2680 | else |
| 2681 | eval "$3=no" |
| 2682 | # Order is important - never check a type that is potentially smaller |
| 2683 | # than half of the expected target width. |
| 2684 | for ac_type in int$2_t 'int' 'long int' \ |
| 2685 | 'long long int' 'short int' 'signed char'; do |
| 2686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2687 | /* end confdefs.h. */ |
| 2688 | $ac_includes_default |
| 2689 | enum { N = $2 / 2 - 1 }; |
| 2690 | int |
| 2691 | main () |
| 2692 | { |
| 2693 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2694 | test_array [0] = 0 |
| 2695 | |
| 2696 | ; |
| 2697 | return 0; |
| 2698 | } |
| 2699 | _ACEOF |
| 2700 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2702 | /* end confdefs.h. */ |
| 2703 | $ac_includes_default |
| 2704 | enum { N = $2 / 2 - 1 }; |
| 2705 | int |
| 2706 | main () |
| 2707 | { |
| 2708 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2709 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2710 | test_array [0] = 0 |
| 2711 | |
| 2712 | ; |
| 2713 | return 0; |
| 2714 | } |
| 2715 | _ACEOF |
| 2716 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2717 | |
| 2718 | else |
| 2719 | case $ac_type in #( |
| 2720 | int$2_t) : |
| 2721 | eval "$3=yes" ;; #( |
| 2722 | *) : |
| 2723 | eval "$3=\$ac_type" ;; |
| 2724 | esac |
| 2725 | fi |
| 2726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2727 | fi |
| 2728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2729 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2730 | |
| 2731 | else |
| 2732 | break |
| 2733 | fi |
| 2734 | done |
| 2735 | fi |
| 2736 | eval ac_res=\$$3 |
| 2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2738 | $as_echo "$ac_res" >&6; } |
| 2739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2740 | |
| 2741 | } # ac_fn_c_find_intX_t |
| 2742 | |
| 2743 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2744 | # ------------------------------------ |
| 2745 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2746 | # accordingly. |
| 2747 | ac_fn_c_find_uintX_t () |
| 2748 | { |
| 2749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2751 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 2752 | if eval \${$3+:} false; then : |
| 2753 | $as_echo_n "(cached) " >&6 |
| 2754 | else |
| 2755 | eval "$3=no" |
| 2756 | # Order is important - never check a type that is potentially smaller |
| 2757 | # than half of the expected target width. |
| 2758 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2759 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2761 | /* end confdefs.h. */ |
| 2762 | $ac_includes_default |
| 2763 | int |
| 2764 | main () |
| 2765 | { |
| 2766 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2767 | test_array [0] = 0 |
| 2768 | |
| 2769 | ; |
| 2770 | return 0; |
| 2771 | } |
| 2772 | _ACEOF |
| 2773 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2774 | case $ac_type in #( |
| 2775 | uint$2_t) : |
| 2776 | eval "$3=yes" ;; #( |
| 2777 | *) : |
| 2778 | eval "$3=\$ac_type" ;; |
| 2779 | esac |
| 2780 | fi |
| 2781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2782 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2783 | |
| 2784 | else |
| 2785 | break |
| 2786 | fi |
| 2787 | done |
| 2788 | fi |
| 2789 | eval ac_res=\$$3 |
| 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2791 | $as_echo "$ac_res" >&6; } |
| 2792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2793 | |
| 2794 | } # ac_fn_c_find_uintX_t |
| 2795 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2796 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2797 | # -------------------------------------------- |
| 2798 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2799 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2800 | # computed |
| 2801 | ac_fn_c_compute_int () |
| 2802 | { |
| 2803 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2804 | if test "$cross_compiling" = yes; then |
| 2805 | # Depending upon the size, compute the lo and hi bounds. |
| 2806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2807 | /* end confdefs.h. */ |
| 2808 | $4 |
| 2809 | int |
| 2810 | main () |
| 2811 | { |
| 2812 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2813 | test_array [0] = 0 |
| 2814 | |
| 2815 | ; |
| 2816 | return 0; |
| 2817 | } |
| 2818 | _ACEOF |
| 2819 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2820 | ac_lo=0 ac_mid=0 |
| 2821 | while :; do |
| 2822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2823 | /* end confdefs.h. */ |
| 2824 | $4 |
| 2825 | int |
| 2826 | main () |
| 2827 | { |
| 2828 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2829 | test_array [0] = 0 |
| 2830 | |
| 2831 | ; |
| 2832 | return 0; |
| 2833 | } |
| 2834 | _ACEOF |
| 2835 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2836 | ac_hi=$ac_mid; break |
| 2837 | else |
| 2838 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2839 | if test $ac_lo -le $ac_mid; then |
| 2840 | ac_lo= ac_hi= |
| 2841 | break |
| 2842 | fi |
| 2843 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2844 | fi |
| 2845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2846 | done |
| 2847 | else |
| 2848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2849 | /* end confdefs.h. */ |
| 2850 | $4 |
| 2851 | int |
| 2852 | main () |
| 2853 | { |
| 2854 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2855 | test_array [0] = 0 |
| 2856 | |
| 2857 | ; |
| 2858 | return 0; |
| 2859 | } |
| 2860 | _ACEOF |
| 2861 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2862 | ac_hi=-1 ac_mid=-1 |
| 2863 | while :; do |
| 2864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2865 | /* end confdefs.h. */ |
| 2866 | $4 |
| 2867 | int |
| 2868 | main () |
| 2869 | { |
| 2870 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2871 | test_array [0] = 0 |
| 2872 | |
| 2873 | ; |
| 2874 | return 0; |
| 2875 | } |
| 2876 | _ACEOF |
| 2877 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2878 | ac_lo=$ac_mid; break |
| 2879 | else |
| 2880 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2881 | if test $ac_mid -le $ac_hi; then |
| 2882 | ac_lo= ac_hi= |
| 2883 | break |
| 2884 | fi |
| 2885 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2886 | fi |
| 2887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2888 | done |
| 2889 | else |
| 2890 | ac_lo= ac_hi= |
| 2891 | fi |
| 2892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2893 | fi |
| 2894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2895 | # Binary search between lo and hi bounds. |
| 2896 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2897 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2899 | /* end confdefs.h. */ |
| 2900 | $4 |
| 2901 | int |
| 2902 | main () |
| 2903 | { |
| 2904 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2905 | test_array [0] = 0 |
| 2906 | |
| 2907 | ; |
| 2908 | return 0; |
| 2909 | } |
| 2910 | _ACEOF |
| 2911 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2912 | ac_hi=$ac_mid |
| 2913 | else |
| 2914 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2915 | fi |
| 2916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2917 | done |
| 2918 | case $ac_lo in #(( |
| 2919 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2920 | '') ac_retval=1 ;; |
| 2921 | esac |
| 2922 | else |
| 2923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2924 | /* end confdefs.h. */ |
| 2925 | $4 |
| 2926 | static long int longval () { return $2; } |
| 2927 | static unsigned long int ulongval () { return $2; } |
| 2928 | #include <stdio.h> |
| 2929 | #include <stdlib.h> |
| 2930 | int |
| 2931 | main () |
| 2932 | { |
| 2933 | |
| 2934 | FILE *f = fopen ("conftest.val", "w"); |
| 2935 | if (! f) |
| 2936 | return 1; |
| 2937 | if (($2) < 0) |
| 2938 | { |
| 2939 | long int i = longval (); |
| 2940 | if (i != ($2)) |
| 2941 | return 1; |
| 2942 | fprintf (f, "%ld", i); |
| 2943 | } |
| 2944 | else |
| 2945 | { |
| 2946 | unsigned long int i = ulongval (); |
| 2947 | if (i != ($2)) |
| 2948 | return 1; |
| 2949 | fprintf (f, "%lu", i); |
| 2950 | } |
| 2951 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2952 | on some platforms. */ |
| 2953 | return ferror (f) || fclose (f) != 0; |
| 2954 | |
| 2955 | ; |
| 2956 | return 0; |
| 2957 | } |
| 2958 | _ACEOF |
| 2959 | if ac_fn_c_try_run "$LINENO"; then : |
| 2960 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2961 | else |
| 2962 | ac_retval=1 |
| 2963 | fi |
| 2964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2965 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2966 | rm -f conftest.val |
| 2967 | |
| 2968 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2970 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2971 | |
| 2972 | } # ac_fn_c_compute_int |
| 2973 | |
| 2974 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2975 | # --------------------------------------------------------- |
| 2976 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2977 | # the include files in INCLUDES and setting the cache variable VAR |
| 2978 | # accordingly. |
| 2979 | ac_fn_cxx_check_header_mongrel () |
| 2980 | { |
| 2981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2982 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2984 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2985 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2986 | $as_echo_n "(cached) " >&6 |
| 2987 | fi |
| 2988 | eval ac_res=\$$3 |
| 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2990 | $as_echo "$ac_res" >&6; } |
| 2991 | else |
| 2992 | # Is the header compilable? |
| 2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2994 | $as_echo_n "checking $2 usability... " >&6; } |
| 2995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2996 | /* end confdefs.h. */ |
| 2997 | $4 |
| 2998 | #include <$2> |
| 2999 | _ACEOF |
| 3000 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3001 | ac_header_compiler=yes |
| 3002 | else |
| 3003 | ac_header_compiler=no |
| 3004 | fi |
| 3005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 3007 | $as_echo "$ac_header_compiler" >&6; } |
| 3008 | |
| 3009 | # Is the header present? |
| 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 3011 | $as_echo_n "checking $2 presence... " >&6; } |
| 3012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3013 | /* end confdefs.h. */ |
| 3014 | #include <$2> |
| 3015 | _ACEOF |
| 3016 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 3017 | ac_header_preproc=yes |
| 3018 | else |
| 3019 | ac_header_preproc=no |
| 3020 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3021 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 3023 | $as_echo "$ac_header_preproc" >&6; } |
| 3024 | |
| 3025 | # So? What about this header? |
| 3026 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 3027 | yes:no: ) |
| 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3029 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3031 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 3032 | ;; |
| 3033 | no:yes:* ) |
| 3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 3035 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 3037 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 3039 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 3041 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3043 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3044 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3045 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3046 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3047 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 3048 | ;; |
| 3049 | esac |
| 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3051 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3052 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3053 | $as_echo_n "(cached) " >&6 |
| 3054 | else |
| 3055 | eval "$3=\$ac_header_compiler" |
| 3056 | fi |
| 3057 | eval ac_res=\$$3 |
| 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3059 | $as_echo "$ac_res" >&6; } |
| 3060 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3062 | |
| 3063 | } # ac_fn_cxx_check_header_mongrel |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3064 | cat >config.log <<_ACEOF |
| 3065 | This file contains any messages produced by compilers while |
| 3066 | running configure, to aid debugging if configure makes a mistake. |
| 3067 | |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 3068 | It was created by ImageMagick $as_me 7.0.0-0, which was |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3069 | generated by GNU Autoconf 2.68. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3070 | |
| 3071 | $ $0 $@ |
| 3072 | |
| 3073 | _ACEOF |
| 3074 | exec 5>>config.log |
| 3075 | { |
| 3076 | cat <<_ASUNAME |
| 3077 | ## --------- ## |
| 3078 | ## Platform. ## |
| 3079 | ## --------- ## |
| 3080 | |
| 3081 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3082 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 3083 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 3084 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 3085 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 3086 | |
| 3087 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 3088 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 3089 | |
| 3090 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 3091 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 3092 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 3093 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 3094 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 3095 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 3096 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 3097 | |
| 3098 | _ASUNAME |
| 3099 | |
| 3100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3101 | for as_dir in $PATH |
| 3102 | do |
| 3103 | IFS=$as_save_IFS |
| 3104 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3105 | $as_echo "PATH: $as_dir" |
| 3106 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3107 | IFS=$as_save_IFS |
| 3108 | |
| 3109 | } >&5 |
| 3110 | |
| 3111 | cat >&5 <<_ACEOF |
| 3112 | |
| 3113 | |
| 3114 | ## ----------- ## |
| 3115 | ## Core tests. ## |
| 3116 | ## ----------- ## |
| 3117 | |
| 3118 | _ACEOF |
| 3119 | |
| 3120 | |
| 3121 | # Keep a trace of the command line. |
| 3122 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3123 | # Strip out --silent because we don't want to record it for future runs. |
| 3124 | # Also quote any args containing shell meta-characters. |
| 3125 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3126 | ac_configure_args= |
| 3127 | ac_configure_args0= |
| 3128 | ac_configure_args1= |
| 3129 | ac_must_keep_next=false |
| 3130 | for ac_pass in 1 2 |
| 3131 | do |
| 3132 | for ac_arg |
| 3133 | do |
| 3134 | case $ac_arg in |
| 3135 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3136 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3137 | | -silent | --silent | --silen | --sile | --sil) |
| 3138 | continue ;; |
| 3139 | *\'*) |
| 3140 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3141 | esac |
| 3142 | case $ac_pass in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3143 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3144 | 2) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3145 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3146 | if test $ac_must_keep_next = true; then |
| 3147 | ac_must_keep_next=false # Got value, back to normal. |
| 3148 | else |
| 3149 | case $ac_arg in |
| 3150 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3151 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3152 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3153 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3154 | case "$ac_configure_args0 " in |
| 3155 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3156 | esac |
| 3157 | ;; |
| 3158 | -* ) ac_must_keep_next=true ;; |
| 3159 | esac |
| 3160 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3161 | as_fn_append ac_configure_args " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3162 | ;; |
| 3163 | esac |
| 3164 | done |
| 3165 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3166 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3167 | { ac_configure_args1=; unset ac_configure_args1;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3168 | |
| 3169 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3170 | # config.log. We remove comments because anyway the quotes in there |
| 3171 | # would cause problems or look ugly. |
| 3172 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3173 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3174 | trap 'exit_status=$? |
| 3175 | # Save into config.log some information that might help in debugging. |
| 3176 | { |
| 3177 | echo |
| 3178 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3179 | $as_echo "## ---------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3180 | ## Cache variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3181 | ## ---------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3182 | echo |
| 3183 | # The following way of writing the cache mishandles newlines in values, |
| 3184 | ( |
| 3185 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3186 | eval ac_val=\$$ac_var |
| 3187 | case $ac_val in #( |
| 3188 | *${as_nl}*) |
| 3189 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3190 | *_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] | 3191 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3192 | esac |
| 3193 | case $ac_var in #( |
| 3194 | _ | IFS | as_nl) ;; #( |
| 3195 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3196 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3197 | esac ;; |
| 3198 | esac |
| 3199 | done |
| 3200 | (set) 2>&1 | |
| 3201 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3202 | *${as_nl}ac_space=\ *) |
| 3203 | sed -n \ |
| 3204 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3205 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3206 | ;; #( |
| 3207 | *) |
| 3208 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3209 | ;; |
| 3210 | esac | |
| 3211 | sort |
| 3212 | ) |
| 3213 | echo |
| 3214 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3215 | $as_echo "## ----------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3216 | ## Output variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3217 | ## ----------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3218 | echo |
| 3219 | for ac_var in $ac_subst_vars |
| 3220 | do |
| 3221 | eval ac_val=\$$ac_var |
| 3222 | case $ac_val in |
| 3223 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3224 | esac |
| 3225 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3226 | done | sort |
| 3227 | echo |
| 3228 | |
| 3229 | if test -n "$ac_subst_files"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3230 | $as_echo "## ------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3231 | ## File substitutions. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3232 | ## ------------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3233 | echo |
| 3234 | for ac_var in $ac_subst_files |
| 3235 | do |
| 3236 | eval ac_val=\$$ac_var |
| 3237 | case $ac_val in |
| 3238 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3239 | esac |
| 3240 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3241 | done | sort |
| 3242 | echo |
| 3243 | fi |
| 3244 | |
| 3245 | if test -s confdefs.h; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3246 | $as_echo "## ----------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3247 | ## confdefs.h. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3248 | ## ----------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3249 | echo |
| 3250 | cat confdefs.h |
| 3251 | echo |
| 3252 | fi |
| 3253 | test "$ac_signal" != 0 && |
| 3254 | $as_echo "$as_me: caught signal $ac_signal" |
| 3255 | $as_echo "$as_me: exit $exit_status" |
| 3256 | } >&5 |
| 3257 | rm -f core *.core core.conftest.* && |
| 3258 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3259 | exit $exit_status |
| 3260 | ' 0 |
| 3261 | for ac_signal in 1 2 13 15; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3262 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3263 | done |
| 3264 | ac_signal=0 |
| 3265 | |
| 3266 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3267 | rm -f -r conftest* confdefs.h |
| 3268 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3269 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3270 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3271 | # Predefined preprocessor variables. |
| 3272 | |
| 3273 | cat >>confdefs.h <<_ACEOF |
| 3274 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3275 | _ACEOF |
| 3276 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3277 | cat >>confdefs.h <<_ACEOF |
| 3278 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3279 | _ACEOF |
| 3280 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3281 | cat >>confdefs.h <<_ACEOF |
| 3282 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3283 | _ACEOF |
| 3284 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3285 | cat >>confdefs.h <<_ACEOF |
| 3286 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3287 | _ACEOF |
| 3288 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3289 | cat >>confdefs.h <<_ACEOF |
| 3290 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3291 | _ACEOF |
| 3292 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3293 | cat >>confdefs.h <<_ACEOF |
| 3294 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3295 | _ACEOF |
| 3296 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3297 | |
| 3298 | # Let the site file select an alternate cache file if it wants to. |
| 3299 | # Prefer an explicitly selected file to automatically selected ones. |
| 3300 | ac_site_file1=NONE |
| 3301 | ac_site_file2=NONE |
| 3302 | if test -n "$CONFIG_SITE"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3303 | # We do not want a PATH search for config.site. |
| 3304 | case $CONFIG_SITE in #(( |
| 3305 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 3306 | */*) ac_site_file1=$CONFIG_SITE;; |
| 3307 | *) ac_site_file1=./$CONFIG_SITE;; |
| 3308 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3309 | elif test "x$prefix" != xNONE; then |
| 3310 | ac_site_file1=$prefix/share/config.site |
| 3311 | ac_site_file2=$prefix/etc/config.site |
| 3312 | else |
| 3313 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3314 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3315 | fi |
| 3316 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3317 | do |
| 3318 | test "x$ac_site_file" = xNONE && continue |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3319 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3320 | { $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] | 3321 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3322 | sed 's/^/| /' "$ac_site_file" >&5 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3323 | . "$ac_site_file" \ |
| 3324 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3326 | as_fn_error $? "failed to load site script $ac_site_file |
| 3327 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3328 | fi |
| 3329 | done |
| 3330 | |
| 3331 | if test -r "$cache_file"; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3332 | # Some versions of bash will fail to source /dev/null (special files |
| 3333 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3334 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3336 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3337 | case $cache_file in |
| 3338 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3339 | *) . "./$cache_file";; |
| 3340 | esac |
| 3341 | fi |
| 3342 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3344 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3345 | >$cache_file |
| 3346 | fi |
| 3347 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3348 | as_fn_append ac_header_list " stdlib.h" |
| 3349 | as_fn_append ac_header_list " unistd.h" |
| 3350 | as_fn_append ac_header_list " sys/param.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3351 | # Check that the precious variables saved in the cache have kept the same |
| 3352 | # value. |
| 3353 | ac_cache_corrupted=false |
| 3354 | for ac_var in $ac_precious_vars; do |
| 3355 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3356 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3357 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3358 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3359 | case $ac_old_set,$ac_new_set in |
| 3360 | set,) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3361 | { $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] | 3362 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3363 | ac_cache_corrupted=: ;; |
| 3364 | ,set) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3365 | { $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] | 3366 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3367 | ac_cache_corrupted=: ;; |
| 3368 | ,);; |
| 3369 | *) |
| 3370 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3371 | # differences in whitespace do not lead to failure. |
| 3372 | ac_old_val_w=`echo x $ac_old_val` |
| 3373 | ac_new_val_w=`echo x $ac_new_val` |
| 3374 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3375 | { $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] | 3376 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3377 | ac_cache_corrupted=: |
| 3378 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3379 | { $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] | 3380 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3381 | eval $ac_var=\$ac_old_val |
| 3382 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3384 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3386 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3387 | fi;; |
| 3388 | esac |
| 3389 | # Pass precious variables to config.status. |
| 3390 | if test "$ac_new_set" = set; then |
| 3391 | case $ac_new_val in |
| 3392 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3393 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3394 | esac |
| 3395 | case " $ac_configure_args " in |
| 3396 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3397 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3398 | esac |
| 3399 | fi |
| 3400 | done |
| 3401 | if $ac_cache_corrupted; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3404 | { $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] | 3405 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3406 | 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] | 3407 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3408 | ## -------------------- ## |
| 3409 | ## Main body of script. ## |
| 3410 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3411 | |
| 3412 | ac_ext=c |
| 3413 | ac_cpp='$CPP $CPPFLAGS' |
| 3414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3417 | |
| 3418 | |
| 3419 | |
| 3420 | ac_aux_dir= |
| 3421 | for ac_dir in config "$srcdir"/config; do |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3422 | if test -f "$ac_dir/install-sh"; then |
| 3423 | ac_aux_dir=$ac_dir |
| 3424 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3425 | break |
| 3426 | elif test -f "$ac_dir/install.sh"; then |
| 3427 | ac_aux_dir=$ac_dir |
| 3428 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3429 | break |
| 3430 | elif test -f "$ac_dir/shtool"; then |
| 3431 | ac_aux_dir=$ac_dir |
| 3432 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3433 | break |
| 3434 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3435 | done |
| 3436 | if test -z "$ac_aux_dir"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3437 | 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] | 3438 | fi |
| 3439 | |
| 3440 | # These three variables are undocumented and unsupported, |
| 3441 | # and are intended to be withdrawn in a future Autoconf release. |
| 3442 | # They can cause serious problems if a builder's source tree is in a directory |
| 3443 | # whose full name contains unusual characters. |
| 3444 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3445 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3446 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | |
| 3451 | ac_config_headers="$ac_config_headers config/config.h" |
| 3452 | |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 3453 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3454 | ac_config_commands="$ac_config_commands MagickCore/magick-config.h" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3455 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3456 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3457 | |
| 3458 | |
| 3459 | # |
| 3460 | # Save initial user-tunable values |
| 3461 | # |
| 3462 | USER_LIBS=$LIBS |
| 3463 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3464 | eval isset=\${$var+set} |
| 3465 | if test "$isset" = 'set'; then |
| 3466 | eval val=$`echo $var` |
| 3467 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3468 | fi |
| 3469 | done |
| 3470 | |
| 3471 | |
| 3472 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3473 | |
| 3474 | |
| 3475 | # Source file containing package/library versioning information. |
| 3476 | . ${srcdir}/version.sh |
| 3477 | |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3478 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3479 | # Make sure we can run config.sub. |
| 3480 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3481 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3482 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3484 | $as_echo_n "checking build system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3485 | if ${ac_cv_build+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3486 | $as_echo_n "(cached) " >&6 |
| 3487 | else |
| 3488 | ac_build_alias=$build_alias |
| 3489 | test "x$ac_build_alias" = x && |
| 3490 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3491 | test "x$ac_build_alias" = x && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3492 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3493 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3494 | 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] | 3495 | |
| 3496 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3498 | $as_echo "$ac_cv_build" >&6; } |
| 3499 | case $ac_cv_build in |
| 3500 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3501 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3502 | esac |
| 3503 | build=$ac_cv_build |
| 3504 | ac_save_IFS=$IFS; IFS='-' |
| 3505 | set x $ac_cv_build |
| 3506 | shift |
| 3507 | build_cpu=$1 |
| 3508 | build_vendor=$2 |
| 3509 | shift; shift |
| 3510 | # Remember, the first character of IFS is used to create $*, |
| 3511 | # except with old shells: |
| 3512 | build_os=$* |
| 3513 | IFS=$ac_save_IFS |
| 3514 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3515 | |
| 3516 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3518 | $as_echo_n "checking host system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3519 | if ${ac_cv_host+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3520 | $as_echo_n "(cached) " >&6 |
| 3521 | else |
| 3522 | if test "x$host_alias" = x; then |
| 3523 | ac_cv_host=$ac_cv_build |
| 3524 | else |
| 3525 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3526 | 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] | 3527 | fi |
| 3528 | |
| 3529 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3531 | $as_echo "$ac_cv_host" >&6; } |
| 3532 | case $ac_cv_host in |
| 3533 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3534 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3535 | esac |
| 3536 | host=$ac_cv_host |
| 3537 | ac_save_IFS=$IFS; IFS='-' |
| 3538 | set x $ac_cv_host |
| 3539 | shift |
| 3540 | host_cpu=$1 |
| 3541 | host_vendor=$2 |
| 3542 | shift; shift |
| 3543 | # Remember, the first character of IFS is used to create $*, |
| 3544 | # except with old shells: |
| 3545 | host_os=$* |
| 3546 | IFS=$ac_save_IFS |
| 3547 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3548 | |
| 3549 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3551 | $as_echo_n "checking target system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3552 | if ${ac_cv_target+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3553 | $as_echo_n "(cached) " >&6 |
| 3554 | else |
| 3555 | if test "x$target_alias" = x; then |
| 3556 | ac_cv_target=$ac_cv_host |
| 3557 | else |
| 3558 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3559 | 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] | 3560 | fi |
| 3561 | |
| 3562 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3564 | $as_echo "$ac_cv_target" >&6; } |
| 3565 | case $ac_cv_target in |
| 3566 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3567 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3568 | esac |
| 3569 | target=$ac_cv_target |
| 3570 | ac_save_IFS=$IFS; IFS='-' |
| 3571 | set x $ac_cv_target |
| 3572 | shift |
| 3573 | target_cpu=$1 |
| 3574 | target_vendor=$2 |
| 3575 | shift; shift |
| 3576 | # Remember, the first character of IFS is used to create $*, |
| 3577 | # except with old shells: |
| 3578 | target_os=$* |
| 3579 | IFS=$ac_save_IFS |
| 3580 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3581 | |
| 3582 | |
| 3583 | # The aliases save the names the user supplied, while $host etc. |
| 3584 | # will get canonicalized. |
| 3585 | test -n "$target_alias" && |
| 3586 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3587 | NONENONEs,x,x, && |
| 3588 | program_prefix=${target_alias}- |
| 3589 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3590 | |
| 3591 | |
| 3592 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3593 | MAGICK_TARGET_CPU=$host_cpu |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3594 | |
| 3595 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3596 | MAGICK_TARGET_VENDOR=$host_vendor |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3597 | |
| 3598 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3599 | MAGICK_TARGET_OS=$host_os |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3600 | |
| 3601 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3602 | # Substitute library versioning |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3603 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` |
| 3604 | |
| 3605 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE |
| 3606 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 3607 | MAGICK_SVN_REVISION=5835 |
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 3608 | |
| 3609 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3610 | |
| 3611 | |
| 3612 | # Ensure that make can run correctly |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3614 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3615 | # Just in case |
| 3616 | sleep 1 |
| 3617 | echo timestamp > conftest.file |
| 3618 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3619 | # name. Accept space and tab only in the latter. |
| 3620 | am_lf=' |
| 3621 | ' |
| 3622 | case `pwd` in |
| 3623 | *[\\\"\#\$\&\'\`$am_lf]*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3624 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3625 | esac |
| 3626 | case $srcdir in |
| 3627 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3628 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3629 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3630 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3631 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3632 | # arguments. Must try -L first in case configure is actually a |
| 3633 | # symlink; some systems play weird games with the mod time of symlinks |
| 3634 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3635 | # directory). |
| 3636 | if ( |
| 3637 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3638 | if test "$*" = "X"; then |
| 3639 | # -L didn't work. |
| 3640 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3641 | fi |
| 3642 | rm -f conftest.file |
| 3643 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3644 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3645 | |
| 3646 | # If neither matched, then we have a broken ls. This can happen |
| 3647 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3648 | # broken ls alias from the environment. This has actually |
| 3649 | # happened. Such a system could not be considered "sane". |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3650 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3651 | alias in your environment" "$LINENO" 5 |
| 3652 | fi |
| 3653 | |
| 3654 | test "$2" = conftest.file |
| 3655 | ) |
| 3656 | then |
| 3657 | # Ok. |
| 3658 | : |
| 3659 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3660 | as_fn_error $? "newly created file is older than distributed files! |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3661 | Check your system clock" "$LINENO" 5 |
| 3662 | fi |
| 3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3664 | $as_echo "yes" >&6; } |
| 3665 | |
| 3666 | am__api_version='1.11' |
| 3667 | |
| 3668 | # Find a good install program. We prefer a C program (faster), |
| 3669 | # so one script is as good as another. But avoid the broken or |
| 3670 | # incompatible versions: |
| 3671 | # SysV /etc/install, /usr/sbin/install |
| 3672 | # SunOS /usr/etc/install |
| 3673 | # IRIX /sbin/install |
| 3674 | # AIX /bin/install |
| 3675 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3676 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3677 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3678 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3679 | # OS/2's system install, which has a completely different semantic |
| 3680 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3681 | # Reject install programs that cannot install multiple files. |
| 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3683 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3684 | if test -z "$INSTALL"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3685 | if ${ac_cv_path_install+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3686 | $as_echo_n "(cached) " >&6 |
| 3687 | else |
| 3688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3689 | for as_dir in $PATH |
| 3690 | do |
| 3691 | IFS=$as_save_IFS |
| 3692 | test -z "$as_dir" && as_dir=. |
| 3693 | # Account for people who put trailing slashes in PATH elements. |
| 3694 | case $as_dir/ in #(( |
| 3695 | ./ | .// | /[cC]/* | \ |
| 3696 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3697 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3698 | /usr/ucb/* ) ;; |
| 3699 | *) |
| 3700 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3701 | # Don't use installbsd from OSF since it installs stuff as root |
| 3702 | # by default. |
| 3703 | for ac_prog in ginstall scoinst install; do |
| 3704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3705 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3706 | if test $ac_prog = install && |
| 3707 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3708 | # AIX install. It has an incompatible calling convention. |
| 3709 | : |
| 3710 | elif test $ac_prog = install && |
| 3711 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3712 | # program-specific install script used by HP pwplus--don't use. |
| 3713 | : |
| 3714 | else |
| 3715 | rm -rf conftest.one conftest.two conftest.dir |
| 3716 | echo one > conftest.one |
| 3717 | echo two > conftest.two |
| 3718 | mkdir conftest.dir |
| 3719 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3720 | test -s conftest.one && test -s conftest.two && |
| 3721 | test -s conftest.dir/conftest.one && |
| 3722 | test -s conftest.dir/conftest.two |
| 3723 | then |
| 3724 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3725 | break 3 |
| 3726 | fi |
| 3727 | fi |
| 3728 | fi |
| 3729 | done |
| 3730 | done |
| 3731 | ;; |
| 3732 | esac |
| 3733 | |
| 3734 | done |
| 3735 | IFS=$as_save_IFS |
| 3736 | |
| 3737 | rm -rf conftest.one conftest.two conftest.dir |
| 3738 | |
| 3739 | fi |
| 3740 | if test "${ac_cv_path_install+set}" = set; then |
| 3741 | INSTALL=$ac_cv_path_install |
| 3742 | else |
| 3743 | # As a last resort, use the slow shell script. Don't cache a |
| 3744 | # value for INSTALL within a source directory, because that will |
| 3745 | # break other packages using the cache if that directory is |
| 3746 | # removed, or if the value is a relative name. |
| 3747 | INSTALL=$ac_install_sh |
| 3748 | fi |
| 3749 | fi |
| 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3751 | $as_echo "$INSTALL" >&6; } |
| 3752 | |
| 3753 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3754 | # It thinks the first close brace ends the variable substitution. |
| 3755 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3756 | |
| 3757 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3758 | |
| 3759 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3760 | |
| 3761 | test "$program_prefix" != NONE && |
| 3762 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3763 | # Use a double $ so make ignores it. |
| 3764 | test "$program_suffix" != NONE && |
| 3765 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3766 | # Double any \ or $. |
| 3767 | # By default was `s,x,x', remove it if useless. |
| 3768 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3769 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3770 | |
| 3771 | # expand $ac_aux_dir to an absolute path |
| 3772 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3773 | |
| 3774 | if test x"${MISSING+set}" != xset; then |
| 3775 | case $am_aux_dir in |
| 3776 | *\ * | *\ *) |
| 3777 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3778 | *) |
| 3779 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3780 | esac |
| 3781 | fi |
| 3782 | # Use eval to expand $SHELL |
| 3783 | if eval "$MISSING --run true"; then |
| 3784 | am_missing_run="$MISSING --run " |
| 3785 | else |
| 3786 | am_missing_run= |
| 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3788 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3789 | fi |
| 3790 | |
| 3791 | if test x"${install_sh}" != xset; then |
| 3792 | case $am_aux_dir in |
| 3793 | *\ * | *\ *) |
| 3794 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3795 | *) |
| 3796 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3797 | esac |
| 3798 | fi |
| 3799 | |
| 3800 | # Installed binaries are usually stripped using `strip' when the user |
| 3801 | # run `make install-strip'. However `strip' might not be the right |
| 3802 | # tool to use in cross-compilation environments, therefore Automake |
| 3803 | # will honor the `STRIP' environment variable to overrule this program. |
| 3804 | if test "$cross_compiling" != no; then |
| 3805 | if test -n "$ac_tool_prefix"; then |
| 3806 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3807 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3809 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3810 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3811 | $as_echo_n "(cached) " >&6 |
| 3812 | else |
| 3813 | if test -n "$STRIP"; then |
| 3814 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3815 | else |
| 3816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3817 | for as_dir in $PATH |
| 3818 | do |
| 3819 | IFS=$as_save_IFS |
| 3820 | test -z "$as_dir" && as_dir=. |
| 3821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3823 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3825 | break 2 |
| 3826 | fi |
| 3827 | done |
| 3828 | done |
| 3829 | IFS=$as_save_IFS |
| 3830 | |
| 3831 | fi |
| 3832 | fi |
| 3833 | STRIP=$ac_cv_prog_STRIP |
| 3834 | if test -n "$STRIP"; then |
| 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3836 | $as_echo "$STRIP" >&6; } |
| 3837 | else |
| 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3839 | $as_echo "no" >&6; } |
| 3840 | fi |
| 3841 | |
| 3842 | |
| 3843 | fi |
| 3844 | if test -z "$ac_cv_prog_STRIP"; then |
| 3845 | ac_ct_STRIP=$STRIP |
| 3846 | # Extract the first word of "strip", so it can be a program name with args. |
| 3847 | set dummy strip; ac_word=$2 |
| 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3849 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3850 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3851 | $as_echo_n "(cached) " >&6 |
| 3852 | else |
| 3853 | if test -n "$ac_ct_STRIP"; then |
| 3854 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3855 | else |
| 3856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3857 | for as_dir in $PATH |
| 3858 | do |
| 3859 | IFS=$as_save_IFS |
| 3860 | test -z "$as_dir" && as_dir=. |
| 3861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3863 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3865 | break 2 |
| 3866 | fi |
| 3867 | done |
| 3868 | done |
| 3869 | IFS=$as_save_IFS |
| 3870 | |
| 3871 | fi |
| 3872 | fi |
| 3873 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3874 | if test -n "$ac_ct_STRIP"; then |
| 3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3876 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3877 | else |
| 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3879 | $as_echo "no" >&6; } |
| 3880 | fi |
| 3881 | |
| 3882 | if test "x$ac_ct_STRIP" = x; then |
| 3883 | STRIP=":" |
| 3884 | else |
| 3885 | case $cross_compiling:$ac_tool_warned in |
| 3886 | yes:) |
| 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3889 | ac_tool_warned=yes ;; |
| 3890 | esac |
| 3891 | STRIP=$ac_ct_STRIP |
| 3892 | fi |
| 3893 | else |
| 3894 | STRIP="$ac_cv_prog_STRIP" |
| 3895 | fi |
| 3896 | |
| 3897 | fi |
| 3898 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3899 | |
| 3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3901 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3902 | if test -z "$MKDIR_P"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3903 | if ${ac_cv_path_mkdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3904 | $as_echo_n "(cached) " >&6 |
| 3905 | else |
| 3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3907 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3908 | do |
| 3909 | IFS=$as_save_IFS |
| 3910 | test -z "$as_dir" && as_dir=. |
| 3911 | for ac_prog in mkdir gmkdir; do |
| 3912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3913 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3914 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3915 | 'mkdir (GNU coreutils) '* | \ |
| 3916 | 'mkdir (coreutils) '* | \ |
| 3917 | 'mkdir (fileutils) '4.1*) |
| 3918 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3919 | break 3;; |
| 3920 | esac |
| 3921 | done |
| 3922 | done |
| 3923 | done |
| 3924 | IFS=$as_save_IFS |
| 3925 | |
| 3926 | fi |
| 3927 | |
| 3928 | test -d ./--version && rmdir ./--version |
| 3929 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3930 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3931 | else |
| 3932 | # As a last resort, use the slow shell script. Don't cache a |
| 3933 | # value for MKDIR_P within a source directory, because that will |
| 3934 | # break other packages using the cache if that directory is |
| 3935 | # removed, or if the value is a relative name. |
| 3936 | MKDIR_P="$ac_install_sh -d" |
| 3937 | fi |
| 3938 | fi |
| 3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3940 | $as_echo "$MKDIR_P" >&6; } |
| 3941 | |
| 3942 | mkdir_p="$MKDIR_P" |
| 3943 | case $mkdir_p in |
| 3944 | [\\/$]* | ?:[\\/]*) ;; |
| 3945 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3946 | esac |
| 3947 | |
| 3948 | for ac_prog in gawk mawk nawk awk |
| 3949 | do |
| 3950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3951 | set dummy $ac_prog; ac_word=$2 |
| 3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3953 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3954 | if ${ac_cv_prog_AWK+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3955 | $as_echo_n "(cached) " >&6 |
| 3956 | else |
| 3957 | if test -n "$AWK"; then |
| 3958 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3959 | else |
| 3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3961 | for as_dir in $PATH |
| 3962 | do |
| 3963 | IFS=$as_save_IFS |
| 3964 | test -z "$as_dir" && as_dir=. |
| 3965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3967 | ac_cv_prog_AWK="$ac_prog" |
| 3968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3969 | break 2 |
| 3970 | fi |
| 3971 | done |
| 3972 | done |
| 3973 | IFS=$as_save_IFS |
| 3974 | |
| 3975 | fi |
| 3976 | fi |
| 3977 | AWK=$ac_cv_prog_AWK |
| 3978 | if test -n "$AWK"; then |
| 3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3980 | $as_echo "$AWK" >&6; } |
| 3981 | else |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3983 | $as_echo "no" >&6; } |
| 3984 | fi |
| 3985 | |
| 3986 | |
| 3987 | test -n "$AWK" && break |
| 3988 | done |
| 3989 | |
| 3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3991 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3992 | set x ${MAKE-make} |
| 3993 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3994 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3995 | $as_echo_n "(cached) " >&6 |
| 3996 | else |
| 3997 | cat >conftest.make <<\_ACEOF |
| 3998 | SHELL = /bin/sh |
| 3999 | all: |
| 4000 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4001 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4002 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4003 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4004 | *@@@%%%=?*=@@@%%%*) |
| 4005 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4006 | *) |
| 4007 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4008 | esac |
| 4009 | rm -f conftest.make |
| 4010 | fi |
| 4011 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4013 | $as_echo "yes" >&6; } |
| 4014 | SET_MAKE= |
| 4015 | else |
| 4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4017 | $as_echo "no" >&6; } |
| 4018 | SET_MAKE="MAKE=${MAKE-make}" |
| 4019 | fi |
| 4020 | |
| 4021 | rm -rf .tst 2>/dev/null |
| 4022 | mkdir .tst 2>/dev/null |
| 4023 | if test -d .tst; then |
| 4024 | am__leading_dot=. |
| 4025 | else |
| 4026 | am__leading_dot=_ |
| 4027 | fi |
| 4028 | rmdir .tst 2>/dev/null |
| 4029 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4030 | # Check whether --enable-silent-rules was given. |
| 4031 | if test "${enable_silent_rules+set}" = set; then : |
| 4032 | enableval=$enable_silent_rules; |
| 4033 | fi |
| 4034 | |
| 4035 | case $enable_silent_rules in |
| 4036 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4037 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4038 | *) AM_DEFAULT_VERBOSITY=1;; |
| 4039 | esac |
| 4040 | AM_BACKSLASH='\' |
| 4041 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4042 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 4043 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4044 | # is not polluted with repeated "-I." |
| 4045 | am__isrc=' -I$(srcdir)' |
| 4046 | # test to see if srcdir already configured |
| 4047 | if test -f $srcdir/config.status; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4048 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4049 | fi |
| 4050 | fi |
| 4051 | |
| 4052 | # test whether we have cygpath |
| 4053 | if test -z "$CYGPATH_W"; then |
| 4054 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 4055 | CYGPATH_W='cygpath -w' |
| 4056 | else |
| 4057 | CYGPATH_W=echo |
| 4058 | fi |
| 4059 | fi |
| 4060 | |
| 4061 | |
| 4062 | # Define the identity of the package. |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 4063 | PACKAGE='ImageMagick' |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 4064 | VERSION='7.0.0-0' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4065 | |
| 4066 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4067 | cat >>confdefs.h <<_ACEOF |
| 4068 | #define PACKAGE "$PACKAGE" |
| 4069 | _ACEOF |
| 4070 | |
| 4071 | |
| 4072 | cat >>confdefs.h <<_ACEOF |
| 4073 | #define VERSION "$VERSION" |
| 4074 | _ACEOF |
| 4075 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4076 | # Some tools Automake needs. |
| 4077 | |
| 4078 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4079 | |
| 4080 | |
| 4081 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4082 | |
| 4083 | |
| 4084 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4085 | |
| 4086 | |
| 4087 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4088 | |
| 4089 | |
| 4090 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4091 | |
| 4092 | # We need awk for the "check" target. The system "awk" is bad on |
| 4093 | # some platforms. |
| 4094 | # Always define AMTAR for backward compatibility. |
| 4095 | |
| 4096 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 4097 | |
| 4098 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4104 | |
| 4105 | # Enable support for silent build rules |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4106 | # Check whether --enable-silent-rules was given. |
| 4107 | if test "${enable_silent_rules+set}" = set; then : |
| 4108 | enableval=$enable_silent_rules; |
| 4109 | fi |
| 4110 | |
| 4111 | case $enable_silent_rules in |
| 4112 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4113 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4114 | *) AM_DEFAULT_VERBOSITY=0;; |
| 4115 | esac |
| 4116 | AM_BACKSLASH='\' |
| 4117 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4118 | |
| 4119 | MAGICK_LIB_VERSION="0x" |
| 4120 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 4121 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4122 | fi |
| 4123 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 4124 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 4125 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4126 | fi |
| 4127 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 4128 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 4129 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4130 | fi |
| 4131 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 4132 | |
| 4133 | |
| 4134 | # Definition used to define MagickLibVersionText in version.h |
| 4135 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 4136 | |
| 4137 | |
| 4138 | # Definition used to define MagickLibVersionNumber in version.h |
| 4139 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 4140 | |
| 4141 | |
| 4142 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 4143 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 4144 | |
| 4145 | |
| 4146 | PERLMAINCC=$CC |
| 4147 | |
| 4148 | MAGICK_CFLAGS='' |
| 4149 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 4150 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 4151 | MAGICK_LDFLAGS='' |
| 4152 | MAGICK_LIBS='' |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 4153 | MAGICK_FEATURES='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4154 | |
| 4155 | # |
| 4156 | # Evaluate shell variable equivalents to Makefile directory variables |
| 4157 | # |
| 4158 | if test "x$prefix" = xNONE; then |
| 4159 | prefix=$ac_default_prefix |
| 4160 | fi |
| 4161 | # Let make expand exec_prefix. |
| 4162 | if test "x$exec_prefix" = xNONE; then |
| 4163 | exec_prefix='${prefix}' |
| 4164 | fi |
| 4165 | |
| 4166 | # |
| 4167 | eval "eval PREFIX_DIR=${prefix}" |
| 4168 | |
| 4169 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 4170 | |
| 4171 | eval "eval BIN_DIR=$bindir" |
| 4172 | |
| 4173 | eval "eval SBIN_DIR=$sbindir" |
| 4174 | |
| 4175 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 4176 | |
| 4177 | eval "eval DATA_DIR=$datadir" |
| 4178 | |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 4179 | eval "eval DOC_DIR=$docdir" |
| 4180 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4181 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 4182 | |
| 4183 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 4184 | |
| 4185 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 4186 | |
| 4187 | eval "eval LIB_DIR=$libdir" |
| 4188 | |
| 4189 | eval "eval INCLUDE_DIR=$includedir" |
| 4190 | |
| 4191 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 4192 | |
| 4193 | eval "eval INFO_DIR=$infodir" |
| 4194 | |
| 4195 | eval "eval MAN_DIR=$mandir" |
| 4196 | |
| 4197 | |
| 4198 | # Get full paths to source and build directories |
| 4199 | srcdirfull="`cd $srcdir && pwd`" |
| 4200 | builddir="`pwd`" |
| 4201 | |
| 4202 | # |
| 4203 | # Compute variables useful for running uninstalled software. |
| 4204 | # |
| 4205 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 4206 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 4207 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 4208 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 4209 | DIRSEP=':' |
| 4210 | case "${build_os}" in |
| 4211 | mingw* ) |
| 4212 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 4213 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 4214 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 4215 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 4216 | DIRSEP=';' |
| 4217 | ;; |
| 4218 | esac |
| 4219 | case "${host_os}" in |
| 4220 | mingw* ) |
| 4221 | DIRSEP=';' |
| 4222 | ;; |
| 4223 | esac |
| 4224 | |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4230 | |
| 4231 | # |
| 4232 | # Enable OS features. |
| 4233 | # |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4234 | DEPDIR="${am__leading_dot}deps" |
| 4235 | |
| 4236 | ac_config_commands="$ac_config_commands depfiles" |
| 4237 | |
| 4238 | |
| 4239 | am_make=${MAKE-make} |
| 4240 | cat > confinc << 'END' |
| 4241 | am__doit: |
| 4242 | @echo this is the am__doit target |
| 4243 | .PHONY: am__doit |
| 4244 | END |
| 4245 | # If we don't find an include directive, just comment out the code. |
| 4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4247 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4248 | am__include="#" |
| 4249 | am__quote= |
| 4250 | _am_result=none |
| 4251 | # First try GNU make style include. |
| 4252 | echo "include confinc" > confmf |
| 4253 | # Ignore all kinds of additional output from `make'. |
| 4254 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4255 | *the\ am__doit\ target*) |
| 4256 | am__include=include |
| 4257 | am__quote= |
| 4258 | _am_result=GNU |
| 4259 | ;; |
| 4260 | esac |
| 4261 | # Now try BSD make style include. |
| 4262 | if test "$am__include" = "#"; then |
| 4263 | echo '.include "confinc"' > confmf |
| 4264 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4265 | *the\ am__doit\ target*) |
| 4266 | am__include=.include |
| 4267 | am__quote="\"" |
| 4268 | _am_result=BSD |
| 4269 | ;; |
| 4270 | esac |
| 4271 | fi |
| 4272 | |
| 4273 | |
| 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4275 | $as_echo "$_am_result" >&6; } |
| 4276 | rm -f confinc confmf |
| 4277 | |
| 4278 | # Check whether --enable-dependency-tracking was given. |
| 4279 | if test "${enable_dependency_tracking+set}" = set; then : |
| 4280 | enableval=$enable_dependency_tracking; |
| 4281 | fi |
| 4282 | |
| 4283 | if test "x$enable_dependency_tracking" != xno; then |
| 4284 | am_depcomp="$ac_aux_dir/depcomp" |
| 4285 | AMDEPBACKSLASH='\' |
| 4286 | fi |
| 4287 | if test "x$enable_dependency_tracking" != xno; then |
| 4288 | AMDEP_TRUE= |
| 4289 | AMDEP_FALSE='#' |
| 4290 | else |
| 4291 | AMDEP_TRUE='#' |
| 4292 | AMDEP_FALSE= |
| 4293 | fi |
| 4294 | |
| 4295 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4296 | ac_ext=c |
| 4297 | ac_cpp='$CPP $CPPFLAGS' |
| 4298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4301 | if test -n "$ac_tool_prefix"; then |
| 4302 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4303 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4305 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4306 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4307 | $as_echo_n "(cached) " >&6 |
| 4308 | else |
| 4309 | if test -n "$CC"; then |
| 4310 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4311 | else |
| 4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4313 | for as_dir in $PATH |
| 4314 | do |
| 4315 | IFS=$as_save_IFS |
| 4316 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4319 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4320 | $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] | 4321 | break 2 |
| 4322 | fi |
| 4323 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4324 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4325 | IFS=$as_save_IFS |
| 4326 | |
| 4327 | fi |
| 4328 | fi |
| 4329 | CC=$ac_cv_prog_CC |
| 4330 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4332 | $as_echo "$CC" >&6; } |
| 4333 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4335 | $as_echo "no" >&6; } |
| 4336 | fi |
| 4337 | |
| 4338 | |
| 4339 | fi |
| 4340 | if test -z "$ac_cv_prog_CC"; then |
| 4341 | ac_ct_CC=$CC |
| 4342 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4343 | set dummy gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4345 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4346 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4347 | $as_echo_n "(cached) " >&6 |
| 4348 | else |
| 4349 | if test -n "$ac_ct_CC"; then |
| 4350 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4351 | else |
| 4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4353 | for as_dir in $PATH |
| 4354 | do |
| 4355 | IFS=$as_save_IFS |
| 4356 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4359 | ac_cv_prog_ac_ct_CC="gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4360 | $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] | 4361 | break 2 |
| 4362 | fi |
| 4363 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4364 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4365 | IFS=$as_save_IFS |
| 4366 | |
| 4367 | fi |
| 4368 | fi |
| 4369 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4370 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4372 | $as_echo "$ac_ct_CC" >&6; } |
| 4373 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4375 | $as_echo "no" >&6; } |
| 4376 | fi |
| 4377 | |
| 4378 | if test "x$ac_ct_CC" = x; then |
| 4379 | CC="" |
| 4380 | else |
| 4381 | case $cross_compiling:$ac_tool_warned in |
| 4382 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4383 | { $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] | 4384 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4385 | ac_tool_warned=yes ;; |
| 4386 | esac |
| 4387 | CC=$ac_ct_CC |
| 4388 | fi |
| 4389 | else |
| 4390 | CC="$ac_cv_prog_CC" |
| 4391 | fi |
| 4392 | |
| 4393 | if test -z "$CC"; then |
| 4394 | if test -n "$ac_tool_prefix"; then |
| 4395 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4396 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4398 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4399 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4400 | $as_echo_n "(cached) " >&6 |
| 4401 | else |
| 4402 | if test -n "$CC"; then |
| 4403 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4404 | else |
| 4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4406 | for as_dir in $PATH |
| 4407 | do |
| 4408 | IFS=$as_save_IFS |
| 4409 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4412 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4413 | $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] | 4414 | break 2 |
| 4415 | fi |
| 4416 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4417 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4418 | IFS=$as_save_IFS |
| 4419 | |
| 4420 | fi |
| 4421 | fi |
| 4422 | CC=$ac_cv_prog_CC |
| 4423 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4425 | $as_echo "$CC" >&6; } |
| 4426 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4428 | $as_echo "no" >&6; } |
| 4429 | fi |
| 4430 | |
| 4431 | |
| 4432 | fi |
| 4433 | fi |
| 4434 | if test -z "$CC"; then |
| 4435 | # Extract the first word of "cc", so it can be a program name with args. |
| 4436 | set dummy cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4438 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4439 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4440 | $as_echo_n "(cached) " >&6 |
| 4441 | else |
| 4442 | if test -n "$CC"; then |
| 4443 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4444 | else |
| 4445 | ac_prog_rejected=no |
| 4446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4447 | for as_dir in $PATH |
| 4448 | do |
| 4449 | IFS=$as_save_IFS |
| 4450 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4452 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4453 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4454 | ac_prog_rejected=yes |
| 4455 | continue |
| 4456 | fi |
| 4457 | ac_cv_prog_CC="cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4458 | $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] | 4459 | break 2 |
| 4460 | fi |
| 4461 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4462 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4463 | IFS=$as_save_IFS |
| 4464 | |
| 4465 | if test $ac_prog_rejected = yes; then |
| 4466 | # We found a bogon in the path, so make sure we never use it. |
| 4467 | set dummy $ac_cv_prog_CC |
| 4468 | shift |
| 4469 | if test $# != 0; then |
| 4470 | # We chose a different compiler from the bogus one. |
| 4471 | # However, it has the same basename, so the bogon will be chosen |
| 4472 | # first if we set CC to just the basename; use the full file name. |
| 4473 | shift |
| 4474 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4475 | fi |
| 4476 | fi |
| 4477 | fi |
| 4478 | fi |
| 4479 | CC=$ac_cv_prog_CC |
| 4480 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4482 | $as_echo "$CC" >&6; } |
| 4483 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4485 | $as_echo "no" >&6; } |
| 4486 | fi |
| 4487 | |
| 4488 | |
| 4489 | fi |
| 4490 | if test -z "$CC"; then |
| 4491 | if test -n "$ac_tool_prefix"; then |
| 4492 | for ac_prog in cl.exe |
| 4493 | do |
| 4494 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4495 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4497 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4498 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4499 | $as_echo_n "(cached) " >&6 |
| 4500 | else |
| 4501 | if test -n "$CC"; then |
| 4502 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4503 | else |
| 4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4505 | for as_dir in $PATH |
| 4506 | do |
| 4507 | IFS=$as_save_IFS |
| 4508 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4511 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4512 | $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] | 4513 | break 2 |
| 4514 | fi |
| 4515 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4516 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4517 | IFS=$as_save_IFS |
| 4518 | |
| 4519 | fi |
| 4520 | fi |
| 4521 | CC=$ac_cv_prog_CC |
| 4522 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4524 | $as_echo "$CC" >&6; } |
| 4525 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4527 | $as_echo "no" >&6; } |
| 4528 | fi |
| 4529 | |
| 4530 | |
| 4531 | test -n "$CC" && break |
| 4532 | done |
| 4533 | fi |
| 4534 | if test -z "$CC"; then |
| 4535 | ac_ct_CC=$CC |
| 4536 | for ac_prog in cl.exe |
| 4537 | do |
| 4538 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4539 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4541 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4542 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4543 | $as_echo_n "(cached) " >&6 |
| 4544 | else |
| 4545 | if test -n "$ac_ct_CC"; then |
| 4546 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4547 | else |
| 4548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4549 | for as_dir in $PATH |
| 4550 | do |
| 4551 | IFS=$as_save_IFS |
| 4552 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4555 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4556 | $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] | 4557 | break 2 |
| 4558 | fi |
| 4559 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4560 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4561 | IFS=$as_save_IFS |
| 4562 | |
| 4563 | fi |
| 4564 | fi |
| 4565 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4566 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4568 | $as_echo "$ac_ct_CC" >&6; } |
| 4569 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4571 | $as_echo "no" >&6; } |
| 4572 | fi |
| 4573 | |
| 4574 | |
| 4575 | test -n "$ac_ct_CC" && break |
| 4576 | done |
| 4577 | |
| 4578 | if test "x$ac_ct_CC" = x; then |
| 4579 | CC="" |
| 4580 | else |
| 4581 | case $cross_compiling:$ac_tool_warned in |
| 4582 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4583 | { $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] | 4584 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4585 | ac_tool_warned=yes ;; |
| 4586 | esac |
| 4587 | CC=$ac_ct_CC |
| 4588 | fi |
| 4589 | fi |
| 4590 | |
| 4591 | fi |
| 4592 | |
| 4593 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4594 | 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] | 4595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4596 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4597 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4598 | |
| 4599 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4600 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4601 | set X $ac_compile |
| 4602 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4603 | for ac_option in --version -v -V -qversion; do |
| 4604 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4605 | case "(($ac_try" in |
| 4606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4607 | *) ac_try_echo=$ac_try;; |
| 4608 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4610 | $as_echo "$ac_try_echo"; } >&5 |
| 4611 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4612 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4613 | if test -s conftest.err; then |
| 4614 | sed '10a\ |
| 4615 | ... rest of stderr output deleted ... |
| 4616 | 10q' conftest.err >conftest.er1 |
| 4617 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4618 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4619 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4621 | test $ac_status = 0; } |
| 4622 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4623 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4625 | /* end confdefs.h. */ |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4626 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4627 | int |
| 4628 | main () |
| 4629 | { |
| 4630 | |
| 4631 | ; |
| 4632 | return 0; |
| 4633 | } |
| 4634 | _ACEOF |
| 4635 | ac_clean_files_save=$ac_clean_files |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4636 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4637 | # Try to create an executable without -o first, disregard a.out. |
| 4638 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4639 | # of exeext. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4641 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4642 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4643 | |
| 4644 | # The possible output files: |
| 4645 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4646 | |
| 4647 | ac_rmfiles= |
| 4648 | for ac_file in $ac_files |
| 4649 | do |
| 4650 | case $ac_file in |
| 4651 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4652 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4653 | esac |
| 4654 | done |
| 4655 | rm -f $ac_rmfiles |
| 4656 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4657 | if { { ac_try="$ac_link_default" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4658 | case "(($ac_try" in |
| 4659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4660 | *) ac_try_echo=$ac_try;; |
| 4661 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4663 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4664 | (eval "$ac_link_default") 2>&5 |
| 4665 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4667 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4668 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4669 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4670 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4671 | # so that the user can short-circuit this test for compilers unknown to |
| 4672 | # Autoconf. |
| 4673 | for ac_file in $ac_files '' |
| 4674 | do |
| 4675 | test -f "$ac_file" || continue |
| 4676 | case $ac_file in |
| 4677 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4678 | ;; |
| 4679 | [ab].out ) |
| 4680 | # We found the default executable, but exeext='' is most |
| 4681 | # certainly right. |
| 4682 | break;; |
| 4683 | *.* ) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4684 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4685 | then :; else |
| 4686 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4687 | fi |
| 4688 | # We set ac_cv_exeext here because the later test for it is not |
| 4689 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4690 | # argument, so we may need to know it at that point already. |
| 4691 | # Even if this section looks crufty: it has the advantage of |
| 4692 | # actually working. |
| 4693 | break;; |
| 4694 | * ) |
| 4695 | break;; |
| 4696 | esac |
| 4697 | done |
| 4698 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4699 | |
| 4700 | else |
| 4701 | ac_file='' |
| 4702 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4703 | if test -z "$ac_file"; then : |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4705 | $as_echo "no" >&6; } |
| 4706 | $as_echo "$as_me: failed program was:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4708 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4709 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4711 | as_fn_error 77 "C compiler cannot create executables |
| 4712 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4713 | else |
| 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4715 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4716 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4718 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4720 | $as_echo "$ac_file" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4721 | ac_exeext=$ac_cv_exeext |
| 4722 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4723 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4724 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4726 | $as_echo_n "checking for suffix of executables... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4727 | if { { ac_try="$ac_link" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4728 | case "(($ac_try" in |
| 4729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4730 | *) ac_try_echo=$ac_try;; |
| 4731 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4733 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4734 | (eval "$ac_link") 2>&5 |
| 4735 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4737 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4738 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4739 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4740 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4741 | # `rm'. |
| 4742 | for ac_file in conftest.exe conftest conftest.*; do |
| 4743 | test -f "$ac_file" || continue |
| 4744 | case $ac_file in |
| 4745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4746 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4747 | break;; |
| 4748 | * ) break;; |
| 4749 | esac |
| 4750 | done |
| 4751 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4754 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4755 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4756 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4757 | rm -f conftest conftest$ac_cv_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4759 | $as_echo "$ac_cv_exeext" >&6; } |
| 4760 | |
| 4761 | rm -f conftest.$ac_ext |
| 4762 | EXEEXT=$ac_cv_exeext |
| 4763 | ac_exeext=$EXEEXT |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4765 | /* end confdefs.h. */ |
| 4766 | #include <stdio.h> |
| 4767 | int |
| 4768 | main () |
| 4769 | { |
| 4770 | FILE *f = fopen ("conftest.out", "w"); |
| 4771 | return ferror (f) || fclose (f) != 0; |
| 4772 | |
| 4773 | ; |
| 4774 | return 0; |
| 4775 | } |
| 4776 | _ACEOF |
| 4777 | ac_clean_files="$ac_clean_files conftest.out" |
| 4778 | # Check that the compiler produces executables we can run. If not, either |
| 4779 | # the compiler is broken, or we cross compile. |
| 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4781 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4782 | if test "$cross_compiling" != yes; then |
| 4783 | { { ac_try="$ac_link" |
| 4784 | case "(($ac_try" in |
| 4785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4786 | *) ac_try_echo=$ac_try;; |
| 4787 | esac |
| 4788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4789 | $as_echo "$ac_try_echo"; } >&5 |
| 4790 | (eval "$ac_link") 2>&5 |
| 4791 | ac_status=$? |
| 4792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4793 | test $ac_status = 0; } |
| 4794 | if { ac_try='./conftest$ac_cv_exeext' |
| 4795 | { { case "(($ac_try" in |
| 4796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4797 | *) ac_try_echo=$ac_try;; |
| 4798 | esac |
| 4799 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4800 | $as_echo "$ac_try_echo"; } >&5 |
| 4801 | (eval "$ac_try") 2>&5 |
| 4802 | ac_status=$? |
| 4803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4804 | test $ac_status = 0; }; }; then |
| 4805 | cross_compiling=no |
| 4806 | else |
| 4807 | if test "$cross_compiling" = maybe; then |
| 4808 | cross_compiling=yes |
| 4809 | else |
| 4810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4812 | as_fn_error $? "cannot run C compiled programs. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4813 | If you meant to cross compile, use \`--host'. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4814 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4815 | fi |
| 4816 | fi |
| 4817 | fi |
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4819 | $as_echo "$cross_compiling" >&6; } |
| 4820 | |
| 4821 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4822 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4823 | { $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] | 4824 | $as_echo_n "checking for suffix of object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4825 | if ${ac_cv_objext+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4826 | $as_echo_n "(cached) " >&6 |
| 4827 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4829 | /* end confdefs.h. */ |
| 4830 | |
| 4831 | int |
| 4832 | main () |
| 4833 | { |
| 4834 | |
| 4835 | ; |
| 4836 | return 0; |
| 4837 | } |
| 4838 | _ACEOF |
| 4839 | rm -f conftest.o conftest.obj |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4840 | if { { ac_try="$ac_compile" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4841 | case "(($ac_try" in |
| 4842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4843 | *) ac_try_echo=$ac_try;; |
| 4844 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4845 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4846 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4847 | (eval "$ac_compile") 2>&5 |
| 4848 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4849 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4850 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4851 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4852 | test -f "$ac_file" || continue; |
| 4853 | case $ac_file in |
| 4854 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4855 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4856 | break;; |
| 4857 | esac |
| 4858 | done |
| 4859 | else |
| 4860 | $as_echo "$as_me: failed program was:" >&5 |
| 4861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4862 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4865 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4866 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4867 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4868 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4869 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4871 | $as_echo "$ac_cv_objext" >&6; } |
| 4872 | OBJEXT=$ac_cv_objext |
| 4873 | ac_objext=$OBJEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4874 | { $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] | 4875 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4876 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4877 | $as_echo_n "(cached) " >&6 |
| 4878 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4880 | /* end confdefs.h. */ |
| 4881 | |
| 4882 | int |
| 4883 | main () |
| 4884 | { |
| 4885 | #ifndef __GNUC__ |
| 4886 | choke me |
| 4887 | #endif |
| 4888 | |
| 4889 | ; |
| 4890 | return 0; |
| 4891 | } |
| 4892 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4893 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4894 | ac_compiler_gnu=yes |
| 4895 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4896 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4897 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4899 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4900 | |
| 4901 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4902 | { $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] | 4903 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4904 | if test $ac_compiler_gnu = yes; then |
| 4905 | GCC=yes |
| 4906 | else |
| 4907 | GCC= |
| 4908 | fi |
| 4909 | ac_test_CFLAGS=${CFLAGS+set} |
| 4910 | ac_save_CFLAGS=$CFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4912 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4913 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4914 | $as_echo_n "(cached) " >&6 |
| 4915 | else |
| 4916 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4917 | ac_c_werror_flag=yes |
| 4918 | ac_cv_prog_cc_g=no |
| 4919 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4921 | /* end confdefs.h. */ |
| 4922 | |
| 4923 | int |
| 4924 | main () |
| 4925 | { |
| 4926 | |
| 4927 | ; |
| 4928 | return 0; |
| 4929 | } |
| 4930 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4931 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4932 | ac_cv_prog_cc_g=yes |
| 4933 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4934 | CFLAGS="" |
| 4935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4936 | /* end confdefs.h. */ |
| 4937 | |
| 4938 | int |
| 4939 | main () |
| 4940 | { |
| 4941 | |
| 4942 | ; |
| 4943 | return 0; |
| 4944 | } |
| 4945 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4946 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4947 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4948 | else |
| 4949 | ac_c_werror_flag=$ac_save_c_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4950 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4952 | /* end confdefs.h. */ |
| 4953 | |
| 4954 | int |
| 4955 | main () |
| 4956 | { |
| 4957 | |
| 4958 | ; |
| 4959 | return 0; |
| 4960 | } |
| 4961 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4962 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4963 | ac_cv_prog_cc_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4964 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4966 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4968 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4970 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4971 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4972 | { $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] | 4973 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4974 | if test "$ac_test_CFLAGS" = set; then |
| 4975 | CFLAGS=$ac_save_CFLAGS |
| 4976 | elif test $ac_cv_prog_cc_g = yes; then |
| 4977 | if test "$GCC" = yes; then |
| 4978 | CFLAGS="-g -O2" |
| 4979 | else |
| 4980 | CFLAGS="-g" |
| 4981 | fi |
| 4982 | else |
| 4983 | if test "$GCC" = yes; then |
| 4984 | CFLAGS="-O2" |
| 4985 | else |
| 4986 | CFLAGS= |
| 4987 | fi |
| 4988 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4989 | { $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] | 4990 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4991 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4992 | $as_echo_n "(cached) " >&6 |
| 4993 | else |
| 4994 | ac_cv_prog_cc_c89=no |
| 4995 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4997 | /* end confdefs.h. */ |
| 4998 | #include <stdarg.h> |
| 4999 | #include <stdio.h> |
| 5000 | #include <sys/types.h> |
| 5001 | #include <sys/stat.h> |
| 5002 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5003 | struct buf { int x; }; |
| 5004 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5005 | static char *e (p, i) |
| 5006 | char **p; |
| 5007 | int i; |
| 5008 | { |
| 5009 | return p[i]; |
| 5010 | } |
| 5011 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5012 | { |
| 5013 | char *s; |
| 5014 | va_list v; |
| 5015 | va_start (v,p); |
| 5016 | s = g (p, va_arg (v,int)); |
| 5017 | va_end (v); |
| 5018 | return s; |
| 5019 | } |
| 5020 | |
| 5021 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5022 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5023 | These don't provoke an error unfortunately, instead are silently treated |
| 5024 | as 'x'. The following induces an error, until -std is added to get |
| 5025 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5026 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5027 | that's true only with -std. */ |
| 5028 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5029 | |
| 5030 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5031 | inside strings and character constants. */ |
| 5032 | #define FOO(x) 'x' |
| 5033 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5034 | |
| 5035 | int test (int i, double x); |
| 5036 | struct s1 {int (*f) (int a);}; |
| 5037 | struct s2 {int (*f) (double a);}; |
| 5038 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5039 | int argc; |
| 5040 | char **argv; |
| 5041 | int |
| 5042 | main () |
| 5043 | { |
| 5044 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5045 | ; |
| 5046 | return 0; |
| 5047 | } |
| 5048 | _ACEOF |
| 5049 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5050 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5051 | do |
| 5052 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5053 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5054 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5055 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5056 | rm -f core conftest.err conftest.$ac_objext |
| 5057 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5058 | done |
| 5059 | rm -f conftest.$ac_ext |
| 5060 | CC=$ac_save_CC |
| 5061 | |
| 5062 | fi |
| 5063 | # AC_CACHE_VAL |
| 5064 | case "x$ac_cv_prog_cc_c89" in |
| 5065 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5067 | $as_echo "none needed" >&6; } ;; |
| 5068 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5070 | $as_echo "unsupported" >&6; } ;; |
| 5071 | *) |
| 5072 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5073 | { $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] | 5074 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5075 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5076 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5077 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5078 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5079 | |
| 5080 | ac_ext=c |
| 5081 | ac_cpp='$CPP $CPPFLAGS' |
| 5082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5085 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5086 | depcc="$CC" am_compiler_list= |
| 5087 | |
| 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5089 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5090 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5091 | $as_echo_n "(cached) " >&6 |
| 5092 | else |
| 5093 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5094 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5095 | # making bogus files that we don't know about and never remove. For |
| 5096 | # instance it was reported that on HP-UX the gcc test will end up |
| 5097 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5098 | # in D'. |
| 5099 | mkdir conftest.dir |
| 5100 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5101 | # using a relative directory. |
| 5102 | cp "$am_depcomp" conftest.dir |
| 5103 | cd conftest.dir |
| 5104 | # We will build objects and dependencies in a subdirectory because |
| 5105 | # it helps to detect inapplicable dependency modes. For instance |
| 5106 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5107 | # side effect of compilation, but ICC will put the dependencies in |
| 5108 | # the current directory while Tru64 will put them in the object |
| 5109 | # directory. |
| 5110 | mkdir sub |
| 5111 | |
| 5112 | am_cv_CC_dependencies_compiler_type=none |
| 5113 | if test "$am_compiler_list" = ""; then |
| 5114 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5115 | fi |
| 5116 | am__universal=false |
| 5117 | case " $depcc " in #( |
| 5118 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5119 | esac |
| 5120 | |
| 5121 | for depmode in $am_compiler_list; do |
| 5122 | # Setup a source with many dependencies, because some compilers |
| 5123 | # like to wrap large dependency lists on column 80 (with \), and |
| 5124 | # we should not choose a depcomp mode which is confused by this. |
| 5125 | # |
| 5126 | # We need to recreate these files for each test, as the compiler may |
| 5127 | # overwrite some of them when testing with obscure command lines. |
| 5128 | # This happens at least with the AIX C compiler. |
| 5129 | : > sub/conftest.c |
| 5130 | for i in 1 2 3 4 5 6; do |
| 5131 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5132 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5133 | # Solaris 8's {/usr,}/bin/sh. |
| 5134 | touch sub/conftst$i.h |
| 5135 | done |
| 5136 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5137 | |
| 5138 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5139 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5140 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5141 | # versions had trouble with output in subdirs |
| 5142 | am__obj=sub/conftest.${OBJEXT-o} |
| 5143 | am__minus_obj="-o $am__obj" |
| 5144 | case $depmode in |
| 5145 | gcc) |
| 5146 | # This depmode causes a compiler race in universal mode. |
| 5147 | test "$am__universal" = false || continue |
| 5148 | ;; |
| 5149 | nosideeffect) |
| 5150 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5151 | # only be used when explicitly requested |
| 5152 | if test "x$enable_dependency_tracking" = xyes; then |
| 5153 | continue |
| 5154 | else |
| 5155 | break |
| 5156 | fi |
| 5157 | ;; |
| 5158 | msvisualcpp | msvcmsys) |
| 5159 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5160 | # not run yet. These depmodes are late enough in the game, and |
| 5161 | # so weak that their functioning should not be impacted. |
| 5162 | am__obj=conftest.${OBJEXT-o} |
| 5163 | am__minus_obj= |
| 5164 | ;; |
| 5165 | none) break ;; |
| 5166 | esac |
| 5167 | if depmode=$depmode \ |
| 5168 | source=sub/conftest.c object=$am__obj \ |
| 5169 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5170 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5171 | >/dev/null 2>conftest.err && |
| 5172 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5173 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5174 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5175 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5176 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5177 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5178 | # that says an option was ignored or not supported. |
| 5179 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5180 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5181 | # The diagnosis changed in icc 8.0: |
| 5182 | # icc: Command line remark: option '-MP' not supported |
| 5183 | if (grep 'ignoring option' conftest.err || |
| 5184 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5185 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5186 | break |
| 5187 | fi |
| 5188 | fi |
| 5189 | done |
| 5190 | |
| 5191 | cd .. |
| 5192 | rm -rf conftest.dir |
| 5193 | else |
| 5194 | am_cv_CC_dependencies_compiler_type=none |
| 5195 | fi |
| 5196 | |
| 5197 | fi |
| 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5199 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5200 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5201 | |
| 5202 | if |
| 5203 | test "x$enable_dependency_tracking" != xno \ |
| 5204 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5205 | am__fastdepCC_TRUE= |
| 5206 | am__fastdepCC_FALSE='#' |
| 5207 | else |
| 5208 | am__fastdepCC_TRUE='#' |
| 5209 | am__fastdepCC_FALSE= |
| 5210 | fi |
| 5211 | |
| 5212 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5213 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5214 | ac_ext=c |
| 5215 | ac_cpp='$CPP $CPPFLAGS' |
| 5216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5220 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5221 | # On Suns, sometimes $CPP names a directory. |
| 5222 | if test -n "$CPP" && test -d "$CPP"; then |
| 5223 | CPP= |
| 5224 | fi |
| 5225 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5226 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5227 | $as_echo_n "(cached) " >&6 |
| 5228 | else |
| 5229 | # Double quotes because CPP needs to be expanded |
| 5230 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5231 | do |
| 5232 | ac_preproc_ok=false |
| 5233 | for ac_c_preproc_warn_flag in '' yes |
| 5234 | do |
| 5235 | # Use a header file that comes with gcc, so configuring glibc |
| 5236 | # with a fresh cross-compiler works. |
| 5237 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5238 | # <limits.h> exists even on freestanding compilers. |
| 5239 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5240 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5242 | /* end confdefs.h. */ |
| 5243 | #ifdef __STDC__ |
| 5244 | # include <limits.h> |
| 5245 | #else |
| 5246 | # include <assert.h> |
| 5247 | #endif |
| 5248 | Syntax error |
| 5249 | _ACEOF |
| 5250 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5251 | |
| 5252 | else |
| 5253 | # Broken: fails on valid input. |
| 5254 | continue |
| 5255 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5256 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5257 | |
| 5258 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5259 | # can be detected and how. |
| 5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5261 | /* end confdefs.h. */ |
| 5262 | #include <ac_nonexistent.h> |
| 5263 | _ACEOF |
| 5264 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5265 | # Broken: success on invalid input. |
| 5266 | continue |
| 5267 | else |
| 5268 | # Passes both tests. |
| 5269 | ac_preproc_ok=: |
| 5270 | break |
| 5271 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5272 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5273 | |
| 5274 | done |
| 5275 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5276 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5277 | if $ac_preproc_ok; then : |
| 5278 | break |
| 5279 | fi |
| 5280 | |
| 5281 | done |
| 5282 | ac_cv_prog_CPP=$CPP |
| 5283 | |
| 5284 | fi |
| 5285 | CPP=$ac_cv_prog_CPP |
| 5286 | else |
| 5287 | ac_cv_prog_CPP=$CPP |
| 5288 | fi |
| 5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5290 | $as_echo "$CPP" >&6; } |
| 5291 | ac_preproc_ok=false |
| 5292 | for ac_c_preproc_warn_flag in '' yes |
| 5293 | do |
| 5294 | # Use a header file that comes with gcc, so configuring glibc |
| 5295 | # with a fresh cross-compiler works. |
| 5296 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5297 | # <limits.h> exists even on freestanding compilers. |
| 5298 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5299 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5301 | /* end confdefs.h. */ |
| 5302 | #ifdef __STDC__ |
| 5303 | # include <limits.h> |
| 5304 | #else |
| 5305 | # include <assert.h> |
| 5306 | #endif |
| 5307 | Syntax error |
| 5308 | _ACEOF |
| 5309 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5310 | |
| 5311 | else |
| 5312 | # Broken: fails on valid input. |
| 5313 | continue |
| 5314 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5315 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5316 | |
| 5317 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5318 | # can be detected and how. |
| 5319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5320 | /* end confdefs.h. */ |
| 5321 | #include <ac_nonexistent.h> |
| 5322 | _ACEOF |
| 5323 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5324 | # Broken: success on invalid input. |
| 5325 | continue |
| 5326 | else |
| 5327 | # Passes both tests. |
| 5328 | ac_preproc_ok=: |
| 5329 | break |
| 5330 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5331 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5332 | |
| 5333 | done |
| 5334 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5335 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5336 | if $ac_preproc_ok; then : |
| 5337 | |
| 5338 | else |
| 5339 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5340 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5341 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5342 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5343 | fi |
| 5344 | |
| 5345 | ac_ext=c |
| 5346 | ac_cpp='$CPP $CPPFLAGS' |
| 5347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5350 | |
| 5351 | |
| 5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5353 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5354 | if ${ac_cv_path_GREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5355 | $as_echo_n "(cached) " >&6 |
| 5356 | else |
| 5357 | if test -z "$GREP"; then |
| 5358 | ac_path_GREP_found=false |
| 5359 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5361 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5362 | do |
| 5363 | IFS=$as_save_IFS |
| 5364 | test -z "$as_dir" && as_dir=. |
| 5365 | for ac_prog in grep ggrep; do |
| 5366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5367 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5368 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5369 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5370 | # Check for GNU $ac_path_GREP |
| 5371 | case `"$ac_path_GREP" --version 2>&1` in |
| 5372 | *GNU*) |
| 5373 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5374 | *) |
| 5375 | ac_count=0 |
| 5376 | $as_echo_n 0123456789 >"conftest.in" |
| 5377 | while : |
| 5378 | do |
| 5379 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5380 | mv "conftest.tmp" "conftest.in" |
| 5381 | cp "conftest.in" "conftest.nl" |
| 5382 | $as_echo 'GREP' >> "conftest.nl" |
| 5383 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5384 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5385 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5386 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5387 | # Best one so far, save it but keep looking for a better one |
| 5388 | ac_cv_path_GREP="$ac_path_GREP" |
| 5389 | ac_path_GREP_max=$ac_count |
| 5390 | fi |
| 5391 | # 10*(2^10) chars as input seems more than enough |
| 5392 | test $ac_count -gt 10 && break |
| 5393 | done |
| 5394 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5395 | esac |
| 5396 | |
| 5397 | $ac_path_GREP_found && break 3 |
| 5398 | done |
| 5399 | done |
| 5400 | done |
| 5401 | IFS=$as_save_IFS |
| 5402 | if test -z "$ac_cv_path_GREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5403 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5404 | fi |
| 5405 | else |
| 5406 | ac_cv_path_GREP=$GREP |
| 5407 | fi |
| 5408 | |
| 5409 | fi |
| 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5411 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5412 | GREP="$ac_cv_path_GREP" |
| 5413 | |
| 5414 | |
| 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5416 | $as_echo_n "checking for egrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5417 | if ${ac_cv_path_EGREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5418 | $as_echo_n "(cached) " >&6 |
| 5419 | else |
| 5420 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5421 | then ac_cv_path_EGREP="$GREP -E" |
| 5422 | else |
| 5423 | if test -z "$EGREP"; then |
| 5424 | ac_path_EGREP_found=false |
| 5425 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5427 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5428 | do |
| 5429 | IFS=$as_save_IFS |
| 5430 | test -z "$as_dir" && as_dir=. |
| 5431 | for ac_prog in egrep; do |
| 5432 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5433 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5434 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5435 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5436 | # Check for GNU $ac_path_EGREP |
| 5437 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5438 | *GNU*) |
| 5439 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5440 | *) |
| 5441 | ac_count=0 |
| 5442 | $as_echo_n 0123456789 >"conftest.in" |
| 5443 | while : |
| 5444 | do |
| 5445 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5446 | mv "conftest.tmp" "conftest.in" |
| 5447 | cp "conftest.in" "conftest.nl" |
| 5448 | $as_echo 'EGREP' >> "conftest.nl" |
| 5449 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5450 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5451 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5452 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5453 | # Best one so far, save it but keep looking for a better one |
| 5454 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5455 | ac_path_EGREP_max=$ac_count |
| 5456 | fi |
| 5457 | # 10*(2^10) chars as input seems more than enough |
| 5458 | test $ac_count -gt 10 && break |
| 5459 | done |
| 5460 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5461 | esac |
| 5462 | |
| 5463 | $ac_path_EGREP_found && break 3 |
| 5464 | done |
| 5465 | done |
| 5466 | done |
| 5467 | IFS=$as_save_IFS |
| 5468 | if test -z "$ac_cv_path_EGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5469 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5470 | fi |
| 5471 | else |
| 5472 | ac_cv_path_EGREP=$EGREP |
| 5473 | fi |
| 5474 | |
| 5475 | fi |
| 5476 | fi |
| 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5478 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5479 | EGREP="$ac_cv_path_EGREP" |
| 5480 | |
| 5481 | |
| 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5483 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5484 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5485 | $as_echo_n "(cached) " >&6 |
| 5486 | else |
| 5487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5488 | /* end confdefs.h. */ |
| 5489 | #include <stdlib.h> |
| 5490 | #include <stdarg.h> |
| 5491 | #include <string.h> |
| 5492 | #include <float.h> |
| 5493 | |
| 5494 | int |
| 5495 | main () |
| 5496 | { |
| 5497 | |
| 5498 | ; |
| 5499 | return 0; |
| 5500 | } |
| 5501 | _ACEOF |
| 5502 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5503 | ac_cv_header_stdc=yes |
| 5504 | else |
| 5505 | ac_cv_header_stdc=no |
| 5506 | fi |
| 5507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5508 | |
| 5509 | if test $ac_cv_header_stdc = yes; then |
| 5510 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5512 | /* end confdefs.h. */ |
| 5513 | #include <string.h> |
| 5514 | |
| 5515 | _ACEOF |
| 5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5517 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5518 | |
| 5519 | else |
| 5520 | ac_cv_header_stdc=no |
| 5521 | fi |
| 5522 | rm -f conftest* |
| 5523 | |
| 5524 | fi |
| 5525 | |
| 5526 | if test $ac_cv_header_stdc = yes; then |
| 5527 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5529 | /* end confdefs.h. */ |
| 5530 | #include <stdlib.h> |
| 5531 | |
| 5532 | _ACEOF |
| 5533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5534 | $EGREP "free" >/dev/null 2>&1; then : |
| 5535 | |
| 5536 | else |
| 5537 | ac_cv_header_stdc=no |
| 5538 | fi |
| 5539 | rm -f conftest* |
| 5540 | |
| 5541 | fi |
| 5542 | |
| 5543 | if test $ac_cv_header_stdc = yes; then |
| 5544 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5545 | if test "$cross_compiling" = yes; then : |
| 5546 | : |
| 5547 | else |
| 5548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5549 | /* end confdefs.h. */ |
| 5550 | #include <ctype.h> |
| 5551 | #include <stdlib.h> |
| 5552 | #if ((' ' & 0x0FF) == 0x020) |
| 5553 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5554 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5555 | #else |
| 5556 | # define ISLOWER(c) \ |
| 5557 | (('a' <= (c) && (c) <= 'i') \ |
| 5558 | || ('j' <= (c) && (c) <= 'r') \ |
| 5559 | || ('s' <= (c) && (c) <= 'z')) |
| 5560 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5561 | #endif |
| 5562 | |
| 5563 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5564 | int |
| 5565 | main () |
| 5566 | { |
| 5567 | int i; |
| 5568 | for (i = 0; i < 256; i++) |
| 5569 | if (XOR (islower (i), ISLOWER (i)) |
| 5570 | || toupper (i) != TOUPPER (i)) |
| 5571 | return 2; |
| 5572 | return 0; |
| 5573 | } |
| 5574 | _ACEOF |
| 5575 | if ac_fn_c_try_run "$LINENO"; then : |
| 5576 | |
| 5577 | else |
| 5578 | ac_cv_header_stdc=no |
| 5579 | fi |
| 5580 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5581 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5582 | fi |
| 5583 | |
| 5584 | fi |
| 5585 | fi |
| 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5587 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5588 | if test $ac_cv_header_stdc = yes; then |
| 5589 | |
| 5590 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5591 | |
| 5592 | fi |
| 5593 | |
| 5594 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5595 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5596 | inttypes.h stdint.h unistd.h |
| 5597 | do : |
| 5598 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5599 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5600 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5601 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5602 | cat >>confdefs.h <<_ACEOF |
| 5603 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5604 | _ACEOF |
| 5605 | |
| 5606 | fi |
| 5607 | |
| 5608 | done |
| 5609 | |
| 5610 | |
| 5611 | |
| 5612 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5613 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5614 | MINIX=yes |
| 5615 | else |
| 5616 | MINIX= |
| 5617 | fi |
| 5618 | |
| 5619 | |
| 5620 | if test "$MINIX" = yes; then |
| 5621 | |
| 5622 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5623 | |
| 5624 | |
| 5625 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5626 | |
| 5627 | |
| 5628 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5629 | |
| 5630 | fi |
| 5631 | |
| 5632 | |
| 5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5634 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5635 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5636 | $as_echo_n "(cached) " >&6 |
| 5637 | else |
| 5638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5639 | /* end confdefs.h. */ |
| 5640 | |
| 5641 | # define __EXTENSIONS__ 1 |
| 5642 | $ac_includes_default |
| 5643 | int |
| 5644 | main () |
| 5645 | { |
| 5646 | |
| 5647 | ; |
| 5648 | return 0; |
| 5649 | } |
| 5650 | _ACEOF |
| 5651 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5652 | ac_cv_safe_to_define___extensions__=yes |
| 5653 | else |
| 5654 | ac_cv_safe_to_define___extensions__=no |
| 5655 | fi |
| 5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5657 | fi |
| 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5659 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5660 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5661 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5662 | |
| 5663 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5664 | |
| 5665 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5666 | |
| 5667 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5668 | |
| 5669 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5670 | |
| 5671 | |
| 5672 | |
| 5673 | # Check for programs |
| 5674 | ac_ext=c |
| 5675 | ac_cpp='$CPP $CPPFLAGS' |
| 5676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5679 | if test -n "$ac_tool_prefix"; then |
| 5680 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5681 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5683 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5684 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5685 | $as_echo_n "(cached) " >&6 |
| 5686 | else |
| 5687 | if test -n "$CC"; then |
| 5688 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5689 | else |
| 5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5691 | for as_dir in $PATH |
| 5692 | do |
| 5693 | IFS=$as_save_IFS |
| 5694 | test -z "$as_dir" && as_dir=. |
| 5695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5697 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5699 | break 2 |
| 5700 | fi |
| 5701 | done |
| 5702 | done |
| 5703 | IFS=$as_save_IFS |
| 5704 | |
| 5705 | fi |
| 5706 | fi |
| 5707 | CC=$ac_cv_prog_CC |
| 5708 | if test -n "$CC"; then |
| 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5710 | $as_echo "$CC" >&6; } |
| 5711 | else |
| 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5713 | $as_echo "no" >&6; } |
| 5714 | fi |
| 5715 | |
| 5716 | |
| 5717 | fi |
| 5718 | if test -z "$ac_cv_prog_CC"; then |
| 5719 | ac_ct_CC=$CC |
| 5720 | # Extract the first word of "gcc", so it can be a program name with args. |
| 5721 | set dummy gcc; ac_word=$2 |
| 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5723 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5724 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5725 | $as_echo_n "(cached) " >&6 |
| 5726 | else |
| 5727 | if test -n "$ac_ct_CC"; then |
| 5728 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5729 | else |
| 5730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5731 | for as_dir in $PATH |
| 5732 | do |
| 5733 | IFS=$as_save_IFS |
| 5734 | test -z "$as_dir" && as_dir=. |
| 5735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5737 | ac_cv_prog_ac_ct_CC="gcc" |
| 5738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5739 | break 2 |
| 5740 | fi |
| 5741 | done |
| 5742 | done |
| 5743 | IFS=$as_save_IFS |
| 5744 | |
| 5745 | fi |
| 5746 | fi |
| 5747 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5748 | if test -n "$ac_ct_CC"; then |
| 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5750 | $as_echo "$ac_ct_CC" >&6; } |
| 5751 | else |
| 5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5753 | $as_echo "no" >&6; } |
| 5754 | fi |
| 5755 | |
| 5756 | if test "x$ac_ct_CC" = x; then |
| 5757 | CC="" |
| 5758 | else |
| 5759 | case $cross_compiling:$ac_tool_warned in |
| 5760 | yes:) |
| 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5762 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5763 | ac_tool_warned=yes ;; |
| 5764 | esac |
| 5765 | CC=$ac_ct_CC |
| 5766 | fi |
| 5767 | else |
| 5768 | CC="$ac_cv_prog_CC" |
| 5769 | fi |
| 5770 | |
| 5771 | if test -z "$CC"; then |
| 5772 | if test -n "$ac_tool_prefix"; then |
| 5773 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5774 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5776 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5777 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5778 | $as_echo_n "(cached) " >&6 |
| 5779 | else |
| 5780 | if test -n "$CC"; then |
| 5781 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5782 | else |
| 5783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5784 | for as_dir in $PATH |
| 5785 | do |
| 5786 | IFS=$as_save_IFS |
| 5787 | test -z "$as_dir" && as_dir=. |
| 5788 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5790 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5792 | break 2 |
| 5793 | fi |
| 5794 | done |
| 5795 | done |
| 5796 | IFS=$as_save_IFS |
| 5797 | |
| 5798 | fi |
| 5799 | fi |
| 5800 | CC=$ac_cv_prog_CC |
| 5801 | if test -n "$CC"; then |
| 5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5803 | $as_echo "$CC" >&6; } |
| 5804 | else |
| 5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5806 | $as_echo "no" >&6; } |
| 5807 | fi |
| 5808 | |
| 5809 | |
| 5810 | fi |
| 5811 | fi |
| 5812 | if test -z "$CC"; then |
| 5813 | # Extract the first word of "cc", so it can be a program name with args. |
| 5814 | set dummy cc; ac_word=$2 |
| 5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5816 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5817 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5818 | $as_echo_n "(cached) " >&6 |
| 5819 | else |
| 5820 | if test -n "$CC"; then |
| 5821 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5822 | else |
| 5823 | ac_prog_rejected=no |
| 5824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5825 | for as_dir in $PATH |
| 5826 | do |
| 5827 | IFS=$as_save_IFS |
| 5828 | test -z "$as_dir" && as_dir=. |
| 5829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5831 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5832 | ac_prog_rejected=yes |
| 5833 | continue |
| 5834 | fi |
| 5835 | ac_cv_prog_CC="cc" |
| 5836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5837 | break 2 |
| 5838 | fi |
| 5839 | done |
| 5840 | done |
| 5841 | IFS=$as_save_IFS |
| 5842 | |
| 5843 | if test $ac_prog_rejected = yes; then |
| 5844 | # We found a bogon in the path, so make sure we never use it. |
| 5845 | set dummy $ac_cv_prog_CC |
| 5846 | shift |
| 5847 | if test $# != 0; then |
| 5848 | # We chose a different compiler from the bogus one. |
| 5849 | # However, it has the same basename, so the bogon will be chosen |
| 5850 | # first if we set CC to just the basename; use the full file name. |
| 5851 | shift |
| 5852 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 5853 | fi |
| 5854 | fi |
| 5855 | fi |
| 5856 | fi |
| 5857 | CC=$ac_cv_prog_CC |
| 5858 | if test -n "$CC"; then |
| 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5860 | $as_echo "$CC" >&6; } |
| 5861 | else |
| 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5863 | $as_echo "no" >&6; } |
| 5864 | fi |
| 5865 | |
| 5866 | |
| 5867 | fi |
| 5868 | if test -z "$CC"; then |
| 5869 | if test -n "$ac_tool_prefix"; then |
| 5870 | for ac_prog in cl.exe |
| 5871 | do |
| 5872 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5873 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5875 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5876 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5877 | $as_echo_n "(cached) " >&6 |
| 5878 | else |
| 5879 | if test -n "$CC"; then |
| 5880 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5881 | else |
| 5882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5883 | for as_dir in $PATH |
| 5884 | do |
| 5885 | IFS=$as_save_IFS |
| 5886 | test -z "$as_dir" && as_dir=. |
| 5887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5889 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5891 | break 2 |
| 5892 | fi |
| 5893 | done |
| 5894 | done |
| 5895 | IFS=$as_save_IFS |
| 5896 | |
| 5897 | fi |
| 5898 | fi |
| 5899 | CC=$ac_cv_prog_CC |
| 5900 | if test -n "$CC"; then |
| 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5902 | $as_echo "$CC" >&6; } |
| 5903 | else |
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5905 | $as_echo "no" >&6; } |
| 5906 | fi |
| 5907 | |
| 5908 | |
| 5909 | test -n "$CC" && break |
| 5910 | done |
| 5911 | fi |
| 5912 | if test -z "$CC"; then |
| 5913 | ac_ct_CC=$CC |
| 5914 | for ac_prog in cl.exe |
| 5915 | do |
| 5916 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5917 | set dummy $ac_prog; ac_word=$2 |
| 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5919 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5920 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5921 | $as_echo_n "(cached) " >&6 |
| 5922 | else |
| 5923 | if test -n "$ac_ct_CC"; then |
| 5924 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5925 | else |
| 5926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5927 | for as_dir in $PATH |
| 5928 | do |
| 5929 | IFS=$as_save_IFS |
| 5930 | test -z "$as_dir" && as_dir=. |
| 5931 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5933 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5935 | break 2 |
| 5936 | fi |
| 5937 | done |
| 5938 | done |
| 5939 | IFS=$as_save_IFS |
| 5940 | |
| 5941 | fi |
| 5942 | fi |
| 5943 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5944 | if test -n "$ac_ct_CC"; then |
| 5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5946 | $as_echo "$ac_ct_CC" >&6; } |
| 5947 | else |
| 5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5949 | $as_echo "no" >&6; } |
| 5950 | fi |
| 5951 | |
| 5952 | |
| 5953 | test -n "$ac_ct_CC" && break |
| 5954 | done |
| 5955 | |
| 5956 | if test "x$ac_ct_CC" = x; then |
| 5957 | CC="" |
| 5958 | else |
| 5959 | case $cross_compiling:$ac_tool_warned in |
| 5960 | yes:) |
| 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5963 | ac_tool_warned=yes ;; |
| 5964 | esac |
| 5965 | CC=$ac_ct_CC |
| 5966 | fi |
| 5967 | fi |
| 5968 | |
| 5969 | fi |
| 5970 | |
| 5971 | |
| 5972 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5973 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5974 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5975 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5976 | |
| 5977 | # Provide some information about the compiler. |
| 5978 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5979 | set X $ac_compile |
| 5980 | ac_compiler=$2 |
| 5981 | for ac_option in --version -v -V -qversion; do |
| 5982 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5983 | case "(($ac_try" in |
| 5984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5985 | *) ac_try_echo=$ac_try;; |
| 5986 | esac |
| 5987 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5988 | $as_echo "$ac_try_echo"; } >&5 |
| 5989 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5990 | ac_status=$? |
| 5991 | if test -s conftest.err; then |
| 5992 | sed '10a\ |
| 5993 | ... rest of stderr output deleted ... |
| 5994 | 10q' conftest.err >conftest.er1 |
| 5995 | cat conftest.er1 >&5 |
| 5996 | fi |
| 5997 | rm -f conftest.er1 conftest.err |
| 5998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5999 | test $ac_status = 0; } |
| 6000 | done |
| 6001 | |
| 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 6003 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6004 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6005 | $as_echo_n "(cached) " >&6 |
| 6006 | else |
| 6007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6008 | /* end confdefs.h. */ |
| 6009 | |
| 6010 | int |
| 6011 | main () |
| 6012 | { |
| 6013 | #ifndef __GNUC__ |
| 6014 | choke me |
| 6015 | #endif |
| 6016 | |
| 6017 | ; |
| 6018 | return 0; |
| 6019 | } |
| 6020 | _ACEOF |
| 6021 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6022 | ac_compiler_gnu=yes |
| 6023 | else |
| 6024 | ac_compiler_gnu=no |
| 6025 | fi |
| 6026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6027 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 6028 | |
| 6029 | fi |
| 6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 6031 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 6032 | if test $ac_compiler_gnu = yes; then |
| 6033 | GCC=yes |
| 6034 | else |
| 6035 | GCC= |
| 6036 | fi |
| 6037 | ac_test_CFLAGS=${CFLAGS+set} |
| 6038 | ac_save_CFLAGS=$CFLAGS |
| 6039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 6040 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6041 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6042 | $as_echo_n "(cached) " >&6 |
| 6043 | else |
| 6044 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 6045 | ac_c_werror_flag=yes |
| 6046 | ac_cv_prog_cc_g=no |
| 6047 | CFLAGS="-g" |
| 6048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6049 | /* end confdefs.h. */ |
| 6050 | |
| 6051 | int |
| 6052 | main () |
| 6053 | { |
| 6054 | |
| 6055 | ; |
| 6056 | return 0; |
| 6057 | } |
| 6058 | _ACEOF |
| 6059 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6060 | ac_cv_prog_cc_g=yes |
| 6061 | else |
| 6062 | CFLAGS="" |
| 6063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6064 | /* end confdefs.h. */ |
| 6065 | |
| 6066 | int |
| 6067 | main () |
| 6068 | { |
| 6069 | |
| 6070 | ; |
| 6071 | return 0; |
| 6072 | } |
| 6073 | _ACEOF |
| 6074 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6075 | |
| 6076 | else |
| 6077 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6078 | CFLAGS="-g" |
| 6079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6080 | /* end confdefs.h. */ |
| 6081 | |
| 6082 | int |
| 6083 | main () |
| 6084 | { |
| 6085 | |
| 6086 | ; |
| 6087 | return 0; |
| 6088 | } |
| 6089 | _ACEOF |
| 6090 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6091 | ac_cv_prog_cc_g=yes |
| 6092 | fi |
| 6093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6094 | fi |
| 6095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6096 | fi |
| 6097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6098 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6099 | fi |
| 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 6101 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 6102 | if test "$ac_test_CFLAGS" = set; then |
| 6103 | CFLAGS=$ac_save_CFLAGS |
| 6104 | elif test $ac_cv_prog_cc_g = yes; then |
| 6105 | if test "$GCC" = yes; then |
| 6106 | CFLAGS="-g -O2" |
| 6107 | else |
| 6108 | CFLAGS="-g" |
| 6109 | fi |
| 6110 | else |
| 6111 | if test "$GCC" = yes; then |
| 6112 | CFLAGS="-O2" |
| 6113 | else |
| 6114 | CFLAGS= |
| 6115 | fi |
| 6116 | fi |
| 6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6118 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6119 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6120 | $as_echo_n "(cached) " >&6 |
| 6121 | else |
| 6122 | ac_cv_prog_cc_c89=no |
| 6123 | ac_save_CC=$CC |
| 6124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6125 | /* end confdefs.h. */ |
| 6126 | #include <stdarg.h> |
| 6127 | #include <stdio.h> |
| 6128 | #include <sys/types.h> |
| 6129 | #include <sys/stat.h> |
| 6130 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6131 | struct buf { int x; }; |
| 6132 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6133 | static char *e (p, i) |
| 6134 | char **p; |
| 6135 | int i; |
| 6136 | { |
| 6137 | return p[i]; |
| 6138 | } |
| 6139 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6140 | { |
| 6141 | char *s; |
| 6142 | va_list v; |
| 6143 | va_start (v,p); |
| 6144 | s = g (p, va_arg (v,int)); |
| 6145 | va_end (v); |
| 6146 | return s; |
| 6147 | } |
| 6148 | |
| 6149 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6150 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6151 | These don't provoke an error unfortunately, instead are silently treated |
| 6152 | as 'x'. The following induces an error, until -std is added to get |
| 6153 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6154 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6155 | that's true only with -std. */ |
| 6156 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6157 | |
| 6158 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6159 | inside strings and character constants. */ |
| 6160 | #define FOO(x) 'x' |
| 6161 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6162 | |
| 6163 | int test (int i, double x); |
| 6164 | struct s1 {int (*f) (int a);}; |
| 6165 | struct s2 {int (*f) (double a);}; |
| 6166 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6167 | int argc; |
| 6168 | char **argv; |
| 6169 | int |
| 6170 | main () |
| 6171 | { |
| 6172 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6173 | ; |
| 6174 | return 0; |
| 6175 | } |
| 6176 | _ACEOF |
| 6177 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6178 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6179 | do |
| 6180 | CC="$ac_save_CC $ac_arg" |
| 6181 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6182 | ac_cv_prog_cc_c89=$ac_arg |
| 6183 | fi |
| 6184 | rm -f core conftest.err conftest.$ac_objext |
| 6185 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6186 | done |
| 6187 | rm -f conftest.$ac_ext |
| 6188 | CC=$ac_save_CC |
| 6189 | |
| 6190 | fi |
| 6191 | # AC_CACHE_VAL |
| 6192 | case "x$ac_cv_prog_cc_c89" in |
| 6193 | x) |
| 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6195 | $as_echo "none needed" >&6; } ;; |
| 6196 | xno) |
| 6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6198 | $as_echo "unsupported" >&6; } ;; |
| 6199 | *) |
| 6200 | CC="$CC $ac_cv_prog_cc_c89" |
| 6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6202 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6203 | esac |
| 6204 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6205 | |
| 6206 | fi |
| 6207 | |
| 6208 | ac_ext=c |
| 6209 | ac_cpp='$CPP $CPPFLAGS' |
| 6210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6213 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6214 | depcc="$CC" am_compiler_list= |
| 6215 | |
| 6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6217 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6218 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6219 | $as_echo_n "(cached) " >&6 |
| 6220 | else |
| 6221 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6222 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6223 | # making bogus files that we don't know about and never remove. For |
| 6224 | # instance it was reported that on HP-UX the gcc test will end up |
| 6225 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6226 | # in D'. |
| 6227 | mkdir conftest.dir |
| 6228 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6229 | # using a relative directory. |
| 6230 | cp "$am_depcomp" conftest.dir |
| 6231 | cd conftest.dir |
| 6232 | # We will build objects and dependencies in a subdirectory because |
| 6233 | # it helps to detect inapplicable dependency modes. For instance |
| 6234 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6235 | # side effect of compilation, but ICC will put the dependencies in |
| 6236 | # the current directory while Tru64 will put them in the object |
| 6237 | # directory. |
| 6238 | mkdir sub |
| 6239 | |
| 6240 | am_cv_CC_dependencies_compiler_type=none |
| 6241 | if test "$am_compiler_list" = ""; then |
| 6242 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6243 | fi |
| 6244 | am__universal=false |
| 6245 | case " $depcc " in #( |
| 6246 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6247 | esac |
| 6248 | |
| 6249 | for depmode in $am_compiler_list; do |
| 6250 | # Setup a source with many dependencies, because some compilers |
| 6251 | # like to wrap large dependency lists on column 80 (with \), and |
| 6252 | # we should not choose a depcomp mode which is confused by this. |
| 6253 | # |
| 6254 | # We need to recreate these files for each test, as the compiler may |
| 6255 | # overwrite some of them when testing with obscure command lines. |
| 6256 | # This happens at least with the AIX C compiler. |
| 6257 | : > sub/conftest.c |
| 6258 | for i in 1 2 3 4 5 6; do |
| 6259 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6260 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6261 | # Solaris 8's {/usr,}/bin/sh. |
| 6262 | touch sub/conftst$i.h |
| 6263 | done |
| 6264 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6265 | |
| 6266 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6267 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6268 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6269 | # versions had trouble with output in subdirs |
| 6270 | am__obj=sub/conftest.${OBJEXT-o} |
| 6271 | am__minus_obj="-o $am__obj" |
| 6272 | case $depmode in |
| 6273 | gcc) |
| 6274 | # This depmode causes a compiler race in universal mode. |
| 6275 | test "$am__universal" = false || continue |
| 6276 | ;; |
| 6277 | nosideeffect) |
| 6278 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6279 | # only be used when explicitly requested |
| 6280 | if test "x$enable_dependency_tracking" = xyes; then |
| 6281 | continue |
| 6282 | else |
| 6283 | break |
| 6284 | fi |
| 6285 | ;; |
| 6286 | msvisualcpp | msvcmsys) |
| 6287 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6288 | # not run yet. These depmodes are late enough in the game, and |
| 6289 | # so weak that their functioning should not be impacted. |
| 6290 | am__obj=conftest.${OBJEXT-o} |
| 6291 | am__minus_obj= |
| 6292 | ;; |
| 6293 | none) break ;; |
| 6294 | esac |
| 6295 | if depmode=$depmode \ |
| 6296 | source=sub/conftest.c object=$am__obj \ |
| 6297 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6298 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6299 | >/dev/null 2>conftest.err && |
| 6300 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6301 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6302 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6303 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6304 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6305 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6306 | # that says an option was ignored or not supported. |
| 6307 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6308 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6309 | # The diagnosis changed in icc 8.0: |
| 6310 | # icc: Command line remark: option '-MP' not supported |
| 6311 | if (grep 'ignoring option' conftest.err || |
| 6312 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6313 | am_cv_CC_dependencies_compiler_type=$depmode |
| 6314 | break |
| 6315 | fi |
| 6316 | fi |
| 6317 | done |
| 6318 | |
| 6319 | cd .. |
| 6320 | rm -rf conftest.dir |
| 6321 | else |
| 6322 | am_cv_CC_dependencies_compiler_type=none |
| 6323 | fi |
| 6324 | |
| 6325 | fi |
| 6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 6327 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 6328 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 6329 | |
| 6330 | if |
| 6331 | test "x$enable_dependency_tracking" != xno \ |
| 6332 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 6333 | am__fastdepCC_TRUE= |
| 6334 | am__fastdepCC_FALSE='#' |
| 6335 | else |
| 6336 | am__fastdepCC_TRUE='#' |
| 6337 | am__fastdepCC_FALSE= |
| 6338 | fi |
| 6339 | |
| 6340 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6341 | ac_ext=cpp |
| 6342 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6343 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6344 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6345 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6346 | if test -z "$CXX"; then |
| 6347 | if test -n "$CCC"; then |
| 6348 | CXX=$CCC |
| 6349 | else |
| 6350 | if test -n "$ac_tool_prefix"; then |
| 6351 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6352 | do |
| 6353 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6354 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6356 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6357 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6358 | $as_echo_n "(cached) " >&6 |
| 6359 | else |
| 6360 | if test -n "$CXX"; then |
| 6361 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6362 | else |
| 6363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6364 | for as_dir in $PATH |
| 6365 | do |
| 6366 | IFS=$as_save_IFS |
| 6367 | test -z "$as_dir" && as_dir=. |
| 6368 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6370 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6372 | break 2 |
| 6373 | fi |
| 6374 | done |
| 6375 | done |
| 6376 | IFS=$as_save_IFS |
| 6377 | |
| 6378 | fi |
| 6379 | fi |
| 6380 | CXX=$ac_cv_prog_CXX |
| 6381 | if test -n "$CXX"; then |
| 6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 6383 | $as_echo "$CXX" >&6; } |
| 6384 | else |
| 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6386 | $as_echo "no" >&6; } |
| 6387 | fi |
| 6388 | |
| 6389 | |
| 6390 | test -n "$CXX" && break |
| 6391 | done |
| 6392 | fi |
| 6393 | if test -z "$CXX"; then |
| 6394 | ac_ct_CXX=$CXX |
| 6395 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6396 | do |
| 6397 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6398 | set dummy $ac_prog; ac_word=$2 |
| 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6400 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6401 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6402 | $as_echo_n "(cached) " >&6 |
| 6403 | else |
| 6404 | if test -n "$ac_ct_CXX"; then |
| 6405 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6406 | else |
| 6407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6408 | for as_dir in $PATH |
| 6409 | do |
| 6410 | IFS=$as_save_IFS |
| 6411 | test -z "$as_dir" && as_dir=. |
| 6412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6414 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6416 | break 2 |
| 6417 | fi |
| 6418 | done |
| 6419 | done |
| 6420 | IFS=$as_save_IFS |
| 6421 | |
| 6422 | fi |
| 6423 | fi |
| 6424 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6425 | if test -n "$ac_ct_CXX"; then |
| 6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 6427 | $as_echo "$ac_ct_CXX" >&6; } |
| 6428 | else |
| 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6430 | $as_echo "no" >&6; } |
| 6431 | fi |
| 6432 | |
| 6433 | |
| 6434 | test -n "$ac_ct_CXX" && break |
| 6435 | done |
| 6436 | |
| 6437 | if test "x$ac_ct_CXX" = x; then |
| 6438 | CXX="g++" |
| 6439 | else |
| 6440 | case $cross_compiling:$ac_tool_warned in |
| 6441 | yes:) |
| 6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6444 | ac_tool_warned=yes ;; |
| 6445 | esac |
| 6446 | CXX=$ac_ct_CXX |
| 6447 | fi |
| 6448 | fi |
| 6449 | |
| 6450 | fi |
| 6451 | fi |
| 6452 | # Provide some information about the compiler. |
| 6453 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 6454 | set X $ac_compile |
| 6455 | ac_compiler=$2 |
| 6456 | for ac_option in --version -v -V -qversion; do |
| 6457 | { { ac_try="$ac_compiler $ac_option >&5" |
| 6458 | case "(($ac_try" in |
| 6459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6460 | *) ac_try_echo=$ac_try;; |
| 6461 | esac |
| 6462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6463 | $as_echo "$ac_try_echo"; } >&5 |
| 6464 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6465 | ac_status=$? |
| 6466 | if test -s conftest.err; then |
| 6467 | sed '10a\ |
| 6468 | ... rest of stderr output deleted ... |
| 6469 | 10q' conftest.err >conftest.er1 |
| 6470 | cat conftest.er1 >&5 |
| 6471 | fi |
| 6472 | rm -f conftest.er1 conftest.err |
| 6473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6474 | test $ac_status = 0; } |
| 6475 | done |
| 6476 | |
| 6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 6478 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6479 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6480 | $as_echo_n "(cached) " >&6 |
| 6481 | else |
| 6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6483 | /* end confdefs.h. */ |
| 6484 | |
| 6485 | int |
| 6486 | main () |
| 6487 | { |
| 6488 | #ifndef __GNUC__ |
| 6489 | choke me |
| 6490 | #endif |
| 6491 | |
| 6492 | ; |
| 6493 | return 0; |
| 6494 | } |
| 6495 | _ACEOF |
| 6496 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6497 | ac_compiler_gnu=yes |
| 6498 | else |
| 6499 | ac_compiler_gnu=no |
| 6500 | fi |
| 6501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6502 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6503 | |
| 6504 | fi |
| 6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6506 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 6507 | if test $ac_compiler_gnu = yes; then |
| 6508 | GXX=yes |
| 6509 | else |
| 6510 | GXX= |
| 6511 | fi |
| 6512 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6513 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 6515 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6516 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6517 | $as_echo_n "(cached) " >&6 |
| 6518 | else |
| 6519 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6520 | ac_cxx_werror_flag=yes |
| 6521 | ac_cv_prog_cxx_g=no |
| 6522 | CXXFLAGS="-g" |
| 6523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6524 | /* end confdefs.h. */ |
| 6525 | |
| 6526 | int |
| 6527 | main () |
| 6528 | { |
| 6529 | |
| 6530 | ; |
| 6531 | return 0; |
| 6532 | } |
| 6533 | _ACEOF |
| 6534 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6535 | ac_cv_prog_cxx_g=yes |
| 6536 | else |
| 6537 | CXXFLAGS="" |
| 6538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6539 | /* end confdefs.h. */ |
| 6540 | |
| 6541 | int |
| 6542 | main () |
| 6543 | { |
| 6544 | |
| 6545 | ; |
| 6546 | return 0; |
| 6547 | } |
| 6548 | _ACEOF |
| 6549 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6550 | |
| 6551 | else |
| 6552 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6553 | CXXFLAGS="-g" |
| 6554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6555 | /* end confdefs.h. */ |
| 6556 | |
| 6557 | int |
| 6558 | main () |
| 6559 | { |
| 6560 | |
| 6561 | ; |
| 6562 | return 0; |
| 6563 | } |
| 6564 | _ACEOF |
| 6565 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6566 | ac_cv_prog_cxx_g=yes |
| 6567 | fi |
| 6568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6569 | fi |
| 6570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6571 | fi |
| 6572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6573 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6574 | fi |
| 6575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 6576 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6577 | if test "$ac_test_CXXFLAGS" = set; then |
| 6578 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6579 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6580 | if test "$GXX" = yes; then |
| 6581 | CXXFLAGS="-g -O2" |
| 6582 | else |
| 6583 | CXXFLAGS="-g" |
| 6584 | fi |
| 6585 | else |
| 6586 | if test "$GXX" = yes; then |
| 6587 | CXXFLAGS="-O2" |
| 6588 | else |
| 6589 | CXXFLAGS= |
| 6590 | fi |
| 6591 | fi |
| 6592 | ac_ext=c |
| 6593 | ac_cpp='$CPP $CPPFLAGS' |
| 6594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6597 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6598 | depcc="$CXX" am_compiler_list= |
| 6599 | |
| 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6601 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6602 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6603 | $as_echo_n "(cached) " >&6 |
| 6604 | else |
| 6605 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6606 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6607 | # making bogus files that we don't know about and never remove. For |
| 6608 | # instance it was reported that on HP-UX the gcc test will end up |
| 6609 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6610 | # in D'. |
| 6611 | mkdir conftest.dir |
| 6612 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6613 | # using a relative directory. |
| 6614 | cp "$am_depcomp" conftest.dir |
| 6615 | cd conftest.dir |
| 6616 | # We will build objects and dependencies in a subdirectory because |
| 6617 | # it helps to detect inapplicable dependency modes. For instance |
| 6618 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6619 | # side effect of compilation, but ICC will put the dependencies in |
| 6620 | # the current directory while Tru64 will put them in the object |
| 6621 | # directory. |
| 6622 | mkdir sub |
| 6623 | |
| 6624 | am_cv_CXX_dependencies_compiler_type=none |
| 6625 | if test "$am_compiler_list" = ""; then |
| 6626 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6627 | fi |
| 6628 | am__universal=false |
| 6629 | case " $depcc " in #( |
| 6630 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6631 | esac |
| 6632 | |
| 6633 | for depmode in $am_compiler_list; do |
| 6634 | # Setup a source with many dependencies, because some compilers |
| 6635 | # like to wrap large dependency lists on column 80 (with \), and |
| 6636 | # we should not choose a depcomp mode which is confused by this. |
| 6637 | # |
| 6638 | # We need to recreate these files for each test, as the compiler may |
| 6639 | # overwrite some of them when testing with obscure command lines. |
| 6640 | # This happens at least with the AIX C compiler. |
| 6641 | : > sub/conftest.c |
| 6642 | for i in 1 2 3 4 5 6; do |
| 6643 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6644 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6645 | # Solaris 8's {/usr,}/bin/sh. |
| 6646 | touch sub/conftst$i.h |
| 6647 | done |
| 6648 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6649 | |
| 6650 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6651 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6652 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6653 | # versions had trouble with output in subdirs |
| 6654 | am__obj=sub/conftest.${OBJEXT-o} |
| 6655 | am__minus_obj="-o $am__obj" |
| 6656 | case $depmode in |
| 6657 | gcc) |
| 6658 | # This depmode causes a compiler race in universal mode. |
| 6659 | test "$am__universal" = false || continue |
| 6660 | ;; |
| 6661 | nosideeffect) |
| 6662 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6663 | # only be used when explicitly requested |
| 6664 | if test "x$enable_dependency_tracking" = xyes; then |
| 6665 | continue |
| 6666 | else |
| 6667 | break |
| 6668 | fi |
| 6669 | ;; |
| 6670 | msvisualcpp | msvcmsys) |
| 6671 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6672 | # not run yet. These depmodes are late enough in the game, and |
| 6673 | # so weak that their functioning should not be impacted. |
| 6674 | am__obj=conftest.${OBJEXT-o} |
| 6675 | am__minus_obj= |
| 6676 | ;; |
| 6677 | none) break ;; |
| 6678 | esac |
| 6679 | if depmode=$depmode \ |
| 6680 | source=sub/conftest.c object=$am__obj \ |
| 6681 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6682 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6683 | >/dev/null 2>conftest.err && |
| 6684 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6685 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6686 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6687 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6688 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6689 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6690 | # that says an option was ignored or not supported. |
| 6691 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6692 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6693 | # The diagnosis changed in icc 8.0: |
| 6694 | # icc: Command line remark: option '-MP' not supported |
| 6695 | if (grep 'ignoring option' conftest.err || |
| 6696 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6697 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 6698 | break |
| 6699 | fi |
| 6700 | fi |
| 6701 | done |
| 6702 | |
| 6703 | cd .. |
| 6704 | rm -rf conftest.dir |
| 6705 | else |
| 6706 | am_cv_CXX_dependencies_compiler_type=none |
| 6707 | fi |
| 6708 | |
| 6709 | fi |
| 6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 6711 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6712 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6713 | |
| 6714 | if |
| 6715 | test "x$enable_dependency_tracking" != xno \ |
| 6716 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6717 | am__fastdepCXX_TRUE= |
| 6718 | am__fastdepCXX_FALSE='#' |
| 6719 | else |
| 6720 | am__fastdepCXX_TRUE='#' |
| 6721 | am__fastdepCXX_FALSE= |
| 6722 | fi |
| 6723 | |
| 6724 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6725 | case $ac_cv_prog_cc_stdc in #( |
| 6726 | no) : |
| 6727 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 6728 | *) : |
| 6729 | { $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] | 6730 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6731 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6732 | $as_echo_n "(cached) " >&6 |
| 6733 | else |
| 6734 | ac_cv_prog_cc_c99=no |
| 6735 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6737 | /* end confdefs.h. */ |
| 6738 | #include <stdarg.h> |
| 6739 | #include <stdbool.h> |
| 6740 | #include <stdlib.h> |
| 6741 | #include <wchar.h> |
| 6742 | #include <stdio.h> |
| 6743 | |
| 6744 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 6745 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 6746 | #define showlist(...) puts (#__VA_ARGS__) |
| 6747 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 6748 | static void |
| 6749 | test_varargs_macros (void) |
| 6750 | { |
| 6751 | int x = 1234; |
| 6752 | int y = 5678; |
| 6753 | debug ("Flag"); |
| 6754 | debug ("X = %d\n", x); |
| 6755 | showlist (The first, second, and third items.); |
| 6756 | report (x>y, "x is %d but y is %d", x, y); |
| 6757 | } |
| 6758 | |
| 6759 | // Check long long types. |
| 6760 | #define BIG64 18446744073709551615ull |
| 6761 | #define BIG32 4294967295ul |
| 6762 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 6763 | #if !BIG_OK |
| 6764 | your preprocessor is broken; |
| 6765 | #endif |
| 6766 | #if BIG_OK |
| 6767 | #else |
| 6768 | your preprocessor is broken; |
| 6769 | #endif |
| 6770 | static long long int bignum = -9223372036854775807LL; |
| 6771 | static unsigned long long int ubignum = BIG64; |
| 6772 | |
| 6773 | struct incomplete_array |
| 6774 | { |
| 6775 | int datasize; |
| 6776 | double data[]; |
| 6777 | }; |
| 6778 | |
| 6779 | struct named_init { |
| 6780 | int number; |
| 6781 | const wchar_t *name; |
| 6782 | double average; |
| 6783 | }; |
| 6784 | |
| 6785 | typedef const char *ccp; |
| 6786 | |
| 6787 | static inline int |
| 6788 | test_restrict (ccp restrict text) |
| 6789 | { |
| 6790 | // See if C++-style comments work. |
| 6791 | // Iterate through items via the restricted pointer. |
| 6792 | // Also check for declarations in for loops. |
| 6793 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 6794 | continue; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | |
| 6798 | // Check varargs and va_copy. |
| 6799 | static void |
| 6800 | test_varargs (const char *format, ...) |
| 6801 | { |
| 6802 | va_list args; |
| 6803 | va_start (args, format); |
| 6804 | va_list args_copy; |
| 6805 | va_copy (args_copy, args); |
| 6806 | |
| 6807 | const char *str; |
| 6808 | int number; |
| 6809 | float fnumber; |
| 6810 | |
| 6811 | while (*format) |
| 6812 | { |
| 6813 | switch (*format++) |
| 6814 | { |
| 6815 | case 's': // string |
| 6816 | str = va_arg (args_copy, const char *); |
| 6817 | break; |
| 6818 | case 'd': // int |
| 6819 | number = va_arg (args_copy, int); |
| 6820 | break; |
| 6821 | case 'f': // float |
| 6822 | fnumber = va_arg (args_copy, double); |
| 6823 | break; |
| 6824 | default: |
| 6825 | break; |
| 6826 | } |
| 6827 | } |
| 6828 | va_end (args_copy); |
| 6829 | va_end (args); |
| 6830 | } |
| 6831 | |
| 6832 | int |
| 6833 | main () |
| 6834 | { |
| 6835 | |
| 6836 | // Check bool. |
| 6837 | _Bool success = false; |
| 6838 | |
| 6839 | // Check restrict. |
| 6840 | if (test_restrict ("String literal") == 0) |
| 6841 | success = true; |
| 6842 | char *restrict newvar = "Another string"; |
| 6843 | |
| 6844 | // Check varargs. |
| 6845 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 6846 | test_varargs_macros (); |
| 6847 | |
| 6848 | // Check flexible array members. |
| 6849 | struct incomplete_array *ia = |
| 6850 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 6851 | ia->datasize = 10; |
| 6852 | for (int i = 0; i < ia->datasize; ++i) |
| 6853 | ia->data[i] = i * 1.234; |
| 6854 | |
| 6855 | // Check named initializers. |
| 6856 | struct named_init ni = { |
| 6857 | .number = 34, |
| 6858 | .name = L"Test wide string", |
| 6859 | .average = 543.34343, |
| 6860 | }; |
| 6861 | |
| 6862 | ni.number = 58; |
| 6863 | |
| 6864 | int dynamic_array[ni.number]; |
| 6865 | dynamic_array[ni.number - 1] = 543; |
| 6866 | |
| 6867 | // work around unused variable warnings |
| 6868 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 6869 | || dynamic_array[ni.number - 1] != 543); |
| 6870 | |
| 6871 | ; |
| 6872 | return 0; |
| 6873 | } |
| 6874 | _ACEOF |
| 6875 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 6876 | do |
| 6877 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6878 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6879 | ac_cv_prog_cc_c99=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6880 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6881 | rm -f core conftest.err conftest.$ac_objext |
| 6882 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6883 | done |
| 6884 | rm -f conftest.$ac_ext |
| 6885 | CC=$ac_save_CC |
| 6886 | |
| 6887 | fi |
| 6888 | # AC_CACHE_VAL |
| 6889 | case "x$ac_cv_prog_cc_c99" in |
| 6890 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6892 | $as_echo "none needed" >&6; } ;; |
| 6893 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6895 | $as_echo "unsupported" >&6; } ;; |
| 6896 | *) |
| 6897 | CC="$CC $ac_cv_prog_cc_c99" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6898 | { $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] | 6899 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 6900 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6901 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6902 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6903 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6904 | { $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] | 6905 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6906 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6907 | $as_echo_n "(cached) " >&6 |
| 6908 | else |
| 6909 | ac_cv_prog_cc_c89=no |
| 6910 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6912 | /* end confdefs.h. */ |
| 6913 | #include <stdarg.h> |
| 6914 | #include <stdio.h> |
| 6915 | #include <sys/types.h> |
| 6916 | #include <sys/stat.h> |
| 6917 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6918 | struct buf { int x; }; |
| 6919 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6920 | static char *e (p, i) |
| 6921 | char **p; |
| 6922 | int i; |
| 6923 | { |
| 6924 | return p[i]; |
| 6925 | } |
| 6926 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6927 | { |
| 6928 | char *s; |
| 6929 | va_list v; |
| 6930 | va_start (v,p); |
| 6931 | s = g (p, va_arg (v,int)); |
| 6932 | va_end (v); |
| 6933 | return s; |
| 6934 | } |
| 6935 | |
| 6936 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6937 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6938 | These don't provoke an error unfortunately, instead are silently treated |
| 6939 | as 'x'. The following induces an error, until -std is added to get |
| 6940 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6941 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6942 | that's true only with -std. */ |
| 6943 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6944 | |
| 6945 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6946 | inside strings and character constants. */ |
| 6947 | #define FOO(x) 'x' |
| 6948 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6949 | |
| 6950 | int test (int i, double x); |
| 6951 | struct s1 {int (*f) (int a);}; |
| 6952 | struct s2 {int (*f) (double a);}; |
| 6953 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6954 | int argc; |
| 6955 | char **argv; |
| 6956 | int |
| 6957 | main () |
| 6958 | { |
| 6959 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6960 | ; |
| 6961 | return 0; |
| 6962 | } |
| 6963 | _ACEOF |
| 6964 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6965 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6966 | do |
| 6967 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6968 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6969 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6970 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6971 | rm -f core conftest.err conftest.$ac_objext |
| 6972 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6973 | done |
| 6974 | rm -f conftest.$ac_ext |
| 6975 | CC=$ac_save_CC |
| 6976 | |
| 6977 | fi |
| 6978 | # AC_CACHE_VAL |
| 6979 | case "x$ac_cv_prog_cc_c89" in |
| 6980 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6982 | $as_echo "none needed" >&6; } ;; |
| 6983 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6985 | $as_echo "unsupported" >&6; } ;; |
| 6986 | *) |
| 6987 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6988 | { $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] | 6989 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6990 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6991 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6992 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6993 | else |
| 6994 | ac_cv_prog_cc_stdc=no |
| 6995 | fi |
| 6996 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6997 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6998 | ;; |
| 6999 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7000 | { $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] | 7001 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7002 | if ${ac_cv_prog_cc_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7003 | $as_echo_n "(cached) " >&6 |
| 7004 | fi |
| 7005 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7006 | case $ac_cv_prog_cc_stdc in #( |
| 7007 | no) : |
| 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 7009 | $as_echo "unsupported" >&6; } ;; #( |
| 7010 | '') : |
| 7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 7012 | $as_echo "none needed" >&6; } ;; #( |
| 7013 | *) : |
| 7014 | { $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] | 7015 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 7016 | esac |
| 7017 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7018 | ac_ext=c |
| 7019 | ac_cpp='$CPP $CPPFLAGS' |
| 7020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7023 | { $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] | 7024 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7025 | # On Suns, sometimes $CPP names a directory. |
| 7026 | if test -n "$CPP" && test -d "$CPP"; then |
| 7027 | CPP= |
| 7028 | fi |
| 7029 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7030 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7031 | $as_echo_n "(cached) " >&6 |
| 7032 | else |
| 7033 | # Double quotes because CPP needs to be expanded |
| 7034 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7035 | do |
| 7036 | ac_preproc_ok=false |
| 7037 | for ac_c_preproc_warn_flag in '' yes |
| 7038 | do |
| 7039 | # Use a header file that comes with gcc, so configuring glibc |
| 7040 | # with a fresh cross-compiler works. |
| 7041 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7042 | # <limits.h> exists even on freestanding compilers. |
| 7043 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7044 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7046 | /* end confdefs.h. */ |
| 7047 | #ifdef __STDC__ |
| 7048 | # include <limits.h> |
| 7049 | #else |
| 7050 | # include <assert.h> |
| 7051 | #endif |
| 7052 | Syntax error |
| 7053 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7054 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7055 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7056 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7057 | # Broken: fails on valid input. |
| 7058 | continue |
| 7059 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7060 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7061 | |
| 7062 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7063 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7065 | /* end confdefs.h. */ |
| 7066 | #include <ac_nonexistent.h> |
| 7067 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7068 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7069 | # Broken: success on invalid input. |
| 7070 | continue |
| 7071 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7072 | # Passes both tests. |
| 7073 | ac_preproc_ok=: |
| 7074 | break |
| 7075 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7076 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7077 | |
| 7078 | done |
| 7079 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7080 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7081 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7082 | break |
| 7083 | fi |
| 7084 | |
| 7085 | done |
| 7086 | ac_cv_prog_CPP=$CPP |
| 7087 | |
| 7088 | fi |
| 7089 | CPP=$ac_cv_prog_CPP |
| 7090 | else |
| 7091 | ac_cv_prog_CPP=$CPP |
| 7092 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7094 | $as_echo "$CPP" >&6; } |
| 7095 | ac_preproc_ok=false |
| 7096 | for ac_c_preproc_warn_flag in '' yes |
| 7097 | do |
| 7098 | # Use a header file that comes with gcc, so configuring glibc |
| 7099 | # with a fresh cross-compiler works. |
| 7100 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7101 | # <limits.h> exists even on freestanding compilers. |
| 7102 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7103 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7105 | /* end confdefs.h. */ |
| 7106 | #ifdef __STDC__ |
| 7107 | # include <limits.h> |
| 7108 | #else |
| 7109 | # include <assert.h> |
| 7110 | #endif |
| 7111 | Syntax error |
| 7112 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7113 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7114 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7115 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7116 | # Broken: fails on valid input. |
| 7117 | continue |
| 7118 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7119 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7120 | |
| 7121 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7122 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7124 | /* end confdefs.h. */ |
| 7125 | #include <ac_nonexistent.h> |
| 7126 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7127 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7128 | # Broken: success on invalid input. |
| 7129 | continue |
| 7130 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7131 | # Passes both tests. |
| 7132 | ac_preproc_ok=: |
| 7133 | break |
| 7134 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7135 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7136 | |
| 7137 | done |
| 7138 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7139 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7140 | if $ac_preproc_ok; then : |
| 7141 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7142 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7145 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7146 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7147 | fi |
| 7148 | |
| 7149 | ac_ext=c |
| 7150 | ac_cpp='$CPP $CPPFLAGS' |
| 7151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7154 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 7156 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7157 | if ${ac_cv_path_SED+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7158 | $as_echo_n "(cached) " >&6 |
| 7159 | else |
| 7160 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 7161 | for ac_i in 1 2 3 4 5 6 7; do |
| 7162 | ac_script="$ac_script$as_nl$ac_script" |
| 7163 | done |
| 7164 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 7165 | { ac_script=; unset ac_script;} |
| 7166 | if test -z "$SED"; then |
| 7167 | ac_path_SED_found=false |
| 7168 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7170 | for as_dir in $PATH |
| 7171 | do |
| 7172 | IFS=$as_save_IFS |
| 7173 | test -z "$as_dir" && as_dir=. |
| 7174 | for ac_prog in sed gsed; do |
| 7175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7176 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 7177 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 7178 | # Check for GNU ac_path_SED and select it if it is found. |
| 7179 | # Check for GNU $ac_path_SED |
| 7180 | case `"$ac_path_SED" --version 2>&1` in |
| 7181 | *GNU*) |
| 7182 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 7183 | *) |
| 7184 | ac_count=0 |
| 7185 | $as_echo_n 0123456789 >"conftest.in" |
| 7186 | while : |
| 7187 | do |
| 7188 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7189 | mv "conftest.tmp" "conftest.in" |
| 7190 | cp "conftest.in" "conftest.nl" |
| 7191 | $as_echo '' >> "conftest.nl" |
| 7192 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7193 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7194 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7195 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 7196 | # Best one so far, save it but keep looking for a better one |
| 7197 | ac_cv_path_SED="$ac_path_SED" |
| 7198 | ac_path_SED_max=$ac_count |
| 7199 | fi |
| 7200 | # 10*(2^10) chars as input seems more than enough |
| 7201 | test $ac_count -gt 10 && break |
| 7202 | done |
| 7203 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7204 | esac |
| 7205 | |
| 7206 | $ac_path_SED_found && break 3 |
| 7207 | done |
| 7208 | done |
| 7209 | done |
| 7210 | IFS=$as_save_IFS |
| 7211 | if test -z "$ac_cv_path_SED"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7212 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7213 | fi |
| 7214 | else |
| 7215 | ac_cv_path_SED=$SED |
| 7216 | fi |
| 7217 | |
| 7218 | fi |
| 7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 7220 | $as_echo "$ac_cv_path_SED" >&6; } |
| 7221 | SED="$ac_cv_path_SED" |
| 7222 | rm -f conftest.sed |
| 7223 | |
| 7224 | test -z "$SED" && SED=sed |
| 7225 | Xsed="$SED -e 1s/^X//" |
| 7226 | |
| 7227 | |
| 7228 | |
| 7229 | |
| 7230 | |
| 7231 | |
| 7232 | |
| 7233 | |
| 7234 | |
| 7235 | |
| 7236 | |
| 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 7238 | $as_echo_n "checking for fgrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7239 | if ${ac_cv_path_FGREP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7240 | $as_echo_n "(cached) " >&6 |
| 7241 | else |
| 7242 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 7243 | then ac_cv_path_FGREP="$GREP -F" |
| 7244 | else |
| 7245 | if test -z "$FGREP"; then |
| 7246 | ac_path_FGREP_found=false |
| 7247 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7249 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7250 | do |
| 7251 | IFS=$as_save_IFS |
| 7252 | test -z "$as_dir" && as_dir=. |
| 7253 | for ac_prog in fgrep; do |
| 7254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7255 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 7256 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 7257 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 7258 | # Check for GNU $ac_path_FGREP |
| 7259 | case `"$ac_path_FGREP" --version 2>&1` in |
| 7260 | *GNU*) |
| 7261 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 7262 | *) |
| 7263 | ac_count=0 |
| 7264 | $as_echo_n 0123456789 >"conftest.in" |
| 7265 | while : |
| 7266 | do |
| 7267 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7268 | mv "conftest.tmp" "conftest.in" |
| 7269 | cp "conftest.in" "conftest.nl" |
| 7270 | $as_echo 'FGREP' >> "conftest.nl" |
| 7271 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7272 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7273 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7274 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 7275 | # Best one so far, save it but keep looking for a better one |
| 7276 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 7277 | ac_path_FGREP_max=$ac_count |
| 7278 | fi |
| 7279 | # 10*(2^10) chars as input seems more than enough |
| 7280 | test $ac_count -gt 10 && break |
| 7281 | done |
| 7282 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7283 | esac |
| 7284 | |
| 7285 | $ac_path_FGREP_found && break 3 |
| 7286 | done |
| 7287 | done |
| 7288 | done |
| 7289 | IFS=$as_save_IFS |
| 7290 | if test -z "$ac_cv_path_FGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7291 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7292 | fi |
| 7293 | else |
| 7294 | ac_cv_path_FGREP=$FGREP |
| 7295 | fi |
| 7296 | |
| 7297 | fi |
| 7298 | fi |
| 7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 7300 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 7301 | FGREP="$ac_cv_path_FGREP" |
| 7302 | |
| 7303 | |
| 7304 | test -z "$GREP" && GREP=grep |
| 7305 | |
| 7306 | |
| 7307 | |
| 7308 | |
| 7309 | |
| 7310 | |
| 7311 | |
| 7312 | |
| 7313 | |
| 7314 | |
| 7315 | |
| 7316 | |
| 7317 | |
| 7318 | |
| 7319 | |
| 7320 | |
| 7321 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7322 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7323 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7324 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7325 | |
| 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 7327 | $as_echo_n "checking how to print strings... " >&6; } |
| 7328 | # Test print first, because it will be a builtin if present. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7329 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7330 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7331 | ECHO='print -r --' |
| 7332 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7333 | ECHO='printf %s\n' |
| 7334 | else |
| 7335 | # Use this function as a fallback that always works. |
| 7336 | func_fallback_echo () |
| 7337 | { |
| 7338 | eval 'cat <<_LTECHO_EOF |
| 7339 | $1 |
| 7340 | _LTECHO_EOF' |
| 7341 | } |
| 7342 | ECHO='func_fallback_echo' |
| 7343 | fi |
| 7344 | |
| 7345 | # func_echo_all arg... |
| 7346 | # Invoke $ECHO with all args, space-separated. |
| 7347 | func_echo_all () |
| 7348 | { |
| 7349 | $ECHO "" |
| 7350 | } |
| 7351 | |
| 7352 | case "$ECHO" in |
| 7353 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 7354 | $as_echo "printf" >&6; } ;; |
| 7355 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 7356 | $as_echo "print -r" >&6; } ;; |
| 7357 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 7358 | $as_echo "cat" >&6; } ;; |
| 7359 | esac |
| 7360 | |
| 7361 | |
| 7362 | |
| 7363 | |
| 7364 | |
| 7365 | |
| 7366 | |
| 7367 | |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | |
| 7373 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7374 | |
| 7375 | |
| 7376 | # Check whether --with-gnu-ld was given. |
| 7377 | if test "${with_gnu_ld+set}" = set; then : |
| 7378 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 7379 | else |
| 7380 | with_gnu_ld=no |
| 7381 | fi |
| 7382 | |
| 7383 | ac_prog=ld |
| 7384 | if test "$GCC" = yes; then |
| 7385 | # Check if gcc -print-prog-name=ld gives a path. |
| 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7387 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 7388 | case $host in |
| 7389 | *-*-mingw*) |
| 7390 | # gcc leaves a trailing carriage return which upsets mingw |
| 7391 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7392 | *) |
| 7393 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7394 | esac |
| 7395 | case $ac_prog in |
| 7396 | # Accept absolute paths. |
| 7397 | [\\/]* | ?:[\\/]*) |
| 7398 | re_direlt='/[^/][^/]*/\.\./' |
| 7399 | # Canonicalize the pathname of ld |
| 7400 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 7401 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 7402 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 7403 | done |
| 7404 | test -z "$LD" && LD="$ac_prog" |
| 7405 | ;; |
| 7406 | "") |
| 7407 | # If it fails, then pretend we aren't using GCC. |
| 7408 | ac_prog=ld |
| 7409 | ;; |
| 7410 | *) |
| 7411 | # If it is relative, then search for the first ld in PATH. |
| 7412 | with_gnu_ld=unknown |
| 7413 | ;; |
| 7414 | esac |
| 7415 | elif test "$with_gnu_ld" = yes; then |
| 7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 7417 | $as_echo_n "checking for GNU ld... " >&6; } |
| 7418 | else |
| 7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 7420 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 7421 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7422 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7423 | $as_echo_n "(cached) " >&6 |
| 7424 | else |
| 7425 | if test -z "$LD"; then |
| 7426 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7427 | for ac_dir in $PATH; do |
| 7428 | IFS="$lt_save_ifs" |
| 7429 | test -z "$ac_dir" && ac_dir=. |
| 7430 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7431 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 7432 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7433 | # but apparently some variants of GNU ld only accept -v. |
| 7434 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7435 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 7436 | *GNU* | *'with BFD'*) |
| 7437 | test "$with_gnu_ld" != no && break |
| 7438 | ;; |
| 7439 | *) |
| 7440 | test "$with_gnu_ld" != yes && break |
| 7441 | ;; |
| 7442 | esac |
| 7443 | fi |
| 7444 | done |
| 7445 | IFS="$lt_save_ifs" |
| 7446 | else |
| 7447 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7448 | fi |
| 7449 | fi |
| 7450 | |
| 7451 | LD="$lt_cv_path_LD" |
| 7452 | if test -n "$LD"; then |
| 7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 7454 | $as_echo "$LD" >&6; } |
| 7455 | else |
| 7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7457 | $as_echo "no" >&6; } |
| 7458 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7459 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 7461 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7462 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7463 | $as_echo_n "(cached) " >&6 |
| 7464 | else |
| 7465 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 7466 | case `$LD -v 2>&1 </dev/null` in |
| 7467 | *GNU* | *'with BFD'*) |
| 7468 | lt_cv_prog_gnu_ld=yes |
| 7469 | ;; |
| 7470 | *) |
| 7471 | lt_cv_prog_gnu_ld=no |
| 7472 | ;; |
| 7473 | esac |
| 7474 | fi |
| 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 7476 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 7477 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | |
| 7483 | |
| 7484 | |
| 7485 | |
| 7486 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7487 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 7489 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7490 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7491 | $as_echo_n "(cached) " >&6 |
| 7492 | else |
| 7493 | ac_cv_prog_cc_c99=no |
| 7494 | ac_save_CC=$CC |
| 7495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7496 | /* end confdefs.h. */ |
| 7497 | #include <stdarg.h> |
| 7498 | #include <stdbool.h> |
| 7499 | #include <stdlib.h> |
| 7500 | #include <wchar.h> |
| 7501 | #include <stdio.h> |
| 7502 | |
| 7503 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 7504 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 7505 | #define showlist(...) puts (#__VA_ARGS__) |
| 7506 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 7507 | static void |
| 7508 | test_varargs_macros (void) |
| 7509 | { |
| 7510 | int x = 1234; |
| 7511 | int y = 5678; |
| 7512 | debug ("Flag"); |
| 7513 | debug ("X = %d\n", x); |
| 7514 | showlist (The first, second, and third items.); |
| 7515 | report (x>y, "x is %d but y is %d", x, y); |
| 7516 | } |
| 7517 | |
| 7518 | // Check long long types. |
| 7519 | #define BIG64 18446744073709551615ull |
| 7520 | #define BIG32 4294967295ul |
| 7521 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 7522 | #if !BIG_OK |
| 7523 | your preprocessor is broken; |
| 7524 | #endif |
| 7525 | #if BIG_OK |
| 7526 | #else |
| 7527 | your preprocessor is broken; |
| 7528 | #endif |
| 7529 | static long long int bignum = -9223372036854775807LL; |
| 7530 | static unsigned long long int ubignum = BIG64; |
| 7531 | |
| 7532 | struct incomplete_array |
| 7533 | { |
| 7534 | int datasize; |
| 7535 | double data[]; |
| 7536 | }; |
| 7537 | |
| 7538 | struct named_init { |
| 7539 | int number; |
| 7540 | const wchar_t *name; |
| 7541 | double average; |
| 7542 | }; |
| 7543 | |
| 7544 | typedef const char *ccp; |
| 7545 | |
| 7546 | static inline int |
| 7547 | test_restrict (ccp restrict text) |
| 7548 | { |
| 7549 | // See if C++-style comments work. |
| 7550 | // Iterate through items via the restricted pointer. |
| 7551 | // Also check for declarations in for loops. |
| 7552 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 7553 | continue; |
| 7554 | return 0; |
| 7555 | } |
| 7556 | |
| 7557 | // Check varargs and va_copy. |
| 7558 | static void |
| 7559 | test_varargs (const char *format, ...) |
| 7560 | { |
| 7561 | va_list args; |
| 7562 | va_start (args, format); |
| 7563 | va_list args_copy; |
| 7564 | va_copy (args_copy, args); |
| 7565 | |
| 7566 | const char *str; |
| 7567 | int number; |
| 7568 | float fnumber; |
| 7569 | |
| 7570 | while (*format) |
| 7571 | { |
| 7572 | switch (*format++) |
| 7573 | { |
| 7574 | case 's': // string |
| 7575 | str = va_arg (args_copy, const char *); |
| 7576 | break; |
| 7577 | case 'd': // int |
| 7578 | number = va_arg (args_copy, int); |
| 7579 | break; |
| 7580 | case 'f': // float |
| 7581 | fnumber = va_arg (args_copy, double); |
| 7582 | break; |
| 7583 | default: |
| 7584 | break; |
| 7585 | } |
| 7586 | } |
| 7587 | va_end (args_copy); |
| 7588 | va_end (args); |
| 7589 | } |
| 7590 | |
| 7591 | int |
| 7592 | main () |
| 7593 | { |
| 7594 | |
| 7595 | // Check bool. |
| 7596 | _Bool success = false; |
| 7597 | |
| 7598 | // Check restrict. |
| 7599 | if (test_restrict ("String literal") == 0) |
| 7600 | success = true; |
| 7601 | char *restrict newvar = "Another string"; |
| 7602 | |
| 7603 | // Check varargs. |
| 7604 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 7605 | test_varargs_macros (); |
| 7606 | |
| 7607 | // Check flexible array members. |
| 7608 | struct incomplete_array *ia = |
| 7609 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 7610 | ia->datasize = 10; |
| 7611 | for (int i = 0; i < ia->datasize; ++i) |
| 7612 | ia->data[i] = i * 1.234; |
| 7613 | |
| 7614 | // Check named initializers. |
| 7615 | struct named_init ni = { |
| 7616 | .number = 34, |
| 7617 | .name = L"Test wide string", |
| 7618 | .average = 543.34343, |
| 7619 | }; |
| 7620 | |
| 7621 | ni.number = 58; |
| 7622 | |
| 7623 | int dynamic_array[ni.number]; |
| 7624 | dynamic_array[ni.number - 1] = 543; |
| 7625 | |
| 7626 | // work around unused variable warnings |
| 7627 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 7628 | || dynamic_array[ni.number - 1] != 543); |
| 7629 | |
| 7630 | ; |
| 7631 | return 0; |
| 7632 | } |
| 7633 | _ACEOF |
| 7634 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 7635 | do |
| 7636 | CC="$ac_save_CC $ac_arg" |
| 7637 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7638 | ac_cv_prog_cc_c99=$ac_arg |
| 7639 | fi |
| 7640 | rm -f core conftest.err conftest.$ac_objext |
| 7641 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 7642 | done |
| 7643 | rm -f conftest.$ac_ext |
| 7644 | CC=$ac_save_CC |
| 7645 | |
| 7646 | fi |
| 7647 | # AC_CACHE_VAL |
| 7648 | case "x$ac_cv_prog_cc_c99" in |
| 7649 | x) |
| 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 7651 | $as_echo "none needed" >&6; } ;; |
| 7652 | xno) |
| 7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 7654 | $as_echo "unsupported" >&6; } ;; |
| 7655 | *) |
| 7656 | CC="$CC $ac_cv_prog_cc_c99" |
| 7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 7658 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 7659 | esac |
| 7660 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 7661 | |
| 7662 | fi |
| 7663 | |
| 7664 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7665 | if test "x$CC" != xcc; then |
| 7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 7667 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 7668 | else |
| 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 7670 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 7671 | fi |
| 7672 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 7673 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7674 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7675 | $as_echo_n "(cached) " >&6 |
| 7676 | else |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7678 | /* end confdefs.h. */ |
| 7679 | |
| 7680 | int |
| 7681 | main () |
| 7682 | { |
| 7683 | |
| 7684 | ; |
| 7685 | return 0; |
| 7686 | } |
| 7687 | _ACEOF |
| 7688 | # Make sure it works both with $CC and with simple cc. |
| 7689 | # We do the test twice because some compilers refuse to overwrite an |
| 7690 | # existing .o file with -o, though they will create one. |
| 7691 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7692 | rm -f conftest2.* |
| 7693 | if { { case "(($ac_try" in |
| 7694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7695 | *) ac_try_echo=$ac_try;; |
| 7696 | esac |
| 7697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7698 | $as_echo "$ac_try_echo"; } >&5 |
| 7699 | (eval "$ac_try") 2>&5 |
| 7700 | ac_status=$? |
| 7701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7702 | test $ac_status = 0; } && |
| 7703 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7705 | *) ac_try_echo=$ac_try;; |
| 7706 | esac |
| 7707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7708 | $as_echo "$ac_try_echo"; } >&5 |
| 7709 | (eval "$ac_try") 2>&5 |
| 7710 | ac_status=$? |
| 7711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7712 | test $ac_status = 0; }; |
| 7713 | then |
| 7714 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 7715 | if test "x$CC" != xcc; then |
| 7716 | # Test first that cc exists at all. |
| 7717 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 7718 | { { case "(($ac_try" in |
| 7719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7720 | *) ac_try_echo=$ac_try;; |
| 7721 | esac |
| 7722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7723 | $as_echo "$ac_try_echo"; } >&5 |
| 7724 | (eval "$ac_try") 2>&5 |
| 7725 | ac_status=$? |
| 7726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7727 | test $ac_status = 0; }; }; then |
| 7728 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7729 | rm -f conftest2.* |
| 7730 | if { { case "(($ac_try" in |
| 7731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7732 | *) ac_try_echo=$ac_try;; |
| 7733 | esac |
| 7734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7735 | $as_echo "$ac_try_echo"; } >&5 |
| 7736 | (eval "$ac_try") 2>&5 |
| 7737 | ac_status=$? |
| 7738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7739 | test $ac_status = 0; } && |
| 7740 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7742 | *) ac_try_echo=$ac_try;; |
| 7743 | esac |
| 7744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7745 | $as_echo "$ac_try_echo"; } >&5 |
| 7746 | (eval "$ac_try") 2>&5 |
| 7747 | ac_status=$? |
| 7748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7749 | test $ac_status = 0; }; |
| 7750 | then |
| 7751 | # cc works too. |
| 7752 | : |
| 7753 | else |
| 7754 | # cc exists but doesn't like -o. |
| 7755 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7756 | fi |
| 7757 | fi |
| 7758 | fi |
| 7759 | else |
| 7760 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7761 | fi |
| 7762 | rm -f core conftest* |
| 7763 | |
| 7764 | fi |
| 7765 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7767 | $as_echo "yes" >&6; } |
| 7768 | else |
| 7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7770 | $as_echo "no" >&6; } |
| 7771 | |
| 7772 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 7773 | |
| 7774 | fi |
| 7775 | |
| 7776 | # FIXME: we rely on the cache variable name because |
| 7777 | # there is no other way. |
| 7778 | set dummy $CC |
| 7779 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 7780 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 7781 | if test "$am_t" != yes; then |
| 7782 | # Losing compiler, so override with the script. |
| 7783 | # FIXME: It is wrong to rewrite CC. |
| 7784 | # But if we don't then we get into trouble of one sort or another. |
| 7785 | # A longer-term fix would be to have automake use am__CC in this case, |
| 7786 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 7787 | CC="$am_aux_dir/compile $CC" |
| 7788 | fi |
| 7789 | |
| 7790 | |
| 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
| 7792 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7793 | if ${ac_cv_cflags_warn_all+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7794 | $as_echo_n "(cached) " >&6 |
| 7795 | else |
| 7796 | ac_cv_cflags_warn_all="no, unknown" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7797 | ac_ext=c |
| 7798 | ac_cpp='$CPP $CPPFLAGS' |
| 7799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7802 | |
| 7803 | ac_save_CFLAGS="$CFLAGS" |
| 7804 | for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # |
| 7805 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
| 7806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7807 | /* end confdefs.h. */ |
| 7808 | |
| 7809 | int |
| 7810 | main () |
| 7811 | { |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 7812 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7813 | ; |
| 7814 | return 0; |
| 7815 | } |
| 7816 | _ACEOF |
| 7817 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7818 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
| 7819 | fi |
| 7820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7821 | done |
| 7822 | CFLAGS="$ac_save_CFLAGS" |
| 7823 | ac_ext=c |
| 7824 | ac_cpp='$CPP $CPPFLAGS' |
| 7825 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7826 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7827 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7828 | |
| 7829 | |
| 7830 | fi |
| 7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 |
| 7832 | $as_echo "$ac_cv_cflags_warn_all" >&6; } |
| 7833 | case ".$ac_cv_cflags_warn_all" in |
| 7834 | .ok|.ok,*) ;; |
| 7835 | .|.no|.no,*) |
| 7836 | ;; |
| 7837 | *) |
| 7838 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null |
| 7839 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 |
| 7840 | (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 |
| 7841 | ac_status=$? |
| 7842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7843 | test $ac_status = 0; } |
| 7844 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 |
| 7845 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 |
| 7846 | ac_status=$? |
| 7847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7848 | test $ac_status = 0; } |
| 7849 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" |
| 7850 | fi |
| 7851 | ;; |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 7852 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7853 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7854 | |
| 7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 7856 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 7857 | set x ${MAKE-make} |
| 7858 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7859 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7860 | $as_echo_n "(cached) " >&6 |
| 7861 | else |
| 7862 | cat >conftest.make <<\_ACEOF |
| 7863 | SHELL = /bin/sh |
| 7864 | all: |
| 7865 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 7866 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7867 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7868 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 7869 | *@@@%%%=?*=@@@%%%*) |
| 7870 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 7871 | *) |
| 7872 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 7873 | esac |
| 7874 | rm -f conftest.make |
| 7875 | fi |
| 7876 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7878 | $as_echo "yes" >&6; } |
| 7879 | SET_MAKE= |
| 7880 | else |
| 7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7882 | $as_echo "no" >&6; } |
| 7883 | SET_MAKE="MAKE=${MAKE-make}" |
| 7884 | fi |
| 7885 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7887 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 7888 | LN_S=$as_ln_s |
| 7889 | if test "$LN_S" = "ln -s"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7891 | $as_echo "yes" >&6; } |
| 7892 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7894 | $as_echo "no, using $LN_S" >&6; } |
| 7895 | fi |
| 7896 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 |
| 7898 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 7899 | |
| 7900 | # Check whether --with-dmalloc was given. |
| 7901 | if test "${with_dmalloc+set}" = set; then : |
| 7902 | withval=$with_dmalloc; if test "$withval" = yes; then |
| 7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7904 | $as_echo "yes" >&6; } |
| 7905 | |
| 7906 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h |
| 7907 | |
| 7908 | LIBS="$LIBS -ldmalloc" |
| 7909 | LDFLAGS="$LDFLAGS -g" |
| 7910 | else |
| 7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7912 | $as_echo "no" >&6; } |
| 7913 | fi |
| 7914 | else |
| 7915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7916 | $as_echo "no" >&6; } |
| 7917 | fi |
| 7918 | |
| 7919 | |
| 7920 | |
| 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 |
| 7922 | $as_echo_n "checking for __attribute__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7923 | if ${ax_cv___attribute__+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7924 | $as_echo_n "(cached) " >&6 |
| 7925 | else |
| 7926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7927 | /* end confdefs.h. */ |
| 7928 | #include <stdlib.h> |
| 7929 | static void foo(void) __attribute__ ((unused)); |
| 7930 | static void |
| 7931 | foo(void) { |
| 7932 | exit(1); |
| 7933 | } |
| 7934 | |
| 7935 | int |
| 7936 | main () |
| 7937 | { |
| 7938 | |
| 7939 | ; |
| 7940 | return 0; |
| 7941 | } |
| 7942 | _ACEOF |
| 7943 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7944 | ax_cv___attribute__=yes |
| 7945 | else |
| 7946 | ax_cv___attribute__=no |
| 7947 | |
| 7948 | fi |
| 7949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7950 | |
| 7951 | fi |
| 7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 |
| 7953 | $as_echo "$ax_cv___attribute__" >&6; } |
| 7954 | if test "$ax_cv___attribute__" = "yes"; then |
| 7955 | |
| 7956 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h |
| 7957 | |
| 7958 | fi |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 7963 | if test -n "$ac_tool_prefix"; then |
| 7964 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 7965 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7967 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7968 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7969 | $as_echo_n "(cached) " >&6 |
| 7970 | else |
| 7971 | case $PKG_CONFIG in |
| 7972 | [\\/]* | ?:[\\/]*) |
| 7973 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7974 | ;; |
| 7975 | *) |
| 7976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7977 | for as_dir in $PATH |
| 7978 | do |
| 7979 | IFS=$as_save_IFS |
| 7980 | test -z "$as_dir" && as_dir=. |
| 7981 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7983 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7985 | break 2 |
| 7986 | fi |
| 7987 | done |
| 7988 | done |
| 7989 | IFS=$as_save_IFS |
| 7990 | |
| 7991 | ;; |
| 7992 | esac |
| 7993 | fi |
| 7994 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7995 | if test -n "$PKG_CONFIG"; then |
| 7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 7997 | $as_echo "$PKG_CONFIG" >&6; } |
| 7998 | else |
| 7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8000 | $as_echo "no" >&6; } |
| 8001 | fi |
| 8002 | |
| 8003 | |
| 8004 | fi |
| 8005 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8006 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8007 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8008 | set dummy pkg-config; ac_word=$2 |
| 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8010 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8011 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8012 | $as_echo_n "(cached) " >&6 |
| 8013 | else |
| 8014 | case $ac_pt_PKG_CONFIG in |
| 8015 | [\\/]* | ?:[\\/]*) |
| 8016 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8017 | ;; |
| 8018 | *) |
| 8019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8020 | for as_dir in $PATH |
| 8021 | do |
| 8022 | IFS=$as_save_IFS |
| 8023 | test -z "$as_dir" && as_dir=. |
| 8024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8026 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8028 | break 2 |
| 8029 | fi |
| 8030 | done |
| 8031 | done |
| 8032 | IFS=$as_save_IFS |
| 8033 | |
| 8034 | ;; |
| 8035 | esac |
| 8036 | fi |
| 8037 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8038 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8040 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 8041 | else |
| 8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8043 | $as_echo "no" >&6; } |
| 8044 | fi |
| 8045 | |
| 8046 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8047 | PKG_CONFIG="" |
| 8048 | else |
| 8049 | case $cross_compiling:$ac_tool_warned in |
| 8050 | yes:) |
| 8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8053 | ac_tool_warned=yes ;; |
| 8054 | esac |
| 8055 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8056 | fi |
| 8057 | else |
| 8058 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8059 | fi |
| 8060 | |
| 8061 | fi |
| 8062 | if test -n "$PKG_CONFIG"; then |
| 8063 | _pkg_min_version=0.9.0 |
| 8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 8065 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 8066 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8068 | $as_echo "yes" >&6; } |
| 8069 | else |
| 8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8071 | $as_echo "no" >&6; } |
| 8072 | PKG_CONFIG="" |
| 8073 | fi |
| 8074 | |
| 8075 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8076 | |
| 8077 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8078 | # Enable run-time checking. |
| 8079 | # |
| 8080 | # Check whether --enable-bounds-checking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8081 | if test "${enable_bounds_checking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8082 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 8083 | else |
| 8084 | enable_bounds_checking='no' |
| 8085 | fi |
| 8086 | |
| 8087 | |
| 8088 | if test "$enable_bounds_checking" = yes; then |
| 8089 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8090 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8091 | |
| 8092 | fi |
| 8093 | |
| 8094 | # |
| 8095 | # Tests for Windows |
| 8096 | # |
| 8097 | |
| 8098 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| 8100 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8101 | if ${ax_cv_c_compiler_ms+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8102 | $as_echo_n "(cached) " >&6 |
| 8103 | else |
| 8104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8105 | /* end confdefs.h. */ |
| 8106 | |
| 8107 | int |
| 8108 | main () |
| 8109 | { |
| 8110 | #ifndef _MSC_VER |
| 8111 | choke me |
| 8112 | #endif |
| 8113 | |
| 8114 | ; |
| 8115 | return 0; |
| 8116 | } |
| 8117 | _ACEOF |
| 8118 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8119 | ax_compiler_ms=yes |
| 8120 | else |
| 8121 | ax_compiler_ms=no |
| 8122 | fi |
| 8123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8124 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 8125 | |
| 8126 | fi |
| 8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| 8128 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8129 | |
| 8130 | GDI32_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8131 | native_win32_build='no' |
| 8132 | cygwin_build='no' |
| 8133 | case "${host_os}" in |
| 8134 | cygwin* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8135 | cygwin_build='yes' |
| 8136 | GDI32_LIBS='-lgdi32' |
| 8137 | ;; |
| 8138 | mingw* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8139 | native_win32_build='yes' |
| 8140 | GDI32_LIBS='-lgdi32' |
| 8141 | ;; |
| 8142 | esac |
| 8143 | if test "${GDI32_LIBS}x" != 'x'; then |
| 8144 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8145 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8146 | |
| 8147 | fi |
| 8148 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8149 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 8150 | WINGDI32_DELEGATE_TRUE= |
| 8151 | WINGDI32_DELEGATE_FALSE='#' |
| 8152 | else |
| 8153 | WINGDI32_DELEGATE_TRUE='#' |
| 8154 | WINGDI32_DELEGATE_FALSE= |
| 8155 | fi |
| 8156 | |
| 8157 | if test "${native_win32_build}" = 'yes' ; then |
| 8158 | WIN32_NATIVE_BUILD_TRUE= |
| 8159 | WIN32_NATIVE_BUILD_FALSE='#' |
| 8160 | else |
| 8161 | WIN32_NATIVE_BUILD_TRUE='#' |
| 8162 | WIN32_NATIVE_BUILD_FALSE= |
| 8163 | fi |
| 8164 | |
| 8165 | if test "${cygwin_build}" = 'yes' ; then |
| 8166 | CYGWIN_BUILD_TRUE= |
| 8167 | CYGWIN_BUILD_FALSE='#' |
| 8168 | else |
| 8169 | CYGWIN_BUILD_TRUE='#' |
| 8170 | CYGWIN_BUILD_FALSE= |
| 8171 | fi |
| 8172 | |
| 8173 | if test "x${CC}" = 'xcl.exe' ; then |
| 8174 | USING_CL_TRUE= |
| 8175 | USING_CL_FALSE='#' |
| 8176 | else |
| 8177 | USING_CL_TRUE='#' |
| 8178 | USING_CL_FALSE= |
| 8179 | fi |
| 8180 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8181 | |
| 8182 | WinPathScript="${srcdirfull}/winpath.sh" |
| 8183 | |
| 8184 | |
| 8185 | # |
| 8186 | # Compiler flags tweaks |
| 8187 | # |
| 8188 | if test "${GCC}" != "yes"; then |
| 8189 | case "${host}" in |
| 8190 | *-*-hpux* ) |
| 8191 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 8192 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 8193 | if test -n "${CXXFLAGS}"; then |
| 8194 | CXXFLAGS='-AA' |
| 8195 | else |
| 8196 | CXXFLAGS="${CXXFLAGS} -AA" |
| 8197 | fi |
| 8198 | ;; |
| 8199 | *-dec-osf5.* ) |
| 8200 | # Compaq alphaev68-dec-osf5.1 compiler |
| 8201 | if test -n "${CXXFLAGS}"; then |
| 8202 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 8203 | else |
| 8204 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 8205 | fi |
| 8206 | esac |
| 8207 | fi |
| 8208 | |
| 8209 | # Check for lazy-loading. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8211 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8212 | if ${im_cv_ld_lazyload+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8213 | $as_echo_n "(cached) " >&6 |
| 8214 | else |
| 8215 | |
| 8216 | im_cv_ld_lazyload='none' |
| 8217 | case "${host}" in |
| 8218 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 8219 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 8220 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 8221 | fi |
| 8222 | ;; |
| 8223 | esac |
| 8224 | |
| 8225 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8227 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 8228 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 8229 | if test -z "${LDFLAGS}" ; then |
| 8230 | LDFLAGS="${im_cv_ld_lazyload}" |
| 8231 | else |
| 8232 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 8233 | fi |
| 8234 | fi |
| 8235 | |
| 8236 | case "$host" in |
| 8237 | *darwin* | *-macos10*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8238 | # Check whether --enable-osx-universal-binary was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8239 | if test "${enable_osx_universal_binary+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8240 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 8241 | else |
| 8242 | build_osxuniversal=no |
| 8243 | fi |
| 8244 | |
| 8245 | |
| 8246 | if test "${build_osxuniversal}" != no ; then |
| 8247 | if test "$enable_dependency_tracking" != no ; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8248 | as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8249 | Please re-run configure with these options: |
| 8250 | --disable-dependency-tracking --enable-osx-universal-binary |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8251 | " "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8252 | fi |
| 8253 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8254 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8255 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8256 | fi |
| 8257 | ;; |
| 8258 | esac |
| 8259 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8260 | # |
| 8261 | # ARCH specific include directory |
| 8262 | # |
| 8263 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8264 | # Check whether --with-includearch-dir was given. |
| 8265 | if test "${with_includearch_dir+set}" = set; then : |
| 8266 | withval=$with_includearch_dir; includearch_dir=$withval |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8267 | else |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8268 | includearch_dir=$INCLUDE_DIR |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8269 | fi |
| 8270 | |
| 8271 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8272 | eval "eval INCLUDEARCH_DIR=$includearch_dir" |
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 8273 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8274 | |
| 8275 | # |
| 8276 | # ARCH specific configuration directory |
| 8277 | # |
| 8278 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8279 | # Check whether --with-sharearch-dir was given. |
| 8280 | if test "${with_sharearch_dir+set}" = set; then : |
| 8281 | withval=$with_sharearch_dir; sharearch_dir=$withval |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8282 | else |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8283 | sharearch_dir="${DATA_DIR}" |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8284 | fi |
| 8285 | |
| 8286 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 8287 | eval "eval SHAREARCH_DIR=$sharearch_dir" |
| 8288 | SHAREARCH_DIR="$sharearch_dir" |
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 8289 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8290 | |
| 8291 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8292 | # Enable support for threads |
| 8293 | |
| 8294 | # Check whether --with-threads was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8295 | if test "${with_threads+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8296 | withval=$with_threads; with_threads=$withval |
| 8297 | else |
| 8298 | with_threads='yes' |
| 8299 | fi |
| 8300 | |
| 8301 | |
| 8302 | have_threads=no |
| 8303 | if test "$with_threads" != 'no'; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8304 | |
| 8305 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8306 | ac_ext=c |
| 8307 | ac_cpp='$CPP $CPPFLAGS' |
| 8308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8311 | |
| 8312 | ax_pthread_ok=no |
| 8313 | |
| 8314 | # We used to check for pthread.h first, but this fails if pthread.h |
| 8315 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 8316 | # It gets checked for in the link test anyway. |
| 8317 | |
| 8318 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 8319 | # etcetera environment variables, and if threads linking works using |
| 8320 | # them: |
| 8321 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 8322 | save_CFLAGS="$CFLAGS" |
| 8323 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8324 | save_LIBS="$LIBS" |
| 8325 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 8327 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 8328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8329 | /* end confdefs.h. */ |
| 8330 | |
| 8331 | /* Override any GCC internal prototype to avoid an error. |
| 8332 | Use char because int might match the return type of a GCC |
| 8333 | builtin and then its argument prototype would still apply. */ |
| 8334 | #ifdef __cplusplus |
| 8335 | extern "C" |
| 8336 | #endif |
| 8337 | char pthread_join (); |
| 8338 | int |
| 8339 | main () |
| 8340 | { |
| 8341 | return pthread_join (); |
| 8342 | ; |
| 8343 | return 0; |
| 8344 | } |
| 8345 | _ACEOF |
| 8346 | if ac_fn_c_try_link "$LINENO"; then : |
| 8347 | ax_pthread_ok=yes |
| 8348 | fi |
| 8349 | rm -f core conftest.err conftest.$ac_objext \ |
| 8350 | conftest$ac_exeext conftest.$ac_ext |
| 8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8352 | $as_echo "$ax_pthread_ok" >&6; } |
| 8353 | if test x"$ax_pthread_ok" = xno; then |
| 8354 | PTHREAD_LIBS="" |
| 8355 | PTHREAD_CFLAGS="" |
| 8356 | fi |
| 8357 | LIBS="$save_LIBS" |
| 8358 | CFLAGS="$save_CFLAGS" |
| 8359 | fi |
| 8360 | |
| 8361 | # We must check for the threads library under a number of different |
| 8362 | # names; the ordering is very important because some systems |
| 8363 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 8364 | # libraries is broken (non-POSIX). |
| 8365 | |
| 8366 | # Create a list of thread flags to try. Items starting with a "-" are |
| 8367 | # C compiler flags, and other items are library names, except for "none" |
| 8368 | # which indicates that we try without any flags at all, and "pthread-config" |
| 8369 | # which is a program returning the flags for the Pth emulation library. |
| 8370 | |
| 8371 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 8372 | |
| 8373 | # The ordering *is* (sometimes) important. Some notes on the |
| 8374 | # individual items follow: |
| 8375 | |
| 8376 | # pthreads: AIX (must check this before -lpthread) |
| 8377 | # none: in case threads are in libc; should be tried before -Kthread and |
| 8378 | # other compiler flags to prevent continual compiler warnings |
| 8379 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 8380 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 8381 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 8382 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 8383 | # -pthreads: Solaris/gcc |
| 8384 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 8385 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 8386 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 8387 | # also defines -D_REENTRANT) |
| 8388 | # ... -mt is also the pthreads flag for HP/aCC |
| 8389 | # pthread: Linux, etcetera |
| 8390 | # --thread-safe: KAI C++ |
| 8391 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 8392 | |
| 8393 | case "${host_cpu}-${host_os}" in |
| 8394 | *solaris*) |
| 8395 | |
| 8396 | # On Solaris (at least, for some versions), libc contains stubbed |
| 8397 | # (non-functional) versions of the pthreads routines, so link-based |
| 8398 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 8399 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 8400 | # a function called by this macro, so we could check for that, but |
| 8401 | # who knows whether they'll stub that too in a future libc.) So, |
| 8402 | # we'll just look for -pthreads and -lpthread first: |
| 8403 | |
| 8404 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 8405 | ;; |
| 8406 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8407 | *-darwin*) |
| 8408 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 8409 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8410 | esac |
| 8411 | |
| 8412 | if test x"$ax_pthread_ok" = xno; then |
| 8413 | for flag in $ax_pthread_flags; do |
| 8414 | |
| 8415 | case $flag in |
| 8416 | none) |
| 8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 8418 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 8419 | ;; |
| 8420 | |
| 8421 | -*) |
| 8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 8423 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 8424 | PTHREAD_CFLAGS="$flag" |
| 8425 | ;; |
| 8426 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8427 | pthread-config) |
| 8428 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8429 | set dummy pthread-config; ac_word=$2 |
| 8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8431 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8432 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8433 | $as_echo_n "(cached) " >&6 |
| 8434 | else |
| 8435 | if test -n "$ax_pthread_config"; then |
| 8436 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 8437 | else |
| 8438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8439 | for as_dir in $PATH |
| 8440 | do |
| 8441 | IFS=$as_save_IFS |
| 8442 | test -z "$as_dir" && as_dir=. |
| 8443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8445 | ac_cv_prog_ax_pthread_config="yes" |
| 8446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8447 | break 2 |
| 8448 | fi |
| 8449 | done |
| 8450 | done |
| 8451 | IFS=$as_save_IFS |
| 8452 | |
| 8453 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 8454 | fi |
| 8455 | fi |
| 8456 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 8457 | if test -n "$ax_pthread_config"; then |
| 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 8459 | $as_echo "$ax_pthread_config" >&6; } |
| 8460 | else |
| 8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8462 | $as_echo "no" >&6; } |
| 8463 | fi |
| 8464 | |
| 8465 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8466 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 8467 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 8468 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 8469 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8470 | |
| 8471 | *) |
| 8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 8473 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 8474 | PTHREAD_LIBS="-l$flag" |
| 8475 | ;; |
| 8476 | esac |
| 8477 | |
| 8478 | save_LIBS="$LIBS" |
| 8479 | save_CFLAGS="$CFLAGS" |
| 8480 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8481 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8482 | |
| 8483 | # Check for various functions. We must include pthread.h, |
| 8484 | # since some functions may be macros. (On the Sequent, we |
| 8485 | # need a special flag -Kthread to make this header compile.) |
| 8486 | # We check for pthread_join because it is in -lpthread on IRIX |
| 8487 | # while pthread_create is in libc. We check for pthread_attr_init |
| 8488 | # due to DEC craziness with -lpthreads. We check for |
| 8489 | # pthread_cleanup_push because it is one of the few pthread |
| 8490 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 8491 | # We try pthread_create on general principles. |
| 8492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8493 | /* end confdefs.h. */ |
| 8494 | #include <pthread.h> |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8495 | static void routine(void *a) { a = 0; } |
| 8496 | static void *start_routine(void *a) { return a; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8497 | int |
| 8498 | main () |
| 8499 | { |
| 8500 | pthread_t th; pthread_attr_t attr; |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8501 | pthread_create(&th, 0, start_routine, 0); |
| 8502 | pthread_join(th, 0); |
| 8503 | pthread_attr_init(&attr); |
| 8504 | pthread_cleanup_push(routine, 0); |
| 8505 | pthread_cleanup_pop(0) /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8506 | ; |
| 8507 | return 0; |
| 8508 | } |
| 8509 | _ACEOF |
| 8510 | if ac_fn_c_try_link "$LINENO"; then : |
| 8511 | ax_pthread_ok=yes |
| 8512 | fi |
| 8513 | rm -f core conftest.err conftest.$ac_objext \ |
| 8514 | conftest$ac_exeext conftest.$ac_ext |
| 8515 | |
| 8516 | LIBS="$save_LIBS" |
| 8517 | CFLAGS="$save_CFLAGS" |
| 8518 | |
| 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8520 | $as_echo "$ax_pthread_ok" >&6; } |
| 8521 | if test "x$ax_pthread_ok" = xyes; then |
| 8522 | break; |
| 8523 | fi |
| 8524 | |
| 8525 | PTHREAD_LIBS="" |
| 8526 | PTHREAD_CFLAGS="" |
| 8527 | done |
| 8528 | fi |
| 8529 | |
| 8530 | # Various other checks: |
| 8531 | if test "x$ax_pthread_ok" = xyes; then |
| 8532 | save_LIBS="$LIBS" |
| 8533 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8534 | save_CFLAGS="$CFLAGS" |
| 8535 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8536 | |
| 8537 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8539 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8540 | attr_name=unknown |
| 8541 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 8542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8543 | /* end confdefs.h. */ |
| 8544 | #include <pthread.h> |
| 8545 | int |
| 8546 | main () |
| 8547 | { |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8548 | int attr = $attr; return attr /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8549 | ; |
| 8550 | return 0; |
| 8551 | } |
| 8552 | _ACEOF |
| 8553 | if ac_fn_c_try_link "$LINENO"; then : |
| 8554 | attr_name=$attr; break |
| 8555 | fi |
| 8556 | rm -f core conftest.err conftest.$ac_objext \ |
| 8557 | conftest$ac_exeext conftest.$ac_ext |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8558 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 8560 | $as_echo "$attr_name" >&6; } |
| 8561 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 8562 | |
| 8563 | cat >>confdefs.h <<_ACEOF |
| 8564 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 8565 | _ACEOF |
| 8566 | |
| 8567 | fi |
| 8568 | |
| 8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 8570 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 8571 | flag=no |
| 8572 | case "${host_cpu}-${host_os}" in |
| 8573 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 8574 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 8575 | esac |
| 8576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 8577 | $as_echo "${flag}" >&6; } |
| 8578 | if test "x$flag" != xno; then |
| 8579 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 8580 | fi |
| 8581 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 8583 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 8584 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : |
| 8585 | $as_echo_n "(cached) " >&6 |
| 8586 | else |
| 8587 | |
| 8588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8589 | /* end confdefs.h. */ |
| 8590 | |
| 8591 | #include <pthread.h> |
| 8592 | int |
| 8593 | main () |
| 8594 | { |
| 8595 | int i = PTHREAD_PRIO_INHERIT; |
| 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
| 8600 | if ac_fn_c_try_link "$LINENO"; then : |
| 8601 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 8602 | else |
| 8603 | ax_cv_PTHREAD_PRIO_INHERIT=no |
| 8604 | fi |
| 8605 | rm -f core conftest.err conftest.$ac_objext \ |
| 8606 | conftest$ac_exeext conftest.$ac_ext |
| 8607 | |
| 8608 | fi |
| 8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 8610 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 8611 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : |
| 8612 | |
| 8613 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 8614 | |
| 8615 | fi |
| 8616 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8617 | LIBS="$save_LIBS" |
| 8618 | CFLAGS="$save_CFLAGS" |
| 8619 | |
| 8620 | # More AIX lossage: must compile with xlc_r or cc_r |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8621 | if test x"$GCC" != xyes; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8622 | for ac_prog in xlc_r cc_r |
| 8623 | do |
| 8624 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8625 | set dummy $ac_prog; ac_word=$2 |
| 8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8627 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8628 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8629 | $as_echo_n "(cached) " >&6 |
| 8630 | else |
| 8631 | if test -n "$PTHREAD_CC"; then |
| 8632 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 8633 | else |
| 8634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8635 | for as_dir in $PATH |
| 8636 | do |
| 8637 | IFS=$as_save_IFS |
| 8638 | test -z "$as_dir" && as_dir=. |
| 8639 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8641 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 8642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8643 | break 2 |
| 8644 | fi |
| 8645 | done |
| 8646 | done |
| 8647 | IFS=$as_save_IFS |
| 8648 | |
| 8649 | fi |
| 8650 | fi |
| 8651 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 8652 | if test -n "$PTHREAD_CC"; then |
| 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 8654 | $as_echo "$PTHREAD_CC" >&6; } |
| 8655 | else |
| 8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8657 | $as_echo "no" >&6; } |
| 8658 | fi |
| 8659 | |
| 8660 | |
| 8661 | test -n "$PTHREAD_CC" && break |
| 8662 | done |
| 8663 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 8664 | |
| 8665 | else |
| 8666 | PTHREAD_CC=$CC |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8667 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8668 | else |
| 8669 | PTHREAD_CC="$CC" |
| 8670 | fi |
| 8671 | |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 8677 | if test x"$ax_pthread_ok" = xyes; then |
| 8678 | |
| 8679 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 8680 | |
| 8681 | : |
| 8682 | else |
| 8683 | ax_pthread_ok=no |
| 8684 | |
| 8685 | fi |
| 8686 | ac_ext=c |
| 8687 | ac_cpp='$CPP $CPPFLAGS' |
| 8688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8691 | |
| 8692 | |
| cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 8693 | if test "$ax_pthread_ok" = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8694 | have_threads=yes |
| 8695 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 8696 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 8697 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 8698 | if test "$CC" != "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8699 | { $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] | 8700 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 8701 | CC="$PTHREAD_CC" |
| 8702 | fi |
| cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 8703 | |
| 8704 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h |
| 8705 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8706 | fi |
| 8707 | fi |
| 8708 | |
| 8709 | # Enable support for OpenMP |
| 8710 | if test "$have_threads" != 'yes'; then |
| 8711 | ac_cv_prog_c_openmp=unsupported |
| 8712 | fi |
| 8713 | |
| 8714 | OPENMP_CFLAGS= |
| 8715 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8716 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8717 | enableval=$enable_openmp; |
| 8718 | fi |
| 8719 | |
| 8720 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8721 | { $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] | 8722 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8723 | if ${ac_cv_prog_c_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8724 | $as_echo_n "(cached) " >&6 |
| 8725 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8727 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8728 | |
| 8729 | #ifndef _OPENMP |
| 8730 | choke me |
| 8731 | #endif |
| 8732 | #include <omp.h> |
| 8733 | int main () { return omp_get_num_threads (); } |
| 8734 | |
| 8735 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8736 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8737 | ac_cv_prog_c_openmp='none needed' |
| 8738 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8739 | ac_cv_prog_c_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8740 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 8741 | ac_save_CFLAGS=$CFLAGS |
| 8742 | CFLAGS="$CFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8744 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8745 | |
| 8746 | #ifndef _OPENMP |
| 8747 | choke me |
| 8748 | #endif |
| 8749 | #include <omp.h> |
| 8750 | int main () { return omp_get_num_threads (); } |
| 8751 | |
| 8752 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8753 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8754 | ac_cv_prog_c_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8755 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8756 | rm -f core conftest.err conftest.$ac_objext \ |
| 8757 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8758 | CFLAGS=$ac_save_CFLAGS |
| 8759 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 8760 | break |
| 8761 | fi |
| 8762 | done |
| 8763 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8764 | rm -f core conftest.err conftest.$ac_objext \ |
| 8765 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8766 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8767 | { $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] | 8768 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 8769 | case $ac_cv_prog_c_openmp in #( |
| 8770 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8771 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8772 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8773 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8774 | esac |
| 8775 | fi |
| 8776 | |
| 8777 | |
| 8778 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 8779 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 8780 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 8781 | if test "$enable_openmp" != no; then |
| 8782 | if test "$ac_cv_prog_c_openmp" != 'unsupported'; then |
| 8783 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" |
| 8784 | fi |
| 8785 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8786 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8787 | # Enable support for OpenCL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8788 | |
| 8789 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8790 | ac_ext=c |
| 8791 | ac_cpp='$CPP $CPPFLAGS' |
| 8792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8795 | |
| 8796 | ax_pthread_ok=no |
| 8797 | |
| 8798 | # We used to check for pthread.h first, but this fails if pthread.h |
| 8799 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 8800 | # It gets checked for in the link test anyway. |
| 8801 | |
| 8802 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 8803 | # etcetera environment variables, and if threads linking works using |
| 8804 | # them: |
| 8805 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 8806 | save_CFLAGS="$CFLAGS" |
| 8807 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8808 | save_LIBS="$LIBS" |
| 8809 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 8811 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 8812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8813 | /* end confdefs.h. */ |
| 8814 | |
| 8815 | /* Override any GCC internal prototype to avoid an error. |
| 8816 | Use char because int might match the return type of a GCC |
| 8817 | builtin and then its argument prototype would still apply. */ |
| 8818 | #ifdef __cplusplus |
| 8819 | extern "C" |
| 8820 | #endif |
| 8821 | char pthread_join (); |
| 8822 | int |
| 8823 | main () |
| 8824 | { |
| 8825 | return pthread_join (); |
| 8826 | ; |
| 8827 | return 0; |
| 8828 | } |
| 8829 | _ACEOF |
| 8830 | if ac_fn_c_try_link "$LINENO"; then : |
| 8831 | ax_pthread_ok=yes |
| 8832 | fi |
| 8833 | rm -f core conftest.err conftest.$ac_objext \ |
| 8834 | conftest$ac_exeext conftest.$ac_ext |
| 8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8836 | $as_echo "$ax_pthread_ok" >&6; } |
| 8837 | if test x"$ax_pthread_ok" = xno; then |
| 8838 | PTHREAD_LIBS="" |
| 8839 | PTHREAD_CFLAGS="" |
| 8840 | fi |
| 8841 | LIBS="$save_LIBS" |
| 8842 | CFLAGS="$save_CFLAGS" |
| 8843 | fi |
| 8844 | |
| 8845 | # We must check for the threads library under a number of different |
| 8846 | # names; the ordering is very important because some systems |
| 8847 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 8848 | # libraries is broken (non-POSIX). |
| 8849 | |
| 8850 | # Create a list of thread flags to try. Items starting with a "-" are |
| 8851 | # C compiler flags, and other items are library names, except for "none" |
| 8852 | # which indicates that we try without any flags at all, and "pthread-config" |
| 8853 | # which is a program returning the flags for the Pth emulation library. |
| 8854 | |
| 8855 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 8856 | |
| 8857 | # The ordering *is* (sometimes) important. Some notes on the |
| 8858 | # individual items follow: |
| 8859 | |
| 8860 | # pthreads: AIX (must check this before -lpthread) |
| 8861 | # none: in case threads are in libc; should be tried before -Kthread and |
| 8862 | # other compiler flags to prevent continual compiler warnings |
| 8863 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 8864 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 8865 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 8866 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 8867 | # -pthreads: Solaris/gcc |
| 8868 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 8869 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 8870 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 8871 | # also defines -D_REENTRANT) |
| 8872 | # ... -mt is also the pthreads flag for HP/aCC |
| 8873 | # pthread: Linux, etcetera |
| 8874 | # --thread-safe: KAI C++ |
| 8875 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 8876 | |
| 8877 | case "${host_cpu}-${host_os}" in |
| 8878 | *solaris*) |
| 8879 | |
| 8880 | # On Solaris (at least, for some versions), libc contains stubbed |
| 8881 | # (non-functional) versions of the pthreads routines, so link-based |
| 8882 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 8883 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 8884 | # a function called by this macro, so we could check for that, but |
| 8885 | # who knows whether they'll stub that too in a future libc.) So, |
| 8886 | # we'll just look for -pthreads and -lpthread first: |
| 8887 | |
| 8888 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 8889 | ;; |
| 8890 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8891 | *-darwin*) |
| 8892 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 8893 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8894 | esac |
| 8895 | |
| 8896 | if test x"$ax_pthread_ok" = xno; then |
| 8897 | for flag in $ax_pthread_flags; do |
| 8898 | |
| 8899 | case $flag in |
| 8900 | none) |
| 8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 8902 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 8903 | ;; |
| 8904 | |
| 8905 | -*) |
| 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 8907 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 8908 | PTHREAD_CFLAGS="$flag" |
| 8909 | ;; |
| 8910 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8911 | pthread-config) |
| 8912 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8913 | set dummy pthread-config; ac_word=$2 |
| 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8915 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8916 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8917 | $as_echo_n "(cached) " >&6 |
| 8918 | else |
| 8919 | if test -n "$ax_pthread_config"; then |
| 8920 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 8921 | else |
| 8922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8923 | for as_dir in $PATH |
| 8924 | do |
| 8925 | IFS=$as_save_IFS |
| 8926 | test -z "$as_dir" && as_dir=. |
| 8927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8929 | ac_cv_prog_ax_pthread_config="yes" |
| 8930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8931 | break 2 |
| 8932 | fi |
| 8933 | done |
| 8934 | done |
| 8935 | IFS=$as_save_IFS |
| 8936 | |
| 8937 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 8938 | fi |
| 8939 | fi |
| 8940 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 8941 | if test -n "$ax_pthread_config"; then |
| 8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 8943 | $as_echo "$ax_pthread_config" >&6; } |
| 8944 | else |
| 8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8946 | $as_echo "no" >&6; } |
| 8947 | fi |
| 8948 | |
| 8949 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8950 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 8951 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 8952 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 8953 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8954 | |
| 8955 | *) |
| 8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 8957 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 8958 | PTHREAD_LIBS="-l$flag" |
| 8959 | ;; |
| 8960 | esac |
| 8961 | |
| 8962 | save_LIBS="$LIBS" |
| 8963 | save_CFLAGS="$CFLAGS" |
| 8964 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8965 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8966 | |
| 8967 | # Check for various functions. We must include pthread.h, |
| 8968 | # since some functions may be macros. (On the Sequent, we |
| 8969 | # need a special flag -Kthread to make this header compile.) |
| 8970 | # We check for pthread_join because it is in -lpthread on IRIX |
| 8971 | # while pthread_create is in libc. We check for pthread_attr_init |
| 8972 | # due to DEC craziness with -lpthreads. We check for |
| 8973 | # pthread_cleanup_push because it is one of the few pthread |
| 8974 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 8975 | # We try pthread_create on general principles. |
| 8976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8977 | /* end confdefs.h. */ |
| 8978 | #include <pthread.h> |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8979 | static void routine(void *a) { a = 0; } |
| 8980 | static void *start_routine(void *a) { return a; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8981 | int |
| 8982 | main () |
| 8983 | { |
| 8984 | pthread_t th; pthread_attr_t attr; |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8985 | pthread_create(&th, 0, start_routine, 0); |
| 8986 | pthread_join(th, 0); |
| 8987 | pthread_attr_init(&attr); |
| 8988 | pthread_cleanup_push(routine, 0); |
| 8989 | pthread_cleanup_pop(0) /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8990 | ; |
| 8991 | return 0; |
| 8992 | } |
| 8993 | _ACEOF |
| 8994 | if ac_fn_c_try_link "$LINENO"; then : |
| 8995 | ax_pthread_ok=yes |
| 8996 | fi |
| 8997 | rm -f core conftest.err conftest.$ac_objext \ |
| 8998 | conftest$ac_exeext conftest.$ac_ext |
| 8999 | |
| 9000 | LIBS="$save_LIBS" |
| 9001 | CFLAGS="$save_CFLAGS" |
| 9002 | |
| 9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 9004 | $as_echo "$ax_pthread_ok" >&6; } |
| 9005 | if test "x$ax_pthread_ok" = xyes; then |
| 9006 | break; |
| 9007 | fi |
| 9008 | |
| 9009 | PTHREAD_LIBS="" |
| 9010 | PTHREAD_CFLAGS="" |
| 9011 | done |
| 9012 | fi |
| 9013 | |
| 9014 | # Various other checks: |
| 9015 | if test "x$ax_pthread_ok" = xyes; then |
| 9016 | save_LIBS="$LIBS" |
| 9017 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9018 | save_CFLAGS="$CFLAGS" |
| 9019 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9020 | |
| 9021 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9023 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9024 | attr_name=unknown |
| 9025 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 9026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9027 | /* end confdefs.h. */ |
| 9028 | #include <pthread.h> |
| 9029 | int |
| 9030 | main () |
| 9031 | { |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9032 | int attr = $attr; return attr /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9033 | ; |
| 9034 | return 0; |
| 9035 | } |
| 9036 | _ACEOF |
| 9037 | if ac_fn_c_try_link "$LINENO"; then : |
| 9038 | attr_name=$attr; break |
| 9039 | fi |
| 9040 | rm -f core conftest.err conftest.$ac_objext \ |
| 9041 | conftest$ac_exeext conftest.$ac_ext |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9042 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 9044 | $as_echo "$attr_name" >&6; } |
| 9045 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 9046 | |
| 9047 | cat >>confdefs.h <<_ACEOF |
| 9048 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 9049 | _ACEOF |
| 9050 | |
| 9051 | fi |
| 9052 | |
| 9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 9054 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 9055 | flag=no |
| 9056 | case "${host_cpu}-${host_os}" in |
| 9057 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 9058 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 9059 | esac |
| 9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 9061 | $as_echo "${flag}" >&6; } |
| 9062 | if test "x$flag" != xno; then |
| 9063 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 9064 | fi |
| 9065 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 9067 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 9068 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : |
| 9069 | $as_echo_n "(cached) " >&6 |
| 9070 | else |
| 9071 | |
| 9072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9073 | /* end confdefs.h. */ |
| 9074 | |
| 9075 | #include <pthread.h> |
| 9076 | int |
| 9077 | main () |
| 9078 | { |
| 9079 | int i = PTHREAD_PRIO_INHERIT; |
| 9080 | ; |
| 9081 | return 0; |
| 9082 | } |
| 9083 | _ACEOF |
| 9084 | if ac_fn_c_try_link "$LINENO"; then : |
| 9085 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 9086 | else |
| 9087 | ax_cv_PTHREAD_PRIO_INHERIT=no |
| 9088 | fi |
| 9089 | rm -f core conftest.err conftest.$ac_objext \ |
| 9090 | conftest$ac_exeext conftest.$ac_ext |
| 9091 | |
| 9092 | fi |
| 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 9094 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 9095 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : |
| 9096 | |
| 9097 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 9098 | |
| 9099 | fi |
| 9100 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9101 | LIBS="$save_LIBS" |
| 9102 | CFLAGS="$save_CFLAGS" |
| 9103 | |
| 9104 | # More AIX lossage: must compile with xlc_r or cc_r |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9105 | if test x"$GCC" != xyes; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9106 | for ac_prog in xlc_r cc_r |
| 9107 | do |
| 9108 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9109 | set dummy $ac_prog; ac_word=$2 |
| 9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9111 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9112 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9113 | $as_echo_n "(cached) " >&6 |
| 9114 | else |
| 9115 | if test -n "$PTHREAD_CC"; then |
| 9116 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 9117 | else |
| 9118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9119 | for as_dir in $PATH |
| 9120 | do |
| 9121 | IFS=$as_save_IFS |
| 9122 | test -z "$as_dir" && as_dir=. |
| 9123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9125 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 9126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9127 | break 2 |
| 9128 | fi |
| 9129 | done |
| 9130 | done |
| 9131 | IFS=$as_save_IFS |
| 9132 | |
| 9133 | fi |
| 9134 | fi |
| 9135 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 9136 | if test -n "$PTHREAD_CC"; then |
| 9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 9138 | $as_echo "$PTHREAD_CC" >&6; } |
| 9139 | else |
| 9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9141 | $as_echo "no" >&6; } |
| 9142 | fi |
| 9143 | |
| 9144 | |
| 9145 | test -n "$PTHREAD_CC" && break |
| 9146 | done |
| 9147 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 9148 | |
| 9149 | else |
| 9150 | PTHREAD_CC=$CC |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9151 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9152 | else |
| 9153 | PTHREAD_CC="$CC" |
| 9154 | fi |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 9161 | if test x"$ax_pthread_ok" = xyes; then |
| 9162 | |
| 9163 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 9164 | |
| 9165 | : |
| 9166 | else |
| 9167 | ax_pthread_ok=no |
| 9168 | |
| 9169 | fi |
| 9170 | ac_ext=c |
| 9171 | ac_cpp='$CPP $CPPFLAGS' |
| 9172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | # Check whether --enable-opencl was given. |
| 9179 | if test "${enable_opencl+set}" = set; then : |
| 9180 | enableval=$enable_opencl; disable_opencl=$enableval |
| 9181 | else |
| 9182 | disable_opencl='yes' |
| 9183 | fi |
| 9184 | |
| 9185 | |
| 9186 | if test "$disable_opencl" = 'yes'; then |
| 9187 | ac_ext=c |
| 9188 | ac_cpp='$CPP $CPPFLAGS' |
| 9189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9192 | |
| 9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| 9194 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9195 | if ${ax_cv_c_compiler_ms+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9196 | $as_echo_n "(cached) " >&6 |
| 9197 | else |
| 9198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9199 | /* end confdefs.h. */ |
| 9200 | |
| 9201 | int |
| 9202 | main () |
| 9203 | { |
| 9204 | #ifndef _MSC_VER |
| 9205 | choke me |
| 9206 | #endif |
| 9207 | |
| 9208 | ; |
| 9209 | return 0; |
| 9210 | } |
| 9211 | _ACEOF |
| 9212 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9213 | ax_compiler_ms=yes |
| 9214 | else |
| 9215 | ax_compiler_ms=no |
| 9216 | fi |
| 9217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9218 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 9219 | |
| 9220 | fi |
| 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| 9222 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| 9223 | if test X$ax_compiler_ms = Xno; then : |
| 9224 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" |
| 9225 | fi |
| 9226 | |
| 9227 | ax_save_CPPFLAGS=$CPPFLAGS |
| 9228 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 9229 | for ac_header in CL/cl.h OpenCL/cl.h |
| 9230 | do : |
| 9231 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9232 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9233 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9234 | cat >>confdefs.h <<_ACEOF |
| 9235 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9236 | _ACEOF |
| 9237 | |
| 9238 | fi |
| 9239 | |
| 9240 | done |
| 9241 | |
| 9242 | CPPFLAGS=$ax_save_CPPFLAGS |
| 9243 | |
| 9244 | for ac_header in windows.h |
| 9245 | do : |
| 9246 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9247 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9248 | cat >>confdefs.h <<_ACEOF |
| 9249 | #define HAVE_WINDOWS_H 1 |
| 9250 | _ACEOF |
| 9251 | |
| 9252 | fi |
| 9253 | |
| 9254 | done |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 |
| 9260 | $as_echo_n "checking for OpenCL library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9261 | if ${ax_cv_check_cl_libcl+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9262 | $as_echo_n "(cached) " >&6 |
| 9263 | else |
| 9264 | ax_cv_check_cl_libcl=no |
| 9265 | case $host_cpu in |
| 9266 | x86_64) ax_check_cl_libdir=lib64 ;; |
| 9267 | *) ax_check_cl_libdir=lib ;; |
| 9268 | esac |
| 9269 | ax_save_CPPFLAGS=$CPPFLAGS |
| 9270 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 9271 | ax_save_LIBS=$LIBS |
| 9272 | LIBS="" |
| 9273 | ax_check_libs="-lOpenCL -lCL -lclparser" |
| 9274 | for ax_lib in $ax_check_libs; do |
| 9275 | if test X$ax_compiler_ms = Xyes; then : |
| 9276 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` |
| 9277 | else |
| 9278 | ax_try_lib=$ax_lib |
| 9279 | fi |
| 9280 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" |
| 9281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9282 | /* end confdefs.h. */ |
| 9283 | |
| 9284 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9285 | # include <windows.h> |
| 9286 | # endif |
| 9287 | # ifdef HAVE_CL_CL_H |
| 9288 | # include <CL/cl.h> |
| 9289 | # elif defined(HAVE_OPENCL_CL_H) |
| 9290 | # include <OpenCL/cl.h> |
| 9291 | # else |
| 9292 | # error no CL.h |
| 9293 | # endif |
| 9294 | int |
| 9295 | main () |
| 9296 | { |
| 9297 | clCreateContextFromType(0,0,0,0,0) |
| 9298 | ; |
| 9299 | return 0; |
| 9300 | } |
| 9301 | _ACEOF |
| 9302 | if ac_fn_c_try_link "$LINENO"; then : |
| 9303 | ax_cv_check_cl_libcl=$ax_try_lib; break |
| 9304 | else |
| 9305 | 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" |
| 9306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9307 | /* end confdefs.h. */ |
| 9308 | |
| 9309 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9310 | # include <windows.h> |
| 9311 | # endif |
| 9312 | # ifdef HAVE_CL_CL_H |
| 9313 | # include <CL/cl.h> |
| 9314 | # elif defined(HAVE_OPENCL_CL_H) |
| 9315 | # include <OpenCL/cl.h> |
| 9316 | # else |
| 9317 | # error no CL.h |
| 9318 | # endif |
| 9319 | int |
| 9320 | main () |
| 9321 | { |
| 9322 | clCreateContextFromType(0,0,0,0,0) |
| 9323 | ; |
| 9324 | return 0; |
| 9325 | } |
| 9326 | _ACEOF |
| 9327 | if ac_fn_c_try_link "$LINENO"; then : |
| 9328 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break |
| 9329 | else |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9330 | ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9332 | /* end confdefs.h. */ |
| 9333 | |
| 9334 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9335 | # include <windows.h> |
| 9336 | # endif |
| 9337 | # ifdef HAVE_CL_CL_H |
| 9338 | # include <CL/cl.h> |
| 9339 | # elif defined(HAVE_OPENCL_CL_H) |
| 9340 | # include <OpenCL/cl.h> |
| 9341 | # else |
| 9342 | # error no CL.h |
| 9343 | # endif |
| 9344 | int |
| 9345 | main () |
| 9346 | { |
| 9347 | clCreateContextFromType(0,0,0,0,0) |
| 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
| 9351 | _ACEOF |
| 9352 | if ac_fn_c_try_link "$LINENO"; then : |
| 9353 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break |
| 9354 | fi |
| 9355 | rm -f core conftest.err conftest.$ac_objext \ |
| 9356 | conftest$ac_exeext conftest.$ac_ext |
| 9357 | fi |
| 9358 | rm -f core conftest.err conftest.$ac_objext \ |
| 9359 | conftest$ac_exeext conftest.$ac_ext |
| 9360 | fi |
| 9361 | rm -f core conftest.err conftest.$ac_objext \ |
| 9362 | conftest$ac_exeext conftest.$ac_ext |
| 9363 | done |
| 9364 | |
| 9365 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9366 | LIBS='-Wl,-framework,OpenCL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9368 | /* end confdefs.h. */ |
| 9369 | |
| 9370 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9371 | # include <windows.h> |
| 9372 | # endif |
| 9373 | # ifdef HAVE_CL_CL_H |
| 9374 | # include <CL/cl.h> |
| 9375 | # elif defined(HAVE_OPENCL_CL_H) |
| 9376 | # include <OpenCL/cl.h> |
| 9377 | # else |
| 9378 | # error no CL.h |
| 9379 | # endif |
| 9380 | int |
| 9381 | main () |
| 9382 | { |
| 9383 | clCreateContextFromType(0,0,0,0,0) |
| 9384 | ; |
| 9385 | return 0; |
| 9386 | } |
| 9387 | _ACEOF |
| 9388 | if ac_fn_c_try_link "$LINENO"; then : |
| 9389 | ax_cv_check_cl_libcl=$LIBS |
| 9390 | fi |
| 9391 | rm -f core conftest.err conftest.$ac_objext \ |
| 9392 | conftest$ac_exeext conftest.$ac_ext |
| 9393 | fi |
| 9394 | |
| 9395 | LIBS=$ax_save_LIBS |
| 9396 | CPPFLAGS=$ax_save_CPPFLAGS |
| 9397 | fi |
| 9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 |
| 9399 | $as_echo "$ax_cv_check_cl_libcl" >&6; } |
| 9400 | |
| 9401 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| 9402 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" |
| 9403 | else |
| 9404 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; |
| 9405 | $as_echo "#define _OPENCL 1" >>confdefs.h |
| 9406 | |
| 9407 | fi |
| 9408 | ac_ext=c |
| 9409 | ac_cpp='$CPP $CPPFLAGS' |
| 9410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9413 | |
| 9414 | fi |
| 9415 | |
| 9416 | |
| 9417 | |
| 9418 | |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9419 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 9420 | LIBS="$CL_LIBS $LIBS" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9421 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9422 | if test "$enable_opencl" != no; then |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 9423 | if test "X$ax_cv_check_cl_libcl" != Xno; then : |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9424 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" |
| 9425 | fi |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 9426 | fi |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 9427 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9428 | ######## |
| 9429 | # |
| 9430 | # Check for large file support |
| 9431 | # |
| 9432 | ######## |
| 9433 | # Check whether --enable-largefile was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9434 | if test "${enable_largefile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9435 | enableval=$enable_largefile; |
| 9436 | fi |
| 9437 | |
| 9438 | if test "$enable_largefile" != no; then |
| 9439 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9440 | { $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] | 9441 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9442 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9443 | $as_echo_n "(cached) " >&6 |
| 9444 | else |
| 9445 | ac_cv_sys_largefile_CC=no |
| 9446 | if test "$GCC" != yes; then |
| 9447 | ac_save_CC=$CC |
| 9448 | while :; do |
| 9449 | # IRIX 6.2 and later do not support large files by default, |
| 9450 | # so use the C compiler's -n32 option if that helps. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9452 | /* end confdefs.h. */ |
| 9453 | #include <sys/types.h> |
| 9454 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9455 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9456 | since some C++ compilers masquerading as C compilers |
| 9457 | incorrectly reject 9223372036854775807. */ |
| 9458 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9459 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9460 | && LARGE_OFF_T % 2147483647 == 1) |
| 9461 | ? 1 : -1]; |
| 9462 | int |
| 9463 | main () |
| 9464 | { |
| 9465 | |
| 9466 | ; |
| 9467 | return 0; |
| 9468 | } |
| 9469 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9470 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9471 | break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9472 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9473 | rm -f core conftest.err conftest.$ac_objext |
| 9474 | CC="$CC -n32" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9475 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9476 | ac_cv_sys_largefile_CC=' -n32'; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9477 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9478 | rm -f core conftest.err conftest.$ac_objext |
| 9479 | break |
| 9480 | done |
| 9481 | CC=$ac_save_CC |
| 9482 | rm -f conftest.$ac_ext |
| 9483 | fi |
| 9484 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9485 | { $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] | 9486 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 9487 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 9488 | CC=$CC$ac_cv_sys_largefile_CC |
| 9489 | fi |
| 9490 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9491 | { $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] | 9492 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9493 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9494 | $as_echo_n "(cached) " >&6 |
| 9495 | else |
| 9496 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9498 | /* end confdefs.h. */ |
| 9499 | #include <sys/types.h> |
| 9500 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9501 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9502 | since some C++ compilers masquerading as C compilers |
| 9503 | incorrectly reject 9223372036854775807. */ |
| 9504 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9505 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9506 | && LARGE_OFF_T % 2147483647 == 1) |
| 9507 | ? 1 : -1]; |
| 9508 | int |
| 9509 | main () |
| 9510 | { |
| 9511 | |
| 9512 | ; |
| 9513 | return 0; |
| 9514 | } |
| 9515 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9516 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9517 | ac_cv_sys_file_offset_bits=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9518 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9521 | /* end confdefs.h. */ |
| 9522 | #define _FILE_OFFSET_BITS 64 |
| 9523 | #include <sys/types.h> |
| 9524 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9525 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9526 | since some C++ compilers masquerading as C compilers |
| 9527 | incorrectly reject 9223372036854775807. */ |
| 9528 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9529 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9530 | && LARGE_OFF_T % 2147483647 == 1) |
| 9531 | ? 1 : -1]; |
| 9532 | int |
| 9533 | main () |
| 9534 | { |
| 9535 | |
| 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9540 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9541 | ac_cv_sys_file_offset_bits=64; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9542 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9544 | ac_cv_sys_file_offset_bits=unknown |
| 9545 | break |
| 9546 | done |
| 9547 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9548 | { $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] | 9549 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 9550 | case $ac_cv_sys_file_offset_bits in #( |
| 9551 | no | unknown) ;; |
| 9552 | *) |
| 9553 | cat >>confdefs.h <<_ACEOF |
| 9554 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 9555 | _ACEOF |
| 9556 | ;; |
| 9557 | esac |
| 9558 | rm -rf conftest* |
| 9559 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9560 | { $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] | 9561 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9562 | if ${ac_cv_sys_large_files+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9563 | $as_echo_n "(cached) " >&6 |
| 9564 | else |
| 9565 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9567 | /* end confdefs.h. */ |
| 9568 | #include <sys/types.h> |
| 9569 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9570 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9571 | since some C++ compilers masquerading as C compilers |
| 9572 | incorrectly reject 9223372036854775807. */ |
| 9573 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9574 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9575 | && LARGE_OFF_T % 2147483647 == 1) |
| 9576 | ? 1 : -1]; |
| 9577 | int |
| 9578 | main () |
| 9579 | { |
| 9580 | |
| 9581 | ; |
| 9582 | return 0; |
| 9583 | } |
| 9584 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9585 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9586 | ac_cv_sys_large_files=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9587 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9590 | /* end confdefs.h. */ |
| 9591 | #define _LARGE_FILES 1 |
| 9592 | #include <sys/types.h> |
| 9593 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9594 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9595 | since some C++ compilers masquerading as C compilers |
| 9596 | incorrectly reject 9223372036854775807. */ |
| 9597 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9598 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9599 | && LARGE_OFF_T % 2147483647 == 1) |
| 9600 | ? 1 : -1]; |
| 9601 | int |
| 9602 | main () |
| 9603 | { |
| 9604 | |
| 9605 | ; |
| 9606 | return 0; |
| 9607 | } |
| 9608 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9609 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9610 | ac_cv_sys_large_files=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9611 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9613 | ac_cv_sys_large_files=unknown |
| 9614 | break |
| 9615 | done |
| 9616 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9617 | { $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] | 9618 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 9619 | case $ac_cv_sys_large_files in #( |
| 9620 | no | unknown) ;; |
| 9621 | *) |
| 9622 | cat >>confdefs.h <<_ACEOF |
| 9623 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 9624 | _ACEOF |
| 9625 | ;; |
| 9626 | esac |
| 9627 | rm -rf conftest* |
| 9628 | fi |
| 9629 | fi |
| 9630 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9631 | { $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] | 9632 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9633 | if ${ac_cv_sys_largefile_source+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9634 | $as_echo_n "(cached) " >&6 |
| 9635 | else |
| 9636 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9638 | /* end confdefs.h. */ |
| 9639 | #include <sys/types.h> /* for off_t */ |
| 9640 | #include <stdio.h> |
| 9641 | int |
| 9642 | main () |
| 9643 | { |
| 9644 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 9645 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 9646 | ; |
| 9647 | return 0; |
| 9648 | } |
| 9649 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9650 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9651 | ac_cv_sys_largefile_source=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9652 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9653 | rm -f core conftest.err conftest.$ac_objext \ |
| 9654 | conftest$ac_exeext conftest.$ac_ext |
| 9655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9656 | /* end confdefs.h. */ |
| 9657 | #define _LARGEFILE_SOURCE 1 |
| 9658 | #include <sys/types.h> /* for off_t */ |
| 9659 | #include <stdio.h> |
| 9660 | int |
| 9661 | main () |
| 9662 | { |
| 9663 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 9664 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 9665 | ; |
| 9666 | return 0; |
| 9667 | } |
| 9668 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9669 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9670 | ac_cv_sys_largefile_source=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9671 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9672 | rm -f core conftest.err conftest.$ac_objext \ |
| 9673 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9674 | ac_cv_sys_largefile_source=unknown |
| 9675 | break |
| 9676 | done |
| 9677 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9678 | { $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] | 9679 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 9680 | case $ac_cv_sys_largefile_source in #( |
| 9681 | no | unknown) ;; |
| 9682 | *) |
| 9683 | cat >>confdefs.h <<_ACEOF |
| 9684 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 9685 | _ACEOF |
| 9686 | ;; |
| 9687 | esac |
| 9688 | rm -rf conftest* |
| 9689 | |
| 9690 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 9691 | # in glibc 2.1.3, but that breaks too many other things. |
| 9692 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 9693 | if test $ac_cv_sys_largefile_source != unknown; then |
| 9694 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9695 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9696 | |
| 9697 | fi |
| 9698 | |
| 9699 | LFS_CPPFLAGS='' |
| 9700 | if test "$enable_largefile" != no; then |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9701 | case $ac_cv_sys_file_offset_bits in |
| 9702 | no) |
| 9703 | # nothing to do here as the host supports LFS fine |
| 9704 | ;; |
| 9705 | unknown) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9706 | { $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] | 9707 | $as_echo_n "checking for native large file support... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9708 | if test "$cross_compiling" = yes; then : |
| 9709 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9711 | as_fn_error $? "cannot run test program while cross compiling |
| 9712 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9713 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9715 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9716 | #include <unistd.h> |
| 9717 | main () { |
| 9718 | exit(!(sizeof(off_t) == 8)); |
| 9719 | } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9720 | int |
| 9721 | main () |
| 9722 | { |
| 9723 | |
| 9724 | ; |
| 9725 | return 0; |
| 9726 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9727 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9728 | if ac_fn_c_try_run "$LINENO"; then : |
| 9729 | 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] | 9730 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 9732 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9733 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 9735 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9736 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9738 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9739 | fi |
| 9740 | |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9741 | ;; |
| 9742 | *) |
| 9743 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 9744 | ;; |
| 9745 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9746 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 9747 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 9748 | fi |
| 9749 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 9750 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 9751 | fi |
| 9752 | fi |
| 9753 | |
| 9754 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9755 | # Configure libtool |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9756 | enable_dlopen=yes |
| 9757 | |
| 9758 | |
| 9759 | |
| 9760 | case `pwd` in |
| 9761 | *\ * | *\ *) |
| 9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 9763 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 9764 | esac |
| 9765 | |
| 9766 | |
| 9767 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9768 | macro_version='2.4' |
| 9769 | macro_revision='1.3293' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9770 | |
| 9771 | |
| 9772 | |
| 9773 | |
| 9774 | |
| 9775 | |
| 9776 | |
| 9777 | |
| 9778 | |
| 9779 | |
| 9780 | |
| 9781 | |
| 9782 | |
| 9783 | ltmain="$ac_aux_dir/ltmain.sh" |
| 9784 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9785 | # Backslashify metacharacters that are still active within |
| 9786 | # double-quoted strings. |
| 9787 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 9788 | |
| 9789 | # Same as above, but do not quote variable references. |
| 9790 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 9791 | |
| 9792 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 9793 | # double_quote_subst'ed string. |
| 9794 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 9795 | |
| 9796 | # Sed substitution to delay expansion of an escaped single quote. |
| 9797 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 9798 | |
| 9799 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 9800 | no_glob_subst='s/\*/\\\*/g' |
| 9801 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 9803 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9804 | if ${lt_cv_path_NM+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9805 | $as_echo_n "(cached) " >&6 |
| 9806 | else |
| 9807 | if test -n "$NM"; then |
| 9808 | # Let the user override the test. |
| 9809 | lt_cv_path_NM="$NM" |
| 9810 | else |
| 9811 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 9812 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 9813 | lt_nm_to_check="$lt_nm_to_check nm" |
| 9814 | fi |
| 9815 | for lt_tmp_nm in $lt_nm_to_check; do |
| 9816 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9817 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 9818 | IFS="$lt_save_ifs" |
| 9819 | test -z "$ac_dir" && ac_dir=. |
| 9820 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 9821 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 9822 | # Check to see if the nm accepts a BSD-compat flag. |
| 9823 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 9824 | # nm: unknown option "B" ignored |
| 9825 | # Tru64's nm complains that /dev/null is an invalid object file |
| 9826 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 9827 | */dev/null* | *'Invalid file or object type'*) |
| 9828 | lt_cv_path_NM="$tmp_nm -B" |
| 9829 | break |
| 9830 | ;; |
| 9831 | *) |
| 9832 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 9833 | */dev/null*) |
| 9834 | lt_cv_path_NM="$tmp_nm -p" |
| 9835 | break |
| 9836 | ;; |
| 9837 | *) |
| 9838 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 9839 | continue # so that we can try to find one that supports BSD flags |
| 9840 | ;; |
| 9841 | esac |
| 9842 | ;; |
| 9843 | esac |
| 9844 | fi |
| 9845 | done |
| 9846 | IFS="$lt_save_ifs" |
| 9847 | done |
| 9848 | : ${lt_cv_path_NM=no} |
| 9849 | fi |
| 9850 | fi |
| 9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 9852 | $as_echo "$lt_cv_path_NM" >&6; } |
| 9853 | if test "$lt_cv_path_NM" != "no"; then |
| 9854 | NM="$lt_cv_path_NM" |
| 9855 | else |
| 9856 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9857 | if test -n "$DUMPBIN"; then : |
| 9858 | # Let the user override the test. |
| 9859 | else |
| 9860 | if test -n "$ac_tool_prefix"; then |
| 9861 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9862 | do |
| 9863 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 9864 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9866 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9867 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9868 | $as_echo_n "(cached) " >&6 |
| 9869 | else |
| 9870 | if test -n "$DUMPBIN"; then |
| 9871 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 9872 | else |
| 9873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9874 | for as_dir in $PATH |
| 9875 | do |
| 9876 | IFS=$as_save_IFS |
| 9877 | test -z "$as_dir" && as_dir=. |
| 9878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9880 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 9881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9882 | break 2 |
| 9883 | fi |
| 9884 | done |
| 9885 | done |
| 9886 | IFS=$as_save_IFS |
| 9887 | |
| 9888 | fi |
| 9889 | fi |
| 9890 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 9891 | if test -n "$DUMPBIN"; then |
| 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 9893 | $as_echo "$DUMPBIN" >&6; } |
| 9894 | else |
| 9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9896 | $as_echo "no" >&6; } |
| 9897 | fi |
| 9898 | |
| 9899 | |
| 9900 | test -n "$DUMPBIN" && break |
| 9901 | done |
| 9902 | fi |
| 9903 | if test -z "$DUMPBIN"; then |
| 9904 | ac_ct_DUMPBIN=$DUMPBIN |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9905 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9906 | do |
| 9907 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9908 | set dummy $ac_prog; ac_word=$2 |
| 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9910 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9911 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9912 | $as_echo_n "(cached) " >&6 |
| 9913 | else |
| 9914 | if test -n "$ac_ct_DUMPBIN"; then |
| 9915 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 9916 | else |
| 9917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9918 | for as_dir in $PATH |
| 9919 | do |
| 9920 | IFS=$as_save_IFS |
| 9921 | test -z "$as_dir" && as_dir=. |
| 9922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9924 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 9925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9926 | break 2 |
| 9927 | fi |
| 9928 | done |
| 9929 | done |
| 9930 | IFS=$as_save_IFS |
| 9931 | |
| 9932 | fi |
| 9933 | fi |
| 9934 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 9935 | if test -n "$ac_ct_DUMPBIN"; then |
| 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 9937 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 9938 | else |
| 9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9940 | $as_echo "no" >&6; } |
| 9941 | fi |
| 9942 | |
| 9943 | |
| 9944 | test -n "$ac_ct_DUMPBIN" && break |
| 9945 | done |
| 9946 | |
| 9947 | if test "x$ac_ct_DUMPBIN" = x; then |
| 9948 | DUMPBIN=":" |
| 9949 | else |
| 9950 | case $cross_compiling:$ac_tool_warned in |
| 9951 | yes:) |
| 9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9953 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9954 | ac_tool_warned=yes ;; |
| 9955 | esac |
| 9956 | DUMPBIN=$ac_ct_DUMPBIN |
| 9957 | fi |
| 9958 | fi |
| 9959 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9960 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 9961 | *COFF*) |
| 9962 | DUMPBIN="$DUMPBIN -symbols" |
| 9963 | ;; |
| 9964 | *) |
| 9965 | DUMPBIN=: |
| 9966 | ;; |
| 9967 | esac |
| 9968 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9969 | |
| 9970 | if test "$DUMPBIN" != ":"; then |
| 9971 | NM="$DUMPBIN" |
| 9972 | fi |
| 9973 | fi |
| 9974 | test -z "$NM" && NM=nm |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 9982 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9983 | if ${lt_cv_nm_interface+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9984 | $as_echo_n "(cached) " >&6 |
| 9985 | else |
| 9986 | lt_cv_nm_interface="BSD nm" |
| 9987 | echo "int some_variable = 0;" > conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9988 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9989 | (eval "$ac_compile" 2>conftest.err) |
| 9990 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9991 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9992 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 9993 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9994 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9995 | cat conftest.out >&5 |
| 9996 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 9997 | lt_cv_nm_interface="MS dumpbin" |
| 9998 | fi |
| 9999 | rm -f conftest* |
| 10000 | fi |
| 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 10002 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 10003 | |
| 10004 | # find the maximum length of command line arguments |
| 10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 10006 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10007 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10008 | $as_echo_n "(cached) " >&6 |
| 10009 | else |
| 10010 | i=0 |
| 10011 | teststring="ABCD" |
| 10012 | |
| 10013 | case $build_os in |
| 10014 | msdosdjgpp*) |
| 10015 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 10016 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 10017 | # during glob expansion). Even if it were fixed, the result of this |
| 10018 | # check would be larger than it should be. |
| 10019 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 10020 | ;; |
| 10021 | |
| 10022 | gnu*) |
| 10023 | # Under GNU Hurd, this test is not required because there is |
| 10024 | # no limit to the length of command line arguments. |
| 10025 | # Libtool will interpret -1 as no limit whatsoever |
| 10026 | lt_cv_sys_max_cmd_len=-1; |
| 10027 | ;; |
| 10028 | |
| 10029 | cygwin* | mingw* | cegcc*) |
| 10030 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 10031 | # about 5 minutes as the teststring grows exponentially. |
| 10032 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 10033 | # you end up with a "frozen" computer, even though with patience |
| 10034 | # the test eventually succeeds (with a max line length of 256k). |
| 10035 | # Instead, let's just punt: use the minimum linelength reported by |
| 10036 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 10037 | lt_cv_sys_max_cmd_len=8192; |
| 10038 | ;; |
| 10039 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10040 | mint*) |
| 10041 | # On MiNT this can take a long time and run out of memory. |
| 10042 | lt_cv_sys_max_cmd_len=8192; |
| 10043 | ;; |
| 10044 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10045 | amigaos*) |
| 10046 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 10047 | # So we just punt and use a minimum line length of 8192. |
| 10048 | lt_cv_sys_max_cmd_len=8192; |
| 10049 | ;; |
| 10050 | |
| 10051 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 10052 | # This has been around since 386BSD, at least. Likely further. |
| 10053 | if test -x /sbin/sysctl; then |
| 10054 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 10055 | elif test -x /usr/sbin/sysctl; then |
| 10056 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 10057 | else |
| 10058 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 10059 | fi |
| 10060 | # And add a safety zone |
| 10061 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10062 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10063 | ;; |
| 10064 | |
| 10065 | interix*) |
| 10066 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 10067 | lt_cv_sys_max_cmd_len=196608 |
| 10068 | ;; |
| 10069 | |
| 10070 | osf*) |
| 10071 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 10072 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 10073 | # nice to cause kernel panics so lets avoid the loop below. |
| 10074 | # First set a reasonable default. |
| 10075 | lt_cv_sys_max_cmd_len=16384 |
| 10076 | # |
| 10077 | if test -x /sbin/sysconfig; then |
| 10078 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 10079 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 10080 | esac |
| 10081 | fi |
| 10082 | ;; |
| 10083 | sco3.2v5*) |
| 10084 | lt_cv_sys_max_cmd_len=102400 |
| 10085 | ;; |
| 10086 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 10087 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 10088 | if test -n "$kargmax"; then |
| 10089 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 10090 | else |
| 10091 | lt_cv_sys_max_cmd_len=32768 |
| 10092 | fi |
| 10093 | ;; |
| 10094 | *) |
| 10095 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 10096 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 10097 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10098 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10099 | else |
| 10100 | # Make teststring a little bigger before we do anything with it. |
| 10101 | # a 1K string should be a reasonable start. |
| 10102 | for i in 1 2 3 4 5 6 7 8 ; do |
| 10103 | teststring=$teststring$teststring |
| 10104 | done |
| 10105 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 10106 | # If test is not a shell built-in, we'll probably end up computing a |
| 10107 | # maximum length that is only half of the actual maximum length, but |
| 10108 | # we can't tell. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10109 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 10110 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10111 | test $i != 17 # 1/2 MB should be enough |
| 10112 | do |
| 10113 | i=`expr $i + 1` |
| 10114 | teststring=$teststring$teststring |
| 10115 | done |
| 10116 | # Only check the string length outside the loop. |
| 10117 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 10118 | teststring= |
| 10119 | # Add a significant safety factor because C++ compilers can tack on |
| 10120 | # massive amounts of additional arguments before passing them to the |
| 10121 | # linker. It appears as though 1/2 is a usable value. |
| 10122 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 10123 | fi |
| 10124 | ;; |
| 10125 | esac |
| 10126 | |
| 10127 | fi |
| 10128 | |
| 10129 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 10131 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 10132 | else |
| 10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 10134 | $as_echo "none" >&6; } |
| 10135 | fi |
| 10136 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | : ${CP="cp -f"} |
| 10144 | : ${MV="mv -f"} |
| 10145 | : ${RM="rm -f"} |
| 10146 | |
| 10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 10148 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 10149 | # Try some XSI features |
| 10150 | xsi_shell=no |
| 10151 | ( _lt_dummy="a/b/c" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10152 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 10153 | = c,a/b,b/c, \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10154 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 10155 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 10156 | && xsi_shell=yes |
| 10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 10158 | $as_echo "$xsi_shell" >&6; } |
| 10159 | |
| 10160 | |
| 10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 10162 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 10163 | lt_shell_append=no |
| 10164 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 10165 | >/dev/null 2>&1 \ |
| 10166 | && lt_shell_append=yes |
| 10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 10168 | $as_echo "$lt_shell_append" >&6; } |
| 10169 | |
| 10170 | |
| 10171 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 10172 | lt_unset=unset |
| 10173 | else |
| 10174 | lt_unset=false |
| 10175 | fi |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | |
| 10180 | |
| 10181 | # test EBCDIC or ASCII |
| 10182 | case `echo X|tr X '\101'` in |
| 10183 | A) # ASCII based system |
| 10184 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 10185 | lt_SP2NL='tr \040 \012' |
| 10186 | lt_NL2SP='tr \015\012 \040\040' |
| 10187 | ;; |
| 10188 | *) # EBCDIC based system |
| 10189 | lt_SP2NL='tr \100 \n' |
| 10190 | lt_NL2SP='tr \r\n \100\100' |
| 10191 | ;; |
| 10192 | esac |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
| 10198 | |
| 10199 | |
| 10200 | |
| 10201 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 10203 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 10204 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 10205 | $as_echo_n "(cached) " >&6 |
| 10206 | else |
| 10207 | case $host in |
| 10208 | *-*-mingw* ) |
| 10209 | case $build in |
| 10210 | *-*-mingw* ) # actually msys |
| 10211 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 10212 | ;; |
| 10213 | *-*-cygwin* ) |
| 10214 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 10215 | ;; |
| 10216 | * ) # otherwise, assume *nix |
| 10217 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 10218 | ;; |
| 10219 | esac |
| 10220 | ;; |
| 10221 | *-*-cygwin* ) |
| 10222 | case $build in |
| 10223 | *-*-mingw* ) # actually msys |
| 10224 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 10225 | ;; |
| 10226 | *-*-cygwin* ) |
| 10227 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10228 | ;; |
| 10229 | * ) # otherwise, assume *nix |
| 10230 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 10231 | ;; |
| 10232 | esac |
| 10233 | ;; |
| 10234 | * ) # unhandled hosts (and "normal" native builds) |
| 10235 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10236 | ;; |
| 10237 | esac |
| 10238 | |
| 10239 | fi |
| 10240 | |
| 10241 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 10243 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 10244 | |
| 10245 | |
| 10246 | |
| 10247 | |
| 10248 | |
| 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 10250 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 10251 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 10252 | $as_echo_n "(cached) " >&6 |
| 10253 | else |
| 10254 | #assume ordinary cross tools, or native build. |
| 10255 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 10256 | case $host in |
| 10257 | *-*-mingw* ) |
| 10258 | case $build in |
| 10259 | *-*-mingw* ) # actually msys |
| 10260 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 10261 | ;; |
| 10262 | esac |
| 10263 | ;; |
| 10264 | esac |
| 10265 | |
| 10266 | fi |
| 10267 | |
| 10268 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 10270 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 10271 | |
| 10272 | |
| 10273 | |
| 10274 | |
| 10275 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 10277 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10278 | if ${lt_cv_ld_reload_flag+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10279 | $as_echo_n "(cached) " >&6 |
| 10280 | else |
| 10281 | lt_cv_ld_reload_flag='-r' |
| 10282 | fi |
| 10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 10284 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 10285 | reload_flag=$lt_cv_ld_reload_flag |
| 10286 | case $reload_flag in |
| 10287 | "" | " "*) ;; |
| 10288 | *) reload_flag=" $reload_flag" ;; |
| 10289 | esac |
| 10290 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10291 | case $host_os in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10292 | cygwin* | mingw* | pw32* | cegcc*) |
| 10293 | if test "$GCC" != yes; then |
| 10294 | reload_cmds=false |
| 10295 | fi |
| 10296 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10297 | darwin*) |
| 10298 | if test "$GCC" = yes; then |
| 10299 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 10300 | else |
| 10301 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10302 | fi |
| 10303 | ;; |
| 10304 | esac |
| 10305 | |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | if test -n "$ac_tool_prefix"; then |
| 10315 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10316 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10318 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10319 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10320 | $as_echo_n "(cached) " >&6 |
| 10321 | else |
| 10322 | if test -n "$OBJDUMP"; then |
| 10323 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10324 | else |
| 10325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10326 | for as_dir in $PATH |
| 10327 | do |
| 10328 | IFS=$as_save_IFS |
| 10329 | test -z "$as_dir" && as_dir=. |
| 10330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10332 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 10333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10334 | break 2 |
| 10335 | fi |
| 10336 | done |
| 10337 | done |
| 10338 | IFS=$as_save_IFS |
| 10339 | |
| 10340 | fi |
| 10341 | fi |
| 10342 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10343 | if test -n "$OBJDUMP"; then |
| 10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 10345 | $as_echo "$OBJDUMP" >&6; } |
| 10346 | else |
| 10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10348 | $as_echo "no" >&6; } |
| 10349 | fi |
| 10350 | |
| 10351 | |
| 10352 | fi |
| 10353 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10354 | ac_ct_OBJDUMP=$OBJDUMP |
| 10355 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10356 | set dummy objdump; ac_word=$2 |
| 10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10358 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10359 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10360 | $as_echo_n "(cached) " >&6 |
| 10361 | else |
| 10362 | if test -n "$ac_ct_OBJDUMP"; then |
| 10363 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10364 | else |
| 10365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10366 | for as_dir in $PATH |
| 10367 | do |
| 10368 | IFS=$as_save_IFS |
| 10369 | test -z "$as_dir" && as_dir=. |
| 10370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10372 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 10373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10374 | break 2 |
| 10375 | fi |
| 10376 | done |
| 10377 | done |
| 10378 | IFS=$as_save_IFS |
| 10379 | |
| 10380 | fi |
| 10381 | fi |
| 10382 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10383 | if test -n "$ac_ct_OBJDUMP"; then |
| 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 10385 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 10386 | else |
| 10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10388 | $as_echo "no" >&6; } |
| 10389 | fi |
| 10390 | |
| 10391 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10392 | OBJDUMP="false" |
| 10393 | else |
| 10394 | case $cross_compiling:$ac_tool_warned in |
| 10395 | yes:) |
| 10396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10398 | ac_tool_warned=yes ;; |
| 10399 | esac |
| 10400 | OBJDUMP=$ac_ct_OBJDUMP |
| 10401 | fi |
| 10402 | else |
| 10403 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10404 | fi |
| 10405 | |
| 10406 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | |
| 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 10414 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10415 | if ${lt_cv_deplibs_check_method+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10416 | $as_echo_n "(cached) " >&6 |
| 10417 | else |
| 10418 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10419 | lt_cv_file_magic_test_file= |
| 10420 | lt_cv_deplibs_check_method='unknown' |
| 10421 | # Need to set the preceding variable on all platforms that support |
| 10422 | # interlibrary dependencies. |
| 10423 | # 'none' -- dependencies not supported. |
| 10424 | # `unknown' -- same as none, but documents that we really don't know. |
| 10425 | # 'pass_all' -- all dependencies passed with no checks. |
| 10426 | # 'test_compile' -- check by making test program. |
| 10427 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10428 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10429 | # If you have `file' or equivalent on your system and you're not sure |
| 10430 | # whether `pass_all' will *always* work, you probably want this one. |
| 10431 | |
| 10432 | case $host_os in |
| 10433 | aix[4-9]*) |
| 10434 | lt_cv_deplibs_check_method=pass_all |
| 10435 | ;; |
| 10436 | |
| 10437 | beos*) |
| 10438 | lt_cv_deplibs_check_method=pass_all |
| 10439 | ;; |
| 10440 | |
| 10441 | bsdi[45]*) |
| 10442 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10443 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10444 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10445 | ;; |
| 10446 | |
| 10447 | cygwin*) |
| 10448 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10449 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10450 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10451 | ;; |
| 10452 | |
| 10453 | mingw* | pw32*) |
| 10454 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10455 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 10456 | # unless we find 'file', for example because we are cross-compiling. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10457 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 10458 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10459 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10460 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10461 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10462 | # Keep this pattern in sync with the one in func_win32_libid. |
| 10463 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10464 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10465 | fi |
| 10466 | ;; |
| 10467 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10468 | cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10469 | # use the weaker test based on 'objdump'. See mingw*. |
| 10470 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 10471 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10472 | ;; |
| 10473 | |
| 10474 | darwin* | rhapsody*) |
| 10475 | lt_cv_deplibs_check_method=pass_all |
| 10476 | ;; |
| 10477 | |
| 10478 | freebsd* | dragonfly*) |
| 10479 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 10480 | case $host_cpu in |
| 10481 | i*86 ) |
| 10482 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10483 | # Let's accept both of them until this is cleared up. |
| 10484 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 10485 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10486 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10487 | ;; |
| 10488 | esac |
| 10489 | else |
| 10490 | lt_cv_deplibs_check_method=pass_all |
| 10491 | fi |
| 10492 | ;; |
| 10493 | |
| 10494 | gnu*) |
| 10495 | lt_cv_deplibs_check_method=pass_all |
| 10496 | ;; |
| 10497 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10498 | haiku*) |
| 10499 | lt_cv_deplibs_check_method=pass_all |
| 10500 | ;; |
| 10501 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10502 | hpux10.20* | hpux11*) |
| 10503 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10504 | case $host_cpu in |
| 10505 | ia64*) |
| 10506 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10507 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10508 | ;; |
| 10509 | hppa*64*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10510 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10511 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10512 | ;; |
| 10513 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10514 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10515 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10516 | ;; |
| 10517 | esac |
| 10518 | ;; |
| 10519 | |
| 10520 | interix[3-9]*) |
| 10521 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 10522 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 10523 | ;; |
| 10524 | |
| 10525 | irix5* | irix6* | nonstopux*) |
| 10526 | case $LD in |
| 10527 | *-32|*"-32 ") libmagic=32-bit;; |
| 10528 | *-n32|*"-n32 ") libmagic=N32;; |
| 10529 | *-64|*"-64 ") libmagic=64-bit;; |
| 10530 | *) libmagic=never-match;; |
| 10531 | esac |
| 10532 | lt_cv_deplibs_check_method=pass_all |
| 10533 | ;; |
| 10534 | |
| 10535 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10536 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10537 | lt_cv_deplibs_check_method=pass_all |
| 10538 | ;; |
| 10539 | |
| 10540 | netbsd*) |
| 10541 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 10542 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10543 | else |
| 10544 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10545 | fi |
| 10546 | ;; |
| 10547 | |
| 10548 | newos6*) |
| 10549 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10550 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10551 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10552 | ;; |
| 10553 | |
| 10554 | *nto* | *qnx*) |
| 10555 | lt_cv_deplibs_check_method=pass_all |
| 10556 | ;; |
| 10557 | |
| 10558 | openbsd*) |
| 10559 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10560 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10561 | else |
| 10562 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10563 | fi |
| 10564 | ;; |
| 10565 | |
| 10566 | osf3* | osf4* | osf5*) |
| 10567 | lt_cv_deplibs_check_method=pass_all |
| 10568 | ;; |
| 10569 | |
| 10570 | rdos*) |
| 10571 | lt_cv_deplibs_check_method=pass_all |
| 10572 | ;; |
| 10573 | |
| 10574 | solaris*) |
| 10575 | lt_cv_deplibs_check_method=pass_all |
| 10576 | ;; |
| 10577 | |
| 10578 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10579 | lt_cv_deplibs_check_method=pass_all |
| 10580 | ;; |
| 10581 | |
| 10582 | sysv4 | sysv4.3*) |
| 10583 | case $host_vendor in |
| 10584 | motorola) |
| 10585 | 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]' |
| 10586 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10587 | ;; |
| 10588 | ncr) |
| 10589 | lt_cv_deplibs_check_method=pass_all |
| 10590 | ;; |
| 10591 | sequent) |
| 10592 | lt_cv_file_magic_cmd='/bin/file' |
| 10593 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10594 | ;; |
| 10595 | sni) |
| 10596 | lt_cv_file_magic_cmd='/bin/file' |
| 10597 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10598 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10599 | ;; |
| 10600 | siemens) |
| 10601 | lt_cv_deplibs_check_method=pass_all |
| 10602 | ;; |
| 10603 | pc) |
| 10604 | lt_cv_deplibs_check_method=pass_all |
| 10605 | ;; |
| 10606 | esac |
| 10607 | ;; |
| 10608 | |
| 10609 | tpf*) |
| 10610 | lt_cv_deplibs_check_method=pass_all |
| 10611 | ;; |
| 10612 | esac |
| 10613 | |
| 10614 | fi |
| 10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 10616 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10617 | |
| 10618 | file_magic_glob= |
| 10619 | want_nocaseglob=no |
| 10620 | if test "$build" = "$host"; then |
| 10621 | case $host_os in |
| 10622 | mingw* | pw32*) |
| 10623 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 10624 | want_nocaseglob=yes |
| 10625 | else |
| 10626 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 10627 | fi |
| 10628 | ;; |
| 10629 | esac |
| 10630 | fi |
| 10631 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10632 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10633 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10634 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10635 | |
| 10636 | |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | |
| 10642 | |
| 10643 | |
| 10644 | |
| 10645 | |
| 10646 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10647 | |
| 10648 | |
| 10649 | |
| 10650 | |
| 10651 | |
| 10652 | |
| 10653 | |
| 10654 | |
| 10655 | |
| 10656 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10657 | if test -n "$ac_tool_prefix"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10658 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10659 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10661 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10662 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 10663 | $as_echo_n "(cached) " >&6 |
| 10664 | else |
| 10665 | if test -n "$DLLTOOL"; then |
| 10666 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10667 | else |
| 10668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10669 | for as_dir in $PATH |
| 10670 | do |
| 10671 | IFS=$as_save_IFS |
| 10672 | test -z "$as_dir" && as_dir=. |
| 10673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10675 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 10676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10677 | break 2 |
| 10678 | fi |
| 10679 | done |
| 10680 | done |
| 10681 | IFS=$as_save_IFS |
| 10682 | |
| 10683 | fi |
| 10684 | fi |
| 10685 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10686 | if test -n "$DLLTOOL"; then |
| 10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 10688 | $as_echo "$DLLTOOL" >&6; } |
| 10689 | else |
| 10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10691 | $as_echo "no" >&6; } |
| 10692 | fi |
| 10693 | |
| 10694 | |
| 10695 | fi |
| 10696 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10697 | ac_ct_DLLTOOL=$DLLTOOL |
| 10698 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10699 | set dummy dlltool; ac_word=$2 |
| 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10701 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10702 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 10703 | $as_echo_n "(cached) " >&6 |
| 10704 | else |
| 10705 | if test -n "$ac_ct_DLLTOOL"; then |
| 10706 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10707 | else |
| 10708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10709 | for as_dir in $PATH |
| 10710 | do |
| 10711 | IFS=$as_save_IFS |
| 10712 | test -z "$as_dir" && as_dir=. |
| 10713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10715 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 10716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10717 | break 2 |
| 10718 | fi |
| 10719 | done |
| 10720 | done |
| 10721 | IFS=$as_save_IFS |
| 10722 | |
| 10723 | fi |
| 10724 | fi |
| 10725 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10726 | if test -n "$ac_ct_DLLTOOL"; then |
| 10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 10728 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 10729 | else |
| 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10731 | $as_echo "no" >&6; } |
| 10732 | fi |
| 10733 | |
| 10734 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10735 | DLLTOOL="false" |
| 10736 | else |
| 10737 | case $cross_compiling:$ac_tool_warned in |
| 10738 | yes:) |
| 10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10740 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10741 | ac_tool_warned=yes ;; |
| 10742 | esac |
| 10743 | DLLTOOL=$ac_ct_DLLTOOL |
| 10744 | fi |
| 10745 | else |
| 10746 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10747 | fi |
| 10748 | |
| 10749 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 10750 | |
| 10751 | |
| 10752 | |
| 10753 | |
| 10754 | |
| 10755 | |
| 10756 | |
| 10757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 10758 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 10759 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 10760 | $as_echo_n "(cached) " >&6 |
| 10761 | else |
| 10762 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 10763 | |
| 10764 | case $host_os in |
| 10765 | cygwin* | mingw* | pw32* | cegcc*) |
| 10766 | # two different shell functions defined in ltmain.sh |
| 10767 | # decide which to use based on capabilities of $DLLTOOL |
| 10768 | case `$DLLTOOL --help 2>&1` in |
| 10769 | *--identify-strict*) |
| 10770 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 10771 | ;; |
| 10772 | *) |
| 10773 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 10774 | ;; |
| 10775 | esac |
| 10776 | ;; |
| 10777 | *) |
| 10778 | # fallback: assume linklib IS sharedlib |
| 10779 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 10780 | ;; |
| 10781 | esac |
| 10782 | |
| 10783 | fi |
| 10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 10785 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 10786 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 10787 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 10788 | |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | if test -n "$ac_tool_prefix"; then |
| 10796 | for ac_prog in ar |
| 10797 | do |
| 10798 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10799 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10801 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10802 | if ${ac_cv_prog_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10803 | $as_echo_n "(cached) " >&6 |
| 10804 | else |
| 10805 | if test -n "$AR"; then |
| 10806 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10807 | else |
| 10808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10809 | for as_dir in $PATH |
| 10810 | do |
| 10811 | IFS=$as_save_IFS |
| 10812 | test -z "$as_dir" && as_dir=. |
| 10813 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10815 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10817 | break 2 |
| 10818 | fi |
| 10819 | done |
| 10820 | done |
| 10821 | IFS=$as_save_IFS |
| 10822 | |
| 10823 | fi |
| 10824 | fi |
| 10825 | AR=$ac_cv_prog_AR |
| 10826 | if test -n "$AR"; then |
| 10827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 10828 | $as_echo "$AR" >&6; } |
| 10829 | else |
| 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10831 | $as_echo "no" >&6; } |
| 10832 | fi |
| 10833 | |
| 10834 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10835 | test -n "$AR" && break |
| 10836 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10837 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10838 | if test -z "$AR"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10839 | ac_ct_AR=$AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10840 | for ac_prog in ar |
| 10841 | do |
| 10842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10843 | set dummy $ac_prog; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10845 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10846 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10847 | $as_echo_n "(cached) " >&6 |
| 10848 | else |
| 10849 | if test -n "$ac_ct_AR"; then |
| 10850 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 10851 | else |
| 10852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10853 | for as_dir in $PATH |
| 10854 | do |
| 10855 | IFS=$as_save_IFS |
| 10856 | test -z "$as_dir" && as_dir=. |
| 10857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10859 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10861 | break 2 |
| 10862 | fi |
| 10863 | done |
| 10864 | done |
| 10865 | IFS=$as_save_IFS |
| 10866 | |
| 10867 | fi |
| 10868 | fi |
| 10869 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10870 | if test -n "$ac_ct_AR"; then |
| 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 10872 | $as_echo "$ac_ct_AR" >&6; } |
| 10873 | else |
| 10874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10875 | $as_echo "no" >&6; } |
| 10876 | fi |
| 10877 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10878 | |
| 10879 | test -n "$ac_ct_AR" && break |
| 10880 | done |
| 10881 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10882 | if test "x$ac_ct_AR" = x; then |
| 10883 | AR="false" |
| 10884 | else |
| 10885 | case $cross_compiling:$ac_tool_warned in |
| 10886 | yes:) |
| 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10889 | ac_tool_warned=yes ;; |
| 10890 | esac |
| 10891 | AR=$ac_ct_AR |
| 10892 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10893 | fi |
| 10894 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10895 | : ${AR=ar} |
| 10896 | : ${AR_FLAGS=cru} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10897 | |
| 10898 | |
| 10899 | |
| 10900 | |
| 10901 | |
| 10902 | |
| 10903 | |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 10909 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 10910 | if ${lt_cv_ar_at_file+:} false; then : |
| 10911 | $as_echo_n "(cached) " >&6 |
| 10912 | else |
| 10913 | lt_cv_ar_at_file=no |
| 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10915 | /* end confdefs.h. */ |
| 10916 | |
| 10917 | int |
| 10918 | main () |
| 10919 | { |
| 10920 | |
| 10921 | ; |
| 10922 | return 0; |
| 10923 | } |
| 10924 | _ACEOF |
| 10925 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10926 | echo conftest.$ac_objext > conftest.lst |
| 10927 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 10928 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 10929 | (eval $lt_ar_try) 2>&5 |
| 10930 | ac_status=$? |
| 10931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10932 | test $ac_status = 0; } |
| 10933 | if test "$ac_status" -eq 0; then |
| 10934 | # Ensure the archiver fails upon bogus file names. |
| 10935 | rm -f conftest.$ac_objext libconftest.a |
| 10936 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 10937 | (eval $lt_ar_try) 2>&5 |
| 10938 | ac_status=$? |
| 10939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10940 | test $ac_status = 0; } |
| 10941 | if test "$ac_status" -ne 0; then |
| 10942 | lt_cv_ar_at_file=@ |
| 10943 | fi |
| 10944 | fi |
| 10945 | rm -f conftest.* libconftest.a |
| 10946 | |
| 10947 | fi |
| 10948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10949 | |
| 10950 | fi |
| 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 10952 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 10953 | |
| 10954 | if test "x$lt_cv_ar_at_file" = xno; then |
| 10955 | archiver_list_spec= |
| 10956 | else |
| 10957 | archiver_list_spec=$lt_cv_ar_at_file |
| 10958 | fi |
| 10959 | |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | |
| 10965 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10966 | if test -n "$ac_tool_prefix"; then |
| 10967 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 10968 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10970 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10971 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10972 | $as_echo_n "(cached) " >&6 |
| 10973 | else |
| 10974 | if test -n "$STRIP"; then |
| 10975 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10976 | else |
| 10977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10978 | for as_dir in $PATH |
| 10979 | do |
| 10980 | IFS=$as_save_IFS |
| 10981 | test -z "$as_dir" && as_dir=. |
| 10982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10984 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 10985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10986 | break 2 |
| 10987 | fi |
| 10988 | done |
| 10989 | done |
| 10990 | IFS=$as_save_IFS |
| 10991 | |
| 10992 | fi |
| 10993 | fi |
| 10994 | STRIP=$ac_cv_prog_STRIP |
| 10995 | if test -n "$STRIP"; then |
| 10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 10997 | $as_echo "$STRIP" >&6; } |
| 10998 | else |
| 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11000 | $as_echo "no" >&6; } |
| 11001 | fi |
| 11002 | |
| 11003 | |
| 11004 | fi |
| 11005 | if test -z "$ac_cv_prog_STRIP"; then |
| 11006 | ac_ct_STRIP=$STRIP |
| 11007 | # Extract the first word of "strip", so it can be a program name with args. |
| 11008 | set dummy strip; ac_word=$2 |
| 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11010 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11011 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11012 | $as_echo_n "(cached) " >&6 |
| 11013 | else |
| 11014 | if test -n "$ac_ct_STRIP"; then |
| 11015 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11016 | else |
| 11017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11018 | for as_dir in $PATH |
| 11019 | do |
| 11020 | IFS=$as_save_IFS |
| 11021 | test -z "$as_dir" && as_dir=. |
| 11022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11024 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11026 | break 2 |
| 11027 | fi |
| 11028 | done |
| 11029 | done |
| 11030 | IFS=$as_save_IFS |
| 11031 | |
| 11032 | fi |
| 11033 | fi |
| 11034 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11035 | if test -n "$ac_ct_STRIP"; then |
| 11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 11037 | $as_echo "$ac_ct_STRIP" >&6; } |
| 11038 | else |
| 11039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11040 | $as_echo "no" >&6; } |
| 11041 | fi |
| 11042 | |
| 11043 | if test "x$ac_ct_STRIP" = x; then |
| 11044 | STRIP=":" |
| 11045 | else |
| 11046 | case $cross_compiling:$ac_tool_warned in |
| 11047 | yes:) |
| 11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11050 | ac_tool_warned=yes ;; |
| 11051 | esac |
| 11052 | STRIP=$ac_ct_STRIP |
| 11053 | fi |
| 11054 | else |
| 11055 | STRIP="$ac_cv_prog_STRIP" |
| 11056 | fi |
| 11057 | |
| 11058 | test -z "$STRIP" && STRIP=: |
| 11059 | |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | if test -n "$ac_tool_prefix"; then |
| 11066 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11067 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11069 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11070 | if ${ac_cv_prog_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11071 | $as_echo_n "(cached) " >&6 |
| 11072 | else |
| 11073 | if test -n "$RANLIB"; then |
| 11074 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11075 | else |
| 11076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11077 | for as_dir in $PATH |
| 11078 | do |
| 11079 | IFS=$as_save_IFS |
| 11080 | test -z "$as_dir" && as_dir=. |
| 11081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11083 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11085 | break 2 |
| 11086 | fi |
| 11087 | done |
| 11088 | done |
| 11089 | IFS=$as_save_IFS |
| 11090 | |
| 11091 | fi |
| 11092 | fi |
| 11093 | RANLIB=$ac_cv_prog_RANLIB |
| 11094 | if test -n "$RANLIB"; then |
| 11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 11096 | $as_echo "$RANLIB" >&6; } |
| 11097 | else |
| 11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11099 | $as_echo "no" >&6; } |
| 11100 | fi |
| 11101 | |
| 11102 | |
| 11103 | fi |
| 11104 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11105 | ac_ct_RANLIB=$RANLIB |
| 11106 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11107 | set dummy ranlib; ac_word=$2 |
| 11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11109 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11110 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11111 | $as_echo_n "(cached) " >&6 |
| 11112 | else |
| 11113 | if test -n "$ac_ct_RANLIB"; then |
| 11114 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11115 | else |
| 11116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11117 | for as_dir in $PATH |
| 11118 | do |
| 11119 | IFS=$as_save_IFS |
| 11120 | test -z "$as_dir" && as_dir=. |
| 11121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11123 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11125 | break 2 |
| 11126 | fi |
| 11127 | done |
| 11128 | done |
| 11129 | IFS=$as_save_IFS |
| 11130 | |
| 11131 | fi |
| 11132 | fi |
| 11133 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11134 | if test -n "$ac_ct_RANLIB"; then |
| 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 11136 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 11137 | else |
| 11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11139 | $as_echo "no" >&6; } |
| 11140 | fi |
| 11141 | |
| 11142 | if test "x$ac_ct_RANLIB" = x; then |
| 11143 | RANLIB=":" |
| 11144 | else |
| 11145 | case $cross_compiling:$ac_tool_warned in |
| 11146 | yes:) |
| 11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11149 | ac_tool_warned=yes ;; |
| 11150 | esac |
| 11151 | RANLIB=$ac_ct_RANLIB |
| 11152 | fi |
| 11153 | else |
| 11154 | RANLIB="$ac_cv_prog_RANLIB" |
| 11155 | fi |
| 11156 | |
| 11157 | test -z "$RANLIB" && RANLIB=: |
| 11158 | |
| 11159 | |
| 11160 | |
| 11161 | |
| 11162 | |
| 11163 | |
| 11164 | # Determine commands to create old-style static archives. |
| 11165 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 11166 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11167 | old_postuninstall_cmds= |
| 11168 | |
| 11169 | if test -n "$RANLIB"; then |
| 11170 | case $host_os in |
| 11171 | openbsd*) |
| 11172 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 11173 | ;; |
| 11174 | *) |
| 11175 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 11176 | ;; |
| 11177 | esac |
| 11178 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 11179 | fi |
| 11180 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11181 | case $host_os in |
| 11182 | darwin*) |
| 11183 | lock_old_archive_extraction=yes ;; |
| 11184 | *) |
| 11185 | lock_old_archive_extraction=no ;; |
| 11186 | esac |
| 11187 | |
| 11188 | |
| 11189 | |
| 11190 | |
| 11191 | |
| 11192 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11193 | |
| 11194 | |
| 11195 | |
| 11196 | |
| 11197 | |
| 11198 | |
| 11199 | |
| 11200 | |
| 11201 | |
| 11202 | |
| 11203 | |
| 11204 | |
| 11205 | |
| 11206 | |
| 11207 | |
| 11208 | |
| 11209 | |
| 11210 | |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | # If no C compiler was specified, use CC. |
| 11227 | LTCC=${LTCC-"$CC"} |
| 11228 | |
| 11229 | # If no C compiler flags were specified, use CFLAGS. |
| 11230 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11231 | |
| 11232 | # Allow CC to be a program name with arguments. |
| 11233 | compiler=$CC |
| 11234 | |
| 11235 | |
| 11236 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 11238 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11239 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11240 | $as_echo_n "(cached) " >&6 |
| 11241 | else |
| 11242 | |
| 11243 | # These are sane defaults that work on at least a few old systems. |
| 11244 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 11245 | |
| 11246 | # Character class describing NM global symbol codes. |
| 11247 | symcode='[BCDEGRST]' |
| 11248 | |
| 11249 | # Regexp to match symbols that can be accessed directly from C. |
| 11250 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 11251 | |
| 11252 | # Define system-specific variables. |
| 11253 | case $host_os in |
| 11254 | aix*) |
| 11255 | symcode='[BCDT]' |
| 11256 | ;; |
| 11257 | cygwin* | mingw* | pw32* | cegcc*) |
| 11258 | symcode='[ABCDGISTW]' |
| 11259 | ;; |
| 11260 | hpux*) |
| 11261 | if test "$host_cpu" = ia64; then |
| 11262 | symcode='[ABCDEGRST]' |
| 11263 | fi |
| 11264 | ;; |
| 11265 | irix* | nonstopux*) |
| 11266 | symcode='[BCDEGRST]' |
| 11267 | ;; |
| 11268 | osf*) |
| 11269 | symcode='[BCDEGQRST]' |
| 11270 | ;; |
| 11271 | solaris*) |
| 11272 | symcode='[BDRT]' |
| 11273 | ;; |
| 11274 | sco3.2v5*) |
| 11275 | symcode='[DT]' |
| 11276 | ;; |
| 11277 | sysv4.2uw2*) |
| 11278 | symcode='[DT]' |
| 11279 | ;; |
| 11280 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 11281 | symcode='[ABDT]' |
| 11282 | ;; |
| 11283 | sysv4) |
| 11284 | symcode='[DFNSTU]' |
| 11285 | ;; |
| 11286 | esac |
| 11287 | |
| 11288 | # If we're using GNU nm, then use its standard symbol codes. |
| 11289 | case `$NM -V 2>&1` in |
| 11290 | *GNU* | *'with BFD'*) |
| 11291 | symcode='[ABCDGIRSTW]' ;; |
| 11292 | esac |
| 11293 | |
| 11294 | # Transform an extracted symbol line into a proper C declaration. |
| 11295 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 11296 | # so use this general approach. |
| 11297 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11298 | |
| 11299 | # Transform an extracted symbol line into symbol name and symbol address |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11300 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 11301 | 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'" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11302 | |
| 11303 | # Handle CRLF in mingw tool chain |
| 11304 | opt_cr= |
| 11305 | case $build_os in |
| 11306 | mingw*) |
| 11307 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11308 | ;; |
| 11309 | esac |
| 11310 | |
| 11311 | # Try without a prefix underscore, then with it. |
| 11312 | for ac_symprfx in "" "_"; do |
| 11313 | |
| 11314 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 11315 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 11316 | |
| 11317 | # Write the raw and C identifiers. |
| 11318 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11319 | # Fake it for dumpbin and say T for any non-static function |
| 11320 | # and D for any global variable. |
| 11321 | # Also find C++ and __fastcall symbols from MSVC++, |
| 11322 | # which start with @ or ?. |
| 11323 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 11324 | " {last_section=section; section=\$ 3};"\ |
| 11325 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 11326 | " \$ 0!~/External *\|/{next};"\ |
| 11327 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 11328 | " {if(hide[section]) next};"\ |
| 11329 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 11330 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 11331 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 11332 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 11333 | " ' prfx=^$ac_symprfx" |
| 11334 | else |
| 11335 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 11336 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11337 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11338 | |
| 11339 | # Check to see that the pipe works correctly. |
| 11340 | pipe_works=no |
| 11341 | |
| 11342 | rm -f conftest* |
| 11343 | cat > conftest.$ac_ext <<_LT_EOF |
| 11344 | #ifdef __cplusplus |
| 11345 | extern "C" { |
| 11346 | #endif |
| 11347 | char nm_test_var; |
| 11348 | void nm_test_func(void); |
| 11349 | void nm_test_func(void){} |
| 11350 | #ifdef __cplusplus |
| 11351 | } |
| 11352 | #endif |
| 11353 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11354 | _LT_EOF |
| 11355 | |
| 11356 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11357 | (eval $ac_compile) 2>&5 |
| 11358 | ac_status=$? |
| 11359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11360 | test $ac_status = 0; }; then |
| 11361 | # Now try to grab the symbols. |
| 11362 | nlist=conftest.nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11363 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 11364 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11365 | ac_status=$? |
| 11366 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11367 | test $ac_status = 0; } && test -s "$nlist"; then |
| 11368 | # Try sorting and uniquifying the output. |
| 11369 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11370 | mv -f "$nlist"T "$nlist" |
| 11371 | else |
| 11372 | rm -f "$nlist"T |
| 11373 | fi |
| 11374 | |
| 11375 | # Make sure that we snagged all the symbols we need. |
| 11376 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 11377 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 11378 | cat <<_LT_EOF > conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11379 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 11380 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 11381 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 11382 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 11383 | # define LT_DLSYM_CONST |
| 11384 | #elif defined(__osf__) |
| 11385 | /* This system does not cope well with relocations in const data. */ |
| 11386 | # define LT_DLSYM_CONST |
| 11387 | #else |
| 11388 | # define LT_DLSYM_CONST const |
| 11389 | #endif |
| 11390 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11391 | #ifdef __cplusplus |
| 11392 | extern "C" { |
| 11393 | #endif |
| 11394 | |
| 11395 | _LT_EOF |
| 11396 | # Now generate the symbol file. |
| 11397 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 11398 | |
| 11399 | cat <<_LT_EOF >> conftest.$ac_ext |
| 11400 | |
| 11401 | /* The mapping between symbol names and symbols. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11402 | LT_DLSYM_CONST struct { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11403 | const char *name; |
| 11404 | void *address; |
| 11405 | } |
| 11406 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 11407 | { |
| 11408 | { "@PROGRAM@", (void *) 0 }, |
| 11409 | _LT_EOF |
| 11410 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 11411 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 11412 | {0, (void *) 0} |
| 11413 | }; |
| 11414 | |
| 11415 | /* This works around a problem in FreeBSD linker */ |
| 11416 | #ifdef FREEBSD_WORKAROUND |
| 11417 | static const void *lt_preloaded_setup() { |
| 11418 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 11419 | } |
| 11420 | #endif |
| 11421 | |
| 11422 | #ifdef __cplusplus |
| 11423 | } |
| 11424 | #endif |
| 11425 | _LT_EOF |
| 11426 | # Now try linking the two files. |
| 11427 | mv conftest.$ac_objext conftstm.$ac_objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11428 | lt_globsym_save_LIBS=$LIBS |
| 11429 | lt_globsym_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11430 | LIBS="conftstm.$ac_objext" |
| 11431 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11432 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11433 | (eval $ac_link) 2>&5 |
| 11434 | ac_status=$? |
| 11435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11436 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 11437 | pipe_works=yes |
| 11438 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11439 | LIBS=$lt_globsym_save_LIBS |
| 11440 | CFLAGS=$lt_globsym_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11441 | else |
| 11442 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11443 | fi |
| 11444 | else |
| 11445 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11446 | fi |
| 11447 | else |
| 11448 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11449 | fi |
| 11450 | else |
| 11451 | echo "$progname: failed program was:" >&5 |
| 11452 | cat conftest.$ac_ext >&5 |
| 11453 | fi |
| 11454 | rm -rf conftest* conftst* |
| 11455 | |
| 11456 | # Do not use the global_symbol_pipe unless it works. |
| 11457 | if test "$pipe_works" = yes; then |
| 11458 | break |
| 11459 | else |
| 11460 | lt_cv_sys_global_symbol_pipe= |
| 11461 | fi |
| 11462 | done |
| 11463 | |
| 11464 | fi |
| 11465 | |
| 11466 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11467 | lt_cv_sys_global_symbol_to_cdecl= |
| 11468 | fi |
| 11469 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 11471 | $as_echo "failed" >&6; } |
| 11472 | else |
| 11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 11474 | $as_echo "ok" >&6; } |
| 11475 | fi |
| 11476 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11477 | # Response file support. |
| 11478 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11479 | nm_file_list_spec='@' |
| 11480 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 11481 | nm_file_list_spec='@' |
| 11482 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11504 | |
| 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 11511 | $as_echo_n "checking for sysroot... " >&6; } |
| 11512 | |
| 11513 | # Check whether --with-sysroot was given. |
| 11514 | if test "${with_sysroot+set}" = set; then : |
| 11515 | withval=$with_sysroot; |
| 11516 | else |
| 11517 | with_sysroot=no |
| 11518 | fi |
| 11519 | |
| 11520 | |
| 11521 | lt_sysroot= |
| 11522 | case ${with_sysroot} in #( |
| 11523 | yes) |
| 11524 | if test "$GCC" = yes; then |
| 11525 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 11526 | fi |
| 11527 | ;; #( |
| 11528 | /*) |
| 11529 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 11530 | ;; #( |
| 11531 | no|'') |
| 11532 | ;; #( |
| 11533 | *) |
| 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 11535 | $as_echo "${with_sysroot}" >&6; } |
| 11536 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 11537 | ;; |
| 11538 | esac |
| 11539 | |
| 11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 11541 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 11542 | |
| 11543 | |
| 11544 | |
| 11545 | |
| 11546 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11547 | # Check whether --enable-libtool-lock was given. |
| 11548 | if test "${enable_libtool_lock+set}" = set; then : |
| 11549 | enableval=$enable_libtool_lock; |
| 11550 | fi |
| 11551 | |
| 11552 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11553 | |
| 11554 | # Some flags need to be propagated to the compiler or linker for good |
| 11555 | # libtool support. |
| 11556 | case $host in |
| 11557 | ia64-*-hpux*) |
| 11558 | # Find out which ABI we are using. |
| 11559 | echo 'int i;' > conftest.$ac_ext |
| 11560 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11561 | (eval $ac_compile) 2>&5 |
| 11562 | ac_status=$? |
| 11563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11564 | test $ac_status = 0; }; then |
| 11565 | case `/usr/bin/file conftest.$ac_objext` in |
| 11566 | *ELF-32*) |
| 11567 | HPUX_IA64_MODE="32" |
| 11568 | ;; |
| 11569 | *ELF-64*) |
| 11570 | HPUX_IA64_MODE="64" |
| 11571 | ;; |
| 11572 | esac |
| 11573 | fi |
| 11574 | rm -rf conftest* |
| 11575 | ;; |
| 11576 | *-*-irix6*) |
| 11577 | # Find out which ABI we are using. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11578 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11579 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11580 | (eval $ac_compile) 2>&5 |
| 11581 | ac_status=$? |
| 11582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11583 | test $ac_status = 0; }; then |
| 11584 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11585 | case `/usr/bin/file conftest.$ac_objext` in |
| 11586 | *32-bit*) |
| 11587 | LD="${LD-ld} -melf32bsmip" |
| 11588 | ;; |
| 11589 | *N32*) |
| 11590 | LD="${LD-ld} -melf32bmipn32" |
| 11591 | ;; |
| 11592 | *64-bit*) |
| 11593 | LD="${LD-ld} -melf64bmip" |
| 11594 | ;; |
| 11595 | esac |
| 11596 | else |
| 11597 | case `/usr/bin/file conftest.$ac_objext` in |
| 11598 | *32-bit*) |
| 11599 | LD="${LD-ld} -32" |
| 11600 | ;; |
| 11601 | *N32*) |
| 11602 | LD="${LD-ld} -n32" |
| 11603 | ;; |
| 11604 | *64-bit*) |
| 11605 | LD="${LD-ld} -64" |
| 11606 | ;; |
| 11607 | esac |
| 11608 | fi |
| 11609 | fi |
| 11610 | rm -rf conftest* |
| 11611 | ;; |
| 11612 | |
| 11613 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 11614 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 11615 | # Find out which ABI we are using. |
| 11616 | echo 'int i;' > conftest.$ac_ext |
| 11617 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11618 | (eval $ac_compile) 2>&5 |
| 11619 | ac_status=$? |
| 11620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11621 | test $ac_status = 0; }; then |
| 11622 | case `/usr/bin/file conftest.o` in |
| 11623 | *32-bit*) |
| 11624 | case $host in |
| 11625 | x86_64-*kfreebsd*-gnu) |
| 11626 | LD="${LD-ld} -m elf_i386_fbsd" |
| 11627 | ;; |
| 11628 | x86_64-*linux*) |
| 11629 | LD="${LD-ld} -m elf_i386" |
| 11630 | ;; |
| 11631 | ppc64-*linux*|powerpc64-*linux*) |
| 11632 | LD="${LD-ld} -m elf32ppclinux" |
| 11633 | ;; |
| 11634 | s390x-*linux*) |
| 11635 | LD="${LD-ld} -m elf_s390" |
| 11636 | ;; |
| 11637 | sparc64-*linux*) |
| 11638 | LD="${LD-ld} -m elf32_sparc" |
| 11639 | ;; |
| 11640 | esac |
| 11641 | ;; |
| 11642 | *64-bit*) |
| 11643 | case $host in |
| 11644 | x86_64-*kfreebsd*-gnu) |
| 11645 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 11646 | ;; |
| 11647 | x86_64-*linux*) |
| 11648 | LD="${LD-ld} -m elf_x86_64" |
| 11649 | ;; |
| 11650 | ppc*-*linux*|powerpc*-*linux*) |
| 11651 | LD="${LD-ld} -m elf64ppc" |
| 11652 | ;; |
| 11653 | s390*-*linux*|s390*-*tpf*) |
| 11654 | LD="${LD-ld} -m elf64_s390" |
| 11655 | ;; |
| 11656 | sparc*-*linux*) |
| 11657 | LD="${LD-ld} -m elf64_sparc" |
| 11658 | ;; |
| 11659 | esac |
| 11660 | ;; |
| 11661 | esac |
| 11662 | fi |
| 11663 | rm -rf conftest* |
| 11664 | ;; |
| 11665 | |
| 11666 | *-*-sco3.2v5*) |
| 11667 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 11668 | SAVE_CFLAGS="$CFLAGS" |
| 11669 | CFLAGS="$CFLAGS -belf" |
| 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 11671 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11672 | if ${lt_cv_cc_needs_belf+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11673 | $as_echo_n "(cached) " >&6 |
| 11674 | else |
| 11675 | ac_ext=c |
| 11676 | ac_cpp='$CPP $CPPFLAGS' |
| 11677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11680 | |
| 11681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11682 | /* end confdefs.h. */ |
| 11683 | |
| 11684 | int |
| 11685 | main () |
| 11686 | { |
| 11687 | |
| 11688 | ; |
| 11689 | return 0; |
| 11690 | } |
| 11691 | _ACEOF |
| 11692 | if ac_fn_c_try_link "$LINENO"; then : |
| 11693 | lt_cv_cc_needs_belf=yes |
| 11694 | else |
| 11695 | lt_cv_cc_needs_belf=no |
| 11696 | fi |
| 11697 | rm -f core conftest.err conftest.$ac_objext \ |
| 11698 | conftest$ac_exeext conftest.$ac_ext |
| 11699 | ac_ext=c |
| 11700 | ac_cpp='$CPP $CPPFLAGS' |
| 11701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11704 | |
| 11705 | fi |
| 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 11707 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 11708 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 11709 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 11710 | CFLAGS="$SAVE_CFLAGS" |
| 11711 | fi |
| 11712 | ;; |
| 11713 | sparc*-*solaris*) |
| 11714 | # Find out which ABI we are using. |
| 11715 | echo 'int i;' > conftest.$ac_ext |
| 11716 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11717 | (eval $ac_compile) 2>&5 |
| 11718 | ac_status=$? |
| 11719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11720 | test $ac_status = 0; }; then |
| 11721 | case `/usr/bin/file conftest.o` in |
| 11722 | *64-bit*) |
| 11723 | case $lt_cv_prog_gnu_ld in |
| 11724 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 11725 | *) |
| 11726 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 11727 | LD="${LD-ld} -64" |
| 11728 | fi |
| 11729 | ;; |
| 11730 | esac |
| 11731 | ;; |
| 11732 | esac |
| 11733 | fi |
| 11734 | rm -rf conftest* |
| 11735 | ;; |
| 11736 | esac |
| 11737 | |
| 11738 | need_locks="$enable_libtool_lock" |
| 11739 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11740 | if test -n "$ac_tool_prefix"; then |
| 11741 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 11742 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11744 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11745 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 11746 | $as_echo_n "(cached) " >&6 |
| 11747 | else |
| 11748 | if test -n "$MANIFEST_TOOL"; then |
| 11749 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 11750 | else |
| 11751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11752 | for as_dir in $PATH |
| 11753 | do |
| 11754 | IFS=$as_save_IFS |
| 11755 | test -z "$as_dir" && as_dir=. |
| 11756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11758 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 11759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11760 | break 2 |
| 11761 | fi |
| 11762 | done |
| 11763 | done |
| 11764 | IFS=$as_save_IFS |
| 11765 | |
| 11766 | fi |
| 11767 | fi |
| 11768 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 11769 | if test -n "$MANIFEST_TOOL"; then |
| 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 11771 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 11772 | else |
| 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11774 | $as_echo "no" >&6; } |
| 11775 | fi |
| 11776 | |
| 11777 | |
| 11778 | fi |
| 11779 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 11780 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 11781 | # Extract the first word of "mt", so it can be a program name with args. |
| 11782 | set dummy mt; ac_word=$2 |
| 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11784 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11785 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 11786 | $as_echo_n "(cached) " >&6 |
| 11787 | else |
| 11788 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 11789 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 11790 | else |
| 11791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11792 | for as_dir in $PATH |
| 11793 | do |
| 11794 | IFS=$as_save_IFS |
| 11795 | test -z "$as_dir" && as_dir=. |
| 11796 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11798 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 11799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11800 | break 2 |
| 11801 | fi |
| 11802 | done |
| 11803 | done |
| 11804 | IFS=$as_save_IFS |
| 11805 | |
| 11806 | fi |
| 11807 | fi |
| 11808 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 11809 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 11811 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 11812 | else |
| 11813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11814 | $as_echo "no" >&6; } |
| 11815 | fi |
| 11816 | |
| 11817 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 11818 | MANIFEST_TOOL=":" |
| 11819 | else |
| 11820 | case $cross_compiling:$ac_tool_warned in |
| 11821 | yes:) |
| 11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11824 | ac_tool_warned=yes ;; |
| 11825 | esac |
| 11826 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 11827 | fi |
| 11828 | else |
| 11829 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 11830 | fi |
| 11831 | |
| 11832 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 11834 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 11835 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 11836 | $as_echo_n "(cached) " >&6 |
| 11837 | else |
| 11838 | lt_cv_path_mainfest_tool=no |
| 11839 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 11840 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 11841 | cat conftest.err >&5 |
| 11842 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 11843 | lt_cv_path_mainfest_tool=yes |
| 11844 | fi |
| 11845 | rm -f conftest* |
| 11846 | fi |
| 11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 11848 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 11849 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 11850 | MANIFEST_TOOL=: |
| 11851 | fi |
| 11852 | |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11857 | |
| 11858 | case $host_os in |
| 11859 | rhapsody* | darwin*) |
| 11860 | if test -n "$ac_tool_prefix"; then |
| 11861 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 11862 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11864 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11865 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11866 | $as_echo_n "(cached) " >&6 |
| 11867 | else |
| 11868 | if test -n "$DSYMUTIL"; then |
| 11869 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 11870 | else |
| 11871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11872 | for as_dir in $PATH |
| 11873 | do |
| 11874 | IFS=$as_save_IFS |
| 11875 | test -z "$as_dir" && as_dir=. |
| 11876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11878 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 11879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11880 | break 2 |
| 11881 | fi |
| 11882 | done |
| 11883 | done |
| 11884 | IFS=$as_save_IFS |
| 11885 | |
| 11886 | fi |
| 11887 | fi |
| 11888 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 11889 | if test -n "$DSYMUTIL"; then |
| 11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 11891 | $as_echo "$DSYMUTIL" >&6; } |
| 11892 | else |
| 11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11894 | $as_echo "no" >&6; } |
| 11895 | fi |
| 11896 | |
| 11897 | |
| 11898 | fi |
| 11899 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 11900 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 11901 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 11902 | set dummy dsymutil; ac_word=$2 |
| 11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11904 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11905 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11906 | $as_echo_n "(cached) " >&6 |
| 11907 | else |
| 11908 | if test -n "$ac_ct_DSYMUTIL"; then |
| 11909 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 11910 | else |
| 11911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11912 | for as_dir in $PATH |
| 11913 | do |
| 11914 | IFS=$as_save_IFS |
| 11915 | test -z "$as_dir" && as_dir=. |
| 11916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11918 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 11919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11920 | break 2 |
| 11921 | fi |
| 11922 | done |
| 11923 | done |
| 11924 | IFS=$as_save_IFS |
| 11925 | |
| 11926 | fi |
| 11927 | fi |
| 11928 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 11929 | if test -n "$ac_ct_DSYMUTIL"; then |
| 11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 11931 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 11932 | else |
| 11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11934 | $as_echo "no" >&6; } |
| 11935 | fi |
| 11936 | |
| 11937 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 11938 | DSYMUTIL=":" |
| 11939 | else |
| 11940 | case $cross_compiling:$ac_tool_warned in |
| 11941 | yes:) |
| 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11943 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11944 | ac_tool_warned=yes ;; |
| 11945 | esac |
| 11946 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 11947 | fi |
| 11948 | else |
| 11949 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 11950 | fi |
| 11951 | |
| 11952 | if test -n "$ac_tool_prefix"; then |
| 11953 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 11954 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11956 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11957 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11958 | $as_echo_n "(cached) " >&6 |
| 11959 | else |
| 11960 | if test -n "$NMEDIT"; then |
| 11961 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 11962 | else |
| 11963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11964 | for as_dir in $PATH |
| 11965 | do |
| 11966 | IFS=$as_save_IFS |
| 11967 | test -z "$as_dir" && as_dir=. |
| 11968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11970 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 11971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11972 | break 2 |
| 11973 | fi |
| 11974 | done |
| 11975 | done |
| 11976 | IFS=$as_save_IFS |
| 11977 | |
| 11978 | fi |
| 11979 | fi |
| 11980 | NMEDIT=$ac_cv_prog_NMEDIT |
| 11981 | if test -n "$NMEDIT"; then |
| 11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 11983 | $as_echo "$NMEDIT" >&6; } |
| 11984 | else |
| 11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11986 | $as_echo "no" >&6; } |
| 11987 | fi |
| 11988 | |
| 11989 | |
| 11990 | fi |
| 11991 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 11992 | ac_ct_NMEDIT=$NMEDIT |
| 11993 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 11994 | set dummy nmedit; ac_word=$2 |
| 11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11996 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11997 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11998 | $as_echo_n "(cached) " >&6 |
| 11999 | else |
| 12000 | if test -n "$ac_ct_NMEDIT"; then |
| 12001 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 12002 | else |
| 12003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12004 | for as_dir in $PATH |
| 12005 | do |
| 12006 | IFS=$as_save_IFS |
| 12007 | test -z "$as_dir" && as_dir=. |
| 12008 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12010 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 12011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12012 | break 2 |
| 12013 | fi |
| 12014 | done |
| 12015 | done |
| 12016 | IFS=$as_save_IFS |
| 12017 | |
| 12018 | fi |
| 12019 | fi |
| 12020 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 12021 | if test -n "$ac_ct_NMEDIT"; then |
| 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 12023 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 12024 | else |
| 12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12026 | $as_echo "no" >&6; } |
| 12027 | fi |
| 12028 | |
| 12029 | if test "x$ac_ct_NMEDIT" = x; then |
| 12030 | NMEDIT=":" |
| 12031 | else |
| 12032 | case $cross_compiling:$ac_tool_warned in |
| 12033 | yes:) |
| 12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12035 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12036 | ac_tool_warned=yes ;; |
| 12037 | esac |
| 12038 | NMEDIT=$ac_ct_NMEDIT |
| 12039 | fi |
| 12040 | else |
| 12041 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 12042 | fi |
| 12043 | |
| 12044 | if test -n "$ac_tool_prefix"; then |
| 12045 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 12046 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12048 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12049 | if ${ac_cv_prog_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12050 | $as_echo_n "(cached) " >&6 |
| 12051 | else |
| 12052 | if test -n "$LIPO"; then |
| 12053 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 12054 | else |
| 12055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12056 | for as_dir in $PATH |
| 12057 | do |
| 12058 | IFS=$as_save_IFS |
| 12059 | test -z "$as_dir" && as_dir=. |
| 12060 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12062 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 12063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12064 | break 2 |
| 12065 | fi |
| 12066 | done |
| 12067 | done |
| 12068 | IFS=$as_save_IFS |
| 12069 | |
| 12070 | fi |
| 12071 | fi |
| 12072 | LIPO=$ac_cv_prog_LIPO |
| 12073 | if test -n "$LIPO"; then |
| 12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 12075 | $as_echo "$LIPO" >&6; } |
| 12076 | else |
| 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12078 | $as_echo "no" >&6; } |
| 12079 | fi |
| 12080 | |
| 12081 | |
| 12082 | fi |
| 12083 | if test -z "$ac_cv_prog_LIPO"; then |
| 12084 | ac_ct_LIPO=$LIPO |
| 12085 | # Extract the first word of "lipo", so it can be a program name with args. |
| 12086 | set dummy lipo; ac_word=$2 |
| 12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12088 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12089 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12090 | $as_echo_n "(cached) " >&6 |
| 12091 | else |
| 12092 | if test -n "$ac_ct_LIPO"; then |
| 12093 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 12094 | else |
| 12095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12096 | for as_dir in $PATH |
| 12097 | do |
| 12098 | IFS=$as_save_IFS |
| 12099 | test -z "$as_dir" && as_dir=. |
| 12100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12101 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12102 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 12103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12104 | break 2 |
| 12105 | fi |
| 12106 | done |
| 12107 | done |
| 12108 | IFS=$as_save_IFS |
| 12109 | |
| 12110 | fi |
| 12111 | fi |
| 12112 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 12113 | if test -n "$ac_ct_LIPO"; then |
| 12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 12115 | $as_echo "$ac_ct_LIPO" >&6; } |
| 12116 | else |
| 12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12118 | $as_echo "no" >&6; } |
| 12119 | fi |
| 12120 | |
| 12121 | if test "x$ac_ct_LIPO" = x; then |
| 12122 | LIPO=":" |
| 12123 | else |
| 12124 | case $cross_compiling:$ac_tool_warned in |
| 12125 | yes:) |
| 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12127 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12128 | ac_tool_warned=yes ;; |
| 12129 | esac |
| 12130 | LIPO=$ac_ct_LIPO |
| 12131 | fi |
| 12132 | else |
| 12133 | LIPO="$ac_cv_prog_LIPO" |
| 12134 | fi |
| 12135 | |
| 12136 | if test -n "$ac_tool_prefix"; then |
| 12137 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 12138 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12140 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12141 | if ${ac_cv_prog_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12142 | $as_echo_n "(cached) " >&6 |
| 12143 | else |
| 12144 | if test -n "$OTOOL"; then |
| 12145 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 12146 | else |
| 12147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12148 | for as_dir in $PATH |
| 12149 | do |
| 12150 | IFS=$as_save_IFS |
| 12151 | test -z "$as_dir" && as_dir=. |
| 12152 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12154 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 12155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12156 | break 2 |
| 12157 | fi |
| 12158 | done |
| 12159 | done |
| 12160 | IFS=$as_save_IFS |
| 12161 | |
| 12162 | fi |
| 12163 | fi |
| 12164 | OTOOL=$ac_cv_prog_OTOOL |
| 12165 | if test -n "$OTOOL"; then |
| 12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 12167 | $as_echo "$OTOOL" >&6; } |
| 12168 | else |
| 12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12170 | $as_echo "no" >&6; } |
| 12171 | fi |
| 12172 | |
| 12173 | |
| 12174 | fi |
| 12175 | if test -z "$ac_cv_prog_OTOOL"; then |
| 12176 | ac_ct_OTOOL=$OTOOL |
| 12177 | # Extract the first word of "otool", so it can be a program name with args. |
| 12178 | set dummy otool; ac_word=$2 |
| 12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12180 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12181 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12182 | $as_echo_n "(cached) " >&6 |
| 12183 | else |
| 12184 | if test -n "$ac_ct_OTOOL"; then |
| 12185 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 12186 | else |
| 12187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12188 | for as_dir in $PATH |
| 12189 | do |
| 12190 | IFS=$as_save_IFS |
| 12191 | test -z "$as_dir" && as_dir=. |
| 12192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12194 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 12195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12196 | break 2 |
| 12197 | fi |
| 12198 | done |
| 12199 | done |
| 12200 | IFS=$as_save_IFS |
| 12201 | |
| 12202 | fi |
| 12203 | fi |
| 12204 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 12205 | if test -n "$ac_ct_OTOOL"; then |
| 12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 12207 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 12208 | else |
| 12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12210 | $as_echo "no" >&6; } |
| 12211 | fi |
| 12212 | |
| 12213 | if test "x$ac_ct_OTOOL" = x; then |
| 12214 | OTOOL=":" |
| 12215 | else |
| 12216 | case $cross_compiling:$ac_tool_warned in |
| 12217 | yes:) |
| 12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12219 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12220 | ac_tool_warned=yes ;; |
| 12221 | esac |
| 12222 | OTOOL=$ac_ct_OTOOL |
| 12223 | fi |
| 12224 | else |
| 12225 | OTOOL="$ac_cv_prog_OTOOL" |
| 12226 | fi |
| 12227 | |
| 12228 | if test -n "$ac_tool_prefix"; then |
| 12229 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 12230 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12232 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12233 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12234 | $as_echo_n "(cached) " >&6 |
| 12235 | else |
| 12236 | if test -n "$OTOOL64"; then |
| 12237 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 12238 | else |
| 12239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12240 | for as_dir in $PATH |
| 12241 | do |
| 12242 | IFS=$as_save_IFS |
| 12243 | test -z "$as_dir" && as_dir=. |
| 12244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12246 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 12247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12248 | break 2 |
| 12249 | fi |
| 12250 | done |
| 12251 | done |
| 12252 | IFS=$as_save_IFS |
| 12253 | |
| 12254 | fi |
| 12255 | fi |
| 12256 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 12257 | if test -n "$OTOOL64"; then |
| 12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 12259 | $as_echo "$OTOOL64" >&6; } |
| 12260 | else |
| 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12262 | $as_echo "no" >&6; } |
| 12263 | fi |
| 12264 | |
| 12265 | |
| 12266 | fi |
| 12267 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 12268 | ac_ct_OTOOL64=$OTOOL64 |
| 12269 | # Extract the first word of "otool64", so it can be a program name with args. |
| 12270 | set dummy otool64; ac_word=$2 |
| 12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12272 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12273 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12274 | $as_echo_n "(cached) " >&6 |
| 12275 | else |
| 12276 | if test -n "$ac_ct_OTOOL64"; then |
| 12277 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 12278 | else |
| 12279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12280 | for as_dir in $PATH |
| 12281 | do |
| 12282 | IFS=$as_save_IFS |
| 12283 | test -z "$as_dir" && as_dir=. |
| 12284 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12286 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 12287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12288 | break 2 |
| 12289 | fi |
| 12290 | done |
| 12291 | done |
| 12292 | IFS=$as_save_IFS |
| 12293 | |
| 12294 | fi |
| 12295 | fi |
| 12296 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 12297 | if test -n "$ac_ct_OTOOL64"; then |
| 12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 12299 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 12300 | else |
| 12301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12302 | $as_echo "no" >&6; } |
| 12303 | fi |
| 12304 | |
| 12305 | if test "x$ac_ct_OTOOL64" = x; then |
| 12306 | OTOOL64=":" |
| 12307 | else |
| 12308 | case $cross_compiling:$ac_tool_warned in |
| 12309 | yes:) |
| 12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12311 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12312 | ac_tool_warned=yes ;; |
| 12313 | esac |
| 12314 | OTOOL64=$ac_ct_OTOOL64 |
| 12315 | fi |
| 12316 | else |
| 12317 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 12318 | fi |
| 12319 | |
| 12320 | |
| 12321 | |
| 12322 | |
| 12323 | |
| 12324 | |
| 12325 | |
| 12326 | |
| 12327 | |
| 12328 | |
| 12329 | |
| 12330 | |
| 12331 | |
| 12332 | |
| 12333 | |
| 12334 | |
| 12335 | |
| 12336 | |
| 12337 | |
| 12338 | |
| 12339 | |
| 12340 | |
| 12341 | |
| 12342 | |
| 12343 | |
| 12344 | |
| 12345 | |
| 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 12347 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12348 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12349 | $as_echo_n "(cached) " >&6 |
| 12350 | else |
| 12351 | lt_cv_apple_cc_single_mod=no |
| 12352 | if test -z "${LT_MULTI_MODULE}"; then |
| 12353 | # By default we will add the -single_module flag. You can override |
| 12354 | # by either setting the environment variable LT_MULTI_MODULE |
| 12355 | # non-empty at configure time, or by adding -multi_module to the |
| 12356 | # link flags. |
| 12357 | rm -rf libconftest.dylib* |
| 12358 | echo "int foo(void){return 1;}" > conftest.c |
| 12359 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 12360 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 12361 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 12362 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 12363 | _lt_result=$? |
| 12364 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 12365 | lt_cv_apple_cc_single_mod=yes |
| 12366 | else |
| 12367 | cat conftest.err >&5 |
| 12368 | fi |
| 12369 | rm -rf libconftest.dylib* |
| 12370 | rm -f conftest.* |
| 12371 | fi |
| 12372 | fi |
| 12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 12374 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 12375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 12376 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12377 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12378 | $as_echo_n "(cached) " >&6 |
| 12379 | else |
| 12380 | lt_cv_ld_exported_symbols_list=no |
| 12381 | save_LDFLAGS=$LDFLAGS |
| 12382 | echo "_main" > conftest.sym |
| 12383 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 12384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12385 | /* end confdefs.h. */ |
| 12386 | |
| 12387 | int |
| 12388 | main () |
| 12389 | { |
| 12390 | |
| 12391 | ; |
| 12392 | return 0; |
| 12393 | } |
| 12394 | _ACEOF |
| 12395 | if ac_fn_c_try_link "$LINENO"; then : |
| 12396 | lt_cv_ld_exported_symbols_list=yes |
| 12397 | else |
| 12398 | lt_cv_ld_exported_symbols_list=no |
| 12399 | fi |
| 12400 | rm -f core conftest.err conftest.$ac_objext \ |
| 12401 | conftest$ac_exeext conftest.$ac_ext |
| 12402 | LDFLAGS="$save_LDFLAGS" |
| 12403 | |
| 12404 | fi |
| 12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 12406 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 12408 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12409 | if ${lt_cv_ld_force_load+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12410 | $as_echo_n "(cached) " >&6 |
| 12411 | else |
| 12412 | lt_cv_ld_force_load=no |
| 12413 | cat > conftest.c << _LT_EOF |
| 12414 | int forced_loaded() { return 2;} |
| 12415 | _LT_EOF |
| 12416 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 12417 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 12418 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 12419 | $AR cru libconftest.a conftest.o 2>&5 |
| 12420 | echo "$RANLIB libconftest.a" >&5 |
| 12421 | $RANLIB libconftest.a 2>&5 |
| 12422 | cat > conftest.c << _LT_EOF |
| 12423 | int main() { return 0;} |
| 12424 | _LT_EOF |
| 12425 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 12426 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 12427 | _lt_result=$? |
| 12428 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 12429 | lt_cv_ld_force_load=yes |
| 12430 | else |
| 12431 | cat conftest.err >&5 |
| 12432 | fi |
| 12433 | rm -f conftest.err libconftest.a conftest conftest.c |
| 12434 | rm -rf conftest.dSYM |
| 12435 | |
| 12436 | fi |
| 12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 12438 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12439 | case $host_os in |
| 12440 | rhapsody* | darwin1.[012]) |
| 12441 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 12442 | darwin1.*) |
| 12443 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 12444 | darwin*) # darwin 5.x on |
| 12445 | # if running on 10.5 or later, the deployment target defaults |
| 12446 | # to the OS version, if on x86, and 10.4, the deployment |
| 12447 | # target defaults to 10.4. Don't you love it? |
| 12448 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 12449 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 12450 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 12451 | 10.[012]*) |
| 12452 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 12453 | 10.*) |
| 12454 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 12455 | esac |
| 12456 | ;; |
| 12457 | esac |
| 12458 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 12459 | _lt_dar_single_mod='$single_module' |
| 12460 | fi |
| 12461 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 12462 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 12463 | else |
| 12464 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12465 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12466 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12467 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 12468 | else |
| 12469 | _lt_dsymutil= |
| 12470 | fi |
| 12471 | ;; |
| 12472 | esac |
| 12473 | |
| 12474 | for ac_header in dlfcn.h |
| 12475 | do : |
| 12476 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 12477 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12478 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12479 | cat >>confdefs.h <<_ACEOF |
| 12480 | #define HAVE_DLFCN_H 1 |
| 12481 | _ACEOF |
| 12482 | |
| 12483 | fi |
| 12484 | |
| 12485 | done |
| 12486 | |
| 12487 | |
| 12488 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12489 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12490 | func_stripname_cnf () |
| 12491 | { |
| 12492 | case ${2} in |
| 12493 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12494 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12495 | esac |
| 12496 | } # func_stripname_cnf |
| 12497 | |
| 12498 | |
| 12499 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12500 | |
| 12501 | |
| 12502 | # Set options |
| 12503 | enable_win32_dll=yes |
| 12504 | |
| 12505 | case $host in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12506 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12507 | if test -n "$ac_tool_prefix"; then |
| 12508 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 12509 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12511 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12512 | if ${ac_cv_prog_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12513 | $as_echo_n "(cached) " >&6 |
| 12514 | else |
| 12515 | if test -n "$AS"; then |
| 12516 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 12517 | else |
| 12518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12519 | for as_dir in $PATH |
| 12520 | do |
| 12521 | IFS=$as_save_IFS |
| 12522 | test -z "$as_dir" && as_dir=. |
| 12523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12525 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 12526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12527 | break 2 |
| 12528 | fi |
| 12529 | done |
| 12530 | done |
| 12531 | IFS=$as_save_IFS |
| 12532 | |
| 12533 | fi |
| 12534 | fi |
| 12535 | AS=$ac_cv_prog_AS |
| 12536 | if test -n "$AS"; then |
| 12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 12538 | $as_echo "$AS" >&6; } |
| 12539 | else |
| 12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12541 | $as_echo "no" >&6; } |
| 12542 | fi |
| 12543 | |
| 12544 | |
| 12545 | fi |
| 12546 | if test -z "$ac_cv_prog_AS"; then |
| 12547 | ac_ct_AS=$AS |
| 12548 | # Extract the first word of "as", so it can be a program name with args. |
| 12549 | set dummy as; ac_word=$2 |
| 12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12551 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12552 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12553 | $as_echo_n "(cached) " >&6 |
| 12554 | else |
| 12555 | if test -n "$ac_ct_AS"; then |
| 12556 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 12557 | else |
| 12558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12559 | for as_dir in $PATH |
| 12560 | do |
| 12561 | IFS=$as_save_IFS |
| 12562 | test -z "$as_dir" && as_dir=. |
| 12563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12565 | ac_cv_prog_ac_ct_AS="as" |
| 12566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12567 | break 2 |
| 12568 | fi |
| 12569 | done |
| 12570 | done |
| 12571 | IFS=$as_save_IFS |
| 12572 | |
| 12573 | fi |
| 12574 | fi |
| 12575 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 12576 | if test -n "$ac_ct_AS"; then |
| 12577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 12578 | $as_echo "$ac_ct_AS" >&6; } |
| 12579 | else |
| 12580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12581 | $as_echo "no" >&6; } |
| 12582 | fi |
| 12583 | |
| 12584 | if test "x$ac_ct_AS" = x; then |
| 12585 | AS="false" |
| 12586 | else |
| 12587 | case $cross_compiling:$ac_tool_warned in |
| 12588 | yes:) |
| 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12590 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12591 | ac_tool_warned=yes ;; |
| 12592 | esac |
| 12593 | AS=$ac_ct_AS |
| 12594 | fi |
| 12595 | else |
| 12596 | AS="$ac_cv_prog_AS" |
| 12597 | fi |
| 12598 | |
| 12599 | if test -n "$ac_tool_prefix"; then |
| 12600 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 12601 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12603 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12604 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12605 | $as_echo_n "(cached) " >&6 |
| 12606 | else |
| 12607 | if test -n "$DLLTOOL"; then |
| 12608 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 12609 | else |
| 12610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12611 | for as_dir in $PATH |
| 12612 | do |
| 12613 | IFS=$as_save_IFS |
| 12614 | test -z "$as_dir" && as_dir=. |
| 12615 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12617 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 12618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12619 | break 2 |
| 12620 | fi |
| 12621 | done |
| 12622 | done |
| 12623 | IFS=$as_save_IFS |
| 12624 | |
| 12625 | fi |
| 12626 | fi |
| 12627 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 12628 | if test -n "$DLLTOOL"; then |
| 12629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 12630 | $as_echo "$DLLTOOL" >&6; } |
| 12631 | else |
| 12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12633 | $as_echo "no" >&6; } |
| 12634 | fi |
| 12635 | |
| 12636 | |
| 12637 | fi |
| 12638 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 12639 | ac_ct_DLLTOOL=$DLLTOOL |
| 12640 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 12641 | set dummy dlltool; ac_word=$2 |
| 12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12643 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12644 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12645 | $as_echo_n "(cached) " >&6 |
| 12646 | else |
| 12647 | if test -n "$ac_ct_DLLTOOL"; then |
| 12648 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 12649 | else |
| 12650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12651 | for as_dir in $PATH |
| 12652 | do |
| 12653 | IFS=$as_save_IFS |
| 12654 | test -z "$as_dir" && as_dir=. |
| 12655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12657 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 12658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12659 | break 2 |
| 12660 | fi |
| 12661 | done |
| 12662 | done |
| 12663 | IFS=$as_save_IFS |
| 12664 | |
| 12665 | fi |
| 12666 | fi |
| 12667 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 12668 | if test -n "$ac_ct_DLLTOOL"; then |
| 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 12670 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 12671 | else |
| 12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12673 | $as_echo "no" >&6; } |
| 12674 | fi |
| 12675 | |
| 12676 | if test "x$ac_ct_DLLTOOL" = x; then |
| 12677 | DLLTOOL="false" |
| 12678 | else |
| 12679 | case $cross_compiling:$ac_tool_warned in |
| 12680 | yes:) |
| 12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12683 | ac_tool_warned=yes ;; |
| 12684 | esac |
| 12685 | DLLTOOL=$ac_ct_DLLTOOL |
| 12686 | fi |
| 12687 | else |
| 12688 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 12689 | fi |
| 12690 | |
| 12691 | if test -n "$ac_tool_prefix"; then |
| 12692 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 12693 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12695 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12696 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12697 | $as_echo_n "(cached) " >&6 |
| 12698 | else |
| 12699 | if test -n "$OBJDUMP"; then |
| 12700 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 12701 | else |
| 12702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12703 | for as_dir in $PATH |
| 12704 | do |
| 12705 | IFS=$as_save_IFS |
| 12706 | test -z "$as_dir" && as_dir=. |
| 12707 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12709 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 12710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12711 | break 2 |
| 12712 | fi |
| 12713 | done |
| 12714 | done |
| 12715 | IFS=$as_save_IFS |
| 12716 | |
| 12717 | fi |
| 12718 | fi |
| 12719 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 12720 | if test -n "$OBJDUMP"; then |
| 12721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 12722 | $as_echo "$OBJDUMP" >&6; } |
| 12723 | else |
| 12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12725 | $as_echo "no" >&6; } |
| 12726 | fi |
| 12727 | |
| 12728 | |
| 12729 | fi |
| 12730 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 12731 | ac_ct_OBJDUMP=$OBJDUMP |
| 12732 | # Extract the first word of "objdump", so it can be a program name with args. |
| 12733 | set dummy objdump; ac_word=$2 |
| 12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12735 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12736 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12737 | $as_echo_n "(cached) " >&6 |
| 12738 | else |
| 12739 | if test -n "$ac_ct_OBJDUMP"; then |
| 12740 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 12741 | else |
| 12742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12743 | for as_dir in $PATH |
| 12744 | do |
| 12745 | IFS=$as_save_IFS |
| 12746 | test -z "$as_dir" && as_dir=. |
| 12747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12749 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 12750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12751 | break 2 |
| 12752 | fi |
| 12753 | done |
| 12754 | done |
| 12755 | IFS=$as_save_IFS |
| 12756 | |
| 12757 | fi |
| 12758 | fi |
| 12759 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 12760 | if test -n "$ac_ct_OBJDUMP"; then |
| 12761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 12762 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 12763 | else |
| 12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12765 | $as_echo "no" >&6; } |
| 12766 | fi |
| 12767 | |
| 12768 | if test "x$ac_ct_OBJDUMP" = x; then |
| 12769 | OBJDUMP="false" |
| 12770 | else |
| 12771 | case $cross_compiling:$ac_tool_warned in |
| 12772 | yes:) |
| 12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12775 | ac_tool_warned=yes ;; |
| 12776 | esac |
| 12777 | OBJDUMP=$ac_ct_OBJDUMP |
| 12778 | fi |
| 12779 | else |
| 12780 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 12781 | fi |
| 12782 | |
| 12783 | ;; |
| 12784 | esac |
| 12785 | |
| 12786 | test -z "$AS" && AS=as |
| 12787 | |
| 12788 | |
| 12789 | |
| 12790 | |
| 12791 | |
| 12792 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 12793 | |
| 12794 | |
| 12795 | |
| 12796 | |
| 12797 | |
| 12798 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 12799 | |
| 12800 | |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
| 12807 | |
| 12808 | # Check whether --enable-shared was given. |
| 12809 | if test "${enable_shared+set}" = set; then : |
| 12810 | enableval=$enable_shared; p=${PACKAGE-default} |
| 12811 | case $enableval in |
| 12812 | yes) enable_shared=yes ;; |
| 12813 | no) enable_shared=no ;; |
| 12814 | *) |
| 12815 | enable_shared=no |
| 12816 | # Look at the argument we got. We use all the common list separators. |
| 12817 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12818 | for pkg in $enableval; do |
| 12819 | IFS="$lt_save_ifs" |
| 12820 | if test "X$pkg" = "X$p"; then |
| 12821 | enable_shared=yes |
| 12822 | fi |
| 12823 | done |
| 12824 | IFS="$lt_save_ifs" |
| 12825 | ;; |
| 12826 | esac |
| 12827 | else |
| 12828 | enable_shared=yes |
| 12829 | fi |
| 12830 | |
| 12831 | |
| 12832 | |
| 12833 | |
| 12834 | |
| 12835 | |
| 12836 | |
| 12837 | |
| 12838 | |
| 12839 | # Check whether --enable-static was given. |
| 12840 | if test "${enable_static+set}" = set; then : |
| 12841 | enableval=$enable_static; p=${PACKAGE-default} |
| 12842 | case $enableval in |
| 12843 | yes) enable_static=yes ;; |
| 12844 | no) enable_static=no ;; |
| 12845 | *) |
| 12846 | enable_static=no |
| 12847 | # Look at the argument we got. We use all the common list separators. |
| 12848 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12849 | for pkg in $enableval; do |
| 12850 | IFS="$lt_save_ifs" |
| 12851 | if test "X$pkg" = "X$p"; then |
| 12852 | enable_static=yes |
| 12853 | fi |
| 12854 | done |
| 12855 | IFS="$lt_save_ifs" |
| 12856 | ;; |
| 12857 | esac |
| 12858 | else |
| 12859 | enable_static=yes |
| 12860 | fi |
| 12861 | |
| 12862 | |
| 12863 | |
| 12864 | |
| 12865 | |
| 12866 | |
| 12867 | |
| 12868 | |
| 12869 | |
| 12870 | |
| 12871 | # Check whether --with-pic was given. |
| 12872 | if test "${with_pic+set}" = set; then : |
| 12873 | withval=$with_pic; pic_mode="$withval" |
| 12874 | else |
| 12875 | pic_mode=default |
| 12876 | fi |
| 12877 | |
| 12878 | |
| 12879 | test -z "$pic_mode" && pic_mode=default |
| 12880 | |
| 12881 | |
| 12882 | |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | |
| 12887 | # Check whether --enable-fast-install was given. |
| 12888 | if test "${enable_fast_install+set}" = set; then : |
| 12889 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 12890 | case $enableval in |
| 12891 | yes) enable_fast_install=yes ;; |
| 12892 | no) enable_fast_install=no ;; |
| 12893 | *) |
| 12894 | enable_fast_install=no |
| 12895 | # Look at the argument we got. We use all the common list separators. |
| 12896 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12897 | for pkg in $enableval; do |
| 12898 | IFS="$lt_save_ifs" |
| 12899 | if test "X$pkg" = "X$p"; then |
| 12900 | enable_fast_install=yes |
| 12901 | fi |
| 12902 | done |
| 12903 | IFS="$lt_save_ifs" |
| 12904 | ;; |
| 12905 | esac |
| 12906 | else |
| 12907 | enable_fast_install=yes |
| 12908 | fi |
| 12909 | |
| 12910 | |
| 12911 | |
| 12912 | |
| 12913 | |
| 12914 | |
| 12915 | |
| 12916 | |
| 12917 | |
| 12918 | |
| 12919 | |
| 12920 | # This can be used to rebuild libtool when needed |
| 12921 | LIBTOOL_DEPS="$ltmain" |
| 12922 | |
| 12923 | # Always use our own libtool. |
| 12924 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 12925 | |
| 12926 | |
| 12927 | |
| 12928 | |
| 12929 | |
| 12930 | |
| 12931 | |
| 12932 | |
| 12933 | |
| 12934 | |
| 12935 | |
| 12936 | |
| 12937 | |
| 12938 | |
| 12939 | |
| 12940 | |
| 12941 | |
| 12942 | |
| 12943 | |
| 12944 | |
| 12945 | |
| 12946 | |
| 12947 | |
| 12948 | |
| 12949 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12950 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12951 | test -z "$LN_S" && LN_S="ln -s" |
| 12952 | |
| 12953 | |
| 12954 | |
| 12955 | |
| 12956 | |
| 12957 | |
| 12958 | |
| 12959 | |
| 12960 | |
| 12961 | |
| 12962 | |
| 12963 | |
| 12964 | |
| 12965 | |
| 12966 | if test -n "${ZSH_VERSION+set}" ; then |
| 12967 | setopt NO_GLOB_SUBST |
| 12968 | fi |
| 12969 | |
| 12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 12971 | $as_echo_n "checking for objdir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12972 | if ${lt_cv_objdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12973 | $as_echo_n "(cached) " >&6 |
| 12974 | else |
| 12975 | rm -f .libs 2>/dev/null |
| 12976 | mkdir .libs 2>/dev/null |
| 12977 | if test -d .libs; then |
| 12978 | lt_cv_objdir=.libs |
| 12979 | else |
| 12980 | # MS-DOS does not allow filenames that begin with a dot. |
| 12981 | lt_cv_objdir=_libs |
| 12982 | fi |
| 12983 | rmdir .libs 2>/dev/null |
| 12984 | fi |
| 12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 12986 | $as_echo "$lt_cv_objdir" >&6; } |
| 12987 | objdir=$lt_cv_objdir |
| 12988 | |
| 12989 | |
| 12990 | |
| 12991 | |
| 12992 | |
| 12993 | cat >>confdefs.h <<_ACEOF |
| 12994 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 12995 | _ACEOF |
| 12996 | |
| 12997 | |
| 12998 | |
| 12999 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13000 | case $host_os in |
| 13001 | aix3*) |
| 13002 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13003 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13004 | # vanish in a puff of smoke. |
| 13005 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13006 | COLLECT_NAMES= |
| 13007 | export COLLECT_NAMES |
| 13008 | fi |
| 13009 | ;; |
| 13010 | esac |
| 13011 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13012 | # Global variables: |
| 13013 | ofile=libtool |
| 13014 | can_build_shared=yes |
| 13015 | |
| 13016 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 13017 | # which needs '.lib'). |
| 13018 | libext=a |
| 13019 | |
| 13020 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13021 | |
| 13022 | old_CC="$CC" |
| 13023 | old_CFLAGS="$CFLAGS" |
| 13024 | |
| 13025 | # Set sane defaults for various variables |
| 13026 | test -z "$CC" && CC=cc |
| 13027 | test -z "$LTCC" && LTCC=$CC |
| 13028 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 13029 | test -z "$LD" && LD=ld |
| 13030 | test -z "$ac_objext" && ac_objext=o |
| 13031 | |
| 13032 | for cc_temp in $compiler""; do |
| 13033 | case $cc_temp in |
| 13034 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13035 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13036 | \-*) ;; |
| 13037 | *) break;; |
| 13038 | esac |
| 13039 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13040 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13041 | |
| 13042 | |
| 13043 | # Only perform the check for file, if the check method requires it |
| 13044 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13045 | case $deplibs_check_method in |
| 13046 | file_magic*) |
| 13047 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 13049 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13050 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13051 | $as_echo_n "(cached) " >&6 |
| 13052 | else |
| 13053 | case $MAGIC_CMD in |
| 13054 | [\\/*] | ?:[\\/]*) |
| 13055 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13056 | ;; |
| 13057 | *) |
| 13058 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13059 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13060 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13061 | for ac_dir in $ac_dummy; do |
| 13062 | IFS="$lt_save_ifs" |
| 13063 | test -z "$ac_dir" && ac_dir=. |
| 13064 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13065 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13066 | if test -n "$file_magic_test_file"; then |
| 13067 | case $deplibs_check_method in |
| 13068 | "file_magic "*) |
| 13069 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 13070 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13071 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13072 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13073 | : |
| 13074 | else |
| 13075 | cat <<_LT_EOF 1>&2 |
| 13076 | |
| 13077 | *** Warning: the command libtool uses to detect shared libraries, |
| 13078 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13079 | *** The result is that libtool may fail to recognize shared libraries |
| 13080 | *** as such. This will affect the creation of libtool libraries that |
| 13081 | *** depend on shared libraries, but programs linked with such libtool |
| 13082 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13083 | *** may want to report the problem to your system manager and/or to |
| 13084 | *** bug-libtool@gnu.org |
| 13085 | |
| 13086 | _LT_EOF |
| 13087 | fi ;; |
| 13088 | esac |
| 13089 | fi |
| 13090 | break |
| 13091 | fi |
| 13092 | done |
| 13093 | IFS="$lt_save_ifs" |
| 13094 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13095 | ;; |
| 13096 | esac |
| 13097 | fi |
| 13098 | |
| 13099 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13100 | if test -n "$MAGIC_CMD"; then |
| 13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 13102 | $as_echo "$MAGIC_CMD" >&6; } |
| 13103 | else |
| 13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13105 | $as_echo "no" >&6; } |
| 13106 | fi |
| 13107 | |
| 13108 | |
| 13109 | |
| 13110 | |
| 13111 | |
| 13112 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 13113 | if test -n "$ac_tool_prefix"; then |
| 13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 13115 | $as_echo_n "checking for file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13116 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13117 | $as_echo_n "(cached) " >&6 |
| 13118 | else |
| 13119 | case $MAGIC_CMD in |
| 13120 | [\\/*] | ?:[\\/]*) |
| 13121 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13122 | ;; |
| 13123 | *) |
| 13124 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13125 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13126 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13127 | for ac_dir in $ac_dummy; do |
| 13128 | IFS="$lt_save_ifs" |
| 13129 | test -z "$ac_dir" && ac_dir=. |
| 13130 | if test -f $ac_dir/file; then |
| 13131 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 13132 | if test -n "$file_magic_test_file"; then |
| 13133 | case $deplibs_check_method in |
| 13134 | "file_magic "*) |
| 13135 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 13136 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13137 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13138 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13139 | : |
| 13140 | else |
| 13141 | cat <<_LT_EOF 1>&2 |
| 13142 | |
| 13143 | *** Warning: the command libtool uses to detect shared libraries, |
| 13144 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13145 | *** The result is that libtool may fail to recognize shared libraries |
| 13146 | *** as such. This will affect the creation of libtool libraries that |
| 13147 | *** depend on shared libraries, but programs linked with such libtool |
| 13148 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13149 | *** may want to report the problem to your system manager and/or to |
| 13150 | *** bug-libtool@gnu.org |
| 13151 | |
| 13152 | _LT_EOF |
| 13153 | fi ;; |
| 13154 | esac |
| 13155 | fi |
| 13156 | break |
| 13157 | fi |
| 13158 | done |
| 13159 | IFS="$lt_save_ifs" |
| 13160 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13161 | ;; |
| 13162 | esac |
| 13163 | fi |
| 13164 | |
| 13165 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13166 | if test -n "$MAGIC_CMD"; then |
| 13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 13168 | $as_echo "$MAGIC_CMD" >&6; } |
| 13169 | else |
| 13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13171 | $as_echo "no" >&6; } |
| 13172 | fi |
| 13173 | |
| 13174 | |
| 13175 | else |
| 13176 | MAGIC_CMD=: |
| 13177 | fi |
| 13178 | fi |
| 13179 | |
| 13180 | fi |
| 13181 | ;; |
| 13182 | esac |
| 13183 | |
| 13184 | # Use C for the default configuration in the libtool script |
| 13185 | |
| 13186 | lt_save_CC="$CC" |
| 13187 | ac_ext=c |
| 13188 | ac_cpp='$CPP $CPPFLAGS' |
| 13189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13192 | |
| 13193 | |
| 13194 | # Source file extension for C test sources. |
| 13195 | ac_ext=c |
| 13196 | |
| 13197 | # Object file extension for compiled C test sources. |
| 13198 | objext=o |
| 13199 | objext=$objext |
| 13200 | |
| 13201 | # Code to be used in simple compile tests |
| 13202 | lt_simple_compile_test_code="int some_variable = 0;" |
| 13203 | |
| 13204 | # Code to be used in simple link tests |
| 13205 | lt_simple_link_test_code='int main(){return(0);}' |
| 13206 | |
| 13207 | |
| 13208 | |
| 13209 | |
| 13210 | |
| 13211 | |
| 13212 | |
| 13213 | # If no C compiler was specified, use CC. |
| 13214 | LTCC=${LTCC-"$CC"} |
| 13215 | |
| 13216 | # If no C compiler flags were specified, use CFLAGS. |
| 13217 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13218 | |
| 13219 | # Allow CC to be a program name with arguments. |
| 13220 | compiler=$CC |
| 13221 | |
| 13222 | # Save the default compiler, since it gets overwritten when the other |
| 13223 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 13224 | compiler_DEFAULT=$CC |
| 13225 | |
| 13226 | # save warnings/boilerplate of simple test code |
| 13227 | ac_outfile=conftest.$ac_objext |
| 13228 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13229 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13230 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13231 | $RM conftest* |
| 13232 | |
| 13233 | ac_outfile=conftest.$ac_objext |
| 13234 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13235 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13236 | _lt_linker_boilerplate=`cat conftest.err` |
| 13237 | $RM -r conftest* |
| 13238 | |
| 13239 | |
| 13240 | ## CAVEAT EMPTOR: |
| 13241 | ## There is no encapsulation within the following macros, do not change |
| 13242 | ## the running order or otherwise move them around unless you know exactly |
| 13243 | ## what you are doing... |
| 13244 | if test -n "$compiler"; then |
| 13245 | |
| 13246 | lt_prog_compiler_no_builtin_flag= |
| 13247 | |
| 13248 | if test "$GCC" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13249 | case $cc_basename in |
| 13250 | nvcc*) |
| 13251 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 13252 | *) |
| 13253 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 13254 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13255 | |
| 13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 13257 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13258 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13259 | $as_echo_n "(cached) " >&6 |
| 13260 | else |
| 13261 | lt_cv_prog_compiler_rtti_exceptions=no |
| 13262 | ac_outfile=conftest.$ac_objext |
| 13263 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13264 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 13265 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13266 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13267 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13268 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13269 | # The option is referenced via a variable to avoid confusing sed. |
| 13270 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13271 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13272 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13273 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13274 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13275 | (eval "$lt_compile" 2>conftest.err) |
| 13276 | ac_status=$? |
| 13277 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13279 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13280 | # The compiler can only warn and ignore the option if not recognized |
| 13281 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13282 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13283 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13284 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 13285 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 13286 | fi |
| 13287 | fi |
| 13288 | $RM conftest* |
| 13289 | |
| 13290 | fi |
| 13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 13292 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 13293 | |
| 13294 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 13295 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 13296 | else |
| 13297 | : |
| 13298 | fi |
| 13299 | |
| 13300 | fi |
| 13301 | |
| 13302 | |
| 13303 | |
| 13304 | |
| 13305 | |
| 13306 | |
| 13307 | lt_prog_compiler_wl= |
| 13308 | lt_prog_compiler_pic= |
| 13309 | lt_prog_compiler_static= |
| 13310 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13311 | |
| 13312 | if test "$GCC" = yes; then |
| 13313 | lt_prog_compiler_wl='-Wl,' |
| 13314 | lt_prog_compiler_static='-static' |
| 13315 | |
| 13316 | case $host_os in |
| 13317 | aix*) |
| 13318 | # All AIX code is PIC. |
| 13319 | if test "$host_cpu" = ia64; then |
| 13320 | # AIX 5 now supports IA64 processor |
| 13321 | lt_prog_compiler_static='-Bstatic' |
| 13322 | fi |
| 13323 | ;; |
| 13324 | |
| 13325 | amigaos*) |
| 13326 | case $host_cpu in |
| 13327 | powerpc) |
| 13328 | # see comment about AmigaOS4 .so support |
| 13329 | lt_prog_compiler_pic='-fPIC' |
| 13330 | ;; |
| 13331 | m68k) |
| 13332 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13333 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13334 | # like `-m68040'. |
| 13335 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 13336 | ;; |
| 13337 | esac |
| 13338 | ;; |
| 13339 | |
| 13340 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13341 | # PIC is the default for these OSes. |
| 13342 | ;; |
| 13343 | |
| 13344 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 13345 | # This hack is so that the source file can tell whether it is being |
| 13346 | # built for inclusion in a dll (and should export symbols for example). |
| 13347 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 13348 | # (--disable-auto-import) libraries |
| 13349 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13350 | ;; |
| 13351 | |
| 13352 | darwin* | rhapsody*) |
| 13353 | # PIC is the default on this platform |
| 13354 | # Common symbols not allowed in MH_DYLIB files |
| 13355 | lt_prog_compiler_pic='-fno-common' |
| 13356 | ;; |
| 13357 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13358 | haiku*) |
| 13359 | # PIC is the default for Haiku. |
| 13360 | # The "-static" flag exists, but is broken. |
| 13361 | lt_prog_compiler_static= |
| 13362 | ;; |
| 13363 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13364 | hpux*) |
| 13365 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 13366 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 13367 | # sets the default TLS model and affects inlining. |
| 13368 | case $host_cpu in |
| 13369 | hppa*64*) |
| 13370 | # +Z the default |
| 13371 | ;; |
| 13372 | *) |
| 13373 | lt_prog_compiler_pic='-fPIC' |
| 13374 | ;; |
| 13375 | esac |
| 13376 | ;; |
| 13377 | |
| 13378 | interix[3-9]*) |
| 13379 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13380 | # Instead, we relocate shared libraries at runtime. |
| 13381 | ;; |
| 13382 | |
| 13383 | msdosdjgpp*) |
| 13384 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13385 | # on systems that don't support them. |
| 13386 | lt_prog_compiler_can_build_shared=no |
| 13387 | enable_shared=no |
| 13388 | ;; |
| 13389 | |
| 13390 | *nto* | *qnx*) |
| 13391 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13392 | # it will coredump. |
| 13393 | lt_prog_compiler_pic='-fPIC -shared' |
| 13394 | ;; |
| 13395 | |
| 13396 | sysv4*MP*) |
| 13397 | if test -d /usr/nec; then |
| 13398 | lt_prog_compiler_pic=-Kconform_pic |
| 13399 | fi |
| 13400 | ;; |
| 13401 | |
| 13402 | *) |
| 13403 | lt_prog_compiler_pic='-fPIC' |
| 13404 | ;; |
| 13405 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13406 | |
| 13407 | case $cc_basename in |
| 13408 | nvcc*) # Cuda Compiler Driver 2.2 |
| 13409 | lt_prog_compiler_wl='-Xlinker ' |
| 13410 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 13411 | ;; |
| 13412 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13413 | else |
| 13414 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13415 | case $host_os in |
| 13416 | aix*) |
| 13417 | lt_prog_compiler_wl='-Wl,' |
| 13418 | if test "$host_cpu" = ia64; then |
| 13419 | # AIX 5 now supports IA64 processor |
| 13420 | lt_prog_compiler_static='-Bstatic' |
| 13421 | else |
| 13422 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 13423 | fi |
| 13424 | ;; |
| 13425 | |
| 13426 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 13427 | # This hack is so that the source file can tell whether it is being |
| 13428 | # built for inclusion in a dll (and should export symbols for example). |
| 13429 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13430 | ;; |
| 13431 | |
| 13432 | hpux9* | hpux10* | hpux11*) |
| 13433 | lt_prog_compiler_wl='-Wl,' |
| 13434 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13435 | # not for PA HP-UX. |
| 13436 | case $host_cpu in |
| 13437 | hppa*64*|ia64*) |
| 13438 | # +Z the default |
| 13439 | ;; |
| 13440 | *) |
| 13441 | lt_prog_compiler_pic='+Z' |
| 13442 | ;; |
| 13443 | esac |
| 13444 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13445 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 13446 | ;; |
| 13447 | |
| 13448 | irix5* | irix6* | nonstopux*) |
| 13449 | lt_prog_compiler_wl='-Wl,' |
| 13450 | # PIC (with -KPIC) is the default. |
| 13451 | lt_prog_compiler_static='-non_shared' |
| 13452 | ;; |
| 13453 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13454 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13455 | case $cc_basename in |
| 13456 | # old Intel for x86_64 which still supported -KPIC. |
| 13457 | ecc*) |
| 13458 | lt_prog_compiler_wl='-Wl,' |
| 13459 | lt_prog_compiler_pic='-KPIC' |
| 13460 | lt_prog_compiler_static='-static' |
| 13461 | ;; |
| 13462 | # icc used to be incompatible with GCC. |
| 13463 | # ICC 10 doesn't accept -KPIC any more. |
| 13464 | icc* | ifort*) |
| 13465 | lt_prog_compiler_wl='-Wl,' |
| 13466 | lt_prog_compiler_pic='-fPIC' |
| 13467 | lt_prog_compiler_static='-static' |
| 13468 | ;; |
| 13469 | # Lahey Fortran 8.1. |
| 13470 | lf95*) |
| 13471 | lt_prog_compiler_wl='-Wl,' |
| 13472 | lt_prog_compiler_pic='--shared' |
| 13473 | lt_prog_compiler_static='--static' |
| 13474 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13475 | nagfor*) |
| 13476 | # NAG Fortran compiler |
| 13477 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 13478 | lt_prog_compiler_pic='-PIC' |
| 13479 | lt_prog_compiler_static='-Bstatic' |
| 13480 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13481 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13482 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13483 | # which looks to be a dead project) |
| 13484 | lt_prog_compiler_wl='-Wl,' |
| 13485 | lt_prog_compiler_pic='-fpic' |
| 13486 | lt_prog_compiler_static='-Bstatic' |
| 13487 | ;; |
| 13488 | ccc*) |
| 13489 | lt_prog_compiler_wl='-Wl,' |
| 13490 | # All Alpha code is PIC. |
| 13491 | lt_prog_compiler_static='-non_shared' |
| 13492 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13493 | xl* | bgxl* | bgf* | mpixl*) |
| 13494 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13495 | lt_prog_compiler_wl='-Wl,' |
| 13496 | lt_prog_compiler_pic='-qpic' |
| 13497 | lt_prog_compiler_static='-qstaticlink' |
| 13498 | ;; |
| 13499 | *) |
| 13500 | case `$CC -V 2>&1 | sed 5q` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13501 | *Sun\ F* | *Sun*Fortran*) |
| 13502 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 13503 | lt_prog_compiler_pic='-KPIC' |
| 13504 | lt_prog_compiler_static='-Bstatic' |
| 13505 | lt_prog_compiler_wl='' |
| 13506 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13507 | *Sun\ C*) |
| 13508 | # Sun C 5.9 |
| 13509 | lt_prog_compiler_pic='-KPIC' |
| 13510 | lt_prog_compiler_static='-Bstatic' |
| 13511 | lt_prog_compiler_wl='-Wl,' |
| 13512 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13513 | esac |
| 13514 | ;; |
| 13515 | esac |
| 13516 | ;; |
| 13517 | |
| 13518 | newsos6) |
| 13519 | lt_prog_compiler_pic='-KPIC' |
| 13520 | lt_prog_compiler_static='-Bstatic' |
| 13521 | ;; |
| 13522 | |
| 13523 | *nto* | *qnx*) |
| 13524 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13525 | # it will coredump. |
| 13526 | lt_prog_compiler_pic='-fPIC -shared' |
| 13527 | ;; |
| 13528 | |
| 13529 | osf3* | osf4* | osf5*) |
| 13530 | lt_prog_compiler_wl='-Wl,' |
| 13531 | # All OSF/1 code is PIC. |
| 13532 | lt_prog_compiler_static='-non_shared' |
| 13533 | ;; |
| 13534 | |
| 13535 | rdos*) |
| 13536 | lt_prog_compiler_static='-non_shared' |
| 13537 | ;; |
| 13538 | |
| 13539 | solaris*) |
| 13540 | lt_prog_compiler_pic='-KPIC' |
| 13541 | lt_prog_compiler_static='-Bstatic' |
| 13542 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13543 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13544 | lt_prog_compiler_wl='-Qoption ld ';; |
| 13545 | *) |
| 13546 | lt_prog_compiler_wl='-Wl,';; |
| 13547 | esac |
| 13548 | ;; |
| 13549 | |
| 13550 | sunos4*) |
| 13551 | lt_prog_compiler_wl='-Qoption ld ' |
| 13552 | lt_prog_compiler_pic='-PIC' |
| 13553 | lt_prog_compiler_static='-Bstatic' |
| 13554 | ;; |
| 13555 | |
| 13556 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 13557 | lt_prog_compiler_wl='-Wl,' |
| 13558 | lt_prog_compiler_pic='-KPIC' |
| 13559 | lt_prog_compiler_static='-Bstatic' |
| 13560 | ;; |
| 13561 | |
| 13562 | sysv4*MP*) |
| 13563 | if test -d /usr/nec ;then |
| 13564 | lt_prog_compiler_pic='-Kconform_pic' |
| 13565 | lt_prog_compiler_static='-Bstatic' |
| 13566 | fi |
| 13567 | ;; |
| 13568 | |
| 13569 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13570 | lt_prog_compiler_wl='-Wl,' |
| 13571 | lt_prog_compiler_pic='-KPIC' |
| 13572 | lt_prog_compiler_static='-Bstatic' |
| 13573 | ;; |
| 13574 | |
| 13575 | unicos*) |
| 13576 | lt_prog_compiler_wl='-Wl,' |
| 13577 | lt_prog_compiler_can_build_shared=no |
| 13578 | ;; |
| 13579 | |
| 13580 | uts4*) |
| 13581 | lt_prog_compiler_pic='-pic' |
| 13582 | lt_prog_compiler_static='-Bstatic' |
| 13583 | ;; |
| 13584 | |
| 13585 | *) |
| 13586 | lt_prog_compiler_can_build_shared=no |
| 13587 | ;; |
| 13588 | esac |
| 13589 | fi |
| 13590 | |
| 13591 | case $host_os in |
| 13592 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13593 | *djgpp*) |
| 13594 | lt_prog_compiler_pic= |
| 13595 | ;; |
| 13596 | *) |
| 13597 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 13598 | ;; |
| 13599 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13600 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 13602 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 13603 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 13604 | $as_echo_n "(cached) " >&6 |
| 13605 | else |
| 13606 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 13607 | fi |
| 13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 13609 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 13610 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13611 | |
| 13612 | # |
| 13613 | # Check to make sure the PIC flag actually works. |
| 13614 | # |
| 13615 | if test -n "$lt_prog_compiler_pic"; then |
| 13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 13617 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13618 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13619 | $as_echo_n "(cached) " >&6 |
| 13620 | else |
| 13621 | lt_cv_prog_compiler_pic_works=no |
| 13622 | ac_outfile=conftest.$ac_objext |
| 13623 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13624 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 13625 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13626 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13627 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13628 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13629 | # The option is referenced via a variable to avoid confusing sed. |
| 13630 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13631 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13632 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13633 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13634 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13635 | (eval "$lt_compile" 2>conftest.err) |
| 13636 | ac_status=$? |
| 13637 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13639 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13640 | # The compiler can only warn and ignore the option if not recognized |
| 13641 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13642 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13643 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13644 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 13645 | lt_cv_prog_compiler_pic_works=yes |
| 13646 | fi |
| 13647 | fi |
| 13648 | $RM conftest* |
| 13649 | |
| 13650 | fi |
| 13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 13652 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 13653 | |
| 13654 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 13655 | case $lt_prog_compiler_pic in |
| 13656 | "" | " "*) ;; |
| 13657 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 13658 | esac |
| 13659 | else |
| 13660 | lt_prog_compiler_pic= |
| 13661 | lt_prog_compiler_can_build_shared=no |
| 13662 | fi |
| 13663 | |
| 13664 | fi |
| 13665 | |
| 13666 | |
| 13667 | |
| 13668 | |
| 13669 | |
| 13670 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13671 | |
| 13672 | |
| 13673 | |
| 13674 | |
| 13675 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13676 | # |
| 13677 | # Check to make sure the static flag actually works. |
| 13678 | # |
| 13679 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13681 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13682 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13683 | $as_echo_n "(cached) " >&6 |
| 13684 | else |
| 13685 | lt_cv_prog_compiler_static_works=no |
| 13686 | save_LDFLAGS="$LDFLAGS" |
| 13687 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13688 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13689 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13690 | # The linker can only warn and ignore the option if not recognized |
| 13691 | # So say no if there are warnings |
| 13692 | if test -s conftest.err; then |
| 13693 | # Append any errors to the config.log. |
| 13694 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13695 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13696 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13697 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13698 | lt_cv_prog_compiler_static_works=yes |
| 13699 | fi |
| 13700 | else |
| 13701 | lt_cv_prog_compiler_static_works=yes |
| 13702 | fi |
| 13703 | fi |
| 13704 | $RM -r conftest* |
| 13705 | LDFLAGS="$save_LDFLAGS" |
| 13706 | |
| 13707 | fi |
| 13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 13709 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 13710 | |
| 13711 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 13712 | : |
| 13713 | else |
| 13714 | lt_prog_compiler_static= |
| 13715 | fi |
| 13716 | |
| 13717 | |
| 13718 | |
| 13719 | |
| 13720 | |
| 13721 | |
| 13722 | |
| 13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13724 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13725 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13726 | $as_echo_n "(cached) " >&6 |
| 13727 | else |
| 13728 | lt_cv_prog_compiler_c_o=no |
| 13729 | $RM -r conftest 2>/dev/null |
| 13730 | mkdir conftest |
| 13731 | cd conftest |
| 13732 | mkdir out |
| 13733 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13734 | |
| 13735 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13736 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13737 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13738 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13739 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13740 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13741 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13742 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13743 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13744 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13745 | (eval "$lt_compile" 2>out/conftest.err) |
| 13746 | ac_status=$? |
| 13747 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13749 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13750 | then |
| 13751 | # The compiler can only warn and ignore the option if not recognized |
| 13752 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13753 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13754 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13755 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13756 | lt_cv_prog_compiler_c_o=yes |
| 13757 | fi |
| 13758 | fi |
| 13759 | chmod u+w . 2>&5 |
| 13760 | $RM conftest* |
| 13761 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13762 | # template instantiation |
| 13763 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13764 | $RM out/* && rmdir out |
| 13765 | cd .. |
| 13766 | $RM -r conftest |
| 13767 | $RM conftest* |
| 13768 | |
| 13769 | fi |
| 13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13771 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13772 | |
| 13773 | |
| 13774 | |
| 13775 | |
| 13776 | |
| 13777 | |
| 13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13779 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13780 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13781 | $as_echo_n "(cached) " >&6 |
| 13782 | else |
| 13783 | lt_cv_prog_compiler_c_o=no |
| 13784 | $RM -r conftest 2>/dev/null |
| 13785 | mkdir conftest |
| 13786 | cd conftest |
| 13787 | mkdir out |
| 13788 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13789 | |
| 13790 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13791 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13792 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13793 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13794 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13795 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13796 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13797 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13798 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13799 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13800 | (eval "$lt_compile" 2>out/conftest.err) |
| 13801 | ac_status=$? |
| 13802 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13804 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13805 | then |
| 13806 | # The compiler can only warn and ignore the option if not recognized |
| 13807 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13808 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13809 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13810 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13811 | lt_cv_prog_compiler_c_o=yes |
| 13812 | fi |
| 13813 | fi |
| 13814 | chmod u+w . 2>&5 |
| 13815 | $RM conftest* |
| 13816 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13817 | # template instantiation |
| 13818 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13819 | $RM out/* && rmdir out |
| 13820 | cd .. |
| 13821 | $RM -r conftest |
| 13822 | $RM conftest* |
| 13823 | |
| 13824 | fi |
| 13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13826 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13827 | |
| 13828 | |
| 13829 | |
| 13830 | |
| 13831 | hard_links="nottested" |
| 13832 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 13833 | # do not overwrite the value of need_locks provided by the user |
| 13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13835 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 13836 | hard_links=yes |
| 13837 | $RM conftest* |
| 13838 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13839 | touch conftest.a |
| 13840 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13841 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13843 | $as_echo "$hard_links" >&6; } |
| 13844 | if test "$hard_links" = no; then |
| 13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13846 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13847 | need_locks=warn |
| 13848 | fi |
| 13849 | else |
| 13850 | need_locks=no |
| 13851 | fi |
| 13852 | |
| 13853 | |
| 13854 | |
| 13855 | |
| 13856 | |
| 13857 | |
| 13858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13859 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 13860 | |
| 13861 | runpath_var= |
| 13862 | allow_undefined_flag= |
| 13863 | always_export_symbols=no |
| 13864 | archive_cmds= |
| 13865 | archive_expsym_cmds= |
| 13866 | compiler_needs_object=no |
| 13867 | enable_shared_with_static_runtimes=no |
| 13868 | export_dynamic_flag_spec= |
| 13869 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13870 | hardcode_automatic=no |
| 13871 | hardcode_direct=no |
| 13872 | hardcode_direct_absolute=no |
| 13873 | hardcode_libdir_flag_spec= |
| 13874 | hardcode_libdir_flag_spec_ld= |
| 13875 | hardcode_libdir_separator= |
| 13876 | hardcode_minus_L=no |
| 13877 | hardcode_shlibpath_var=unsupported |
| 13878 | inherit_rpath=no |
| 13879 | link_all_deplibs=unknown |
| 13880 | module_cmds= |
| 13881 | module_expsym_cmds= |
| 13882 | old_archive_from_new_cmds= |
| 13883 | old_archive_from_expsyms_cmds= |
| 13884 | thread_safe_flag_spec= |
| 13885 | whole_archive_flag_spec= |
| 13886 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13887 | # included in the symbol list |
| 13888 | include_expsyms= |
| 13889 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13890 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13891 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13892 | # as well as any symbol that contains `d'. |
| 13893 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 13894 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13895 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13896 | # the symbol is explicitly referenced. Since portable code cannot |
| 13897 | # rely on this symbol name, it's probably fine to never include it in |
| 13898 | # preloaded symbol tables. |
| 13899 | # Exclude shared library initialization/finalization symbols. |
| 13900 | extract_expsyms_cmds= |
| 13901 | |
| 13902 | case $host_os in |
| 13903 | cygwin* | mingw* | pw32* | cegcc*) |
| 13904 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13905 | # When not using gcc, we currently assume that we are using |
| 13906 | # Microsoft Visual C++. |
| 13907 | if test "$GCC" != yes; then |
| 13908 | with_gnu_ld=no |
| 13909 | fi |
| 13910 | ;; |
| 13911 | interix*) |
| 13912 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 13913 | with_gnu_ld=yes |
| 13914 | ;; |
| 13915 | openbsd*) |
| 13916 | with_gnu_ld=no |
| 13917 | ;; |
| 13918 | esac |
| 13919 | |
| 13920 | ld_shlibs=yes |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13921 | |
| 13922 | # On some targets, GNU ld is compatible enough with the native linker |
| 13923 | # that we're better off using the native interface for both. |
| 13924 | lt_use_gnu_ld_interface=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13925 | if test "$with_gnu_ld" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13926 | case $host_os in |
| 13927 | aix*) |
| 13928 | # The AIX port of GNU ld has always aspired to compatibility |
| 13929 | # with the native linker. However, as the warning in the GNU ld |
| 13930 | # block says, versions before 2.19.5* couldn't really create working |
| 13931 | # shared libraries, regardless of the interface used. |
| 13932 | case `$LD -v 2>&1` in |
| 13933 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 13934 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 13935 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 13936 | *) |
| 13937 | lt_use_gnu_ld_interface=yes |
| 13938 | ;; |
| 13939 | esac |
| 13940 | ;; |
| 13941 | *) |
| 13942 | lt_use_gnu_ld_interface=yes |
| 13943 | ;; |
| 13944 | esac |
| 13945 | fi |
| 13946 | |
| 13947 | if test "$lt_use_gnu_ld_interface" = yes; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13948 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13949 | wlarc='${wl}' |
| 13950 | |
| 13951 | # Set some defaults for GNU ld with shared library support. These |
| 13952 | # are reset later if shared libraries are not supported. Putting them |
| 13953 | # here allows them to be overridden if necessary. |
| 13954 | runpath_var=LD_RUN_PATH |
| 13955 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13956 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 13957 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13958 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 13959 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13960 | else |
| 13961 | whole_archive_flag_spec= |
| 13962 | fi |
| 13963 | supports_anon_versioning=no |
| 13964 | case `$LD -v 2>&1` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13965 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13966 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13967 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13968 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13969 | *\ 2.11.*) ;; # other 2.11 versions |
| 13970 | *) supports_anon_versioning=yes ;; |
| 13971 | esac |
| 13972 | |
| 13973 | # See if GNU ld supports shared libraries. |
| 13974 | case $host_os in |
| 13975 | aix[3-9]*) |
| 13976 | # On AIX/PPC, the GNU linker is very broken |
| 13977 | if test "$host_cpu" != ia64; then |
| 13978 | ld_shlibs=no |
| 13979 | cat <<_LT_EOF 1>&2 |
| 13980 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13981 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13982 | *** to be unable to reliably create shared libraries on AIX. |
| 13983 | *** Therefore, libtool is disabling shared libraries support. If you |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13984 | *** really care for shared libraries, you may want to install binutils |
| 13985 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 13986 | *** You will then need to restart the configuration process. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13987 | |
| 13988 | _LT_EOF |
| 13989 | fi |
| 13990 | ;; |
| 13991 | |
| 13992 | amigaos*) |
| 13993 | case $host_cpu in |
| 13994 | powerpc) |
| 13995 | # see comment about AmigaOS4 .so support |
| 13996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13997 | archive_expsym_cmds='' |
| 13998 | ;; |
| 13999 | m68k) |
| 14000 | 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)' |
| 14001 | hardcode_libdir_flag_spec='-L$libdir' |
| 14002 | hardcode_minus_L=yes |
| 14003 | ;; |
| 14004 | esac |
| 14005 | ;; |
| 14006 | |
| 14007 | beos*) |
| 14008 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14009 | allow_undefined_flag=unsupported |
| 14010 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14011 | # support --undefined. This deserves some investigation. FIXME |
| 14012 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14013 | else |
| 14014 | ld_shlibs=no |
| 14015 | fi |
| 14016 | ;; |
| 14017 | |
| 14018 | cygwin* | mingw* | pw32* | cegcc*) |
| 14019 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14020 | # as there is no search path for DLLs. |
| 14021 | hardcode_libdir_flag_spec='-L$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14022 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14023 | allow_undefined_flag=unsupported |
| 14024 | always_export_symbols=no |
| 14025 | enable_shared_with_static_runtimes=yes |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14026 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 14027 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14028 | |
| 14029 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 14030 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14031 | # If the export-symbols file already is a .def file (1st line |
| 14032 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14033 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14034 | cp $export_symbols $output_objdir/$soname.def; |
| 14035 | else |
| 14036 | echo EXPORTS > $output_objdir/$soname.def; |
| 14037 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14038 | fi~ |
| 14039 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14040 | else |
| 14041 | ld_shlibs=no |
| 14042 | fi |
| 14043 | ;; |
| 14044 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14045 | haiku*) |
| 14046 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14047 | link_all_deplibs=yes |
| 14048 | ;; |
| 14049 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14050 | interix[3-9]*) |
| 14051 | hardcode_direct=no |
| 14052 | hardcode_shlibpath_var=no |
| 14053 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14054 | export_dynamic_flag_spec='${wl}-E' |
| 14055 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14056 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14057 | # default) and relocated if they conflict, which is a slow very memory |
| 14058 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14059 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14060 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14061 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14062 | 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' |
| 14063 | ;; |
| 14064 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14065 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14066 | tmp_diet=no |
| 14067 | if test "$host_os" = linux-dietlibc; then |
| 14068 | case $cc_basename in |
| 14069 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 14070 | esac |
| 14071 | fi |
| 14072 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 14073 | && test "$tmp_diet" = no |
| 14074 | then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14075 | tmp_addflag=' $pic_flag' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14076 | tmp_sharedflag='-shared' |
| 14077 | case $cc_basename,$host_cpu in |
| 14078 | pgcc*) # Portland Group C compiler |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14079 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14080 | tmp_addflag=' $pic_flag' |
| 14081 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14082 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 14083 | # Portland Group f77 and f90 compilers |
| 14084 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14085 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14086 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14087 | tmp_addflag=' -i_dynamic' ;; |
| 14088 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14089 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14090 | ifc* | ifort*) # Intel Fortran compiler |
| 14091 | tmp_addflag=' -nofor_main' ;; |
| 14092 | lf95*) # Lahey Fortran 8.1 |
| 14093 | whole_archive_flag_spec= |
| 14094 | tmp_sharedflag='--shared' ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14095 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14096 | tmp_sharedflag='-qmkshrobj' |
| 14097 | tmp_addflag= ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14098 | nvcc*) # Cuda Compiler Driver 2.2 |
| 14099 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14100 | compiler_needs_object=yes |
| 14101 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14102 | esac |
| 14103 | case `$CC -V 2>&1 | sed 5q` in |
| 14104 | *Sun\ C*) # Sun C 5.9 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14105 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14106 | compiler_needs_object=yes |
| 14107 | tmp_sharedflag='-G' ;; |
| 14108 | *Sun\ F*) # Sun Fortran 8.3 |
| 14109 | tmp_sharedflag='-G' ;; |
| 14110 | esac |
| 14111 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14112 | |
| 14113 | if test "x$supports_anon_versioning" = xyes; then |
| 14114 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 14115 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14116 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14117 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14118 | fi |
| 14119 | |
| 14120 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14121 | xlf* | bgf* | bgxlf* | mpixlf*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14122 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 14123 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 14124 | hardcode_libdir_flag_spec= |
| 14125 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14126 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14127 | if test "x$supports_anon_versioning" = xyes; then |
| 14128 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 14129 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14130 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14131 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14132 | fi |
| 14133 | ;; |
| 14134 | esac |
| 14135 | else |
| 14136 | ld_shlibs=no |
| 14137 | fi |
| 14138 | ;; |
| 14139 | |
| 14140 | netbsd*) |
| 14141 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14142 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14143 | wlarc= |
| 14144 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14145 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14146 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14147 | fi |
| 14148 | ;; |
| 14149 | |
| 14150 | solaris*) |
| 14151 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 14152 | ld_shlibs=no |
| 14153 | cat <<_LT_EOF 1>&2 |
| 14154 | |
| 14155 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14156 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14157 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14158 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14159 | *** your PATH or compiler configuration so that the native linker is |
| 14160 | *** used, and then restart. |
| 14161 | |
| 14162 | _LT_EOF |
| 14163 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14164 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14165 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14166 | else |
| 14167 | ld_shlibs=no |
| 14168 | fi |
| 14169 | ;; |
| 14170 | |
| 14171 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14172 | case `$LD -v 2>&1` in |
| 14173 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14174 | ld_shlibs=no |
| 14175 | cat <<_LT_EOF 1>&2 |
| 14176 | |
| 14177 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14178 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14179 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14180 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14181 | *** your PATH or compiler configuration so that the native linker is |
| 14182 | *** used, and then restart. |
| 14183 | |
| 14184 | _LT_EOF |
| 14185 | ;; |
| 14186 | *) |
| 14187 | # For security reasons, it is highly recommended that you always |
| 14188 | # use absolute paths for naming shared libraries, and exclude the |
| 14189 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 14190 | # requires that you compile everything twice, which is a pain. |
| 14191 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14192 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14194 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14195 | else |
| 14196 | ld_shlibs=no |
| 14197 | fi |
| 14198 | ;; |
| 14199 | esac |
| 14200 | ;; |
| 14201 | |
| 14202 | sunos4*) |
| 14203 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14204 | wlarc= |
| 14205 | hardcode_direct=yes |
| 14206 | hardcode_shlibpath_var=no |
| 14207 | ;; |
| 14208 | |
| 14209 | *) |
| 14210 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14211 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14212 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14213 | else |
| 14214 | ld_shlibs=no |
| 14215 | fi |
| 14216 | ;; |
| 14217 | esac |
| 14218 | |
| 14219 | if test "$ld_shlibs" = no; then |
| 14220 | runpath_var= |
| 14221 | hardcode_libdir_flag_spec= |
| 14222 | export_dynamic_flag_spec= |
| 14223 | whole_archive_flag_spec= |
| 14224 | fi |
| 14225 | else |
| 14226 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14227 | case $host_os in |
| 14228 | aix3*) |
| 14229 | allow_undefined_flag=unsupported |
| 14230 | always_export_symbols=yes |
| 14231 | 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' |
| 14232 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14233 | # are no directories specified by -L. |
| 14234 | hardcode_minus_L=yes |
| 14235 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 14236 | # Neither direct hardcoding nor static linking is supported with a |
| 14237 | # broken collect2. |
| 14238 | hardcode_direct=unsupported |
| 14239 | fi |
| 14240 | ;; |
| 14241 | |
| 14242 | aix[4-9]*) |
| 14243 | if test "$host_cpu" = ia64; then |
| 14244 | # On IA64, the linker does run time linking by default, so we don't |
| 14245 | # have to do anything special. |
| 14246 | aix_use_runtimelinking=no |
| 14247 | exp_sym_flag='-Bexport' |
| 14248 | no_entry_flag="" |
| 14249 | else |
| 14250 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14251 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14252 | # Also, AIX nm treats weak defined symbols like other global |
| 14253 | # defined symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14254 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14255 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14256 | else |
| 14257 | 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' |
| 14258 | fi |
| 14259 | aix_use_runtimelinking=no |
| 14260 | |
| 14261 | # Test if we are trying to use run time linking or normal |
| 14262 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14263 | # need to do runtime linking. |
| 14264 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 14265 | for ld_flag in $LDFLAGS; do |
| 14266 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14267 | aix_use_runtimelinking=yes |
| 14268 | break |
| 14269 | fi |
| 14270 | done |
| 14271 | ;; |
| 14272 | esac |
| 14273 | |
| 14274 | exp_sym_flag='-bexport' |
| 14275 | no_entry_flag='-bnoentry' |
| 14276 | fi |
| 14277 | |
| 14278 | # When large executables or shared objects are built, AIX ld can |
| 14279 | # have problems creating the table of contents. If linking a library |
| 14280 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14281 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14282 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14283 | |
| 14284 | archive_cmds='' |
| 14285 | hardcode_direct=yes |
| 14286 | hardcode_direct_absolute=yes |
| 14287 | hardcode_libdir_separator=':' |
| 14288 | link_all_deplibs=yes |
| 14289 | file_list_spec='${wl}-f,' |
| 14290 | |
| 14291 | if test "$GCC" = yes; then |
| 14292 | case $host_os in aix4.[012]|aix4.[012].*) |
| 14293 | # We only want to do this on AIX 4.2 and lower, the check |
| 14294 | # below for broken collect2 doesn't work under 4.3+ |
| 14295 | collect2name=`${CC} -print-prog-name=collect2` |
| 14296 | if test -f "$collect2name" && |
| 14297 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 14298 | then |
| 14299 | # We have reworked collect2 |
| 14300 | : |
| 14301 | else |
| 14302 | # We have old collect2 |
| 14303 | hardcode_direct=unsupported |
| 14304 | # It fails to find uninstalled libraries when the uninstalled |
| 14305 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14306 | # to unsupported forces relinking |
| 14307 | hardcode_minus_L=yes |
| 14308 | hardcode_libdir_flag_spec='-L$libdir' |
| 14309 | hardcode_libdir_separator= |
| 14310 | fi |
| 14311 | ;; |
| 14312 | esac |
| 14313 | shared_flag='-shared' |
| 14314 | if test "$aix_use_runtimelinking" = yes; then |
| 14315 | shared_flag="$shared_flag "'${wl}-G' |
| 14316 | fi |
| 14317 | else |
| 14318 | # not using gcc |
| 14319 | if test "$host_cpu" = ia64; then |
| 14320 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14321 | # chokes on -Wl,-G. The following line is correct: |
| 14322 | shared_flag='-G' |
| 14323 | else |
| 14324 | if test "$aix_use_runtimelinking" = yes; then |
| 14325 | shared_flag='${wl}-G' |
| 14326 | else |
| 14327 | shared_flag='${wl}-bM:SRE' |
| 14328 | fi |
| 14329 | fi |
| 14330 | fi |
| 14331 | |
| 14332 | export_dynamic_flag_spec='${wl}-bexpall' |
| 14333 | # It seems that -bexpall does not export symbols beginning with |
| 14334 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14335 | always_export_symbols=yes |
| 14336 | if test "$aix_use_runtimelinking" = yes; then |
| 14337 | # Warning - without using the other runtime loading flags (-brtl), |
| 14338 | # -berok will link without error, but may produce a broken library. |
| 14339 | allow_undefined_flag='-berok' |
| 14340 | # Determine the default libpath from the value encoded in an |
| 14341 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14342 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 14343 | aix_libpath=$lt_cv_aix_libpath |
| 14344 | else |
| 14345 | if ${lt_cv_aix_libpath_+:} false; then : |
| 14346 | $as_echo_n "(cached) " >&6 |
| 14347 | else |
| 14348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14349 | /* end confdefs.h. */ |
| 14350 | |
| 14351 | int |
| 14352 | main () |
| 14353 | { |
| 14354 | |
| 14355 | ; |
| 14356 | return 0; |
| 14357 | } |
| 14358 | _ACEOF |
| 14359 | if ac_fn_c_try_link "$LINENO"; then : |
| 14360 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14361 | lt_aix_libpath_sed=' |
| 14362 | /Import File Strings/,/^$/ { |
| 14363 | /^0/ { |
| 14364 | s/^0 *\([^ ]*\) *$/\1/ |
| 14365 | p |
| 14366 | } |
| 14367 | }' |
| 14368 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14369 | # Check for a 64-bit object if we didn't find anything. |
| 14370 | if test -z "$lt_cv_aix_libpath_"; then |
| 14371 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14372 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14373 | fi |
| 14374 | rm -f core conftest.err conftest.$ac_objext \ |
| 14375 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14376 | if test -z "$lt_cv_aix_libpath_"; then |
| 14377 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 14378 | fi |
| 14379 | |
| 14380 | fi |
| 14381 | |
| 14382 | aix_libpath=$lt_cv_aix_libpath_ |
| 14383 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14384 | |
| 14385 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14386 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14387 | else |
| 14388 | if test "$host_cpu" = ia64; then |
| 14389 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 14390 | allow_undefined_flag="-z nodefs" |
| 14391 | 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" |
| 14392 | else |
| 14393 | # Determine the default libpath from the value encoded in an |
| 14394 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14395 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 14396 | aix_libpath=$lt_cv_aix_libpath |
| 14397 | else |
| 14398 | if ${lt_cv_aix_libpath_+:} false; then : |
| 14399 | $as_echo_n "(cached) " >&6 |
| 14400 | else |
| 14401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14402 | /* end confdefs.h. */ |
| 14403 | |
| 14404 | int |
| 14405 | main () |
| 14406 | { |
| 14407 | |
| 14408 | ; |
| 14409 | return 0; |
| 14410 | } |
| 14411 | _ACEOF |
| 14412 | if ac_fn_c_try_link "$LINENO"; then : |
| 14413 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14414 | lt_aix_libpath_sed=' |
| 14415 | /Import File Strings/,/^$/ { |
| 14416 | /^0/ { |
| 14417 | s/^0 *\([^ ]*\) *$/\1/ |
| 14418 | p |
| 14419 | } |
| 14420 | }' |
| 14421 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14422 | # Check for a 64-bit object if we didn't find anything. |
| 14423 | if test -z "$lt_cv_aix_libpath_"; then |
| 14424 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14425 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14426 | fi |
| 14427 | rm -f core conftest.err conftest.$ac_objext \ |
| 14428 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14429 | if test -z "$lt_cv_aix_libpath_"; then |
| 14430 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 14431 | fi |
| 14432 | |
| 14433 | fi |
| 14434 | |
| 14435 | aix_libpath=$lt_cv_aix_libpath_ |
| 14436 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14437 | |
| 14438 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14439 | # Warning - without using the other run time loading flags, |
| 14440 | # -berok will link without error, but may produce a broken library. |
| 14441 | no_undefined_flag=' ${wl}-bernotok' |
| 14442 | allow_undefined_flag=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14443 | if test "$with_gnu_ld" = yes; then |
| 14444 | # We only use this code for GNU lds that support --whole-archive. |
| 14445 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 14446 | else |
| 14447 | # Exported symbols can be pulled into shared objects from archives |
| 14448 | whole_archive_flag_spec='$convenience' |
| 14449 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14450 | archive_cmds_need_lc=yes |
| 14451 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14452 | 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' |
| 14453 | fi |
| 14454 | fi |
| 14455 | ;; |
| 14456 | |
| 14457 | amigaos*) |
| 14458 | case $host_cpu in |
| 14459 | powerpc) |
| 14460 | # see comment about AmigaOS4 .so support |
| 14461 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14462 | archive_expsym_cmds='' |
| 14463 | ;; |
| 14464 | m68k) |
| 14465 | 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)' |
| 14466 | hardcode_libdir_flag_spec='-L$libdir' |
| 14467 | hardcode_minus_L=yes |
| 14468 | ;; |
| 14469 | esac |
| 14470 | ;; |
| 14471 | |
| 14472 | bsdi[45]*) |
| 14473 | export_dynamic_flag_spec=-rdynamic |
| 14474 | ;; |
| 14475 | |
| 14476 | cygwin* | mingw* | pw32* | cegcc*) |
| 14477 | # When not using gcc, we currently assume that we are using |
| 14478 | # Microsoft Visual C++. |
| 14479 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14480 | # no search path for DLLs. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14481 | case $cc_basename in |
| 14482 | cl*) |
| 14483 | # Native MSVC |
| 14484 | hardcode_libdir_flag_spec=' ' |
| 14485 | allow_undefined_flag=unsupported |
| 14486 | always_export_symbols=yes |
| 14487 | file_list_spec='@' |
| 14488 | # Tell ltmain to make .lib files, not .a files. |
| 14489 | libext=lib |
| 14490 | # Tell ltmain to make .dll files, not .so files. |
| 14491 | shrext_cmds=".dll" |
| 14492 | # FIXME: Setting linknames here is a bad hack. |
| 14493 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 14494 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14495 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 14496 | else |
| 14497 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 14498 | fi~ |
| 14499 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 14500 | linknames=' |
| 14501 | # The linker will not automatically build a static lib if we build a DLL. |
| 14502 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 14503 | enable_shared_with_static_runtimes=yes |
| 14504 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 14505 | # Don't use ranlib |
| 14506 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14507 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 14508 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 14509 | case $lt_outputfile in |
| 14510 | *.exe|*.EXE) ;; |
| 14511 | *) |
| 14512 | lt_outputfile="$lt_outputfile.exe" |
| 14513 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 14514 | ;; |
| 14515 | esac~ |
| 14516 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 14517 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 14518 | $RM "$lt_outputfile.manifest"; |
| 14519 | fi' |
| 14520 | ;; |
| 14521 | *) |
| 14522 | # Assume MSVC wrapper |
| 14523 | hardcode_libdir_flag_spec=' ' |
| 14524 | allow_undefined_flag=unsupported |
| 14525 | # Tell ltmain to make .lib files, not .a files. |
| 14526 | libext=lib |
| 14527 | # Tell ltmain to make .dll files, not .so files. |
| 14528 | shrext_cmds=".dll" |
| 14529 | # FIXME: Setting linknames here is a bad hack. |
| 14530 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 14531 | # The linker will automatically build a .lib file if we build a DLL. |
| 14532 | old_archive_from_new_cmds='true' |
| 14533 | # FIXME: Should let the user specify the lib program. |
| 14534 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 14535 | enable_shared_with_static_runtimes=yes |
| 14536 | ;; |
| 14537 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14538 | ;; |
| 14539 | |
| 14540 | darwin* | rhapsody*) |
| 14541 | |
| 14542 | |
| 14543 | archive_cmds_need_lc=no |
| 14544 | hardcode_direct=no |
| 14545 | hardcode_automatic=yes |
| 14546 | hardcode_shlibpath_var=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14547 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 14548 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 14549 | else |
| 14550 | whole_archive_flag_spec='' |
| 14551 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14552 | link_all_deplibs=yes |
| 14553 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 14554 | case $cc_basename in |
| 14555 | ifort*) _lt_dar_can_shared=yes ;; |
| 14556 | *) _lt_dar_can_shared=$GCC ;; |
| 14557 | esac |
| 14558 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14559 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14560 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 14561 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 14562 | 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}" |
| 14563 | 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}" |
| 14564 | |
| 14565 | else |
| 14566 | ld_shlibs=no |
| 14567 | fi |
| 14568 | |
| 14569 | ;; |
| 14570 | |
| 14571 | dgux*) |
| 14572 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14573 | hardcode_libdir_flag_spec='-L$libdir' |
| 14574 | hardcode_shlibpath_var=no |
| 14575 | ;; |
| 14576 | |
| 14577 | freebsd1*) |
| 14578 | ld_shlibs=no |
| 14579 | ;; |
| 14580 | |
| 14581 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14582 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14583 | # does not break anything, and helps significantly (at the cost of a little |
| 14584 | # extra space). |
| 14585 | freebsd2.2*) |
| 14586 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14587 | hardcode_libdir_flag_spec='-R$libdir' |
| 14588 | hardcode_direct=yes |
| 14589 | hardcode_shlibpath_var=no |
| 14590 | ;; |
| 14591 | |
| 14592 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14593 | freebsd2*) |
| 14594 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14595 | hardcode_direct=yes |
| 14596 | hardcode_minus_L=yes |
| 14597 | hardcode_shlibpath_var=no |
| 14598 | ;; |
| 14599 | |
| 14600 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 14601 | freebsd* | dragonfly*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14602 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14603 | hardcode_libdir_flag_spec='-R$libdir' |
| 14604 | hardcode_direct=yes |
| 14605 | hardcode_shlibpath_var=no |
| 14606 | ;; |
| 14607 | |
| 14608 | hpux9*) |
| 14609 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14610 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14611 | else |
| 14612 | 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' |
| 14613 | fi |
| 14614 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14615 | hardcode_libdir_separator=: |
| 14616 | hardcode_direct=yes |
| 14617 | |
| 14618 | # hardcode_minus_L: Not really in the search PATH, |
| 14619 | # but as the default location of the library. |
| 14620 | hardcode_minus_L=yes |
| 14621 | export_dynamic_flag_spec='${wl}-E' |
| 14622 | ;; |
| 14623 | |
| 14624 | hpux10*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14625 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14626 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14627 | else |
| 14628 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14629 | fi |
| 14630 | if test "$with_gnu_ld" = no; then |
| 14631 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14632 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 14633 | hardcode_libdir_separator=: |
| 14634 | hardcode_direct=yes |
| 14635 | hardcode_direct_absolute=yes |
| 14636 | export_dynamic_flag_spec='${wl}-E' |
| 14637 | # hardcode_minus_L: Not really in the search PATH, |
| 14638 | # but as the default location of the library. |
| 14639 | hardcode_minus_L=yes |
| 14640 | fi |
| 14641 | ;; |
| 14642 | |
| 14643 | hpux11*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14644 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14645 | case $host_cpu in |
| 14646 | hppa*64*) |
| 14647 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14648 | ;; |
| 14649 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14650 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14651 | ;; |
| 14652 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14653 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14654 | ;; |
| 14655 | esac |
| 14656 | else |
| 14657 | case $host_cpu in |
| 14658 | hppa*64*) |
| 14659 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14660 | ;; |
| 14661 | ia64*) |
| 14662 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14663 | ;; |
| 14664 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14665 | |
| 14666 | # Older versions of the 11.00 compiler do not understand -b yet |
| 14667 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 14668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 14669 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14670 | if ${lt_cv_prog_compiler__b+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14671 | $as_echo_n "(cached) " >&6 |
| 14672 | else |
| 14673 | lt_cv_prog_compiler__b=no |
| 14674 | save_LDFLAGS="$LDFLAGS" |
| 14675 | LDFLAGS="$LDFLAGS -b" |
| 14676 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14677 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14678 | # The linker can only warn and ignore the option if not recognized |
| 14679 | # So say no if there are warnings |
| 14680 | if test -s conftest.err; then |
| 14681 | # Append any errors to the config.log. |
| 14682 | cat conftest.err 1>&5 |
| 14683 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14684 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14685 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14686 | lt_cv_prog_compiler__b=yes |
| 14687 | fi |
| 14688 | else |
| 14689 | lt_cv_prog_compiler__b=yes |
| 14690 | fi |
| 14691 | fi |
| 14692 | $RM -r conftest* |
| 14693 | LDFLAGS="$save_LDFLAGS" |
| 14694 | |
| 14695 | fi |
| 14696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 14697 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 14698 | |
| 14699 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 14700 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14701 | else |
| 14702 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14703 | fi |
| 14704 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14705 | ;; |
| 14706 | esac |
| 14707 | fi |
| 14708 | if test "$with_gnu_ld" = no; then |
| 14709 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14710 | hardcode_libdir_separator=: |
| 14711 | |
| 14712 | case $host_cpu in |
| 14713 | hppa*64*|ia64*) |
| 14714 | hardcode_direct=no |
| 14715 | hardcode_shlibpath_var=no |
| 14716 | ;; |
| 14717 | *) |
| 14718 | hardcode_direct=yes |
| 14719 | hardcode_direct_absolute=yes |
| 14720 | export_dynamic_flag_spec='${wl}-E' |
| 14721 | |
| 14722 | # hardcode_minus_L: Not really in the search PATH, |
| 14723 | # but as the default location of the library. |
| 14724 | hardcode_minus_L=yes |
| 14725 | ;; |
| 14726 | esac |
| 14727 | fi |
| 14728 | ;; |
| 14729 | |
| 14730 | irix5* | irix6* | nonstopux*) |
| 14731 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14732 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14733 | # Try to use the -exported_symbol ld option, if it does not |
| 14734 | # work, assume that -exports_file does not work either and |
| 14735 | # implicitly export all symbols. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14736 | # This should be the same for all languages, so no per-tag cache variable. |
| 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 14738 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 14739 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 14740 | $as_echo_n "(cached) " >&6 |
| 14741 | else |
| 14742 | save_LDFLAGS="$LDFLAGS" |
| 14743 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 14744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14745 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14746 | int foo (void) { return 0; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14747 | _ACEOF |
| 14748 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14749 | lt_cv_irix_exported_symbol=yes |
| 14750 | else |
| 14751 | lt_cv_irix_exported_symbol=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14752 | fi |
| 14753 | rm -f core conftest.err conftest.$ac_objext \ |
| 14754 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14755 | LDFLAGS="$save_LDFLAGS" |
| 14756 | fi |
| 14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 14758 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 14759 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 14760 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 14761 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14762 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14763 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14764 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14765 | fi |
| 14766 | archive_cmds_need_lc='no' |
| 14767 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14768 | hardcode_libdir_separator=: |
| 14769 | inherit_rpath=yes |
| 14770 | link_all_deplibs=yes |
| 14771 | ;; |
| 14772 | |
| 14773 | netbsd*) |
| 14774 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14775 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14776 | else |
| 14777 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14778 | fi |
| 14779 | hardcode_libdir_flag_spec='-R$libdir' |
| 14780 | hardcode_direct=yes |
| 14781 | hardcode_shlibpath_var=no |
| 14782 | ;; |
| 14783 | |
| 14784 | newsos6) |
| 14785 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14786 | hardcode_direct=yes |
| 14787 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14788 | hardcode_libdir_separator=: |
| 14789 | hardcode_shlibpath_var=no |
| 14790 | ;; |
| 14791 | |
| 14792 | *nto* | *qnx*) |
| 14793 | ;; |
| 14794 | |
| 14795 | openbsd*) |
| 14796 | if test -f /usr/libexec/ld.so; then |
| 14797 | hardcode_direct=yes |
| 14798 | hardcode_shlibpath_var=no |
| 14799 | hardcode_direct_absolute=yes |
| 14800 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14801 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14802 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 14803 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14804 | export_dynamic_flag_spec='${wl}-E' |
| 14805 | else |
| 14806 | case $host_os in |
| 14807 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14808 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14809 | hardcode_libdir_flag_spec='-R$libdir' |
| 14810 | ;; |
| 14811 | *) |
| 14812 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14813 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14814 | ;; |
| 14815 | esac |
| 14816 | fi |
| 14817 | else |
| 14818 | ld_shlibs=no |
| 14819 | fi |
| 14820 | ;; |
| 14821 | |
| 14822 | os2*) |
| 14823 | hardcode_libdir_flag_spec='-L$libdir' |
| 14824 | hardcode_minus_L=yes |
| 14825 | allow_undefined_flag=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14826 | 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' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14827 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14828 | ;; |
| 14829 | |
| 14830 | osf3*) |
| 14831 | if test "$GCC" = yes; then |
| 14832 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14833 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14834 | else |
| 14835 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14836 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14837 | fi |
| 14838 | archive_cmds_need_lc='no' |
| 14839 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14840 | hardcode_libdir_separator=: |
| 14841 | ;; |
| 14842 | |
| 14843 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14844 | if test "$GCC" = yes; then |
| 14845 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14846 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14847 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14848 | else |
| 14849 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14850 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14851 | 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~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14852 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14853 | |
| 14854 | # Both c and cxx compiler support -rpath directly |
| 14855 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 14856 | fi |
| 14857 | archive_cmds_need_lc='no' |
| 14858 | hardcode_libdir_separator=: |
| 14859 | ;; |
| 14860 | |
| 14861 | solaris*) |
| 14862 | no_undefined_flag=' -z defs' |
| 14863 | if test "$GCC" = yes; then |
| 14864 | wlarc='${wl}' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14865 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14866 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14867 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14868 | else |
| 14869 | case `$CC -V 2>&1` in |
| 14870 | *"Compilers 5.0"*) |
| 14871 | wlarc='' |
| 14872 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14873 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14874 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 14875 | ;; |
| 14876 | *) |
| 14877 | wlarc='${wl}' |
| 14878 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14879 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14880 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 14881 | ;; |
| 14882 | esac |
| 14883 | fi |
| 14884 | hardcode_libdir_flag_spec='-R$libdir' |
| 14885 | hardcode_shlibpath_var=no |
| 14886 | case $host_os in |
| 14887 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14888 | *) |
| 14889 | # The compiler driver will combine and reorder linker options, |
| 14890 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 14891 | # but is careful enough not to reorder. |
| 14892 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14893 | if test "$GCC" = yes; then |
| 14894 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 14895 | else |
| 14896 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 14897 | fi |
| 14898 | ;; |
| 14899 | esac |
| 14900 | link_all_deplibs=yes |
| 14901 | ;; |
| 14902 | |
| 14903 | sunos4*) |
| 14904 | if test "x$host_vendor" = xsequent; then |
| 14905 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14906 | # files that make .init and .fini sections work. |
| 14907 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14908 | else |
| 14909 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14910 | fi |
| 14911 | hardcode_libdir_flag_spec='-L$libdir' |
| 14912 | hardcode_direct=yes |
| 14913 | hardcode_minus_L=yes |
| 14914 | hardcode_shlibpath_var=no |
| 14915 | ;; |
| 14916 | |
| 14917 | sysv4) |
| 14918 | case $host_vendor in |
| 14919 | sni) |
| 14920 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14921 | hardcode_direct=yes # is this really true??? |
| 14922 | ;; |
| 14923 | siemens) |
| 14924 | ## LD is ld it makes a PLAMLIB |
| 14925 | ## CC just makes a GrossModule. |
| 14926 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14927 | reload_cmds='$CC -r -o $output$reload_objs' |
| 14928 | hardcode_direct=no |
| 14929 | ;; |
| 14930 | motorola) |
| 14931 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14932 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 14933 | ;; |
| 14934 | esac |
| 14935 | runpath_var='LD_RUN_PATH' |
| 14936 | hardcode_shlibpath_var=no |
| 14937 | ;; |
| 14938 | |
| 14939 | sysv4.3*) |
| 14940 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14941 | hardcode_shlibpath_var=no |
| 14942 | export_dynamic_flag_spec='-Bexport' |
| 14943 | ;; |
| 14944 | |
| 14945 | sysv4*MP*) |
| 14946 | if test -d /usr/nec; then |
| 14947 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14948 | hardcode_shlibpath_var=no |
| 14949 | runpath_var=LD_RUN_PATH |
| 14950 | hardcode_runpath_var=yes |
| 14951 | ld_shlibs=yes |
| 14952 | fi |
| 14953 | ;; |
| 14954 | |
| 14955 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 14956 | no_undefined_flag='${wl}-z,text' |
| 14957 | archive_cmds_need_lc=no |
| 14958 | hardcode_shlibpath_var=no |
| 14959 | runpath_var='LD_RUN_PATH' |
| 14960 | |
| 14961 | if test "$GCC" = yes; then |
| 14962 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14963 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14964 | else |
| 14965 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14966 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14967 | fi |
| 14968 | ;; |
| 14969 | |
| 14970 | sysv5* | sco3.2v5* | sco5v6*) |
| 14971 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14972 | # link with -lc, and that would cause any symbols used from libc to |
| 14973 | # always be unresolved, which means just about no library would |
| 14974 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14975 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14976 | # as -z defs. |
| 14977 | no_undefined_flag='${wl}-z,text' |
| 14978 | allow_undefined_flag='${wl}-z,nodefs' |
| 14979 | archive_cmds_need_lc=no |
| 14980 | hardcode_shlibpath_var=no |
| 14981 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 14982 | hardcode_libdir_separator=':' |
| 14983 | link_all_deplibs=yes |
| 14984 | export_dynamic_flag_spec='${wl}-Bexport' |
| 14985 | runpath_var='LD_RUN_PATH' |
| 14986 | |
| 14987 | if test "$GCC" = yes; then |
| 14988 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14989 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14990 | else |
| 14991 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14992 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14993 | fi |
| 14994 | ;; |
| 14995 | |
| 14996 | uts4*) |
| 14997 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14998 | hardcode_libdir_flag_spec='-L$libdir' |
| 14999 | hardcode_shlibpath_var=no |
| 15000 | ;; |
| 15001 | |
| 15002 | *) |
| 15003 | ld_shlibs=no |
| 15004 | ;; |
| 15005 | esac |
| 15006 | |
| 15007 | if test x$host_vendor = xsni; then |
| 15008 | case $host in |
| 15009 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15010 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15011 | ;; |
| 15012 | esac |
| 15013 | fi |
| 15014 | fi |
| 15015 | |
| 15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 15017 | $as_echo "$ld_shlibs" >&6; } |
| 15018 | test "$ld_shlibs" = no && can_build_shared=no |
| 15019 | |
| 15020 | with_gnu_ld=$with_gnu_ld |
| 15021 | |
| 15022 | |
| 15023 | |
| 15024 | |
| 15025 | |
| 15026 | |
| 15027 | |
| 15028 | |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | # |
| 15037 | # Do we need to explicitly link libc? |
| 15038 | # |
| 15039 | case "x$archive_cmds_need_lc" in |
| 15040 | x|xyes) |
| 15041 | # Assume -lc should be added |
| 15042 | archive_cmds_need_lc=yes |
| 15043 | |
| 15044 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15045 | case $archive_cmds in |
| 15046 | *'~'*) |
| 15047 | # FIXME: we may have to deal with multi-command sequences. |
| 15048 | ;; |
| 15049 | '$CC '*) |
| 15050 | # Test whether the compiler implicitly links with -lc since on some |
| 15051 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15052 | # to ld, don't add -lc before -lgcc. |
| 15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 15054 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15055 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15056 | $as_echo_n "(cached) " >&6 |
| 15057 | else |
| 15058 | $RM conftest* |
| 15059 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15060 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15061 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15062 | (eval $ac_compile) 2>&5 |
| 15063 | ac_status=$? |
| 15064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15065 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15066 | soname=conftest |
| 15067 | lib=conftest |
| 15068 | libobjs=conftest.$ac_objext |
| 15069 | deplibs= |
| 15070 | wl=$lt_prog_compiler_wl |
| 15071 | pic_flag=$lt_prog_compiler_pic |
| 15072 | compiler_flags=-v |
| 15073 | linker_flags=-v |
| 15074 | verstring= |
| 15075 | output_objdir=. |
| 15076 | libname=conftest |
| 15077 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15078 | allow_undefined_flag= |
| 15079 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15080 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15081 | ac_status=$? |
| 15082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15083 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15084 | then |
| 15085 | lt_cv_archive_cmds_need_lc=no |
| 15086 | else |
| 15087 | lt_cv_archive_cmds_need_lc=yes |
| 15088 | fi |
| 15089 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15090 | else |
| 15091 | cat conftest.err 1>&5 |
| 15092 | fi |
| 15093 | $RM conftest* |
| 15094 | |
| 15095 | fi |
| 15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 15097 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 15098 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15099 | ;; |
| 15100 | esac |
| 15101 | fi |
| 15102 | ;; |
| 15103 | esac |
| 15104 | |
| 15105 | |
| 15106 | |
| 15107 | |
| 15108 | |
| 15109 | |
| 15110 | |
| 15111 | |
| 15112 | |
| 15113 | |
| 15114 | |
| 15115 | |
| 15116 | |
| 15117 | |
| 15118 | |
| 15119 | |
| 15120 | |
| 15121 | |
| 15122 | |
| 15123 | |
| 15124 | |
| 15125 | |
| 15126 | |
| 15127 | |
| 15128 | |
| 15129 | |
| 15130 | |
| 15131 | |
| 15132 | |
| 15133 | |
| 15134 | |
| 15135 | |
| 15136 | |
| 15137 | |
| 15138 | |
| 15139 | |
| 15140 | |
| 15141 | |
| 15142 | |
| 15143 | |
| 15144 | |
| 15145 | |
| 15146 | |
| 15147 | |
| 15148 | |
| 15149 | |
| 15150 | |
| 15151 | |
| 15152 | |
| 15153 | |
| 15154 | |
| 15155 | |
| 15156 | |
| 15157 | |
| 15158 | |
| 15159 | |
| 15160 | |
| 15161 | |
| 15162 | |
| 15163 | |
| 15164 | |
| 15165 | |
| 15166 | |
| 15167 | |
| 15168 | |
| 15169 | |
| 15170 | |
| 15171 | |
| 15172 | |
| 15173 | |
| 15174 | |
| 15175 | |
| 15176 | |
| 15177 | |
| 15178 | |
| 15179 | |
| 15180 | |
| 15181 | |
| 15182 | |
| 15183 | |
| 15184 | |
| 15185 | |
| 15186 | |
| 15187 | |
| 15188 | |
| 15189 | |
| 15190 | |
| 15191 | |
| 15192 | |
| 15193 | |
| 15194 | |
| 15195 | |
| 15196 | |
| 15197 | |
| 15198 | |
| 15199 | |
| 15200 | |
| 15201 | |
| 15202 | |
| 15203 | |
| 15204 | |
| 15205 | |
| 15206 | |
| 15207 | |
| 15208 | |
| 15209 | |
| 15210 | |
| 15211 | |
| 15212 | |
| 15213 | |
| 15214 | |
| 15215 | |
| 15216 | |
| 15217 | |
| 15218 | |
| 15219 | |
| 15220 | |
| 15221 | |
| 15222 | |
| 15223 | |
| 15224 | |
| 15225 | |
| 15226 | |
| 15227 | |
| 15228 | |
| 15229 | |
| 15230 | |
| 15231 | |
| 15232 | |
| 15233 | |
| 15234 | |
| 15235 | |
| 15236 | |
| 15237 | |
| 15238 | |
| 15239 | |
| 15240 | |
| 15241 | |
| 15242 | |
| 15243 | |
| 15244 | |
| 15245 | |
| 15246 | |
| 15247 | |
| 15248 | |
| 15249 | |
| 15250 | |
| 15251 | |
| 15252 | |
| 15253 | |
| 15254 | |
| 15255 | |
| 15256 | |
| 15257 | |
| 15258 | |
| 15259 | |
| 15260 | |
| 15261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 15262 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 15263 | |
| 15264 | if test "$GCC" = yes; then |
| 15265 | case $host_os in |
| 15266 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 15267 | *) lt_awk_arg="/^libraries:/" ;; |
| 15268 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15269 | case $host_os in |
| 15270 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 15271 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 15272 | esac |
| 15273 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 15274 | case $lt_search_path_spec in |
| 15275 | *\;*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15276 | # if the path contains ";" then we assume it to be the separator |
| 15277 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15278 | # assumed that no part of a normal pathname contains ";" but that should |
| 15279 | # okay in the real world where ";" in dirpaths is itself problematic. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15280 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 15281 | ;; |
| 15282 | *) |
| 15283 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 15284 | ;; |
| 15285 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15286 | # Ok, now we have the path, separated by spaces, we can step through it |
| 15287 | # and add multilib dir if necessary. |
| 15288 | lt_tmp_lt_search_path_spec= |
| 15289 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 15290 | for lt_sys_path in $lt_search_path_spec; do |
| 15291 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 15292 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 15293 | else |
| 15294 | test -d "$lt_sys_path" && \ |
| 15295 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 15296 | fi |
| 15297 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15298 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15299 | BEGIN {RS=" "; FS="/|\n";} { |
| 15300 | lt_foo=""; |
| 15301 | lt_count=0; |
| 15302 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 15303 | if ($lt_i != "" && $lt_i != ".") { |
| 15304 | if ($lt_i == "..") { |
| 15305 | lt_count++; |
| 15306 | } else { |
| 15307 | if (lt_count == 0) { |
| 15308 | lt_foo="/" $lt_i lt_foo; |
| 15309 | } else { |
| 15310 | lt_count--; |
| 15311 | } |
| 15312 | } |
| 15313 | } |
| 15314 | } |
| 15315 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 15316 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 15317 | }'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15318 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 15319 | # for these hosts. |
| 15320 | case $host_os in |
| 15321 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 15322 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 15323 | esac |
| 15324 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15325 | else |
| 15326 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15327 | fi |
| 15328 | library_names_spec= |
| 15329 | libname_spec='lib$name' |
| 15330 | soname_spec= |
| 15331 | shrext_cmds=".so" |
| 15332 | postinstall_cmds= |
| 15333 | postuninstall_cmds= |
| 15334 | finish_cmds= |
| 15335 | finish_eval= |
| 15336 | shlibpath_var= |
| 15337 | shlibpath_overrides_runpath=unknown |
| 15338 | version_type=none |
| 15339 | dynamic_linker="$host_os ld.so" |
| 15340 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15341 | need_lib_prefix=unknown |
| 15342 | hardcode_into_libs=no |
| 15343 | |
| 15344 | # when you set need_version to no, make sure it does not cause -set_version |
| 15345 | # flags to be left without arguments |
| 15346 | need_version=unknown |
| 15347 | |
| 15348 | case $host_os in |
| 15349 | aix3*) |
| 15350 | version_type=linux |
| 15351 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15352 | shlibpath_var=LIBPATH |
| 15353 | |
| 15354 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15356 | ;; |
| 15357 | |
| 15358 | aix[4-9]*) |
| 15359 | version_type=linux |
| 15360 | need_lib_prefix=no |
| 15361 | need_version=no |
| 15362 | hardcode_into_libs=yes |
| 15363 | if test "$host_cpu" = ia64; then |
| 15364 | # AIX 5 supports IA64 |
| 15365 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15366 | shlibpath_var=LD_LIBRARY_PATH |
| 15367 | else |
| 15368 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15369 | # for dependence libraries. The import file would start with |
| 15370 | # the line `#! .'. This would cause the generated library to |
| 15371 | # depend on `.', always an invalid library. This was fixed in |
| 15372 | # development snapshots of GCC prior to 3.0. |
| 15373 | case $host_os in |
| 15374 | aix4 | aix4.[01] | aix4.[01].*) |
| 15375 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15376 | echo ' yes ' |
| 15377 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 15378 | : |
| 15379 | else |
| 15380 | can_build_shared=no |
| 15381 | fi |
| 15382 | ;; |
| 15383 | esac |
| 15384 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15385 | # soname into executable. Probably we can add versioning support to |
| 15386 | # collect2, so additional links can be useful in future. |
| 15387 | if test "$aix_use_runtimelinking" = yes; then |
| 15388 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15389 | # instead of lib<name>.a to let people know that these are not |
| 15390 | # typical AIX shared libraries. |
| 15391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15392 | else |
| 15393 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15394 | # and later when we are not doing run time linking. |
| 15395 | library_names_spec='${libname}${release}.a $libname.a' |
| 15396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15397 | fi |
| 15398 | shlibpath_var=LIBPATH |
| 15399 | fi |
| 15400 | ;; |
| 15401 | |
| 15402 | amigaos*) |
| 15403 | case $host_cpu in |
| 15404 | powerpc) |
| 15405 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 15406 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 15407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15408 | ;; |
| 15409 | m68k) |
| 15410 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15411 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15412 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15413 | ;; |
| 15414 | esac |
| 15415 | ;; |
| 15416 | |
| 15417 | beos*) |
| 15418 | library_names_spec='${libname}${shared_ext}' |
| 15419 | dynamic_linker="$host_os ld.so" |
| 15420 | shlibpath_var=LIBRARY_PATH |
| 15421 | ;; |
| 15422 | |
| 15423 | bsdi[45]*) |
| 15424 | version_type=linux |
| 15425 | need_version=no |
| 15426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15427 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15428 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15429 | shlibpath_var=LD_LIBRARY_PATH |
| 15430 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15431 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15432 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15433 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15434 | # libtool to hard-code these into programs |
| 15435 | ;; |
| 15436 | |
| 15437 | cygwin* | mingw* | pw32* | cegcc*) |
| 15438 | version_type=windows |
| 15439 | shrext_cmds=".dll" |
| 15440 | need_version=no |
| 15441 | need_lib_prefix=no |
| 15442 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15443 | case $GCC,$cc_basename in |
| 15444 | yes,*) |
| 15445 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15446 | library_names_spec='$libname.dll.a' |
| 15447 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15448 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15449 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15450 | dldir=$destdir/`dirname \$dlpath`~ |
| 15451 | test -d \$dldir || mkdir -p \$dldir~ |
| 15452 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15453 | chmod a+x \$dldir/$dlname~ |
| 15454 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15455 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15456 | fi' |
| 15457 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15458 | dlpath=$dir/\$dldll~ |
| 15459 | $RM \$dlpath' |
| 15460 | shlibpath_overrides_runpath=yes |
| 15461 | |
| 15462 | case $host_os in |
| 15463 | cygwin*) |
| 15464 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15465 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15466 | |
| 15467 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15468 | ;; |
| 15469 | mingw* | cegcc*) |
| 15470 | # MinGW DLLs use traditional 'lib' prefix |
| 15471 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15472 | ;; |
| 15473 | pw32*) |
| 15474 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15475 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15476 | ;; |
| 15477 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15478 | dynamic_linker='Win32 ld.exe' |
| 15479 | ;; |
| 15480 | |
| 15481 | *,cl*) |
| 15482 | # Native MSVC |
| 15483 | libname_spec='$name' |
| 15484 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15485 | library_names_spec='${libname}.dll.lib' |
| 15486 | |
| 15487 | case $build_os in |
| 15488 | mingw*) |
| 15489 | sys_lib_search_path_spec= |
| 15490 | lt_save_ifs=$IFS |
| 15491 | IFS=';' |
| 15492 | for lt_path in $LIB |
| 15493 | do |
| 15494 | IFS=$lt_save_ifs |
| 15495 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15496 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15497 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15498 | done |
| 15499 | IFS=$lt_save_ifs |
| 15500 | # Convert to MSYS style. |
| 15501 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15502 | ;; |
| 15503 | cygwin*) |
| 15504 | # Convert to unix form, then to dos form, then back to unix form |
| 15505 | # but this time dos style (no spaces!) so that the unix form looks |
| 15506 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15507 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15508 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15509 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15510 | ;; |
| 15511 | *) |
| 15512 | sys_lib_search_path_spec="$LIB" |
| 15513 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15514 | # It is most probably a Windows format PATH. |
| 15515 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15516 | else |
| 15517 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15518 | fi |
| 15519 | # FIXME: find the short name or the path components, as spaces are |
| 15520 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 15521 | ;; |
| 15522 | esac |
| 15523 | |
| 15524 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15525 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15526 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15527 | dldir=$destdir/`dirname \$dlpath`~ |
| 15528 | test -d \$dldir || mkdir -p \$dldir~ |
| 15529 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15530 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15531 | dlpath=$dir/\$dldll~ |
| 15532 | $RM \$dlpath' |
| 15533 | shlibpath_overrides_runpath=yes |
| 15534 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15535 | ;; |
| 15536 | |
| 15537 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15538 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15539 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15540 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15541 | ;; |
| 15542 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15543 | # FIXME: first we should search . and the directory the executable is in |
| 15544 | shlibpath_var=PATH |
| 15545 | ;; |
| 15546 | |
| 15547 | darwin* | rhapsody*) |
| 15548 | dynamic_linker="$host_os dyld" |
| 15549 | version_type=darwin |
| 15550 | need_lib_prefix=no |
| 15551 | need_version=no |
| 15552 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15553 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15554 | shlibpath_overrides_runpath=yes |
| 15555 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15556 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15557 | |
| 15558 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 15559 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15560 | ;; |
| 15561 | |
| 15562 | dgux*) |
| 15563 | version_type=linux |
| 15564 | need_lib_prefix=no |
| 15565 | need_version=no |
| 15566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15568 | shlibpath_var=LD_LIBRARY_PATH |
| 15569 | ;; |
| 15570 | |
| 15571 | freebsd1*) |
| 15572 | dynamic_linker=no |
| 15573 | ;; |
| 15574 | |
| 15575 | freebsd* | dragonfly*) |
| 15576 | # DragonFly does not have aout. When/if they implement a new |
| 15577 | # versioning mechanism, adjust this. |
| 15578 | if test -x /usr/bin/objformat; then |
| 15579 | objformat=`/usr/bin/objformat` |
| 15580 | else |
| 15581 | case $host_os in |
| 15582 | freebsd[123]*) objformat=aout ;; |
| 15583 | *) objformat=elf ;; |
| 15584 | esac |
| 15585 | fi |
| 15586 | version_type=freebsd-$objformat |
| 15587 | case $version_type in |
| 15588 | freebsd-elf*) |
| 15589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15590 | need_version=no |
| 15591 | need_lib_prefix=no |
| 15592 | ;; |
| 15593 | freebsd-*) |
| 15594 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15595 | need_version=yes |
| 15596 | ;; |
| 15597 | esac |
| 15598 | shlibpath_var=LD_LIBRARY_PATH |
| 15599 | case $host_os in |
| 15600 | freebsd2*) |
| 15601 | shlibpath_overrides_runpath=yes |
| 15602 | ;; |
| 15603 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15604 | shlibpath_overrides_runpath=yes |
| 15605 | hardcode_into_libs=yes |
| 15606 | ;; |
| 15607 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15608 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15609 | shlibpath_overrides_runpath=no |
| 15610 | hardcode_into_libs=yes |
| 15611 | ;; |
| 15612 | *) # from 4.6 on, and DragonFly |
| 15613 | shlibpath_overrides_runpath=yes |
| 15614 | hardcode_into_libs=yes |
| 15615 | ;; |
| 15616 | esac |
| 15617 | ;; |
| 15618 | |
| 15619 | gnu*) |
| 15620 | version_type=linux |
| 15621 | need_lib_prefix=no |
| 15622 | need_version=no |
| 15623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15624 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15625 | shlibpath_var=LD_LIBRARY_PATH |
| 15626 | hardcode_into_libs=yes |
| 15627 | ;; |
| 15628 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15629 | haiku*) |
| 15630 | version_type=linux |
| 15631 | need_lib_prefix=no |
| 15632 | need_version=no |
| 15633 | dynamic_linker="$host_os runtime_loader" |
| 15634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15635 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15636 | shlibpath_var=LIBRARY_PATH |
| 15637 | shlibpath_overrides_runpath=yes |
| 15638 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15639 | hardcode_into_libs=yes |
| 15640 | ;; |
| 15641 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15642 | hpux9* | hpux10* | hpux11*) |
| 15643 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15644 | # link against other versions. |
| 15645 | version_type=sunos |
| 15646 | need_lib_prefix=no |
| 15647 | need_version=no |
| 15648 | case $host_cpu in |
| 15649 | ia64*) |
| 15650 | shrext_cmds='.so' |
| 15651 | hardcode_into_libs=yes |
| 15652 | dynamic_linker="$host_os dld.so" |
| 15653 | shlibpath_var=LD_LIBRARY_PATH |
| 15654 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15656 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15657 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15658 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15659 | else |
| 15660 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15661 | fi |
| 15662 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15663 | ;; |
| 15664 | hppa*64*) |
| 15665 | shrext_cmds='.sl' |
| 15666 | hardcode_into_libs=yes |
| 15667 | dynamic_linker="$host_os dld.sl" |
| 15668 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15669 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15671 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15672 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15673 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15674 | ;; |
| 15675 | *) |
| 15676 | shrext_cmds='.sl' |
| 15677 | dynamic_linker="$host_os dld.sl" |
| 15678 | shlibpath_var=SHLIB_PATH |
| 15679 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15681 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15682 | ;; |
| 15683 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15684 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15685 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15686 | # or fails outright, so override atomically: |
| 15687 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15688 | ;; |
| 15689 | |
| 15690 | interix[3-9]*) |
| 15691 | version_type=linux |
| 15692 | need_lib_prefix=no |
| 15693 | need_version=no |
| 15694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15695 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15696 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15697 | shlibpath_var=LD_LIBRARY_PATH |
| 15698 | shlibpath_overrides_runpath=no |
| 15699 | hardcode_into_libs=yes |
| 15700 | ;; |
| 15701 | |
| 15702 | irix5* | irix6* | nonstopux*) |
| 15703 | case $host_os in |
| 15704 | nonstopux*) version_type=nonstopux ;; |
| 15705 | *) |
| 15706 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15707 | version_type=linux |
| 15708 | else |
| 15709 | version_type=irix |
| 15710 | fi ;; |
| 15711 | esac |
| 15712 | need_lib_prefix=no |
| 15713 | need_version=no |
| 15714 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15716 | case $host_os in |
| 15717 | irix5* | nonstopux*) |
| 15718 | libsuff= shlibsuff= |
| 15719 | ;; |
| 15720 | *) |
| 15721 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15722 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15723 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15724 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15725 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15726 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15727 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15728 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15729 | esac |
| 15730 | ;; |
| 15731 | esac |
| 15732 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15733 | shlibpath_overrides_runpath=no |
| 15734 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15735 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15736 | hardcode_into_libs=yes |
| 15737 | ;; |
| 15738 | |
| 15739 | # No shared lib support for Linux oldld, aout, or coff. |
| 15740 | linux*oldld* | linux*aout* | linux*coff*) |
| 15741 | dynamic_linker=no |
| 15742 | ;; |
| 15743 | |
| 15744 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15745 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15746 | version_type=linux |
| 15747 | need_lib_prefix=no |
| 15748 | need_version=no |
| 15749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15750 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15751 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15752 | shlibpath_var=LD_LIBRARY_PATH |
| 15753 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15754 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15755 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15756 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15757 | $as_echo_n "(cached) " >&6 |
| 15758 | else |
| 15759 | lt_cv_shlibpath_overrides_runpath=no |
| 15760 | save_LDFLAGS=$LDFLAGS |
| 15761 | save_libdir=$libdir |
| 15762 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 15763 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 15764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15765 | /* end confdefs.h. */ |
| 15766 | |
| 15767 | int |
| 15768 | main () |
| 15769 | { |
| 15770 | |
| 15771 | ; |
| 15772 | return 0; |
| 15773 | } |
| 15774 | _ACEOF |
| 15775 | if ac_fn_c_try_link "$LINENO"; then : |
| 15776 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15777 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15778 | fi |
| 15779 | fi |
| 15780 | rm -f core conftest.err conftest.$ac_objext \ |
| 15781 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15782 | LDFLAGS=$save_LDFLAGS |
| 15783 | libdir=$save_libdir |
| 15784 | |
| 15785 | fi |
| 15786 | |
| 15787 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15788 | |
| 15789 | # This implies no fast_install, which is unacceptable. |
| 15790 | # Some rework will be needed to allow for fast_install |
| 15791 | # before this can be enabled. |
| 15792 | hardcode_into_libs=yes |
| 15793 | |
| 15794 | # Add ABI-specific directories to the system library path. |
| 15795 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 15796 | |
| 15797 | # Append ld.so.conf contents to the search path |
| 15798 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15799 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15800 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15801 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15802 | fi |
| 15803 | |
| 15804 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15805 | # powerpc, because MkLinux only supported shared libraries with the |
| 15806 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15807 | # most powerpc-linux boxes support dynamic linking these days and |
| 15808 | # people can always --disable-shared, the test was removed, and we |
| 15809 | # assume the GNU/Linux dynamic linker is in use. |
| 15810 | dynamic_linker='GNU/Linux ld.so' |
| 15811 | ;; |
| 15812 | |
| 15813 | netbsd*) |
| 15814 | version_type=sunos |
| 15815 | need_lib_prefix=no |
| 15816 | need_version=no |
| 15817 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15820 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15821 | else |
| 15822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15823 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15824 | dynamic_linker='NetBSD ld.elf_so' |
| 15825 | fi |
| 15826 | shlibpath_var=LD_LIBRARY_PATH |
| 15827 | shlibpath_overrides_runpath=yes |
| 15828 | hardcode_into_libs=yes |
| 15829 | ;; |
| 15830 | |
| 15831 | newsos6) |
| 15832 | version_type=linux |
| 15833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15834 | shlibpath_var=LD_LIBRARY_PATH |
| 15835 | shlibpath_overrides_runpath=yes |
| 15836 | ;; |
| 15837 | |
| 15838 | *nto* | *qnx*) |
| 15839 | version_type=qnx |
| 15840 | need_lib_prefix=no |
| 15841 | need_version=no |
| 15842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15843 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15844 | shlibpath_var=LD_LIBRARY_PATH |
| 15845 | shlibpath_overrides_runpath=no |
| 15846 | hardcode_into_libs=yes |
| 15847 | dynamic_linker='ldqnx.so' |
| 15848 | ;; |
| 15849 | |
| 15850 | openbsd*) |
| 15851 | version_type=sunos |
| 15852 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15853 | need_lib_prefix=no |
| 15854 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15855 | case $host_os in |
| 15856 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15857 | *) need_version=no ;; |
| 15858 | esac |
| 15859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15861 | shlibpath_var=LD_LIBRARY_PATH |
| 15862 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15863 | case $host_os in |
| 15864 | openbsd2.[89] | openbsd2.[89].*) |
| 15865 | shlibpath_overrides_runpath=no |
| 15866 | ;; |
| 15867 | *) |
| 15868 | shlibpath_overrides_runpath=yes |
| 15869 | ;; |
| 15870 | esac |
| 15871 | else |
| 15872 | shlibpath_overrides_runpath=yes |
| 15873 | fi |
| 15874 | ;; |
| 15875 | |
| 15876 | os2*) |
| 15877 | libname_spec='$name' |
| 15878 | shrext_cmds=".dll" |
| 15879 | need_lib_prefix=no |
| 15880 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15881 | dynamic_linker='OS/2 ld.exe' |
| 15882 | shlibpath_var=LIBPATH |
| 15883 | ;; |
| 15884 | |
| 15885 | osf3* | osf4* | osf5*) |
| 15886 | version_type=osf |
| 15887 | need_lib_prefix=no |
| 15888 | need_version=no |
| 15889 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15891 | shlibpath_var=LD_LIBRARY_PATH |
| 15892 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15893 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15894 | ;; |
| 15895 | |
| 15896 | rdos*) |
| 15897 | dynamic_linker=no |
| 15898 | ;; |
| 15899 | |
| 15900 | solaris*) |
| 15901 | version_type=linux |
| 15902 | need_lib_prefix=no |
| 15903 | need_version=no |
| 15904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15906 | shlibpath_var=LD_LIBRARY_PATH |
| 15907 | shlibpath_overrides_runpath=yes |
| 15908 | hardcode_into_libs=yes |
| 15909 | # ldd complains unless libraries are executable |
| 15910 | postinstall_cmds='chmod +x $lib' |
| 15911 | ;; |
| 15912 | |
| 15913 | sunos4*) |
| 15914 | version_type=sunos |
| 15915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15916 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15917 | shlibpath_var=LD_LIBRARY_PATH |
| 15918 | shlibpath_overrides_runpath=yes |
| 15919 | if test "$with_gnu_ld" = yes; then |
| 15920 | need_lib_prefix=no |
| 15921 | fi |
| 15922 | need_version=yes |
| 15923 | ;; |
| 15924 | |
| 15925 | sysv4 | sysv4.3*) |
| 15926 | version_type=linux |
| 15927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15929 | shlibpath_var=LD_LIBRARY_PATH |
| 15930 | case $host_vendor in |
| 15931 | sni) |
| 15932 | shlibpath_overrides_runpath=no |
| 15933 | need_lib_prefix=no |
| 15934 | runpath_var=LD_RUN_PATH |
| 15935 | ;; |
| 15936 | siemens) |
| 15937 | need_lib_prefix=no |
| 15938 | ;; |
| 15939 | motorola) |
| 15940 | need_lib_prefix=no |
| 15941 | need_version=no |
| 15942 | shlibpath_overrides_runpath=no |
| 15943 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15944 | ;; |
| 15945 | esac |
| 15946 | ;; |
| 15947 | |
| 15948 | sysv4*MP*) |
| 15949 | if test -d /usr/nec ;then |
| 15950 | version_type=linux |
| 15951 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15952 | soname_spec='$libname${shared_ext}.$major' |
| 15953 | shlibpath_var=LD_LIBRARY_PATH |
| 15954 | fi |
| 15955 | ;; |
| 15956 | |
| 15957 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15958 | version_type=freebsd-elf |
| 15959 | need_lib_prefix=no |
| 15960 | need_version=no |
| 15961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15963 | shlibpath_var=LD_LIBRARY_PATH |
| 15964 | shlibpath_overrides_runpath=yes |
| 15965 | hardcode_into_libs=yes |
| 15966 | if test "$with_gnu_ld" = yes; then |
| 15967 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15968 | else |
| 15969 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15970 | case $host_os in |
| 15971 | sco3.2v5*) |
| 15972 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15973 | ;; |
| 15974 | esac |
| 15975 | fi |
| 15976 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15977 | ;; |
| 15978 | |
| 15979 | tpf*) |
| 15980 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15981 | version_type=linux |
| 15982 | need_lib_prefix=no |
| 15983 | need_version=no |
| 15984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15985 | shlibpath_var=LD_LIBRARY_PATH |
| 15986 | shlibpath_overrides_runpath=no |
| 15987 | hardcode_into_libs=yes |
| 15988 | ;; |
| 15989 | |
| 15990 | uts4*) |
| 15991 | version_type=linux |
| 15992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15994 | shlibpath_var=LD_LIBRARY_PATH |
| 15995 | ;; |
| 15996 | |
| 15997 | *) |
| 15998 | dynamic_linker=no |
| 15999 | ;; |
| 16000 | esac |
| 16001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 16002 | $as_echo "$dynamic_linker" >&6; } |
| 16003 | test "$dynamic_linker" = no && can_build_shared=no |
| 16004 | |
| 16005 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16006 | if test "$GCC" = yes; then |
| 16007 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16008 | fi |
| 16009 | |
| 16010 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 16011 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 16012 | fi |
| 16013 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 16014 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 16015 | fi |
| 16016 | |
| 16017 | |
| 16018 | |
| 16019 | |
| 16020 | |
| 16021 | |
| 16022 | |
| 16023 | |
| 16024 | |
| 16025 | |
| 16026 | |
| 16027 | |
| 16028 | |
| 16029 | |
| 16030 | |
| 16031 | |
| 16032 | |
| 16033 | |
| 16034 | |
| 16035 | |
| 16036 | |
| 16037 | |
| 16038 | |
| 16039 | |
| 16040 | |
| 16041 | |
| 16042 | |
| 16043 | |
| 16044 | |
| 16045 | |
| 16046 | |
| 16047 | |
| 16048 | |
| 16049 | |
| 16050 | |
| 16051 | |
| 16052 | |
| 16053 | |
| 16054 | |
| 16055 | |
| 16056 | |
| 16057 | |
| 16058 | |
| 16059 | |
| 16060 | |
| 16061 | |
| 16062 | |
| 16063 | |
| 16064 | |
| 16065 | |
| 16066 | |
| 16067 | |
| 16068 | |
| 16069 | |
| 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 | |
| 16102 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16103 | |
| 16104 | |
| 16105 | |
| 16106 | |
| 16107 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 16109 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 16110 | hardcode_action= |
| 16111 | if test -n "$hardcode_libdir_flag_spec" || |
| 16112 | test -n "$runpath_var" || |
| 16113 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16114 | |
| 16115 | # We can hardcode non-existent directories. |
| 16116 | if test "$hardcode_direct" != no && |
| 16117 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16118 | # have to relink, otherwise we might link with an installed library |
| 16119 | # when we should be linking with a yet-to-be-installed one |
| 16120 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16121 | test "$hardcode_minus_L" != no; then |
| 16122 | # Linking always hardcodes the temporary library directory. |
| 16123 | hardcode_action=relink |
| 16124 | else |
| 16125 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16126 | hardcode_action=immediate |
| 16127 | fi |
| 16128 | else |
| 16129 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16130 | # directories. |
| 16131 | hardcode_action=unsupported |
| 16132 | fi |
| 16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 16134 | $as_echo "$hardcode_action" >&6; } |
| 16135 | |
| 16136 | if test "$hardcode_action" = relink || |
| 16137 | test "$inherit_rpath" = yes; then |
| 16138 | # Fast installation is not supported |
| 16139 | enable_fast_install=no |
| 16140 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16141 | test "$enable_shared" = no; then |
| 16142 | # Fast installation is not necessary |
| 16143 | enable_fast_install=needless |
| 16144 | fi |
| 16145 | |
| 16146 | |
| 16147 | |
| 16148 | |
| 16149 | |
| 16150 | |
| 16151 | if test "x$enable_dlopen" != xyes; then |
| 16152 | enable_dlopen=unknown |
| 16153 | enable_dlopen_self=unknown |
| 16154 | enable_dlopen_self_static=unknown |
| 16155 | else |
| 16156 | lt_cv_dlopen=no |
| 16157 | lt_cv_dlopen_libs= |
| 16158 | |
| 16159 | case $host_os in |
| 16160 | beos*) |
| 16161 | lt_cv_dlopen="load_add_on" |
| 16162 | lt_cv_dlopen_libs= |
| 16163 | lt_cv_dlopen_self=yes |
| 16164 | ;; |
| 16165 | |
| 16166 | mingw* | pw32* | cegcc*) |
| 16167 | lt_cv_dlopen="LoadLibrary" |
| 16168 | lt_cv_dlopen_libs= |
| 16169 | ;; |
| 16170 | |
| 16171 | cygwin*) |
| 16172 | lt_cv_dlopen="dlopen" |
| 16173 | lt_cv_dlopen_libs= |
| 16174 | ;; |
| 16175 | |
| 16176 | darwin*) |
| 16177 | # if libdl is installed we need to link against it |
| 16178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 16179 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16180 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16181 | $as_echo_n "(cached) " >&6 |
| 16182 | else |
| 16183 | ac_check_lib_save_LIBS=$LIBS |
| 16184 | LIBS="-ldl $LIBS" |
| 16185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16186 | /* end confdefs.h. */ |
| 16187 | |
| 16188 | /* Override any GCC internal prototype to avoid an error. |
| 16189 | Use char because int might match the return type of a GCC |
| 16190 | builtin and then its argument prototype would still apply. */ |
| 16191 | #ifdef __cplusplus |
| 16192 | extern "C" |
| 16193 | #endif |
| 16194 | char dlopen (); |
| 16195 | int |
| 16196 | main () |
| 16197 | { |
| 16198 | return dlopen (); |
| 16199 | ; |
| 16200 | return 0; |
| 16201 | } |
| 16202 | _ACEOF |
| 16203 | if ac_fn_c_try_link "$LINENO"; then : |
| 16204 | ac_cv_lib_dl_dlopen=yes |
| 16205 | else |
| 16206 | ac_cv_lib_dl_dlopen=no |
| 16207 | fi |
| 16208 | rm -f core conftest.err conftest.$ac_objext \ |
| 16209 | conftest$ac_exeext conftest.$ac_ext |
| 16210 | LIBS=$ac_check_lib_save_LIBS |
| 16211 | fi |
| 16212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16213 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16214 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16215 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16216 | else |
| 16217 | |
| 16218 | lt_cv_dlopen="dyld" |
| 16219 | lt_cv_dlopen_libs= |
| 16220 | lt_cv_dlopen_self=yes |
| 16221 | |
| 16222 | fi |
| 16223 | |
| 16224 | ;; |
| 16225 | |
| 16226 | *) |
| 16227 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16228 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16229 | lt_cv_dlopen="shl_load" |
| 16230 | else |
| 16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 16232 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16233 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16234 | $as_echo_n "(cached) " >&6 |
| 16235 | else |
| 16236 | ac_check_lib_save_LIBS=$LIBS |
| 16237 | LIBS="-ldld $LIBS" |
| 16238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16239 | /* end confdefs.h. */ |
| 16240 | |
| 16241 | /* Override any GCC internal prototype to avoid an error. |
| 16242 | Use char because int might match the return type of a GCC |
| 16243 | builtin and then its argument prototype would still apply. */ |
| 16244 | #ifdef __cplusplus |
| 16245 | extern "C" |
| 16246 | #endif |
| 16247 | char shl_load (); |
| 16248 | int |
| 16249 | main () |
| 16250 | { |
| 16251 | return shl_load (); |
| 16252 | ; |
| 16253 | return 0; |
| 16254 | } |
| 16255 | _ACEOF |
| 16256 | if ac_fn_c_try_link "$LINENO"; then : |
| 16257 | ac_cv_lib_dld_shl_load=yes |
| 16258 | else |
| 16259 | ac_cv_lib_dld_shl_load=no |
| 16260 | fi |
| 16261 | rm -f core conftest.err conftest.$ac_objext \ |
| 16262 | conftest$ac_exeext conftest.$ac_ext |
| 16263 | LIBS=$ac_check_lib_save_LIBS |
| 16264 | fi |
| 16265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16266 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16267 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16268 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 16269 | else |
| 16270 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16271 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16272 | lt_cv_dlopen="dlopen" |
| 16273 | else |
| 16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 16275 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16276 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16277 | $as_echo_n "(cached) " >&6 |
| 16278 | else |
| 16279 | ac_check_lib_save_LIBS=$LIBS |
| 16280 | LIBS="-ldl $LIBS" |
| 16281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16282 | /* end confdefs.h. */ |
| 16283 | |
| 16284 | /* Override any GCC internal prototype to avoid an error. |
| 16285 | Use char because int might match the return type of a GCC |
| 16286 | builtin and then its argument prototype would still apply. */ |
| 16287 | #ifdef __cplusplus |
| 16288 | extern "C" |
| 16289 | #endif |
| 16290 | char dlopen (); |
| 16291 | int |
| 16292 | main () |
| 16293 | { |
| 16294 | return dlopen (); |
| 16295 | ; |
| 16296 | return 0; |
| 16297 | } |
| 16298 | _ACEOF |
| 16299 | if ac_fn_c_try_link "$LINENO"; then : |
| 16300 | ac_cv_lib_dl_dlopen=yes |
| 16301 | else |
| 16302 | ac_cv_lib_dl_dlopen=no |
| 16303 | fi |
| 16304 | rm -f core conftest.err conftest.$ac_objext \ |
| 16305 | conftest$ac_exeext conftest.$ac_ext |
| 16306 | LIBS=$ac_check_lib_save_LIBS |
| 16307 | fi |
| 16308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16309 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16310 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16311 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16312 | else |
| 16313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 16314 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16315 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16316 | $as_echo_n "(cached) " >&6 |
| 16317 | else |
| 16318 | ac_check_lib_save_LIBS=$LIBS |
| 16319 | LIBS="-lsvld $LIBS" |
| 16320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16321 | /* end confdefs.h. */ |
| 16322 | |
| 16323 | /* Override any GCC internal prototype to avoid an error. |
| 16324 | Use char because int might match the return type of a GCC |
| 16325 | builtin and then its argument prototype would still apply. */ |
| 16326 | #ifdef __cplusplus |
| 16327 | extern "C" |
| 16328 | #endif |
| 16329 | char dlopen (); |
| 16330 | int |
| 16331 | main () |
| 16332 | { |
| 16333 | return dlopen (); |
| 16334 | ; |
| 16335 | return 0; |
| 16336 | } |
| 16337 | _ACEOF |
| 16338 | if ac_fn_c_try_link "$LINENO"; then : |
| 16339 | ac_cv_lib_svld_dlopen=yes |
| 16340 | else |
| 16341 | ac_cv_lib_svld_dlopen=no |
| 16342 | fi |
| 16343 | rm -f core conftest.err conftest.$ac_objext \ |
| 16344 | conftest$ac_exeext conftest.$ac_ext |
| 16345 | LIBS=$ac_check_lib_save_LIBS |
| 16346 | fi |
| 16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16348 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16349 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16350 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16351 | else |
| 16352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 16353 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16354 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16355 | $as_echo_n "(cached) " >&6 |
| 16356 | else |
| 16357 | ac_check_lib_save_LIBS=$LIBS |
| 16358 | LIBS="-ldld $LIBS" |
| 16359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16360 | /* end confdefs.h. */ |
| 16361 | |
| 16362 | /* Override any GCC internal prototype to avoid an error. |
| 16363 | Use char because int might match the return type of a GCC |
| 16364 | builtin and then its argument prototype would still apply. */ |
| 16365 | #ifdef __cplusplus |
| 16366 | extern "C" |
| 16367 | #endif |
| 16368 | char dld_link (); |
| 16369 | int |
| 16370 | main () |
| 16371 | { |
| 16372 | return dld_link (); |
| 16373 | ; |
| 16374 | return 0; |
| 16375 | } |
| 16376 | _ACEOF |
| 16377 | if ac_fn_c_try_link "$LINENO"; then : |
| 16378 | ac_cv_lib_dld_dld_link=yes |
| 16379 | else |
| 16380 | ac_cv_lib_dld_dld_link=no |
| 16381 | fi |
| 16382 | rm -f core conftest.err conftest.$ac_objext \ |
| 16383 | conftest$ac_exeext conftest.$ac_ext |
| 16384 | LIBS=$ac_check_lib_save_LIBS |
| 16385 | fi |
| 16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16387 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16388 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16389 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 16390 | fi |
| 16391 | |
| 16392 | |
| 16393 | fi |
| 16394 | |
| 16395 | |
| 16396 | fi |
| 16397 | |
| 16398 | |
| 16399 | fi |
| 16400 | |
| 16401 | |
| 16402 | fi |
| 16403 | |
| 16404 | |
| 16405 | fi |
| 16406 | |
| 16407 | ;; |
| 16408 | esac |
| 16409 | |
| 16410 | if test "x$lt_cv_dlopen" != xno; then |
| 16411 | enable_dlopen=yes |
| 16412 | else |
| 16413 | enable_dlopen=no |
| 16414 | fi |
| 16415 | |
| 16416 | case $lt_cv_dlopen in |
| 16417 | dlopen) |
| 16418 | save_CPPFLAGS="$CPPFLAGS" |
| 16419 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 16420 | |
| 16421 | save_LDFLAGS="$LDFLAGS" |
| 16422 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 16423 | |
| 16424 | save_LIBS="$LIBS" |
| 16425 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16426 | |
| 16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 16428 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16429 | if ${lt_cv_dlopen_self+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16430 | $as_echo_n "(cached) " >&6 |
| 16431 | else |
| 16432 | if test "$cross_compiling" = yes; then : |
| 16433 | lt_cv_dlopen_self=cross |
| 16434 | else |
| 16435 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16436 | lt_status=$lt_dlunknown |
| 16437 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16438 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16439 | #include "confdefs.h" |
| 16440 | |
| 16441 | #if HAVE_DLFCN_H |
| 16442 | #include <dlfcn.h> |
| 16443 | #endif |
| 16444 | |
| 16445 | #include <stdio.h> |
| 16446 | |
| 16447 | #ifdef RTLD_GLOBAL |
| 16448 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16449 | #else |
| 16450 | # ifdef DL_GLOBAL |
| 16451 | # define LT_DLGLOBAL DL_GLOBAL |
| 16452 | # else |
| 16453 | # define LT_DLGLOBAL 0 |
| 16454 | # endif |
| 16455 | #endif |
| 16456 | |
| 16457 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16458 | find out it does not work in some platform. */ |
| 16459 | #ifndef LT_DLLAZY_OR_NOW |
| 16460 | # ifdef RTLD_LAZY |
| 16461 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16462 | # else |
| 16463 | # ifdef DL_LAZY |
| 16464 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16465 | # else |
| 16466 | # ifdef RTLD_NOW |
| 16467 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16468 | # else |
| 16469 | # ifdef DL_NOW |
| 16470 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16471 | # else |
| 16472 | # define LT_DLLAZY_OR_NOW 0 |
| 16473 | # endif |
| 16474 | # endif |
| 16475 | # endif |
| 16476 | # endif |
| 16477 | #endif |
| 16478 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16479 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 16480 | correspondingly for the symbols needed. */ |
| 16481 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16482 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16483 | #endif |
| 16484 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16485 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16486 | int main () |
| 16487 | { |
| 16488 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16489 | int status = $lt_dlunknown; |
| 16490 | |
| 16491 | if (self) |
| 16492 | { |
| 16493 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16494 | else |
| 16495 | { |
| 16496 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16497 | else puts (dlerror ()); |
| 16498 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16499 | /* dlclose (self); */ |
| 16500 | } |
| 16501 | else |
| 16502 | puts (dlerror ()); |
| 16503 | |
| 16504 | return status; |
| 16505 | } |
| 16506 | _LT_EOF |
| 16507 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16508 | (eval $ac_link) 2>&5 |
| 16509 | ac_status=$? |
| 16510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16511 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16512 | (./conftest; exit; ) >&5 2>/dev/null |
| 16513 | lt_status=$? |
| 16514 | case x$lt_status in |
| 16515 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 16516 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 16517 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 16518 | esac |
| 16519 | else : |
| 16520 | # compilation failed |
| 16521 | lt_cv_dlopen_self=no |
| 16522 | fi |
| 16523 | fi |
| 16524 | rm -fr conftest* |
| 16525 | |
| 16526 | |
| 16527 | fi |
| 16528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 16529 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 16530 | |
| 16531 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 16532 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 16533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 16534 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16535 | if ${lt_cv_dlopen_self_static+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16536 | $as_echo_n "(cached) " >&6 |
| 16537 | else |
| 16538 | if test "$cross_compiling" = yes; then : |
| 16539 | lt_cv_dlopen_self_static=cross |
| 16540 | else |
| 16541 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16542 | lt_status=$lt_dlunknown |
| 16543 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16544 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16545 | #include "confdefs.h" |
| 16546 | |
| 16547 | #if HAVE_DLFCN_H |
| 16548 | #include <dlfcn.h> |
| 16549 | #endif |
| 16550 | |
| 16551 | #include <stdio.h> |
| 16552 | |
| 16553 | #ifdef RTLD_GLOBAL |
| 16554 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16555 | #else |
| 16556 | # ifdef DL_GLOBAL |
| 16557 | # define LT_DLGLOBAL DL_GLOBAL |
| 16558 | # else |
| 16559 | # define LT_DLGLOBAL 0 |
| 16560 | # endif |
| 16561 | #endif |
| 16562 | |
| 16563 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16564 | find out it does not work in some platform. */ |
| 16565 | #ifndef LT_DLLAZY_OR_NOW |
| 16566 | # ifdef RTLD_LAZY |
| 16567 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16568 | # else |
| 16569 | # ifdef DL_LAZY |
| 16570 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16571 | # else |
| 16572 | # ifdef RTLD_NOW |
| 16573 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16574 | # else |
| 16575 | # ifdef DL_NOW |
| 16576 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16577 | # else |
| 16578 | # define LT_DLLAZY_OR_NOW 0 |
| 16579 | # endif |
| 16580 | # endif |
| 16581 | # endif |
| 16582 | # endif |
| 16583 | #endif |
| 16584 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16585 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 16586 | correspondingly for the symbols needed. */ |
| 16587 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16588 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16589 | #endif |
| 16590 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16591 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16592 | int main () |
| 16593 | { |
| 16594 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16595 | int status = $lt_dlunknown; |
| 16596 | |
| 16597 | if (self) |
| 16598 | { |
| 16599 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16600 | else |
| 16601 | { |
| 16602 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16603 | else puts (dlerror ()); |
| 16604 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16605 | /* dlclose (self); */ |
| 16606 | } |
| 16607 | else |
| 16608 | puts (dlerror ()); |
| 16609 | |
| 16610 | return status; |
| 16611 | } |
| 16612 | _LT_EOF |
| 16613 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16614 | (eval $ac_link) 2>&5 |
| 16615 | ac_status=$? |
| 16616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16617 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16618 | (./conftest; exit; ) >&5 2>/dev/null |
| 16619 | lt_status=$? |
| 16620 | case x$lt_status in |
| 16621 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16622 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16623 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 16624 | esac |
| 16625 | else : |
| 16626 | # compilation failed |
| 16627 | lt_cv_dlopen_self_static=no |
| 16628 | fi |
| 16629 | fi |
| 16630 | rm -fr conftest* |
| 16631 | |
| 16632 | |
| 16633 | fi |
| 16634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 16635 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 16636 | fi |
| 16637 | |
| 16638 | CPPFLAGS="$save_CPPFLAGS" |
| 16639 | LDFLAGS="$save_LDFLAGS" |
| 16640 | LIBS="$save_LIBS" |
| 16641 | ;; |
| 16642 | esac |
| 16643 | |
| 16644 | case $lt_cv_dlopen_self in |
| 16645 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16646 | *) enable_dlopen_self=unknown ;; |
| 16647 | esac |
| 16648 | |
| 16649 | case $lt_cv_dlopen_self_static in |
| 16650 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16651 | *) enable_dlopen_self_static=unknown ;; |
| 16652 | esac |
| 16653 | fi |
| 16654 | |
| 16655 | |
| 16656 | |
| 16657 | |
| 16658 | |
| 16659 | |
| 16660 | |
| 16661 | |
| 16662 | |
| 16663 | |
| 16664 | |
| 16665 | |
| 16666 | |
| 16667 | |
| 16668 | |
| 16669 | |
| 16670 | |
| 16671 | striplib= |
| 16672 | old_striplib= |
| 16673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 16674 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 16675 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 16676 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16677 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16679 | $as_echo "yes" >&6; } |
| 16680 | else |
| 16681 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16682 | case $host_os in |
| 16683 | darwin*) |
| 16684 | if test -n "$STRIP" ; then |
| 16685 | striplib="$STRIP -x" |
| 16686 | old_striplib="$STRIP -S" |
| 16687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16688 | $as_echo "yes" >&6; } |
| 16689 | else |
| 16690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16691 | $as_echo "no" >&6; } |
| 16692 | fi |
| 16693 | ;; |
| 16694 | *) |
| 16695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16696 | $as_echo "no" >&6; } |
| 16697 | ;; |
| 16698 | esac |
| 16699 | fi |
| 16700 | |
| 16701 | |
| 16702 | |
| 16703 | |
| 16704 | |
| 16705 | |
| 16706 | |
| 16707 | |
| 16708 | |
| 16709 | |
| 16710 | |
| 16711 | |
| 16712 | # Report which library types will actually be built |
| 16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 16714 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 16715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 16716 | $as_echo "$can_build_shared" >&6; } |
| 16717 | |
| 16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 16719 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 16720 | test "$can_build_shared" = "no" && enable_shared=no |
| 16721 | |
| 16722 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 16723 | # are all built from PIC. |
| 16724 | case $host_os in |
| 16725 | aix3*) |
| 16726 | test "$enable_shared" = yes && enable_static=no |
| 16727 | if test -n "$RANLIB"; then |
| 16728 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 16729 | postinstall_cmds='$RANLIB $lib' |
| 16730 | fi |
| 16731 | ;; |
| 16732 | |
| 16733 | aix[4-9]*) |
| 16734 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 16735 | test "$enable_shared" = yes && enable_static=no |
| 16736 | fi |
| 16737 | ;; |
| 16738 | esac |
| 16739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 16740 | $as_echo "$enable_shared" >&6; } |
| 16741 | |
| 16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 16743 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 16744 | # Make sure either enable_shared or enable_static is yes. |
| 16745 | test "$enable_shared" = yes || enable_static=yes |
| 16746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 16747 | $as_echo "$enable_static" >&6; } |
| 16748 | |
| 16749 | |
| 16750 | |
| 16751 | |
| 16752 | fi |
| 16753 | ac_ext=c |
| 16754 | ac_cpp='$CPP $CPPFLAGS' |
| 16755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16758 | |
| 16759 | CC="$lt_save_CC" |
| 16760 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16761 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 16762 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 16763 | (test "X$CXX" != "Xg++"))) ; then |
| 16764 | ac_ext=cpp |
| 16765 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 16770 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 16771 | if test -z "$CXXCPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16772 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16773 | $as_echo_n "(cached) " >&6 |
| 16774 | else |
| 16775 | # Double quotes because CXXCPP needs to be expanded |
| 16776 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 16777 | do |
| 16778 | ac_preproc_ok=false |
| 16779 | for ac_cxx_preproc_warn_flag in '' yes |
| 16780 | do |
| 16781 | # Use a header file that comes with gcc, so configuring glibc |
| 16782 | # with a fresh cross-compiler works. |
| 16783 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16784 | # <limits.h> exists even on freestanding compilers. |
| 16785 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16786 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16788 | /* end confdefs.h. */ |
| 16789 | #ifdef __STDC__ |
| 16790 | # include <limits.h> |
| 16791 | #else |
| 16792 | # include <assert.h> |
| 16793 | #endif |
| 16794 | Syntax error |
| 16795 | _ACEOF |
| 16796 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16797 | |
| 16798 | else |
| 16799 | # Broken: fails on valid input. |
| 16800 | continue |
| 16801 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16802 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16803 | |
| 16804 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16805 | # can be detected and how. |
| 16806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16807 | /* end confdefs.h. */ |
| 16808 | #include <ac_nonexistent.h> |
| 16809 | _ACEOF |
| 16810 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16811 | # Broken: success on invalid input. |
| 16812 | continue |
| 16813 | else |
| 16814 | # Passes both tests. |
| 16815 | ac_preproc_ok=: |
| 16816 | break |
| 16817 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16818 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16819 | |
| 16820 | done |
| 16821 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16822 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16823 | if $ac_preproc_ok; then : |
| 16824 | break |
| 16825 | fi |
| 16826 | |
| 16827 | done |
| 16828 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16829 | |
| 16830 | fi |
| 16831 | CXXCPP=$ac_cv_prog_CXXCPP |
| 16832 | else |
| 16833 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16834 | fi |
| 16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 16836 | $as_echo "$CXXCPP" >&6; } |
| 16837 | ac_preproc_ok=false |
| 16838 | for ac_cxx_preproc_warn_flag in '' yes |
| 16839 | do |
| 16840 | # Use a header file that comes with gcc, so configuring glibc |
| 16841 | # with a fresh cross-compiler works. |
| 16842 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16843 | # <limits.h> exists even on freestanding compilers. |
| 16844 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16845 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16847 | /* end confdefs.h. */ |
| 16848 | #ifdef __STDC__ |
| 16849 | # include <limits.h> |
| 16850 | #else |
| 16851 | # include <assert.h> |
| 16852 | #endif |
| 16853 | Syntax error |
| 16854 | _ACEOF |
| 16855 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16856 | |
| 16857 | else |
| 16858 | # Broken: fails on valid input. |
| 16859 | continue |
| 16860 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16861 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16862 | |
| 16863 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16864 | # can be detected and how. |
| 16865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16866 | /* end confdefs.h. */ |
| 16867 | #include <ac_nonexistent.h> |
| 16868 | _ACEOF |
| 16869 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16870 | # Broken: success on invalid input. |
| 16871 | continue |
| 16872 | else |
| 16873 | # Passes both tests. |
| 16874 | ac_preproc_ok=: |
| 16875 | break |
| 16876 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16877 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16878 | |
| 16879 | done |
| 16880 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16881 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16882 | if $ac_preproc_ok; then : |
| 16883 | |
| 16884 | else |
| 16885 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16886 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16887 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 16888 | See \`config.log' for more details" "$LINENO" 5; } |
| 16889 | fi |
| 16890 | |
| 16891 | ac_ext=c |
| 16892 | ac_cpp='$CPP $CPPFLAGS' |
| 16893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16896 | |
| 16897 | else |
| 16898 | _lt_caught_CXX_error=yes |
| 16899 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16900 | |
| 16901 | ac_ext=cpp |
| 16902 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16906 | |
| 16907 | archive_cmds_need_lc_CXX=no |
| 16908 | allow_undefined_flag_CXX= |
| 16909 | always_export_symbols_CXX=no |
| 16910 | archive_expsym_cmds_CXX= |
| 16911 | compiler_needs_object_CXX=no |
| 16912 | export_dynamic_flag_spec_CXX= |
| 16913 | hardcode_direct_CXX=no |
| 16914 | hardcode_direct_absolute_CXX=no |
| 16915 | hardcode_libdir_flag_spec_CXX= |
| 16916 | hardcode_libdir_flag_spec_ld_CXX= |
| 16917 | hardcode_libdir_separator_CXX= |
| 16918 | hardcode_minus_L_CXX=no |
| 16919 | hardcode_shlibpath_var_CXX=unsupported |
| 16920 | hardcode_automatic_CXX=no |
| 16921 | inherit_rpath_CXX=no |
| 16922 | module_cmds_CXX= |
| 16923 | module_expsym_cmds_CXX= |
| 16924 | link_all_deplibs_CXX=unknown |
| 16925 | old_archive_cmds_CXX=$old_archive_cmds |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16926 | reload_flag_CXX=$reload_flag |
| 16927 | reload_cmds_CXX=$reload_cmds |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16928 | no_undefined_flag_CXX= |
| 16929 | whole_archive_flag_spec_CXX= |
| 16930 | enable_shared_with_static_runtimes_CXX=no |
| 16931 | |
| 16932 | # Source file extension for C++ test sources. |
| 16933 | ac_ext=cpp |
| 16934 | |
| 16935 | # Object file extension for compiled C++ test sources. |
| 16936 | objext=o |
| 16937 | objext_CXX=$objext |
| 16938 | |
| 16939 | # No sense in running all these tests if we already determined that |
| 16940 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 16941 | # are currently assumed to apply to all compilers on this platform, |
| 16942 | # and will be corrupted by setting them based on a non-working compiler. |
| 16943 | if test "$_lt_caught_CXX_error" != yes; then |
| 16944 | # Code to be used in simple compile tests |
| 16945 | lt_simple_compile_test_code="int some_variable = 0;" |
| 16946 | |
| 16947 | # Code to be used in simple link tests |
| 16948 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 16949 | |
| 16950 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16951 | |
| 16952 | |
| 16953 | |
| 16954 | |
| 16955 | |
| 16956 | |
| 16957 | # If no C compiler was specified, use CC. |
| 16958 | LTCC=${LTCC-"$CC"} |
| 16959 | |
| 16960 | # If no C compiler flags were specified, use CFLAGS. |
| 16961 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16962 | |
| 16963 | # Allow CC to be a program name with arguments. |
| 16964 | compiler=$CC |
| 16965 | |
| 16966 | |
| 16967 | # save warnings/boilerplate of simple test code |
| 16968 | ac_outfile=conftest.$ac_objext |
| 16969 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16970 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16971 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16972 | $RM conftest* |
| 16973 | |
| 16974 | ac_outfile=conftest.$ac_objext |
| 16975 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16976 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16977 | _lt_linker_boilerplate=`cat conftest.err` |
| 16978 | $RM -r conftest* |
| 16979 | |
| 16980 | |
| 16981 | # Allow CC to be a program name with arguments. |
| 16982 | lt_save_CC=$CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16983 | lt_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16984 | lt_save_LD=$LD |
| 16985 | lt_save_GCC=$GCC |
| 16986 | GCC=$GXX |
| 16987 | lt_save_with_gnu_ld=$with_gnu_ld |
| 16988 | lt_save_path_LD=$lt_cv_path_LD |
| 16989 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 16990 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 16991 | else |
| 16992 | $as_unset lt_cv_prog_gnu_ld |
| 16993 | fi |
| 16994 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 16995 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 16996 | else |
| 16997 | $as_unset lt_cv_path_LD |
| 16998 | fi |
| 16999 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17000 | CC=${CXX-"c++"} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17001 | CFLAGS=$CXXFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17002 | compiler=$CC |
| 17003 | compiler_CXX=$CC |
| 17004 | for cc_temp in $compiler""; do |
| 17005 | case $cc_temp in |
| 17006 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17007 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17008 | \-*) ;; |
| 17009 | *) break;; |
| 17010 | esac |
| 17011 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17012 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17013 | |
| 17014 | |
| 17015 | if test -n "$compiler"; then |
| 17016 | # We don't want -fno-exception when compiling C++ code, so set the |
| 17017 | # no_builtin_flag separately |
| 17018 | if test "$GXX" = yes; then |
| 17019 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17020 | else |
| 17021 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17022 | fi |
| 17023 | |
| 17024 | if test "$GXX" = yes; then |
| 17025 | # Set up default GNU C++ configuration |
| 17026 | |
| 17027 | |
| 17028 | |
| 17029 | # Check whether --with-gnu-ld was given. |
| 17030 | if test "${with_gnu_ld+set}" = set; then : |
| 17031 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 17032 | else |
| 17033 | with_gnu_ld=no |
| 17034 | fi |
| 17035 | |
| 17036 | ac_prog=ld |
| 17037 | if test "$GCC" = yes; then |
| 17038 | # Check if gcc -print-prog-name=ld gives a path. |
| 17039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 17040 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 17041 | case $host in |
| 17042 | *-*-mingw*) |
| 17043 | # gcc leaves a trailing carriage return which upsets mingw |
| 17044 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17045 | *) |
| 17046 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17047 | esac |
| 17048 | case $ac_prog in |
| 17049 | # Accept absolute paths. |
| 17050 | [\\/]* | ?:[\\/]*) |
| 17051 | re_direlt='/[^/][^/]*/\.\./' |
| 17052 | # Canonicalize the pathname of ld |
| 17053 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 17054 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 17055 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 17056 | done |
| 17057 | test -z "$LD" && LD="$ac_prog" |
| 17058 | ;; |
| 17059 | "") |
| 17060 | # If it fails, then pretend we aren't using GCC. |
| 17061 | ac_prog=ld |
| 17062 | ;; |
| 17063 | *) |
| 17064 | # If it is relative, then search for the first ld in PATH. |
| 17065 | with_gnu_ld=unknown |
| 17066 | ;; |
| 17067 | esac |
| 17068 | elif test "$with_gnu_ld" = yes; then |
| 17069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 17070 | $as_echo_n "checking for GNU ld... " >&6; } |
| 17071 | else |
| 17072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 17073 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 17074 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17075 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17076 | $as_echo_n "(cached) " >&6 |
| 17077 | else |
| 17078 | if test -z "$LD"; then |
| 17079 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17080 | for ac_dir in $PATH; do |
| 17081 | IFS="$lt_save_ifs" |
| 17082 | test -z "$ac_dir" && ac_dir=. |
| 17083 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17084 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17085 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 17086 | # but apparently some variants of GNU ld only accept -v. |
| 17087 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17088 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17089 | *GNU* | *'with BFD'*) |
| 17090 | test "$with_gnu_ld" != no && break |
| 17091 | ;; |
| 17092 | *) |
| 17093 | test "$with_gnu_ld" != yes && break |
| 17094 | ;; |
| 17095 | esac |
| 17096 | fi |
| 17097 | done |
| 17098 | IFS="$lt_save_ifs" |
| 17099 | else |
| 17100 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17101 | fi |
| 17102 | fi |
| 17103 | |
| 17104 | LD="$lt_cv_path_LD" |
| 17105 | if test -n "$LD"; then |
| 17106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 17107 | $as_echo "$LD" >&6; } |
| 17108 | else |
| 17109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17110 | $as_echo "no" >&6; } |
| 17111 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 17112 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 17114 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17115 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17116 | $as_echo_n "(cached) " >&6 |
| 17117 | else |
| 17118 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 17119 | case `$LD -v 2>&1 </dev/null` in |
| 17120 | *GNU* | *'with BFD'*) |
| 17121 | lt_cv_prog_gnu_ld=yes |
| 17122 | ;; |
| 17123 | *) |
| 17124 | lt_cv_prog_gnu_ld=no |
| 17125 | ;; |
| 17126 | esac |
| 17127 | fi |
| 17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 17129 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 17130 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17131 | |
| 17132 | |
| 17133 | |
| 17134 | |
| 17135 | |
| 17136 | |
| 17137 | |
| 17138 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17139 | # archiving commands below assume that GNU ld is being used. |
| 17140 | if test "$with_gnu_ld" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17141 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17142 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17143 | |
| 17144 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17145 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17146 | |
| 17147 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17148 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17149 | # investigate it a little bit more. (MM) |
| 17150 | wlarc='${wl}' |
| 17151 | |
| 17152 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17153 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 17154 | $GREP 'no-whole-archive' > /dev/null; then |
| 17155 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17156 | else |
| 17157 | whole_archive_flag_spec_CXX= |
| 17158 | fi |
| 17159 | else |
| 17160 | with_gnu_ld=no |
| 17161 | wlarc= |
| 17162 | |
| 17163 | # A generic and very simple default shared library creation |
| 17164 | # command for GNU C++ for the case where it uses the native |
| 17165 | # linker, instead of GNU ld. If possible, this setting should |
| 17166 | # overridden to take advantage of the native linker features on |
| 17167 | # the platform it is being used on. |
| 17168 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17169 | fi |
| 17170 | |
| 17171 | # Commands to make compiler produce verbose output that lists |
| 17172 | # what "hidden" libraries, object files and flags are used when |
| 17173 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17174 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17175 | |
| 17176 | else |
| 17177 | GXX=no |
| 17178 | with_gnu_ld=no |
| 17179 | wlarc= |
| 17180 | fi |
| 17181 | |
| 17182 | # PORTME: fill in a description of your system's C++ link characteristics |
| 17183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17184 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 17185 | ld_shlibs_CXX=yes |
| 17186 | case $host_os in |
| 17187 | aix3*) |
| 17188 | # FIXME: insert proper C++ library support |
| 17189 | ld_shlibs_CXX=no |
| 17190 | ;; |
| 17191 | aix[4-9]*) |
| 17192 | if test "$host_cpu" = ia64; then |
| 17193 | # On IA64, the linker does run time linking by default, so we don't |
| 17194 | # have to do anything special. |
| 17195 | aix_use_runtimelinking=no |
| 17196 | exp_sym_flag='-Bexport' |
| 17197 | no_entry_flag="" |
| 17198 | else |
| 17199 | aix_use_runtimelinking=no |
| 17200 | |
| 17201 | # Test if we are trying to use run time linking or normal |
| 17202 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17203 | # need to do runtime linking. |
| 17204 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 17205 | for ld_flag in $LDFLAGS; do |
| 17206 | case $ld_flag in |
| 17207 | *-brtl*) |
| 17208 | aix_use_runtimelinking=yes |
| 17209 | break |
| 17210 | ;; |
| 17211 | esac |
| 17212 | done |
| 17213 | ;; |
| 17214 | esac |
| 17215 | |
| 17216 | exp_sym_flag='-bexport' |
| 17217 | no_entry_flag='-bnoentry' |
| 17218 | fi |
| 17219 | |
| 17220 | # When large executables or shared objects are built, AIX ld can |
| 17221 | # have problems creating the table of contents. If linking a library |
| 17222 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17223 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17224 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17225 | |
| 17226 | archive_cmds_CXX='' |
| 17227 | hardcode_direct_CXX=yes |
| 17228 | hardcode_direct_absolute_CXX=yes |
| 17229 | hardcode_libdir_separator_CXX=':' |
| 17230 | link_all_deplibs_CXX=yes |
| 17231 | file_list_spec_CXX='${wl}-f,' |
| 17232 | |
| 17233 | if test "$GXX" = yes; then |
| 17234 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17235 | # We only want to do this on AIX 4.2 and lower, the check |
| 17236 | # below for broken collect2 doesn't work under 4.3+ |
| 17237 | collect2name=`${CC} -print-prog-name=collect2` |
| 17238 | if test -f "$collect2name" && |
| 17239 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 17240 | then |
| 17241 | # We have reworked collect2 |
| 17242 | : |
| 17243 | else |
| 17244 | # We have old collect2 |
| 17245 | hardcode_direct_CXX=unsupported |
| 17246 | # It fails to find uninstalled libraries when the uninstalled |
| 17247 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17248 | # to unsupported forces relinking |
| 17249 | hardcode_minus_L_CXX=yes |
| 17250 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17251 | hardcode_libdir_separator_CXX= |
| 17252 | fi |
| 17253 | esac |
| 17254 | shared_flag='-shared' |
| 17255 | if test "$aix_use_runtimelinking" = yes; then |
| 17256 | shared_flag="$shared_flag "'${wl}-G' |
| 17257 | fi |
| 17258 | else |
| 17259 | # not using gcc |
| 17260 | if test "$host_cpu" = ia64; then |
| 17261 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17262 | # chokes on -Wl,-G. The following line is correct: |
| 17263 | shared_flag='-G' |
| 17264 | else |
| 17265 | if test "$aix_use_runtimelinking" = yes; then |
| 17266 | shared_flag='${wl}-G' |
| 17267 | else |
| 17268 | shared_flag='${wl}-bM:SRE' |
| 17269 | fi |
| 17270 | fi |
| 17271 | fi |
| 17272 | |
| 17273 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 17274 | # It seems that -bexpall does not export symbols beginning with |
| 17275 | # underscore (_), so it is better to generate a list of symbols to |
| 17276 | # export. |
| 17277 | always_export_symbols_CXX=yes |
| 17278 | if test "$aix_use_runtimelinking" = yes; then |
| 17279 | # Warning - without using the other runtime loading flags (-brtl), |
| 17280 | # -berok will link without error, but may produce a broken library. |
| 17281 | allow_undefined_flag_CXX='-berok' |
| 17282 | # Determine the default libpath from the value encoded in an empty |
| 17283 | # executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17284 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 17285 | aix_libpath=$lt_cv_aix_libpath |
| 17286 | else |
| 17287 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 17288 | $as_echo_n "(cached) " >&6 |
| 17289 | else |
| 17290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17291 | /* end confdefs.h. */ |
| 17292 | |
| 17293 | int |
| 17294 | main () |
| 17295 | { |
| 17296 | |
| 17297 | ; |
| 17298 | return 0; |
| 17299 | } |
| 17300 | _ACEOF |
| 17301 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17302 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17303 | lt_aix_libpath_sed=' |
| 17304 | /Import File Strings/,/^$/ { |
| 17305 | /^0/ { |
| 17306 | s/^0 *\([^ ]*\) *$/\1/ |
| 17307 | p |
| 17308 | } |
| 17309 | }' |
| 17310 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17311 | # Check for a 64-bit object if we didn't find anything. |
| 17312 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17313 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17314 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17315 | fi |
| 17316 | rm -f core conftest.err conftest.$ac_objext \ |
| 17317 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17318 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17319 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 17320 | fi |
| 17321 | |
| 17322 | fi |
| 17323 | |
| 17324 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17325 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17326 | |
| 17327 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17328 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17329 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17330 | else |
| 17331 | if test "$host_cpu" = ia64; then |
| 17332 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 17333 | allow_undefined_flag_CXX="-z nodefs" |
| 17334 | 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" |
| 17335 | else |
| 17336 | # Determine the default libpath from the value encoded in an |
| 17337 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17338 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 17339 | aix_libpath=$lt_cv_aix_libpath |
| 17340 | else |
| 17341 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 17342 | $as_echo_n "(cached) " >&6 |
| 17343 | else |
| 17344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17345 | /* end confdefs.h. */ |
| 17346 | |
| 17347 | int |
| 17348 | main () |
| 17349 | { |
| 17350 | |
| 17351 | ; |
| 17352 | return 0; |
| 17353 | } |
| 17354 | _ACEOF |
| 17355 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17356 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17357 | lt_aix_libpath_sed=' |
| 17358 | /Import File Strings/,/^$/ { |
| 17359 | /^0/ { |
| 17360 | s/^0 *\([^ ]*\) *$/\1/ |
| 17361 | p |
| 17362 | } |
| 17363 | }' |
| 17364 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17365 | # Check for a 64-bit object if we didn't find anything. |
| 17366 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17367 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17368 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17369 | fi |
| 17370 | rm -f core conftest.err conftest.$ac_objext \ |
| 17371 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17372 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17373 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 17374 | fi |
| 17375 | |
| 17376 | fi |
| 17377 | |
| 17378 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17379 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17380 | |
| 17381 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17382 | # Warning - without using the other run time loading flags, |
| 17383 | # -berok will link without error, but may produce a broken library. |
| 17384 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 17385 | allow_undefined_flag_CXX=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17386 | if test "$with_gnu_ld" = yes; then |
| 17387 | # We only use this code for GNU lds that support --whole-archive. |
| 17388 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 17389 | else |
| 17390 | # Exported symbols can be pulled into shared objects from archives |
| 17391 | whole_archive_flag_spec_CXX='$convenience' |
| 17392 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17393 | archive_cmds_need_lc_CXX=yes |
| 17394 | # This is similar to how AIX traditionally builds its shared |
| 17395 | # libraries. |
| 17396 | 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' |
| 17397 | fi |
| 17398 | fi |
| 17399 | ;; |
| 17400 | |
| 17401 | beos*) |
| 17402 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 17403 | allow_undefined_flag_CXX=unsupported |
| 17404 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17405 | # support --undefined. This deserves some investigation. FIXME |
| 17406 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17407 | else |
| 17408 | ld_shlibs_CXX=no |
| 17409 | fi |
| 17410 | ;; |
| 17411 | |
| 17412 | chorus*) |
| 17413 | case $cc_basename in |
| 17414 | *) |
| 17415 | # FIXME: insert proper C++ library support |
| 17416 | ld_shlibs_CXX=no |
| 17417 | ;; |
| 17418 | esac |
| 17419 | ;; |
| 17420 | |
| 17421 | cygwin* | mingw* | pw32* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17422 | case $GXX,$cc_basename in |
| 17423 | ,cl* | no,cl*) |
| 17424 | # Native MSVC |
| 17425 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17426 | # no search path for DLLs. |
| 17427 | hardcode_libdir_flag_spec_CXX=' ' |
| 17428 | allow_undefined_flag_CXX=unsupported |
| 17429 | always_export_symbols_CXX=yes |
| 17430 | file_list_spec_CXX='@' |
| 17431 | # Tell ltmain to make .lib files, not .a files. |
| 17432 | libext=lib |
| 17433 | # Tell ltmain to make .dll files, not .so files. |
| 17434 | shrext_cmds=".dll" |
| 17435 | # FIXME: Setting linknames here is a bad hack. |
| 17436 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 17437 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17438 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 17439 | else |
| 17440 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 17441 | fi~ |
| 17442 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 17443 | linknames=' |
| 17444 | # The linker will not automatically build a static lib if we build a DLL. |
| 17445 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 17446 | enable_shared_with_static_runtimes_CXX=yes |
| 17447 | # Don't use ranlib |
| 17448 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 17449 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 17450 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 17451 | case $lt_outputfile in |
| 17452 | *.exe|*.EXE) ;; |
| 17453 | *) |
| 17454 | lt_outputfile="$lt_outputfile.exe" |
| 17455 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 17456 | ;; |
| 17457 | esac~ |
| 17458 | func_to_tool_file "$lt_outputfile"~ |
| 17459 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 17460 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 17461 | $RM "$lt_outputfile.manifest"; |
| 17462 | fi' |
| 17463 | ;; |
| 17464 | *) |
| 17465 | # g++ |
| 17466 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 17467 | # as there is no search path for DLLs. |
| 17468 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17469 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 17470 | allow_undefined_flag_CXX=unsupported |
| 17471 | always_export_symbols_CXX=no |
| 17472 | enable_shared_with_static_runtimes_CXX=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17473 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17474 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 17475 | 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' |
| 17476 | # If the export-symbols file already is a .def file (1st line |
| 17477 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17478 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17479 | cp $export_symbols $output_objdir/$soname.def; |
| 17480 | else |
| 17481 | echo EXPORTS > $output_objdir/$soname.def; |
| 17482 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17483 | fi~ |
| 17484 | $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' |
| 17485 | else |
| 17486 | ld_shlibs_CXX=no |
| 17487 | fi |
| 17488 | ;; |
| 17489 | esac |
| 17490 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17491 | darwin* | rhapsody*) |
| 17492 | |
| 17493 | |
| 17494 | archive_cmds_need_lc_CXX=no |
| 17495 | hardcode_direct_CXX=no |
| 17496 | hardcode_automatic_CXX=yes |
| 17497 | hardcode_shlibpath_var_CXX=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17498 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 17499 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 17500 | else |
| 17501 | whole_archive_flag_spec_CXX='' |
| 17502 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17503 | link_all_deplibs_CXX=yes |
| 17504 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 17505 | case $cc_basename in |
| 17506 | ifort*) _lt_dar_can_shared=yes ;; |
| 17507 | *) _lt_dar_can_shared=$GCC ;; |
| 17508 | esac |
| 17509 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17510 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17511 | 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}" |
| 17512 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 17513 | 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}" |
| 17514 | 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}" |
| 17515 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 17516 | 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}" |
| 17517 | 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}" |
| 17518 | fi |
| 17519 | |
| 17520 | else |
| 17521 | ld_shlibs_CXX=no |
| 17522 | fi |
| 17523 | |
| 17524 | ;; |
| 17525 | |
| 17526 | dgux*) |
| 17527 | case $cc_basename in |
| 17528 | ec++*) |
| 17529 | # FIXME: insert proper C++ library support |
| 17530 | ld_shlibs_CXX=no |
| 17531 | ;; |
| 17532 | ghcx*) |
| 17533 | # Green Hills C++ Compiler |
| 17534 | # FIXME: insert proper C++ library support |
| 17535 | ld_shlibs_CXX=no |
| 17536 | ;; |
| 17537 | *) |
| 17538 | # FIXME: insert proper C++ library support |
| 17539 | ld_shlibs_CXX=no |
| 17540 | ;; |
| 17541 | esac |
| 17542 | ;; |
| 17543 | |
| 17544 | freebsd[12]*) |
| 17545 | # C++ shared libraries reported to be fairly broken before |
| 17546 | # switch to ELF |
| 17547 | ld_shlibs_CXX=no |
| 17548 | ;; |
| 17549 | |
| 17550 | freebsd-elf*) |
| 17551 | archive_cmds_need_lc_CXX=no |
| 17552 | ;; |
| 17553 | |
| 17554 | freebsd* | dragonfly*) |
| 17555 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 17556 | # conventions |
| 17557 | ld_shlibs_CXX=yes |
| 17558 | ;; |
| 17559 | |
| 17560 | gnu*) |
| 17561 | ;; |
| 17562 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17563 | haiku*) |
| 17564 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17565 | link_all_deplibs_CXX=yes |
| 17566 | ;; |
| 17567 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17568 | hpux9*) |
| 17569 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17570 | hardcode_libdir_separator_CXX=: |
| 17571 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17572 | hardcode_direct_CXX=yes |
| 17573 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17574 | # but as the default |
| 17575 | # location of the library. |
| 17576 | |
| 17577 | case $cc_basename in |
| 17578 | CC*) |
| 17579 | # FIXME: insert proper C++ library support |
| 17580 | ld_shlibs_CXX=no |
| 17581 | ;; |
| 17582 | aCC*) |
| 17583 | 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' |
| 17584 | # Commands to make compiler produce verbose output that lists |
| 17585 | # what "hidden" libraries, object files and flags are used when |
| 17586 | # linking a shared library. |
| 17587 | # |
| 17588 | # There doesn't appear to be a way to prevent this compiler from |
| 17589 | # explicitly linking system object files so we need to strip them |
| 17590 | # from the output so that they don't get included in the library |
| 17591 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17592 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17593 | ;; |
| 17594 | *) |
| 17595 | if test "$GXX" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17596 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17597 | else |
| 17598 | # FIXME: insert proper C++ library support |
| 17599 | ld_shlibs_CXX=no |
| 17600 | fi |
| 17601 | ;; |
| 17602 | esac |
| 17603 | ;; |
| 17604 | |
| 17605 | hpux10*|hpux11*) |
| 17606 | if test $with_gnu_ld = no; then |
| 17607 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17608 | hardcode_libdir_separator_CXX=: |
| 17609 | |
| 17610 | case $host_cpu in |
| 17611 | hppa*64*|ia64*) |
| 17612 | ;; |
| 17613 | *) |
| 17614 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17615 | ;; |
| 17616 | esac |
| 17617 | fi |
| 17618 | case $host_cpu in |
| 17619 | hppa*64*|ia64*) |
| 17620 | hardcode_direct_CXX=no |
| 17621 | hardcode_shlibpath_var_CXX=no |
| 17622 | ;; |
| 17623 | *) |
| 17624 | hardcode_direct_CXX=yes |
| 17625 | hardcode_direct_absolute_CXX=yes |
| 17626 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17627 | # but as the default |
| 17628 | # location of the library. |
| 17629 | ;; |
| 17630 | esac |
| 17631 | |
| 17632 | case $cc_basename in |
| 17633 | CC*) |
| 17634 | # FIXME: insert proper C++ library support |
| 17635 | ld_shlibs_CXX=no |
| 17636 | ;; |
| 17637 | aCC*) |
| 17638 | case $host_cpu in |
| 17639 | hppa*64*) |
| 17640 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17641 | ;; |
| 17642 | ia64*) |
| 17643 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17644 | ;; |
| 17645 | *) |
| 17646 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17647 | ;; |
| 17648 | esac |
| 17649 | # Commands to make compiler produce verbose output that lists |
| 17650 | # what "hidden" libraries, object files and flags are used when |
| 17651 | # linking a shared library. |
| 17652 | # |
| 17653 | # There doesn't appear to be a way to prevent this compiler from |
| 17654 | # explicitly linking system object files so we need to strip them |
| 17655 | # from the output so that they don't get included in the library |
| 17656 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17657 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17658 | ;; |
| 17659 | *) |
| 17660 | if test "$GXX" = yes; then |
| 17661 | if test $with_gnu_ld = no; then |
| 17662 | case $host_cpu in |
| 17663 | hppa*64*) |
| 17664 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17665 | ;; |
| 17666 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17667 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17668 | ;; |
| 17669 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17670 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17671 | ;; |
| 17672 | esac |
| 17673 | fi |
| 17674 | else |
| 17675 | # FIXME: insert proper C++ library support |
| 17676 | ld_shlibs_CXX=no |
| 17677 | fi |
| 17678 | ;; |
| 17679 | esac |
| 17680 | ;; |
| 17681 | |
| 17682 | interix[3-9]*) |
| 17683 | hardcode_direct_CXX=no |
| 17684 | hardcode_shlibpath_var_CXX=no |
| 17685 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17686 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17687 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17688 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17689 | # default) and relocated if they conflict, which is a slow very memory |
| 17690 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17691 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17692 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17693 | 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' |
| 17694 | 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' |
| 17695 | ;; |
| 17696 | irix5* | irix6*) |
| 17697 | case $cc_basename in |
| 17698 | CC*) |
| 17699 | # SGI C++ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17700 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17701 | |
| 17702 | # Archives containing C++ object files must be created using |
| 17703 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 17704 | # necessary to make sure instantiated templates are included |
| 17705 | # in the archive. |
| 17706 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 17707 | ;; |
| 17708 | *) |
| 17709 | if test "$GXX" = yes; then |
| 17710 | if test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17711 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17712 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17713 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17714 | fi |
| 17715 | fi |
| 17716 | link_all_deplibs_CXX=yes |
| 17717 | ;; |
| 17718 | esac |
| 17719 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17720 | hardcode_libdir_separator_CXX=: |
| 17721 | inherit_rpath_CXX=yes |
| 17722 | ;; |
| 17723 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17724 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17725 | case $cc_basename in |
| 17726 | KCC*) |
| 17727 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17728 | |
| 17729 | # KCC will only create a shared library if the output file |
| 17730 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17731 | # to its proper name (with version) after linking. |
| 17732 | 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' |
| 17733 | 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' |
| 17734 | # Commands to make compiler produce verbose output that lists |
| 17735 | # what "hidden" libraries, object files and flags are used when |
| 17736 | # linking a shared library. |
| 17737 | # |
| 17738 | # There doesn't appear to be a way to prevent this compiler from |
| 17739 | # explicitly linking system object files so we need to strip them |
| 17740 | # from the output so that they don't get included in the library |
| 17741 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17742 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17743 | |
| 17744 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17745 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17746 | |
| 17747 | # Archives containing C++ object files must be created using |
| 17748 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 17749 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 17750 | ;; |
| 17751 | icpc* | ecpc* ) |
| 17752 | # Intel C++ |
| 17753 | with_gnu_ld=yes |
| 17754 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 17755 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 17756 | # earlier do not add the objects themselves. |
| 17757 | case `$CC -V 2>&1` in |
| 17758 | *"Version 7."*) |
| 17759 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17760 | 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' |
| 17761 | ;; |
| 17762 | *) # Version 8.0 or newer |
| 17763 | tmp_idyn= |
| 17764 | case $host_cpu in |
| 17765 | ia64*) tmp_idyn=' -i_dynamic';; |
| 17766 | esac |
| 17767 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17768 | 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' |
| 17769 | ;; |
| 17770 | esac |
| 17771 | archive_cmds_need_lc_CXX=no |
| 17772 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17773 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17774 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 17775 | ;; |
| 17776 | pgCC* | pgcpp*) |
| 17777 | # Portland Group C++ compiler |
| 17778 | case `$CC -V` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17779 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17780 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 17781 | rm -rf $tpldir~ |
| 17782 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17783 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17784 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 17785 | rm -rf $tpldir~ |
| 17786 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17787 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17788 | $RANLIB $oldlib' |
| 17789 | archive_cmds_CXX='tpldir=Template.dir~ |
| 17790 | rm -rf $tpldir~ |
| 17791 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17792 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17793 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 17794 | rm -rf $tpldir~ |
| 17795 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17796 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17797 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17798 | *) # Version 6 and above use weak symbols |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17799 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 17800 | 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' |
| 17801 | ;; |
| 17802 | esac |
| 17803 | |
| 17804 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17805 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17806 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17807 | ;; |
| 17808 | cxx*) |
| 17809 | # Compaq C++ |
| 17810 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17811 | 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' |
| 17812 | |
| 17813 | runpath_var=LD_RUN_PATH |
| 17814 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17815 | hardcode_libdir_separator_CXX=: |
| 17816 | |
| 17817 | # Commands to make compiler produce verbose output that lists |
| 17818 | # what "hidden" libraries, object files and flags are used when |
| 17819 | # linking a shared library. |
| 17820 | # |
| 17821 | # There doesn't appear to be a way to prevent this compiler from |
| 17822 | # explicitly linking system object files so we need to strip them |
| 17823 | # from the output so that they don't get included in the library |
| 17824 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17825 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17826 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17827 | xl* | mpixl* | bgxl*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17828 | # IBM XL 8.0 on PPC, with GNU ld |
| 17829 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17830 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17831 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17832 | if test "x$supports_anon_versioning" = xyes; then |
| 17833 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 17834 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17835 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17836 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17837 | fi |
| 17838 | ;; |
| 17839 | *) |
| 17840 | case `$CC -V 2>&1 | sed 5q` in |
| 17841 | *Sun\ C*) |
| 17842 | # Sun C++ 5.9 |
| 17843 | no_undefined_flag_CXX=' -zdefs' |
| 17844 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17845 | 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' |
| 17846 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17847 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17848 | compiler_needs_object_CXX=yes |
| 17849 | |
| 17850 | # Not sure whether something based on |
| 17851 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 17852 | # would be better. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17853 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17854 | |
| 17855 | # Archives containing C++ object files must be created using |
| 17856 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 17857 | # necessary to make sure instantiated templates are included |
| 17858 | # in the archive. |
| 17859 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 17860 | ;; |
| 17861 | esac |
| 17862 | ;; |
| 17863 | esac |
| 17864 | ;; |
| 17865 | |
| 17866 | lynxos*) |
| 17867 | # FIXME: insert proper C++ library support |
| 17868 | ld_shlibs_CXX=no |
| 17869 | ;; |
| 17870 | |
| 17871 | m88k*) |
| 17872 | # FIXME: insert proper C++ library support |
| 17873 | ld_shlibs_CXX=no |
| 17874 | ;; |
| 17875 | |
| 17876 | mvs*) |
| 17877 | case $cc_basename in |
| 17878 | cxx*) |
| 17879 | # FIXME: insert proper C++ library support |
| 17880 | ld_shlibs_CXX=no |
| 17881 | ;; |
| 17882 | *) |
| 17883 | # FIXME: insert proper C++ library support |
| 17884 | ld_shlibs_CXX=no |
| 17885 | ;; |
| 17886 | esac |
| 17887 | ;; |
| 17888 | |
| 17889 | netbsd*) |
| 17890 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17891 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 17892 | wlarc= |
| 17893 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17894 | hardcode_direct_CXX=yes |
| 17895 | hardcode_shlibpath_var_CXX=no |
| 17896 | fi |
| 17897 | # Workaround some broken pre-1.5 toolchains |
| 17898 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 17899 | ;; |
| 17900 | |
| 17901 | *nto* | *qnx*) |
| 17902 | ld_shlibs_CXX=yes |
| 17903 | ;; |
| 17904 | |
| 17905 | openbsd2*) |
| 17906 | # C++ shared libraries are fairly broken |
| 17907 | ld_shlibs_CXX=no |
| 17908 | ;; |
| 17909 | |
| 17910 | openbsd*) |
| 17911 | if test -f /usr/libexec/ld.so; then |
| 17912 | hardcode_direct_CXX=yes |
| 17913 | hardcode_shlibpath_var_CXX=no |
| 17914 | hardcode_direct_absolute_CXX=yes |
| 17915 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17916 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17917 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17918 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 17919 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17920 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17921 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17922 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17923 | else |
| 17924 | ld_shlibs_CXX=no |
| 17925 | fi |
| 17926 | ;; |
| 17927 | |
| 17928 | osf3* | osf4* | osf5*) |
| 17929 | case $cc_basename in |
| 17930 | KCC*) |
| 17931 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17932 | |
| 17933 | # KCC will only create a shared library if the output file |
| 17934 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17935 | # to its proper name (with version) after linking. |
| 17936 | 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' |
| 17937 | |
| 17938 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17939 | hardcode_libdir_separator_CXX=: |
| 17940 | |
| 17941 | # Archives containing C++ object files must be created using |
| 17942 | # the KAI C++ compiler. |
| 17943 | case $host in |
| 17944 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 17945 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 17946 | esac |
| 17947 | ;; |
| 17948 | RCC*) |
| 17949 | # Rational C++ 2.4.1 |
| 17950 | # FIXME: insert proper C++ library support |
| 17951 | ld_shlibs_CXX=no |
| 17952 | ;; |
| 17953 | cxx*) |
| 17954 | case $host in |
| 17955 | osf3*) |
| 17956 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17957 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17958 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17959 | ;; |
| 17960 | *) |
| 17961 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17962 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17963 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 17964 | echo "-hidden">> $lib.exp~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17965 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17966 | $RM $lib.exp' |
| 17967 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17968 | ;; |
| 17969 | esac |
| 17970 | |
| 17971 | hardcode_libdir_separator_CXX=: |
| 17972 | |
| 17973 | # Commands to make compiler produce verbose output that lists |
| 17974 | # what "hidden" libraries, object files and flags are used when |
| 17975 | # linking a shared library. |
| 17976 | # |
| 17977 | # There doesn't appear to be a way to prevent this compiler from |
| 17978 | # explicitly linking system object files so we need to strip them |
| 17979 | # from the output so that they don't get included in the library |
| 17980 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17981 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17982 | ;; |
| 17983 | *) |
| 17984 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 17985 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 17986 | case $host in |
| 17987 | osf3*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17988 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17989 | ;; |
| 17990 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17991 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17992 | ;; |
| 17993 | esac |
| 17994 | |
| 17995 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17996 | hardcode_libdir_separator_CXX=: |
| 17997 | |
| 17998 | # Commands to make compiler produce verbose output that lists |
| 17999 | # what "hidden" libraries, object files and flags are used when |
| 18000 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18001 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18002 | |
| 18003 | else |
| 18004 | # FIXME: insert proper C++ library support |
| 18005 | ld_shlibs_CXX=no |
| 18006 | fi |
| 18007 | ;; |
| 18008 | esac |
| 18009 | ;; |
| 18010 | |
| 18011 | psos*) |
| 18012 | # FIXME: insert proper C++ library support |
| 18013 | ld_shlibs_CXX=no |
| 18014 | ;; |
| 18015 | |
| 18016 | sunos4*) |
| 18017 | case $cc_basename in |
| 18018 | CC*) |
| 18019 | # Sun C++ 4.x |
| 18020 | # FIXME: insert proper C++ library support |
| 18021 | ld_shlibs_CXX=no |
| 18022 | ;; |
| 18023 | lcc*) |
| 18024 | # Lucid |
| 18025 | # FIXME: insert proper C++ library support |
| 18026 | ld_shlibs_CXX=no |
| 18027 | ;; |
| 18028 | *) |
| 18029 | # FIXME: insert proper C++ library support |
| 18030 | ld_shlibs_CXX=no |
| 18031 | ;; |
| 18032 | esac |
| 18033 | ;; |
| 18034 | |
| 18035 | solaris*) |
| 18036 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18037 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18038 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18039 | archive_cmds_need_lc_CXX=yes |
| 18040 | no_undefined_flag_CXX=' -zdefs' |
| 18041 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18042 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18043 | $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' |
| 18044 | |
| 18045 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18046 | hardcode_shlibpath_var_CXX=no |
| 18047 | case $host_os in |
| 18048 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18049 | *) |
| 18050 | # The compiler driver will combine and reorder linker options, |
| 18051 | # but understands `-z linker_flag'. |
| 18052 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18053 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 18054 | ;; |
| 18055 | esac |
| 18056 | link_all_deplibs_CXX=yes |
| 18057 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18058 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18059 | |
| 18060 | # Archives containing C++ object files must be created using |
| 18061 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18062 | # necessary to make sure instantiated templates are included |
| 18063 | # in the archive. |
| 18064 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18065 | ;; |
| 18066 | gcx*) |
| 18067 | # Green Hills C++ Compiler |
| 18068 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18069 | |
| 18070 | # The C++ compiler must be used to create the archive. |
| 18071 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18072 | ;; |
| 18073 | *) |
| 18074 | # GNU C++ compiler with Solaris linker |
| 18075 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18076 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18077 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18078 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18079 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18080 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18081 | |
| 18082 | # Commands to make compiler produce verbose output that lists |
| 18083 | # what "hidden" libraries, object files and flags are used when |
| 18084 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18085 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18086 | else |
| 18087 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18088 | # platform. |
| 18089 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18090 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18091 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 18092 | |
| 18093 | # Commands to make compiler produce verbose output that lists |
| 18094 | # what "hidden" libraries, object files and flags are used when |
| 18095 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18096 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18097 | fi |
| 18098 | |
| 18099 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18100 | case $host_os in |
| 18101 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18102 | *) |
| 18103 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 18104 | ;; |
| 18105 | esac |
| 18106 | fi |
| 18107 | ;; |
| 18108 | esac |
| 18109 | ;; |
| 18110 | |
| 18111 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18112 | no_undefined_flag_CXX='${wl}-z,text' |
| 18113 | archive_cmds_need_lc_CXX=no |
| 18114 | hardcode_shlibpath_var_CXX=no |
| 18115 | runpath_var='LD_RUN_PATH' |
| 18116 | |
| 18117 | case $cc_basename in |
| 18118 | CC*) |
| 18119 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18120 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18121 | ;; |
| 18122 | *) |
| 18123 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18124 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18125 | ;; |
| 18126 | esac |
| 18127 | ;; |
| 18128 | |
| 18129 | sysv5* | sco3.2v5* | sco5v6*) |
| 18130 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18131 | # link with -lc, and that would cause any symbols used from libc to |
| 18132 | # always be unresolved, which means just about no library would |
| 18133 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18134 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18135 | # as -z defs. |
| 18136 | no_undefined_flag_CXX='${wl}-z,text' |
| 18137 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18138 | archive_cmds_need_lc_CXX=no |
| 18139 | hardcode_shlibpath_var_CXX=no |
| 18140 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 18141 | hardcode_libdir_separator_CXX=':' |
| 18142 | link_all_deplibs_CXX=yes |
| 18143 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18144 | runpath_var='LD_RUN_PATH' |
| 18145 | |
| 18146 | case $cc_basename in |
| 18147 | CC*) |
| 18148 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18149 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18150 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 18151 | '"$old_archive_cmds_CXX" |
| 18152 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 18153 | '"$reload_cmds_CXX" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18154 | ;; |
| 18155 | *) |
| 18156 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18157 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18158 | ;; |
| 18159 | esac |
| 18160 | ;; |
| 18161 | |
| 18162 | tandem*) |
| 18163 | case $cc_basename in |
| 18164 | NCC*) |
| 18165 | # NonStop-UX NCC 3.20 |
| 18166 | # FIXME: insert proper C++ library support |
| 18167 | ld_shlibs_CXX=no |
| 18168 | ;; |
| 18169 | *) |
| 18170 | # FIXME: insert proper C++ library support |
| 18171 | ld_shlibs_CXX=no |
| 18172 | ;; |
| 18173 | esac |
| 18174 | ;; |
| 18175 | |
| 18176 | vxworks*) |
| 18177 | # FIXME: insert proper C++ library support |
| 18178 | ld_shlibs_CXX=no |
| 18179 | ;; |
| 18180 | |
| 18181 | *) |
| 18182 | # FIXME: insert proper C++ library support |
| 18183 | ld_shlibs_CXX=no |
| 18184 | ;; |
| 18185 | esac |
| 18186 | |
| 18187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18188 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 18189 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18190 | |
| 18191 | GCC_CXX="$GXX" |
| 18192 | LD_CXX="$LD" |
| 18193 | |
| 18194 | ## CAVEAT EMPTOR: |
| 18195 | ## There is no encapsulation within the following macros, do not change |
| 18196 | ## the running order or otherwise move them around unless you know exactly |
| 18197 | ## what you are doing... |
| 18198 | # Dependencies to place before and after the object being linked: |
| 18199 | predep_objects_CXX= |
| 18200 | postdep_objects_CXX= |
| 18201 | predeps_CXX= |
| 18202 | postdeps_CXX= |
| 18203 | compiler_lib_search_path_CXX= |
| 18204 | |
| 18205 | cat > conftest.$ac_ext <<_LT_EOF |
| 18206 | class Foo |
| 18207 | { |
| 18208 | public: |
| 18209 | Foo (void) { a = 0; } |
| 18210 | private: |
| 18211 | int a; |
| 18212 | }; |
| 18213 | _LT_EOF |
| 18214 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18215 | |
| 18216 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 18217 | case "$CC $CFLAGS " in #( |
| 18218 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 18219 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 18220 | esac |
| 18221 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18222 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 18223 | (eval $ac_compile) 2>&5 |
| 18224 | ac_status=$? |
| 18225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18226 | test $ac_status = 0; }; then |
| 18227 | # Parse the compiler output and extract the necessary |
| 18228 | # objects, libraries and library flags. |
| 18229 | |
| 18230 | # Sentinel used to keep track of whether or not we are before |
| 18231 | # the conftest object file. |
| 18232 | pre_test_object_deps_done=no |
| 18233 | |
| 18234 | for p in `eval "$output_verbose_link_cmd"`; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18235 | case ${prev}${p} in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18236 | |
| 18237 | -L* | -R* | -l*) |
| 18238 | # Some compilers place space between "-{L,R}" and the path. |
| 18239 | # Remove the space. |
| 18240 | if test $p = "-L" || |
| 18241 | test $p = "-R"; then |
| 18242 | prev=$p |
| 18243 | continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18244 | fi |
| 18245 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18246 | # Expand the sysroot to ease extracting the directories later. |
| 18247 | if test -z "$prev"; then |
| 18248 | case $p in |
| 18249 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 18250 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 18251 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 18252 | esac |
| 18253 | fi |
| 18254 | case $p in |
| 18255 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 18256 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18257 | if test "$pre_test_object_deps_done" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18258 | case ${prev} in |
| 18259 | -L | -R) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18260 | # Internal compiler library paths should come after those |
| 18261 | # provided the user. The postdeps already come after the |
| 18262 | # user supplied libs so there is no need to process them. |
| 18263 | if test -z "$compiler_lib_search_path_CXX"; then |
| 18264 | compiler_lib_search_path_CXX="${prev}${p}" |
| 18265 | else |
| 18266 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 18267 | fi |
| 18268 | ;; |
| 18269 | # The "-l" case would never come before the object being |
| 18270 | # linked, so don't bother handling this case. |
| 18271 | esac |
| 18272 | else |
| 18273 | if test -z "$postdeps_CXX"; then |
| 18274 | postdeps_CXX="${prev}${p}" |
| 18275 | else |
| 18276 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 18277 | fi |
| 18278 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18279 | prev= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18280 | ;; |
| 18281 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18282 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18283 | *.$objext) |
| 18284 | # This assumes that the test object file only shows up |
| 18285 | # once in the compiler output. |
| 18286 | if test "$p" = "conftest.$objext"; then |
| 18287 | pre_test_object_deps_done=yes |
| 18288 | continue |
| 18289 | fi |
| 18290 | |
| 18291 | if test "$pre_test_object_deps_done" = no; then |
| 18292 | if test -z "$predep_objects_CXX"; then |
| 18293 | predep_objects_CXX="$p" |
| 18294 | else |
| 18295 | predep_objects_CXX="$predep_objects_CXX $p" |
| 18296 | fi |
| 18297 | else |
| 18298 | if test -z "$postdep_objects_CXX"; then |
| 18299 | postdep_objects_CXX="$p" |
| 18300 | else |
| 18301 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 18302 | fi |
| 18303 | fi |
| 18304 | ;; |
| 18305 | |
| 18306 | *) ;; # Ignore the rest. |
| 18307 | |
| 18308 | esac |
| 18309 | done |
| 18310 | |
| 18311 | # Clean up. |
| 18312 | rm -f a.out a.exe |
| 18313 | else |
| 18314 | echo "libtool.m4: error: problem compiling CXX test program" |
| 18315 | fi |
| 18316 | |
| 18317 | $RM -f confest.$objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18318 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18319 | |
| 18320 | # PORTME: override above test on systems where it is broken |
| 18321 | case $host_os in |
| 18322 | interix[3-9]*) |
| 18323 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 18324 | # hack all around it, let's just trust "g++" to DTRT. |
| 18325 | predep_objects_CXX= |
| 18326 | postdep_objects_CXX= |
| 18327 | postdeps_CXX= |
| 18328 | ;; |
| 18329 | |
| 18330 | linux*) |
| 18331 | case `$CC -V 2>&1 | sed 5q` in |
| 18332 | *Sun\ C*) |
| 18333 | # Sun C++ 5.9 |
| 18334 | |
| 18335 | # The more standards-conforming stlport4 library is |
| 18336 | # incompatible with the Cstd library. Avoid specifying |
| 18337 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 18338 | # -library=stlport4 depends on it. |
| 18339 | case " $CXX $CXXFLAGS " in |
| 18340 | *" -library=stlport4 "*) |
| 18341 | solaris_use_stlport4=yes |
| 18342 | ;; |
| 18343 | esac |
| 18344 | |
| 18345 | if test "$solaris_use_stlport4" != yes; then |
| 18346 | postdeps_CXX='-library=Cstd -library=Crun' |
| 18347 | fi |
| 18348 | ;; |
| 18349 | esac |
| 18350 | ;; |
| 18351 | |
| 18352 | solaris*) |
| 18353 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18354 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18355 | # The more standards-conforming stlport4 library is |
| 18356 | # incompatible with the Cstd library. Avoid specifying |
| 18357 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 18358 | # -library=stlport4 depends on it. |
| 18359 | case " $CXX $CXXFLAGS " in |
| 18360 | *" -library=stlport4 "*) |
| 18361 | solaris_use_stlport4=yes |
| 18362 | ;; |
| 18363 | esac |
| 18364 | |
| 18365 | # Adding this requires a known-good setup of shared libraries for |
| 18366 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 18367 | # archive will be linked into the output, leading to subtle bugs. |
| 18368 | if test "$solaris_use_stlport4" != yes; then |
| 18369 | postdeps_CXX='-library=Cstd -library=Crun' |
| 18370 | fi |
| 18371 | ;; |
| 18372 | esac |
| 18373 | ;; |
| 18374 | esac |
| 18375 | |
| 18376 | |
| 18377 | case " $postdeps_CXX " in |
| 18378 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 18379 | esac |
| 18380 | compiler_lib_search_dirs_CXX= |
| 18381 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 18382 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 18383 | fi |
| 18384 | |
| 18385 | |
| 18386 | |
| 18387 | |
| 18388 | |
| 18389 | |
| 18390 | |
| 18391 | |
| 18392 | |
| 18393 | |
| 18394 | |
| 18395 | |
| 18396 | |
| 18397 | |
| 18398 | |
| 18399 | |
| 18400 | |
| 18401 | |
| 18402 | |
| 18403 | |
| 18404 | |
| 18405 | |
| 18406 | |
| 18407 | |
| 18408 | |
| 18409 | |
| 18410 | |
| 18411 | |
| 18412 | |
| 18413 | |
| 18414 | |
| 18415 | lt_prog_compiler_wl_CXX= |
| 18416 | lt_prog_compiler_pic_CXX= |
| 18417 | lt_prog_compiler_static_CXX= |
| 18418 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18419 | |
| 18420 | # C++ specific cases for pic, static, wl, etc. |
| 18421 | if test "$GXX" = yes; then |
| 18422 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18423 | lt_prog_compiler_static_CXX='-static' |
| 18424 | |
| 18425 | case $host_os in |
| 18426 | aix*) |
| 18427 | # All AIX code is PIC. |
| 18428 | if test "$host_cpu" = ia64; then |
| 18429 | # AIX 5 now supports IA64 processor |
| 18430 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18431 | fi |
| 18432 | ;; |
| 18433 | |
| 18434 | amigaos*) |
| 18435 | case $host_cpu in |
| 18436 | powerpc) |
| 18437 | # see comment about AmigaOS4 .so support |
| 18438 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18439 | ;; |
| 18440 | m68k) |
| 18441 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18442 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18443 | # like `-m68040'. |
| 18444 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 18445 | ;; |
| 18446 | esac |
| 18447 | ;; |
| 18448 | |
| 18449 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18450 | # PIC is the default for these OSes. |
| 18451 | ;; |
| 18452 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 18453 | # This hack is so that the source file can tell whether it is being |
| 18454 | # built for inclusion in a dll (and should export symbols for example). |
| 18455 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 18456 | # (--disable-auto-import) libraries |
| 18457 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18458 | ;; |
| 18459 | darwin* | rhapsody*) |
| 18460 | # PIC is the default on this platform |
| 18461 | # Common symbols not allowed in MH_DYLIB files |
| 18462 | lt_prog_compiler_pic_CXX='-fno-common' |
| 18463 | ;; |
| 18464 | *djgpp*) |
| 18465 | # DJGPP does not support shared libraries at all |
| 18466 | lt_prog_compiler_pic_CXX= |
| 18467 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18468 | haiku*) |
| 18469 | # PIC is the default for Haiku. |
| 18470 | # The "-static" flag exists, but is broken. |
| 18471 | lt_prog_compiler_static_CXX= |
| 18472 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18473 | interix[3-9]*) |
| 18474 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 18475 | # Instead, we relocate shared libraries at runtime. |
| 18476 | ;; |
| 18477 | sysv4*MP*) |
| 18478 | if test -d /usr/nec; then |
| 18479 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 18480 | fi |
| 18481 | ;; |
| 18482 | hpux*) |
| 18483 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 18484 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 18485 | # sets the default TLS model and affects inlining. |
| 18486 | case $host_cpu in |
| 18487 | hppa*64*) |
| 18488 | ;; |
| 18489 | *) |
| 18490 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18491 | ;; |
| 18492 | esac |
| 18493 | ;; |
| 18494 | *qnx* | *nto*) |
| 18495 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18496 | # it will coredump. |
| 18497 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18498 | ;; |
| 18499 | *) |
| 18500 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18501 | ;; |
| 18502 | esac |
| 18503 | else |
| 18504 | case $host_os in |
| 18505 | aix[4-9]*) |
| 18506 | # All AIX code is PIC. |
| 18507 | if test "$host_cpu" = ia64; then |
| 18508 | # AIX 5 now supports IA64 processor |
| 18509 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18510 | else |
| 18511 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 18512 | fi |
| 18513 | ;; |
| 18514 | chorus*) |
| 18515 | case $cc_basename in |
| 18516 | cxch68*) |
| 18517 | # Green Hills C++ Compiler |
| 18518 | # _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" |
| 18519 | ;; |
| 18520 | esac |
| 18521 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18522 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 18523 | # This hack is so that the source file can tell whether it is being |
| 18524 | # built for inclusion in a dll (and should export symbols for example). |
| 18525 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18526 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18527 | dgux*) |
| 18528 | case $cc_basename in |
| 18529 | ec++*) |
| 18530 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18531 | ;; |
| 18532 | ghcx*) |
| 18533 | # Green Hills C++ Compiler |
| 18534 | lt_prog_compiler_pic_CXX='-pic' |
| 18535 | ;; |
| 18536 | *) |
| 18537 | ;; |
| 18538 | esac |
| 18539 | ;; |
| 18540 | freebsd* | dragonfly*) |
| 18541 | # FreeBSD uses GNU C++ |
| 18542 | ;; |
| 18543 | hpux9* | hpux10* | hpux11*) |
| 18544 | case $cc_basename in |
| 18545 | CC*) |
| 18546 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18547 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 18548 | if test "$host_cpu" != ia64; then |
| 18549 | lt_prog_compiler_pic_CXX='+Z' |
| 18550 | fi |
| 18551 | ;; |
| 18552 | aCC*) |
| 18553 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18554 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 18555 | case $host_cpu in |
| 18556 | hppa*64*|ia64*) |
| 18557 | # +Z the default |
| 18558 | ;; |
| 18559 | *) |
| 18560 | lt_prog_compiler_pic_CXX='+Z' |
| 18561 | ;; |
| 18562 | esac |
| 18563 | ;; |
| 18564 | *) |
| 18565 | ;; |
| 18566 | esac |
| 18567 | ;; |
| 18568 | interix*) |
| 18569 | # This is c89, which is MS Visual C++ (no shared libs) |
| 18570 | # Anyone wants to do a port? |
| 18571 | ;; |
| 18572 | irix5* | irix6* | nonstopux*) |
| 18573 | case $cc_basename in |
| 18574 | CC*) |
| 18575 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18576 | lt_prog_compiler_static_CXX='-non_shared' |
| 18577 | # CC pic flag -KPIC is the default. |
| 18578 | ;; |
| 18579 | *) |
| 18580 | ;; |
| 18581 | esac |
| 18582 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18583 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18584 | case $cc_basename in |
| 18585 | KCC*) |
| 18586 | # KAI C++ Compiler |
| 18587 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18588 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18589 | ;; |
| 18590 | ecpc* ) |
| 18591 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 18592 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18593 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18594 | lt_prog_compiler_static_CXX='-static' |
| 18595 | ;; |
| 18596 | icpc* ) |
| 18597 | # Intel C++, used to be incompatible with GCC. |
| 18598 | # ICC 10 doesn't accept -KPIC any more. |
| 18599 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18600 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18601 | lt_prog_compiler_static_CXX='-static' |
| 18602 | ;; |
| 18603 | pgCC* | pgcpp*) |
| 18604 | # Portland Group C++ compiler |
| 18605 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18606 | lt_prog_compiler_pic_CXX='-fpic' |
| 18607 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18608 | ;; |
| 18609 | cxx*) |
| 18610 | # Compaq C++ |
| 18611 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18612 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18613 | lt_prog_compiler_pic_CXX= |
| 18614 | lt_prog_compiler_static_CXX='-non_shared' |
| 18615 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18616 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 18617 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18618 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18619 | lt_prog_compiler_pic_CXX='-qpic' |
| 18620 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 18621 | ;; |
| 18622 | *) |
| 18623 | case `$CC -V 2>&1 | sed 5q` in |
| 18624 | *Sun\ C*) |
| 18625 | # Sun C++ 5.9 |
| 18626 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18627 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18628 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18629 | ;; |
| 18630 | esac |
| 18631 | ;; |
| 18632 | esac |
| 18633 | ;; |
| 18634 | lynxos*) |
| 18635 | ;; |
| 18636 | m88k*) |
| 18637 | ;; |
| 18638 | mvs*) |
| 18639 | case $cc_basename in |
| 18640 | cxx*) |
| 18641 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 18642 | ;; |
| 18643 | *) |
| 18644 | ;; |
| 18645 | esac |
| 18646 | ;; |
| 18647 | netbsd*) |
| 18648 | ;; |
| 18649 | *qnx* | *nto*) |
| 18650 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18651 | # it will coredump. |
| 18652 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18653 | ;; |
| 18654 | osf3* | osf4* | osf5*) |
| 18655 | case $cc_basename in |
| 18656 | KCC*) |
| 18657 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18658 | ;; |
| 18659 | RCC*) |
| 18660 | # Rational C++ 2.4.1 |
| 18661 | lt_prog_compiler_pic_CXX='-pic' |
| 18662 | ;; |
| 18663 | cxx*) |
| 18664 | # Digital/Compaq C++ |
| 18665 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18666 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18667 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18668 | lt_prog_compiler_pic_CXX= |
| 18669 | lt_prog_compiler_static_CXX='-non_shared' |
| 18670 | ;; |
| 18671 | *) |
| 18672 | ;; |
| 18673 | esac |
| 18674 | ;; |
| 18675 | psos*) |
| 18676 | ;; |
| 18677 | solaris*) |
| 18678 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18679 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18680 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18681 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18682 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18683 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18684 | ;; |
| 18685 | gcx*) |
| 18686 | # Green Hills C++ Compiler |
| 18687 | lt_prog_compiler_pic_CXX='-PIC' |
| 18688 | ;; |
| 18689 | *) |
| 18690 | ;; |
| 18691 | esac |
| 18692 | ;; |
| 18693 | sunos4*) |
| 18694 | case $cc_basename in |
| 18695 | CC*) |
| 18696 | # Sun C++ 4.x |
| 18697 | lt_prog_compiler_pic_CXX='-pic' |
| 18698 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18699 | ;; |
| 18700 | lcc*) |
| 18701 | # Lucid |
| 18702 | lt_prog_compiler_pic_CXX='-pic' |
| 18703 | ;; |
| 18704 | *) |
| 18705 | ;; |
| 18706 | esac |
| 18707 | ;; |
| 18708 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 18709 | case $cc_basename in |
| 18710 | CC*) |
| 18711 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18712 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18713 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18714 | ;; |
| 18715 | esac |
| 18716 | ;; |
| 18717 | tandem*) |
| 18718 | case $cc_basename in |
| 18719 | NCC*) |
| 18720 | # NonStop-UX NCC 3.20 |
| 18721 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18722 | ;; |
| 18723 | *) |
| 18724 | ;; |
| 18725 | esac |
| 18726 | ;; |
| 18727 | vxworks*) |
| 18728 | ;; |
| 18729 | *) |
| 18730 | lt_prog_compiler_can_build_shared_CXX=no |
| 18731 | ;; |
| 18732 | esac |
| 18733 | fi |
| 18734 | |
| 18735 | case $host_os in |
| 18736 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 18737 | *djgpp*) |
| 18738 | lt_prog_compiler_pic_CXX= |
| 18739 | ;; |
| 18740 | *) |
| 18741 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 18742 | ;; |
| 18743 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18744 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 18746 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 18747 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 18748 | $as_echo_n "(cached) " >&6 |
| 18749 | else |
| 18750 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 18751 | fi |
| 18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 18753 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 18754 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18755 | |
| 18756 | # |
| 18757 | # Check to make sure the PIC flag actually works. |
| 18758 | # |
| 18759 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 18760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 18761 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18762 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18763 | $as_echo_n "(cached) " >&6 |
| 18764 | else |
| 18765 | lt_cv_prog_compiler_pic_works_CXX=no |
| 18766 | ac_outfile=conftest.$ac_objext |
| 18767 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18768 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 18769 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18770 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18771 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18772 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18773 | # The option is referenced via a variable to avoid confusing sed. |
| 18774 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18777 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18778 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18779 | (eval "$lt_compile" 2>conftest.err) |
| 18780 | ac_status=$? |
| 18781 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18783 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18784 | # The compiler can only warn and ignore the option if not recognized |
| 18785 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18786 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18788 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 18789 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 18790 | fi |
| 18791 | fi |
| 18792 | $RM conftest* |
| 18793 | |
| 18794 | fi |
| 18795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 18796 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 18797 | |
| 18798 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 18799 | case $lt_prog_compiler_pic_CXX in |
| 18800 | "" | " "*) ;; |
| 18801 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 18802 | esac |
| 18803 | else |
| 18804 | lt_prog_compiler_pic_CXX= |
| 18805 | lt_prog_compiler_can_build_shared_CXX=no |
| 18806 | fi |
| 18807 | |
| 18808 | fi |
| 18809 | |
| 18810 | |
| 18811 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18812 | |
| 18813 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18814 | # |
| 18815 | # Check to make sure the static flag actually works. |
| 18816 | # |
| 18817 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 18818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 18819 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18820 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18821 | $as_echo_n "(cached) " >&6 |
| 18822 | else |
| 18823 | lt_cv_prog_compiler_static_works_CXX=no |
| 18824 | save_LDFLAGS="$LDFLAGS" |
| 18825 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 18826 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 18827 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 18828 | # The linker can only warn and ignore the option if not recognized |
| 18829 | # So say no if there are warnings |
| 18830 | if test -s conftest.err; then |
| 18831 | # Append any errors to the config.log. |
| 18832 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18833 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18834 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18835 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 18836 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18837 | fi |
| 18838 | else |
| 18839 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18840 | fi |
| 18841 | fi |
| 18842 | $RM -r conftest* |
| 18843 | LDFLAGS="$save_LDFLAGS" |
| 18844 | |
| 18845 | fi |
| 18846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 18847 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 18848 | |
| 18849 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 18850 | : |
| 18851 | else |
| 18852 | lt_prog_compiler_static_CXX= |
| 18853 | fi |
| 18854 | |
| 18855 | |
| 18856 | |
| 18857 | |
| 18858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18859 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18860 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18861 | $as_echo_n "(cached) " >&6 |
| 18862 | else |
| 18863 | lt_cv_prog_compiler_c_o_CXX=no |
| 18864 | $RM -r conftest 2>/dev/null |
| 18865 | mkdir conftest |
| 18866 | cd conftest |
| 18867 | mkdir out |
| 18868 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18869 | |
| 18870 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18871 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18872 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18873 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18874 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18875 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18876 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18877 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18878 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18879 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18880 | (eval "$lt_compile" 2>out/conftest.err) |
| 18881 | ac_status=$? |
| 18882 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18884 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18885 | then |
| 18886 | # The compiler can only warn and ignore the option if not recognized |
| 18887 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18888 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18889 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18890 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18891 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18892 | fi |
| 18893 | fi |
| 18894 | chmod u+w . 2>&5 |
| 18895 | $RM conftest* |
| 18896 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18897 | # template instantiation |
| 18898 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18899 | $RM out/* && rmdir out |
| 18900 | cd .. |
| 18901 | $RM -r conftest |
| 18902 | $RM conftest* |
| 18903 | |
| 18904 | fi |
| 18905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18906 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18907 | |
| 18908 | |
| 18909 | |
| 18910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18911 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18912 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18913 | $as_echo_n "(cached) " >&6 |
| 18914 | else |
| 18915 | lt_cv_prog_compiler_c_o_CXX=no |
| 18916 | $RM -r conftest 2>/dev/null |
| 18917 | mkdir conftest |
| 18918 | cd conftest |
| 18919 | mkdir out |
| 18920 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18921 | |
| 18922 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18923 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18924 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18925 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18926 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18927 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18928 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18929 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18930 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18931 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18932 | (eval "$lt_compile" 2>out/conftest.err) |
| 18933 | ac_status=$? |
| 18934 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18936 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18937 | then |
| 18938 | # The compiler can only warn and ignore the option if not recognized |
| 18939 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18940 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18941 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18942 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18943 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18944 | fi |
| 18945 | fi |
| 18946 | chmod u+w . 2>&5 |
| 18947 | $RM conftest* |
| 18948 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18949 | # template instantiation |
| 18950 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18951 | $RM out/* && rmdir out |
| 18952 | cd .. |
| 18953 | $RM -r conftest |
| 18954 | $RM conftest* |
| 18955 | |
| 18956 | fi |
| 18957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18958 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18959 | |
| 18960 | |
| 18961 | |
| 18962 | |
| 18963 | hard_links="nottested" |
| 18964 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 18965 | # do not overwrite the value of need_locks provided by the user |
| 18966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 18967 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 18968 | hard_links=yes |
| 18969 | $RM conftest* |
| 18970 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18971 | touch conftest.a |
| 18972 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18973 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 18975 | $as_echo "$hard_links" >&6; } |
| 18976 | if test "$hard_links" = no; then |
| 18977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 18978 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 18979 | need_locks=warn |
| 18980 | fi |
| 18981 | else |
| 18982 | need_locks=no |
| 18983 | fi |
| 18984 | |
| 18985 | |
| 18986 | |
| 18987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18988 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 18989 | |
| 18990 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18991 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18992 | case $host_os in |
| 18993 | aix[4-9]*) |
| 18994 | # If we're using GNU nm, then we don't want the "-C" option. |
| 18995 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18996 | # Also, AIX nm treats weak defined symbols like other global defined |
| 18997 | # symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18998 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18999 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19000 | else |
| 19001 | 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' |
| 19002 | fi |
| 19003 | ;; |
| 19004 | pw32*) |
| 19005 | export_symbols_cmds_CXX="$ltdll_cmds" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19006 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19007 | cygwin* | mingw* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19008 | case $cc_basename in |
| 19009 | cl*) ;; |
| 19010 | *) |
| 19011 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 19012 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 19013 | ;; |
| 19014 | esac |
| 19015 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19016 | *) |
| 19017 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19018 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19019 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19020 | |
| 19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 19022 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 19023 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19024 | |
| 19025 | with_gnu_ld_CXX=$with_gnu_ld |
| 19026 | |
| 19027 | |
| 19028 | |
| 19029 | |
| 19030 | |
| 19031 | |
| 19032 | # |
| 19033 | # Do we need to explicitly link libc? |
| 19034 | # |
| 19035 | case "x$archive_cmds_need_lc_CXX" in |
| 19036 | x|xyes) |
| 19037 | # Assume -lc should be added |
| 19038 | archive_cmds_need_lc_CXX=yes |
| 19039 | |
| 19040 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19041 | case $archive_cmds_CXX in |
| 19042 | *'~'*) |
| 19043 | # FIXME: we may have to deal with multi-command sequences. |
| 19044 | ;; |
| 19045 | '$CC '*) |
| 19046 | # Test whether the compiler implicitly links with -lc since on some |
| 19047 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19048 | # to ld, don't add -lc before -lgcc. |
| 19049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 19050 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19051 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19052 | $as_echo_n "(cached) " >&6 |
| 19053 | else |
| 19054 | $RM conftest* |
| 19055 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19056 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19057 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19058 | (eval $ac_compile) 2>&5 |
| 19059 | ac_status=$? |
| 19060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19061 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19062 | soname=conftest |
| 19063 | lib=conftest |
| 19064 | libobjs=conftest.$ac_objext |
| 19065 | deplibs= |
| 19066 | wl=$lt_prog_compiler_wl_CXX |
| 19067 | pic_flag=$lt_prog_compiler_pic_CXX |
| 19068 | compiler_flags=-v |
| 19069 | linker_flags=-v |
| 19070 | verstring= |
| 19071 | output_objdir=. |
| 19072 | libname=conftest |
| 19073 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19074 | allow_undefined_flag_CXX= |
| 19075 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19076 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19077 | ac_status=$? |
| 19078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19079 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19080 | then |
| 19081 | lt_cv_archive_cmds_need_lc_CXX=no |
| 19082 | else |
| 19083 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 19084 | fi |
| 19085 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19086 | else |
| 19087 | cat conftest.err 1>&5 |
| 19088 | fi |
| 19089 | $RM conftest* |
| 19090 | |
| 19091 | fi |
| 19092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 19093 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 19094 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19095 | ;; |
| 19096 | esac |
| 19097 | fi |
| 19098 | ;; |
| 19099 | esac |
| 19100 | |
| 19101 | |
| 19102 | |
| 19103 | |
| 19104 | |
| 19105 | |
| 19106 | |
| 19107 | |
| 19108 | |
| 19109 | |
| 19110 | |
| 19111 | |
| 19112 | |
| 19113 | |
| 19114 | |
| 19115 | |
| 19116 | |
| 19117 | |
| 19118 | |
| 19119 | |
| 19120 | |
| 19121 | |
| 19122 | |
| 19123 | |
| 19124 | |
| 19125 | |
| 19126 | |
| 19127 | |
| 19128 | |
| 19129 | |
| 19130 | |
| 19131 | |
| 19132 | |
| 19133 | |
| 19134 | |
| 19135 | |
| 19136 | |
| 19137 | |
| 19138 | |
| 19139 | |
| 19140 | |
| 19141 | |
| 19142 | |
| 19143 | |
| 19144 | |
| 19145 | |
| 19146 | |
| 19147 | |
| 19148 | |
| 19149 | |
| 19150 | |
| 19151 | |
| 19152 | |
| 19153 | |
| 19154 | |
| 19155 | |
| 19156 | |
| 19157 | |
| 19158 | |
| 19159 | |
| 19160 | |
| 19161 | |
| 19162 | |
| 19163 | |
| 19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 19165 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 19166 | |
| 19167 | library_names_spec= |
| 19168 | libname_spec='lib$name' |
| 19169 | soname_spec= |
| 19170 | shrext_cmds=".so" |
| 19171 | postinstall_cmds= |
| 19172 | postuninstall_cmds= |
| 19173 | finish_cmds= |
| 19174 | finish_eval= |
| 19175 | shlibpath_var= |
| 19176 | shlibpath_overrides_runpath=unknown |
| 19177 | version_type=none |
| 19178 | dynamic_linker="$host_os ld.so" |
| 19179 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19180 | need_lib_prefix=unknown |
| 19181 | hardcode_into_libs=no |
| 19182 | |
| 19183 | # when you set need_version to no, make sure it does not cause -set_version |
| 19184 | # flags to be left without arguments |
| 19185 | need_version=unknown |
| 19186 | |
| 19187 | case $host_os in |
| 19188 | aix3*) |
| 19189 | version_type=linux |
| 19190 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19191 | shlibpath_var=LIBPATH |
| 19192 | |
| 19193 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19194 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19195 | ;; |
| 19196 | |
| 19197 | aix[4-9]*) |
| 19198 | version_type=linux |
| 19199 | need_lib_prefix=no |
| 19200 | need_version=no |
| 19201 | hardcode_into_libs=yes |
| 19202 | if test "$host_cpu" = ia64; then |
| 19203 | # AIX 5 supports IA64 |
| 19204 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19205 | shlibpath_var=LD_LIBRARY_PATH |
| 19206 | else |
| 19207 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19208 | # for dependence libraries. The import file would start with |
| 19209 | # the line `#! .'. This would cause the generated library to |
| 19210 | # depend on `.', always an invalid library. This was fixed in |
| 19211 | # development snapshots of GCC prior to 3.0. |
| 19212 | case $host_os in |
| 19213 | aix4 | aix4.[01] | aix4.[01].*) |
| 19214 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19215 | echo ' yes ' |
| 19216 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 19217 | : |
| 19218 | else |
| 19219 | can_build_shared=no |
| 19220 | fi |
| 19221 | ;; |
| 19222 | esac |
| 19223 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19224 | # soname into executable. Probably we can add versioning support to |
| 19225 | # collect2, so additional links can be useful in future. |
| 19226 | if test "$aix_use_runtimelinking" = yes; then |
| 19227 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19228 | # instead of lib<name>.a to let people know that these are not |
| 19229 | # typical AIX shared libraries. |
| 19230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19231 | else |
| 19232 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19233 | # and later when we are not doing run time linking. |
| 19234 | library_names_spec='${libname}${release}.a $libname.a' |
| 19235 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19236 | fi |
| 19237 | shlibpath_var=LIBPATH |
| 19238 | fi |
| 19239 | ;; |
| 19240 | |
| 19241 | amigaos*) |
| 19242 | case $host_cpu in |
| 19243 | powerpc) |
| 19244 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 19245 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 19246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19247 | ;; |
| 19248 | m68k) |
| 19249 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19250 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19251 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19252 | ;; |
| 19253 | esac |
| 19254 | ;; |
| 19255 | |
| 19256 | beos*) |
| 19257 | library_names_spec='${libname}${shared_ext}' |
| 19258 | dynamic_linker="$host_os ld.so" |
| 19259 | shlibpath_var=LIBRARY_PATH |
| 19260 | ;; |
| 19261 | |
| 19262 | bsdi[45]*) |
| 19263 | version_type=linux |
| 19264 | need_version=no |
| 19265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19267 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19268 | shlibpath_var=LD_LIBRARY_PATH |
| 19269 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19270 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19271 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19272 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19273 | # libtool to hard-code these into programs |
| 19274 | ;; |
| 19275 | |
| 19276 | cygwin* | mingw* | pw32* | cegcc*) |
| 19277 | version_type=windows |
| 19278 | shrext_cmds=".dll" |
| 19279 | need_version=no |
| 19280 | need_lib_prefix=no |
| 19281 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19282 | case $GCC,$cc_basename in |
| 19283 | yes,*) |
| 19284 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19285 | library_names_spec='$libname.dll.a' |
| 19286 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19287 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19288 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 19289 | dldir=$destdir/`dirname \$dlpath`~ |
| 19290 | test -d \$dldir || mkdir -p \$dldir~ |
| 19291 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19292 | chmod a+x \$dldir/$dlname~ |
| 19293 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 19294 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 19295 | fi' |
| 19296 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19297 | dlpath=$dir/\$dldll~ |
| 19298 | $RM \$dlpath' |
| 19299 | shlibpath_overrides_runpath=yes |
| 19300 | |
| 19301 | case $host_os in |
| 19302 | cygwin*) |
| 19303 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19304 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19305 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19306 | ;; |
| 19307 | mingw* | cegcc*) |
| 19308 | # MinGW DLLs use traditional 'lib' prefix |
| 19309 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19310 | ;; |
| 19311 | pw32*) |
| 19312 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 19313 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19314 | ;; |
| 19315 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19316 | dynamic_linker='Win32 ld.exe' |
| 19317 | ;; |
| 19318 | |
| 19319 | *,cl*) |
| 19320 | # Native MSVC |
| 19321 | libname_spec='$name' |
| 19322 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19323 | library_names_spec='${libname}.dll.lib' |
| 19324 | |
| 19325 | case $build_os in |
| 19326 | mingw*) |
| 19327 | sys_lib_search_path_spec= |
| 19328 | lt_save_ifs=$IFS |
| 19329 | IFS=';' |
| 19330 | for lt_path in $LIB |
| 19331 | do |
| 19332 | IFS=$lt_save_ifs |
| 19333 | # Let DOS variable expansion print the short 8.3 style file name. |
| 19334 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 19335 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 19336 | done |
| 19337 | IFS=$lt_save_ifs |
| 19338 | # Convert to MSYS style. |
| 19339 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 19340 | ;; |
| 19341 | cygwin*) |
| 19342 | # Convert to unix form, then to dos form, then back to unix form |
| 19343 | # but this time dos style (no spaces!) so that the unix form looks |
| 19344 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 19345 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 19346 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 19347 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19348 | ;; |
| 19349 | *) |
| 19350 | sys_lib_search_path_spec="$LIB" |
| 19351 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 19352 | # It is most probably a Windows format PATH. |
| 19353 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19354 | else |
| 19355 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19356 | fi |
| 19357 | # FIXME: find the short name or the path components, as spaces are |
| 19358 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 19359 | ;; |
| 19360 | esac |
| 19361 | |
| 19362 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19363 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19364 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 19365 | dldir=$destdir/`dirname \$dlpath`~ |
| 19366 | test -d \$dldir || mkdir -p \$dldir~ |
| 19367 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 19368 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19369 | dlpath=$dir/\$dldll~ |
| 19370 | $RM \$dlpath' |
| 19371 | shlibpath_overrides_runpath=yes |
| 19372 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19373 | ;; |
| 19374 | |
| 19375 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19376 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19377 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19378 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19379 | ;; |
| 19380 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19381 | # FIXME: first we should search . and the directory the executable is in |
| 19382 | shlibpath_var=PATH |
| 19383 | ;; |
| 19384 | |
| 19385 | darwin* | rhapsody*) |
| 19386 | dynamic_linker="$host_os dyld" |
| 19387 | version_type=darwin |
| 19388 | need_lib_prefix=no |
| 19389 | need_version=no |
| 19390 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 19391 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19392 | shlibpath_overrides_runpath=yes |
| 19393 | shlibpath_var=DYLD_LIBRARY_PATH |
| 19394 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 19395 | |
| 19396 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19397 | ;; |
| 19398 | |
| 19399 | dgux*) |
| 19400 | version_type=linux |
| 19401 | need_lib_prefix=no |
| 19402 | need_version=no |
| 19403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19404 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19405 | shlibpath_var=LD_LIBRARY_PATH |
| 19406 | ;; |
| 19407 | |
| 19408 | freebsd1*) |
| 19409 | dynamic_linker=no |
| 19410 | ;; |
| 19411 | |
| 19412 | freebsd* | dragonfly*) |
| 19413 | # DragonFly does not have aout. When/if they implement a new |
| 19414 | # versioning mechanism, adjust this. |
| 19415 | if test -x /usr/bin/objformat; then |
| 19416 | objformat=`/usr/bin/objformat` |
| 19417 | else |
| 19418 | case $host_os in |
| 19419 | freebsd[123]*) objformat=aout ;; |
| 19420 | *) objformat=elf ;; |
| 19421 | esac |
| 19422 | fi |
| 19423 | version_type=freebsd-$objformat |
| 19424 | case $version_type in |
| 19425 | freebsd-elf*) |
| 19426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19427 | need_version=no |
| 19428 | need_lib_prefix=no |
| 19429 | ;; |
| 19430 | freebsd-*) |
| 19431 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19432 | need_version=yes |
| 19433 | ;; |
| 19434 | esac |
| 19435 | shlibpath_var=LD_LIBRARY_PATH |
| 19436 | case $host_os in |
| 19437 | freebsd2*) |
| 19438 | shlibpath_overrides_runpath=yes |
| 19439 | ;; |
| 19440 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 19441 | shlibpath_overrides_runpath=yes |
| 19442 | hardcode_into_libs=yes |
| 19443 | ;; |
| 19444 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19445 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 19446 | shlibpath_overrides_runpath=no |
| 19447 | hardcode_into_libs=yes |
| 19448 | ;; |
| 19449 | *) # from 4.6 on, and DragonFly |
| 19450 | shlibpath_overrides_runpath=yes |
| 19451 | hardcode_into_libs=yes |
| 19452 | ;; |
| 19453 | esac |
| 19454 | ;; |
| 19455 | |
| 19456 | gnu*) |
| 19457 | version_type=linux |
| 19458 | need_lib_prefix=no |
| 19459 | need_version=no |
| 19460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19462 | shlibpath_var=LD_LIBRARY_PATH |
| 19463 | hardcode_into_libs=yes |
| 19464 | ;; |
| 19465 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19466 | haiku*) |
| 19467 | version_type=linux |
| 19468 | need_lib_prefix=no |
| 19469 | need_version=no |
| 19470 | dynamic_linker="$host_os runtime_loader" |
| 19471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19472 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19473 | shlibpath_var=LIBRARY_PATH |
| 19474 | shlibpath_overrides_runpath=yes |
| 19475 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 19476 | hardcode_into_libs=yes |
| 19477 | ;; |
| 19478 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19479 | hpux9* | hpux10* | hpux11*) |
| 19480 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19481 | # link against other versions. |
| 19482 | version_type=sunos |
| 19483 | need_lib_prefix=no |
| 19484 | need_version=no |
| 19485 | case $host_cpu in |
| 19486 | ia64*) |
| 19487 | shrext_cmds='.so' |
| 19488 | hardcode_into_libs=yes |
| 19489 | dynamic_linker="$host_os dld.so" |
| 19490 | shlibpath_var=LD_LIBRARY_PATH |
| 19491 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19494 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19495 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19496 | else |
| 19497 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19498 | fi |
| 19499 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19500 | ;; |
| 19501 | hppa*64*) |
| 19502 | shrext_cmds='.sl' |
| 19503 | hardcode_into_libs=yes |
| 19504 | dynamic_linker="$host_os dld.sl" |
| 19505 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19506 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19508 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19509 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19510 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19511 | ;; |
| 19512 | *) |
| 19513 | shrext_cmds='.sl' |
| 19514 | dynamic_linker="$host_os dld.sl" |
| 19515 | shlibpath_var=SHLIB_PATH |
| 19516 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19518 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19519 | ;; |
| 19520 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19521 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19522 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19523 | # or fails outright, so override atomically: |
| 19524 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19525 | ;; |
| 19526 | |
| 19527 | interix[3-9]*) |
| 19528 | version_type=linux |
| 19529 | need_lib_prefix=no |
| 19530 | need_version=no |
| 19531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19533 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19534 | shlibpath_var=LD_LIBRARY_PATH |
| 19535 | shlibpath_overrides_runpath=no |
| 19536 | hardcode_into_libs=yes |
| 19537 | ;; |
| 19538 | |
| 19539 | irix5* | irix6* | nonstopux*) |
| 19540 | case $host_os in |
| 19541 | nonstopux*) version_type=nonstopux ;; |
| 19542 | *) |
| 19543 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 19544 | version_type=linux |
| 19545 | else |
| 19546 | version_type=irix |
| 19547 | fi ;; |
| 19548 | esac |
| 19549 | need_lib_prefix=no |
| 19550 | need_version=no |
| 19551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19553 | case $host_os in |
| 19554 | irix5* | nonstopux*) |
| 19555 | libsuff= shlibsuff= |
| 19556 | ;; |
| 19557 | *) |
| 19558 | case $LD in # libtool.m4 will add one of these switches to LD |
| 19559 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19560 | libsuff= shlibsuff= libmagic=32-bit;; |
| 19561 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19562 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19563 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19564 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19565 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 19566 | esac |
| 19567 | ;; |
| 19568 | esac |
| 19569 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19570 | shlibpath_overrides_runpath=no |
| 19571 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 19572 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 19573 | hardcode_into_libs=yes |
| 19574 | ;; |
| 19575 | |
| 19576 | # No shared lib support for Linux oldld, aout, or coff. |
| 19577 | linux*oldld* | linux*aout* | linux*coff*) |
| 19578 | dynamic_linker=no |
| 19579 | ;; |
| 19580 | |
| 19581 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19582 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19583 | version_type=linux |
| 19584 | need_lib_prefix=no |
| 19585 | need_version=no |
| 19586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19587 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19588 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19589 | shlibpath_var=LD_LIBRARY_PATH |
| 19590 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19591 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19592 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19593 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19594 | $as_echo_n "(cached) " >&6 |
| 19595 | else |
| 19596 | lt_cv_shlibpath_overrides_runpath=no |
| 19597 | save_LDFLAGS=$LDFLAGS |
| 19598 | save_libdir=$libdir |
| 19599 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 19600 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 19601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19602 | /* end confdefs.h. */ |
| 19603 | |
| 19604 | int |
| 19605 | main () |
| 19606 | { |
| 19607 | |
| 19608 | ; |
| 19609 | return 0; |
| 19610 | } |
| 19611 | _ACEOF |
| 19612 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19613 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19614 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19615 | fi |
| 19616 | fi |
| 19617 | rm -f core conftest.err conftest.$ac_objext \ |
| 19618 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19619 | LDFLAGS=$save_LDFLAGS |
| 19620 | libdir=$save_libdir |
| 19621 | |
| 19622 | fi |
| 19623 | |
| 19624 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19625 | |
| 19626 | # This implies no fast_install, which is unacceptable. |
| 19627 | # Some rework will be needed to allow for fast_install |
| 19628 | # before this can be enabled. |
| 19629 | hardcode_into_libs=yes |
| 19630 | |
| 19631 | # Add ABI-specific directories to the system library path. |
| 19632 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 19633 | |
| 19634 | # Append ld.so.conf contents to the search path |
| 19635 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19636 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19637 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19638 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19639 | fi |
| 19640 | |
| 19641 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19642 | # powerpc, because MkLinux only supported shared libraries with the |
| 19643 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 19644 | # most powerpc-linux boxes support dynamic linking these days and |
| 19645 | # people can always --disable-shared, the test was removed, and we |
| 19646 | # assume the GNU/Linux dynamic linker is in use. |
| 19647 | dynamic_linker='GNU/Linux ld.so' |
| 19648 | ;; |
| 19649 | |
| 19650 | netbsd*) |
| 19651 | version_type=sunos |
| 19652 | need_lib_prefix=no |
| 19653 | need_version=no |
| 19654 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 19655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19656 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19657 | dynamic_linker='NetBSD (a.out) ld.so' |
| 19658 | else |
| 19659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19660 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19661 | dynamic_linker='NetBSD ld.elf_so' |
| 19662 | fi |
| 19663 | shlibpath_var=LD_LIBRARY_PATH |
| 19664 | shlibpath_overrides_runpath=yes |
| 19665 | hardcode_into_libs=yes |
| 19666 | ;; |
| 19667 | |
| 19668 | newsos6) |
| 19669 | version_type=linux |
| 19670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19671 | shlibpath_var=LD_LIBRARY_PATH |
| 19672 | shlibpath_overrides_runpath=yes |
| 19673 | ;; |
| 19674 | |
| 19675 | *nto* | *qnx*) |
| 19676 | version_type=qnx |
| 19677 | need_lib_prefix=no |
| 19678 | need_version=no |
| 19679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19681 | shlibpath_var=LD_LIBRARY_PATH |
| 19682 | shlibpath_overrides_runpath=no |
| 19683 | hardcode_into_libs=yes |
| 19684 | dynamic_linker='ldqnx.so' |
| 19685 | ;; |
| 19686 | |
| 19687 | openbsd*) |
| 19688 | version_type=sunos |
| 19689 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 19690 | need_lib_prefix=no |
| 19691 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 19692 | case $host_os in |
| 19693 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 19694 | *) need_version=no ;; |
| 19695 | esac |
| 19696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19697 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19698 | shlibpath_var=LD_LIBRARY_PATH |
| 19699 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19700 | case $host_os in |
| 19701 | openbsd2.[89] | openbsd2.[89].*) |
| 19702 | shlibpath_overrides_runpath=no |
| 19703 | ;; |
| 19704 | *) |
| 19705 | shlibpath_overrides_runpath=yes |
| 19706 | ;; |
| 19707 | esac |
| 19708 | else |
| 19709 | shlibpath_overrides_runpath=yes |
| 19710 | fi |
| 19711 | ;; |
| 19712 | |
| 19713 | os2*) |
| 19714 | libname_spec='$name' |
| 19715 | shrext_cmds=".dll" |
| 19716 | need_lib_prefix=no |
| 19717 | library_names_spec='$libname${shared_ext} $libname.a' |
| 19718 | dynamic_linker='OS/2 ld.exe' |
| 19719 | shlibpath_var=LIBPATH |
| 19720 | ;; |
| 19721 | |
| 19722 | osf3* | osf4* | osf5*) |
| 19723 | version_type=osf |
| 19724 | need_lib_prefix=no |
| 19725 | need_version=no |
| 19726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19728 | shlibpath_var=LD_LIBRARY_PATH |
| 19729 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 19730 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 19731 | ;; |
| 19732 | |
| 19733 | rdos*) |
| 19734 | dynamic_linker=no |
| 19735 | ;; |
| 19736 | |
| 19737 | solaris*) |
| 19738 | version_type=linux |
| 19739 | need_lib_prefix=no |
| 19740 | need_version=no |
| 19741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19742 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19743 | shlibpath_var=LD_LIBRARY_PATH |
| 19744 | shlibpath_overrides_runpath=yes |
| 19745 | hardcode_into_libs=yes |
| 19746 | # ldd complains unless libraries are executable |
| 19747 | postinstall_cmds='chmod +x $lib' |
| 19748 | ;; |
| 19749 | |
| 19750 | sunos4*) |
| 19751 | version_type=sunos |
| 19752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19753 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19754 | shlibpath_var=LD_LIBRARY_PATH |
| 19755 | shlibpath_overrides_runpath=yes |
| 19756 | if test "$with_gnu_ld" = yes; then |
| 19757 | need_lib_prefix=no |
| 19758 | fi |
| 19759 | need_version=yes |
| 19760 | ;; |
| 19761 | |
| 19762 | sysv4 | sysv4.3*) |
| 19763 | version_type=linux |
| 19764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19765 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19766 | shlibpath_var=LD_LIBRARY_PATH |
| 19767 | case $host_vendor in |
| 19768 | sni) |
| 19769 | shlibpath_overrides_runpath=no |
| 19770 | need_lib_prefix=no |
| 19771 | runpath_var=LD_RUN_PATH |
| 19772 | ;; |
| 19773 | siemens) |
| 19774 | need_lib_prefix=no |
| 19775 | ;; |
| 19776 | motorola) |
| 19777 | need_lib_prefix=no |
| 19778 | need_version=no |
| 19779 | shlibpath_overrides_runpath=no |
| 19780 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 19781 | ;; |
| 19782 | esac |
| 19783 | ;; |
| 19784 | |
| 19785 | sysv4*MP*) |
| 19786 | if test -d /usr/nec ;then |
| 19787 | version_type=linux |
| 19788 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 19789 | soname_spec='$libname${shared_ext}.$major' |
| 19790 | shlibpath_var=LD_LIBRARY_PATH |
| 19791 | fi |
| 19792 | ;; |
| 19793 | |
| 19794 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19795 | version_type=freebsd-elf |
| 19796 | need_lib_prefix=no |
| 19797 | need_version=no |
| 19798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19800 | shlibpath_var=LD_LIBRARY_PATH |
| 19801 | shlibpath_overrides_runpath=yes |
| 19802 | hardcode_into_libs=yes |
| 19803 | if test "$with_gnu_ld" = yes; then |
| 19804 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 19805 | else |
| 19806 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 19807 | case $host_os in |
| 19808 | sco3.2v5*) |
| 19809 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19810 | ;; |
| 19811 | esac |
| 19812 | fi |
| 19813 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 19814 | ;; |
| 19815 | |
| 19816 | tpf*) |
| 19817 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 19818 | version_type=linux |
| 19819 | need_lib_prefix=no |
| 19820 | need_version=no |
| 19821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19822 | shlibpath_var=LD_LIBRARY_PATH |
| 19823 | shlibpath_overrides_runpath=no |
| 19824 | hardcode_into_libs=yes |
| 19825 | ;; |
| 19826 | |
| 19827 | uts4*) |
| 19828 | version_type=linux |
| 19829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19831 | shlibpath_var=LD_LIBRARY_PATH |
| 19832 | ;; |
| 19833 | |
| 19834 | *) |
| 19835 | dynamic_linker=no |
| 19836 | ;; |
| 19837 | esac |
| 19838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 19839 | $as_echo "$dynamic_linker" >&6; } |
| 19840 | test "$dynamic_linker" = no && can_build_shared=no |
| 19841 | |
| 19842 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19843 | if test "$GCC" = yes; then |
| 19844 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19845 | fi |
| 19846 | |
| 19847 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 19848 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 19849 | fi |
| 19850 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 19851 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 19852 | fi |
| 19853 | |
| 19854 | |
| 19855 | |
| 19856 | |
| 19857 | |
| 19858 | |
| 19859 | |
| 19860 | |
| 19861 | |
| 19862 | |
| 19863 | |
| 19864 | |
| 19865 | |
| 19866 | |
| 19867 | |
| 19868 | |
| 19869 | |
| 19870 | |
| 19871 | |
| 19872 | |
| 19873 | |
| 19874 | |
| 19875 | |
| 19876 | |
| 19877 | |
| 19878 | |
| 19879 | |
| 19880 | |
| 19881 | |
| 19882 | |
| 19883 | |
| 19884 | |
| 19885 | |
| 19886 | |
| 19887 | |
| 19888 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19889 | |
| 19890 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 19892 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 19893 | hardcode_action_CXX= |
| 19894 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 19895 | test -n "$runpath_var_CXX" || |
| 19896 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 19897 | |
| 19898 | # We can hardcode non-existent directories. |
| 19899 | if test "$hardcode_direct_CXX" != no && |
| 19900 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 19901 | # have to relink, otherwise we might link with an installed library |
| 19902 | # when we should be linking with a yet-to-be-installed one |
| 19903 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 19904 | test "$hardcode_minus_L_CXX" != no; then |
| 19905 | # Linking always hardcodes the temporary library directory. |
| 19906 | hardcode_action_CXX=relink |
| 19907 | else |
| 19908 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 19909 | hardcode_action_CXX=immediate |
| 19910 | fi |
| 19911 | else |
| 19912 | # We cannot hardcode anything, or else we can only hardcode existing |
| 19913 | # directories. |
| 19914 | hardcode_action_CXX=unsupported |
| 19915 | fi |
| 19916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 19917 | $as_echo "$hardcode_action_CXX" >&6; } |
| 19918 | |
| 19919 | if test "$hardcode_action_CXX" = relink || |
| 19920 | test "$inherit_rpath_CXX" = yes; then |
| 19921 | # Fast installation is not supported |
| 19922 | enable_fast_install=no |
| 19923 | elif test "$shlibpath_overrides_runpath" = yes || |
| 19924 | test "$enable_shared" = no; then |
| 19925 | # Fast installation is not necessary |
| 19926 | enable_fast_install=needless |
| 19927 | fi |
| 19928 | |
| 19929 | |
| 19930 | |
| 19931 | |
| 19932 | |
| 19933 | |
| 19934 | |
| 19935 | fi # test -n "$compiler" |
| 19936 | |
| 19937 | CC=$lt_save_CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19938 | CFLAGS=$lt_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19939 | LDCXX=$LD |
| 19940 | LD=$lt_save_LD |
| 19941 | GCC=$lt_save_GCC |
| 19942 | with_gnu_ld=$lt_save_with_gnu_ld |
| 19943 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 19944 | lt_cv_path_LD=$lt_save_path_LD |
| 19945 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 19946 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 19947 | fi # test "$_lt_caught_CXX_error" != yes |
| 19948 | |
| 19949 | ac_ext=c |
| 19950 | ac_cpp='$CPP $CPPFLAGS' |
| 19951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19954 | |
| 19955 | |
| 19956 | |
| 19957 | |
| 19958 | |
| 19959 | |
| 19960 | |
| 19961 | |
| 19962 | |
| 19963 | |
| 19964 | |
| 19965 | |
| 19966 | |
| 19967 | ac_config_commands="$ac_config_commands libtool" |
| 19968 | |
| 19969 | |
| 19970 | |
| 19971 | |
| 19972 | # Only expand once: |
| 19973 | |
| 19974 | |
| 19975 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19976 | |
| 19977 | |
| 19978 | # Configure libltdl |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19979 | |
| 19980 | |
| 19981 | |
| 19982 | |
| 19983 | |
| 19984 | |
| 19985 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| 19987 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19988 | if ${libltdl_cv_shlibext+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19989 | $as_echo_n "(cached) " >&6 |
| 19990 | else |
| 19991 | |
| 19992 | module=yes |
| 19993 | eval libltdl_cv_shlibext=$shrext_cmds |
| 19994 | |
| 19995 | fi |
| 19996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| 19997 | $as_echo "$libltdl_cv_shlibext" >&6; } |
| 19998 | if test -n "$libltdl_cv_shlibext"; then |
| 19999 | |
| 20000 | cat >>confdefs.h <<_ACEOF |
| 20001 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 20002 | _ACEOF |
| 20003 | |
| 20004 | fi |
| 20005 | |
| 20006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| 20007 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20008 | if ${lt_cv_module_path_var+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20009 | $as_echo_n "(cached) " >&6 |
| 20010 | else |
| 20011 | lt_cv_module_path_var="$shlibpath_var" |
| 20012 | fi |
| 20013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| 20014 | $as_echo "$lt_cv_module_path_var" >&6; } |
| 20015 | if test -n "$lt_cv_module_path_var"; then |
| 20016 | |
| 20017 | cat >>confdefs.h <<_ACEOF |
| 20018 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 20019 | _ACEOF |
| 20020 | |
| 20021 | fi |
| 20022 | |
| 20023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| 20024 | $as_echo_n "checking for the default library search path... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20025 | if ${lt_cv_sys_dlsearch_path+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20026 | $as_echo_n "(cached) " >&6 |
| 20027 | else |
| 20028 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 20029 | fi |
| 20030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| 20031 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 20032 | if test -n "$lt_cv_sys_dlsearch_path"; then |
| 20033 | sys_dlsearch_path= |
| 20034 | for dir in $lt_cv_sys_dlsearch_path; do |
| 20035 | if test -z "$sys_dlsearch_path"; then |
| 20036 | sys_dlsearch_path="$dir" |
| 20037 | else |
| 20038 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 20039 | fi |
| 20040 | done |
| 20041 | |
| 20042 | cat >>confdefs.h <<_ACEOF |
| 20043 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 20044 | _ACEOF |
| 20045 | |
| 20046 | fi |
| 20047 | |
| 20048 | |
| 20049 | LT_DLLOADERS= |
| 20050 | |
| 20051 | |
| 20052 | ac_ext=c |
| 20053 | ac_cpp='$CPP $CPPFLAGS' |
| 20054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20057 | |
| 20058 | |
| 20059 | LIBADD_DLOPEN= |
| 20060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 20061 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20062 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20063 | $as_echo_n "(cached) " >&6 |
| 20064 | else |
| 20065 | ac_func_search_save_LIBS=$LIBS |
| 20066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20067 | /* end confdefs.h. */ |
| 20068 | |
| 20069 | /* Override any GCC internal prototype to avoid an error. |
| 20070 | Use char because int might match the return type of a GCC |
| 20071 | builtin and then its argument prototype would still apply. */ |
| 20072 | #ifdef __cplusplus |
| 20073 | extern "C" |
| 20074 | #endif |
| 20075 | char dlopen (); |
| 20076 | int |
| 20077 | main () |
| 20078 | { |
| 20079 | return dlopen (); |
| 20080 | ; |
| 20081 | return 0; |
| 20082 | } |
| 20083 | _ACEOF |
| 20084 | for ac_lib in '' dl; do |
| 20085 | if test -z "$ac_lib"; then |
| 20086 | ac_res="none required" |
| 20087 | else |
| 20088 | ac_res=-l$ac_lib |
| 20089 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20090 | fi |
| 20091 | if ac_fn_c_try_link "$LINENO"; then : |
| 20092 | ac_cv_search_dlopen=$ac_res |
| 20093 | fi |
| 20094 | rm -f core conftest.err conftest.$ac_objext \ |
| 20095 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20096 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20097 | break |
| 20098 | fi |
| 20099 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20100 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20101 | |
| 20102 | else |
| 20103 | ac_cv_search_dlopen=no |
| 20104 | fi |
| 20105 | rm conftest.$ac_ext |
| 20106 | LIBS=$ac_func_search_save_LIBS |
| 20107 | fi |
| 20108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 20109 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 20110 | ac_res=$ac_cv_search_dlopen |
| 20111 | if test "$ac_res" != no; then : |
| 20112 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 20113 | |
| 20114 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 20115 | |
| 20116 | if test "$ac_cv_search_dlopen" != "none required" ; then |
| 20117 | LIBADD_DLOPEN="-ldl" |
| 20118 | fi |
| 20119 | libltdl_cv_lib_dl_dlopen="yes" |
| 20120 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 20121 | else |
| 20122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20123 | /* end confdefs.h. */ |
| 20124 | #if HAVE_DLFCN_H |
| 20125 | # include <dlfcn.h> |
| 20126 | #endif |
| 20127 | |
| 20128 | int |
| 20129 | main () |
| 20130 | { |
| 20131 | dlopen(0, 0); |
| 20132 | ; |
| 20133 | return 0; |
| 20134 | } |
| 20135 | _ACEOF |
| 20136 | if ac_fn_c_try_link "$LINENO"; then : |
| 20137 | |
| 20138 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 20139 | |
| 20140 | libltdl_cv_func_dlopen="yes" |
| 20141 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 20142 | else |
| 20143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 20144 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20145 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20146 | $as_echo_n "(cached) " >&6 |
| 20147 | else |
| 20148 | ac_check_lib_save_LIBS=$LIBS |
| 20149 | LIBS="-lsvld $LIBS" |
| 20150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20151 | /* end confdefs.h. */ |
| 20152 | |
| 20153 | /* Override any GCC internal prototype to avoid an error. |
| 20154 | Use char because int might match the return type of a GCC |
| 20155 | builtin and then its argument prototype would still apply. */ |
| 20156 | #ifdef __cplusplus |
| 20157 | extern "C" |
| 20158 | #endif |
| 20159 | char dlopen (); |
| 20160 | int |
| 20161 | main () |
| 20162 | { |
| 20163 | return dlopen (); |
| 20164 | ; |
| 20165 | return 0; |
| 20166 | } |
| 20167 | _ACEOF |
| 20168 | if ac_fn_c_try_link "$LINENO"; then : |
| 20169 | ac_cv_lib_svld_dlopen=yes |
| 20170 | else |
| 20171 | ac_cv_lib_svld_dlopen=no |
| 20172 | fi |
| 20173 | rm -f core conftest.err conftest.$ac_objext \ |
| 20174 | conftest$ac_exeext conftest.$ac_ext |
| 20175 | LIBS=$ac_check_lib_save_LIBS |
| 20176 | fi |
| 20177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 20178 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20179 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20180 | |
| 20181 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 20182 | |
| 20183 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 20184 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 20185 | fi |
| 20186 | |
| 20187 | fi |
| 20188 | rm -f core conftest.err conftest.$ac_objext \ |
| 20189 | conftest$ac_exeext conftest.$ac_ext |
| 20190 | fi |
| 20191 | |
| 20192 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 20193 | then |
| 20194 | lt_save_LIBS="$LIBS" |
| 20195 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 20196 | for ac_func in dlerror |
| 20197 | do : |
| 20198 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20199 | if test "x$ac_cv_func_dlerror" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20200 | cat >>confdefs.h <<_ACEOF |
| 20201 | #define HAVE_DLERROR 1 |
| 20202 | _ACEOF |
| 20203 | |
| 20204 | fi |
| 20205 | done |
| 20206 | |
| 20207 | LIBS="$lt_save_LIBS" |
| 20208 | fi |
| 20209 | |
| 20210 | |
| 20211 | LIBADD_SHL_LOAD= |
| 20212 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20213 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20214 | |
| 20215 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 20216 | |
| 20217 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 20218 | else |
| 20219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 20220 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20221 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20222 | $as_echo_n "(cached) " >&6 |
| 20223 | else |
| 20224 | ac_check_lib_save_LIBS=$LIBS |
| 20225 | LIBS="-ldld $LIBS" |
| 20226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20227 | /* end confdefs.h. */ |
| 20228 | |
| 20229 | /* Override any GCC internal prototype to avoid an error. |
| 20230 | Use char because int might match the return type of a GCC |
| 20231 | builtin and then its argument prototype would still apply. */ |
| 20232 | #ifdef __cplusplus |
| 20233 | extern "C" |
| 20234 | #endif |
| 20235 | char shl_load (); |
| 20236 | int |
| 20237 | main () |
| 20238 | { |
| 20239 | return shl_load (); |
| 20240 | ; |
| 20241 | return 0; |
| 20242 | } |
| 20243 | _ACEOF |
| 20244 | if ac_fn_c_try_link "$LINENO"; then : |
| 20245 | ac_cv_lib_dld_shl_load=yes |
| 20246 | else |
| 20247 | ac_cv_lib_dld_shl_load=no |
| 20248 | fi |
| 20249 | rm -f core conftest.err conftest.$ac_objext \ |
| 20250 | conftest$ac_exeext conftest.$ac_ext |
| 20251 | LIBS=$ac_check_lib_save_LIBS |
| 20252 | fi |
| 20253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 20254 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20255 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20256 | |
| 20257 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 20258 | |
| 20259 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 20260 | LIBADD_SHL_LOAD="-ldld" |
| 20261 | fi |
| 20262 | |
| 20263 | fi |
| 20264 | |
| 20265 | |
| 20266 | |
| 20267 | case $host_os in |
| 20268 | darwin[1567].*) |
| 20269 | # We only want this for pre-Mac OS X 10.4. |
| 20270 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20271 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20272 | |
| 20273 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
| 20274 | |
| 20275 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 20276 | fi |
| 20277 | |
| 20278 | ;; |
| 20279 | beos*) |
| 20280 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 20281 | ;; |
| 20282 | cygwin* | mingw* | os2* | pw32*) |
| 20283 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 20284 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20285 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20286 | ac_have_decl=1 |
| 20287 | else |
| 20288 | ac_have_decl=0 |
| 20289 | fi |
| 20290 | |
| 20291 | cat >>confdefs.h <<_ACEOF |
| 20292 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
| 20293 | _ACEOF |
| 20294 | |
| 20295 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 20296 | ;; |
| 20297 | esac |
| 20298 | |
| 20299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 20300 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20301 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20302 | $as_echo_n "(cached) " >&6 |
| 20303 | else |
| 20304 | ac_check_lib_save_LIBS=$LIBS |
| 20305 | LIBS="-ldld $LIBS" |
| 20306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20307 | /* end confdefs.h. */ |
| 20308 | |
| 20309 | /* Override any GCC internal prototype to avoid an error. |
| 20310 | Use char because int might match the return type of a GCC |
| 20311 | builtin and then its argument prototype would still apply. */ |
| 20312 | #ifdef __cplusplus |
| 20313 | extern "C" |
| 20314 | #endif |
| 20315 | char dld_link (); |
| 20316 | int |
| 20317 | main () |
| 20318 | { |
| 20319 | return dld_link (); |
| 20320 | ; |
| 20321 | return 0; |
| 20322 | } |
| 20323 | _ACEOF |
| 20324 | if ac_fn_c_try_link "$LINENO"; then : |
| 20325 | ac_cv_lib_dld_dld_link=yes |
| 20326 | else |
| 20327 | ac_cv_lib_dld_dld_link=no |
| 20328 | fi |
| 20329 | rm -f core conftest.err conftest.$ac_objext \ |
| 20330 | conftest$ac_exeext conftest.$ac_ext |
| 20331 | LIBS=$ac_check_lib_save_LIBS |
| 20332 | fi |
| 20333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 20334 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20335 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20336 | |
| 20337 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
| 20338 | |
| 20339 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 20340 | fi |
| 20341 | |
| 20342 | |
| 20343 | |
| 20344 | |
| 20345 | LT_DLPREOPEN= |
| 20346 | if test -n "$LT_DLLOADERS" |
| 20347 | then |
| 20348 | for lt_loader in $LT_DLLOADERS; do |
| 20349 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 20350 | done |
| 20351 | |
| 20352 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
| 20353 | |
| 20354 | fi |
| 20355 | |
| 20356 | |
| 20357 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 20358 | |
| 20359 | |
| 20360 | ac_ext=c |
| 20361 | ac_cpp='$CPP $CPPFLAGS' |
| 20362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20365 | |
| 20366 | |
| 20367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| 20368 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20369 | if ${lt_cv_sys_symbol_underscore+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20370 | $as_echo_n "(cached) " >&6 |
| 20371 | else |
| 20372 | lt_cv_sys_symbol_underscore=no |
| 20373 | cat > conftest.$ac_ext <<_LT_EOF |
| 20374 | void nm_test_func(){} |
| 20375 | int main(){nm_test_func;return 0;} |
| 20376 | _LT_EOF |
| 20377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 20378 | (eval $ac_compile) 2>&5 |
| 20379 | ac_status=$? |
| 20380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20381 | test $ac_status = 0; }; then |
| 20382 | # Now try to grab the symbols. |
| 20383 | ac_nlist=conftest.nm |
| 20384 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
| 20385 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 20386 | ac_status=$? |
| 20387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20388 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
| 20389 | # See whether the symbols have a leading underscore. |
| 20390 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 20391 | lt_cv_sys_symbol_underscore=yes |
| 20392 | else |
| 20393 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 20394 | : |
| 20395 | else |
| 20396 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 20397 | fi |
| 20398 | fi |
| 20399 | else |
| 20400 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 20401 | fi |
| 20402 | else |
| 20403 | echo "configure: failed program was:" >&5 |
| 20404 | cat conftest.c >&5 |
| 20405 | fi |
| 20406 | rm -rf conftest* |
| 20407 | |
| 20408 | fi |
| 20409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
| 20410 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 20411 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 20412 | |
| 20413 | |
| 20414 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 20415 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 20416 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 20417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 20418 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20419 | if ${libltdl_cv_need_uscore+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20420 | $as_echo_n "(cached) " >&6 |
| 20421 | else |
| 20422 | libltdl_cv_need_uscore=unknown |
| 20423 | save_LIBS="$LIBS" |
| 20424 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 20425 | if test "$cross_compiling" = yes; then : |
| 20426 | libltdl_cv_need_uscore=cross |
| 20427 | else |
| 20428 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 20429 | lt_status=$lt_dlunknown |
| 20430 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20431 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20432 | #include "confdefs.h" |
| 20433 | |
| 20434 | #if HAVE_DLFCN_H |
| 20435 | #include <dlfcn.h> |
| 20436 | #endif |
| 20437 | |
| 20438 | #include <stdio.h> |
| 20439 | |
| 20440 | #ifdef RTLD_GLOBAL |
| 20441 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 20442 | #else |
| 20443 | # ifdef DL_GLOBAL |
| 20444 | # define LT_DLGLOBAL DL_GLOBAL |
| 20445 | # else |
| 20446 | # define LT_DLGLOBAL 0 |
| 20447 | # endif |
| 20448 | #endif |
| 20449 | |
| 20450 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 20451 | find out it does not work in some platform. */ |
| 20452 | #ifndef LT_DLLAZY_OR_NOW |
| 20453 | # ifdef RTLD_LAZY |
| 20454 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 20455 | # else |
| 20456 | # ifdef DL_LAZY |
| 20457 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 20458 | # else |
| 20459 | # ifdef RTLD_NOW |
| 20460 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 20461 | # else |
| 20462 | # ifdef DL_NOW |
| 20463 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 20464 | # else |
| 20465 | # define LT_DLLAZY_OR_NOW 0 |
| 20466 | # endif |
| 20467 | # endif |
| 20468 | # endif |
| 20469 | # endif |
| 20470 | #endif |
| 20471 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20472 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 20473 | correspondingly for the symbols needed. */ |
| 20474 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20475 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20476 | #endif |
| 20477 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20478 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20479 | int main () |
| 20480 | { |
| 20481 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 20482 | int status = $lt_dlunknown; |
| 20483 | |
| 20484 | if (self) |
| 20485 | { |
| 20486 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20487 | else |
| 20488 | { |
| 20489 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 20490 | else puts (dlerror ()); |
| 20491 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20492 | /* dlclose (self); */ |
| 20493 | } |
| 20494 | else |
| 20495 | puts (dlerror ()); |
| 20496 | |
| 20497 | return status; |
| 20498 | } |
| 20499 | _LT_EOF |
| 20500 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 20501 | (eval $ac_link) 2>&5 |
| 20502 | ac_status=$? |
| 20503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20504 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 20505 | (./conftest; exit; ) >&5 2>/dev/null |
| 20506 | lt_status=$? |
| 20507 | case x$lt_status in |
| 20508 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 20509 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 20510 | x$lt_dlunknown|x*) ;; |
| 20511 | esac |
| 20512 | else : |
| 20513 | # compilation failed |
| 20514 | |
| 20515 | fi |
| 20516 | fi |
| 20517 | rm -fr conftest* |
| 20518 | |
| 20519 | LIBS="$save_LIBS" |
| 20520 | |
| 20521 | fi |
| 20522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 20523 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
| 20524 | fi |
| 20525 | fi |
| 20526 | |
| 20527 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 20528 | |
| 20529 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
| 20530 | |
| 20531 | fi |
| 20532 | |
| 20533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| 20534 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20535 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20536 | $as_echo_n "(cached) " >&6 |
| 20537 | else |
| 20538 | # PORTME does your system automatically load deplibs for dlopen? |
| 20539 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 20540 | # For now, we just catch OSes we know something about -- in the |
| 20541 | # future, we'll try test this programmatically. |
| 20542 | lt_cv_sys_dlopen_deplibs=unknown |
| 20543 | case $host_os in |
| 20544 | aix3*|aix4.1.*|aix4.2.*) |
| 20545 | # Unknown whether this is true for these versions of AIX, but |
| 20546 | # we want this `case' here to explicitly catch those versions. |
| 20547 | lt_cv_sys_dlopen_deplibs=unknown |
| 20548 | ;; |
| 20549 | aix[4-9]*) |
| 20550 | lt_cv_sys_dlopen_deplibs=yes |
| 20551 | ;; |
| 20552 | amigaos*) |
| 20553 | case $host_cpu in |
| 20554 | powerpc) |
| 20555 | lt_cv_sys_dlopen_deplibs=no |
| 20556 | ;; |
| 20557 | esac |
| 20558 | ;; |
| 20559 | darwin*) |
| 20560 | # Assuming the user has installed a libdl from somewhere, this is true |
| 20561 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 20562 | lt_cv_sys_dlopen_deplibs=yes |
| 20563 | ;; |
| 20564 | freebsd* | dragonfly*) |
| 20565 | lt_cv_sys_dlopen_deplibs=yes |
| 20566 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20567 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20568 | # GNU and its variants, using gnu ld.so (Glibc) |
| 20569 | lt_cv_sys_dlopen_deplibs=yes |
| 20570 | ;; |
| 20571 | hpux10*|hpux11*) |
| 20572 | lt_cv_sys_dlopen_deplibs=yes |
| 20573 | ;; |
| 20574 | interix*) |
| 20575 | lt_cv_sys_dlopen_deplibs=yes |
| 20576 | ;; |
| 20577 | irix[12345]*|irix6.[01]*) |
| 20578 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 20579 | # know how it worked for any of those versions. |
| 20580 | lt_cv_sys_dlopen_deplibs=unknown |
| 20581 | ;; |
| 20582 | irix*) |
| 20583 | # The case above catches anything before 6.2, and it's known that |
| 20584 | # at 6.2 and later dlopen does load deplibs. |
| 20585 | lt_cv_sys_dlopen_deplibs=yes |
| 20586 | ;; |
| 20587 | netbsd*) |
| 20588 | lt_cv_sys_dlopen_deplibs=yes |
| 20589 | ;; |
| 20590 | openbsd*) |
| 20591 | lt_cv_sys_dlopen_deplibs=yes |
| 20592 | ;; |
| 20593 | osf[1234]*) |
| 20594 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 20595 | # it did *not* use an RPATH in a shared library to find objects the |
| 20596 | # library depends on, so we explicitly say `no'. |
| 20597 | lt_cv_sys_dlopen_deplibs=no |
| 20598 | ;; |
| 20599 | osf5.0|osf5.0a|osf5.1) |
| 20600 | # dlopen *does* load deplibs and with the right loader patch applied |
| 20601 | # it even uses RPATH in a shared library to search for shared objects |
| 20602 | # that the library depends on, but there's no easy way to know if that |
| 20603 | # patch is installed. Since this is the case, all we can really |
| 20604 | # say is unknown -- it depends on the patch being installed. If |
| 20605 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 20606 | lt_cv_sys_dlopen_deplibs=unknown |
| 20607 | ;; |
| 20608 | osf*) |
| 20609 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 20610 | # the comments above for what we know about them. |
| 20611 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 20612 | # is used to find them so we can finally say `yes'. |
| 20613 | lt_cv_sys_dlopen_deplibs=yes |
| 20614 | ;; |
| 20615 | qnx*) |
| 20616 | lt_cv_sys_dlopen_deplibs=yes |
| 20617 | ;; |
| 20618 | solaris*) |
| 20619 | lt_cv_sys_dlopen_deplibs=yes |
| 20620 | ;; |
| 20621 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20622 | libltdl_cv_sys_dlopen_deplibs=yes |
| 20623 | ;; |
| 20624 | esac |
| 20625 | |
| 20626 | fi |
| 20627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 20628 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 20629 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 20630 | |
| 20631 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| 20632 | |
| 20633 | fi |
| 20634 | |
| 20635 | : |
| 20636 | |
| 20637 | for ac_header in argz.h |
| 20638 | do : |
| 20639 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
| 20640 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20641 | if test "x$ac_cv_header_argz_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20642 | cat >>confdefs.h <<_ACEOF |
| 20643 | #define HAVE_ARGZ_H 1 |
| 20644 | _ACEOF |
| 20645 | |
| 20646 | fi |
| 20647 | |
| 20648 | done |
| 20649 | |
| 20650 | |
| 20651 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
| 20652 | # include <argz.h> |
| 20653 | #endif |
| 20654 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20655 | if test "x$ac_cv_type_error_t" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20656 | |
| 20657 | cat >>confdefs.h <<_ACEOF |
| 20658 | #define HAVE_ERROR_T 1 |
| 20659 | _ACEOF |
| 20660 | |
| 20661 | |
| 20662 | else |
| 20663 | |
| 20664 | $as_echo "#define error_t int" >>confdefs.h |
| 20665 | |
| 20666 | |
| 20667 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
| 20668 | |
| 20669 | fi |
| 20670 | |
| 20671 | |
| 20672 | ARGZ_H= |
| 20673 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 20674 | argz_next argz_stringify |
| 20675 | do : |
| 20676 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20677 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20678 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20679 | cat >>confdefs.h <<_ACEOF |
| 20680 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20681 | _ACEOF |
| 20682 | |
| 20683 | else |
| 20684 | ARGZ_H=argz.h; |
| 20685 | |
| 20686 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20687 | |
| 20688 | fi |
| 20689 | done |
| 20690 | |
| 20691 | |
| 20692 | if test -z "$ARGZ_H"; then : |
| 20693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| 20694 | $as_echo_n "checking if argz actually works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20695 | if ${lt_cv_sys_argz_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20696 | $as_echo_n "(cached) " >&6 |
| 20697 | else |
| 20698 | case $host_os in #( |
| 20699 | *cygwin*) |
| 20700 | lt_cv_sys_argz_works=no |
| 20701 | if test "$cross_compiling" != no; then |
| 20702 | lt_cv_sys_argz_works="guessing no" |
| 20703 | else |
| 20704 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 20705 | save_IFS=$IFS |
| 20706 | IFS=-. |
| 20707 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 20708 | IFS=$save_IFS |
| 20709 | lt_os_major=${2-0} |
| 20710 | lt_os_minor=${3-0} |
| 20711 | lt_os_micro=${4-0} |
| 20712 | if test "$lt_os_major" -gt 1 \ |
| 20713 | || { test "$lt_os_major" -eq 1 \ |
| 20714 | && { test "$lt_os_minor" -gt 5 \ |
| 20715 | || { test "$lt_os_minor" -eq 5 \ |
| 20716 | && test "$lt_os_micro" -gt 24; }; }; }; then |
| 20717 | lt_cv_sys_argz_works=yes |
| 20718 | fi |
| 20719 | fi |
| 20720 | ;; #( |
| 20721 | *) lt_cv_sys_argz_works=yes ;; |
| 20722 | esac |
| 20723 | fi |
| 20724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| 20725 | $as_echo "$lt_cv_sys_argz_works" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20726 | if test "$lt_cv_sys_argz_works" = yes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20727 | |
| 20728 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| 20729 | |
| 20730 | else |
| 20731 | ARGZ_H=argz.h |
| 20732 | |
| 20733 | |
| 20734 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20735 | |
| 20736 | fi |
| 20737 | fi |
| 20738 | |
| 20739 | |
| 20740 | |
| 20741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 20742 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20743 | if ${libltdl_cv_preloaded_symbols+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20744 | $as_echo_n "(cached) " >&6 |
| 20745 | else |
| 20746 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 20747 | libltdl_cv_preloaded_symbols=yes |
| 20748 | else |
| 20749 | libltdl_cv_preloaded_symbols=no |
| 20750 | fi |
| 20751 | |
| 20752 | fi |
| 20753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 20754 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 20755 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 20756 | |
| 20757 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| 20758 | |
| 20759 | fi |
| 20760 | |
| 20761 | # Set options |
| 20762 | |
| 20763 | |
| 20764 | |
| 20765 | |
| 20766 | |
| 20767 | |
| 20768 | |
| 20769 | |
| 20770 | |
| 20771 | |
| 20772 | |
| 20773 | # Check whether --with-included_ltdl was given. |
| 20774 | if test "${with_included_ltdl+set}" = set; then : |
| 20775 | withval=$with_included_ltdl; |
| 20776 | fi |
| 20777 | |
| 20778 | |
| 20779 | if test "x$with_included_ltdl" != xyes; then |
| 20780 | # We are not being forced to use the included libltdl sources, so |
| 20781 | # decide whether there is a useful installed version we can use. |
| 20782 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| 20783 | |
| 20784 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20785 | if test "x$ac_cv_header_ltdl_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20786 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
| 20787 | #include <ltdl.h> |
| 20788 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20789 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
| 20791 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20792 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20793 | $as_echo_n "(cached) " >&6 |
| 20794 | else |
| 20795 | ac_check_lib_save_LIBS=$LIBS |
| 20796 | LIBS="-lltdl $LIBS" |
| 20797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20798 | /* end confdefs.h. */ |
| 20799 | |
| 20800 | /* Override any GCC internal prototype to avoid an error. |
| 20801 | Use char because int might match the return type of a GCC |
| 20802 | builtin and then its argument prototype would still apply. */ |
| 20803 | #ifdef __cplusplus |
| 20804 | extern "C" |
| 20805 | #endif |
| 20806 | char lt_dladvise_preload (); |
| 20807 | int |
| 20808 | main () |
| 20809 | { |
| 20810 | return lt_dladvise_preload (); |
| 20811 | ; |
| 20812 | return 0; |
| 20813 | } |
| 20814 | _ACEOF |
| 20815 | if ac_fn_c_try_link "$LINENO"; then : |
| 20816 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 20817 | else |
| 20818 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
| 20819 | fi |
| 20820 | rm -f core conftest.err conftest.$ac_objext \ |
| 20821 | conftest$ac_exeext conftest.$ac_ext |
| 20822 | LIBS=$ac_check_lib_save_LIBS |
| 20823 | fi |
| 20824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| 20825 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20826 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20827 | with_included_ltdl=no |
| 20828 | else |
| 20829 | with_included_ltdl=yes |
| 20830 | fi |
| 20831 | |
| 20832 | else |
| 20833 | with_included_ltdl=yes |
| 20834 | fi |
| 20835 | |
| 20836 | else |
| 20837 | with_included_ltdl=yes |
| 20838 | fi |
| 20839 | |
| 20840 | |
| 20841 | fi |
| 20842 | |
| 20843 | |
| 20844 | |
| 20845 | |
| 20846 | # Check whether --with-ltdl_include was given. |
| 20847 | if test "${with_ltdl_include+set}" = set; then : |
| 20848 | withval=$with_ltdl_include; |
| 20849 | fi |
| 20850 | |
| 20851 | |
| 20852 | if test -n "$with_ltdl_include"; then |
| 20853 | if test -f "$with_ltdl_include/ltdl.h"; then : |
| 20854 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20855 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20856 | fi |
| 20857 | else |
| 20858 | with_ltdl_include=no |
| 20859 | fi |
| 20860 | |
| 20861 | |
| 20862 | # Check whether --with-ltdl_lib was given. |
| 20863 | if test "${with_ltdl_lib+set}" = set; then : |
| 20864 | withval=$with_ltdl_lib; |
| 20865 | fi |
| 20866 | |
| 20867 | |
| 20868 | if test -n "$with_ltdl_lib"; then |
| 20869 | if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 20870 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20871 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20872 | fi |
| 20873 | else |
| 20874 | with_ltdl_lib=no |
| 20875 | fi |
| 20876 | |
| 20877 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 20878 | ,yes,no,no,) |
| 20879 | case $enable_ltdl_convenience in |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20880 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20881 | "") enable_ltdl_convenience=yes |
| 20882 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 20883 | esac |
| 20884 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 20885 | LTDLDEPS=$LIBLTDL |
| 20886 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 20887 | |
| 20888 | |
| 20889 | |
| 20890 | |
| 20891 | |
| 20892 | # For backwards non-gettext consistent compatibility... |
| 20893 | INCLTDL="$LTDLINCL" |
| 20894 | |
| 20895 | |
| 20896 | ;; |
| 20897 | ,no,no,no,) |
| 20898 | # If the included ltdl is not to be used, then use the |
| 20899 | # preinstalled libltdl we found. |
| 20900 | |
| 20901 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
| 20902 | |
| 20903 | LIBLTDL=-lltdl |
| 20904 | LTDLDEPS= |
| 20905 | LTDLINCL= |
| 20906 | ;; |
| 20907 | ,no*,no,*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20908 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20909 | ;; |
| 20910 | *) with_included_ltdl=no |
| 20911 | LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 20912 | LTDLDEPS= |
| 20913 | LTDLINCL="-I$with_ltdl_include" |
| 20914 | ;; |
| 20915 | esac |
| 20916 | INCLTDL="$LTDLINCL" |
| 20917 | |
| 20918 | # Report our decision... |
| 20919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| 20920 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
| 20921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
| 20922 | $as_echo "$LTDLINCL" >&6; } |
| 20923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
| 20924 | $as_echo_n "checking where to find libltdl library... " >&6; } |
| 20925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
| 20926 | $as_echo "$LIBLTDL" >&6; } |
| 20927 | |
| 20928 | |
| 20929 | |
| 20930 | # Check whether --enable-ltdl-install was given. |
| 20931 | if test "${enable_ltdl_install+set}" = set; then : |
| 20932 | enableval=$enable_ltdl_install; |
| 20933 | fi |
| 20934 | |
| 20935 | |
| 20936 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 20937 | *yes*) ;; |
| 20938 | *) enable_ltdl_convenience=yes ;; |
| 20939 | esac |
| 20940 | |
| 20941 | if test x"${enable_ltdl_install-no}" != xno; then |
| 20942 | INSTALL_LTDL_TRUE= |
| 20943 | INSTALL_LTDL_FALSE='#' |
| 20944 | else |
| 20945 | INSTALL_LTDL_TRUE='#' |
| 20946 | INSTALL_LTDL_FALSE= |
| 20947 | fi |
| 20948 | |
| 20949 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 20950 | CONVENIENCE_LTDL_TRUE= |
| 20951 | CONVENIENCE_LTDL_FALSE='#' |
| 20952 | else |
| 20953 | CONVENIENCE_LTDL_TRUE='#' |
| 20954 | CONVENIENCE_LTDL_FALSE= |
| 20955 | fi |
| 20956 | |
| 20957 | |
| 20958 | |
| 20959 | |
| 20960 | |
| 20961 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20962 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 20963 | # the user used. This is so that ltdl.h can pick up the parent projects |
| 20964 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 20965 | # definitions required by ltdl.c. |
| 20966 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 20967 | |
| 20968 | |
| 20969 | |
| 20970 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| 20971 | do : |
| 20972 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20973 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 20974 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20975 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20976 | cat >>confdefs.h <<_ACEOF |
| 20977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20978 | _ACEOF |
| 20979 | |
| 20980 | fi |
| 20981 | |
| 20982 | done |
| 20983 | |
| 20984 | |
| 20985 | for ac_func in closedir opendir readdir |
| 20986 | do : |
| 20987 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20988 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20989 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20990 | cat >>confdefs.h <<_ACEOF |
| 20991 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20992 | _ACEOF |
| 20993 | |
| 20994 | else |
| 20995 | |
| 20996 | |
| 20997 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 20998 | |
| 20999 | fi |
| 21000 | done |
| 21001 | |
| 21002 | for ac_func in strlcat strlcpy |
| 21003 | do : |
| 21004 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21005 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21006 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21007 | cat >>confdefs.h <<_ACEOF |
| 21008 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21009 | _ACEOF |
| 21010 | |
| 21011 | else |
| 21012 | |
| 21013 | |
| 21014 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 21015 | |
| 21016 | fi |
| 21017 | done |
| 21018 | |
| 21019 | |
| 21020 | |
| 21021 | cat >>confdefs.h <<_ACEOF |
| 21022 | #define LT_LIBEXT "$libext" |
| 21023 | _ACEOF |
| 21024 | |
| 21025 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21026 | name= |
| 21027 | eval "lt_libprefix=\"$libname_spec\"" |
| 21028 | |
| 21029 | cat >>confdefs.h <<_ACEOF |
| 21030 | #define LT_LIBPREFIX "$lt_libprefix" |
| 21031 | _ACEOF |
| 21032 | |
| 21033 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21034 | name=ltdl |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21035 | eval "LTDLOPEN=\"$libname_spec\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21036 | |
| 21037 | |
| 21038 | |
| 21039 | |
| 21040 | |
| 21041 | |
| 21042 | |
| 21043 | |
| 21044 | # Only expand once: |
| 21045 | |
| 21046 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21047 | |
| 21048 | # Check to see if building shared libraries |
| 21049 | libtool_build_shared_libs='no' |
| 21050 | if test "$enable_shared" = 'yes'; then |
| 21051 | libtool_build_shared_libs='yes' |
| 21052 | fi |
| 21053 | |
| 21054 | # Check to see if building static libraries |
| 21055 | libtool_build_static_libs='no' |
| 21056 | if test "$enable_static" = 'yes'; then |
| 21057 | libtool_build_static_libs='yes' |
| 21058 | fi |
| 21059 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21060 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 21061 | WITH_SHARED_LIBS_TRUE= |
| 21062 | WITH_SHARED_LIBS_FALSE='#' |
| 21063 | else |
| 21064 | WITH_SHARED_LIBS_TRUE='#' |
| 21065 | WITH_SHARED_LIBS_FALSE= |
| 21066 | fi |
| 21067 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21068 | # |
| 21069 | # Enable support for building loadable modules |
| 21070 | # |
| 21071 | |
| 21072 | # Check whether --with-modules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21073 | if test "${with_modules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21074 | withval=$with_modules; with_modules=$withval |
| 21075 | else |
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 21076 | with_modules='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21077 | fi |
| 21078 | |
| 21079 | |
| 21080 | # Only allow building loadable modules if we are building shared libraries |
| 21081 | if test "$with_modules" != 'no' ; then |
| 21082 | if test "$libtool_build_shared_libs" = 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21083 | { $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] | 21084 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 21085 | with_modules='no' |
| 21086 | fi |
| 21087 | fi |
| 21088 | if test "$with_modules" != 'no'; then |
| 21089 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21090 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21091 | |
| 21092 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21093 | if test "$with_modules" != 'no'; then |
| 21094 | WITH_MODULES_TRUE= |
| 21095 | WITH_MODULES_FALSE='#' |
| 21096 | else |
| 21097 | WITH_MODULES_TRUE='#' |
| 21098 | WITH_MODULES_FALSE= |
| 21099 | fi |
| 21100 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21101 | |
| 21102 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 21103 | # of whether modules are built or not. |
| 21104 | with_ltdl='no' |
| 21105 | if test "$libtool_build_shared_libs" != 'no'; then |
| 21106 | with_ltdl='yes' |
| 21107 | fi |
| 21108 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21109 | if test "$with_ltdl" != 'no'; then |
| 21110 | WITH_LTDL_TRUE= |
| 21111 | WITH_LTDL_FALSE='#' |
| 21112 | else |
| 21113 | WITH_LTDL_TRUE='#' |
| 21114 | WITH_LTDL_FALSE= |
| 21115 | fi |
| 21116 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21117 | if test "$with_ltdl" != 'no'; then |
| 21118 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21119 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21120 | |
| 21121 | |
| 21122 | # Set DLLDFLAGS |
| 21123 | if test X"$enable_shared" = Xyes; then |
| 21124 | DLLDFLAGS=-export-dynamic |
| 21125 | |
| 21126 | fi |
| 21127 | fi |
| 21128 | |
| 21129 | # Enable build using delegate libraries built in subdirectories rather than installed |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 21130 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21131 | # Check whether --enable-delegate-build was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21132 | if test "${enable_delegate_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21133 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 21134 | else |
| 21135 | enable_delegate_build='no' |
| 21136 | fi |
| 21137 | |
| 21138 | |
| 21139 | # Check whether --enable-deprecated was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21140 | if test "${enable_deprecated+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21141 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 21142 | else |
| 21143 | enable_deprecated='no' |
| 21144 | fi |
| 21145 | |
| 21146 | |
| 21147 | if test "$enable_deprecated" = 'yes'; then |
| 21148 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21149 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21150 | |
| 21151 | else |
| 21152 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 21153 | fi |
| 21154 | |
| 21155 | # Build a version of ImageMagick which operates uninstalled. |
| 21156 | # Used to build distributions located via MAGICK_HOME / executable path |
| 21157 | # Check whether --enable-installed was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21158 | if test "${enable_installed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21159 | enableval=$enable_installed; enable_installed=$enableval |
| 21160 | else |
| 21161 | enable_installed='yes' |
| 21162 | fi |
| 21163 | |
| 21164 | |
| 21165 | if test "$enable_installed" = 'yes'; then |
| 21166 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21167 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21168 | |
| 21169 | else |
| 21170 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 21171 | fi |
| 21172 | |
| 21173 | # Permit enciphering and deciphering image pixels. |
| 21174 | # Check whether --enable-cipher was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21175 | if test "${enable_cipher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21176 | enableval=$enable_cipher; enable_cipher=$enableval |
| 21177 | else |
| 21178 | enable_cipher='yes' |
| 21179 | fi |
| 21180 | |
| 21181 | |
| 21182 | if test "$enable_cipher" = 'yes'; then |
| 21183 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21184 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21185 | |
| 21186 | fi |
| 21187 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21188 | # Build a zero-configuration version of ImageMagick. |
| 21189 | # Check whether --enable-zero-configuration was given. |
| 21190 | if test "${enable_zero_configuration+set}" = set; then : |
| 21191 | enableval=$enable_zero_configuration; enable_zero_configuration=$enableval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21192 | else |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21193 | enable_zero_configuration='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21194 | fi |
| 21195 | |
| 21196 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21197 | if test "$enable_zero_configuration" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21198 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21199 | $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21200 | |
| cristy | 81af570 | 2011-09-13 14:20:58 +0000 | [diff] [blame] | 21201 | MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | fi |
| 21203 | |
| 21204 | # Build a high dynamic range version of ImageMagick. |
| 21205 | # Check whether --enable-hdri was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21206 | if test "${enable_hdri+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21207 | enableval=$enable_hdri; enable_hdri=$enableval |
| 21208 | else |
| 21209 | enable_hdri='no' |
| 21210 | fi |
| 21211 | |
| 21212 | |
| 21213 | MAGICK_HDRI="" |
| 21214 | if test "$enable_hdri" = 'yes'; then |
| 21215 | MAGICK_HDRI="HDRI" |
| 21216 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21217 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21218 | |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 21219 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21220 | fi |
| 21221 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21222 | # Build a version of ImageMagick with assert statements. |
| 21223 | # Check whether --enable-assert was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21224 | if test "${enable_assert+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21225 | enableval=$enable_assert; enable_assert=$enableval |
| 21226 | else |
| 21227 | enable_assert='yes' |
| 21228 | fi |
| 21229 | |
| 21230 | |
| 21231 | if test "$enable_assert" = 'no'; then |
| 21232 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21233 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21234 | |
| 21235 | fi |
| 21236 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 21237 | # Don't emit "rebuild rules" for configure, Makefile.ins, etc. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21238 | |
| 21239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 21240 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 21241 | # Check whether --enable-maintainer-mode was given. |
| 21242 | if test "${enable_maintainer_mode+set}" = set; then : |
| 21243 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 21244 | else |
| 21245 | USE_MAINTAINER_MODE=no |
| 21246 | fi |
| 21247 | |
| 21248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 21249 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 21250 | if test $USE_MAINTAINER_MODE = yes; then |
| 21251 | MAINTAINER_MODE_TRUE= |
| 21252 | MAINTAINER_MODE_FALSE='#' |
| 21253 | else |
| 21254 | MAINTAINER_MODE_TRUE='#' |
| 21255 | MAINTAINER_MODE_FALSE= |
| 21256 | fi |
| 21257 | |
| 21258 | MAINT=$MAINTAINER_MODE_TRUE |
| 21259 | |
| 21260 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21261 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21262 | # Enable ccmalloc memory debugging support |
| 21263 | # Check whether --enable-ccmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21264 | if test "${enable_ccmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21265 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 21266 | else |
| 21267 | enable_ccmalloc='no' |
| 21268 | fi |
| 21269 | |
| 21270 | |
| 21271 | # Enable Electric Fence memory debugging support |
| 21272 | # Check whether --enable-efence was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21273 | if test "${enable_efence+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21274 | enableval=$enable_efence; enable_efence=$enableval |
| 21275 | else |
| 21276 | enable_efence='no' |
| 21277 | fi |
| 21278 | |
| 21279 | |
| 21280 | # Enable prof-based profiling support |
| 21281 | # Check whether --enable-prof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21282 | if test "${enable_prof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21283 | enableval=$enable_prof; enable_prof=$enableval |
| 21284 | else |
| 21285 | enable_prof='no' |
| 21286 | fi |
| 21287 | |
| 21288 | |
| 21289 | # Enable gprof-based profiling support |
| 21290 | # Check whether --enable-gprof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21291 | if test "${enable_gprof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21292 | enableval=$enable_gprof; enable_gprof=$enableval |
| 21293 | else |
| 21294 | enable_gprof='no' |
| 21295 | fi |
| 21296 | |
| 21297 | |
| 21298 | # Enable gcov-based profiling support |
| 21299 | # Check whether --enable-gcov was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21300 | if test "${enable_gcov+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21301 | enableval=$enable_gcov; enable_gcov=$enableval |
| 21302 | else |
| 21303 | enable_gcov='no' |
| 21304 | fi |
| 21305 | |
| 21306 | |
| 21307 | enable_profiling='no' |
| 21308 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 21309 | enable_profiling='yes' |
| 21310 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 21311 | echo "Warning: Can not profile code using shared libraries" |
| 21312 | fi |
| 21313 | fi |
| 21314 | |
| 21315 | # Magick API method prefix |
| 21316 | |
| 21317 | # Check whether --with-method-prefix was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21318 | if test "${with_method_prefix+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21319 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 21320 | else |
| 21321 | with_method_prefix='' |
| 21322 | fi |
| 21323 | |
| 21324 | |
| 21325 | if test "$with_method_prefix" != ''; then |
| 21326 | |
| 21327 | cat >>confdefs.h <<_ACEOF |
| 21328 | #define NAMESPACE_PREFIX $with_method_prefix |
| 21329 | _ACEOF |
| 21330 | |
| 21331 | fi |
| 21332 | |
| 21333 | # Number of bits in a Quantum |
| 21334 | |
| 21335 | # Check whether --with-quantum-depth was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21336 | if test "${with_quantum_depth+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21337 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 21338 | else |
| 21339 | with_quantum_depth=16 |
| 21340 | fi |
| 21341 | |
| 21342 | |
| 21343 | if test "$with_quantum_depth" != '8'; then |
| 21344 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 21345 | fi |
| 21346 | |
| 21347 | case "${with_quantum_depth}" in |
| 21348 | 8 ) ;; |
| 21349 | 16 ) ;; |
| 21350 | 32 ) ;; |
| 21351 | 64 ) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21352 | * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21353 | esac |
| 21354 | QUANTUM_DEPTH="$with_quantum_depth" |
| 21355 | |
| 21356 | cat >>confdefs.h <<_ACEOF |
| 21357 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 21358 | _ACEOF |
| 21359 | |
| 21360 | |
| 21361 | # Set pixel cache threshold |
| 21362 | |
| 21363 | # Check whether --with-cache was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21364 | if test "${with_cache+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21365 | withval=$with_cache; with_cache=$withval |
| 21366 | else |
| 21367 | with_cache='' |
| 21368 | fi |
| 21369 | |
| 21370 | |
| 21371 | if test "$with_cache" != ''; then |
| 21372 | |
| 21373 | cat >>confdefs.h <<_ACEOF |
| 21374 | #define PixelCacheThreshold $with_cache |
| 21375 | _ACEOF |
| 21376 | |
| 21377 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 21378 | fi |
| 21379 | |
| 21380 | # Disable/Enable support for full delegate paths |
| 21381 | |
| 21382 | # Check whether --with-frozenpaths was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21383 | if test "${with_frozenpaths+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21384 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 21385 | else |
| 21386 | with_frozenpaths='no' |
| 21387 | fi |
| 21388 | |
| 21389 | |
| 21390 | # Enable build/install of Magick++ |
| 21391 | |
| 21392 | # Check whether --with-magick-plus-plus was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21393 | if test "${with_magick_plus_plus+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21394 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 21395 | else |
| 21396 | with_magick_plus_plus='yes' |
| 21397 | fi |
| 21398 | |
| 21399 | |
| 21400 | # Disable build/install of PerlMagick. |
| 21401 | |
| 21402 | # Check whether --with-perl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21403 | if test "${with_perl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21404 | withval=$with_perl; with_perl=$withval |
| 21405 | else |
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 21406 | with_perl='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21407 | fi |
| 21408 | |
| 21409 | |
| 21410 | # Options to pass when configuring PerlMagick |
| 21411 | |
| 21412 | # Check whether --with-perl-options was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21413 | if test "${with_perl_options+set}" = set; then : |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 21414 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21415 | fi |
| 21416 | |
| 21417 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21418 | |
| 21419 | # Enable umem, object-caching memory allocation library. |
| 21420 | |
| 21421 | # Check whether --with-umem was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21422 | if test "${with_umem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21423 | withval=$with_umem; with_umem=$withval |
| 21424 | else |
| 21425 | with_umem='no' |
| 21426 | fi |
| 21427 | |
| 21428 | if test "$with_umem" != 'yes' ; then |
| 21429 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 21430 | fi |
| 21431 | |
| 21432 | # |
| 21433 | # Specify path to shared libstdc++ if not in normal location |
| 21434 | # |
| 21435 | |
| 21436 | # Check whether --with-libstdc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21437 | if test "${with_libstdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21438 | withval=$with_libstdc; with_libstdc=$withval |
| 21439 | else |
| 21440 | with_libstdc='' |
| 21441 | fi |
| 21442 | |
| 21443 | |
| 21444 | if test "$with_libstdc" != ''; then |
| 21445 | if test -d "$with_libstdc"; then |
| 21446 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 21447 | fi |
| 21448 | fi |
| 21449 | |
| 21450 | |
| 21451 | # Does gcc required -traditional? |
| 21452 | if test $ac_cv_c_compiler_gnu = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21454 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21455 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21456 | $as_echo_n "(cached) " >&6 |
| 21457 | else |
| 21458 | ac_pattern="Autoconf.*'x'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21460 | /* end confdefs.h. */ |
| 21461 | #include <sgtty.h> |
| 21462 | Autoconf TIOCGETP |
| 21463 | _ACEOF |
| 21464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21465 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21466 | ac_cv_prog_gcc_traditional=yes |
| 21467 | else |
| 21468 | ac_cv_prog_gcc_traditional=no |
| 21469 | fi |
| 21470 | rm -f conftest* |
| 21471 | |
| 21472 | |
| 21473 | if test $ac_cv_prog_gcc_traditional = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21475 | /* end confdefs.h. */ |
| 21476 | #include <termio.h> |
| 21477 | Autoconf TCGETA |
| 21478 | _ACEOF |
| 21479 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21480 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21481 | ac_cv_prog_gcc_traditional=yes |
| 21482 | fi |
| 21483 | rm -f conftest* |
| 21484 | |
| 21485 | fi |
| 21486 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21487 | { $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] | 21488 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 21489 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 21490 | CC="$CC -traditional" |
| 21491 | fi |
| 21492 | fi |
| 21493 | |
| 21494 | |
| 21495 | ######## |
| 21496 | # |
| 21497 | # Set defines required to build DLLs and modules using MinGW |
| 21498 | # |
| 21499 | ######## |
| 21500 | # These options are set for multi-thread DLL module build |
| 21501 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 21502 | # module: _DLL |
| 21503 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 21504 | MODULE_EXTRA_CPPFLAGS='' |
| 21505 | LIBRARY_EXTRA_CPPFLAGS='' |
| 21506 | if test "${native_win32_build}" = 'yes'; then |
| 21507 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 21508 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 21509 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 21510 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 21511 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21512 | if test "$with_modules" = 'yes'; then |
| 21513 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 21514 | else |
| 21515 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21516 | fi |
| 21517 | else |
| 21518 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 21519 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 21520 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 21521 | fi |
| 21522 | if test "$with_threads" = 'yes'; then |
| 21523 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 21524 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 21525 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 21526 | fi |
| 21527 | fi |
| 21528 | |
| 21529 | |
| 21530 | |
| 21531 | # Check standard headers |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21532 | { $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] | 21533 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21534 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21535 | $as_echo_n "(cached) " >&6 |
| 21536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21538 | /* end confdefs.h. */ |
| 21539 | #include <stdlib.h> |
| 21540 | #include <stdarg.h> |
| 21541 | #include <string.h> |
| 21542 | #include <float.h> |
| 21543 | |
| 21544 | int |
| 21545 | main () |
| 21546 | { |
| 21547 | |
| 21548 | ; |
| 21549 | return 0; |
| 21550 | } |
| 21551 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21552 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21553 | ac_cv_header_stdc=yes |
| 21554 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21555 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21556 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21558 | |
| 21559 | if test $ac_cv_header_stdc = yes; then |
| 21560 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21562 | /* end confdefs.h. */ |
| 21563 | #include <string.h> |
| 21564 | |
| 21565 | _ACEOF |
| 21566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21567 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 21568 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21569 | else |
| 21570 | ac_cv_header_stdc=no |
| 21571 | fi |
| 21572 | rm -f conftest* |
| 21573 | |
| 21574 | fi |
| 21575 | |
| 21576 | if test $ac_cv_header_stdc = yes; then |
| 21577 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 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 <stdlib.h> |
| 21581 | |
| 21582 | _ACEOF |
| 21583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21584 | $EGREP "free" >/dev/null 2>&1; then : |
| 21585 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21586 | else |
| 21587 | ac_cv_header_stdc=no |
| 21588 | fi |
| 21589 | rm -f conftest* |
| 21590 | |
| 21591 | fi |
| 21592 | |
| 21593 | if test $ac_cv_header_stdc = yes; then |
| 21594 | # /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] | 21595 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21596 | : |
| 21597 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21599 | /* end confdefs.h. */ |
| 21600 | #include <ctype.h> |
| 21601 | #include <stdlib.h> |
| 21602 | #if ((' ' & 0x0FF) == 0x020) |
| 21603 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21604 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21605 | #else |
| 21606 | # define ISLOWER(c) \ |
| 21607 | (('a' <= (c) && (c) <= 'i') \ |
| 21608 | || ('j' <= (c) && (c) <= 'r') \ |
| 21609 | || ('s' <= (c) && (c) <= 'z')) |
| 21610 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21611 | #endif |
| 21612 | |
| 21613 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21614 | int |
| 21615 | main () |
| 21616 | { |
| 21617 | int i; |
| 21618 | for (i = 0; i < 256; i++) |
| 21619 | if (XOR (islower (i), ISLOWER (i)) |
| 21620 | || toupper (i) != TOUPPER (i)) |
| 21621 | return 2; |
| 21622 | return 0; |
| 21623 | } |
| 21624 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21625 | if ac_fn_c_try_run "$LINENO"; then : |
| 21626 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21627 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21628 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21629 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21631 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21632 | fi |
| 21633 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21634 | fi |
| 21635 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21637 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 21638 | if test $ac_cv_header_stdc = yes; then |
| 21639 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21640 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21641 | |
| 21642 | fi |
| 21643 | |
| 21644 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21645 | { $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] | 21646 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21647 | headers and rerun this script." >&5 |
| 21648 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 21649 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21650 | headers and rerun this script." >&2;}; |
| 21651 | fi |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21652 | |
| 21653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 |
| 21654 | $as_echo_n "checking whether to enable assertions... " >&6; } |
| 21655 | # Check whether --enable-assert was given. |
| 21656 | if test "${enable_assert+set}" = set; then : |
| 21657 | enableval=$enable_assert; ac_enable_assert=$enableval |
| 21658 | if test "x$enableval" = xno; then : |
| 21659 | |
| 21660 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| 21661 | |
| 21662 | elif test "x$enableval" != xyes; then : |
| 21663 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 |
| 21664 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} |
| 21665 | ac_enable_assert=yes |
| 21666 | fi |
| 21667 | else |
| 21668 | ac_enable_assert=yes |
| 21669 | fi |
| 21670 | |
| 21671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 |
| 21672 | $as_echo "$ac_enable_assert" >&6; } |
| 21673 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21674 | ac_header_dirent=no |
| 21675 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 21676 | 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] | 21677 | { $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] | 21678 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21679 | if eval \${$as_ac_Header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21680 | $as_echo_n "(cached) " >&6 |
| 21681 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21683 | /* end confdefs.h. */ |
| 21684 | #include <sys/types.h> |
| 21685 | #include <$ac_hdr> |
| 21686 | |
| 21687 | int |
| 21688 | main () |
| 21689 | { |
| 21690 | if ((DIR *) 0) |
| 21691 | return 0; |
| 21692 | ; |
| 21693 | return 0; |
| 21694 | } |
| 21695 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21696 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21697 | eval "$as_ac_Header=yes" |
| 21698 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21699 | eval "$as_ac_Header=no" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21700 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21702 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21703 | eval ac_res=\$$as_ac_Header |
| 21704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21705 | $as_echo "$ac_res" >&6; } |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21706 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21707 | cat >>confdefs.h <<_ACEOF |
| 21708 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 21709 | _ACEOF |
| 21710 | |
| 21711 | ac_header_dirent=$ac_hdr; break |
| 21712 | fi |
| 21713 | |
| 21714 | done |
| 21715 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 21716 | if test $ac_header_dirent = dirent.h; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21718 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21719 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21720 | $as_echo_n "(cached) " >&6 |
| 21721 | else |
| 21722 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21724 | /* end confdefs.h. */ |
| 21725 | |
| 21726 | /* Override any GCC internal prototype to avoid an error. |
| 21727 | Use char because int might match the return type of a GCC |
| 21728 | builtin and then its argument prototype would still apply. */ |
| 21729 | #ifdef __cplusplus |
| 21730 | extern "C" |
| 21731 | #endif |
| 21732 | char opendir (); |
| 21733 | int |
| 21734 | main () |
| 21735 | { |
| 21736 | return opendir (); |
| 21737 | ; |
| 21738 | return 0; |
| 21739 | } |
| 21740 | _ACEOF |
| 21741 | for ac_lib in '' dir; do |
| 21742 | if test -z "$ac_lib"; then |
| 21743 | ac_res="none required" |
| 21744 | else |
| 21745 | ac_res=-l$ac_lib |
| 21746 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21747 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21748 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21749 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21750 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21751 | rm -f core conftest.err conftest.$ac_objext \ |
| 21752 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21753 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21754 | break |
| 21755 | fi |
| 21756 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21757 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21758 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21759 | else |
| 21760 | ac_cv_search_opendir=no |
| 21761 | fi |
| 21762 | rm conftest.$ac_ext |
| 21763 | LIBS=$ac_func_search_save_LIBS |
| 21764 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21766 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21767 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21768 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21769 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21770 | |
| 21771 | fi |
| 21772 | |
| 21773 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21775 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21776 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21777 | $as_echo_n "(cached) " >&6 |
| 21778 | else |
| 21779 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21781 | /* end confdefs.h. */ |
| 21782 | |
| 21783 | /* Override any GCC internal prototype to avoid an error. |
| 21784 | Use char because int might match the return type of a GCC |
| 21785 | builtin and then its argument prototype would still apply. */ |
| 21786 | #ifdef __cplusplus |
| 21787 | extern "C" |
| 21788 | #endif |
| 21789 | char opendir (); |
| 21790 | int |
| 21791 | main () |
| 21792 | { |
| 21793 | return opendir (); |
| 21794 | ; |
| 21795 | return 0; |
| 21796 | } |
| 21797 | _ACEOF |
| 21798 | for ac_lib in '' x; do |
| 21799 | if test -z "$ac_lib"; then |
| 21800 | ac_res="none required" |
| 21801 | else |
| 21802 | ac_res=-l$ac_lib |
| 21803 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21804 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21805 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21806 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21807 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21808 | rm -f core conftest.err conftest.$ac_objext \ |
| 21809 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21810 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21811 | break |
| 21812 | fi |
| 21813 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21814 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21815 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21816 | else |
| 21817 | ac_cv_search_opendir=no |
| 21818 | fi |
| 21819 | rm conftest.$ac_ext |
| 21820 | LIBS=$ac_func_search_save_LIBS |
| 21821 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21823 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21824 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21825 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21826 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21827 | |
| 21828 | fi |
| 21829 | |
| 21830 | fi |
| 21831 | |
| 21832 | |
| 21833 | # Check additional headers |
| cristy | a8549b1 | 2011-05-18 19:05:08 +0000 | [diff] [blame] | 21834 | for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21835 | do : |
| 21836 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21837 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21838 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21839 | cat >>confdefs.h <<_ACEOF |
| 21840 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21841 | _ACEOF |
| 21842 | |
| 21843 | fi |
| 21844 | |
| 21845 | done |
| 21846 | |
| 21847 | |
| 21848 | ######## |
| 21849 | # |
| 21850 | # Checks for typedefs, structures, and compiler characteristics. |
| 21851 | # |
| 21852 | ######## |
| 21853 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21854 | { $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] | 21855 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21856 | if ${ac_cv_header_stdbool_h+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21857 | $as_echo_n "(cached) " >&6 |
| 21858 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21860 | /* end confdefs.h. */ |
| 21861 | |
| 21862 | #include <stdbool.h> |
| 21863 | #ifndef bool |
| 21864 | "error: bool is not defined" |
| 21865 | #endif |
| 21866 | #ifndef false |
| 21867 | "error: false is not defined" |
| 21868 | #endif |
| 21869 | #if false |
| 21870 | "error: false is not 0" |
| 21871 | #endif |
| 21872 | #ifndef true |
| 21873 | "error: true is not defined" |
| 21874 | #endif |
| 21875 | #if true != 1 |
| 21876 | "error: true is not 1" |
| 21877 | #endif |
| 21878 | #ifndef __bool_true_false_are_defined |
| 21879 | "error: __bool_true_false_are_defined is not defined" |
| 21880 | #endif |
| 21881 | |
| 21882 | struct s { _Bool s: 1; _Bool t; } s; |
| 21883 | |
| 21884 | char a[true == 1 ? 1 : -1]; |
| 21885 | char b[false == 0 ? 1 : -1]; |
| 21886 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 21887 | char d[(bool) 0.5 == true ? 1 : -1]; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21888 | /* See body of main program for 'e'. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21889 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 21890 | char g[true]; |
| 21891 | char h[sizeof (_Bool)]; |
| 21892 | char i[sizeof s.t]; |
| 21893 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 21894 | /* The following fails for |
| 21895 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 21896 | _Bool n[m]; |
| 21897 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 21898 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21899 | /* Catch a bug in an HP-UX C compiler. See |
| 21900 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 21901 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 21902 | */ |
| 21903 | _Bool q = true; |
| 21904 | _Bool *pq = &q; |
| 21905 | |
| 21906 | int |
| 21907 | main () |
| 21908 | { |
| 21909 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21910 | bool e = &s; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21911 | *pq |= q; |
| 21912 | *pq |= ! q; |
| 21913 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 21914 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 21915 | + !m + !n + !o + !p + !q + !pq); |
| 21916 | |
| 21917 | ; |
| 21918 | return 0; |
| 21919 | } |
| 21920 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21921 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21922 | ac_cv_header_stdbool_h=yes |
| 21923 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21924 | ac_cv_header_stdbool_h=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21925 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21927 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21928 | { $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] | 21929 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21930 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21931 | if test "x$ac_cv_type__Bool" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21932 | |
| 21933 | cat >>confdefs.h <<_ACEOF |
| 21934 | #define HAVE__BOOL 1 |
| 21935 | _ACEOF |
| 21936 | |
| 21937 | |
| 21938 | fi |
| 21939 | |
| 21940 | if test $ac_cv_header_stdbool_h = yes; then |
| 21941 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21942 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21943 | |
| 21944 | fi |
| 21945 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21947 | $as_echo_n "checking for working volatile... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21948 | if ${ac_cv_c_volatile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21949 | $as_echo_n "(cached) " >&6 |
| 21950 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21952 | /* end confdefs.h. */ |
| 21953 | |
| 21954 | int |
| 21955 | main () |
| 21956 | { |
| 21957 | |
| 21958 | volatile int x; |
| 21959 | int * volatile y = (int *) 0; |
| 21960 | return !x && !y; |
| 21961 | ; |
| 21962 | return 0; |
| 21963 | } |
| 21964 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21965 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21966 | ac_cv_c_volatile=yes |
| 21967 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21968 | ac_cv_c_volatile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21969 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21971 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21973 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 21974 | if test $ac_cv_c_volatile = no; then |
| 21975 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21976 | $as_echo "#define volatile /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21977 | |
| 21978 | fi |
| 21979 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21981 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21982 | if ${ac_cv_c_stringize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21983 | $as_echo_n "(cached) " >&6 |
| 21984 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21986 | /* end confdefs.h. */ |
| 21987 | #define x(y) #y |
| 21988 | |
| 21989 | char *s = x(teststring); |
| 21990 | _ACEOF |
| 21991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21992 | $EGREP "#teststring" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21993 | ac_cv_c_stringize=no |
| 21994 | else |
| 21995 | ac_cv_c_stringize=yes |
| 21996 | fi |
| 21997 | rm -f conftest* |
| 21998 | |
| 21999 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22001 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 22002 | if test $ac_cv_c_stringize = yes; then |
| 22003 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22004 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22005 | |
| 22006 | fi |
| 22007 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22008 | { $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] | 22009 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22010 | if ${ac_cv_header_stat_broken+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22011 | $as_echo_n "(cached) " >&6 |
| 22012 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22014 | /* end confdefs.h. */ |
| 22015 | #include <sys/types.h> |
| 22016 | #include <sys/stat.h> |
| 22017 | |
| 22018 | #if defined S_ISBLK && defined S_IFDIR |
| 22019 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 22020 | #endif |
| 22021 | |
| 22022 | #if defined S_ISBLK && defined S_IFCHR |
| 22023 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 22024 | #endif |
| 22025 | |
| 22026 | #if defined S_ISLNK && defined S_IFREG |
| 22027 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 22028 | #endif |
| 22029 | |
| 22030 | #if defined S_ISSOCK && defined S_IFREG |
| 22031 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 22032 | #endif |
| 22033 | |
| 22034 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22035 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22036 | ac_cv_header_stat_broken=no |
| 22037 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22038 | ac_cv_header_stat_broken=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22039 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22041 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22042 | { $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] | 22043 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 22044 | if test $ac_cv_header_stat_broken = yes; then |
| 22045 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22046 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22047 | |
| 22048 | fi |
| 22049 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22050 | { $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] | 22051 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22052 | if ${ac_cv_header_time+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22053 | $as_echo_n "(cached) " >&6 |
| 22054 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22056 | /* end confdefs.h. */ |
| 22057 | #include <sys/types.h> |
| 22058 | #include <sys/time.h> |
| 22059 | #include <time.h> |
| 22060 | |
| 22061 | int |
| 22062 | main () |
| 22063 | { |
| 22064 | if ((struct tm *) 0) |
| 22065 | return 0; |
| 22066 | ; |
| 22067 | return 0; |
| 22068 | } |
| 22069 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22070 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22071 | ac_cv_header_time=yes |
| 22072 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22073 | ac_cv_header_time=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22074 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22076 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22078 | $as_echo "$ac_cv_header_time" >&6; } |
| 22079 | if test $ac_cv_header_time = yes; then |
| 22080 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22081 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22082 | |
| 22083 | fi |
| 22084 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22085 | { $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] | 22086 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22087 | if ${ac_cv_struct_tm+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22088 | $as_echo_n "(cached) " >&6 |
| 22089 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22091 | /* end confdefs.h. */ |
| 22092 | #include <sys/types.h> |
| 22093 | #include <time.h> |
| 22094 | |
| 22095 | int |
| 22096 | main () |
| 22097 | { |
| 22098 | struct tm tm; |
| 22099 | int *p = &tm.tm_sec; |
| 22100 | return !p; |
| 22101 | ; |
| 22102 | return 0; |
| 22103 | } |
| 22104 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22105 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22106 | ac_cv_struct_tm=time.h |
| 22107 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22108 | ac_cv_struct_tm=sys/time.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22109 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22111 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22113 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 22114 | if test $ac_cv_struct_tm = sys/time.h; then |
| 22115 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22116 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22117 | |
| 22118 | fi |
| 22119 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22120 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 22121 | #include <$ac_cv_struct_tm> |
| 22122 | |
| 22123 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22124 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22125 | |
| 22126 | cat >>confdefs.h <<_ACEOF |
| 22127 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 22128 | _ACEOF |
| 22129 | |
| 22130 | |
| 22131 | fi |
| 22132 | |
| 22133 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 22134 | |
| 22135 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 22136 | |
| 22137 | else |
| 22138 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 22139 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22140 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22141 | ac_have_decl=1 |
| 22142 | else |
| 22143 | ac_have_decl=0 |
| 22144 | fi |
| 22145 | |
| 22146 | cat >>confdefs.h <<_ACEOF |
| 22147 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 22148 | _ACEOF |
| 22149 | |
| 22150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 22151 | $as_echo_n "checking for tzname... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22152 | if ${ac_cv_var_tzname+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22153 | $as_echo_n "(cached) " >&6 |
| 22154 | else |
| 22155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22156 | /* end confdefs.h. */ |
| 22157 | #include <time.h> |
| 22158 | #if !HAVE_DECL_TZNAME |
| 22159 | extern char *tzname[]; |
| 22160 | #endif |
| 22161 | |
| 22162 | int |
| 22163 | main () |
| 22164 | { |
| 22165 | return tzname[0][0]; |
| 22166 | ; |
| 22167 | return 0; |
| 22168 | } |
| 22169 | _ACEOF |
| 22170 | if ac_fn_c_try_link "$LINENO"; then : |
| 22171 | ac_cv_var_tzname=yes |
| 22172 | else |
| 22173 | ac_cv_var_tzname=no |
| 22174 | fi |
| 22175 | rm -f core conftest.err conftest.$ac_objext \ |
| 22176 | conftest$ac_exeext conftest.$ac_ext |
| 22177 | fi |
| 22178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 22179 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 22180 | if test $ac_cv_var_tzname = yes; then |
| 22181 | |
| 22182 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 22183 | |
| 22184 | fi |
| 22185 | fi |
| 22186 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22187 | { $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] | 22188 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22189 | if ${ac_cv_sys_interpreter+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22190 | $as_echo_n "(cached) " >&6 |
| 22191 | else |
| 22192 | echo '#! /bin/cat |
| 22193 | exit 69 |
| 22194 | ' >conftest |
| 22195 | chmod u+x conftest |
| 22196 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 22197 | if test $? -ne 69; then |
| 22198 | ac_cv_sys_interpreter=yes |
| 22199 | else |
| 22200 | ac_cv_sys_interpreter=no |
| 22201 | fi |
| 22202 | rm -f conftest |
| 22203 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22205 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 22206 | interpval=$ac_cv_sys_interpreter |
| 22207 | |
| 22208 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22209 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 22210 | # define inline to __inline__ or __inline if it accepts one of those, |
| 22211 | # otherwise define inline to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22213 | $as_echo_n "checking for inline... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22214 | if ${ac_cv_c_inline+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22215 | $as_echo_n "(cached) " >&6 |
| 22216 | else |
| 22217 | ac_cv_c_inline=no |
| 22218 | for ac_kw in inline __inline__ __inline; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22220 | /* end confdefs.h. */ |
| 22221 | #ifndef __cplusplus |
| 22222 | typedef int foo_t; |
| 22223 | static $ac_kw foo_t static_foo () {return 0; } |
| 22224 | $ac_kw foo_t foo () {return 0; } |
| 22225 | #endif |
| 22226 | |
| 22227 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22228 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22229 | ac_cv_c_inline=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22230 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22232 | test "$ac_cv_c_inline" != no && break |
| 22233 | done |
| 22234 | |
| 22235 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22237 | $as_echo "$ac_cv_c_inline" >&6; } |
| 22238 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22239 | case $ac_cv_c_inline in |
| 22240 | inline | yes) ;; |
| 22241 | *) |
| 22242 | case $ac_cv_c_inline in |
| 22243 | no) ac_val=;; |
| 22244 | *) ac_val=$ac_cv_c_inline;; |
| 22245 | esac |
| 22246 | cat >>confdefs.h <<_ACEOF |
| 22247 | #ifndef __cplusplus |
| 22248 | #define inline $ac_val |
| 22249 | #endif |
| 22250 | _ACEOF |
| 22251 | ;; |
| 22252 | esac |
| 22253 | |
| 22254 | |
| 22255 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 22256 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 22257 | # otherwise define restrict to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22258 | { $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] | 22259 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22260 | if ${ac_cv_c_restrict+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22261 | $as_echo_n "(cached) " >&6 |
| 22262 | else |
| 22263 | ac_cv_c_restrict=no |
| 22264 | # The order here caters to the fact that C++ does not require restrict. |
| 22265 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22267 | /* end confdefs.h. */ |
| 22268 | typedef int * int_ptr; |
| 22269 | int foo (int_ptr $ac_kw ip) { |
| 22270 | return ip[0]; |
| 22271 | } |
| 22272 | int |
| 22273 | main () |
| 22274 | { |
| 22275 | int s[1]; |
| 22276 | int * $ac_kw t = s; |
| 22277 | t[0] = 0; |
| 22278 | return foo(t) |
| 22279 | ; |
| 22280 | return 0; |
| 22281 | } |
| 22282 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22283 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22284 | ac_cv_c_restrict=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22285 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22287 | test "$ac_cv_c_restrict" != no && break |
| 22288 | done |
| 22289 | |
| 22290 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22292 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 22293 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22294 | case $ac_cv_c_restrict in |
| 22295 | restrict) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22296 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22297 | ;; |
| 22298 | *) cat >>confdefs.h <<_ACEOF |
| 22299 | #define restrict $ac_cv_c_restrict |
| 22300 | _ACEOF |
| 22301 | ;; |
| 22302 | esac |
| 22303 | |
| 22304 | |
| 22305 | # If words are stored with the most significant byte first (like |
| 22306 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22307 | { $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] | 22308 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22309 | if ${ac_cv_c_bigendian+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22310 | $as_echo_n "(cached) " >&6 |
| 22311 | else |
| 22312 | ac_cv_c_bigendian=unknown |
| 22313 | # See if we're dealing with a universal compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22315 | /* end confdefs.h. */ |
| 22316 | #ifndef __APPLE_CC__ |
| 22317 | not a universal capable compiler |
| 22318 | #endif |
| 22319 | typedef int dummy; |
| 22320 | |
| 22321 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22322 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22323 | |
| 22324 | # Check for potential -arch flags. It is not universal unless |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22325 | # there are at least two -arch flags with different values. |
| 22326 | ac_arch= |
| 22327 | ac_prev= |
| 22328 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 22329 | if test -n "$ac_prev"; then |
| 22330 | case $ac_word in |
| 22331 | i?86 | x86_64 | ppc | ppc64) |
| 22332 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 22333 | ac_arch=$ac_word |
| 22334 | else |
| 22335 | ac_cv_c_bigendian=universal |
| 22336 | break |
| 22337 | fi |
| 22338 | ;; |
| 22339 | esac |
| 22340 | ac_prev= |
| 22341 | elif test "x$ac_word" = "x-arch"; then |
| 22342 | ac_prev=arch |
| 22343 | fi |
| 22344 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22345 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22347 | if test $ac_cv_c_bigendian = unknown; then |
| 22348 | # See if sys/param.h defines the BYTE_ORDER macro. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22350 | /* end confdefs.h. */ |
| 22351 | #include <sys/types.h> |
| 22352 | #include <sys/param.h> |
| 22353 | |
| 22354 | int |
| 22355 | main () |
| 22356 | { |
| 22357 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 22358 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 22359 | && LITTLE_ENDIAN) |
| 22360 | bogus endian macros |
| 22361 | #endif |
| 22362 | |
| 22363 | ; |
| 22364 | return 0; |
| 22365 | } |
| 22366 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22367 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22368 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22370 | /* end confdefs.h. */ |
| 22371 | #include <sys/types.h> |
| 22372 | #include <sys/param.h> |
| 22373 | |
| 22374 | int |
| 22375 | main () |
| 22376 | { |
| 22377 | #if BYTE_ORDER != BIG_ENDIAN |
| 22378 | not big endian |
| 22379 | #endif |
| 22380 | |
| 22381 | ; |
| 22382 | return 0; |
| 22383 | } |
| 22384 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22385 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22386 | ac_cv_c_bigendian=yes |
| 22387 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22388 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22389 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22391 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22393 | fi |
| 22394 | if test $ac_cv_c_bigendian = unknown; then |
| 22395 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22397 | /* end confdefs.h. */ |
| 22398 | #include <limits.h> |
| 22399 | |
| 22400 | int |
| 22401 | main () |
| 22402 | { |
| 22403 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 22404 | bogus endian macros |
| 22405 | #endif |
| 22406 | |
| 22407 | ; |
| 22408 | return 0; |
| 22409 | } |
| 22410 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22411 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22412 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22414 | /* end confdefs.h. */ |
| 22415 | #include <limits.h> |
| 22416 | |
| 22417 | int |
| 22418 | main () |
| 22419 | { |
| 22420 | #ifndef _BIG_ENDIAN |
| 22421 | not big endian |
| 22422 | #endif |
| 22423 | |
| 22424 | ; |
| 22425 | return 0; |
| 22426 | } |
| 22427 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22428 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22429 | ac_cv_c_bigendian=yes |
| 22430 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22431 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22432 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22434 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22436 | fi |
| 22437 | if test $ac_cv_c_bigendian = unknown; then |
| 22438 | # Compile a test program. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22439 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22440 | # Try to guess by grepping values from an object file. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22442 | /* end confdefs.h. */ |
| 22443 | short int ascii_mm[] = |
| 22444 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22445 | short int ascii_ii[] = |
| 22446 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 22447 | int use_ascii (int i) { |
| 22448 | return ascii_mm[i] + ascii_ii[i]; |
| 22449 | } |
| 22450 | short int ebcdic_ii[] = |
| 22451 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22452 | short int ebcdic_mm[] = |
| 22453 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 22454 | int use_ebcdic (int i) { |
| 22455 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 22456 | } |
| 22457 | extern int foo; |
| 22458 | |
| 22459 | int |
| 22460 | main () |
| 22461 | { |
| 22462 | return use_ascii (foo) == use_ebcdic (foo); |
| 22463 | ; |
| 22464 | return 0; |
| 22465 | } |
| 22466 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22467 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22468 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 22469 | ac_cv_c_bigendian=yes |
| 22470 | fi |
| 22471 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 22472 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22473 | ac_cv_c_bigendian=no |
| 22474 | else |
| 22475 | # finding both strings is unlikely to happen, but who knows? |
| 22476 | ac_cv_c_bigendian=unknown |
| 22477 | fi |
| 22478 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22479 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22481 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22483 | /* end confdefs.h. */ |
| 22484 | $ac_includes_default |
| 22485 | int |
| 22486 | main () |
| 22487 | { |
| 22488 | |
| 22489 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22490 | union |
| 22491 | { |
| 22492 | long int l; |
| 22493 | char c[sizeof (long int)]; |
| 22494 | } u; |
| 22495 | u.l = 1; |
| 22496 | return u.c[sizeof (long int) - 1] == 1; |
| 22497 | |
| 22498 | ; |
| 22499 | return 0; |
| 22500 | } |
| 22501 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22502 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22503 | ac_cv_c_bigendian=no |
| 22504 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22505 | ac_cv_c_bigendian=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22506 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22508 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22509 | fi |
| 22510 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22511 | fi |
| 22512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22514 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 22515 | case $ac_cv_c_bigendian in #( |
| 22516 | yes) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22517 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22518 | ;; #( |
| 22519 | no) |
| 22520 | ;; #( |
| 22521 | universal) |
| 22522 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22523 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22524 | |
| 22525 | ;; #( |
| 22526 | *) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22527 | as_fn_error $? "unknown endianness |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22528 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22529 | esac |
| 22530 | |
| 22531 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22532 | # Define to a suitable type, if standard headers do not define it. |
| 22533 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 22534 | case $ac_cv_c_int8_t in #( |
| 22535 | no|yes) ;; #( |
| 22536 | *) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22537 | |
| 22538 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22539 | #define int8_t $ac_cv_c_int8_t |
| 22540 | _ACEOF |
| 22541 | ;; |
| 22542 | esac |
| 22543 | |
| 22544 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 22545 | case $ac_cv_c_int16_t in #( |
| 22546 | no|yes) ;; #( |
| 22547 | *) |
| 22548 | |
| 22549 | cat >>confdefs.h <<_ACEOF |
| 22550 | #define int16_t $ac_cv_c_int16_t |
| 22551 | _ACEOF |
| 22552 | ;; |
| 22553 | esac |
| 22554 | |
| 22555 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 22556 | case $ac_cv_c_int32_t in #( |
| 22557 | no|yes) ;; #( |
| 22558 | *) |
| 22559 | |
| 22560 | cat >>confdefs.h <<_ACEOF |
| 22561 | #define int32_t $ac_cv_c_int32_t |
| 22562 | _ACEOF |
| 22563 | ;; |
| 22564 | esac |
| 22565 | |
| 22566 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 22567 | case $ac_cv_c_int64_t in #( |
| 22568 | no|yes) ;; #( |
| 22569 | *) |
| 22570 | |
| 22571 | cat >>confdefs.h <<_ACEOF |
| 22572 | #define int64_t $ac_cv_c_int64_t |
| 22573 | _ACEOF |
| 22574 | ;; |
| 22575 | esac |
| 22576 | |
| 22577 | |
| 22578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22579 | $as_echo_n "checking for long long int... " >&6; } |
| 22580 | if ${ac_cv_type_long_long_int+:} false; then : |
| 22581 | $as_echo_n "(cached) " >&6 |
| 22582 | else |
| 22583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22584 | /* end confdefs.h. */ |
| 22585 | |
| 22586 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22587 | implementations with broken preprocessors. Perhaps this can |
| 22588 | be revisited in 2012. In the meantime, code should not expect |
| 22589 | #if to work with literals wider than 32 bits. */ |
| 22590 | /* Test literals. */ |
| 22591 | long long int ll = 9223372036854775807ll; |
| 22592 | long long int nll = -9223372036854775807LL; |
| 22593 | unsigned long long int ull = 18446744073709551615ULL; |
| 22594 | /* Test constant expressions. */ |
| 22595 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22596 | ? 1 : -1)]; |
| 22597 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22598 | ? 1 : -1)]; |
| 22599 | int i = 63; |
| 22600 | int |
| 22601 | main () |
| 22602 | { |
| 22603 | /* Test availability of runtime routines for shift and division. */ |
| 22604 | long long int llmax = 9223372036854775807ll; |
| 22605 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22606 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22607 | | (llmax / ll) | (llmax % ll) |
| 22608 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22609 | | (ullmax / ull) | (ullmax % ull)); |
| 22610 | ; |
| 22611 | return 0; |
| 22612 | } |
| 22613 | |
| 22614 | _ACEOF |
| 22615 | if ac_fn_c_try_link "$LINENO"; then : |
| 22616 | if test "$cross_compiling" = yes; then : |
| 22617 | ac_cv_type_long_long_int=yes |
| 22618 | else |
| 22619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22620 | /* end confdefs.h. */ |
| 22621 | #include <limits.h> |
| 22622 | #ifndef LLONG_MAX |
| 22623 | # define HALF \ |
| 22624 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22625 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22626 | #endif |
| 22627 | int |
| 22628 | main () |
| 22629 | { |
| 22630 | long long int n = 1; |
| 22631 | int i; |
| 22632 | for (i = 0; ; i++) |
| 22633 | { |
| 22634 | long long int m = n << i; |
| 22635 | if (m >> i != n) |
| 22636 | return 1; |
| 22637 | if (LLONG_MAX / 2 < m) |
| 22638 | break; |
| 22639 | } |
| 22640 | return 0; |
| 22641 | ; |
| 22642 | return 0; |
| 22643 | } |
| 22644 | _ACEOF |
| 22645 | if ac_fn_c_try_run "$LINENO"; then : |
| 22646 | ac_cv_type_long_long_int=yes |
| 22647 | else |
| 22648 | ac_cv_type_long_long_int=no |
| 22649 | fi |
| 22650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22651 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22652 | fi |
| 22653 | |
| 22654 | else |
| 22655 | ac_cv_type_long_long_int=no |
| 22656 | fi |
| 22657 | rm -f core conftest.err conftest.$ac_objext \ |
| 22658 | conftest$ac_exeext conftest.$ac_ext |
| 22659 | fi |
| 22660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22661 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22662 | if test $ac_cv_type_long_long_int = yes; then |
| 22663 | |
| 22664 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22665 | |
| 22666 | fi |
| 22667 | |
| 22668 | |
| 22669 | |
| 22670 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 22671 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
| 22672 | |
| 22673 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 22674 | |
| 22675 | else |
| 22676 | test $ac_cv_type_long_long_int = yes \ |
| 22677 | && ac_type='long long int' \ |
| 22678 | || ac_type='long int' |
| 22679 | |
| 22680 | cat >>confdefs.h <<_ACEOF |
| 22681 | #define intmax_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22682 | _ACEOF |
| 22683 | |
| 22684 | fi |
| 22685 | |
| 22686 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22687 | |
| 22688 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 22689 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
| 22690 | |
| 22691 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22692 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22693 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22694 | for ac_type in 'int' 'long int' 'long long int'; do |
| 22695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22696 | /* end confdefs.h. */ |
| 22697 | $ac_includes_default |
| 22698 | int |
| 22699 | main () |
| 22700 | { |
| 22701 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| 22702 | test_array [0] = 0 |
| 22703 | |
| 22704 | ; |
| 22705 | return 0; |
| 22706 | } |
| 22707 | _ACEOF |
| 22708 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22709 | |
| 22710 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22711 | #define intptr_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22712 | _ACEOF |
| 22713 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22714 | ac_type= |
| 22715 | fi |
| 22716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22717 | test -z "$ac_type" && break |
| 22718 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22719 | fi |
| 22720 | |
| 22721 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22722 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 22724 | $as_echo_n "checking for long double... " >&6; } |
| 22725 | if ${ac_cv_type_long_double+:} false; then : |
| 22726 | $as_echo_n "(cached) " >&6 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22727 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22728 | if test "$GCC" = yes; then |
| 22729 | ac_cv_type_long_double=yes |
| 22730 | else |
| 22731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22732 | /* end confdefs.h. */ |
| 22733 | /* The Stardent Vistra knows sizeof (long double), but does |
| 22734 | not support it. */ |
| 22735 | long double foo = 0.0L; |
| 22736 | int |
| 22737 | main () |
| 22738 | { |
| 22739 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 22740 | sizeof (double) <= sizeof (long double))]; |
| 22741 | test_array [0] = 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22742 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22743 | ; |
| 22744 | return 0; |
| 22745 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22746 | _ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22747 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22748 | ac_cv_type_long_double=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22749 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22750 | ac_cv_type_long_double=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22751 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22753 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22754 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 22756 | $as_echo "$ac_cv_type_long_double" >&6; } |
| 22757 | if test $ac_cv_type_long_double = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22758 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22759 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22760 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22761 | fi |
| 22762 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22763 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22764 | { $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] | 22765 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22766 | if ${ac_cv_type_long_double_wider+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22767 | $as_echo_n "(cached) " >&6 |
| 22768 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22770 | /* end confdefs.h. */ |
| 22771 | #include <float.h> |
| 22772 | long double const a[] = |
| 22773 | { |
| 22774 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 22775 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 22776 | }; |
| 22777 | long double |
| 22778 | f (long double x) |
| 22779 | { |
| 22780 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 22781 | + (x ? f (x) : 'c')); |
| 22782 | } |
| 22783 | |
| 22784 | int |
| 22785 | main () |
| 22786 | { |
| 22787 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 22788 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 22789 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 22790 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 22791 | && (int) LDBL_EPSILON == 0 |
| 22792 | )]; |
| 22793 | test_array [0] = 0 |
| 22794 | |
| 22795 | ; |
| 22796 | return 0; |
| 22797 | } |
| 22798 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22799 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22800 | ac_cv_type_long_double_wider=yes |
| 22801 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22802 | ac_cv_type_long_double_wider=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22803 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22805 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22806 | { $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] | 22807 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 22808 | if test $ac_cv_type_long_double_wider = yes; then |
| 22809 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22810 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22811 | |
| 22812 | fi |
| 22813 | |
| 22814 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22816 | $as_echo_n "checking for long long int... " >&6; } |
| 22817 | if ${ac_cv_type_long_long_int+:} false; then : |
| 22818 | $as_echo_n "(cached) " >&6 |
| 22819 | else |
| 22820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22821 | /* end confdefs.h. */ |
| 22822 | |
| 22823 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22824 | implementations with broken preprocessors. Perhaps this can |
| 22825 | be revisited in 2012. In the meantime, code should not expect |
| 22826 | #if to work with literals wider than 32 bits. */ |
| 22827 | /* Test literals. */ |
| 22828 | long long int ll = 9223372036854775807ll; |
| 22829 | long long int nll = -9223372036854775807LL; |
| 22830 | unsigned long long int ull = 18446744073709551615ULL; |
| 22831 | /* Test constant expressions. */ |
| 22832 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22833 | ? 1 : -1)]; |
| 22834 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22835 | ? 1 : -1)]; |
| 22836 | int i = 63; |
| 22837 | int |
| 22838 | main () |
| 22839 | { |
| 22840 | /* Test availability of runtime routines for shift and division. */ |
| 22841 | long long int llmax = 9223372036854775807ll; |
| 22842 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22843 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22844 | | (llmax / ll) | (llmax % ll) |
| 22845 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22846 | | (ullmax / ull) | (ullmax % ull)); |
| 22847 | ; |
| 22848 | return 0; |
| 22849 | } |
| 22850 | |
| 22851 | _ACEOF |
| 22852 | if ac_fn_c_try_link "$LINENO"; then : |
| 22853 | if test "$cross_compiling" = yes; then : |
| 22854 | ac_cv_type_long_long_int=yes |
| 22855 | else |
| 22856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22857 | /* end confdefs.h. */ |
| 22858 | #include <limits.h> |
| 22859 | #ifndef LLONG_MAX |
| 22860 | # define HALF \ |
| 22861 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22862 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22863 | #endif |
| 22864 | int |
| 22865 | main () |
| 22866 | { |
| 22867 | long long int n = 1; |
| 22868 | int i; |
| 22869 | for (i = 0; ; i++) |
| 22870 | { |
| 22871 | long long int m = n << i; |
| 22872 | if (m >> i != n) |
| 22873 | return 1; |
| 22874 | if (LLONG_MAX / 2 < m) |
| 22875 | break; |
| 22876 | } |
| 22877 | return 0; |
| 22878 | ; |
| 22879 | return 0; |
| 22880 | } |
| 22881 | _ACEOF |
| 22882 | if ac_fn_c_try_run "$LINENO"; then : |
| 22883 | ac_cv_type_long_long_int=yes |
| 22884 | else |
| 22885 | ac_cv_type_long_long_int=no |
| 22886 | fi |
| 22887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22888 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22889 | fi |
| 22890 | |
| 22891 | else |
| 22892 | ac_cv_type_long_long_int=no |
| 22893 | fi |
| 22894 | rm -f core conftest.err conftest.$ac_objext \ |
| 22895 | conftest$ac_exeext conftest.$ac_ext |
| 22896 | fi |
| 22897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22898 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22899 | if test $ac_cv_type_long_long_int = yes; then |
| 22900 | |
| 22901 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22902 | |
| 22903 | fi |
| 22904 | |
| 22905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 22906 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 22907 | if ${ac_cv_type_mbstate_t+:} false; then : |
| 22908 | $as_echo_n "(cached) " >&6 |
| 22909 | else |
| 22910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22911 | /* end confdefs.h. */ |
| 22912 | $ac_includes_default |
| 22913 | # include <wchar.h> |
| 22914 | int |
| 22915 | main () |
| 22916 | { |
| 22917 | mbstate_t x; return sizeof x; |
| 22918 | ; |
| 22919 | return 0; |
| 22920 | } |
| 22921 | _ACEOF |
| 22922 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22923 | ac_cv_type_mbstate_t=yes |
| 22924 | else |
| 22925 | ac_cv_type_mbstate_t=no |
| 22926 | fi |
| 22927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22928 | fi |
| 22929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 22930 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 22931 | if test $ac_cv_type_mbstate_t = yes; then |
| 22932 | |
| 22933 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 22934 | |
| 22935 | else |
| 22936 | |
| 22937 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 22938 | |
| 22939 | fi |
| 22940 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 22941 | if test "x$ac_cv_type_mode_t" = xyes; then : |
| 22942 | |
| 22943 | else |
| 22944 | |
| 22945 | cat >>confdefs.h <<_ACEOF |
| 22946 | #define mode_t int |
| 22947 | _ACEOF |
| 22948 | |
| 22949 | fi |
| 22950 | |
| 22951 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 22952 | if test "x$ac_cv_type_off_t" = xyes; then : |
| 22953 | |
| 22954 | else |
| 22955 | |
| 22956 | cat >>confdefs.h <<_ACEOF |
| 22957 | #define off_t long int |
| 22958 | _ACEOF |
| 22959 | |
| 22960 | fi |
| 22961 | |
| 22962 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 22963 | if test "x$ac_cv_type_pid_t" = xyes; then : |
| 22964 | |
| 22965 | else |
| 22966 | |
| 22967 | cat >>confdefs.h <<_ACEOF |
| 22968 | #define pid_t int |
| 22969 | _ACEOF |
| 22970 | |
| 22971 | fi |
| 22972 | |
| 22973 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 22974 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 22975 | |
| 22976 | else |
| 22977 | |
| 22978 | cat >>confdefs.h <<_ACEOF |
| 22979 | #define size_t unsigned int |
| 22980 | _ACEOF |
| 22981 | |
| 22982 | fi |
| 22983 | |
| 22984 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 22985 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 22986 | |
| 22987 | else |
| 22988 | |
| 22989 | cat >>confdefs.h <<_ACEOF |
| 22990 | #define ssize_t int |
| 22991 | _ACEOF |
| 22992 | |
| 22993 | fi |
| 22994 | |
| 22995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 22996 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 22997 | if ${ac_cv_type_uid_t+:} false; then : |
| 22998 | $as_echo_n "(cached) " >&6 |
| 22999 | else |
| 23000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23001 | /* end confdefs.h. */ |
| 23002 | #include <sys/types.h> |
| 23003 | |
| 23004 | _ACEOF |
| 23005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23006 | $EGREP "uid_t" >/dev/null 2>&1; then : |
| 23007 | ac_cv_type_uid_t=yes |
| 23008 | else |
| 23009 | ac_cv_type_uid_t=no |
| 23010 | fi |
| 23011 | rm -f conftest* |
| 23012 | |
| 23013 | fi |
| 23014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 23015 | $as_echo "$ac_cv_type_uid_t" >&6; } |
| 23016 | if test $ac_cv_type_uid_t = no; then |
| 23017 | |
| 23018 | $as_echo "#define uid_t int" >>confdefs.h |
| 23019 | |
| 23020 | |
| 23021 | $as_echo "#define gid_t int" >>confdefs.h |
| 23022 | |
| 23023 | fi |
| 23024 | |
| 23025 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 23026 | case $ac_cv_c_uint8_t in #( |
| 23027 | no|yes) ;; #( |
| 23028 | *) |
| 23029 | |
| 23030 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 23031 | |
| 23032 | |
| 23033 | cat >>confdefs.h <<_ACEOF |
| 23034 | #define uint8_t $ac_cv_c_uint8_t |
| 23035 | _ACEOF |
| 23036 | ;; |
| 23037 | esac |
| 23038 | |
| 23039 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 23040 | case $ac_cv_c_uint16_t in #( |
| 23041 | no|yes) ;; #( |
| 23042 | *) |
| 23043 | |
| 23044 | |
| 23045 | cat >>confdefs.h <<_ACEOF |
| 23046 | #define uint16_t $ac_cv_c_uint16_t |
| 23047 | _ACEOF |
| 23048 | ;; |
| 23049 | esac |
| 23050 | |
| 23051 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 23052 | case $ac_cv_c_uint32_t in #( |
| 23053 | no|yes) ;; #( |
| 23054 | *) |
| 23055 | |
| 23056 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 23057 | |
| 23058 | |
| 23059 | cat >>confdefs.h <<_ACEOF |
| 23060 | #define uint32_t $ac_cv_c_uint32_t |
| 23061 | _ACEOF |
| 23062 | ;; |
| 23063 | esac |
| 23064 | |
| 23065 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 23066 | case $ac_cv_c_uint64_t in #( |
| 23067 | no|yes) ;; #( |
| 23068 | *) |
| 23069 | |
| 23070 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 23071 | |
| 23072 | |
| 23073 | cat >>confdefs.h <<_ACEOF |
| 23074 | #define uint64_t $ac_cv_c_uint64_t |
| 23075 | _ACEOF |
| 23076 | ;; |
| 23077 | esac |
| 23078 | |
| 23079 | |
| 23080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 23081 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 23082 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 23083 | $as_echo_n "(cached) " >&6 |
| 23084 | else |
| 23085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23086 | /* end confdefs.h. */ |
| 23087 | |
| 23088 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 23089 | implementations with broken preprocessors. Perhaps this can |
| 23090 | be revisited in 2012. In the meantime, code should not expect |
| 23091 | #if to work with literals wider than 32 bits. */ |
| 23092 | /* Test literals. */ |
| 23093 | long long int ll = 9223372036854775807ll; |
| 23094 | long long int nll = -9223372036854775807LL; |
| 23095 | unsigned long long int ull = 18446744073709551615ULL; |
| 23096 | /* Test constant expressions. */ |
| 23097 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 23098 | ? 1 : -1)]; |
| 23099 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 23100 | ? 1 : -1)]; |
| 23101 | int i = 63; |
| 23102 | int |
| 23103 | main () |
| 23104 | { |
| 23105 | /* Test availability of runtime routines for shift and division. */ |
| 23106 | long long int llmax = 9223372036854775807ll; |
| 23107 | unsigned long long int ullmax = 18446744073709551615ull; |
| 23108 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 23109 | | (llmax / ll) | (llmax % ll) |
| 23110 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 23111 | | (ullmax / ull) | (ullmax % ull)); |
| 23112 | ; |
| 23113 | return 0; |
| 23114 | } |
| 23115 | |
| 23116 | _ACEOF |
| 23117 | if ac_fn_c_try_link "$LINENO"; then : |
| 23118 | ac_cv_type_unsigned_long_long_int=yes |
| 23119 | else |
| 23120 | ac_cv_type_unsigned_long_long_int=no |
| 23121 | fi |
| 23122 | rm -f core conftest.err conftest.$ac_objext \ |
| 23123 | conftest$ac_exeext conftest.$ac_ext |
| 23124 | fi |
| 23125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 23126 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 23127 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23128 | |
| 23129 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 23130 | |
| 23131 | fi |
| 23132 | |
| 23133 | |
| 23134 | |
| 23135 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" |
| 23136 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
| 23137 | |
| 23138 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
| 23139 | |
| 23140 | else |
| 23141 | test $ac_cv_type_unsigned_long_long_int = yes \ |
| 23142 | && ac_type='unsigned long long int' \ |
| 23143 | || ac_type='unsigned long int' |
| 23144 | |
| 23145 | cat >>confdefs.h <<_ACEOF |
| 23146 | #define uintmax_t $ac_type |
| 23147 | _ACEOF |
| 23148 | |
| 23149 | fi |
| 23150 | |
| 23151 | |
| 23152 | |
| 23153 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 23154 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
| 23155 | |
| 23156 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 23157 | |
| 23158 | else |
| 23159 | for ac_type in 'unsigned int' 'unsigned long int' \ |
| 23160 | 'unsigned long long int'; do |
| 23161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23162 | /* end confdefs.h. */ |
| 23163 | $ac_includes_default |
| 23164 | int |
| 23165 | main () |
| 23166 | { |
| 23167 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| 23168 | test_array [0] = 0 |
| 23169 | |
| 23170 | ; |
| 23171 | return 0; |
| 23172 | } |
| 23173 | _ACEOF |
| 23174 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23175 | |
| 23176 | cat >>confdefs.h <<_ACEOF |
| 23177 | #define uintptr_t $ac_type |
| 23178 | _ACEOF |
| 23179 | |
| 23180 | ac_type= |
| 23181 | fi |
| 23182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23183 | test -z "$ac_type" && break |
| 23184 | done |
| 23185 | fi |
| 23186 | |
| 23187 | |
| 23188 | |
| 23189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 23190 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 23191 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 23192 | $as_echo_n "(cached) " >&6 |
| 23193 | else |
| 23194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23195 | /* end confdefs.h. */ |
| 23196 | |
| 23197 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 23198 | implementations with broken preprocessors. Perhaps this can |
| 23199 | be revisited in 2012. In the meantime, code should not expect |
| 23200 | #if to work with literals wider than 32 bits. */ |
| 23201 | /* Test literals. */ |
| 23202 | long long int ll = 9223372036854775807ll; |
| 23203 | long long int nll = -9223372036854775807LL; |
| 23204 | unsigned long long int ull = 18446744073709551615ULL; |
| 23205 | /* Test constant expressions. */ |
| 23206 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 23207 | ? 1 : -1)]; |
| 23208 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 23209 | ? 1 : -1)]; |
| 23210 | int i = 63; |
| 23211 | int |
| 23212 | main () |
| 23213 | { |
| 23214 | /* Test availability of runtime routines for shift and division. */ |
| 23215 | long long int llmax = 9223372036854775807ll; |
| 23216 | unsigned long long int ullmax = 18446744073709551615ull; |
| 23217 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 23218 | | (llmax / ll) | (llmax % ll) |
| 23219 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 23220 | | (ullmax / ull) | (ullmax % ull)); |
| 23221 | ; |
| 23222 | return 0; |
| 23223 | } |
| 23224 | |
| 23225 | _ACEOF |
| 23226 | if ac_fn_c_try_link "$LINENO"; then : |
| 23227 | ac_cv_type_unsigned_long_long_int=yes |
| 23228 | else |
| 23229 | ac_cv_type_unsigned_long_long_int=no |
| 23230 | fi |
| 23231 | rm -f core conftest.err conftest.$ac_objext \ |
| 23232 | conftest$ac_exeext conftest.$ac_ext |
| 23233 | fi |
| 23234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 23235 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 23236 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23237 | |
| 23238 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 23239 | |
| 23240 | fi |
| 23241 | |
| 23242 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23243 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 23244 | # C compiler predefines it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23246 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23247 | if ${ac_cv_c_char_unsigned+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23248 | $as_echo_n "(cached) " >&6 |
| 23249 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23251 | /* end confdefs.h. */ |
| 23252 | $ac_includes_default |
| 23253 | int |
| 23254 | main () |
| 23255 | { |
| 23256 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 23257 | test_array [0] = 0 |
| 23258 | |
| 23259 | ; |
| 23260 | return 0; |
| 23261 | } |
| 23262 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23263 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23264 | ac_cv_c_char_unsigned=no |
| 23265 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23266 | ac_cv_c_char_unsigned=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23267 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23269 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23270 | { $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] | 23271 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 23272 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23273 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23274 | |
| 23275 | fi |
| 23276 | |
| 23277 | |
| 23278 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 23279 | # The cast to long int works around a bug in the HP C Compiler |
| 23280 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23281 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23282 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23284 | $as_echo_n "checking size of signed short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23285 | if ${ac_cv_sizeof_signed_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23286 | $as_echo_n "(cached) " >&6 |
| 23287 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23288 | 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] | 23289 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23290 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23291 | if test "$ac_cv_type_signed_short" = yes; then |
| 23292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23294 | as_fn_error 77 "cannot compute sizeof (signed short) |
| 23295 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23296 | else |
| 23297 | ac_cv_sizeof_signed_short=0 |
| 23298 | fi |
| 23299 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23300 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23301 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23302 | { $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] | 23303 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 23304 | |
| 23305 | |
| 23306 | |
| 23307 | cat >>confdefs.h <<_ACEOF |
| 23308 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 23309 | _ACEOF |
| 23310 | |
| 23311 | |
| 23312 | |
| 23313 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 23314 | # The cast to long int works around a bug in the HP C Compiler |
| 23315 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23316 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23317 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23319 | $as_echo_n "checking size of unsigned short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23320 | if ${ac_cv_sizeof_unsigned_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23321 | $as_echo_n "(cached) " >&6 |
| 23322 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23323 | 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] | 23324 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23325 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23326 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 23327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23329 | as_fn_error 77 "cannot compute sizeof (unsigned short) |
| 23330 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23331 | else |
| 23332 | ac_cv_sizeof_unsigned_short=0 |
| 23333 | fi |
| 23334 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23335 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23336 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23337 | { $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] | 23338 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 23339 | |
| 23340 | |
| 23341 | |
| 23342 | cat >>confdefs.h <<_ACEOF |
| 23343 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 23344 | _ACEOF |
| 23345 | |
| 23346 | |
| 23347 | |
| 23348 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 23349 | # The cast to long int works around a bug in the HP C Compiler |
| 23350 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23351 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23352 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23354 | $as_echo_n "checking size of signed int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23355 | if ${ac_cv_sizeof_signed_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23356 | $as_echo_n "(cached) " >&6 |
| 23357 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23358 | 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] | 23359 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23360 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23361 | if test "$ac_cv_type_signed_int" = yes; then |
| 23362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23364 | as_fn_error 77 "cannot compute sizeof (signed int) |
| 23365 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23366 | else |
| 23367 | ac_cv_sizeof_signed_int=0 |
| 23368 | fi |
| 23369 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23370 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23371 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23372 | { $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] | 23373 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 23374 | |
| 23375 | |
| 23376 | |
| 23377 | cat >>confdefs.h <<_ACEOF |
| 23378 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 23379 | _ACEOF |
| 23380 | |
| 23381 | |
| 23382 | |
| 23383 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 23384 | # The cast to long int works around a bug in the HP C Compiler |
| 23385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23387 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23389 | $as_echo_n "checking size of unsigned int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23390 | if ${ac_cv_sizeof_unsigned_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23391 | $as_echo_n "(cached) " >&6 |
| 23392 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23393 | 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] | 23394 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23395 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23396 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 23397 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23399 | as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 23400 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23401 | else |
| 23402 | ac_cv_sizeof_unsigned_int=0 |
| 23403 | fi |
| 23404 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23405 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23406 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23407 | { $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] | 23408 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 23409 | |
| 23410 | |
| 23411 | |
| 23412 | cat >>confdefs.h <<_ACEOF |
| 23413 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 23414 | _ACEOF |
| 23415 | |
| 23416 | |
| 23417 | |
| 23418 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 23419 | # The cast to long int works around a bug in the HP C Compiler |
| 23420 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23421 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23422 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23424 | $as_echo_n "checking size of signed long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23425 | if ${ac_cv_sizeof_signed_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23426 | $as_echo_n "(cached) " >&6 |
| 23427 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23428 | 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] | 23429 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23430 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23431 | if test "$ac_cv_type_signed_long" = yes; then |
| 23432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23434 | as_fn_error 77 "cannot compute sizeof (signed long) |
| 23435 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23436 | else |
| 23437 | ac_cv_sizeof_signed_long=0 |
| 23438 | fi |
| 23439 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23440 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23441 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23442 | { $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] | 23443 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 23444 | |
| 23445 | |
| 23446 | |
| 23447 | cat >>confdefs.h <<_ACEOF |
| 23448 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 23449 | _ACEOF |
| 23450 | |
| 23451 | |
| 23452 | |
| 23453 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 23454 | # The cast to long int works around a bug in the HP C Compiler |
| 23455 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23456 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23457 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23459 | $as_echo_n "checking size of unsigned long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23460 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23461 | $as_echo_n "(cached) " >&6 |
| 23462 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23463 | 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] | 23464 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23465 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23466 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 23467 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23468 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23469 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 23470 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23471 | else |
| 23472 | ac_cv_sizeof_unsigned_long=0 |
| 23473 | fi |
| 23474 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23475 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23476 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23477 | { $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] | 23478 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 23479 | |
| 23480 | |
| 23481 | |
| 23482 | cat >>confdefs.h <<_ACEOF |
| 23483 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 23484 | _ACEOF |
| 23485 | |
| 23486 | |
| 23487 | |
| 23488 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 23489 | # 'signed long long' is not supported then the value defined is zero. |
| 23490 | # The cast to long int works around a bug in the HP C Compiler |
| 23491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23493 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23494 | { $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] | 23495 | $as_echo_n "checking size of signed long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23496 | if ${ac_cv_sizeof_signed_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23497 | $as_echo_n "(cached) " >&6 |
| 23498 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23499 | 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] | 23500 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23501 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23502 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 23503 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23505 | as_fn_error 77 "cannot compute sizeof (signed long long) |
| 23506 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23507 | else |
| 23508 | ac_cv_sizeof_signed_long_long=0 |
| 23509 | fi |
| 23510 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23511 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23513 | { $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] | 23514 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 23515 | |
| 23516 | |
| 23517 | |
| 23518 | cat >>confdefs.h <<_ACEOF |
| 23519 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 23520 | _ACEOF |
| 23521 | |
| 23522 | |
| 23523 | |
| 23524 | # Obtain size of a 'unsigned long long' and define as |
| 23525 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 23526 | # supported then the value defined is zero. |
| 23527 | # The cast to long int works around a bug in the HP C Compiler |
| 23528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23530 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23531 | { $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] | 23532 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23533 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23534 | $as_echo_n "(cached) " >&6 |
| 23535 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23536 | 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] | 23537 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23539 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 23540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23541 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23542 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 23543 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23544 | else |
| 23545 | ac_cv_sizeof_unsigned_long_long=0 |
| 23546 | fi |
| 23547 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23548 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23549 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23550 | { $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] | 23551 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 23552 | |
| 23553 | |
| 23554 | |
| 23555 | cat >>confdefs.h <<_ACEOF |
| 23556 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 23557 | _ACEOF |
| 23558 | |
| 23559 | |
| 23560 | |
| 23561 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 23562 | # The cast to long int works around a bug in the HP C Compiler |
| 23563 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23564 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23565 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23567 | $as_echo_n "checking size of off_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23568 | if ${ac_cv_sizeof_off_t+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23569 | $as_echo_n "(cached) " >&6 |
| 23570 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23571 | 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] | 23572 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23573 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23574 | if test "$ac_cv_type_off_t" = yes; then |
| 23575 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23576 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23577 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 23578 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23579 | else |
| 23580 | ac_cv_sizeof_off_t=0 |
| 23581 | fi |
| 23582 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23583 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23584 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23585 | { $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] | 23586 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 23587 | |
| 23588 | |
| 23589 | |
| 23590 | cat >>confdefs.h <<_ACEOF |
| 23591 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 23592 | _ACEOF |
| 23593 | |
| 23594 | |
| 23595 | |
| 23596 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 23597 | # The cast to long int works around a bug in the HP C Compiler |
| 23598 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23599 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23600 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23602 | $as_echo_n "checking size of size_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23603 | if ${ac_cv_sizeof_size_t+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23604 | $as_echo_n "(cached) " >&6 |
| 23605 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23606 | 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] | 23607 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23608 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23609 | if test "$ac_cv_type_size_t" = yes; then |
| 23610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23612 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 23613 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23614 | else |
| 23615 | ac_cv_sizeof_size_t=0 |
| 23616 | fi |
| 23617 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23618 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23619 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23620 | { $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] | 23621 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 23622 | |
| 23623 | |
| 23624 | |
| 23625 | cat >>confdefs.h <<_ACEOF |
| 23626 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 23627 | _ACEOF |
| 23628 | |
| 23629 | |
| 23630 | |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23631 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T |
| 23632 | # The cast to long int works around a bug in the HP C Compiler |
| 23633 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23634 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23635 | # This bug is HP SR number 8606223364. |
| 23636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 23637 | $as_echo_n "checking size of ssize_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23638 | if ${ac_cv_sizeof_ssize_t+:} false; then : |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23639 | $as_echo_n "(cached) " >&6 |
| 23640 | else |
| 23641 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : |
| 23642 | |
| 23643 | else |
| 23644 | if test "$ac_cv_type_ssize_t" = yes; then |
| 23645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23647 | as_fn_error 77 "cannot compute sizeof (ssize_t) |
| 23648 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23649 | else |
| 23650 | ac_cv_sizeof_ssize_t=0 |
| 23651 | fi |
| 23652 | fi |
| 23653 | |
| 23654 | fi |
| 23655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 23656 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } |
| 23657 | |
| 23658 | |
| 23659 | |
| 23660 | cat >>confdefs.h <<_ACEOF |
| 23661 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t |
| 23662 | _ACEOF |
| 23663 | |
| 23664 | |
| 23665 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23666 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 23667 | # The cast to long int works around a bug in the HP C Compiler |
| 23668 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23669 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23670 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23672 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23673 | if ${ac_cv_sizeof_unsigned_intp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23674 | $as_echo_n "(cached) " >&6 |
| 23675 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23676 | 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] | 23677 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23678 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23679 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 23680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23682 | as_fn_error 77 "cannot compute sizeof (unsigned int*) |
| 23683 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23684 | else |
| 23685 | ac_cv_sizeof_unsigned_intp=0 |
| 23686 | fi |
| 23687 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23688 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23689 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23690 | { $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] | 23691 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 23692 | |
| 23693 | |
| 23694 | |
| 23695 | cat >>confdefs.h <<_ACEOF |
| 23696 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 23697 | _ACEOF |
| 23698 | |
| 23699 | |
| 23700 | |
| 23701 | # |
| 23702 | # Compute sized types for current CPU and compiler options. |
| 23703 | # |
| 23704 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23705 | { $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] | 23706 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 23707 | INT8_T='signed char' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23708 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5 |
| 23709 | $as_echo "$as_me: $INT8_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23710 | |
| 23711 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23712 | { $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] | 23713 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 23714 | UINT8_T='unsigned char' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23715 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5 |
| 23716 | $as_echo "$as_me: $UINT8_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23717 | |
| 23718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23719 | { $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] | 23720 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 23721 | INT16_T='signed short' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23722 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5 |
| 23723 | $as_echo "$as_me: $INT16_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23724 | |
| 23725 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23726 | { $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] | 23727 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 23728 | UINT16_T='unsigned short' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23729 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5 |
| 23730 | $as_echo "$as_me: $UINT16_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23731 | |
| 23732 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23733 | { $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] | 23734 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 23735 | INT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23736 | INT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23737 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 23738 | INT32_T='signed int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23739 | INT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23740 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 23741 | INT32_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23742 | INT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23743 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23744 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5 |
| 23745 | $as_echo "$as_me: $INT32_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23746 | |
| 23747 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23748 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23749 | { $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] | 23750 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 23751 | UINT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23752 | UINT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23753 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 23754 | UINT32_T='unsigned int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23755 | UINT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23756 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 23757 | UINT32_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23758 | UINT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23759 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23760 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5 |
| 23761 | $as_echo "$as_me: $UINT32_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23762 | |
| 23763 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23764 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23765 | { $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] | 23766 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 23767 | INT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23768 | INT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23769 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 23770 | INT64_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23771 | INT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23772 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 23773 | INT64_T='signed long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23774 | INT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23775 | fi |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23776 | case "${build_os}" in |
| 23777 | mingw* ) |
| 23778 | INT64_F='"I64"' |
| 23779 | ;; |
| 23780 | esac |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23781 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5 |
| 23782 | $as_echo "$as_me: $INT64_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23783 | |
| 23784 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23785 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23786 | { $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] | 23787 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 23788 | UINT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23789 | UINT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23790 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 23791 | UINT64_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23792 | UINT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23793 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 23794 | UINT64_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23795 | UINT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23796 | fi |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23797 | case "${build_os}" in |
| 23798 | mingw* ) |
| 23799 | UINT64_F='"I64"' |
| 23800 | ;; |
| 23801 | esac |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23802 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5 |
| 23803 | $as_echo "$as_me: $UINT64_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23804 | |
| 23805 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23806 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23808 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 23809 | UINTMAX_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23810 | UINTMAX_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23811 | if test "$UINT64_T" != 'none'; then |
| 23812 | UINTMAX_T=$UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23813 | UINTMAX_F=$UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23814 | elif test "$UINT32_T" != 'none'; then |
| 23815 | UINTMAX_T=$UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23816 | UINTMAX_F=$UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23817 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23818 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5 |
| 23819 | $as_echo "$as_me: $UINTMAX_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23820 | |
| 23821 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23822 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23824 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 23825 | UINTPTR_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23826 | UINTPTR_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23827 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23828 | UINTPTR_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23829 | UINTPTR_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23830 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23831 | UINTPTR_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23832 | UINTPTR_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23833 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23834 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5 |
| 23835 | $as_echo "$as_me: $UINTPTR_T" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23836 | |
| 23837 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23838 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23839 | { $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] | 23840 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23842 | /* end confdefs.h. */ |
| 23843 | |
| 23844 | int |
| 23845 | main () |
| 23846 | { |
| 23847 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 23848 | ; |
| 23849 | return 0; |
| 23850 | } |
| 23851 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23852 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23853 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 23854 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23855 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23856 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 23857 | $as_echo "$as_me: no" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23858 | { $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] | 23859 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23861 | /* end confdefs.h. */ |
| 23862 | |
| 23863 | int |
| 23864 | main () |
| 23865 | { |
| 23866 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 23867 | ; |
| 23868 | return 0; |
| 23869 | } |
| 23870 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23871 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23872 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 23873 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23874 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23875 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23876 | |
| 23877 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23878 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 23879 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23880 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23881 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23882 | |
| 23883 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23885 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23887 | |
| 23888 | ######## |
| 23889 | # |
| 23890 | # Check for functions |
| 23891 | # |
| 23892 | ######## |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23893 | for ac_header in stdlib.h unistd.h |
| 23894 | do : |
| 23895 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23896 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23897 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23898 | cat >>confdefs.h <<_ACEOF |
| 23899 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23900 | _ACEOF |
| 23901 | |
| 23902 | fi |
| 23903 | |
| 23904 | done |
| 23905 | |
| 23906 | for ac_func in getpagesize |
| 23907 | do : |
| 23908 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23909 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23910 | cat >>confdefs.h <<_ACEOF |
| 23911 | #define HAVE_GETPAGESIZE 1 |
| 23912 | _ACEOF |
| 23913 | |
| 23914 | fi |
| 23915 | done |
| 23916 | |
| 23917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 |
| 23918 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23919 | if ${magick_cv_func_mmap_fileio+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23920 | $as_echo_n "(cached) " >&6 |
| 23921 | else |
| 23922 | if test "$cross_compiling" = yes; then : |
| 23923 | magick_cv_func_mmap_fileio=no |
| 23924 | else |
| 23925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23926 | /* end confdefs.h. */ |
| 23927 | $ac_includes_default |
| 23928 | /* malloc might have been renamed as rpl_malloc. */ |
| 23929 | #undef malloc |
| 23930 | |
| 23931 | /* |
| 23932 | This test is derived from GNU Autoconf's similar macro. |
| 23933 | The purpose of this test is to verify that files may be memory |
| 23934 | mapped, and that memory mapping and file I/O are coherent. |
| 23935 | |
| 23936 | The test creates a test file, memory maps the file, updates |
| 23937 | the file using the memory map, and then reads the file using |
| 23938 | file I/O to verify that the file contains the updates. |
| 23939 | */ |
| 23940 | |
| 23941 | #include <fcntl.h> |
| 23942 | #include <sys/mman.h> |
| 23943 | |
| 23944 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 23945 | char *malloc (); |
| 23946 | #endif |
| 23947 | |
| 23948 | /* This mess was copied from the GNU getpagesize.h. */ |
| 23949 | #if !HAVE_GETPAGESIZE |
| 23950 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 23951 | # if !HAVE_SYS_PARAM_H |
| 23952 | # define HAVE_SYS_PARAM_H 1 |
| 23953 | # endif |
| 23954 | |
| 23955 | # ifdef _SC_PAGESIZE |
| 23956 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 23957 | # else /* no _SC_PAGESIZE */ |
| 23958 | # if HAVE_SYS_PARAM_H |
| 23959 | # include <sys/param.h> |
| 23960 | # ifdef EXEC_PAGESIZE |
| 23961 | # define getpagesize() EXEC_PAGESIZE |
| 23962 | # else /* no EXEC_PAGESIZE */ |
| 23963 | # ifdef NBPG |
| 23964 | # define getpagesize() NBPG * CLSIZE |
| 23965 | # ifndef CLSIZE |
| 23966 | # define CLSIZE 1 |
| 23967 | # endif /* no CLSIZE */ |
| 23968 | # else /* no NBPG */ |
| 23969 | # ifdef NBPC |
| 23970 | # define getpagesize() NBPC |
| 23971 | # else /* no NBPC */ |
| 23972 | # ifdef PAGESIZE |
| 23973 | # define getpagesize() PAGESIZE |
| 23974 | # endif /* PAGESIZE */ |
| 23975 | # endif /* no NBPC */ |
| 23976 | # endif /* no NBPG */ |
| 23977 | # endif /* no EXEC_PAGESIZE */ |
| 23978 | # else /* no HAVE_SYS_PARAM_H */ |
| 23979 | # define getpagesize() 8192 /* punt totally */ |
| 23980 | # endif /* no HAVE_SYS_PARAM_H */ |
| 23981 | # endif /* no _SC_PAGESIZE */ |
| 23982 | |
| 23983 | #endif /* no HAVE_GETPAGESIZE */ |
| 23984 | |
| 23985 | int |
| 23986 | main () |
| 23987 | { |
| 23988 | char *data, *data2, *data3; |
| 23989 | int i, pagesize; |
| 23990 | int fd; |
| 23991 | |
| 23992 | pagesize = getpagesize (); |
| 23993 | |
| 23994 | /* First, make a file with some known garbage in it. */ |
| 23995 | data = (char *) malloc (pagesize); |
| 23996 | if (!data) |
| 23997 | exit (1); |
| 23998 | for (i = 0; i < pagesize; ++i) |
| 23999 | *(data + i) = rand (); |
| 24000 | umask (0); |
| 24001 | fd = creat ("conftest.mmap", 0600); |
| 24002 | if (fd < 0) |
| 24003 | exit (1); |
| 24004 | if (write (fd, data, pagesize) != pagesize) |
| 24005 | exit (1); |
| 24006 | close (fd); |
| 24007 | |
| 24008 | /* Mmap the file as read/write/shared and verify that we see the |
| 24009 | same garbage. */ |
| 24010 | fd = open ("conftest.mmap", O_RDWR); |
| 24011 | if (fd < 0) |
| 24012 | exit (1); |
| 24013 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 24014 | if (data2 == 0) |
| 24015 | exit (1); |
| 24016 | for (i = 0; i < pagesize; ++i) |
| 24017 | if (*(data + i) != *(data2 + i)) |
| 24018 | exit (1); |
| 24019 | |
| 24020 | /* Finally, make sure that changes to the mapped area |
| 24021 | percolate back to the file as seen by read(). */ |
| 24022 | for (i = 0; i < pagesize; ++i) |
| 24023 | *(data2 + i) = *(data2 + i) + 1; |
| 24024 | data3 = (char *) malloc (pagesize); |
| 24025 | if (!data3) |
| 24026 | exit (1); |
| 24027 | if (read (fd, data3, pagesize) != pagesize) |
| 24028 | exit (1); |
| 24029 | for (i = 0; i < pagesize; ++i) |
| 24030 | if (*(data2 + i) != *(data3 + i)) |
| 24031 | exit (1); |
| 24032 | close (fd); |
| 24033 | exit (0); |
| 24034 | } |
| 24035 | _ACEOF |
| 24036 | if ac_fn_c_try_run "$LINENO"; then : |
| 24037 | magick_cv_func_mmap_fileio=yes |
| 24038 | else |
| 24039 | magick_cv_func_mmap_fileio=no |
| 24040 | fi |
| 24041 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24042 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24043 | fi |
| 24044 | |
| 24045 | fi |
| 24046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 |
| 24047 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 24048 | if test $magick_cv_func_mmap_fileio = yes; then |
| 24049 | |
| 24050 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h |
| 24051 | |
| 24052 | fi |
| 24053 | rm -f conftest.mmap |
| 24054 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24056 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24057 | if ${ac_cv_func_closedir_void+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24058 | $as_echo_n "(cached) " >&6 |
| 24059 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24060 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24061 | ac_cv_func_closedir_void=yes |
| 24062 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24064 | /* end confdefs.h. */ |
| 24065 | $ac_includes_default |
| 24066 | #include <$ac_header_dirent> |
| 24067 | #ifndef __cplusplus |
| 24068 | int closedir (); |
| 24069 | #endif |
| 24070 | |
| 24071 | int |
| 24072 | main () |
| 24073 | { |
| 24074 | return closedir (opendir (".")) != 0; |
| 24075 | ; |
| 24076 | return 0; |
| 24077 | } |
| 24078 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24079 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24080 | ac_cv_func_closedir_void=no |
| 24081 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24082 | ac_cv_func_closedir_void=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24083 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24084 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24085 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24086 | fi |
| 24087 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24088 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24089 | { $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] | 24090 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 24091 | if test $ac_cv_func_closedir_void = yes; then |
| 24092 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24093 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24094 | |
| 24095 | fi |
| 24096 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24097 | |
| 24098 | |
| 24099 | |
| 24100 | for ac_header in $ac_header_list |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24101 | do : |
| 24102 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24103 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 24104 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24105 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24106 | cat >>confdefs.h <<_ACEOF |
| 24107 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24108 | _ACEOF |
| 24109 | |
| 24110 | fi |
| 24111 | |
| 24112 | done |
| 24113 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24114 | |
| 24115 | |
| 24116 | |
| 24117 | |
| 24118 | |
| 24119 | |
| 24120 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24121 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24122 | do : |
| 24123 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24124 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24125 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24126 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24127 | _ACEOF |
| 24128 | |
| 24129 | fi |
| 24130 | done |
| 24131 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24133 | $as_echo_n "checking for working mmap... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24134 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24135 | $as_echo_n "(cached) " >&6 |
| 24136 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24137 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24138 | ac_cv_func_mmap_fixed_mapped=no |
| 24139 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24141 | /* end confdefs.h. */ |
| 24142 | $ac_includes_default |
| 24143 | /* malloc might have been renamed as rpl_malloc. */ |
| 24144 | #undef malloc |
| 24145 | |
| 24146 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 24147 | Here is a matrix of mmap possibilities: |
| 24148 | mmap private not fixed |
| 24149 | mmap private fixed at somewhere currently unmapped |
| 24150 | mmap private fixed at somewhere already mapped |
| 24151 | mmap shared not fixed |
| 24152 | mmap shared fixed at somewhere currently unmapped |
| 24153 | mmap shared fixed at somewhere already mapped |
| 24154 | For private mappings, we should verify that changes cannot be read() |
| 24155 | back from the file, nor mmap's back from the file at a different |
| 24156 | address. (There have been systems where private was not correctly |
| 24157 | implemented like the infamous i386 svr4.0, and systems where the |
| 24158 | VM page cache was not coherent with the file system buffer cache |
| 24159 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 24160 | For shared mappings, we should conversely verify that changes get |
| 24161 | propagated back to all the places they're supposed to be. |
| 24162 | |
| 24163 | Grep wants private fixed already mapped. |
| 24164 | The main things grep needs to know about mmap are: |
| 24165 | * does it exist and is it safe to write into the mmap'd area |
| 24166 | * how to use it (BSD variants) */ |
| 24167 | |
| 24168 | #include <fcntl.h> |
| 24169 | #include <sys/mman.h> |
| 24170 | |
| 24171 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 24172 | char *malloc (); |
| 24173 | #endif |
| 24174 | |
| 24175 | /* This mess was copied from the GNU getpagesize.h. */ |
| 24176 | #ifndef HAVE_GETPAGESIZE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24177 | # ifdef _SC_PAGESIZE |
| 24178 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 24179 | # else /* no _SC_PAGESIZE */ |
| 24180 | # ifdef HAVE_SYS_PARAM_H |
| 24181 | # include <sys/param.h> |
| 24182 | # ifdef EXEC_PAGESIZE |
| 24183 | # define getpagesize() EXEC_PAGESIZE |
| 24184 | # else /* no EXEC_PAGESIZE */ |
| 24185 | # ifdef NBPG |
| 24186 | # define getpagesize() NBPG * CLSIZE |
| 24187 | # ifndef CLSIZE |
| 24188 | # define CLSIZE 1 |
| 24189 | # endif /* no CLSIZE */ |
| 24190 | # else /* no NBPG */ |
| 24191 | # ifdef NBPC |
| 24192 | # define getpagesize() NBPC |
| 24193 | # else /* no NBPC */ |
| 24194 | # ifdef PAGESIZE |
| 24195 | # define getpagesize() PAGESIZE |
| 24196 | # endif /* PAGESIZE */ |
| 24197 | # endif /* no NBPC */ |
| 24198 | # endif /* no NBPG */ |
| 24199 | # endif /* no EXEC_PAGESIZE */ |
| 24200 | # else /* no HAVE_SYS_PARAM_H */ |
| 24201 | # define getpagesize() 8192 /* punt totally */ |
| 24202 | # endif /* no HAVE_SYS_PARAM_H */ |
| 24203 | # endif /* no _SC_PAGESIZE */ |
| 24204 | |
| 24205 | #endif /* no HAVE_GETPAGESIZE */ |
| 24206 | |
| 24207 | int |
| 24208 | main () |
| 24209 | { |
| 24210 | char *data, *data2, *data3; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24211 | const char *cdata2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24212 | int i, pagesize; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24213 | int fd, fd2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24214 | |
| 24215 | pagesize = getpagesize (); |
| 24216 | |
| 24217 | /* First, make a file with some known garbage in it. */ |
| 24218 | data = (char *) malloc (pagesize); |
| 24219 | if (!data) |
| 24220 | return 1; |
| 24221 | for (i = 0; i < pagesize; ++i) |
| 24222 | *(data + i) = rand (); |
| 24223 | umask (0); |
| 24224 | fd = creat ("conftest.mmap", 0600); |
| 24225 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24226 | return 2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24227 | if (write (fd, data, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24228 | return 3; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24229 | close (fd); |
| 24230 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24231 | /* Next, check that the tail of a page is zero-filled. File must have |
| 24232 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 24233 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 24234 | if (fd2 < 0) |
| 24235 | return 4; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24236 | cdata2 = ""; |
| 24237 | if (write (fd2, cdata2, 1) != 1) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24238 | return 5; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24239 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24240 | if (data2 == MAP_FAILED) |
| 24241 | return 6; |
| 24242 | for (i = 0; i < pagesize; ++i) |
| 24243 | if (*(data2 + i)) |
| 24244 | return 7; |
| 24245 | close (fd2); |
| 24246 | if (munmap (data2, pagesize)) |
| 24247 | return 8; |
| 24248 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24249 | /* Next, try to mmap the file at a fixed address which already has |
| 24250 | something else allocated at it. If we can, also make sure that |
| 24251 | we see the same garbage. */ |
| 24252 | fd = open ("conftest.mmap", O_RDWR); |
| 24253 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24254 | return 9; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24255 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 24256 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24257 | return 10; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24258 | for (i = 0; i < pagesize; ++i) |
| 24259 | if (*(data + i) != *(data2 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24260 | return 11; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24261 | |
| 24262 | /* Finally, make sure that changes to the mapped area do not |
| 24263 | percolate back to the file as seen by read(). (This is a bug on |
| 24264 | some variants of i386 svr4.0.) */ |
| 24265 | for (i = 0; i < pagesize; ++i) |
| 24266 | *(data2 + i) = *(data2 + i) + 1; |
| 24267 | data3 = (char *) malloc (pagesize); |
| 24268 | if (!data3) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24269 | return 12; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24270 | if (read (fd, data3, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24271 | return 13; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24272 | for (i = 0; i < pagesize; ++i) |
| 24273 | if (*(data + i) != *(data3 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24274 | return 14; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24275 | close (fd); |
| 24276 | return 0; |
| 24277 | } |
| 24278 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24279 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24280 | ac_cv_func_mmap_fixed_mapped=yes |
| 24281 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24282 | ac_cv_func_mmap_fixed_mapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24283 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24285 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24286 | fi |
| 24287 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24288 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24289 | { $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] | 24290 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 24291 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 24292 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24293 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24294 | |
| 24295 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24296 | rm -f conftest.mmap conftest.txt |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24297 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24298 | for ac_header in vfork.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24299 | do : |
| 24300 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24301 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24302 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24303 | #define HAVE_VFORK_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24304 | _ACEOF |
| 24305 | |
| 24306 | fi |
| 24307 | |
| 24308 | done |
| 24309 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24310 | for ac_func in fork vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24311 | do : |
| 24312 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24313 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24314 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24315 | cat >>confdefs.h <<_ACEOF |
| 24316 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24317 | _ACEOF |
| 24318 | |
| 24319 | fi |
| 24320 | done |
| 24321 | |
| 24322 | if test "x$ac_cv_func_fork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24324 | $as_echo_n "checking for working fork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24325 | if ${ac_cv_func_fork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24326 | $as_echo_n "(cached) " >&6 |
| 24327 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24328 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24329 | ac_cv_func_fork_works=cross |
| 24330 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24332 | /* end confdefs.h. */ |
| 24333 | $ac_includes_default |
| 24334 | int |
| 24335 | main () |
| 24336 | { |
| 24337 | |
| 24338 | /* By Ruediger Kuhlmann. */ |
| 24339 | return fork () < 0; |
| 24340 | |
| 24341 | ; |
| 24342 | return 0; |
| 24343 | } |
| 24344 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24345 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24346 | ac_cv_func_fork_works=yes |
| 24347 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24348 | ac_cv_func_fork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24349 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24351 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24352 | fi |
| 24353 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24354 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24355 | { $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] | 24356 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 24357 | |
| 24358 | else |
| 24359 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 24360 | fi |
| 24361 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24362 | case $host in |
| 24363 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 24364 | # Override, as these systems have only a dummy fork() stub |
| 24365 | ac_cv_func_fork_works=no |
| 24366 | ;; |
| 24367 | *) |
| 24368 | ac_cv_func_fork_works=yes |
| 24369 | ;; |
| 24370 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24371 | { $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] | 24372 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 24373 | fi |
| 24374 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 24375 | if test "x$ac_cv_func_vfork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24377 | $as_echo_n "checking for working vfork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24378 | if ${ac_cv_func_vfork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24379 | $as_echo_n "(cached) " >&6 |
| 24380 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24381 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24382 | ac_cv_func_vfork_works=cross |
| 24383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24385 | /* end confdefs.h. */ |
| 24386 | /* Thanks to Paul Eggert for this test. */ |
| 24387 | $ac_includes_default |
| 24388 | #include <sys/wait.h> |
| 24389 | #ifdef HAVE_VFORK_H |
| 24390 | # include <vfork.h> |
| 24391 | #endif |
| 24392 | /* On some sparc systems, changes by the child to local and incoming |
| 24393 | argument registers are propagated back to the parent. The compiler |
| 24394 | is told about this with #include <vfork.h>, but some compilers |
| 24395 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 24396 | static variable whose address is put into a register that is |
| 24397 | clobbered by the vfork. */ |
| 24398 | static void |
| 24399 | #ifdef __cplusplus |
| 24400 | sparc_address_test (int arg) |
| 24401 | # else |
| 24402 | sparc_address_test (arg) int arg; |
| 24403 | #endif |
| 24404 | { |
| 24405 | static pid_t child; |
| 24406 | if (!child) { |
| 24407 | child = vfork (); |
| 24408 | if (child < 0) { |
| 24409 | perror ("vfork"); |
| 24410 | _exit(2); |
| 24411 | } |
| 24412 | if (!child) { |
| 24413 | arg = getpid(); |
| 24414 | write(-1, "", 0); |
| 24415 | _exit (arg); |
| 24416 | } |
| 24417 | } |
| 24418 | } |
| 24419 | |
| 24420 | int |
| 24421 | main () |
| 24422 | { |
| 24423 | pid_t parent = getpid (); |
| 24424 | pid_t child; |
| 24425 | |
| 24426 | sparc_address_test (0); |
| 24427 | |
| 24428 | child = vfork (); |
| 24429 | |
| 24430 | if (child == 0) { |
| 24431 | /* Here is another test for sparc vfork register problems. This |
| 24432 | test uses lots of local variables, at least as many local |
| 24433 | variables as main has allocated so far including compiler |
| 24434 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 24435 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 24436 | reuse the register of parent for one of the local variables, |
| 24437 | since it will think that parent can't possibly be used any more |
| 24438 | in this routine. Assigning to the local variable will thus |
| 24439 | munge parent in the parent process. */ |
| 24440 | pid_t |
| 24441 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 24442 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 24443 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 24444 | use the same hardware register for all 8 local variables. */ |
| 24445 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 24446 | || p != p5 || p != p6 || p != p7) |
| 24447 | _exit(1); |
| 24448 | |
| 24449 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 24450 | from child file descriptors. If the child closes a descriptor |
| 24451 | before it execs or exits, this munges the parent's descriptor |
| 24452 | as well. Test for this by closing stdout in the child. */ |
| 24453 | _exit(close(fileno(stdout)) != 0); |
| 24454 | } else { |
| 24455 | int status; |
| 24456 | struct stat st; |
| 24457 | |
| 24458 | while (wait(&status) != child) |
| 24459 | ; |
| 24460 | return ( |
| 24461 | /* Was there some problem with vforking? */ |
| 24462 | child < 0 |
| 24463 | |
| 24464 | /* Did the child fail? (This shouldn't happen.) */ |
| 24465 | || status |
| 24466 | |
| 24467 | /* Did the vfork/compiler bug occur? */ |
| 24468 | || parent != getpid() |
| 24469 | |
| 24470 | /* Did the file descriptor bug occur? */ |
| 24471 | || fstat(fileno(stdout), &st) != 0 |
| 24472 | ); |
| 24473 | } |
| 24474 | } |
| 24475 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24476 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24477 | ac_cv_func_vfork_works=yes |
| 24478 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24479 | ac_cv_func_vfork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24480 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24482 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24483 | fi |
| 24484 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24485 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24486 | { $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] | 24487 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 24488 | |
| 24489 | fi; |
| 24490 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24491 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24492 | { $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] | 24493 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 24494 | fi |
| 24495 | |
| 24496 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 24497 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24498 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24499 | |
| 24500 | else |
| 24501 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24502 | $as_echo "#define vfork fork" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24503 | |
| 24504 | fi |
| 24505 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 24506 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24507 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24508 | |
| 24509 | fi |
| 24510 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24512 | $as_echo_n "checking for working memcmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24513 | if ${ac_cv_func_memcmp_working+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24514 | $as_echo_n "(cached) " >&6 |
| 24515 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24516 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24517 | ac_cv_func_memcmp_working=no |
| 24518 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24520 | /* end confdefs.h. */ |
| 24521 | $ac_includes_default |
| 24522 | int |
| 24523 | main () |
| 24524 | { |
| 24525 | |
| 24526 | /* Some versions of memcmp are not 8-bit clean. */ |
| 24527 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 24528 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 24529 | return 1; |
| 24530 | |
| 24531 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 24532 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 24533 | William Lewis provided this test program. */ |
| 24534 | { |
| 24535 | char foo[21]; |
| 24536 | char bar[21]; |
| 24537 | int i; |
| 24538 | for (i = 0; i < 4; i++) |
| 24539 | { |
| 24540 | char *a = foo + i; |
| 24541 | char *b = bar + i; |
| 24542 | strcpy (a, "--------01111111"); |
| 24543 | strcpy (b, "--------10000000"); |
| 24544 | if (memcmp (a, b, 16) >= 0) |
| 24545 | return 1; |
| 24546 | } |
| 24547 | return 0; |
| 24548 | } |
| 24549 | |
| 24550 | ; |
| 24551 | return 0; |
| 24552 | } |
| 24553 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24554 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24555 | ac_cv_func_memcmp_working=yes |
| 24556 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24557 | ac_cv_func_memcmp_working=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24558 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24559 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24560 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24561 | fi |
| 24562 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24563 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24564 | { $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] | 24565 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 24566 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 24567 | *" memcmp.$ac_objext "* ) ;; |
| 24568 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 24569 | ;; |
| 24570 | esac |
| 24571 | |
| 24572 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24573 | for ac_header in sys/select.h sys/socket.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24574 | do : |
| 24575 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24576 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24577 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24578 | cat >>confdefs.h <<_ACEOF |
| 24579 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24580 | _ACEOF |
| 24581 | |
| 24582 | fi |
| 24583 | |
| 24584 | done |
| 24585 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24586 | { $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] | 24587 | $as_echo_n "checking types of arguments for select... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24588 | if ${ac_cv_func_select_args+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24589 | $as_echo_n "(cached) " >&6 |
| 24590 | else |
| 24591 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 24592 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 24593 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24595 | /* end confdefs.h. */ |
| 24596 | $ac_includes_default |
| 24597 | #ifdef HAVE_SYS_SELECT_H |
| 24598 | # include <sys/select.h> |
| 24599 | #endif |
| 24600 | #ifdef HAVE_SYS_SOCKET_H |
| 24601 | # include <sys/socket.h> |
| 24602 | #endif |
| 24603 | |
| 24604 | int |
| 24605 | main () |
| 24606 | { |
| 24607 | extern int select ($ac_arg1, |
| 24608 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 24609 | $ac_arg5); |
| 24610 | ; |
| 24611 | return 0; |
| 24612 | } |
| 24613 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24614 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24615 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24616 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24618 | done |
| 24619 | done |
| 24620 | done |
| 24621 | # Provide a safe default value. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24622 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24623 | |
| 24624 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24625 | { $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] | 24626 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 24627 | ac_save_IFS=$IFS; IFS=',' |
| 24628 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 24629 | IFS=$ac_save_IFS |
| 24630 | shift |
| 24631 | |
| 24632 | cat >>confdefs.h <<_ACEOF |
| 24633 | #define SELECT_TYPE_ARG1 $1 |
| 24634 | _ACEOF |
| 24635 | |
| 24636 | |
| 24637 | cat >>confdefs.h <<_ACEOF |
| 24638 | #define SELECT_TYPE_ARG234 ($2) |
| 24639 | _ACEOF |
| 24640 | |
| 24641 | |
| 24642 | cat >>confdefs.h <<_ACEOF |
| 24643 | #define SELECT_TYPE_ARG5 ($3) |
| 24644 | _ACEOF |
| 24645 | |
| 24646 | rm -f conftest* |
| 24647 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24648 | if ${ac_cv_func_setvbuf_reversed+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24649 | $as_echo_n "(cached) " >&6 |
| 24650 | else |
| 24651 | ac_cv_func_setvbuf_reversed=no |
| 24652 | fi |
| 24653 | |
| 24654 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24655 | { $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] | 24656 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24657 | if ${ac_cv_type_signal+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24658 | $as_echo_n "(cached) " >&6 |
| 24659 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24661 | /* end confdefs.h. */ |
| 24662 | #include <sys/types.h> |
| 24663 | #include <signal.h> |
| 24664 | |
| 24665 | int |
| 24666 | main () |
| 24667 | { |
| 24668 | return *(signal (0, 0)) (0) == 1; |
| 24669 | ; |
| 24670 | return 0; |
| 24671 | } |
| 24672 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24673 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24674 | ac_cv_type_signal=int |
| 24675 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24676 | ac_cv_type_signal=void |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24677 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24679 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24681 | $as_echo "$ac_cv_type_signal" >&6; } |
| 24682 | |
| 24683 | cat >>confdefs.h <<_ACEOF |
| 24684 | #define RETSIGTYPE $ac_cv_type_signal |
| 24685 | _ACEOF |
| 24686 | |
| 24687 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24689 | $as_echo_n "checking for working strtod... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24690 | if ${ac_cv_func_strtod+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24691 | $as_echo_n "(cached) " >&6 |
| 24692 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24693 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24694 | ac_cv_func_strtod=no |
| 24695 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24697 | /* end confdefs.h. */ |
| 24698 | |
| 24699 | $ac_includes_default |
| 24700 | #ifndef strtod |
| 24701 | double strtod (); |
| 24702 | #endif |
| 24703 | int |
| 24704 | main() |
| 24705 | { |
| 24706 | { |
| 24707 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 24708 | char *string = " +69"; |
| 24709 | char *term; |
| 24710 | double value; |
| 24711 | value = strtod (string, &term); |
| 24712 | if (value != 69 || term != (string + 4)) |
| 24713 | return 1; |
| 24714 | } |
| 24715 | |
| 24716 | { |
| 24717 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 24718 | terminating character under some conditions. */ |
| 24719 | char *string = "NaN"; |
| 24720 | char *term; |
| 24721 | strtod (string, &term); |
| 24722 | if (term != string && *(term - 1) == 0) |
| 24723 | return 1; |
| 24724 | } |
| 24725 | return 0; |
| 24726 | } |
| 24727 | |
| 24728 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24729 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24730 | ac_cv_func_strtod=yes |
| 24731 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24732 | ac_cv_func_strtod=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24733 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24735 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24736 | fi |
| 24737 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24738 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24740 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 24741 | if test $ac_cv_func_strtod = no; then |
| 24742 | case " $LIBOBJS " in |
| 24743 | *" strtod.$ac_objext "* ) ;; |
| 24744 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 24745 | ;; |
| 24746 | esac |
| 24747 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24748 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24749 | if test "x$ac_cv_func_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24750 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24751 | fi |
| 24752 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24753 | if test $ac_cv_func_pow = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24755 | $as_echo_n "checking for pow in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24756 | if ${ac_cv_lib_m_pow+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24757 | $as_echo_n "(cached) " >&6 |
| 24758 | else |
| 24759 | ac_check_lib_save_LIBS=$LIBS |
| 24760 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24762 | /* end confdefs.h. */ |
| 24763 | |
| 24764 | /* Override any GCC internal prototype to avoid an error. |
| 24765 | Use char because int might match the return type of a GCC |
| 24766 | builtin and then its argument prototype would still apply. */ |
| 24767 | #ifdef __cplusplus |
| 24768 | extern "C" |
| 24769 | #endif |
| 24770 | char pow (); |
| 24771 | int |
| 24772 | main () |
| 24773 | { |
| 24774 | return pow (); |
| 24775 | ; |
| 24776 | return 0; |
| 24777 | } |
| 24778 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24779 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24780 | ac_cv_lib_m_pow=yes |
| 24781 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24782 | ac_cv_lib_m_pow=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24783 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24784 | rm -f core conftest.err conftest.$ac_objext \ |
| 24785 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24786 | LIBS=$ac_check_lib_save_LIBS |
| 24787 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24788 | { $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] | 24789 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24790 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24791 | POW_LIB=-lm |
| 24792 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24793 | { $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] | 24794 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 24795 | fi |
| 24796 | |
| 24797 | fi |
| 24798 | |
| 24799 | fi |
| 24800 | |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24801 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
| 24802 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
| 24803 | ac_have_decl=1 |
| 24804 | else |
| 24805 | ac_have_decl=0 |
| 24806 | fi |
| 24807 | |
| 24808 | cat >>confdefs.h <<_ACEOF |
| 24809 | #define HAVE_DECL_STRERROR_R $ac_have_decl |
| 24810 | _ACEOF |
| 24811 | |
| 24812 | for ac_func in strerror_r |
| 24813 | do : |
| 24814 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 24815 | if test "x$ac_cv_func_strerror_r" = xyes; then : |
| 24816 | cat >>confdefs.h <<_ACEOF |
| 24817 | #define HAVE_STRERROR_R 1 |
| 24818 | _ACEOF |
| 24819 | |
| 24820 | fi |
| 24821 | done |
| 24822 | |
| 24823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 24824 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } |
| 24825 | if ${ac_cv_func_strerror_r_char_p+:} false; then : |
| 24826 | $as_echo_n "(cached) " >&6 |
| 24827 | else |
| 24828 | |
| 24829 | ac_cv_func_strerror_r_char_p=no |
| 24830 | if test $ac_cv_have_decl_strerror_r = yes; then |
| 24831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24832 | /* end confdefs.h. */ |
| 24833 | $ac_includes_default |
| 24834 | int |
| 24835 | main () |
| 24836 | { |
| 24837 | |
| 24838 | char buf[100]; |
| 24839 | char x = *strerror_r (0, buf, sizeof buf); |
| 24840 | char *p = strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 24841 | return !p || x; |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24842 | |
| 24843 | ; |
| 24844 | return 0; |
| 24845 | } |
| 24846 | _ACEOF |
| 24847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 24848 | ac_cv_func_strerror_r_char_p=yes |
| 24849 | fi |
| 24850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24851 | else |
| 24852 | # strerror_r is not declared. Choose between |
| 24853 | # systems that have relatively inaccessible declarations for the |
| 24854 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 24855 | # former has a strerror_r that returns char*, while the latter |
| 24856 | # has a strerror_r that returns `int'. |
| 24857 | # This test should segfault on the DEC system. |
| 24858 | if test "$cross_compiling" = yes; then : |
| 24859 | : |
| 24860 | else |
| 24861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24862 | /* end confdefs.h. */ |
| 24863 | $ac_includes_default |
| 24864 | extern char *strerror_r (); |
| 24865 | int |
| 24866 | main () |
| 24867 | { |
| 24868 | char buf[100]; |
| 24869 | char x = *strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 24870 | return ! isalpha (x); |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24871 | ; |
| 24872 | return 0; |
| 24873 | } |
| 24874 | _ACEOF |
| 24875 | if ac_fn_c_try_run "$LINENO"; then : |
| 24876 | ac_cv_func_strerror_r_char_p=yes |
| 24877 | fi |
| 24878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24879 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24880 | fi |
| 24881 | |
| 24882 | fi |
| 24883 | |
| 24884 | fi |
| 24885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 24886 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
| 24887 | if test $ac_cv_func_strerror_r_char_p = yes; then |
| 24888 | |
| 24889 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 24890 | |
| 24891 | fi |
| 24892 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24893 | for ac_func in vprintf |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24894 | do : |
| 24895 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24896 | if test "x$ac_cv_func_vprintf" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24897 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24898 | #define HAVE_VPRINTF 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24899 | _ACEOF |
| 24900 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24901 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24902 | if test "x$ac_cv_func__doprnt" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24903 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24904 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24905 | |
| 24906 | fi |
| 24907 | |
| 24908 | fi |
| 24909 | done |
| 24910 | |
| 24911 | |
| 24912 | |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24913 | # |
| 24914 | # Find math library |
| 24915 | # |
| 24916 | MATH_LIBS='' |
| 24917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 24918 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24919 | if ${ac_cv_lib_m_sqrt+:} false; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24920 | $as_echo_n "(cached) " >&6 |
| 24921 | else |
| 24922 | ac_check_lib_save_LIBS=$LIBS |
| 24923 | LIBS="-lm $LIBS" |
| 24924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24925 | /* end confdefs.h. */ |
| 24926 | |
| 24927 | /* Override any GCC internal prototype to avoid an error. |
| 24928 | Use char because int might match the return type of a GCC |
| 24929 | builtin and then its argument prototype would still apply. */ |
| 24930 | #ifdef __cplusplus |
| 24931 | extern "C" |
| 24932 | #endif |
| 24933 | char sqrt (); |
| 24934 | int |
| 24935 | main () |
| 24936 | { |
| 24937 | return sqrt (); |
| 24938 | ; |
| 24939 | return 0; |
| 24940 | } |
| 24941 | _ACEOF |
| 24942 | if ac_fn_c_try_link "$LINENO"; then : |
| 24943 | ac_cv_lib_m_sqrt=yes |
| 24944 | else |
| 24945 | ac_cv_lib_m_sqrt=no |
| 24946 | fi |
| 24947 | rm -f core conftest.err conftest.$ac_objext \ |
| 24948 | conftest$ac_exeext conftest.$ac_ext |
| 24949 | LIBS=$ac_check_lib_save_LIBS |
| 24950 | fi |
| 24951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 24952 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24953 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24954 | MATH_LIBS="-lm" |
| 24955 | fi |
| 24956 | |
| 24957 | LIBS="$MATH_LIBS $LIBS" |
| 24958 | |
| 24959 | |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24960 | for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24961 | do : |
| 24962 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24963 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24964 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24965 | cat >>confdefs.h <<_ACEOF |
| 24966 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24967 | _ACEOF |
| 24968 | |
| 24969 | fi |
| 24970 | done |
| 24971 | |
| 24972 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24973 | # |
| 24974 | # Check for clock_gettime(). |
| 24975 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24976 | { $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] | 24977 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24978 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24979 | $as_echo_n "(cached) " >&6 |
| 24980 | else |
| 24981 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24983 | /* end confdefs.h. */ |
| 24984 | |
| 24985 | /* Override any GCC internal prototype to avoid an error. |
| 24986 | Use char because int might match the return type of a GCC |
| 24987 | builtin and then its argument prototype would still apply. */ |
| 24988 | #ifdef __cplusplus |
| 24989 | extern "C" |
| 24990 | #endif |
| 24991 | char clock_gettime (); |
| 24992 | int |
| 24993 | main () |
| 24994 | { |
| 24995 | return clock_gettime (); |
| 24996 | ; |
| 24997 | return 0; |
| 24998 | } |
| 24999 | _ACEOF |
| 25000 | for ac_lib in '' rt; do |
| 25001 | if test -z "$ac_lib"; then |
| 25002 | ac_res="none required" |
| 25003 | else |
| 25004 | ac_res=-l$ac_lib |
| 25005 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25006 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25007 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25008 | ac_cv_search_clock_gettime=$ac_res |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25009 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25010 | rm -f core conftest.err conftest.$ac_objext \ |
| 25011 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25012 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25013 | break |
| 25014 | fi |
| 25015 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25016 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25017 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25018 | else |
| 25019 | ac_cv_search_clock_gettime=no |
| 25020 | fi |
| 25021 | rm conftest.$ac_ext |
| 25022 | LIBS=$ac_func_search_save_LIBS |
| 25023 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25024 | { $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] | 25025 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 25026 | ac_res=$ac_cv_search_clock_gettime |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25027 | if test "$ac_res" != no; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25028 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 25029 | |
| 25030 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25031 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25032 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25033 | { $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] | 25034 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25036 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25037 | |
| 25038 | #include <time.h> |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25039 | int |
| 25040 | main () |
| 25041 | { |
| 25042 | clockid_t clockType = CLOCK_REALTIME; |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25043 | ; |
| 25044 | return 0; |
| 25045 | } |
| 25046 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25047 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25048 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25049 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 25050 | $as_echo "$as_me: yes" >&6;} |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25051 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25052 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25053 | |
| 25054 | |
| 25055 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25056 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 25057 | $as_echo "$as_me: no" >&6;} |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25058 | |
| 25059 | fi |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25061 | |
| 25062 | else |
| 25063 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25064 | for ac_func in gettimeofday ftime |
| 25065 | do : |
| 25066 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 25067 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25068 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25069 | cat >>confdefs.h <<_ACEOF |
| 25070 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 25071 | _ACEOF |
| 25072 | break |
| 25073 | fi |
| 25074 | done |
| 25075 | |
| 25076 | |
| 25077 | |
| 25078 | fi |
| 25079 | |
| 25080 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25081 | ######## |
| 25082 | # |
| 25083 | # Check for function prototypes |
| 25084 | # |
| 25085 | ######## |
| 25086 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25087 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25088 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25089 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25090 | if test "x$ac_cv_have_decl_pread" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25091 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25092 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25093 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25094 | fi |
| 25095 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25096 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25097 | #define HAVE_DECL_PREAD $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25098 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25099 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25100 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25101 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25102 | if test "x$ac_cv_have_decl_pwrite" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25103 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25104 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25105 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25106 | fi |
| 25107 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25108 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25109 | #define HAVE_DECL_PWRITE $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25110 | _ACEOF |
| 25111 | |
| 25112 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25113 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25114 | #include <strings.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25115 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25116 | if test "x$ac_cv_have_decl_strlcpy" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25117 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25118 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25119 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25120 | fi |
| 25121 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25122 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25123 | #define HAVE_DECL_STRLCPY $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25124 | _ACEOF |
| 25125 | |
| 25126 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25127 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25128 | #include <stdio.h> |
| 25129 | #include <stdarg.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25130 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25131 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25132 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25133 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25134 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25135 | fi |
| 25136 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25137 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25138 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25139 | _ACEOF |
| 25140 | |
| 25141 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25142 | ######## |
| 25143 | # |
| 25144 | # C++ Support Tests (For Magick++) |
| 25145 | # |
| 25146 | ######## |
| 25147 | have_magick_plus_plus='no' |
| 25148 | if test "$with_magick_plus_plus" = 'yes'; then |
| 25149 | OLIBS="$LIBS" |
| 25150 | LIBS='' |
| 25151 | ac_ext=cpp |
| 25152 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25156 | |
| 25157 | |
| 25158 | # Full set of headers used... |
| 25159 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 25160 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 25161 | ac_ext=cpp |
| 25162 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25163 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25164 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25165 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25166 | |
| 25167 | ac_ext=cpp |
| 25168 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25172 | if test -z "$CXX"; then |
| 25173 | if test -n "$CCC"; then |
| 25174 | CXX=$CCC |
| 25175 | else |
| 25176 | if test -n "$ac_tool_prefix"; then |
| 25177 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25178 | do |
| 25179 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 25180 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25182 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25183 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25184 | $as_echo_n "(cached) " >&6 |
| 25185 | else |
| 25186 | if test -n "$CXX"; then |
| 25187 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 25188 | else |
| 25189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25190 | for as_dir in $PATH |
| 25191 | do |
| 25192 | IFS=$as_save_IFS |
| 25193 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25196 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25197 | $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] | 25198 | break 2 |
| 25199 | fi |
| 25200 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25201 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25202 | IFS=$as_save_IFS |
| 25203 | |
| 25204 | fi |
| 25205 | fi |
| 25206 | CXX=$ac_cv_prog_CXX |
| 25207 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25209 | $as_echo "$CXX" >&6; } |
| 25210 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25212 | $as_echo "no" >&6; } |
| 25213 | fi |
| 25214 | |
| 25215 | |
| 25216 | test -n "$CXX" && break |
| 25217 | done |
| 25218 | fi |
| 25219 | if test -z "$CXX"; then |
| 25220 | ac_ct_CXX=$CXX |
| 25221 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25222 | do |
| 25223 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25224 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25226 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25227 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25228 | $as_echo_n "(cached) " >&6 |
| 25229 | else |
| 25230 | if test -n "$ac_ct_CXX"; then |
| 25231 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 25232 | else |
| 25233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25234 | for as_dir in $PATH |
| 25235 | do |
| 25236 | IFS=$as_save_IFS |
| 25237 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25240 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25241 | $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] | 25242 | break 2 |
| 25243 | fi |
| 25244 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25245 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25246 | IFS=$as_save_IFS |
| 25247 | |
| 25248 | fi |
| 25249 | fi |
| 25250 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 25251 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25253 | $as_echo "$ac_ct_CXX" >&6; } |
| 25254 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25256 | $as_echo "no" >&6; } |
| 25257 | fi |
| 25258 | |
| 25259 | |
| 25260 | test -n "$ac_ct_CXX" && break |
| 25261 | done |
| 25262 | |
| 25263 | if test "x$ac_ct_CXX" = x; then |
| 25264 | CXX="g++" |
| 25265 | else |
| 25266 | case $cross_compiling:$ac_tool_warned in |
| 25267 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25268 | { $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] | 25269 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25270 | ac_tool_warned=yes ;; |
| 25271 | esac |
| 25272 | CXX=$ac_ct_CXX |
| 25273 | fi |
| 25274 | fi |
| 25275 | |
| 25276 | fi |
| 25277 | fi |
| 25278 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25279 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25280 | set X $ac_compile |
| 25281 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25282 | for ac_option in --version -v -V -qversion; do |
| 25283 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25284 | case "(($ac_try" in |
| 25285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25286 | *) ac_try_echo=$ac_try;; |
| 25287 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25288 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 25289 | $as_echo "$ac_try_echo"; } >&5 |
| 25290 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25291 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25292 | if test -s conftest.err; then |
| 25293 | sed '10a\ |
| 25294 | ... rest of stderr output deleted ... |
| 25295 | 10q' conftest.err >conftest.er1 |
| 25296 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25297 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25298 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25300 | test $ac_status = 0; } |
| 25301 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25302 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25303 | { $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] | 25304 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25305 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25306 | $as_echo_n "(cached) " >&6 |
| 25307 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25309 | /* end confdefs.h. */ |
| 25310 | |
| 25311 | int |
| 25312 | main () |
| 25313 | { |
| 25314 | #ifndef __GNUC__ |
| 25315 | choke me |
| 25316 | #endif |
| 25317 | |
| 25318 | ; |
| 25319 | return 0; |
| 25320 | } |
| 25321 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25322 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25323 | ac_compiler_gnu=yes |
| 25324 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25325 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25326 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25328 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 25329 | |
| 25330 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25331 | { $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] | 25332 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 25333 | if test $ac_compiler_gnu = yes; then |
| 25334 | GXX=yes |
| 25335 | else |
| 25336 | GXX= |
| 25337 | fi |
| 25338 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 25339 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25341 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25342 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25343 | $as_echo_n "(cached) " >&6 |
| 25344 | else |
| 25345 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 25346 | ac_cxx_werror_flag=yes |
| 25347 | ac_cv_prog_cxx_g=no |
| 25348 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25350 | /* end confdefs.h. */ |
| 25351 | |
| 25352 | int |
| 25353 | main () |
| 25354 | { |
| 25355 | |
| 25356 | ; |
| 25357 | return 0; |
| 25358 | } |
| 25359 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25360 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25361 | ac_cv_prog_cxx_g=yes |
| 25362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25363 | CXXFLAGS="" |
| 25364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25365 | /* end confdefs.h. */ |
| 25366 | |
| 25367 | int |
| 25368 | main () |
| 25369 | { |
| 25370 | |
| 25371 | ; |
| 25372 | return 0; |
| 25373 | } |
| 25374 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25375 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25376 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25377 | else |
| 25378 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25379 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25381 | /* end confdefs.h. */ |
| 25382 | |
| 25383 | int |
| 25384 | main () |
| 25385 | { |
| 25386 | |
| 25387 | ; |
| 25388 | return 0; |
| 25389 | } |
| 25390 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25391 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25392 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25393 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25395 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25397 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25399 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 25400 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25401 | { $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] | 25402 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 25403 | if test "$ac_test_CXXFLAGS" = set; then |
| 25404 | CXXFLAGS=$ac_save_CXXFLAGS |
| 25405 | elif test $ac_cv_prog_cxx_g = yes; then |
| 25406 | if test "$GXX" = yes; then |
| 25407 | CXXFLAGS="-g -O2" |
| 25408 | else |
| 25409 | CXXFLAGS="-g" |
| 25410 | fi |
| 25411 | else |
| 25412 | if test "$GXX" = yes; then |
| 25413 | CXXFLAGS="-O2" |
| 25414 | else |
| 25415 | CXXFLAGS= |
| 25416 | fi |
| 25417 | fi |
| 25418 | ac_ext=cpp |
| 25419 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25420 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25421 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25422 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25423 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25424 | depcc="$CXX" am_compiler_list= |
| 25425 | |
| 25426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 25427 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25428 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25429 | $as_echo_n "(cached) " >&6 |
| 25430 | else |
| 25431 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 25432 | # We make a subdir and do the tests there. Otherwise we can end up |
| 25433 | # making bogus files that we don't know about and never remove. For |
| 25434 | # instance it was reported that on HP-UX the gcc test will end up |
| 25435 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 25436 | # in D'. |
| 25437 | mkdir conftest.dir |
| 25438 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 25439 | # using a relative directory. |
| 25440 | cp "$am_depcomp" conftest.dir |
| 25441 | cd conftest.dir |
| 25442 | # We will build objects and dependencies in a subdirectory because |
| 25443 | # it helps to detect inapplicable dependency modes. For instance |
| 25444 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 25445 | # side effect of compilation, but ICC will put the dependencies in |
| 25446 | # the current directory while Tru64 will put them in the object |
| 25447 | # directory. |
| 25448 | mkdir sub |
| 25449 | |
| 25450 | am_cv_CXX_dependencies_compiler_type=none |
| 25451 | if test "$am_compiler_list" = ""; then |
| 25452 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 25453 | fi |
| 25454 | am__universal=false |
| 25455 | case " $depcc " in #( |
| 25456 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 25457 | esac |
| 25458 | |
| 25459 | for depmode in $am_compiler_list; do |
| 25460 | # Setup a source with many dependencies, because some compilers |
| 25461 | # like to wrap large dependency lists on column 80 (with \), and |
| 25462 | # we should not choose a depcomp mode which is confused by this. |
| 25463 | # |
| 25464 | # We need to recreate these files for each test, as the compiler may |
| 25465 | # overwrite some of them when testing with obscure command lines. |
| 25466 | # This happens at least with the AIX C compiler. |
| 25467 | : > sub/conftest.c |
| 25468 | for i in 1 2 3 4 5 6; do |
| 25469 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 25470 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 25471 | # Solaris 8's {/usr,}/bin/sh. |
| 25472 | touch sub/conftst$i.h |
| 25473 | done |
| 25474 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 25475 | |
| 25476 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 25477 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 25478 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 25479 | # versions had trouble with output in subdirs |
| 25480 | am__obj=sub/conftest.${OBJEXT-o} |
| 25481 | am__minus_obj="-o $am__obj" |
| 25482 | case $depmode in |
| 25483 | gcc) |
| 25484 | # This depmode causes a compiler race in universal mode. |
| 25485 | test "$am__universal" = false || continue |
| 25486 | ;; |
| 25487 | nosideeffect) |
| 25488 | # after this tag, mechanisms are not by side-effect, so they'll |
| 25489 | # only be used when explicitly requested |
| 25490 | if test "x$enable_dependency_tracking" = xyes; then |
| 25491 | continue |
| 25492 | else |
| 25493 | break |
| 25494 | fi |
| 25495 | ;; |
| 25496 | msvisualcpp | msvcmsys) |
| 25497 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 25498 | # not run yet. These depmodes are late enough in the game, and |
| 25499 | # so weak that their functioning should not be impacted. |
| 25500 | am__obj=conftest.${OBJEXT-o} |
| 25501 | am__minus_obj= |
| 25502 | ;; |
| 25503 | none) break ;; |
| 25504 | esac |
| 25505 | if depmode=$depmode \ |
| 25506 | source=sub/conftest.c object=$am__obj \ |
| 25507 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 25508 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 25509 | >/dev/null 2>conftest.err && |
| 25510 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 25511 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 25512 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 25513 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 25514 | # icc doesn't choke on unknown options, it will just issue warnings |
| 25515 | # or remarks (even with -Werror). So we grep stderr for any message |
| 25516 | # that says an option was ignored or not supported. |
| 25517 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 25518 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 25519 | # The diagnosis changed in icc 8.0: |
| 25520 | # icc: Command line remark: option '-MP' not supported |
| 25521 | if (grep 'ignoring option' conftest.err || |
| 25522 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 25523 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 25524 | break |
| 25525 | fi |
| 25526 | fi |
| 25527 | done |
| 25528 | |
| 25529 | cd .. |
| 25530 | rm -rf conftest.dir |
| 25531 | else |
| 25532 | am_cv_CXX_dependencies_compiler_type=none |
| 25533 | fi |
| 25534 | |
| 25535 | fi |
| 25536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 25537 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 25538 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 25539 | |
| 25540 | if |
| 25541 | test "x$enable_dependency_tracking" != xno \ |
| 25542 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 25543 | am__fastdepCXX_TRUE= |
| 25544 | am__fastdepCXX_FALSE='#' |
| 25545 | else |
| 25546 | am__fastdepCXX_TRUE='#' |
| 25547 | am__fastdepCXX_FALSE= |
| 25548 | fi |
| 25549 | |
| 25550 | |
| 25551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 |
| 25552 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25553 | if ${ax_cv_cxx_bool+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25554 | $as_echo_n "(cached) " >&6 |
| 25555 | else |
| 25556 | |
| 25557 | ac_ext=cpp |
| 25558 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25562 | |
| 25563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25564 | /* end confdefs.h. */ |
| 25565 | |
| 25566 | int f(int x){return 1;} |
| 25567 | int f(char x){return 1;} |
| 25568 | int f(bool x){return 1;} |
| 25569 | |
| 25570 | int |
| 25571 | main () |
| 25572 | { |
| 25573 | bool b = true; return f(b); |
| 25574 | ; |
| 25575 | return 0; |
| 25576 | } |
| 25577 | _ACEOF |
| 25578 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25579 | ax_cv_cxx_bool=yes |
| 25580 | else |
| 25581 | ax_cv_cxx_bool=no |
| 25582 | fi |
| 25583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25584 | ac_ext=cpp |
| 25585 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25586 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25587 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25588 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25589 | |
| 25590 | |
| 25591 | fi |
| 25592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 |
| 25593 | $as_echo "$ax_cv_cxx_bool" >&6; } |
| 25594 | if test "$ax_cv_cxx_bool" = yes; then |
| 25595 | |
| 25596 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h |
| 25597 | |
| 25598 | fi |
| 25599 | |
| 25600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 |
| 25601 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25602 | if ${ax_cv_cxx_namespaces+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25603 | $as_echo_n "(cached) " >&6 |
| 25604 | else |
| 25605 | |
| 25606 | ac_ext=cpp |
| 25607 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25611 | |
| 25612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25613 | /* end confdefs.h. */ |
| 25614 | namespace Outer { namespace Inner { int i = 0; }} |
| 25615 | int |
| 25616 | main () |
| 25617 | { |
| 25618 | using namespace Outer::Inner; return i; |
| 25619 | ; |
| 25620 | return 0; |
| 25621 | } |
| 25622 | _ACEOF |
| 25623 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25624 | ax_cv_cxx_namespaces=yes |
| 25625 | else |
| 25626 | ax_cv_cxx_namespaces=no |
| 25627 | fi |
| 25628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25629 | ac_ext=cpp |
| 25630 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25634 | |
| 25635 | |
| 25636 | fi |
| 25637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 |
| 25638 | $as_echo "$ax_cv_cxx_namespaces" >&6; } |
| 25639 | if test "$ax_cv_cxx_namespaces" = yes; then |
| 25640 | |
| 25641 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h |
| 25642 | |
| 25643 | fi |
| 25644 | |
| 25645 | |
| 25646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 |
| 25647 | $as_echo_n "checking if g++ supports namespace std... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25648 | if ${ax_cv_cxx_have_std_namespace+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25649 | $as_echo_n "(cached) " >&6 |
| 25650 | else |
| 25651 | |
| 25652 | ac_ext=cpp |
| 25653 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25654 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25655 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25656 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25657 | |
| 25658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25659 | /* end confdefs.h. */ |
| 25660 | #include <iostream> |
| 25661 | std::istream& is = std::cin; |
| 25662 | int |
| 25663 | main () |
| 25664 | { |
| 25665 | |
| 25666 | ; |
| 25667 | return 0; |
| 25668 | } |
| 25669 | _ACEOF |
| 25670 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25671 | ax_cv_cxx_have_std_namespace=yes |
| 25672 | else |
| 25673 | ax_cv_cxx_have_std_namespace=no |
| 25674 | fi |
| 25675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25676 | ac_ext=cpp |
| 25677 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25681 | |
| 25682 | |
| 25683 | fi |
| 25684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 |
| 25685 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } |
| 25686 | if test "$ax_cv_cxx_have_std_namespace" = yes; then |
| 25687 | |
| 25688 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h |
| 25689 | |
| 25690 | fi |
| 25691 | |
| 25692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 |
| 25693 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25694 | if ${ac_cv_cxx_have_std_libs+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25695 | $as_echo_n "(cached) " >&6 |
| 25696 | else |
| 25697 | |
| 25698 | |
| 25699 | ac_ext=cpp |
| 25700 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25701 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25702 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25703 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25704 | |
| 25705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25706 | /* end confdefs.h. */ |
| 25707 | #include <iostream> |
| 25708 | #include <map> |
| 25709 | #include <iomanip> |
| 25710 | #include <cmath> |
| 25711 | #ifdef HAVE_NAMESPACES |
| 25712 | using namespace std; |
| 25713 | #endif |
| 25714 | int |
| 25715 | main () |
| 25716 | { |
| 25717 | return 0; |
| 25718 | ; |
| 25719 | return 0; |
| 25720 | } |
| 25721 | _ACEOF |
| 25722 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25723 | ac_cv_cxx_have_std_libs=yes |
| 25724 | else |
| 25725 | ac_cv_cxx_have_std_libs=no |
| 25726 | fi |
| 25727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25728 | ac_ext=cpp |
| 25729 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25733 | |
| 25734 | |
| 25735 | fi |
| 25736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 |
| 25737 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 25738 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 25739 | |
| 25740 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h |
| 25741 | |
| 25742 | fi |
| 25743 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25744 | |
| 25745 | OPENMP_CXXFLAGS= |
| 25746 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25747 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25748 | enableval=$enable_openmp; |
| 25749 | fi |
| 25750 | |
| 25751 | if test "$enable_openmp" != no; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 |
| 25753 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25754 | if ${ac_cv_prog_cxx_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25755 | $as_echo_n "(cached) " >&6 |
| 25756 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25758 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25759 | |
| 25760 | #ifndef _OPENMP |
| 25761 | choke me |
| 25762 | #endif |
| 25763 | #include <omp.h> |
| 25764 | int main () { return omp_get_num_threads (); } |
| 25765 | |
| 25766 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25767 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25768 | ac_cv_prog_cxx_openmp='none needed' |
| 25769 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25770 | ac_cv_prog_cxx_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25771 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 25772 | ac_save_CXXFLAGS=$CXXFLAGS |
| 25773 | CXXFLAGS="$CXXFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25775 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25776 | |
| 25777 | #ifndef _OPENMP |
| 25778 | choke me |
| 25779 | #endif |
| 25780 | #include <omp.h> |
| 25781 | int main () { return omp_get_num_threads (); } |
| 25782 | |
| 25783 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25784 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25785 | ac_cv_prog_cxx_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25787 | rm -f core conftest.err conftest.$ac_objext \ |
| 25788 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25789 | CXXFLAGS=$ac_save_CXXFLAGS |
| 25790 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 25791 | break |
| 25792 | fi |
| 25793 | done |
| 25794 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25795 | rm -f core conftest.err conftest.$ac_objext \ |
| 25796 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25797 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25798 | { $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] | 25799 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 25800 | case $ac_cv_prog_cxx_openmp in #( |
| 25801 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25802 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25803 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25804 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25805 | esac |
| 25806 | fi |
| 25807 | |
| 25808 | |
| 25809 | ac_ext=c |
| 25810 | ac_cpp='$CPP $CPPFLAGS' |
| 25811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25814 | |
| 25815 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25816 | { $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] | 25817 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 25818 | if \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25819 | test $ax_cv_cxx_bool = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25820 | test $ax_cv_cxx_namespaces = 'yes' && \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25821 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25822 | test $ax_cv_cxx_have_std_namespace = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25823 | have_magick_plus_plus='yes' |
| 25824 | else |
| 25825 | have_magick_plus_plus='no (failed tests)' |
| 25826 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25827 | { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5 |
| 25828 | $as_echo "$as_me: $have_magick_plus_plus" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25829 | LIBS="$OLIBS" |
| 25830 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25831 | if test "$have_magick_plus_plus" = 'yes'; then |
| 25832 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 25833 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 25834 | else |
| 25835 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 25836 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 25837 | fi |
| 25838 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25839 | |
| 25840 | # Only check for delegate libraries in subdirectories if requested. |
| 25841 | if test "$enable_delegate_build" != 'no'; then |
| 25842 | # Check for delegate sub-directories and add -I & -L options as required. |
| 25843 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 25844 | # README. If delegates are installed in a standard location where the |
| 25845 | # compiler will automatically find them then these options should not be |
| 25846 | # required. |
| 25847 | |
| 25848 | # |
| 25849 | # Most delegates have includes in the same directory as the library, but not all... |
| 25850 | # |
| 25851 | # Includes |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 25852 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25853 | if test -d "$builddir/$dir"; then |
| 25854 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 25855 | else |
| 25856 | if test -d "$srcdirfull/$dir"; then |
| 25857 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 25858 | fi |
| 25859 | fi |
| 25860 | done |
| 25861 | |
| 25862 | # Libraries |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 25863 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25864 | if test -d "$builddir/$dir/.libs"; then |
| 25865 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 25866 | else |
| 25867 | if test -d "$srcdirfull/$dir/.libs"; then |
| 25868 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 25869 | fi |
| 25870 | fi |
| 25871 | if test -d "$builddir/$dir"; then |
| 25872 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 25873 | else |
| 25874 | if test -d "$srcdirfull/$dir"; then |
| 25875 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 25876 | fi |
| 25877 | fi |
| 25878 | done |
| 25879 | fi |
| 25880 | |
| 25881 | # Assume that delegate headers reside under same directory as ImageMagick |
| 25882 | # installation prefix. |
| 25883 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 25884 | |
| 25885 | # |
| 25886 | # Find the X11 RGB database |
| 25887 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25889 | $as_echo_n "checking for X11 configure files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25890 | if ${im_cv_x_configure+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25891 | $as_echo_n "(cached) " >&6 |
| 25892 | else |
| 25893 | # Look for the header file in a standard set of common directories. |
| 25894 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 25895 | for ac_dir in \ |
| 25896 | /lib/usr/lib/X11 \ |
| 25897 | /usr/X11/lib \ |
| 25898 | /usr/X11R4/lib \ |
| 25899 | /usr/X11R5/lib \ |
| 25900 | /usr/X11R6/lib \ |
| 25901 | /usr/X11R7/lib \ |
| 25902 | /usr/X386/lib \ |
| 25903 | /usr/XFree86/lib/X11 \ |
| 25904 | /usr/athena/lib \ |
| 25905 | /usr/lib \ |
| 25906 | /usr/lib/X11 \ |
| 25907 | /usr/lib/X11R4 \ |
| 25908 | /usr/lib/X11R5 \ |
| 25909 | /usr/lib/X11R6 \ |
| 25910 | /usr/lib/X11R7 \ |
| 25911 | /usr/local/X11/lib \ |
| 25912 | /usr/local/X11R4/lib \ |
| 25913 | /usr/local/X11R5/lib \ |
| 25914 | /usr/local/X11R6/lib \ |
| 25915 | /usr/local/lib \ |
| 25916 | /usr/local/lib/X11 \ |
| 25917 | /usr/local/lib/X11R4 \ |
| 25918 | /usr/local/lib/X11R5 \ |
| 25919 | /usr/local/lib/X11R6 \ |
| 25920 | /usr/local/lib/X11R7 \ |
| 25921 | /usr/local/x11r5/lib \ |
| 25922 | /usr/lpp/Xamples/lib \ |
| 25923 | /usr/openwin/lib \ |
| 25924 | /usr/openwin/share/lib \ |
| 25925 | /usr/unsupported/lib \ |
| 25926 | /usr/x386/lib \ |
| 25927 | ; do |
| 25928 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 25929 | im_cv_x_configure="$ac_dir/X11/" |
| 25930 | break |
| 25931 | elif test -f "$ac_dir/rgb.txt"; then |
| 25932 | im_cv_x_configure="$ac_dir/" |
| 25933 | break |
| 25934 | fi |
| 25935 | |
| 25936 | done |
| 25937 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25939 | $as_echo "$im_cv_x_configure" >&6; } |
| 25940 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 25941 | case "${build_os}" in |
| 25942 | mingw* ) |
| 25943 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 25944 | ;; |
| 25945 | esac |
| 25946 | |
| 25947 | cat >>confdefs.h <<_ACEOF |
| 25948 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 25949 | _ACEOF |
| 25950 | |
| 25951 | |
| 25952 | # |
| 25953 | # Find OpenMP library |
| 25954 | # |
| 25955 | GOMP_LIBS='' |
| 25956 | if test "$enable_openmp" != 'no'; then |
| 25957 | if test "${GCC}" = "yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25958 | { $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] | 25959 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25960 | if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25961 | $as_echo_n "(cached) " >&6 |
| 25962 | else |
| 25963 | ac_check_lib_save_LIBS=$LIBS |
| 25964 | LIBS="-lgomp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25966 | /* end confdefs.h. */ |
| 25967 | |
| 25968 | /* Override any GCC internal prototype to avoid an error. |
| 25969 | Use char because int might match the return type of a GCC |
| 25970 | builtin and then its argument prototype would still apply. */ |
| 25971 | #ifdef __cplusplus |
| 25972 | extern "C" |
| 25973 | #endif |
| 25974 | char GOMP_parallel_start (); |
| 25975 | int |
| 25976 | main () |
| 25977 | { |
| 25978 | return GOMP_parallel_start (); |
| 25979 | ; |
| 25980 | return 0; |
| 25981 | } |
| 25982 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25983 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25984 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 25985 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25986 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25987 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25988 | rm -f core conftest.err conftest.$ac_objext \ |
| 25989 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25990 | LIBS=$ac_check_lib_save_LIBS |
| 25991 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25992 | { $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] | 25993 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25994 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25995 | GOMP_LIBS="-lgomp" |
| 25996 | fi |
| 25997 | # gcc |
| 25998 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25999 | { $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] | 26000 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26001 | if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26002 | $as_echo_n "(cached) " >&6 |
| 26003 | else |
| 26004 | ac_check_lib_save_LIBS=$LIBS |
| 26005 | LIBS="-lmtsk $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26007 | /* end confdefs.h. */ |
| 26008 | |
| 26009 | /* Override any GCC internal prototype to avoid an error. |
| 26010 | Use char because int might match the return type of a GCC |
| 26011 | builtin and then its argument prototype would still apply. */ |
| 26012 | #ifdef __cplusplus |
| 26013 | extern "C" |
| 26014 | #endif |
| 26015 | char sunw_mp_register_warn (); |
| 26016 | int |
| 26017 | main () |
| 26018 | { |
| 26019 | return sunw_mp_register_warn (); |
| 26020 | ; |
| 26021 | return 0; |
| 26022 | } |
| 26023 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26024 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26025 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 26026 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26027 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26028 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26029 | rm -f core conftest.err conftest.$ac_objext \ |
| 26030 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26031 | LIBS=$ac_check_lib_save_LIBS |
| 26032 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26033 | { $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] | 26034 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26035 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26036 | GOMP_LIBS="-lmtsk" |
| 26037 | fi |
| 26038 | # solaris cc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26040 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26041 | if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26042 | $as_echo_n "(cached) " >&6 |
| 26043 | else |
| 26044 | ac_check_lib_save_LIBS=$LIBS |
| 26045 | LIBS="-lxlsmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26047 | /* end confdefs.h. */ |
| 26048 | |
| 26049 | /* Override any GCC internal prototype to avoid an error. |
| 26050 | Use char because int might match the return type of a GCC |
| 26051 | builtin and then its argument prototype would still apply. */ |
| 26052 | #ifdef __cplusplus |
| 26053 | extern "C" |
| 26054 | #endif |
| 26055 | char _xlsmpFlush (); |
| 26056 | int |
| 26057 | main () |
| 26058 | { |
| 26059 | return _xlsmpFlush (); |
| 26060 | ; |
| 26061 | return 0; |
| 26062 | } |
| 26063 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26064 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26065 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 26066 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26067 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26068 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26069 | rm -f core conftest.err conftest.$ac_objext \ |
| 26070 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26071 | LIBS=$ac_check_lib_save_LIBS |
| 26072 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26073 | { $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] | 26074 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26075 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26076 | GOMP_LIBS="-lxlsmp" |
| 26077 | fi |
| 26078 | # AIX xlc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26079 | { $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] | 26080 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26081 | if ${ac_cv_lib_mp_mp_destroy+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26082 | $as_echo_n "(cached) " >&6 |
| 26083 | else |
| 26084 | ac_check_lib_save_LIBS=$LIBS |
| 26085 | LIBS="-lmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26087 | /* end confdefs.h. */ |
| 26088 | |
| 26089 | /* Override any GCC internal prototype to avoid an error. |
| 26090 | Use char because int might match the return type of a GCC |
| 26091 | builtin and then its argument prototype would still apply. */ |
| 26092 | #ifdef __cplusplus |
| 26093 | extern "C" |
| 26094 | #endif |
| 26095 | char mp_destroy (); |
| 26096 | int |
| 26097 | main () |
| 26098 | { |
| 26099 | return mp_destroy (); |
| 26100 | ; |
| 26101 | return 0; |
| 26102 | } |
| 26103 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26104 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26105 | ac_cv_lib_mp_mp_destroy=yes |
| 26106 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26107 | ac_cv_lib_mp_mp_destroy=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26108 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26109 | rm -f core conftest.err conftest.$ac_objext \ |
| 26110 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26111 | LIBS=$ac_check_lib_save_LIBS |
| 26112 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26113 | { $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] | 26114 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26115 | if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26116 | GOMP_LIBS="-lmp" |
| 26117 | fi |
| 26118 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 26119 | fi |
| 26120 | LIBS="$GOMP_LIBS $LIBS" |
| 26121 | fi |
| 26122 | |
| 26123 | |
| 26124 | # |
| 26125 | # Find Posix threads library |
| 26126 | # |
| 26127 | THREAD_LIBS='' |
| 26128 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 26129 | |
| 26130 | if test "x$PTHREAD_LIBS" = "x"; then |
| 26131 | case "${host_cpu}-${host_os}" in |
| 26132 | *-freebsd*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26133 | |
| 26134 | |
| 26135 | |
| 26136 | ac_ext=c |
| 26137 | ac_cpp='$CPP $CPPFLAGS' |
| 26138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26141 | |
| 26142 | magick_pthread_lib_ok=no |
| 26143 | |
| 26144 | LIB=-lc_r |
| 26145 | save_LIBS="$LIBS" |
| 26146 | LIBS="$LIBS $LIB" |
| 26147 | |
| 26148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26149 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26151 | /* end confdefs.h. */ |
| 26152 | #include <pthread.h> |
| 26153 | int |
| 26154 | main () |
| 26155 | { |
| 26156 | pthread_t th; |
| 26157 | pthread_join(th, 0); |
| 26158 | pthread_attr_init(0); |
| 26159 | pthread_cleanup_push(0, 0); |
| 26160 | pthread_create(0,0,0,0); |
| 26161 | pthread_cleanup_pop(0); |
| 26162 | ; |
| 26163 | return 0; |
| 26164 | } |
| 26165 | _ACEOF |
| 26166 | if ac_fn_c_try_link "$LINENO"; then : |
| 26167 | magick_pthread_lib_ok=yes |
| 26168 | fi |
| 26169 | rm -f core conftest.err conftest.$ac_objext \ |
| 26170 | conftest$ac_exeext conftest.$ac_ext |
| 26171 | |
| 26172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26173 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26174 | if test "$magick_pthread_lib_ok" = yes |
| 26175 | then |
| 26176 | PTHREAD_LIBS=-lc_r |
| 26177 | : |
| 26178 | else |
| 26179 | |
| 26180 | : |
| 26181 | fi |
| 26182 | |
| 26183 | LIBS="$save_LIBS" |
| 26184 | |
| 26185 | ac_ext=c |
| 26186 | ac_cpp='$CPP $CPPFLAGS' |
| 26187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26190 | |
| 26191 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26192 | esac |
| 26193 | fi |
| 26194 | |
| 26195 | for lib in pthread pthreads; do |
| 26196 | if test "x$PTHREAD_LIBS" = "x"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26197 | |
| 26198 | |
| 26199 | |
| 26200 | ac_ext=c |
| 26201 | ac_cpp='$CPP $CPPFLAGS' |
| 26202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26205 | |
| 26206 | magick_pthread_lib_ok=no |
| 26207 | |
| 26208 | LIB=-l$lib |
| 26209 | save_LIBS="$LIBS" |
| 26210 | LIBS="$LIBS $LIB" |
| 26211 | |
| 26212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26213 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26215 | /* end confdefs.h. */ |
| 26216 | #include <pthread.h> |
| 26217 | int |
| 26218 | main () |
| 26219 | { |
| 26220 | pthread_t th; |
| 26221 | pthread_join(th, 0); |
| 26222 | pthread_attr_init(0); |
| 26223 | pthread_cleanup_push(0, 0); |
| 26224 | pthread_create(0,0,0,0); |
| 26225 | pthread_cleanup_pop(0); |
| 26226 | ; |
| 26227 | return 0; |
| 26228 | } |
| 26229 | _ACEOF |
| 26230 | if ac_fn_c_try_link "$LINENO"; then : |
| 26231 | magick_pthread_lib_ok=yes |
| 26232 | fi |
| 26233 | rm -f core conftest.err conftest.$ac_objext \ |
| 26234 | conftest$ac_exeext conftest.$ac_ext |
| 26235 | |
| 26236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26237 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26238 | if test "$magick_pthread_lib_ok" = yes |
| 26239 | then |
| 26240 | PTHREAD_LIBS=-l$lib |
| 26241 | : |
| 26242 | else |
| 26243 | |
| 26244 | : |
| 26245 | fi |
| 26246 | |
| 26247 | LIBS="$save_LIBS" |
| 26248 | |
| 26249 | ac_ext=c |
| 26250 | ac_cpp='$CPP $CPPFLAGS' |
| 26251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26254 | |
| 26255 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26256 | fi |
| 26257 | done |
| 26258 | |
| 26259 | THREAD_LIBS="$PTHREAD_LIBS" |
| 26260 | LIBS="$LIBS $THREAD_LIBS" |
| 26261 | fi |
| 26262 | |
| 26263 | |
| 26264 | # |
| 26265 | # Check for umem. |
| 26266 | # |
| 26267 | have_umem='no' |
| 26268 | UMEM_LIBS='' |
| 26269 | if test "$with_umem" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26271 | $as_echo_n "checking for UMEM support ... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26272 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 26273 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26274 | failed=0 |
| 26275 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26276 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26277 | if test "x$ac_cv_header_umem_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26278 | passed=`expr $passed + 1` |
| 26279 | else |
| 26280 | failed=`expr $failed + 1` |
| 26281 | fi |
| 26282 | |
| 26283 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26284 | { $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] | 26285 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26286 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26287 | $as_echo_n "(cached) " >&6 |
| 26288 | else |
| 26289 | ac_check_lib_save_LIBS=$LIBS |
| 26290 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26292 | /* end confdefs.h. */ |
| 26293 | |
| 26294 | /* Override any GCC internal prototype to avoid an error. |
| 26295 | Use char because int might match the return type of a GCC |
| 26296 | builtin and then its argument prototype would still apply. */ |
| 26297 | #ifdef __cplusplus |
| 26298 | extern "C" |
| 26299 | #endif |
| 26300 | char umem_alloc (); |
| 26301 | int |
| 26302 | main () |
| 26303 | { |
| 26304 | return umem_alloc (); |
| 26305 | ; |
| 26306 | return 0; |
| 26307 | } |
| 26308 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26309 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26310 | ac_cv_lib_umem_umem_alloc=yes |
| 26311 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26312 | ac_cv_lib_umem_umem_alloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26313 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26314 | rm -f core conftest.err conftest.$ac_objext \ |
| 26315 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26316 | LIBS=$ac_check_lib_save_LIBS |
| 26317 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26318 | { $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] | 26319 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26320 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26321 | passed=`expr $passed + 1` |
| 26322 | else |
| 26323 | failed=`expr $failed + 1` |
| 26324 | fi |
| 26325 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26326 | { $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] | 26327 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26328 | if ${ac_cv_lib_umem_umem_free+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26329 | $as_echo_n "(cached) " >&6 |
| 26330 | else |
| 26331 | ac_check_lib_save_LIBS=$LIBS |
| 26332 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26334 | /* end confdefs.h. */ |
| 26335 | |
| 26336 | /* Override any GCC internal prototype to avoid an error. |
| 26337 | Use char because int might match the return type of a GCC |
| 26338 | builtin and then its argument prototype would still apply. */ |
| 26339 | #ifdef __cplusplus |
| 26340 | extern "C" |
| 26341 | #endif |
| 26342 | char umem_free (); |
| 26343 | int |
| 26344 | main () |
| 26345 | { |
| 26346 | return umem_free (); |
| 26347 | ; |
| 26348 | return 0; |
| 26349 | } |
| 26350 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26351 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26352 | ac_cv_lib_umem_umem_free=yes |
| 26353 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26354 | ac_cv_lib_umem_umem_free=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26355 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26356 | rm -f core conftest.err conftest.$ac_objext \ |
| 26357 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26358 | LIBS=$ac_check_lib_save_LIBS |
| 26359 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26360 | { $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] | 26361 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26362 | if test "x$ac_cv_lib_umem_umem_free" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26363 | passed=`expr $passed + 1` |
| 26364 | else |
| 26365 | failed=`expr $failed + 1` |
| 26366 | fi |
| 26367 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26368 | { $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] | 26369 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 26370 | if test $passed -gt 0; then |
| 26371 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26372 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 26373 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26374 | have_umem='no (failed tests)' |
| 26375 | else |
| 26376 | UMEM_LIBS='-lumem' |
| 26377 | LIBS="$UMEM_LIBS $LIBS" |
| 26378 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26379 | $as_echo "#define HasUMEM 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26380 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26381 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 26382 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26383 | have_umem='yes' |
| 26384 | fi |
| 26385 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26386 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 26387 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26388 | fi |
| 26389 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26390 | if test "$have_umem" = 'yes'; then |
| 26391 | HasUMEM_TRUE= |
| 26392 | HasUMEM_FALSE='#' |
| 26393 | else |
| 26394 | HasUMEM_TRUE='#' |
| 26395 | HasUMEM_FALSE= |
| 26396 | fi |
| 26397 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26398 | |
| 26399 | |
| 26400 | # |
| 26401 | # Add support for ccmalloc memory debugging library if requested |
| 26402 | # |
| 26403 | have_ccmalloc='no' |
| 26404 | CCMALLOC_LIBS='' |
| 26405 | if test "$enable_ccmalloc" = 'yes'; then |
| 26406 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 26407 | set dummy ccmalloc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26409 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26410 | if ${ac_cv_path_CCMALLOCDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26411 | $as_echo_n "(cached) " >&6 |
| 26412 | else |
| 26413 | case $CCMALLOCDelegate in |
| 26414 | [\\/]* | ?:[\\/]*) |
| 26415 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 26416 | ;; |
| 26417 | *) |
| 26418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26419 | for as_dir in $PATH |
| 26420 | do |
| 26421 | IFS=$as_save_IFS |
| 26422 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 26425 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26426 | $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] | 26427 | break 2 |
| 26428 | fi |
| 26429 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26430 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26431 | IFS=$as_save_IFS |
| 26432 | |
| 26433 | ;; |
| 26434 | esac |
| 26435 | fi |
| 26436 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 26437 | if test -n "$CCMALLOCDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26439 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 26440 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26442 | $as_echo "no" >&6; } |
| 26443 | fi |
| 26444 | |
| 26445 | |
| 26446 | if test -n "$CCMALLOCDelegate"; then |
| 26447 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 26448 | OLIBS="$LIBS" |
| 26449 | # Assume that gcc is used with ccmalloc. |
| 26450 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26451 | { $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] | 26452 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26453 | if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26454 | $as_echo_n "(cached) " >&6 |
| 26455 | else |
| 26456 | ac_check_lib_save_LIBS=$LIBS |
| 26457 | LIBS="-lccmalloc -ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26459 | /* end confdefs.h. */ |
| 26460 | |
| 26461 | /* Override any GCC internal prototype to avoid an error. |
| 26462 | Use char because int might match the return type of a GCC |
| 26463 | builtin and then its argument prototype would still apply. */ |
| 26464 | #ifdef __cplusplus |
| 26465 | extern "C" |
| 26466 | #endif |
| 26467 | char ccmalloc_malloc (); |
| 26468 | int |
| 26469 | main () |
| 26470 | { |
| 26471 | return ccmalloc_malloc (); |
| 26472 | ; |
| 26473 | return 0; |
| 26474 | } |
| 26475 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26476 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26477 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 26478 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26479 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26480 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26481 | rm -f core conftest.err conftest.$ac_objext \ |
| 26482 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26483 | LIBS=$ac_check_lib_save_LIBS |
| 26484 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26485 | { $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] | 26486 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26487 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26488 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 26489 | fi |
| 26490 | |
| 26491 | if test -n "$CCMALLOC_LIBS"; then |
| 26492 | LIBS="$OLIBS" |
| 26493 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 26494 | have_ccmalloc='yes' |
| 26495 | else |
| 26496 | LIBS="$OLIBS" |
| 26497 | fi |
| 26498 | fi |
| 26499 | fi |
| 26500 | |
| 26501 | # |
| 26502 | # Add support for efence memory debugging library if requested |
| 26503 | # |
| 26504 | if test "$enable_efence" = 'yes'; then |
| 26505 | EFENCE_LIBS='-lefence' |
| 26506 | LIBS="$EFENCE_LIBS $LIBS" |
| 26507 | fi |
| 26508 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26509 | |
| 26510 | # |
| 26511 | # Check for BZLIB |
| 26512 | # |
| 26513 | |
| 26514 | |
| 26515 | # Check whether --with-bzlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26516 | if test "${with_bzlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26517 | withval=$with_bzlib; with_bzlib=$withval |
| 26518 | else |
| 26519 | with_bzlib='yes' |
| 26520 | fi |
| 26521 | |
| 26522 | |
| 26523 | if test "$with_bzlib" != 'yes'; then |
| 26524 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 26525 | fi |
| 26526 | |
| 26527 | have_bzlib='no' |
| 26528 | if test "$with_bzlib" != 'no'; then |
| 26529 | BZLIB_LIBS='' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26530 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 26531 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26533 | $as_echo_n "checking for BZLIB... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26534 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 26535 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26536 | failed=0 |
| 26537 | passed=0 |
| 26538 | found_libbz=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26539 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26540 | if test "x$ac_cv_header_bzlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26541 | passed=`expr $passed + 1` |
| 26542 | else |
| 26543 | failed=`expr $failed + 1` |
| 26544 | fi |
| 26545 | |
| 26546 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26547 | { $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] | 26548 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26549 | if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26550 | $as_echo_n "(cached) " >&6 |
| 26551 | else |
| 26552 | ac_check_lib_save_LIBS=$LIBS |
| 26553 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26555 | /* end confdefs.h. */ |
| 26556 | |
| 26557 | /* Override any GCC internal prototype to avoid an error. |
| 26558 | Use char because int might match the return type of a GCC |
| 26559 | builtin and then its argument prototype would still apply. */ |
| 26560 | #ifdef __cplusplus |
| 26561 | extern "C" |
| 26562 | #endif |
| 26563 | char BZ2_bzDecompress (); |
| 26564 | int |
| 26565 | main () |
| 26566 | { |
| 26567 | return BZ2_bzDecompress (); |
| 26568 | ; |
| 26569 | return 0; |
| 26570 | } |
| 26571 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26572 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26573 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 26574 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26575 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26576 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26577 | rm -f core conftest.err conftest.$ac_objext \ |
| 26578 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26579 | LIBS=$ac_check_lib_save_LIBS |
| 26580 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26581 | { $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] | 26582 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26583 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26584 | found_libbz=`expr $found_libbz + 1` |
| 26585 | fi |
| 26586 | |
| 26587 | if test "$native_win32_build" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26588 | { $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] | 26589 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26590 | if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26591 | $as_echo_n "(cached) " >&6 |
| 26592 | else |
| 26593 | ac_check_lib_save_LIBS=$LIBS |
| 26594 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26596 | /* end confdefs.h. */ |
| 26597 | |
| 26598 | /* Override any GCC internal prototype to avoid an error. |
| 26599 | Use char because int might match the return type of a GCC |
| 26600 | builtin and then its argument prototype would still apply. */ |
| 26601 | #ifdef __cplusplus |
| 26602 | extern "C" |
| 26603 | #endif |
| 26604 | char _imp__BZ2_decompress (); |
| 26605 | int |
| 26606 | main () |
| 26607 | { |
| 26608 | return _imp__BZ2_decompress (); |
| 26609 | ; |
| 26610 | return 0; |
| 26611 | } |
| 26612 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26613 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26614 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 26615 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26616 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26617 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26618 | rm -f core conftest.err conftest.$ac_objext \ |
| 26619 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26620 | LIBS=$ac_check_lib_save_LIBS |
| 26621 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26622 | { $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] | 26623 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26624 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26625 | found_libbz=`expr $found_libbz + 1` |
| 26626 | fi |
| 26627 | |
| 26628 | fi |
| 26629 | if test $found_libbz -gt 0; then |
| 26630 | passed=`expr $passed + 1` |
| 26631 | else |
| 26632 | failed=`expr $failed + 1` |
| 26633 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26634 | { $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] | 26635 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 26636 | if test $passed -gt 0; then |
| 26637 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26638 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 26639 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26640 | have_bzlib='no (failed tests)' |
| 26641 | else |
| 26642 | BZLIB_LIBS='-lbz2' |
| 26643 | LIBS="$BZLIB_LIBS $LIBS" |
| 26644 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26645 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26646 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26647 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 26648 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26649 | have_bzlib='yes' |
| 26650 | fi |
| 26651 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26652 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 26653 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26654 | fi |
| 26655 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26656 | if test "$have_bzlib" = 'yes'; then |
| 26657 | BZLIB_DELEGATE_TRUE= |
| 26658 | BZLIB_DELEGATE_FALSE='#' |
| 26659 | else |
| 26660 | BZLIB_DELEGATE_TRUE='#' |
| 26661 | BZLIB_DELEGATE_FALSE= |
| 26662 | fi |
| 26663 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26664 | |
| 26665 | |
| 26666 | # |
| 26667 | # Find the X11 include and library directories. |
| 26668 | # |
| 26669 | IPC_LIBS='' |
| 26670 | X11_LIBS='' |
| 26671 | XEXT_LIBS='' |
| 26672 | XT_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26674 | $as_echo_n "checking for X... " >&6; } |
| 26675 | |
| 26676 | |
| 26677 | # Check whether --with-x was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26678 | if test "${with_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26679 | withval=$with_x; |
| 26680 | fi |
| 26681 | |
| 26682 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 26683 | if test "x$with_x" = xno; then |
| 26684 | # The user explicitly disabled X. |
| 26685 | have_x=disabled |
| 26686 | else |
| 26687 | case $x_includes,$x_libraries in #( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26688 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26689 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26690 | $as_echo_n "(cached) " >&6 |
| 26691 | else |
| 26692 | # One or both of the vars are not set, and there is no cached value. |
| 26693 | ac_x_includes=no ac_x_libraries=no |
| 26694 | rm -f -r conftest.dir |
| 26695 | if mkdir conftest.dir; then |
| 26696 | cd conftest.dir |
| 26697 | cat >Imakefile <<'_ACEOF' |
| 26698 | incroot: |
| 26699 | @echo incroot='${INCROOT}' |
| 26700 | usrlibdir: |
| 26701 | @echo usrlibdir='${USRLIBDIR}' |
| 26702 | libdir: |
| 26703 | @echo libdir='${LIBDIR}' |
| 26704 | _ACEOF |
| 26705 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26706 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26707 | for ac_var in incroot usrlibdir libdir; do |
| 26708 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 26709 | done |
| 26710 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 26711 | for ac_extension in a so sl dylib la dll; do |
| 26712 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 26713 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 26714 | ac_im_usrlibdir=$ac_im_libdir; break |
| 26715 | fi |
| 26716 | done |
| 26717 | # Screen out bogus values from the imake configuration. They are |
| 26718 | # bogus both because they are the default anyway, and because |
| 26719 | # using them would break gcc on systems where it needs fixed includes. |
| 26720 | case $ac_im_incroot in |
| 26721 | /usr/include) ac_x_includes= ;; |
| 26722 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 26723 | esac |
| 26724 | case $ac_im_usrlibdir in |
| 26725 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 26726 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 26727 | esac |
| 26728 | fi |
| 26729 | cd .. |
| 26730 | rm -f -r conftest.dir |
| 26731 | fi |
| 26732 | |
| 26733 | # Standard set of common directories for X headers. |
| 26734 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 26735 | ac_x_header_dirs=' |
| 26736 | /usr/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26737 | /usr/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26738 | /usr/X11R6/include |
| 26739 | /usr/X11R5/include |
| 26740 | /usr/X11R4/include |
| 26741 | |
| 26742 | /usr/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26743 | /usr/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26744 | /usr/include/X11R6 |
| 26745 | /usr/include/X11R5 |
| 26746 | /usr/include/X11R4 |
| 26747 | |
| 26748 | /usr/local/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26749 | /usr/local/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26750 | /usr/local/X11R6/include |
| 26751 | /usr/local/X11R5/include |
| 26752 | /usr/local/X11R4/include |
| 26753 | |
| 26754 | /usr/local/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26755 | /usr/local/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26756 | /usr/local/include/X11R6 |
| 26757 | /usr/local/include/X11R5 |
| 26758 | /usr/local/include/X11R4 |
| 26759 | |
| 26760 | /usr/X386/include |
| 26761 | /usr/x386/include |
| 26762 | /usr/XFree86/include/X11 |
| 26763 | |
| 26764 | /usr/include |
| 26765 | /usr/local/include |
| 26766 | /usr/unsupported/include |
| 26767 | /usr/athena/include |
| 26768 | /usr/local/x11r5/include |
| 26769 | /usr/lpp/Xamples/include |
| 26770 | |
| 26771 | /usr/openwin/include |
| 26772 | /usr/openwin/share/include' |
| 26773 | |
| 26774 | if test "$ac_x_includes" = no; then |
| 26775 | # Guess where to find include files, by looking for Xlib.h. |
| 26776 | # First, try using that file with no special directory specified. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26778 | /* end confdefs.h. */ |
| 26779 | #include <X11/Xlib.h> |
| 26780 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26781 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26782 | # We can compile using X headers with no special include directory. |
| 26783 | ac_x_includes= |
| 26784 | else |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26785 | for ac_dir in $ac_x_header_dirs; do |
| 26786 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 26787 | ac_x_includes=$ac_dir |
| 26788 | break |
| 26789 | fi |
| 26790 | done |
| 26791 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26792 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26793 | fi # $ac_x_includes = no |
| 26794 | |
| 26795 | if test "$ac_x_libraries" = no; then |
| 26796 | # Check for the libraries. |
| 26797 | # See if we find them without any special options. |
| 26798 | # Don't add to $LIBS permanently. |
| 26799 | ac_save_LIBS=$LIBS |
| 26800 | LIBS="-lX11 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26802 | /* end confdefs.h. */ |
| 26803 | #include <X11/Xlib.h> |
| 26804 | int |
| 26805 | main () |
| 26806 | { |
| 26807 | XrmInitialize () |
| 26808 | ; |
| 26809 | return 0; |
| 26810 | } |
| 26811 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26812 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26813 | LIBS=$ac_save_LIBS |
| 26814 | # We can link X programs with no special library path. |
| 26815 | ac_x_libraries= |
| 26816 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26817 | LIBS=$ac_save_LIBS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26818 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 26819 | do |
| 26820 | # Don't even attempt the hair of trying to link an X program! |
| 26821 | for ac_extension in a so sl dylib la dll; do |
| 26822 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 26823 | ac_x_libraries=$ac_dir |
| 26824 | break 2 |
| 26825 | fi |
| 26826 | done |
| 26827 | done |
| 26828 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26829 | rm -f core conftest.err conftest.$ac_objext \ |
| 26830 | conftest$ac_exeext conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26831 | fi # $ac_x_libraries = no |
| 26832 | |
| 26833 | case $ac_x_includes,$ac_x_libraries in #( |
| 26834 | no,* | *,no | *\'*) |
| 26835 | # Didn't find X, or a directory has "'" in its name. |
| 26836 | ac_cv_have_x="have_x=no";; #( |
| 26837 | *) |
| 26838 | # Record where we found X for the cache. |
| 26839 | ac_cv_have_x="have_x=yes\ |
| 26840 | ac_x_includes='$ac_x_includes'\ |
| 26841 | ac_x_libraries='$ac_x_libraries'" |
| 26842 | esac |
| 26843 | fi |
| 26844 | ;; #( |
| 26845 | *) have_x=yes;; |
| 26846 | esac |
| 26847 | eval "$ac_cv_have_x" |
| 26848 | fi # $with_x != no |
| 26849 | |
| 26850 | if test "$have_x" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26852 | $as_echo "$have_x" >&6; } |
| 26853 | no_x=yes |
| 26854 | else |
| 26855 | # If each of the values was on the command line, it overrides each guess. |
| 26856 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 26857 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 26858 | # Update the cache value to reflect the command line values. |
| 26859 | ac_cv_have_x="have_x=yes\ |
| 26860 | ac_x_includes='$x_includes'\ |
| 26861 | ac_x_libraries='$x_libraries'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26862 | { $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] | 26863 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 26864 | fi |
| 26865 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26866 | if test "$no_x" = yes; then |
| 26867 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 26868 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26869 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26870 | |
| 26871 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 26872 | else |
| 26873 | if test -n "$x_includes"; then |
| 26874 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 26875 | fi |
| 26876 | |
| 26877 | # It would also be nice to do this for all -L options, not just this one. |
| 26878 | if test -n "$x_libraries"; then |
| 26879 | X_LIBS="$X_LIBS -L$x_libraries" |
| 26880 | # For Solaris; some versions of Sun CC require a space after -R and |
| 26881 | # others require no space. Words are not sufficient . . . . |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26882 | { $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] | 26883 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 26884 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 26885 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 26886 | ac_c_werror_flag=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26888 | /* end confdefs.h. */ |
| 26889 | |
| 26890 | int |
| 26891 | main () |
| 26892 | { |
| 26893 | |
| 26894 | ; |
| 26895 | return 0; |
| 26896 | } |
| 26897 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26898 | if ac_fn_c_try_link "$LINENO"; then : |
| 26899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26900 | $as_echo "no" >&6; } |
| 26901 | X_LIBS="$X_LIBS -R$x_libraries" |
| 26902 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26903 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 26904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26905 | /* end confdefs.h. */ |
| 26906 | |
| 26907 | int |
| 26908 | main () |
| 26909 | { |
| 26910 | |
| 26911 | ; |
| 26912 | return 0; |
| 26913 | } |
| 26914 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26915 | if ac_fn_c_try_link "$LINENO"; then : |
| 26916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26917 | $as_echo "yes" >&6; } |
| 26918 | X_LIBS="$X_LIBS -R $x_libraries" |
| 26919 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26921 | $as_echo "neither works" >&6; } |
| 26922 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26923 | rm -f core conftest.err conftest.$ac_objext \ |
| 26924 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26925 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26926 | rm -f core conftest.err conftest.$ac_objext \ |
| 26927 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26928 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 26929 | LIBS=$ac_xsave_LIBS |
| 26930 | fi |
| 26931 | |
| 26932 | # Check for system-dependent libraries X programs must link with. |
| 26933 | # Do this before checking for the system-independent R6 libraries |
| 26934 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 26935 | |
| 26936 | if test "$ISC" = yes; then |
| 26937 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 26938 | else |
| 26939 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 26940 | # libraries were built with DECnet support. And Karl Berry says |
| 26941 | # the Alpha needs dnet_stub (dnet does not exist). |
| 26942 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26944 | /* end confdefs.h. */ |
| 26945 | |
| 26946 | /* Override any GCC internal prototype to avoid an error. |
| 26947 | Use char because int might match the return type of a GCC |
| 26948 | builtin and then its argument prototype would still apply. */ |
| 26949 | #ifdef __cplusplus |
| 26950 | extern "C" |
| 26951 | #endif |
| 26952 | char XOpenDisplay (); |
| 26953 | int |
| 26954 | main () |
| 26955 | { |
| 26956 | return XOpenDisplay (); |
| 26957 | ; |
| 26958 | return 0; |
| 26959 | } |
| 26960 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26961 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26962 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26963 | else |
| 26964 | { $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] | 26965 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26966 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26967 | $as_echo_n "(cached) " >&6 |
| 26968 | else |
| 26969 | ac_check_lib_save_LIBS=$LIBS |
| 26970 | LIBS="-ldnet $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26972 | /* end confdefs.h. */ |
| 26973 | |
| 26974 | /* Override any GCC internal prototype to avoid an error. |
| 26975 | Use char because int might match the return type of a GCC |
| 26976 | builtin and then its argument prototype would still apply. */ |
| 26977 | #ifdef __cplusplus |
| 26978 | extern "C" |
| 26979 | #endif |
| 26980 | char dnet_ntoa (); |
| 26981 | int |
| 26982 | main () |
| 26983 | { |
| 26984 | return dnet_ntoa (); |
| 26985 | ; |
| 26986 | return 0; |
| 26987 | } |
| 26988 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26989 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26990 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 26991 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26992 | ac_cv_lib_dnet_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26993 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26994 | rm -f core conftest.err conftest.$ac_objext \ |
| 26995 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26996 | LIBS=$ac_check_lib_save_LIBS |
| 26997 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26998 | { $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] | 26999 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27000 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 27002 | fi |
| 27003 | |
| 27004 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27005 | { $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] | 27006 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27007 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27008 | $as_echo_n "(cached) " >&6 |
| 27009 | else |
| 27010 | ac_check_lib_save_LIBS=$LIBS |
| 27011 | LIBS="-ldnet_stub $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27013 | /* end confdefs.h. */ |
| 27014 | |
| 27015 | /* Override any GCC internal prototype to avoid an error. |
| 27016 | Use char because int might match the return type of a GCC |
| 27017 | builtin and then its argument prototype would still apply. */ |
| 27018 | #ifdef __cplusplus |
| 27019 | extern "C" |
| 27020 | #endif |
| 27021 | char dnet_ntoa (); |
| 27022 | int |
| 27023 | main () |
| 27024 | { |
| 27025 | return dnet_ntoa (); |
| 27026 | ; |
| 27027 | return 0; |
| 27028 | } |
| 27029 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27030 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27031 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 27032 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27033 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27034 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27035 | rm -f core conftest.err conftest.$ac_objext \ |
| 27036 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27037 | LIBS=$ac_check_lib_save_LIBS |
| 27038 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27039 | { $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] | 27040 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27041 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27042 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 27043 | fi |
| 27044 | |
| 27045 | fi |
| 27046 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27047 | rm -f core conftest.err conftest.$ac_objext \ |
| 27048 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27049 | LIBS="$ac_xsave_LIBS" |
| 27050 | |
| 27051 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 27052 | # to get the SysV transport functions. |
| 27053 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 27054 | # needs -lnsl. |
| 27055 | # The nsl library prevents programs from opening the X display |
| 27056 | # on Irix 5.2, according to T.E. Dickey. |
| 27057 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 27058 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27059 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27060 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27061 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27062 | fi |
| 27063 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27064 | if test $ac_cv_func_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27066 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27067 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27068 | $as_echo_n "(cached) " >&6 |
| 27069 | else |
| 27070 | ac_check_lib_save_LIBS=$LIBS |
| 27071 | LIBS="-lnsl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27073 | /* end confdefs.h. */ |
| 27074 | |
| 27075 | /* Override any GCC internal prototype to avoid an error. |
| 27076 | Use char because int might match the return type of a GCC |
| 27077 | builtin and then its argument prototype would still apply. */ |
| 27078 | #ifdef __cplusplus |
| 27079 | extern "C" |
| 27080 | #endif |
| 27081 | char gethostbyname (); |
| 27082 | int |
| 27083 | main () |
| 27084 | { |
| 27085 | return gethostbyname (); |
| 27086 | ; |
| 27087 | return 0; |
| 27088 | } |
| 27089 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27090 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27091 | ac_cv_lib_nsl_gethostbyname=yes |
| 27092 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27093 | ac_cv_lib_nsl_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27094 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27095 | rm -f core conftest.err conftest.$ac_objext \ |
| 27096 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27097 | LIBS=$ac_check_lib_save_LIBS |
| 27098 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27099 | { $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] | 27100 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27101 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27102 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 27103 | fi |
| 27104 | |
| 27105 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27107 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27108 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27109 | $as_echo_n "(cached) " >&6 |
| 27110 | else |
| 27111 | ac_check_lib_save_LIBS=$LIBS |
| 27112 | LIBS="-lbsd $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27114 | /* end confdefs.h. */ |
| 27115 | |
| 27116 | /* Override any GCC internal prototype to avoid an error. |
| 27117 | Use char because int might match the return type of a GCC |
| 27118 | builtin and then its argument prototype would still apply. */ |
| 27119 | #ifdef __cplusplus |
| 27120 | extern "C" |
| 27121 | #endif |
| 27122 | char gethostbyname (); |
| 27123 | int |
| 27124 | main () |
| 27125 | { |
| 27126 | return gethostbyname (); |
| 27127 | ; |
| 27128 | return 0; |
| 27129 | } |
| 27130 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27131 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27132 | ac_cv_lib_bsd_gethostbyname=yes |
| 27133 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27134 | ac_cv_lib_bsd_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27135 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27136 | rm -f core conftest.err conftest.$ac_objext \ |
| 27137 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27138 | LIBS=$ac_check_lib_save_LIBS |
| 27139 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27140 | { $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] | 27141 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27142 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27143 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 27144 | fi |
| 27145 | |
| 27146 | fi |
| 27147 | fi |
| 27148 | |
| 27149 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 27150 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 27151 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 27152 | # on later versions), says Simon Leinen: it contains gethostby* |
| 27153 | # variants that don't use the name server (or something). -lsocket |
| 27154 | # must be given before -lnsl if both are needed. We assume that |
| 27155 | # if connect needs -lnsl, so does gethostbyname. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27156 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27157 | if test "x$ac_cv_func_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27158 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27159 | fi |
| 27160 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27161 | if test $ac_cv_func_connect = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27163 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27164 | if ${ac_cv_lib_socket_connect+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27165 | $as_echo_n "(cached) " >&6 |
| 27166 | else |
| 27167 | ac_check_lib_save_LIBS=$LIBS |
| 27168 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27170 | /* end confdefs.h. */ |
| 27171 | |
| 27172 | /* Override any GCC internal prototype to avoid an error. |
| 27173 | Use char because int might match the return type of a GCC |
| 27174 | builtin and then its argument prototype would still apply. */ |
| 27175 | #ifdef __cplusplus |
| 27176 | extern "C" |
| 27177 | #endif |
| 27178 | char connect (); |
| 27179 | int |
| 27180 | main () |
| 27181 | { |
| 27182 | return connect (); |
| 27183 | ; |
| 27184 | return 0; |
| 27185 | } |
| 27186 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27187 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27188 | ac_cv_lib_socket_connect=yes |
| 27189 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27190 | ac_cv_lib_socket_connect=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27191 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27192 | rm -f core conftest.err conftest.$ac_objext \ |
| 27193 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27194 | LIBS=$ac_check_lib_save_LIBS |
| 27195 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27196 | { $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] | 27197 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27198 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27199 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 27200 | fi |
| 27201 | |
| 27202 | fi |
| 27203 | |
| 27204 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27205 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27206 | if test "x$ac_cv_func_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27207 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27208 | fi |
| 27209 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27210 | if test $ac_cv_func_remove = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27212 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27213 | if ${ac_cv_lib_posix_remove+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27214 | $as_echo_n "(cached) " >&6 |
| 27215 | else |
| 27216 | ac_check_lib_save_LIBS=$LIBS |
| 27217 | LIBS="-lposix $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27219 | /* end confdefs.h. */ |
| 27220 | |
| 27221 | /* Override any GCC internal prototype to avoid an error. |
| 27222 | Use char because int might match the return type of a GCC |
| 27223 | builtin and then its argument prototype would still apply. */ |
| 27224 | #ifdef __cplusplus |
| 27225 | extern "C" |
| 27226 | #endif |
| 27227 | char remove (); |
| 27228 | int |
| 27229 | main () |
| 27230 | { |
| 27231 | return remove (); |
| 27232 | ; |
| 27233 | return 0; |
| 27234 | } |
| 27235 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27236 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27237 | ac_cv_lib_posix_remove=yes |
| 27238 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27239 | ac_cv_lib_posix_remove=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27240 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27241 | rm -f core conftest.err conftest.$ac_objext \ |
| 27242 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27243 | LIBS=$ac_check_lib_save_LIBS |
| 27244 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27245 | { $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] | 27246 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27247 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27248 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 27249 | fi |
| 27250 | |
| 27251 | fi |
| 27252 | |
| 27253 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27254 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27255 | if test "x$ac_cv_func_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27256 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27257 | fi |
| 27258 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27259 | if test $ac_cv_func_shmat = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27261 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27262 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27263 | $as_echo_n "(cached) " >&6 |
| 27264 | else |
| 27265 | ac_check_lib_save_LIBS=$LIBS |
| 27266 | LIBS="-lipc $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27268 | /* end confdefs.h. */ |
| 27269 | |
| 27270 | /* Override any GCC internal prototype to avoid an error. |
| 27271 | Use char because int might match the return type of a GCC |
| 27272 | builtin and then its argument prototype would still apply. */ |
| 27273 | #ifdef __cplusplus |
| 27274 | extern "C" |
| 27275 | #endif |
| 27276 | char shmat (); |
| 27277 | int |
| 27278 | main () |
| 27279 | { |
| 27280 | return shmat (); |
| 27281 | ; |
| 27282 | return 0; |
| 27283 | } |
| 27284 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27285 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27286 | ac_cv_lib_ipc_shmat=yes |
| 27287 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27288 | ac_cv_lib_ipc_shmat=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27289 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27290 | rm -f core conftest.err conftest.$ac_objext \ |
| 27291 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27292 | LIBS=$ac_check_lib_save_LIBS |
| 27293 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27294 | { $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] | 27295 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27296 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27297 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 27298 | fi |
| 27299 | |
| 27300 | fi |
| 27301 | fi |
| 27302 | |
| 27303 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 27304 | ac_save_LDFLAGS=$LDFLAGS |
| 27305 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 27306 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 27307 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 27308 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 27309 | # These have to be linked with before -lX11, unlike the other |
| 27310 | # libraries we check for below, so use a different variable. |
| 27311 | # John Interrante, Karl Berry |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27313 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27314 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27315 | $as_echo_n "(cached) " >&6 |
| 27316 | else |
| 27317 | ac_check_lib_save_LIBS=$LIBS |
| 27318 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27320 | /* end confdefs.h. */ |
| 27321 | |
| 27322 | /* Override any GCC internal prototype to avoid an error. |
| 27323 | Use char because int might match the return type of a GCC |
| 27324 | builtin and then its argument prototype would still apply. */ |
| 27325 | #ifdef __cplusplus |
| 27326 | extern "C" |
| 27327 | #endif |
| 27328 | char IceConnectionNumber (); |
| 27329 | int |
| 27330 | main () |
| 27331 | { |
| 27332 | return IceConnectionNumber (); |
| 27333 | ; |
| 27334 | return 0; |
| 27335 | } |
| 27336 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27337 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27338 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 27339 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27340 | ac_cv_lib_ICE_IceConnectionNumber=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27341 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27342 | rm -f core conftest.err conftest.$ac_objext \ |
| 27343 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27344 | LIBS=$ac_check_lib_save_LIBS |
| 27345 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27346 | { $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] | 27347 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27348 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27349 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 27350 | fi |
| 27351 | |
| 27352 | LDFLAGS=$ac_save_LDFLAGS |
| 27353 | |
| 27354 | fi |
| 27355 | |
| 27356 | if test "$no_x" != 'yes'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27357 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 27358 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27360 | $as_echo_n "checking for X11... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27361 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 27362 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27363 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 27364 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 27365 | LIBS="$X11_LIBS $LIBS" |
| 27366 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 27367 | |
| 27368 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27369 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27370 | |
| 27371 | # |
| 27372 | # Check for X11 shared memory extension |
| 27373 | # |
| 27374 | # shmctl is required to support the shared memory extension |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27375 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27376 | if test "x$ac_cv_func_shmctl" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27377 | have_shmctl='yes' |
| 27378 | fi |
| 27379 | |
| 27380 | if test "$have_shmctl" != 'yes'; then |
| 27381 | PERSIST_LIBS=$LIBS |
| 27382 | LIBS="$LIBS -lcygipc" |
| 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 shmctl (); |
| 27393 | int |
| 27394 | main () |
| 27395 | { |
| 27396 | return shmctl (); |
| 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 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27403 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27404 | rm -f core conftest.err conftest.$ac_objext \ |
| 27405 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27406 | LIBS=$PERSIST_LIBS |
| 27407 | fi |
| 27408 | |
| 27409 | if test "$have_shmctl" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27411 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27412 | if ${ac_cv_lib_Xext_XShmAttach+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27413 | $as_echo_n "(cached) " >&6 |
| 27414 | else |
| 27415 | ac_check_lib_save_LIBS=$LIBS |
| 27416 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27418 | /* end confdefs.h. */ |
| 27419 | |
| 27420 | /* Override any GCC internal prototype to avoid an error. |
| 27421 | Use char because int might match the return type of a GCC |
| 27422 | builtin and then its argument prototype would still apply. */ |
| 27423 | #ifdef __cplusplus |
| 27424 | extern "C" |
| 27425 | #endif |
| 27426 | char XShmAttach (); |
| 27427 | int |
| 27428 | main () |
| 27429 | { |
| 27430 | return XShmAttach (); |
| 27431 | ; |
| 27432 | return 0; |
| 27433 | } |
| 27434 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27435 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27436 | ac_cv_lib_Xext_XShmAttach=yes |
| 27437 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27438 | ac_cv_lib_Xext_XShmAttach=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27439 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27440 | rm -f core conftest.err conftest.$ac_objext \ |
| 27441 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27442 | LIBS=$ac_check_lib_save_LIBS |
| 27443 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27444 | { $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] | 27445 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27446 | if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27447 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27448 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27449 | |
| 27450 | fi |
| 27451 | |
| 27452 | fi |
| 27453 | |
| 27454 | # |
| 27455 | # Check for X11 shape extension |
| 27456 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27458 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27459 | if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27460 | $as_echo_n "(cached) " >&6 |
| 27461 | else |
| 27462 | ac_check_lib_save_LIBS=$LIBS |
| 27463 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27465 | /* end confdefs.h. */ |
| 27466 | |
| 27467 | /* Override any GCC internal prototype to avoid an error. |
| 27468 | Use char because int might match the return type of a GCC |
| 27469 | builtin and then its argument prototype would still apply. */ |
| 27470 | #ifdef __cplusplus |
| 27471 | extern "C" |
| 27472 | #endif |
| 27473 | char XShapeCombineMask (); |
| 27474 | int |
| 27475 | main () |
| 27476 | { |
| 27477 | return XShapeCombineMask (); |
| 27478 | ; |
| 27479 | return 0; |
| 27480 | } |
| 27481 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27482 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27483 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 27484 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27485 | ac_cv_lib_Xext_XShapeCombineMask=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27486 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27487 | rm -f core conftest.err conftest.$ac_objext \ |
| 27488 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27489 | LIBS=$ac_check_lib_save_LIBS |
| 27490 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27491 | { $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] | 27492 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27493 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27494 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27495 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27496 | |
| 27497 | fi |
| 27498 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27500 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27501 | if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27502 | $as_echo_n "(cached) " >&6 |
| 27503 | else |
| 27504 | ac_check_lib_save_LIBS=$LIBS |
| 27505 | LIBS="-lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27507 | /* end confdefs.h. */ |
| 27508 | |
| 27509 | /* Override any GCC internal prototype to avoid an error. |
| 27510 | Use char because int might match the return type of a GCC |
| 27511 | builtin and then its argument prototype would still apply. */ |
| 27512 | #ifdef __cplusplus |
| 27513 | extern "C" |
| 27514 | #endif |
| 27515 | char XtSetEventDispatcher (); |
| 27516 | int |
| 27517 | main () |
| 27518 | { |
| 27519 | return XtSetEventDispatcher (); |
| 27520 | ; |
| 27521 | return 0; |
| 27522 | } |
| 27523 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27524 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27525 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 27526 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27527 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27528 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27529 | rm -f core conftest.err conftest.$ac_objext \ |
| 27530 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27531 | LIBS=$ac_check_lib_save_LIBS |
| 27532 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27533 | { $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] | 27534 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27535 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27536 | XT_LIBS='-lXt' |
| 27537 | fi |
| 27538 | |
| 27539 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 27540 | fi |
| 27541 | if test "$no_x" != 'yes'; then |
| 27542 | have_x='yes' |
| 27543 | else |
| 27544 | have_x='no' |
| 27545 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27546 | if test "$have_x" = 'yes'; then |
| 27547 | X11_DELEGATE_TRUE= |
| 27548 | X11_DELEGATE_FALSE='#' |
| 27549 | else |
| 27550 | X11_DELEGATE_TRUE='#' |
| 27551 | X11_DELEGATE_FALSE= |
| 27552 | fi |
| 27553 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27554 | |
| 27555 | |
| 27556 | |
| 27557 | |
| 27558 | # |
| 27559 | # Check for ZLIB |
| 27560 | # |
| 27561 | |
| 27562 | # Check whether --with-zlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27563 | if test "${with_zlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27564 | withval=$with_zlib; with_zlib=$withval |
| 27565 | else |
| 27566 | with_zlib='yes' |
| 27567 | fi |
| 27568 | |
| 27569 | |
| 27570 | if test "$with_zlib" != 'yes'; then |
| 27571 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 27572 | fi |
| 27573 | |
| 27574 | have_zlib='no' |
| 27575 | ZLIB_LIBS='' |
| 27576 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27577 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 27578 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27580 | $as_echo_n "checking for ZLIB... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27581 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 27582 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27583 | ZLIB_LIBS='' |
| 27584 | failed=0 |
| 27585 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27586 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27587 | if test "x$ac_cv_header_zconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27588 | passed=`expr $passed + 1` |
| 27589 | else |
| 27590 | failed=`expr $failed + 1` |
| 27591 | fi |
| 27592 | |
| 27593 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27594 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27595 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27596 | passed=`expr $passed + 1` |
| 27597 | else |
| 27598 | failed=`expr $failed + 1` |
| 27599 | fi |
| 27600 | |
| 27601 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27603 | $as_echo_n "checking for compress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27604 | if ${ac_cv_lib_z_compress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27605 | $as_echo_n "(cached) " >&6 |
| 27606 | else |
| 27607 | ac_check_lib_save_LIBS=$LIBS |
| 27608 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27610 | /* end confdefs.h. */ |
| 27611 | |
| 27612 | /* Override any GCC internal prototype to avoid an error. |
| 27613 | Use char because int might match the return type of a GCC |
| 27614 | builtin and then its argument prototype would still apply. */ |
| 27615 | #ifdef __cplusplus |
| 27616 | extern "C" |
| 27617 | #endif |
| 27618 | char compress (); |
| 27619 | int |
| 27620 | main () |
| 27621 | { |
| 27622 | return compress (); |
| 27623 | ; |
| 27624 | return 0; |
| 27625 | } |
| 27626 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27627 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27628 | ac_cv_lib_z_compress=yes |
| 27629 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27630 | ac_cv_lib_z_compress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27631 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27632 | rm -f core conftest.err conftest.$ac_objext \ |
| 27633 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27634 | LIBS=$ac_check_lib_save_LIBS |
| 27635 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27636 | { $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] | 27637 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27638 | if test "x$ac_cv_lib_z_compress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27639 | passed=`expr $passed + 1` |
| 27640 | else |
| 27641 | failed=`expr $failed + 1` |
| 27642 | fi |
| 27643 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27645 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27646 | if ${ac_cv_lib_z_uncompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27647 | $as_echo_n "(cached) " >&6 |
| 27648 | else |
| 27649 | ac_check_lib_save_LIBS=$LIBS |
| 27650 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27652 | /* end confdefs.h. */ |
| 27653 | |
| 27654 | /* Override any GCC internal prototype to avoid an error. |
| 27655 | Use char because int might match the return type of a GCC |
| 27656 | builtin and then its argument prototype would still apply. */ |
| 27657 | #ifdef __cplusplus |
| 27658 | extern "C" |
| 27659 | #endif |
| 27660 | char uncompress (); |
| 27661 | int |
| 27662 | main () |
| 27663 | { |
| 27664 | return uncompress (); |
| 27665 | ; |
| 27666 | return 0; |
| 27667 | } |
| 27668 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27669 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27670 | ac_cv_lib_z_uncompress=yes |
| 27671 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27672 | ac_cv_lib_z_uncompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27673 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27674 | rm -f core conftest.err conftest.$ac_objext \ |
| 27675 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27676 | LIBS=$ac_check_lib_save_LIBS |
| 27677 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27678 | { $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] | 27679 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27680 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27681 | passed=`expr $passed + 1` |
| 27682 | else |
| 27683 | failed=`expr $failed + 1` |
| 27684 | fi |
| 27685 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27687 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27688 | if ${ac_cv_lib_z_deflate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27689 | $as_echo_n "(cached) " >&6 |
| 27690 | else |
| 27691 | ac_check_lib_save_LIBS=$LIBS |
| 27692 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27694 | /* end confdefs.h. */ |
| 27695 | |
| 27696 | /* Override any GCC internal prototype to avoid an error. |
| 27697 | Use char because int might match the return type of a GCC |
| 27698 | builtin and then its argument prototype would still apply. */ |
| 27699 | #ifdef __cplusplus |
| 27700 | extern "C" |
| 27701 | #endif |
| 27702 | char deflate (); |
| 27703 | int |
| 27704 | main () |
| 27705 | { |
| 27706 | return deflate (); |
| 27707 | ; |
| 27708 | return 0; |
| 27709 | } |
| 27710 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27711 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27712 | ac_cv_lib_z_deflate=yes |
| 27713 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27714 | ac_cv_lib_z_deflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27715 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27716 | rm -f core conftest.err conftest.$ac_objext \ |
| 27717 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27718 | LIBS=$ac_check_lib_save_LIBS |
| 27719 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27720 | { $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] | 27721 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27722 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27723 | passed=`expr $passed + 1` |
| 27724 | else |
| 27725 | failed=`expr $failed + 1` |
| 27726 | fi |
| 27727 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27729 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27730 | if ${ac_cv_lib_z_inflate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27731 | $as_echo_n "(cached) " >&6 |
| 27732 | else |
| 27733 | ac_check_lib_save_LIBS=$LIBS |
| 27734 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27736 | /* end confdefs.h. */ |
| 27737 | |
| 27738 | /* Override any GCC internal prototype to avoid an error. |
| 27739 | Use char because int might match the return type of a GCC |
| 27740 | builtin and then its argument prototype would still apply. */ |
| 27741 | #ifdef __cplusplus |
| 27742 | extern "C" |
| 27743 | #endif |
| 27744 | char inflate (); |
| 27745 | int |
| 27746 | main () |
| 27747 | { |
| 27748 | return inflate (); |
| 27749 | ; |
| 27750 | return 0; |
| 27751 | } |
| 27752 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27753 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27754 | ac_cv_lib_z_inflate=yes |
| 27755 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27756 | ac_cv_lib_z_inflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27757 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27758 | rm -f core conftest.err conftest.$ac_objext \ |
| 27759 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27760 | LIBS=$ac_check_lib_save_LIBS |
| 27761 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27762 | { $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] | 27763 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27764 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27765 | passed=`expr $passed + 1` |
| 27766 | else |
| 27767 | failed=`expr $failed + 1` |
| 27768 | fi |
| 27769 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27771 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27772 | if ${ac_cv_lib_z_gzseek+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27773 | $as_echo_n "(cached) " >&6 |
| 27774 | else |
| 27775 | ac_check_lib_save_LIBS=$LIBS |
| 27776 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27778 | /* end confdefs.h. */ |
| 27779 | |
| 27780 | /* Override any GCC internal prototype to avoid an error. |
| 27781 | Use char because int might match the return type of a GCC |
| 27782 | builtin and then its argument prototype would still apply. */ |
| 27783 | #ifdef __cplusplus |
| 27784 | extern "C" |
| 27785 | #endif |
| 27786 | char gzseek (); |
| 27787 | int |
| 27788 | main () |
| 27789 | { |
| 27790 | return gzseek (); |
| 27791 | ; |
| 27792 | return 0; |
| 27793 | } |
| 27794 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27795 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27796 | ac_cv_lib_z_gzseek=yes |
| 27797 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27798 | ac_cv_lib_z_gzseek=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27799 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27800 | rm -f core conftest.err conftest.$ac_objext \ |
| 27801 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27802 | LIBS=$ac_check_lib_save_LIBS |
| 27803 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27804 | { $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] | 27805 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27806 | if test "x$ac_cv_lib_z_gzseek" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27807 | passed=`expr $passed + 1` |
| 27808 | else |
| 27809 | failed=`expr $failed + 1` |
| 27810 | fi |
| 27811 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27813 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27814 | if ${ac_cv_lib_z_gztell+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27815 | $as_echo_n "(cached) " >&6 |
| 27816 | else |
| 27817 | ac_check_lib_save_LIBS=$LIBS |
| 27818 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27820 | /* end confdefs.h. */ |
| 27821 | |
| 27822 | /* Override any GCC internal prototype to avoid an error. |
| 27823 | Use char because int might match the return type of a GCC |
| 27824 | builtin and then its argument prototype would still apply. */ |
| 27825 | #ifdef __cplusplus |
| 27826 | extern "C" |
| 27827 | #endif |
| 27828 | char gztell (); |
| 27829 | int |
| 27830 | main () |
| 27831 | { |
| 27832 | return gztell (); |
| 27833 | ; |
| 27834 | return 0; |
| 27835 | } |
| 27836 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27837 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27838 | ac_cv_lib_z_gztell=yes |
| 27839 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27840 | ac_cv_lib_z_gztell=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27841 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27842 | rm -f core conftest.err conftest.$ac_objext \ |
| 27843 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27844 | LIBS=$ac_check_lib_save_LIBS |
| 27845 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27846 | { $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] | 27847 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27848 | if test "x$ac_cv_lib_z_gztell" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27849 | passed=`expr $passed + 1` |
| 27850 | else |
| 27851 | failed=`expr $failed + 1` |
| 27852 | fi |
| 27853 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27854 | { $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] | 27855 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 27856 | if test $passed -gt 0; then |
| 27857 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27858 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 27859 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27860 | have_zlib='no (failed tests)' |
| 27861 | else |
| 27862 | ZLIB_LIBS='-lz' |
| 27863 | LIBS="$ZLIB_LIBS $LIBS" |
| 27864 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27865 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27866 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27867 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 27868 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27869 | have_zlib='yes' |
| 27870 | fi |
| 27871 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27872 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 27873 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27874 | fi |
| 27875 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27876 | if test "$have_zlib" = 'yes'; then |
| 27877 | ZLIB_DELEGATE_TRUE= |
| 27878 | ZLIB_DELEGATE_FALSE='#' |
| 27879 | else |
| 27880 | ZLIB_DELEGATE_TRUE='#' |
| 27881 | ZLIB_DELEGATE_FALSE= |
| 27882 | fi |
| 27883 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27884 | |
| 27885 | |
| 27886 | # |
| 27887 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 27888 | # |
| 27889 | LIB_DL='' |
| 27890 | if test "$enable_profiling" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27892 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27893 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27894 | $as_echo_n "(cached) " >&6 |
| 27895 | else |
| 27896 | ac_check_lib_save_LIBS=$LIBS |
| 27897 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27899 | /* end confdefs.h. */ |
| 27900 | |
| 27901 | /* Override any GCC internal prototype to avoid an error. |
| 27902 | Use char because int might match the return type of a GCC |
| 27903 | builtin and then its argument prototype would still apply. */ |
| 27904 | #ifdef __cplusplus |
| 27905 | extern "C" |
| 27906 | #endif |
| 27907 | char dlopen (); |
| 27908 | int |
| 27909 | main () |
| 27910 | { |
| 27911 | return dlopen (); |
| 27912 | ; |
| 27913 | return 0; |
| 27914 | } |
| 27915 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27916 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27917 | ac_cv_lib_dl_dlopen=yes |
| 27918 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27919 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27920 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27921 | rm -f core conftest.err conftest.$ac_objext \ |
| 27922 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27923 | LIBS=$ac_check_lib_save_LIBS |
| 27924 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27925 | { $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] | 27926 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27927 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27928 | LIB_DL='-ldl' |
| 27929 | fi |
| 27930 | |
| 27931 | LIBS="$LIB_DL $LIBS" |
| 27932 | fi |
| 27933 | |
| 27934 | |
| 27935 | |
| 27936 | # |
| 27937 | # Check for Autotrace delegate library. |
| 27938 | # |
| 27939 | |
| 27940 | # Check whether --with-autotrace was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27941 | if test "${with_autotrace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27942 | withval=$with_autotrace; with_autotrace=$withval |
| 27943 | else |
| 27944 | with_autotrace='no' |
| 27945 | fi |
| 27946 | |
| 27947 | |
| 27948 | if test "$with_autotrace" != 'yes'; then |
| 27949 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 27950 | fi |
| 27951 | |
| 27952 | have_autotrace='no' |
| 27953 | AUTOTRACE_CFLAGS="" |
| 27954 | AUTOTRACE_LIBS="" |
| 27955 | AUTOTRACE_PKG="" |
| 27956 | if test "x$with_autotrace" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27957 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 27958 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27959 | |
| 27960 | pkg_failed=no |
| 27961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 |
| 27962 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 27963 | |
| 27964 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 27965 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 27966 | elif test -n "$PKG_CONFIG"; then |
| 27967 | if test -n "$PKG_CONFIG" && \ |
| 27968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 27969 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 27970 | ac_status=$? |
| 27971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27972 | test $ac_status = 0; }; then |
| 27973 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 27974 | else |
| 27975 | pkg_failed=yes |
| 27976 | fi |
| 27977 | else |
| 27978 | pkg_failed=untried |
| 27979 | fi |
| 27980 | if test -n "$AUTOTRACE_LIBS"; then |
| 27981 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 27982 | elif test -n "$PKG_CONFIG"; then |
| 27983 | if test -n "$PKG_CONFIG" && \ |
| 27984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 27985 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 27986 | ac_status=$? |
| 27987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27988 | test $ac_status = 0; }; then |
| 27989 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 27990 | else |
| 27991 | pkg_failed=yes |
| 27992 | fi |
| 27993 | else |
| 27994 | pkg_failed=untried |
| 27995 | fi |
| 27996 | |
| 27997 | |
| 27998 | |
| 27999 | if test $pkg_failed = yes; then |
| 28000 | |
| 28001 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 28002 | _pkg_short_errors_supported=yes |
| 28003 | else |
| 28004 | _pkg_short_errors_supported=no |
| 28005 | fi |
| 28006 | if test $_pkg_short_errors_supported = yes; then |
| 28007 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 28008 | else |
| 28009 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 28010 | fi |
| 28011 | # Put the nasty error message in config.log where it belongs |
| 28012 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 28013 | |
| 28014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28015 | $as_echo "no" >&6; } |
| 28016 | have_autotrace=no |
| 28017 | elif test $pkg_failed = untried; then |
| 28018 | have_autotrace=no |
| 28019 | else |
| 28020 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 28021 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| 28022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28023 | $as_echo "yes" >&6; } |
| 28024 | have_autotrace=yes |
| 28025 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28026 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28027 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28028 | fi |
| 28029 | |
| 28030 | if test "$have_autotrace" = 'yes'; then |
| 28031 | failed=0 |
| 28032 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28033 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28034 | |
| 28035 | if test "$with_modules" = 'no'; then |
| 28036 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 28037 | fi |
| 28038 | fi |
| 28039 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28040 | if test "$have_autotrace" = 'yes'; then |
| 28041 | AUTOTRACE_DELEGATE_TRUE= |
| 28042 | AUTOTRACE_DELEGATE_FALSE='#' |
| 28043 | else |
| 28044 | AUTOTRACE_DELEGATE_TRUE='#' |
| 28045 | AUTOTRACE_DELEGATE_FALSE= |
| 28046 | fi |
| 28047 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28048 | |
| 28049 | |
| 28050 | |
| 28051 | |
| 28052 | # |
| 28053 | # Check for Display Postscript delegate library. |
| 28054 | # |
| 28055 | |
| 28056 | # Check whether --with-dps was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28057 | if test "${with_dps+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28058 | withval=$with_dps; with_dps=$withval |
| 28059 | else |
| 28060 | with_dps='yes' |
| 28061 | fi |
| 28062 | |
| 28063 | |
| 28064 | if test "$with_dps" != 'yes'; then |
| 28065 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 28066 | fi |
| 28067 | |
| 28068 | have_dps='no' |
| 28069 | DPS_LIBS='' |
| 28070 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28071 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28072 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28074 | $as_echo_n "checking for DPS... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28075 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28076 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28077 | failed=0 |
| 28078 | passed=0 |
| 28079 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 28080 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28081 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28082 | if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28083 | passed=`expr $passed + 1` |
| 28084 | else |
| 28085 | failed=`expr $failed + 1` |
| 28086 | fi |
| 28087 | |
| 28088 | |
| 28089 | # DPS issues: |
| 28090 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 28091 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 28092 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 28093 | # ImageMagick itself doesn't use -lXt. |
| 28094 | have_libdps='no' |
| 28095 | LIBDPS_XT='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28097 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28098 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28099 | $as_echo_n "(cached) " >&6 |
| 28100 | else |
| 28101 | ac_check_lib_save_LIBS=$LIBS |
| 28102 | LIBS="-ldps $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28104 | /* end confdefs.h. */ |
| 28105 | |
| 28106 | /* Override any GCC internal prototype to avoid an error. |
| 28107 | Use char because int might match the return type of a GCC |
| 28108 | builtin and then its argument prototype would still apply. */ |
| 28109 | #ifdef __cplusplus |
| 28110 | extern "C" |
| 28111 | #endif |
| 28112 | char DPSInitialize (); |
| 28113 | int |
| 28114 | main () |
| 28115 | { |
| 28116 | return DPSInitialize (); |
| 28117 | ; |
| 28118 | return 0; |
| 28119 | } |
| 28120 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28121 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28122 | ac_cv_lib_dps_DPSInitialize=yes |
| 28123 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28124 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28125 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28126 | rm -f core conftest.err conftest.$ac_objext \ |
| 28127 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28128 | LIBS=$ac_check_lib_save_LIBS |
| 28129 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28130 | { $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] | 28131 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28132 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28133 | have_libdps='yes' |
| 28134 | else |
| 28135 | have_libdps='no' |
| 28136 | fi |
| 28137 | |
| 28138 | if test "$have_libdps" != 'yes'; then |
| 28139 | # Unset cache variable so we can try again. |
| 28140 | unset ac_cv_lib_dps_DPSInitialize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28142 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28143 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28144 | $as_echo_n "(cached) " >&6 |
| 28145 | else |
| 28146 | ac_check_lib_save_LIBS=$LIBS |
| 28147 | LIBS="-ldps -lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28149 | /* end confdefs.h. */ |
| 28150 | |
| 28151 | /* Override any GCC internal prototype to avoid an error. |
| 28152 | Use char because int might match the return type of a GCC |
| 28153 | builtin and then its argument prototype would still apply. */ |
| 28154 | #ifdef __cplusplus |
| 28155 | extern "C" |
| 28156 | #endif |
| 28157 | char DPSInitialize (); |
| 28158 | int |
| 28159 | main () |
| 28160 | { |
| 28161 | return DPSInitialize (); |
| 28162 | ; |
| 28163 | return 0; |
| 28164 | } |
| 28165 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28166 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28167 | ac_cv_lib_dps_DPSInitialize=yes |
| 28168 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28169 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28170 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28171 | rm -f core conftest.err conftest.$ac_objext \ |
| 28172 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28173 | LIBS=$ac_check_lib_save_LIBS |
| 28174 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28175 | { $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] | 28176 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28177 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28178 | have_libdps='yes' |
| 28179 | else |
| 28180 | have_libdps='no' |
| 28181 | fi |
| 28182 | |
| 28183 | if test "$have_libdps" = 'yes'; then |
| 28184 | LIBDPS_XT='-lXt' |
| 28185 | fi |
| 28186 | fi |
| 28187 | if test "$have_libdps" = 'yes'; then |
| 28188 | passed=`expr $passed + 1` |
| 28189 | else |
| 28190 | failed=`expr $failed + 1` |
| 28191 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28193 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28194 | if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28195 | $as_echo_n "(cached) " >&6 |
| 28196 | else |
| 28197 | ac_check_lib_save_LIBS=$LIBS |
| 28198 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28200 | /* end confdefs.h. */ |
| 28201 | |
| 28202 | /* Override any GCC internal prototype to avoid an error. |
| 28203 | Use char because int might match the return type of a GCC |
| 28204 | builtin and then its argument prototype would still apply. */ |
| 28205 | #ifdef __cplusplus |
| 28206 | extern "C" |
| 28207 | #endif |
| 28208 | char XDPSPixelsPerPoint (); |
| 28209 | int |
| 28210 | main () |
| 28211 | { |
| 28212 | return XDPSPixelsPerPoint (); |
| 28213 | ; |
| 28214 | return 0; |
| 28215 | } |
| 28216 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28217 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28218 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 28219 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28220 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28221 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28222 | rm -f core conftest.err conftest.$ac_objext \ |
| 28223 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28224 | LIBS=$ac_check_lib_save_LIBS |
| 28225 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28226 | { $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] | 28227 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28228 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28229 | passed=`expr $passed + 1` |
| 28230 | else |
| 28231 | failed=`expr $failed + 1` |
| 28232 | fi |
| 28233 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28234 | { $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] | 28235 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 28236 | if test $passed -gt 0; then |
| 28237 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28238 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 28239 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28240 | have_dps='no (failed tests)' |
| 28241 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 28242 | else |
| 28243 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 28244 | LIBS="$DPS_LIBS $LIBS" |
| 28245 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28246 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28247 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28248 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 28249 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28250 | have_dps='yes' |
| 28251 | fi |
| 28252 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28253 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 28254 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28255 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 28256 | fi |
| 28257 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28258 | if test "$have_dps" = 'yes'; then |
| 28259 | DPS_DELEGATE_TRUE= |
| 28260 | DPS_DELEGATE_FALSE='#' |
| 28261 | else |
| 28262 | DPS_DELEGATE_TRUE='#' |
| 28263 | DPS_DELEGATE_FALSE= |
| 28264 | fi |
| 28265 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28266 | |
| 28267 | |
| 28268 | |
| 28269 | # |
| 28270 | # Check for DJVU delegate library. |
| 28271 | # |
| 28272 | |
| 28273 | # Check whether --with-djvu was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28274 | if test "${with_djvu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28275 | withval=$with_djvu; with_djvu=$withval |
| 28276 | else |
| 28277 | with_djvu='yes' |
| 28278 | fi |
| 28279 | |
| 28280 | |
| 28281 | if test "$with_djvu" != 'yes'; then |
| 28282 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 28283 | fi |
| 28284 | |
| 28285 | have_djvu='no' |
| 28286 | DJVU_LIBS='' |
| 28287 | if test "$with_djvu" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28288 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28289 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28291 | $as_echo_n "checking for DJVU... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28292 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28293 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28294 | failed=0 |
| 28295 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28296 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28297 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28298 | passed=`expr $passed + 1` |
| 28299 | else |
| 28300 | failed=`expr $failed + 1` |
| 28301 | fi |
| 28302 | |
| 28303 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28304 | { $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] | 28305 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28306 | if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28307 | $as_echo_n "(cached) " >&6 |
| 28308 | else |
| 28309 | ac_check_lib_save_LIBS=$LIBS |
| 28310 | LIBS="-ldjvulibre $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28312 | /* end confdefs.h. */ |
| 28313 | |
| 28314 | /* Override any GCC internal prototype to avoid an error. |
| 28315 | Use char because int might match the return type of a GCC |
| 28316 | builtin and then its argument prototype would still apply. */ |
| 28317 | #ifdef __cplusplus |
| 28318 | extern "C" |
| 28319 | #endif |
| 28320 | char ddjvu_context_create (); |
| 28321 | int |
| 28322 | main () |
| 28323 | { |
| 28324 | return ddjvu_context_create (); |
| 28325 | ; |
| 28326 | return 0; |
| 28327 | } |
| 28328 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28329 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28330 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 28331 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28332 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28333 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28334 | rm -f core conftest.err conftest.$ac_objext \ |
| 28335 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28336 | LIBS=$ac_check_lib_save_LIBS |
| 28337 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28338 | { $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] | 28339 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28340 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28341 | passed=`expr $passed + 1` |
| 28342 | else |
| 28343 | failed=`expr $failed + 1` |
| 28344 | fi |
| 28345 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28346 | { $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] | 28347 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 28348 | if test $passed -gt 0; then |
| 28349 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28350 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 28351 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28352 | have_djvu='no (failed tests)' |
| 28353 | else |
| 28354 | DJVU_LIBS='-ldjvulibre' |
| 28355 | LIBS="$DJVU_LIBS $LIBS" |
| 28356 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28357 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28358 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28359 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 28360 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28361 | have_djvu='yes' |
| 28362 | fi |
| 28363 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28364 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 28365 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28366 | fi |
| 28367 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28368 | if test "$have_djvu" = 'yes'; then |
| 28369 | DJVU_DELEGATE_TRUE= |
| 28370 | DJVU_DELEGATE_FALSE='#' |
| 28371 | else |
| 28372 | DJVU_DELEGATE_TRUE='#' |
| 28373 | DJVU_DELEGATE_FALSE= |
| 28374 | fi |
| 28375 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28376 | |
| 28377 | |
| 28378 | |
| 28379 | # |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 28380 | # Set DejaVu font directory. |
| 28381 | # |
| 28382 | |
| 28383 | # Check whether --with-dejavu-font-dir was given. |
| 28384 | if test "${with_dejavu_font_dir+set}" = set; then : |
| 28385 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval |
| 28386 | else |
| 28387 | with_dejavu_font_dir='default' |
| 28388 | fi |
| 28389 | |
| 28390 | |
| 28391 | if test "$with_dejavu_font_dir" != 'default'; then |
| 28392 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " |
| 28393 | fi |
| 28394 | |
| 28395 | |
| 28396 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28397 | # Check for FFTW delegate library. |
| 28398 | # |
| 28399 | |
| 28400 | # Check whether --with-fftw was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28401 | if test "${with_fftw+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28402 | withval=$with_fftw; with_fftw=$withval |
| 28403 | else |
| 28404 | with_fftw='yes' |
| 28405 | fi |
| 28406 | |
| 28407 | |
| 28408 | if test "$with_fftw" != 'yes'; then |
| 28409 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 28410 | fi |
| 28411 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28412 | have_fftw='no' |
| 28413 | FFTW_LIBS='' |
| 28414 | if test "$with_fftw" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28415 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28416 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
| 28418 | $as_echo_n "checking for FFTW... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28419 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28420 | $as_echo "$as_me: " >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28421 | failed=0 |
| 28422 | passed=0 |
| 28423 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 28424 | if test "x$ac_cv_header_fftw3_h" = xyes; then : |
| 28425 | passed=`expr $passed + 1` |
| 28426 | else |
| 28427 | failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28428 | fi |
| 28429 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28430 | |
| 28431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
| 28432 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| 28433 | if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
| 28434 | $as_echo_n "(cached) " >&6 |
| 28435 | else |
| 28436 | ac_check_lib_save_LIBS=$LIBS |
| 28437 | LIBS="-lfftw3 $LIBS" |
| 28438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28439 | /* end confdefs.h. */ |
| 28440 | |
| 28441 | /* Override any GCC internal prototype to avoid an error. |
| 28442 | Use char because int might match the return type of a GCC |
| 28443 | builtin and then its argument prototype would still apply. */ |
| 28444 | #ifdef __cplusplus |
| 28445 | extern "C" |
| 28446 | #endif |
| 28447 | char fftw_execute (); |
| 28448 | int |
| 28449 | main () |
| 28450 | { |
| 28451 | return fftw_execute (); |
| 28452 | ; |
| 28453 | return 0; |
| 28454 | } |
| 28455 | _ACEOF |
| 28456 | if ac_fn_c_try_link "$LINENO"; then : |
| 28457 | ac_cv_lib_fftw3_fftw_execute=yes |
| 28458 | else |
| 28459 | ac_cv_lib_fftw3_fftw_execute=no |
| 28460 | fi |
| 28461 | rm -f core conftest.err conftest.$ac_objext \ |
| 28462 | conftest$ac_exeext conftest.$ac_ext |
| 28463 | LIBS=$ac_check_lib_save_LIBS |
| 28464 | fi |
| 28465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| 28466 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| 28467 | if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
| 28468 | passed=`expr $passed + 1` |
| 28469 | else |
| 28470 | failed=`expr $failed + 1` |
| 28471 | fi |
| 28472 | |
| 28473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 |
| 28474 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 28475 | if test $passed -gt 0; then |
| 28476 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28477 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 28478 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28479 | have_fftw='no (failed tests)' |
| 28480 | else |
| 28481 | FFTW_LIBS='-lfftw3' |
| 28482 | LIBS="$FFTW_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28483 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28484 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28485 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28486 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 28487 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28488 | have_fftw='yes' |
| 28489 | fi |
| 28490 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28491 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 28492 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28493 | fi |
| 28494 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28495 | if test "$have_fftw" = 'yes'; then |
| 28496 | FFTW_DELEGATE_TRUE= |
| 28497 | FFTW_DELEGATE_FALSE='#' |
| 28498 | else |
| 28499 | FFTW_DELEGATE_TRUE='#' |
| 28500 | FFTW_DELEGATE_FALSE= |
| 28501 | fi |
| 28502 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28503 | |
| 28504 | |
| 28505 | |
| 28506 | # |
| 28507 | # Check for FlashPIX delegate library. |
| 28508 | # |
| 28509 | |
| 28510 | # Check whether --with-fpx was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28511 | if test "${with_fpx+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28512 | withval=$with_fpx; with_fpx=$withval |
| 28513 | else |
| 28514 | with_fpx='yes' |
| 28515 | fi |
| 28516 | |
| 28517 | |
| 28518 | if test "$with_fpx" != 'yes'; then |
| 28519 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 28520 | fi |
| 28521 | |
| 28522 | have_fpx='no' |
| 28523 | FPX_LIBS='' |
| 28524 | if test "$with_fpx" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28525 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28526 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28528 | $as_echo_n "checking for FlashPIX... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28529 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28530 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28531 | failed=0 |
| 28532 | passed=0 |
| 28533 | ac_ext=cpp |
| 28534 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28535 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28536 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28537 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28538 | |
| 28539 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28540 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28541 | if test "x$ac_cv_header_fpxlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28542 | passed=`expr $passed + 1` |
| 28543 | else |
| 28544 | failed=`expr $failed + 1` |
| 28545 | fi |
| 28546 | |
| 28547 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28548 | { $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] | 28549 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28550 | if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28551 | $as_echo_n "(cached) " >&6 |
| 28552 | else |
| 28553 | ac_check_lib_save_LIBS=$LIBS |
| 28554 | LIBS="-lfpx $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28556 | /* end confdefs.h. */ |
| 28557 | |
| 28558 | /* Override any GCC internal prototype to avoid an error. |
| 28559 | Use char because int might match the return type of a GCC |
| 28560 | builtin and then its argument prototype would still apply. */ |
| 28561 | #ifdef __cplusplus |
| 28562 | extern "C" |
| 28563 | #endif |
| 28564 | char FPX_OpenImageByFilename (); |
| 28565 | int |
| 28566 | main () |
| 28567 | { |
| 28568 | return FPX_OpenImageByFilename (); |
| 28569 | ; |
| 28570 | return 0; |
| 28571 | } |
| 28572 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28573 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28574 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 28575 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28576 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28577 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28578 | rm -f core conftest.err conftest.$ac_objext \ |
| 28579 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28580 | LIBS=$ac_check_lib_save_LIBS |
| 28581 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28582 | { $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] | 28583 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28584 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28585 | passed=`expr $passed + 1` |
| 28586 | else |
| 28587 | failed=`expr $failed + 1` |
| 28588 | fi |
| 28589 | |
| 28590 | ac_ext=c |
| 28591 | ac_cpp='$CPP $CPPFLAGS' |
| 28592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28595 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28596 | { $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] | 28597 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 28598 | if test $passed -gt 0; then |
| 28599 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28600 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 28601 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28602 | have_fpx='no (failed tests)' |
| 28603 | else |
| 28604 | FPX_LIBS='-lfpx' |
| 28605 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28606 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28607 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28608 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 28609 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28610 | have_fpx='yes' |
| 28611 | PERLMAINCC="$CXX" |
| 28612 | fi |
| 28613 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28614 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 28615 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28616 | fi |
| 28617 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28618 | if test "$have_fpx" = 'yes'; then |
| 28619 | FPX_DELEGATE_TRUE= |
| 28620 | FPX_DELEGATE_FALSE='#' |
| 28621 | else |
| 28622 | FPX_DELEGATE_TRUE='#' |
| 28623 | FPX_DELEGATE_FALSE= |
| 28624 | fi |
| 28625 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28626 | |
| 28627 | |
| 28628 | |
| 28629 | # |
| 28630 | # Check for fontconfig delegate library. |
| 28631 | # |
| 28632 | |
| 28633 | # Check whether --with-fontconfig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28634 | if test "${with_fontconfig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28635 | withval=$with_fontconfig; with_fontconfig=$withval |
| 28636 | else |
| 28637 | with_fontconfig=$have_x |
| 28638 | fi |
| 28639 | |
| 28640 | |
| 28641 | if test "$with_fontconfig" != 'yes'; then |
| 28642 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 28643 | fi |
| 28644 | |
| 28645 | have_fontconfig='no' |
| 28646 | FONTCONFIG_CFLAGS="" |
| 28647 | FONTCONFIG_LIBS="" |
| 28648 | FONTCONFIG_PKG="" |
| 28649 | if test "x$with_fontconfig" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28650 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28651 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28652 | |
| 28653 | pkg_failed=no |
| 28654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 |
| 28655 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 28656 | |
| 28657 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 28658 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 28659 | elif test -n "$PKG_CONFIG"; then |
| 28660 | if test -n "$PKG_CONFIG" && \ |
| 28661 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 28662 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 28663 | ac_status=$? |
| 28664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28665 | test $ac_status = 0; }; then |
| 28666 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 28667 | else |
| 28668 | pkg_failed=yes |
| 28669 | fi |
| 28670 | else |
| 28671 | pkg_failed=untried |
| 28672 | fi |
| 28673 | if test -n "$FONTCONFIG_LIBS"; then |
| 28674 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 28675 | elif test -n "$PKG_CONFIG"; then |
| 28676 | if test -n "$PKG_CONFIG" && \ |
| 28677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 28678 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 28679 | ac_status=$? |
| 28680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28681 | test $ac_status = 0; }; then |
| 28682 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 28683 | else |
| 28684 | pkg_failed=yes |
| 28685 | fi |
| 28686 | else |
| 28687 | pkg_failed=untried |
| 28688 | fi |
| 28689 | |
| 28690 | |
| 28691 | |
| 28692 | if test $pkg_failed = yes; then |
| 28693 | |
| 28694 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 28695 | _pkg_short_errors_supported=yes |
| 28696 | else |
| 28697 | _pkg_short_errors_supported=no |
| 28698 | fi |
| 28699 | if test $_pkg_short_errors_supported = yes; then |
| 28700 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 28701 | else |
| 28702 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 28703 | fi |
| 28704 | # Put the nasty error message in config.log where it belongs |
| 28705 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 28706 | |
| 28707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28708 | $as_echo "no" >&6; } |
| 28709 | have_fontconfig=no |
| 28710 | elif test $pkg_failed = untried; then |
| 28711 | have_fontconfig=no |
| 28712 | else |
| 28713 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 28714 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| 28715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28716 | $as_echo "yes" >&6; } |
| 28717 | have_fontconfig=yes |
| 28718 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28719 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28720 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28721 | fi |
| 28722 | |
| 28723 | if test "$have_fontconfig" = 'yes'; then |
| 28724 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28725 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28726 | |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28727 | if test "$with_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28728 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28729 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28730 | fi |
| 28731 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28732 | if test "$have_fontconfig" = 'yes'; then |
| 28733 | FONTCONFIG_DELEGATE_TRUE= |
| 28734 | FONTCONFIG_DELEGATE_FALSE='#' |
| 28735 | else |
| 28736 | FONTCONFIG_DELEGATE_TRUE='#' |
| 28737 | FONTCONFIG_DELEGATE_FALSE= |
| 28738 | fi |
| 28739 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28740 | |
| 28741 | |
| 28742 | |
| 28743 | |
| 28744 | # |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28745 | # Check for freetype delegate library. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28746 | # |
| 28747 | |
| 28748 | # Check whether --with-freetype was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28749 | if test "${with_freetype+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28750 | withval=$with_freetype; with_freetype=$withval |
| 28751 | else |
| 28752 | with_freetype='yes' |
| 28753 | fi |
| 28754 | |
| 28755 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28756 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28757 | if test "$with_freetype" != 'yes'; then |
| 28758 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 28759 | fi |
| 28760 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28761 | have_freetype='no' |
| 28762 | FREETYPE_LIBS='' |
| 28763 | if test "$with_freetype" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28764 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28765 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5 |
| 28767 | $as_echo_n "checking for FreeType 2.0 ... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28768 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28769 | $as_echo "$as_me: " >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28770 | failed=0 |
| 28771 | passed=0 |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28772 | PERSIST_LDFLAGS="$LDFLAGS" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28773 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28774 | freetype_config='' |
| 28775 | # Allow the user to specify the location of freetype. |
| 28776 | if test "$with_freetype" != 'yes'; then |
| 28777 | if test -x "${with_freetype}/bin/freetype-config"; then |
| 28778 | freetype_config="${with_freetype}/bin/freetype-config" |
| 28779 | elif test -x "${with_freetype}"; then |
| 28780 | freetype_config=${with_freetype} |
| 28781 | fi |
| 28782 | fi |
| 28783 | if test -z "$freetype_config"; then |
| 28784 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 28785 | set dummy freetype-config; ac_word=$2 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 28787 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28788 | if ${ac_cv_path_freetype_config+:} false; then : |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28789 | $as_echo_n "(cached) " >&6 |
| 28790 | else |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28791 | case $freetype_config in |
| 28792 | [\\/]* | ?:[\\/]*) |
| 28793 | ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path. |
| 28794 | ;; |
| 28795 | *) |
| 28796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28797 | for as_dir in $PATH |
| 28798 | do |
| 28799 | IFS=$as_save_IFS |
| 28800 | test -z "$as_dir" && as_dir=. |
| 28801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 28802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28803 | ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 28805 | break 2 |
| 28806 | fi |
| 28807 | done |
| 28808 | done |
| 28809 | IFS=$as_save_IFS |
| 28810 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28811 | ;; |
| 28812 | esac |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28813 | fi |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28814 | freetype_config=$ac_cv_path_freetype_config |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28815 | if test -n "$freetype_config"; then |
| 28816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 |
| 28817 | $as_echo "$freetype_config" >&6; } |
| 28818 | else |
| 28819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28820 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28821 | fi |
| 28822 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28823 | fi |
| 28824 | if test -n "$freetype_config"; then |
| 28825 | freetype_prefix=`${freetype_config} --prefix` |
| 28826 | freetype_exec_prefix=`${freetype_config} --exec-prefix` |
| 28827 | LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" |
| 28828 | CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28829 | fi |
| 28830 | |
| 28831 | if test "$FREETYPE_LIBS" = ''; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28833 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| 28834 | if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : |
| 28835 | $as_echo_n "(cached) " >&6 |
| 28836 | else |
| 28837 | ac_check_lib_save_LIBS=$LIBS |
| 28838 | LIBS="-lfreetype $LIBS" |
| 28839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28840 | /* end confdefs.h. */ |
| 28841 | |
| 28842 | /* Override any GCC internal prototype to avoid an error. |
| 28843 | Use char because int might match the return type of a GCC |
| 28844 | builtin and then its argument prototype would still apply. */ |
| 28845 | #ifdef __cplusplus |
| 28846 | extern "C" |
| 28847 | #endif |
| 28848 | char FT_Init_FreeType (); |
| 28849 | int |
| 28850 | main () |
| 28851 | { |
| 28852 | return FT_Init_FreeType (); |
| 28853 | ; |
| 28854 | return 0; |
| 28855 | } |
| 28856 | _ACEOF |
| 28857 | if ac_fn_c_try_link "$LINENO"; then : |
| 28858 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 28859 | else |
| 28860 | ac_cv_lib_freetype_FT_Init_FreeType=no |
| 28861 | fi |
| 28862 | rm -f core conftest.err conftest.$ac_objext \ |
| 28863 | conftest$ac_exeext conftest.$ac_ext |
| 28864 | LIBS=$ac_check_lib_save_LIBS |
| 28865 | fi |
| 28866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 28867 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| 28868 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : |
| 28869 | FREETYPE_LIBS='-lfreetype' |
| 28870 | fi |
| 28871 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28872 | if test "$FREETYPE_LIBS" != ''; then |
| 28873 | passed=`expr $passed + 1` |
| 28874 | else |
| 28875 | failed=`expr $failed + 1` |
| 28876 | LDFLAGS="$PERSIST_LDFLAGS" |
| 28877 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28878 | fi |
| 28879 | |
| 28880 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 28881 | if test "x$ac_cv_header_ft2build_h" = xyes; then : |
| 28882 | FT2BUILD_H='#include <ft2build.h>' |
| 28883 | else |
| 28884 | ft2build='' |
| 28885 | fi |
| 28886 | |
| 28887 | |
| 28888 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H |
| 28889 | " |
| 28890 | if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : |
| 28891 | have_freetype_h='yes' |
| 28892 | else |
| 28893 | have_freetype_h='no' |
| 28894 | fi |
| 28895 | |
| 28896 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28897 | if test "$have_freetype_h" = 'yes'; then |
| 28898 | passed=`expr $passed + 1` |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28899 | else |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28900 | failed=`expr $failed + 1` |
| 28901 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28902 | fi |
| 28903 | |
| 28904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 |
| 28905 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 28906 | if test $passed -gt 0; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28907 | if test $failed -gt 0; then |
| 28908 | FREETYPE_LIBS='' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28909 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 28910 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28911 | have_freetype='no (failed tests)' |
| 28912 | else |
| 28913 | LIBS="$FREETYPE_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28914 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28915 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28916 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28917 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28918 | |
| 28919 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h |
| 28920 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28921 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28922 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 28923 | $as_echo "$as_me: yes" >&6;} |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28924 | have_freetype='yes' |
| 28925 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28926 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28927 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 28928 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28929 | fi |
| 28930 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28931 | if test "$have_freetype" = 'yes'; then |
| 28932 | FREETYPE_DELEGATE_TRUE= |
| 28933 | FREETYPE_DELEGATE_FALSE='#' |
| 28934 | else |
| 28935 | FREETYPE_DELEGATE_TRUE='#' |
| 28936 | FREETYPE_DELEGATE_FALSE= |
| 28937 | fi |
| 28938 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28939 | |
| 28940 | |
| 28941 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | # |
| 28943 | # Check for Ghostscript library or framework. |
| 28944 | # |
| 28945 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 28946 | # or -framework Ghostscript |
| 28947 | |
| 28948 | |
| 28949 | # Check whether --with-gslib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28950 | if test "${with_gslib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28951 | withval=$with_gslib; with_gslib=$withval |
| 28952 | else |
| 28953 | with_gslib='no' |
| 28954 | fi |
| 28955 | |
| 28956 | |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28957 | gslib_framework='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28958 | if test "$with_gslib" != 'yes'; then |
| 28959 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 28960 | fi |
| 28961 | |
| 28962 | have_gslib='no' |
| 28963 | GS_LIBS='' |
| 28964 | if test "$with_gslib" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28965 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 28966 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28968 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28969 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 28970 | $as_echo "$as_me: " >&6;} |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28971 | framework=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28972 | failed=0 |
| 28973 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28974 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28975 | if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28976 | passed=`expr $passed + 1` |
| 28977 | else |
| 28978 | failed=`expr $failed + 1` |
| 28979 | fi |
| 28980 | |
| 28981 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28982 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28983 | if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28984 | passed=`expr $passed + 1` |
| 28985 | else |
| 28986 | failed=`expr $failed + 1` |
| 28987 | fi |
| 28988 | |
| 28989 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| 28991 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28992 | if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28993 | $as_echo_n "(cached) " >&6 |
| 28994 | else |
| 28995 | ac_check_framework_save_LIBS=$LIBS |
| 28996 | LIBS="-framework Ghostscript $LIBS" |
| 28997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28998 | /* end confdefs.h. */ |
| 28999 | |
| 29000 | /* Override any GCC internal prototype to avoid an error. |
| 29001 | Use char because int might match the return type of a GCC |
| 29002 | builtin and then its argument prototype would still apply. */ |
| 29003 | #ifdef __cplusplus |
| 29004 | extern "C" |
| 29005 | #endif |
| 29006 | char gsapi_new_instance (); |
| 29007 | int |
| 29008 | main () |
| 29009 | { |
| 29010 | return gsapi_new_instance (); |
| 29011 | ; |
| 29012 | return 0; |
| 29013 | } |
| 29014 | _ACEOF |
| 29015 | if ac_fn_c_try_link "$LINENO"; then : |
| 29016 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 29017 | else |
| 29018 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| 29019 | fi |
| 29020 | rm -f core conftest.err conftest.$ac_objext \ |
| 29021 | conftest$ac_exeext conftest.$ac_ext |
| 29022 | LIBS=$ac_check_framework_save_LIBS |
| 29023 | fi |
| 29024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| 29025 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| 29026 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : |
| 29027 | framework=`expr $framework + 1` |
| 29028 | else |
| 29029 | { $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] | 29030 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29031 | if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29032 | $as_echo_n "(cached) " >&6 |
| 29033 | else |
| 29034 | ac_check_lib_save_LIBS=$LIBS |
| 29035 | LIBS="-lgs $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29037 | /* end confdefs.h. */ |
| 29038 | |
| 29039 | /* Override any GCC internal prototype to avoid an error. |
| 29040 | Use char because int might match the return type of a GCC |
| 29041 | builtin and then its argument prototype would still apply. */ |
| 29042 | #ifdef __cplusplus |
| 29043 | extern "C" |
| 29044 | #endif |
| 29045 | char gsapi_new_instance (); |
| 29046 | int |
| 29047 | main () |
| 29048 | { |
| 29049 | return gsapi_new_instance (); |
| 29050 | ; |
| 29051 | return 0; |
| 29052 | } |
| 29053 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29054 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29055 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 29056 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29057 | ac_cv_lib_gs_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29058 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29059 | rm -f core conftest.err conftest.$ac_objext \ |
| 29060 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29061 | LIBS=$ac_check_lib_save_LIBS |
| 29062 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29063 | { $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] | 29064 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29065 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29066 | passed=`expr $passed + 1` |
| 29067 | else |
| 29068 | failed=`expr $failed + 1` |
| 29069 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29070 | |
| 29071 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29072 | { $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] | 29073 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 29074 | if test $passed -gt 0; then |
| 29075 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29076 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29077 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29078 | have_gslib='no (failed tests)' |
| 29079 | else |
| 29080 | if test $framework -gt 0; then |
| 29081 | GS_LIBS='-framework Ghostscript' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29082 | gslib_framework='yes' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29083 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5 |
| 29084 | $as_echo "$as_me: yes, using framework." >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29085 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29086 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5 |
| 29087 | $as_echo "$as_me: yes, using library." >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29088 | GS_LIBS='-lgs' |
| 29089 | fi |
| 29090 | LIBS="$GS_LIBS $LIBS" |
| 29091 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29092 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29093 | |
| 29094 | have_gslib='yes' |
| 29095 | fi |
| 29096 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29097 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29098 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29099 | fi |
| 29100 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29101 | if test "$have_gslib" = 'yes'; then |
| 29102 | GS_DELEGATE_TRUE= |
| 29103 | GS_DELEGATE_FALSE='#' |
| 29104 | else |
| 29105 | GS_DELEGATE_TRUE='#' |
| 29106 | GS_DELEGATE_FALSE= |
| 29107 | fi |
| 29108 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29109 | |
| 29110 | |
| 29111 | # Set default font search path |
| 29112 | |
| 29113 | # Check whether --with-fontpath was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29114 | if test "${with_fontpath+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29115 | withval=$with_fontpath; with_fontpath=$withval |
| 29116 | else |
| 29117 | with_fontpath='' |
| 29118 | fi |
| 29119 | |
| 29120 | |
| 29121 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 29122 | with_fontpath='' |
| 29123 | else |
| 29124 | |
| 29125 | cat >>confdefs.h <<_ACEOF |
| 29126 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 29127 | _ACEOF |
| 29128 | |
| 29129 | fi |
| 29130 | if test "$with_fontpath=" != ''; then |
| 29131 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 29132 | fi |
| 29133 | |
| 29134 | # Set Ghostscript font directory |
| 29135 | |
| 29136 | # Check whether --with-gs-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29137 | if test "${with_gs_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29138 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 29139 | else |
| 29140 | with_gs_font_dir='default' |
| 29141 | fi |
| 29142 | |
| 29143 | |
| 29144 | if test "$with_gs_font_dir" != 'default'; then |
| 29145 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 29146 | fi |
| 29147 | |
| 29148 | |
| 29149 | # |
| 29150 | # Check for GVC delegate library. |
| 29151 | # |
| 29152 | |
| 29153 | # Check whether --with-gvc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29154 | if test "${with_gvc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29155 | withval=$with_gvc; with_gvc=$withval |
| 29156 | else |
| 29157 | with_gvc='yes' |
| 29158 | fi |
| 29159 | |
| 29160 | |
| 29161 | if test "$with_gvc" != 'yes'; then |
| 29162 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 29163 | fi |
| 29164 | |
| 29165 | GVC_PKG="" |
| 29166 | if test "x$with_gvc" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29167 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29168 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29169 | |
| 29170 | pkg_failed=no |
| 29171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 |
| 29172 | $as_echo_n "checking for GVC... " >&6; } |
| 29173 | |
| 29174 | if test -n "$GVC_CFLAGS"; then |
| 29175 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 29176 | elif test -n "$PKG_CONFIG"; then |
| 29177 | if test -n "$PKG_CONFIG" && \ |
| 29178 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29179 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29180 | ac_status=$? |
| 29181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29182 | test $ac_status = 0; }; then |
| 29183 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 29184 | else |
| 29185 | pkg_failed=yes |
| 29186 | fi |
| 29187 | else |
| 29188 | pkg_failed=untried |
| 29189 | fi |
| 29190 | if test -n "$GVC_LIBS"; then |
| 29191 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 29192 | elif test -n "$PKG_CONFIG"; then |
| 29193 | if test -n "$PKG_CONFIG" && \ |
| 29194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29195 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29196 | ac_status=$? |
| 29197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29198 | test $ac_status = 0; }; then |
| 29199 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 29200 | else |
| 29201 | pkg_failed=yes |
| 29202 | fi |
| 29203 | else |
| 29204 | pkg_failed=untried |
| 29205 | fi |
| 29206 | |
| 29207 | |
| 29208 | |
| 29209 | if test $pkg_failed = yes; then |
| 29210 | |
| 29211 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29212 | _pkg_short_errors_supported=yes |
| 29213 | else |
| 29214 | _pkg_short_errors_supported=no |
| 29215 | fi |
| 29216 | if test $_pkg_short_errors_supported = yes; then |
| 29217 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29218 | else |
| 29219 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29220 | fi |
| 29221 | # Put the nasty error message in config.log where it belongs |
| 29222 | echo "$GVC_PKG_ERRORS" >&5 |
| 29223 | |
| 29224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29225 | $as_echo "no" >&6; } |
| 29226 | have_gvc=no |
| 29227 | elif test $pkg_failed = untried; then |
| 29228 | have_gvc=no |
| 29229 | else |
| 29230 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 29231 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| 29232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29233 | $as_echo "yes" >&6; } |
| 29234 | have_gvc=yes |
| 29235 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29236 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29237 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29238 | fi |
| 29239 | |
| 29240 | if test "$have_gvc" = 'yes'; then |
| 29241 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29242 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29243 | |
| 29244 | if test "$with_modules" = 'no'; then |
| 29245 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 29246 | fi |
| 29247 | fi |
| 29248 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29249 | if test "$have_gvc" = 'yes'; then |
| 29250 | GVC_DELEGATE_TRUE= |
| 29251 | GVC_DELEGATE_FALSE='#' |
| 29252 | else |
| 29253 | GVC_DELEGATE_TRUE='#' |
| 29254 | GVC_DELEGATE_FALSE= |
| 29255 | fi |
| 29256 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29257 | |
| 29258 | |
| 29259 | |
| 29260 | |
| 29261 | # |
| 29262 | # Check for JBIG delegate library. |
| 29263 | # |
| 29264 | |
| 29265 | |
| 29266 | # Check whether --with-jbig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29267 | if test "${with_jbig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29268 | withval=$with_jbig; with_jbig=$withval |
| 29269 | else |
| 29270 | with_jbig='yes' |
| 29271 | fi |
| 29272 | |
| 29273 | |
| 29274 | have_jbig='no' |
| 29275 | JBIG_LIBS='' |
| 29276 | if test "$with_jbig" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29277 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29278 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29280 | $as_echo_n "checking for JBIG... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29281 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29282 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29283 | failed=0 |
| 29284 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29285 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29286 | if test "x$ac_cv_header_jbig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29287 | passed=`expr $passed + 1` |
| 29288 | else |
| 29289 | failed=`expr $failed + 1` |
| 29290 | fi |
| 29291 | |
| 29292 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29293 | { $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] | 29294 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29295 | if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29296 | $as_echo_n "(cached) " >&6 |
| 29297 | else |
| 29298 | ac_check_lib_save_LIBS=$LIBS |
| 29299 | LIBS="-ljbig $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29301 | /* end confdefs.h. */ |
| 29302 | |
| 29303 | /* Override any GCC internal prototype to avoid an error. |
| 29304 | Use char because int might match the return type of a GCC |
| 29305 | builtin and then its argument prototype would still apply. */ |
| 29306 | #ifdef __cplusplus |
| 29307 | extern "C" |
| 29308 | #endif |
| 29309 | char jbg_dec_init (); |
| 29310 | int |
| 29311 | main () |
| 29312 | { |
| 29313 | return jbg_dec_init (); |
| 29314 | ; |
| 29315 | return 0; |
| 29316 | } |
| 29317 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29318 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29319 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 29320 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29321 | ac_cv_lib_jbig_jbg_dec_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29322 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29323 | rm -f core conftest.err conftest.$ac_objext \ |
| 29324 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29325 | LIBS=$ac_check_lib_save_LIBS |
| 29326 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29327 | { $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] | 29328 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29329 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29330 | passed=`expr $passed + 1` |
| 29331 | else |
| 29332 | failed=`expr $failed + 1` |
| 29333 | fi |
| 29334 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29335 | { $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] | 29336 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 29337 | if test $passed -gt 0; then |
| 29338 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29339 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29340 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29341 | have_jbig='no (failed tests)' |
| 29342 | else |
| 29343 | JBIG_LIBS='-ljbig' |
| 29344 | LIBS="$JBIG_LIBS $LIBS" |
| 29345 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29346 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29347 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29348 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 29349 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29350 | have_jbig='yes' |
| 29351 | fi |
| 29352 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29353 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29354 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29355 | fi |
| 29356 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29357 | if test "$have_jbig" = 'yes'; then |
| 29358 | JBIG_DELEGATE_TRUE= |
| 29359 | JBIG_DELEGATE_FALSE='#' |
| 29360 | else |
| 29361 | JBIG_DELEGATE_TRUE='#' |
| 29362 | JBIG_DELEGATE_FALSE= |
| 29363 | fi |
| 29364 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29365 | |
| 29366 | |
| 29367 | |
| 29368 | # |
| 29369 | # Check for JPEG delegate library. |
| 29370 | # |
| 29371 | |
| 29372 | # Check whether --with-jpeg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29373 | if test "${with_jpeg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29374 | withval=$with_jpeg; with_jpeg=$withval |
| 29375 | else |
| 29376 | with_jpeg='yes' |
| 29377 | fi |
| 29378 | |
| 29379 | |
| 29380 | if test "$with_jpeg" != 'yes'; then |
| 29381 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 29382 | fi |
| 29383 | |
| 29384 | have_jpeg='no' |
| 29385 | JPEG_LIBS='' |
| 29386 | if test "$with_jpeg" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29387 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29388 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29390 | $as_echo_n "checking for JPEG... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29391 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29392 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29393 | failed=0 |
| 29394 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29395 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29396 | if test "x$ac_cv_header_jconfig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29397 | passed=`expr $passed + 1` |
| 29398 | else |
| 29399 | failed=`expr $failed + 1` |
| 29400 | fi |
| 29401 | |
| 29402 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29403 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29404 | if test "x$ac_cv_header_jerror_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29405 | passed=`expr $passed + 1` |
| 29406 | else |
| 29407 | failed=`expr $failed + 1` |
| 29408 | fi |
| 29409 | |
| 29410 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29411 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29412 | if test "x$ac_cv_header_jmorecfg_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29413 | passed=`expr $passed + 1` |
| 29414 | else |
| 29415 | failed=`expr $failed + 1` |
| 29416 | fi |
| 29417 | |
| 29418 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29419 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29420 | if test "x$ac_cv_header_jpeglib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29421 | passed=`expr $passed + 1` |
| 29422 | else |
| 29423 | failed=`expr $failed + 1` |
| 29424 | fi |
| 29425 | |
| 29426 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29427 | { $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] | 29428 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29429 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29430 | $as_echo_n "(cached) " >&6 |
| 29431 | else |
| 29432 | ac_check_lib_save_LIBS=$LIBS |
| 29433 | LIBS="-ljpeg $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29435 | /* end confdefs.h. */ |
| 29436 | |
| 29437 | /* Override any GCC internal prototype to avoid an error. |
| 29438 | Use char because int might match the return type of a GCC |
| 29439 | builtin and then its argument prototype would still apply. */ |
| 29440 | #ifdef __cplusplus |
| 29441 | extern "C" |
| 29442 | #endif |
| 29443 | char jpeg_read_header (); |
| 29444 | int |
| 29445 | main () |
| 29446 | { |
| 29447 | return jpeg_read_header (); |
| 29448 | ; |
| 29449 | return 0; |
| 29450 | } |
| 29451 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29452 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29453 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 29454 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29455 | ac_cv_lib_jpeg_jpeg_read_header=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29456 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29457 | rm -f core conftest.err conftest.$ac_objext \ |
| 29458 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29459 | LIBS=$ac_check_lib_save_LIBS |
| 29460 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29461 | { $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] | 29462 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29463 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29464 | passed=`expr $passed + 1` |
| 29465 | else |
| 29466 | failed=`expr $failed + 1` |
| 29467 | fi |
| 29468 | |
| 29469 | |
| 29470 | # Test for compatible JPEG library |
| 29471 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29472 | { $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] | 29473 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29474 | if ${ac_cv_jpeg_version_ok+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29475 | $as_echo_n "(cached) " >&6 |
| 29476 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29478 | /* end confdefs.h. */ |
| 29479 | #include <stdio.h> |
| 29480 | #include <stdlib.h> |
| 29481 | #include <jpeglib.h> |
| 29482 | |
| 29483 | int |
| 29484 | main () |
| 29485 | { |
| 29486 | |
| 29487 | #if JPEG_LIB_VERSION < 62 |
| 29488 | #error IJG JPEG library must be version 6b or newer! |
| 29489 | #endif |
| 29490 | return 0; |
| 29491 | |
| 29492 | ; |
| 29493 | return 0; |
| 29494 | } |
| 29495 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29496 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29497 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 29498 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29499 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29500 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29502 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29503 | { $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] | 29504 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 29505 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29506 | { $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] | 29507 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 29508 | if test $passed -gt 0; then |
| 29509 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29510 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29511 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29512 | have_jpeg='no (failed tests)' |
| 29513 | else |
| 29514 | JPEG_LIBS='-ljpeg' |
| 29515 | LIBS="$JPEG_LIBS $LIBS" |
| 29516 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29517 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29518 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29519 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 29520 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29521 | have_jpeg='yes' |
| 29522 | fi |
| 29523 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29524 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29525 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29526 | fi |
| 29527 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29528 | if test "$have_jpeg" = 'yes'; then |
| 29529 | JPEG_DELEGATE_TRUE= |
| 29530 | JPEG_DELEGATE_FALSE='#' |
| 29531 | else |
| 29532 | JPEG_DELEGATE_TRUE='#' |
| 29533 | JPEG_DELEGATE_FALSE= |
| 29534 | fi |
| 29535 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29536 | |
| 29537 | |
| 29538 | |
| 29539 | # |
| 29540 | # Check for JPEG Version 2 delegate library. |
| 29541 | # |
| 29542 | |
| 29543 | # Check whether --with-jp2 was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29544 | if test "${with_jp2+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29545 | withval=$with_jp2; with_jp2=$withval |
| 29546 | else |
| 29547 | with_jp2='yes' |
| 29548 | fi |
| 29549 | |
| 29550 | |
| 29551 | if test "$with_jp2" != 'yes'; then |
| 29552 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 29553 | fi |
| 29554 | |
| 29555 | have_jp2='no' |
| 29556 | JP2_LIBS='' |
| 29557 | if test "$with_jp2" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29558 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29559 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29561 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29562 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29563 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29564 | failed=0 |
| 29565 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29566 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29567 | if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29568 | passed=`expr $passed + 1` |
| 29569 | else |
| 29570 | failed=`expr $failed + 1` |
| 29571 | fi |
| 29572 | |
| 29573 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29574 | { $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] | 29575 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29576 | if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29577 | $as_echo_n "(cached) " >&6 |
| 29578 | else |
| 29579 | ac_check_lib_save_LIBS=$LIBS |
| 29580 | LIBS="-ljasper $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29582 | /* end confdefs.h. */ |
| 29583 | |
| 29584 | /* Override any GCC internal prototype to avoid an error. |
| 29585 | Use char because int might match the return type of a GCC |
| 29586 | builtin and then its argument prototype would still apply. */ |
| 29587 | #ifdef __cplusplus |
| 29588 | extern "C" |
| 29589 | #endif |
| 29590 | char jas_stream_fopen (); |
| 29591 | int |
| 29592 | main () |
| 29593 | { |
| 29594 | return jas_stream_fopen (); |
| 29595 | ; |
| 29596 | return 0; |
| 29597 | } |
| 29598 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29599 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29600 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 29601 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29602 | ac_cv_lib_jasper_jas_stream_fopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29603 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29604 | rm -f core conftest.err conftest.$ac_objext \ |
| 29605 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29606 | LIBS=$ac_check_lib_save_LIBS |
| 29607 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29608 | { $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] | 29609 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29610 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29611 | passed=`expr $passed + 1` |
| 29612 | else |
| 29613 | failed=`expr $failed + 1` |
| 29614 | fi |
| 29615 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29616 | { $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] | 29617 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 29618 | if test $passed -gt 0; then |
| 29619 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29620 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29621 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29622 | have_jp2='no (failed tests)' |
| 29623 | else |
| 29624 | JP2_LIBS='-ljasper' |
| 29625 | LIBS="$JP2_LIBS $LIBS" |
| 29626 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29627 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29628 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29629 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 29630 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29631 | have_jp2='yes' |
| 29632 | fi |
| 29633 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29634 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29635 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29636 | fi |
| 29637 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29638 | if test "$have_jp2" = 'yes'; then |
| 29639 | JP2_DELEGATE_TRUE= |
| 29640 | JP2_DELEGATE_FALSE='#' |
| 29641 | else |
| 29642 | JP2_DELEGATE_TRUE='#' |
| 29643 | JP2_DELEGATE_FALSE= |
| 29644 | fi |
| 29645 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29646 | |
| 29647 | |
| 29648 | |
| 29649 | # |
| 29650 | # Check for LCMS delegate library. |
| 29651 | # |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29652 | # Disable LCMS. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29653 | |
| 29654 | # Check whether --with-lcms was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29655 | if test "${with_lcms+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29656 | withval=$with_lcms; with_lcms=$withval |
| 29657 | else |
| 29658 | with_lcms='yes' |
| 29659 | fi |
| 29660 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29661 | if test "$with_lcms" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29662 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 29663 | fi |
| 29664 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29665 | # Disable LCMS2. |
| 29666 | |
| 29667 | # Check whether --with-lcms2 was given. |
| 29668 | if test "${with_lcms2+set}" = set; then : |
| 29669 | withval=$with_lcms2; with_lcms2=$withval |
| 29670 | else |
| 29671 | with_lcms2='yes' |
| 29672 | fi |
| 29673 | |
| 29674 | if test "$with_lcms2" != 'yes' ; then |
| 29675 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " |
| 29676 | fi |
| 29677 | |
| 29678 | have_lcms2='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29679 | LCMS_LIBS='' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29680 | if test "$with_lcms2" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29681 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29682 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 |
| 29684 | $as_echo_n "checking for LCMS v2... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29685 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29686 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29687 | failed=0 |
| 29688 | passed=0 |
| 29689 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29690 | |
| 29691 | # Check for <lcms2.h> |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29692 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29693 | if test "x$ac_cv_header_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29694 | have_lcms_header='yes' |
| 29695 | fi |
| 29696 | |
| 29697 | |
| 29698 | if test "$have_lcms_header" = 'yes'; then |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29699 | |
| 29700 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h |
| 29701 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29702 | passed=`expr $passed + 1` |
| 29703 | fi |
| 29704 | |
| 29705 | # Check for <lcms2/lcms2.h) |
| 29706 | if test "$have_lcms_header" != 'yes'; then |
| 29707 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29708 | if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29709 | have_lcms_header='yes' |
| 29710 | fi |
| 29711 | |
| 29712 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29713 | if test "$have_lcms_header" = 'yes'; then |
| 29714 | passed=`expr $passed + 1` |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29715 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29716 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29717 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29718 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29719 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29720 | |
| 29721 | # Failed to find lcms header? |
| 29722 | if test "$have_lcms_header" != 'yes'; then |
| 29723 | failed=`expr $failed + 1` |
| 29724 | fi |
| 29725 | |
| 29726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 |
| 29727 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29728 | if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29729 | $as_echo_n "(cached) " >&6 |
| 29730 | else |
| 29731 | ac_check_lib_save_LIBS=$LIBS |
| 29732 | LIBS="-llcms2 $LIBS" |
| 29733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29734 | /* end confdefs.h. */ |
| 29735 | |
| 29736 | /* Override any GCC internal prototype to avoid an error. |
| 29737 | Use char because int might match the return type of a GCC |
| 29738 | builtin and then its argument prototype would still apply. */ |
| 29739 | #ifdef __cplusplus |
| 29740 | extern "C" |
| 29741 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29742 | char cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29743 | int |
| 29744 | main () |
| 29745 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29746 | return cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29747 | ; |
| 29748 | return 0; |
| 29749 | } |
| 29750 | _ACEOF |
| 29751 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29752 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29753 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29754 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29755 | fi |
| 29756 | rm -f core conftest.err conftest.$ac_objext \ |
| 29757 | conftest$ac_exeext conftest.$ac_ext |
| 29758 | LIBS=$ac_check_lib_save_LIBS |
| 29759 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 |
| 29761 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29762 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29763 | passed=`expr $passed + 1` |
| 29764 | else |
| 29765 | failed=`expr $failed + 1` |
| 29766 | fi |
| 29767 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 |
| 29769 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29770 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29771 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29772 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29773 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29774 | have_lcms2='no (failed tests)' |
| 29775 | else |
| 29776 | LCMS_LIBS='-llcms2' |
| 29777 | LIBS="$LCMS_LIBS $LIBS" |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29778 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 29779 | $as_echo "$as_me: yes" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29780 | have_lcms2='yes' |
| 29781 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29782 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29783 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29784 | $as_echo "$as_me: no" >&6;} |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29785 | fi |
| 29786 | fi |
| 29787 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29788 | # |
| 29789 | # Check for LCMS v1 (1.11 or later) |
| 29790 | # |
| 29791 | if test $have_lcms2 = 'yes'; then |
| 29792 | with_lcms='no' |
| 29793 | fi |
| 29794 | |
| 29795 | have_lcms='no' |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29796 | if test "$with_lcms" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29797 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29798 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 |
| 29800 | $as_echo_n "checking for LCMS v1.1X... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29801 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 29802 | $as_echo "$as_me: " >&6;} |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29803 | failed=0 |
| 29804 | passed=0 |
| 29805 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29806 | |
| 29807 | # Check for <lcms.h> |
| 29808 | if test "$have_lcms_header" != 'yes'; then |
| 29809 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29810 | if test "x$ac_cv_header_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29811 | have_lcms_header='yes' |
| 29812 | fi |
| 29813 | |
| 29814 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29815 | if test "$have_lcms_header" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29816 | passed=`expr $passed + 1` |
| 29817 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29818 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29819 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29820 | fi |
| 29821 | fi |
| 29822 | |
| 29823 | # Check for <lcms/lcms.h> |
| 29824 | if test "$have_lcms_header" != 'yes'; then |
| 29825 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29826 | if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29827 | have_lcms_header='yes' |
| 29828 | fi |
| 29829 | |
| 29830 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29831 | if test "$have_lcms_header" = 'yes'; then |
| 29832 | passed=`expr $passed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29833 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29834 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29835 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29836 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29837 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29838 | |
| 29839 | # Failed to find lcms header? |
| 29840 | if test "$have_lcms_header" != 'yes'; then |
| 29841 | failed=`expr $failed + 1` |
| 29842 | fi |
| 29843 | |
| 29844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 |
| 29845 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29846 | if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29847 | $as_echo_n "(cached) " >&6 |
| 29848 | else |
| 29849 | ac_check_lib_save_LIBS=$LIBS |
| 29850 | LIBS="-llcms $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29852 | /* end confdefs.h. */ |
| 29853 | |
| 29854 | /* Override any GCC internal prototype to avoid an error. |
| 29855 | Use char because int might match the return type of a GCC |
| 29856 | builtin and then its argument prototype would still apply. */ |
| 29857 | #ifdef __cplusplus |
| 29858 | extern "C" |
| 29859 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29860 | char cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29861 | int |
| 29862 | main () |
| 29863 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29864 | return cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29865 | ; |
| 29866 | return 0; |
| 29867 | } |
| 29868 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29869 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29870 | ac_cv_lib_lcms_cmsSetErrorHandler=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29871 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29872 | ac_cv_lib_lcms_cmsSetErrorHandler=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29873 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29874 | rm -f core conftest.err conftest.$ac_objext \ |
| 29875 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29876 | LIBS=$ac_check_lib_save_LIBS |
| 29877 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 |
| 29879 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29880 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29881 | passed=`expr $passed + 1` |
| 29882 | else |
| 29883 | failed=`expr $failed + 1` |
| 29884 | fi |
| 29885 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29886 | { $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] | 29887 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 29888 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29889 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29890 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 29891 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29892 | have_lcms='no (failed tests)' |
| 29893 | else |
| 29894 | LCMS_LIBS='-llcms' |
| 29895 | LIBS="$LCMS_LIBS $LIBS" |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29896 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 29897 | $as_echo "$as_me: yes" >&6;} |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29898 | have_lcms='yes' |
| 29899 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29900 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29901 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 29902 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29903 | fi |
| 29904 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29905 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29906 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 29907 | LCMS_DELEGATE_TRUE= |
| 29908 | LCMS_DELEGATE_FALSE='#' |
| 29909 | else |
| 29910 | LCMS_DELEGATE_TRUE='#' |
| 29911 | LCMS_DELEGATE_FALSE= |
| 29912 | fi |
| 29913 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29914 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 29915 | |
| 29916 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| 29917 | |
| 29918 | fi |
| 29919 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29920 | |
| 29921 | |
| 29922 | |
| 29923 | # |
| 29924 | # Check for the LQR (Liquid Rescale) delegate library. |
| 29925 | # |
| 29926 | |
| 29927 | # Check whether --with-lqr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29928 | if test "${with_lqr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29929 | withval=$with_lqr; with_lqr=$withval |
| 29930 | else |
| 29931 | with_lqr='yes' |
| 29932 | fi |
| 29933 | |
| 29934 | |
| 29935 | if test "$with_lqr" != 'yes'; then |
| 29936 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 29937 | fi |
| 29938 | |
| 29939 | have_lqr='no' |
| 29940 | LQR_CFLAGS="" |
| 29941 | LQR_LIBS="" |
| 29942 | LQR_PKG="" |
| 29943 | if test "x$with_lqr" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29944 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 29945 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29946 | |
| 29947 | pkg_failed=no |
| 29948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 |
| 29949 | $as_echo_n "checking for LQR... " >&6; } |
| 29950 | |
| 29951 | if test -n "$LQR_CFLAGS"; then |
| 29952 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 29953 | elif test -n "$PKG_CONFIG"; then |
| 29954 | if test -n "$PKG_CONFIG" && \ |
| 29955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 29956 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 29957 | ac_status=$? |
| 29958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29959 | test $ac_status = 0; }; then |
| 29960 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 29961 | else |
| 29962 | pkg_failed=yes |
| 29963 | fi |
| 29964 | else |
| 29965 | pkg_failed=untried |
| 29966 | fi |
| 29967 | if test -n "$LQR_LIBS"; then |
| 29968 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 29969 | elif test -n "$PKG_CONFIG"; then |
| 29970 | if test -n "$PKG_CONFIG" && \ |
| 29971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 29972 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 29973 | ac_status=$? |
| 29974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29975 | test $ac_status = 0; }; then |
| 29976 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 29977 | else |
| 29978 | pkg_failed=yes |
| 29979 | fi |
| 29980 | else |
| 29981 | pkg_failed=untried |
| 29982 | fi |
| 29983 | |
| 29984 | |
| 29985 | |
| 29986 | if test $pkg_failed = yes; then |
| 29987 | |
| 29988 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29989 | _pkg_short_errors_supported=yes |
| 29990 | else |
| 29991 | _pkg_short_errors_supported=no |
| 29992 | fi |
| 29993 | if test $_pkg_short_errors_supported = yes; then |
| 29994 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 29995 | else |
| 29996 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 29997 | fi |
| 29998 | # Put the nasty error message in config.log where it belongs |
| 29999 | echo "$LQR_PKG_ERRORS" >&5 |
| 30000 | |
| 30001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30002 | $as_echo "no" >&6; } |
| 30003 | have_lqr=no |
| 30004 | elif test $pkg_failed = untried; then |
| 30005 | have_lqr=no |
| 30006 | else |
| 30007 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 30008 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| 30009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30010 | $as_echo "yes" >&6; } |
| 30011 | have_lqr=yes |
| 30012 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30013 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 30014 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30015 | fi |
| 30016 | |
| 30017 | if test "$have_lqr" = 'yes'; then |
| 30018 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30019 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30020 | |
| 30021 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 30022 | fi |
| 30023 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30024 | if test "$have_lqr" = 'yes'; then |
| 30025 | LQR_DELEGATE_TRUE= |
| 30026 | LQR_DELEGATE_FALSE='#' |
| 30027 | else |
| 30028 | LQR_DELEGATE_TRUE='#' |
| 30029 | LQR_DELEGATE_FALSE= |
| 30030 | fi |
| 30031 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30032 | |
| 30033 | |
| 30034 | |
| 30035 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30036 | # Disable LZMA (lzma library) |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30037 | |
| 30038 | # Check whether --with-lzma was given. |
| 30039 | if test "${with_lzma+set}" = set; then : |
| 30040 | withval=$with_lzma; with_lzma=$withval |
| 30041 | else |
| 30042 | with_lzma='yes' |
| 30043 | fi |
| 30044 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30045 | if test "$with_lzma" != 'yes' ; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30046 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " |
| 30047 | fi |
| 30048 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30049 | # |
| 30050 | # Check for LZMA |
| 30051 | # |
| 30052 | have_lzma='no' |
| 30053 | LZMA_LIBS='' |
| 30054 | if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30055 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 30056 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30058 | $as_echo_n "checking for LZMA... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30059 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 30060 | $as_echo "$as_me: " >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30061 | failed=0 |
| 30062 | passed=0 |
| 30063 | ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" |
| 30064 | if test "x$ac_cv_header_lzma_h" = xyes; then : |
| 30065 | passed=`expr $passed + 1` |
| 30066 | else |
| 30067 | failed=`expr $failed + 1` |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30068 | fi |
| 30069 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30070 | |
| 30071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 |
| 30072 | $as_echo_n "checking for lzma_code in -llzma... " >&6; } |
| 30073 | if ${ac_cv_lib_lzma_lzma_code+:} false; then : |
| 30074 | $as_echo_n "(cached) " >&6 |
| 30075 | else |
| 30076 | ac_check_lib_save_LIBS=$LIBS |
| 30077 | LIBS="-llzma $LIBS" |
| 30078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30079 | /* end confdefs.h. */ |
| 30080 | |
| 30081 | /* Override any GCC internal prototype to avoid an error. |
| 30082 | Use char because int might match the return type of a GCC |
| 30083 | builtin and then its argument prototype would still apply. */ |
| 30084 | #ifdef __cplusplus |
| 30085 | extern "C" |
| 30086 | #endif |
| 30087 | char lzma_code (); |
| 30088 | int |
| 30089 | main () |
| 30090 | { |
| 30091 | return lzma_code (); |
| 30092 | ; |
| 30093 | return 0; |
| 30094 | } |
| 30095 | _ACEOF |
| 30096 | if ac_fn_c_try_link "$LINENO"; then : |
| 30097 | ac_cv_lib_lzma_lzma_code=yes |
| 30098 | else |
| 30099 | ac_cv_lib_lzma_lzma_code=no |
| 30100 | fi |
| 30101 | rm -f core conftest.err conftest.$ac_objext \ |
| 30102 | conftest$ac_exeext conftest.$ac_ext |
| 30103 | LIBS=$ac_check_lib_save_LIBS |
| 30104 | fi |
| 30105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 |
| 30106 | $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } |
| 30107 | if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : |
| 30108 | passed=`expr $passed + 1` |
| 30109 | else |
| 30110 | failed=`expr $failed + 1` |
| 30111 | fi |
| 30112 | |
| 30113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5 |
| 30114 | $as_echo_n "checking if LZMA package is complete... " >&6; } |
| 30115 | if test $passed -gt 0; then |
| 30116 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30117 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 30118 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30119 | have_lzma='no (failed tests)' |
| 30120 | else |
| 30121 | LZMA_LIBS='-llzma' |
| 30122 | LIBS="$LZMA_LIBS $LIBS" |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30123 | |
| 30124 | $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h |
| 30125 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30126 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 30127 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30128 | have_lzma='yes' |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30129 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30130 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30131 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 30132 | $as_echo "$as_me: no" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30133 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30134 | fi |
| 30135 | if test "$have_lzma" = 'yes'; then |
| 30136 | LZMA_DELEGATE_TRUE= |
| 30137 | LZMA_DELEGATE_FALSE='#' |
| 30138 | else |
| 30139 | LZMA_DELEGATE_TRUE='#' |
| 30140 | LZMA_DELEGATE_FALSE= |
| 30141 | fi |
| 30142 | |
| 30143 | |
| 30144 | |
| 30145 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30146 | # |
| 30147 | # Check for the OpenEXR delegate library. |
| 30148 | # |
| 30149 | |
| 30150 | # Check whether --with-openexr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30151 | if test "${with_openexr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30152 | withval=$with_openexr; with_openexr=$withval |
| 30153 | else |
| 30154 | with_openexr='yes' |
| 30155 | fi |
| 30156 | |
| 30157 | |
| 30158 | if test "$with_openexr" != 'yes'; then |
| 30159 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 30160 | fi |
| 30161 | |
| 30162 | have_openexr='no' |
| 30163 | OPENEXR_CFLAGS="" |
| 30164 | OPENEXR_LIBS="" |
| 30165 | OPENEXR_PKG="" |
| 30166 | if test "x$with_openexr" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30167 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 30168 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30169 | |
| 30170 | pkg_failed=no |
| 30171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 |
| 30172 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 30173 | |
| 30174 | if test -n "$OPENEXR_CFLAGS"; then |
| 30175 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 30176 | elif test -n "$PKG_CONFIG"; then |
| 30177 | if test -n "$PKG_CONFIG" && \ |
| 30178 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30179 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30180 | ac_status=$? |
| 30181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30182 | test $ac_status = 0; }; then |
| 30183 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30184 | else |
| 30185 | pkg_failed=yes |
| 30186 | fi |
| 30187 | else |
| 30188 | pkg_failed=untried |
| 30189 | fi |
| 30190 | if test -n "$OPENEXR_LIBS"; then |
| 30191 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 30192 | elif test -n "$PKG_CONFIG"; then |
| 30193 | if test -n "$PKG_CONFIG" && \ |
| 30194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30195 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30196 | ac_status=$? |
| 30197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30198 | test $ac_status = 0; }; then |
| 30199 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30200 | else |
| 30201 | pkg_failed=yes |
| 30202 | fi |
| 30203 | else |
| 30204 | pkg_failed=untried |
| 30205 | fi |
| 30206 | |
| 30207 | |
| 30208 | |
| 30209 | if test $pkg_failed = yes; then |
| 30210 | |
| 30211 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30212 | _pkg_short_errors_supported=yes |
| 30213 | else |
| 30214 | _pkg_short_errors_supported=no |
| 30215 | fi |
| 30216 | if test $_pkg_short_errors_supported = yes; then |
| 30217 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30218 | else |
| 30219 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30220 | fi |
| 30221 | # Put the nasty error message in config.log where it belongs |
| 30222 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 30223 | |
| 30224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30225 | $as_echo "no" >&6; } |
| 30226 | have_openexr=no |
| 30227 | elif test $pkg_failed = untried; then |
| 30228 | have_openexr=no |
| 30229 | else |
| 30230 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 30231 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| 30232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30233 | $as_echo "yes" >&6; } |
| 30234 | have_openexr=yes |
| 30235 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30236 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 30237 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30238 | fi |
| 30239 | |
| 30240 | if test "$have_openexr" = 'yes'; then |
| 30241 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30242 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30243 | |
| 30244 | if test "$with_modules" = 'no'; then |
| 30245 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 30246 | fi |
| 30247 | fi |
| 30248 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30249 | if test "$have_openexr" = 'yes'; then |
| 30250 | OPENEXR_DELEGATE_TRUE= |
| 30251 | OPENEXR_DELEGATE_FALSE='#' |
| 30252 | else |
| 30253 | OPENEXR_DELEGATE_TRUE='#' |
| 30254 | OPENEXR_DELEGATE_FALSE= |
| 30255 | fi |
| 30256 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30257 | |
| 30258 | |
| 30259 | |
| 30260 | |
| 30261 | # |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30262 | # Check for PANGO delegate library. |
| 30263 | # |
| 30264 | |
| 30265 | # Check whether --with-pango was given. |
| 30266 | if test "${with_pango+set}" = set; then : |
| 30267 | withval=$with_pango; with_pango=$withval |
| 30268 | else |
| 30269 | with_pango=$have_x |
| 30270 | fi |
| 30271 | |
| 30272 | |
| 30273 | if test "$with_pango" != 'yes'; then |
| 30274 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " |
| 30275 | fi |
| 30276 | |
| 30277 | have_pango='no' |
| 30278 | have_pangoft2='no' |
| 30279 | PANGO_CFLAGS="" |
| 30280 | PANGO_LIBS="" |
| 30281 | PANGO_PKG="" |
| 30282 | if test "x$with_pango" = "xyes"; then |
| 30283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30284 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO support " >&5 |
| 30286 | $as_echo_n "checking for PANGO support ... " >&6; } |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30287 | |
| 30288 | pkg_failed=no |
| 30289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 |
| 30290 | $as_echo_n "checking for PANGO... " >&6; } |
| 30291 | |
| 30292 | if test -n "$PANGO_CFLAGS"; then |
| 30293 | pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" |
| 30294 | elif test -n "$PKG_CONFIG"; then |
| 30295 | if test -n "$PKG_CONFIG" && \ |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30296 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.15.1\""; } >&5 |
| 30297 | ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.15.1") 2>&5 |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30298 | ac_status=$? |
| 30299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30300 | test $ac_status = 0; }; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30301 | pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.15.1" 2>/dev/null` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30302 | else |
| 30303 | pkg_failed=yes |
| 30304 | fi |
| 30305 | else |
| 30306 | pkg_failed=untried |
| 30307 | fi |
| 30308 | if test -n "$PANGO_LIBS"; then |
| 30309 | pkg_cv_PANGO_LIBS="$PANGO_LIBS" |
| 30310 | elif test -n "$PKG_CONFIG"; then |
| 30311 | if test -n "$PKG_CONFIG" && \ |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.15.1\""; } >&5 |
| 30313 | ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.15.1") 2>&5 |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30314 | ac_status=$? |
| 30315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30316 | test $ac_status = 0; }; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30317 | pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.15.1" 2>/dev/null` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30318 | else |
| 30319 | pkg_failed=yes |
| 30320 | fi |
| 30321 | else |
| 30322 | pkg_failed=untried |
| 30323 | fi |
| 30324 | |
| 30325 | |
| 30326 | |
| 30327 | if test $pkg_failed = yes; then |
| 30328 | |
| 30329 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30330 | _pkg_short_errors_supported=yes |
| 30331 | else |
| 30332 | _pkg_short_errors_supported=no |
| 30333 | fi |
| 30334 | if test $_pkg_short_errors_supported = yes; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30335 | PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.15.1" 2>&1` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30336 | else |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30337 | PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.15.1" 2>&1` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30338 | fi |
| 30339 | # Put the nasty error message in config.log where it belongs |
| 30340 | echo "$PANGO_PKG_ERRORS" >&5 |
| 30341 | |
| 30342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30343 | $as_echo "no" >&6; } |
| 30344 | have_pangoft2=no |
| 30345 | elif test $pkg_failed = untried; then |
| 30346 | have_pangoft2=no |
| 30347 | else |
| 30348 | PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS |
| 30349 | PANGO_LIBS=$pkg_cv_PANGO_LIBS |
| 30350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30351 | $as_echo "yes" >&6; } |
| 30352 | have_pangoft2=yes |
| 30353 | fi |
| 30354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30355 | $as_echo "" >&6; } |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30356 | |
| 30357 | pkg_failed=no |
| 30358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 |
| 30359 | $as_echo_n "checking for PANGO... " >&6; } |
| 30360 | |
| 30361 | if test -n "$PANGO_CFLAGS"; then |
| 30362 | pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" |
| 30363 | elif test -n "$PKG_CONFIG"; then |
| 30364 | if test -n "$PKG_CONFIG" && \ |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30365 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.15.1\""; } >&5 |
| 30366 | ($PKG_CONFIG --exists --print-errors "pango >= 1.15.1") 2>&5 |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30367 | ac_status=$? |
| 30368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30369 | test $ac_status = 0; }; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30370 | pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.15.1" 2>/dev/null` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30371 | else |
| 30372 | pkg_failed=yes |
| 30373 | fi |
| 30374 | else |
| 30375 | pkg_failed=untried |
| 30376 | fi |
| 30377 | if test -n "$PANGO_LIBS"; then |
| 30378 | pkg_cv_PANGO_LIBS="$PANGO_LIBS" |
| 30379 | elif test -n "$PKG_CONFIG"; then |
| 30380 | if test -n "$PKG_CONFIG" && \ |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.15.1\""; } >&5 |
| 30382 | ($PKG_CONFIG --exists --print-errors "pango >= 1.15.1") 2>&5 |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30383 | ac_status=$? |
| 30384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30385 | test $ac_status = 0; }; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30386 | pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.15.1" 2>/dev/null` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30387 | else |
| 30388 | pkg_failed=yes |
| 30389 | fi |
| 30390 | else |
| 30391 | pkg_failed=untried |
| 30392 | fi |
| 30393 | |
| 30394 | |
| 30395 | |
| 30396 | if test $pkg_failed = yes; then |
| 30397 | |
| 30398 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30399 | _pkg_short_errors_supported=yes |
| 30400 | else |
| 30401 | _pkg_short_errors_supported=no |
| 30402 | fi |
| 30403 | if test $_pkg_short_errors_supported = yes; then |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30404 | PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.15.1" 2>&1` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30405 | else |
| cristy | 1a7003f | 2011-10-30 23:16:01 +0000 | [diff] [blame] | 30406 | PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.15.1" 2>&1` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30407 | fi |
| 30408 | # Put the nasty error message in config.log where it belongs |
| 30409 | echo "$PANGO_PKG_ERRORS" >&5 |
| 30410 | |
| 30411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30412 | $as_echo "no" >&6; } |
| 30413 | have_pango=no |
| 30414 | elif test $pkg_failed = untried; then |
| 30415 | have_pango=no |
| 30416 | else |
| 30417 | PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS |
| 30418 | PANGO_LIBS=$pkg_cv_PANGO_LIBS |
| 30419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30420 | $as_echo "yes" >&6; } |
| 30421 | have_pango=yes |
| 30422 | fi |
| 30423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30424 | $as_echo "" >&6; } |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30425 | fi |
| 30426 | |
| 30427 | if test "$have_pango" = 'yes'; then |
| 30428 | |
| 30429 | $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h |
| 30430 | |
| 30431 | if test "$with_modules" = 'no'; then |
| 30432 | CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" |
| 30433 | fi |
| 30434 | fi |
| 30435 | |
| 30436 | if test "$have_pangoft2" = 'yes'; then |
| 30437 | |
| 30438 | $as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h |
| 30439 | |
| 30440 | if test "$with_modules" = 'no'; then |
| 30441 | CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS" |
| 30442 | fi |
| 30443 | fi |
| 30444 | |
| 30445 | if test "$have_pango" = 'yes'; then |
| 30446 | PANGO_DELEGATE_TRUE= |
| 30447 | PANGO_DELEGATE_FALSE='#' |
| 30448 | else |
| 30449 | PANGO_DELEGATE_TRUE='#' |
| 30450 | PANGO_DELEGATE_FALSE= |
| 30451 | fi |
| 30452 | |
| 30453 | if test "$have_pangoft2" = 'yes'; then |
| 30454 | PANGOFT2_DELEGATE_TRUE= |
| 30455 | PANGOFT2_DELEGATE_FALSE='#' |
| 30456 | else |
| 30457 | PANGOFT2_DELEGATE_TRUE='#' |
| 30458 | PANGOFT2_DELEGATE_FALSE= |
| 30459 | fi |
| 30460 | |
| 30461 | |
| 30462 | |
| 30463 | |
| 30464 | |
| 30465 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30466 | # Check for PNG delegate library. |
| 30467 | # |
| 30468 | |
| 30469 | # Check whether --with-png was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30470 | if test "${with_png+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30471 | withval=$with_png; with_png=$withval |
| 30472 | else |
| 30473 | with_png='yes' |
| 30474 | fi |
| 30475 | |
| 30476 | |
| 30477 | if test "$with_png" != 'yes'; then |
| 30478 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 30479 | fi |
| 30480 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30481 | have_png='no' |
| 30482 | PNG_LIBS='' |
| 30483 | |
| 30484 | if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30485 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 30486 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 |
| 30488 | $as_echo_n "checking for PNG support ... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30489 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 30490 | $as_echo "$as_me: " >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30491 | failed=0 |
| 30492 | passed=0 |
| 30493 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 30494 | if test "x$ac_cv_header_png_h" = xyes; then : |
| 30495 | passed=`expr $passed + 1` |
| 30496 | else |
| 30497 | failed=`expr $failed + 1` |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30498 | fi |
| 30499 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30500 | |
| 30501 | |
| 30502 | if test $passed -gt 0; then |
| 30503 | for var in 5 4 2 '' ; do |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30504 | if test "$have_png" = 'no' ; then |
| 30505 | if test "x${var}" = 'x' ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30506 | pnglib='png' |
| 30507 | else |
| 30508 | pnglib="png1${var}" |
| 30509 | fi |
| 30510 | |
| 30511 | # Test for compatible LIBPNG library |
| 30512 | failed=0 |
| 30513 | passed=0 |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30514 | if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30515 | if test "${pnglib}" != 'png' ; then |
| 30516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 |
| 30517 | $as_echo_n "checking for LIBPNG1${var} support ... " >&6; } |
| 30518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30519 | /* end confdefs.h. */ |
| 30520 | #include <stdio.h> |
| 30521 | #include <stdlib.h> |
| 30522 | #include <png.h> |
| 30523 | |
| 30524 | int |
| 30525 | main () |
| 30526 | { |
| 30527 | |
| 30528 | #if PNG_LIBPNG_VER_MINOR != ${var} |
| 30529 | #error LIBPNG library must be version 1${var}! |
| 30530 | Kaboom, Kaboom |
| 30531 | #endif |
| 30532 | return 0; |
| 30533 | |
| 30534 | ; |
| 30535 | return 0; |
| 30536 | } |
| 30537 | _ACEOF |
| 30538 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30539 | ac_cv_libpng_ok='yes' |
| 30540 | else |
| 30541 | ac_cv_libpng_ok='no' |
| 30542 | fi |
| 30543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30544 | if test "$ac_cv_libpng_ok" = 'yes' ; then |
| 30545 | passed=`expr $passed + 1` |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30546 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 30547 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30548 | else |
| 30549 | failed=`expr $failed + 1` |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30550 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 30551 | $as_echo "$as_me: no" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30552 | fi |
| 30553 | else |
| 30554 | passed=`expr $passed + 1` |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30555 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 30556 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30557 | fi |
| 30558 | fi |
| 30559 | |
| 30560 | if test $passed -gt 0 -a $failed -le 0; then |
| 30561 | if test "1${var}" = '15' ; then |
| 30562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 |
| 30563 | $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } |
| 30564 | if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : |
| 30565 | $as_echo_n "(cached) " >&6 |
| 30566 | else |
| 30567 | ac_check_lib_save_LIBS=$LIBS |
| 30568 | LIBS="-lpng15 $LIBS" |
| 30569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30570 | /* end confdefs.h. */ |
| 30571 | |
| 30572 | /* Override any GCC internal prototype to avoid an error. |
| 30573 | Use char because int might match the return type of a GCC |
| 30574 | builtin and then its argument prototype would still apply. */ |
| 30575 | #ifdef __cplusplus |
| 30576 | extern "C" |
| 30577 | #endif |
| 30578 | char png_get_io_ptr (); |
| 30579 | int |
| 30580 | main () |
| 30581 | { |
| 30582 | return png_get_io_ptr (); |
| 30583 | ; |
| 30584 | return 0; |
| 30585 | } |
| 30586 | _ACEOF |
| 30587 | if ac_fn_c_try_link "$LINENO"; then : |
| 30588 | ac_cv_lib_png15_png_get_io_ptr=yes |
| 30589 | else |
| 30590 | ac_cv_lib_png15_png_get_io_ptr=no |
| 30591 | fi |
| 30592 | rm -f core conftest.err conftest.$ac_objext \ |
| 30593 | conftest$ac_exeext conftest.$ac_ext |
| 30594 | LIBS=$ac_check_lib_save_LIBS |
| 30595 | fi |
| 30596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 |
| 30597 | $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } |
| 30598 | if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : |
| 30599 | passed=`expr $passed + 1` |
| 30600 | else |
| 30601 | failed=`expr $failed + 1` |
| 30602 | fi |
| 30603 | |
| 30604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 |
| 30605 | $as_echo_n "checking for png_longjmp in -lpng15... " >&6; } |
| 30606 | if ${ac_cv_lib_png15_png_longjmp+:} false; then : |
| 30607 | $as_echo_n "(cached) " >&6 |
| 30608 | else |
| 30609 | ac_check_lib_save_LIBS=$LIBS |
| 30610 | LIBS="-lpng15 $LIBS" |
| 30611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30612 | /* end confdefs.h. */ |
| 30613 | |
| 30614 | /* Override any GCC internal prototype to avoid an error. |
| 30615 | Use char because int might match the return type of a GCC |
| 30616 | builtin and then its argument prototype would still apply. */ |
| 30617 | #ifdef __cplusplus |
| 30618 | extern "C" |
| 30619 | #endif |
| 30620 | char png_longjmp (); |
| 30621 | int |
| 30622 | main () |
| 30623 | { |
| 30624 | return png_longjmp (); |
| 30625 | ; |
| 30626 | return 0; |
| 30627 | } |
| 30628 | _ACEOF |
| 30629 | if ac_fn_c_try_link "$LINENO"; then : |
| 30630 | ac_cv_lib_png15_png_longjmp=yes |
| 30631 | else |
| 30632 | ac_cv_lib_png15_png_longjmp=no |
| 30633 | fi |
| 30634 | rm -f core conftest.err conftest.$ac_objext \ |
| 30635 | conftest$ac_exeext conftest.$ac_ext |
| 30636 | LIBS=$ac_check_lib_save_LIBS |
| 30637 | fi |
| 30638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 |
| 30639 | $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } |
| 30640 | if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : |
| 30641 | passed=`expr $passed + 1` |
| 30642 | else |
| 30643 | failed=`expr $failed + 1` |
| 30644 | fi |
| 30645 | |
| 30646 | fi |
| 30647 | if test "1${var}" = '14' ; then |
| 30648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 |
| 30649 | $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } |
| 30650 | if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : |
| 30651 | $as_echo_n "(cached) " >&6 |
| 30652 | else |
| 30653 | ac_check_lib_save_LIBS=$LIBS |
| 30654 | LIBS="-lpng14 $LIBS" |
| 30655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30656 | /* end confdefs.h. */ |
| 30657 | |
| 30658 | /* Override any GCC internal prototype to avoid an error. |
| 30659 | Use char because int might match the return type of a GCC |
| 30660 | builtin and then its argument prototype would still apply. */ |
| 30661 | #ifdef __cplusplus |
| 30662 | extern "C" |
| 30663 | #endif |
| 30664 | char png_get_io_ptr (); |
| 30665 | int |
| 30666 | main () |
| 30667 | { |
| 30668 | return png_get_io_ptr (); |
| 30669 | ; |
| 30670 | return 0; |
| 30671 | } |
| 30672 | _ACEOF |
| 30673 | if ac_fn_c_try_link "$LINENO"; then : |
| 30674 | ac_cv_lib_png14_png_get_io_ptr=yes |
| 30675 | else |
| 30676 | ac_cv_lib_png14_png_get_io_ptr=no |
| 30677 | fi |
| 30678 | rm -f core conftest.err conftest.$ac_objext \ |
| 30679 | conftest$ac_exeext conftest.$ac_ext |
| 30680 | LIBS=$ac_check_lib_save_LIBS |
| 30681 | fi |
| 30682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 |
| 30683 | $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } |
| 30684 | if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : |
| 30685 | passed=`expr $passed + 1` |
| 30686 | else |
| 30687 | failed=`expr $failed + 1` |
| 30688 | fi |
| 30689 | |
| 30690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 |
| 30691 | $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } |
| 30692 | if ${ac_cv_lib_png14_png_get_io_state+:} false; then : |
| 30693 | $as_echo_n "(cached) " >&6 |
| 30694 | else |
| 30695 | ac_check_lib_save_LIBS=$LIBS |
| 30696 | LIBS="-lpng14 $LIBS" |
| 30697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30698 | /* end confdefs.h. */ |
| 30699 | |
| 30700 | /* Override any GCC internal prototype to avoid an error. |
| 30701 | Use char because int might match the return type of a GCC |
| 30702 | builtin and then its argument prototype would still apply. */ |
| 30703 | #ifdef __cplusplus |
| 30704 | extern "C" |
| 30705 | #endif |
| 30706 | char png_get_io_state (); |
| 30707 | int |
| 30708 | main () |
| 30709 | { |
| 30710 | return png_get_io_state (); |
| 30711 | ; |
| 30712 | return 0; |
| 30713 | } |
| 30714 | _ACEOF |
| 30715 | if ac_fn_c_try_link "$LINENO"; then : |
| 30716 | ac_cv_lib_png14_png_get_io_state=yes |
| 30717 | else |
| 30718 | ac_cv_lib_png14_png_get_io_state=no |
| 30719 | fi |
| 30720 | rm -f core conftest.err conftest.$ac_objext \ |
| 30721 | conftest$ac_exeext conftest.$ac_ext |
| 30722 | LIBS=$ac_check_lib_save_LIBS |
| 30723 | fi |
| 30724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 |
| 30725 | $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } |
| 30726 | if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : |
| 30727 | passed=`expr $passed + 1` |
| 30728 | else |
| 30729 | failed=`expr $failed + 1` |
| 30730 | fi |
| 30731 | |
| 30732 | fi |
| 30733 | if test "1${var}" = '12' ; then |
| 30734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 |
| 30735 | $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } |
| 30736 | if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : |
| 30737 | $as_echo_n "(cached) " >&6 |
| 30738 | else |
| 30739 | ac_check_lib_save_LIBS=$LIBS |
| 30740 | LIBS="-lpng12 $LIBS" |
| 30741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30742 | /* end confdefs.h. */ |
| 30743 | |
| 30744 | /* Override any GCC internal prototype to avoid an error. |
| 30745 | Use char because int might match the return type of a GCC |
| 30746 | builtin and then its argument prototype would still apply. */ |
| 30747 | #ifdef __cplusplus |
| 30748 | extern "C" |
| 30749 | #endif |
| 30750 | char png_get_io_ptr (); |
| 30751 | int |
| 30752 | main () |
| 30753 | { |
| 30754 | return png_get_io_ptr (); |
| 30755 | ; |
| 30756 | return 0; |
| 30757 | } |
| 30758 | _ACEOF |
| 30759 | if ac_fn_c_try_link "$LINENO"; then : |
| 30760 | ac_cv_lib_png12_png_get_io_ptr=yes |
| 30761 | else |
| 30762 | ac_cv_lib_png12_png_get_io_ptr=no |
| 30763 | fi |
| 30764 | rm -f core conftest.err conftest.$ac_objext \ |
| 30765 | conftest$ac_exeext conftest.$ac_ext |
| 30766 | LIBS=$ac_check_lib_save_LIBS |
| 30767 | fi |
| 30768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 |
| 30769 | $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } |
| 30770 | if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : |
| 30771 | passed=`expr $passed + 1` |
| 30772 | else |
| 30773 | failed=`expr $failed + 1` |
| 30774 | fi |
| 30775 | |
| 30776 | fi |
| 30777 | if test "1${var}" = '1' ; then |
| 30778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 |
| 30779 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| 30780 | if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : |
| 30781 | $as_echo_n "(cached) " >&6 |
| 30782 | else |
| 30783 | ac_check_lib_save_LIBS=$LIBS |
| 30784 | LIBS="-lpng $LIBS" |
| 30785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30786 | /* end confdefs.h. */ |
| 30787 | |
| 30788 | /* Override any GCC internal prototype to avoid an error. |
| 30789 | Use char because int might match the return type of a GCC |
| 30790 | builtin and then its argument prototype would still apply. */ |
| 30791 | #ifdef __cplusplus |
| 30792 | extern "C" |
| 30793 | #endif |
| 30794 | char png_get_io_ptr (); |
| 30795 | int |
| 30796 | main () |
| 30797 | { |
| 30798 | return png_get_io_ptr (); |
| 30799 | ; |
| 30800 | return 0; |
| 30801 | } |
| 30802 | _ACEOF |
| 30803 | if ac_fn_c_try_link "$LINENO"; then : |
| 30804 | ac_cv_lib_png_png_get_io_ptr=yes |
| 30805 | else |
| 30806 | ac_cv_lib_png_png_get_io_ptr=no |
| 30807 | fi |
| 30808 | rm -f core conftest.err conftest.$ac_objext \ |
| 30809 | conftest$ac_exeext conftest.$ac_ext |
| 30810 | LIBS=$ac_check_lib_save_LIBS |
| 30811 | fi |
| 30812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
| 30813 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| 30814 | if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : |
| 30815 | passed=`expr $passed + 1` |
| 30816 | else |
| 30817 | failed=`expr $failed + 1` |
| 30818 | fi |
| 30819 | |
| 30820 | fi |
| 30821 | if test $passed -gt 0 -a $failed -le 0 ; then |
| 30822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 |
| 30823 | $as_echo_n "checking if ${pnglib} package is complete... " >&6; } |
| 30824 | if test $passed -gt 0 ; then |
| 30825 | if test $failed -gt 0 ; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30826 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 30827 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30828 | have_png='no (failed tests)' |
| 30829 | else |
| 30830 | PNG_LIBS="-l${pnglib}" |
| 30831 | LIBS="$PNG_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30832 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30833 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30834 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30835 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 30836 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30837 | have_png='yes' |
| 30838 | fi |
| 30839 | fi |
| 30840 | fi |
| 30841 | fi |
| 30842 | fi |
| 30843 | done |
| 30844 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30845 | fi |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30846 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30847 | if test "$have_png" = 'yes'; then |
| 30848 | PNG_DELEGATE_TRUE= |
| 30849 | PNG_DELEGATE_FALSE='#' |
| 30850 | else |
| 30851 | PNG_DELEGATE_TRUE='#' |
| 30852 | PNG_DELEGATE_FALSE= |
| 30853 | fi |
| 30854 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30855 | |
| cristy | 50d3f5c | 2011-09-10 20:09:06 +0000 | [diff] [blame] | 30856 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30857 | |
| 30858 | |
| 30859 | # |
| 30860 | # Check for RSVG delegate library. |
| 30861 | # |
| 30862 | |
| 30863 | # Check whether --with-rsvg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30864 | if test "${with_rsvg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30865 | withval=$with_rsvg; with_rsvg=$withval |
| 30866 | else |
| 30867 | with_rsvg=$have_x |
| 30868 | fi |
| 30869 | |
| 30870 | |
| 30871 | if test "$with_rsvg" != 'yes'; then |
| 30872 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 30873 | fi |
| 30874 | |
| 30875 | have_rsvg='no' |
| 30876 | have_cairo='no' |
| 30877 | RSVG_CFLAGS="" |
| 30878 | RSVG_LIBS="" |
| 30879 | RSVG_PKG="" |
| 30880 | if test "x$with_rsvg" = "xyes"; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30881 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 30882 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30883 | |
| 30884 | pkg_failed=no |
| 30885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 |
| 30886 | $as_echo_n "checking for RSVG... " >&6; } |
| 30887 | |
| 30888 | if test -n "$RSVG_CFLAGS"; then |
| 30889 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 30890 | elif test -n "$PKG_CONFIG"; then |
| 30891 | if test -n "$PKG_CONFIG" && \ |
| 30892 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 30893 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 30894 | ac_status=$? |
| 30895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30896 | test $ac_status = 0; }; then |
| 30897 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 30898 | else |
| 30899 | pkg_failed=yes |
| 30900 | fi |
| 30901 | else |
| 30902 | pkg_failed=untried |
| 30903 | fi |
| 30904 | if test -n "$RSVG_LIBS"; then |
| 30905 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 30906 | elif test -n "$PKG_CONFIG"; then |
| 30907 | if test -n "$PKG_CONFIG" && \ |
| 30908 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 30909 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 30910 | ac_status=$? |
| 30911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30912 | test $ac_status = 0; }; then |
| 30913 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 30914 | else |
| 30915 | pkg_failed=yes |
| 30916 | fi |
| 30917 | else |
| 30918 | pkg_failed=untried |
| 30919 | fi |
| 30920 | |
| 30921 | |
| 30922 | |
| 30923 | if test $pkg_failed = yes; then |
| 30924 | |
| 30925 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30926 | _pkg_short_errors_supported=yes |
| 30927 | else |
| 30928 | _pkg_short_errors_supported=no |
| 30929 | fi |
| 30930 | if test $_pkg_short_errors_supported = yes; then |
| 30931 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 30932 | else |
| 30933 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 30934 | fi |
| 30935 | # Put the nasty error message in config.log where it belongs |
| 30936 | echo "$RSVG_PKG_ERRORS" >&5 |
| 30937 | |
| 30938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30939 | $as_echo "no" >&6; } |
| 30940 | have_rsvg=no |
| 30941 | elif test $pkg_failed = untried; then |
| 30942 | have_rsvg=no |
| 30943 | else |
| 30944 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 30945 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| 30946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30947 | $as_echo "yes" >&6; } |
| 30948 | have_rsvg=yes |
| 30949 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30950 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 30951 | $as_echo "$as_me: " >&6;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30952 | |
| 30953 | pkg_failed=no |
| 30954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 |
| 30955 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 30956 | |
| 30957 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 30958 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 30959 | elif test -n "$PKG_CONFIG"; then |
| 30960 | if test -n "$PKG_CONFIG" && \ |
| 30961 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 30962 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 30963 | ac_status=$? |
| 30964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30965 | test $ac_status = 0; }; then |
| 30966 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 30967 | else |
| 30968 | pkg_failed=yes |
| 30969 | fi |
| 30970 | else |
| 30971 | pkg_failed=untried |
| 30972 | fi |
| 30973 | if test -n "$CAIRO_SVG_LIBS"; then |
| 30974 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 30975 | elif test -n "$PKG_CONFIG"; then |
| 30976 | if test -n "$PKG_CONFIG" && \ |
| 30977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 30978 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 30979 | ac_status=$? |
| 30980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30981 | test $ac_status = 0; }; then |
| 30982 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 30983 | else |
| 30984 | pkg_failed=yes |
| 30985 | fi |
| 30986 | else |
| 30987 | pkg_failed=untried |
| 30988 | fi |
| 30989 | |
| 30990 | |
| 30991 | |
| 30992 | if test $pkg_failed = yes; then |
| 30993 | |
| 30994 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30995 | _pkg_short_errors_supported=yes |
| 30996 | else |
| 30997 | _pkg_short_errors_supported=no |
| 30998 | fi |
| 30999 | if test $_pkg_short_errors_supported = yes; then |
| 31000 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 31001 | else |
| 31002 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 31003 | fi |
| 31004 | # Put the nasty error message in config.log where it belongs |
| 31005 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 31006 | |
| 31007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31008 | $as_echo "no" >&6; } |
| 31009 | have_cairo=no |
| 31010 | elif test $pkg_failed = untried; then |
| 31011 | have_cairo=no |
| 31012 | else |
| 31013 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 31014 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| 31015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31016 | $as_echo "yes" >&6; } |
| 31017 | have_cairo=yes |
| 31018 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31019 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 31020 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31021 | fi |
| 31022 | |
| 31023 | if test "$have_rsvg" = 'yes'; then |
| 31024 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31025 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31026 | |
| 31027 | if test "$with_modules" = 'no'; then |
| 31028 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 31029 | fi |
| 31030 | fi |
| 31031 | |
| 31032 | if test "$have_cairo" = 'yes'; then |
| 31033 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31034 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31035 | |
| 31036 | if test "$with_modules" = 'no'; then |
| 31037 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 31038 | fi |
| 31039 | fi |
| 31040 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31041 | if test "$have_rsvg" = 'yes'; then |
| 31042 | RSVG_DELEGATE_TRUE= |
| 31043 | RSVG_DELEGATE_FALSE='#' |
| 31044 | else |
| 31045 | RSVG_DELEGATE_TRUE='#' |
| 31046 | RSVG_DELEGATE_FALSE= |
| 31047 | fi |
| 31048 | |
| 31049 | if test "$have_cairo" = 'yes'; then |
| 31050 | CAIRO_DELEGATE_TRUE= |
| 31051 | CAIRO_DELEGATE_FALSE='#' |
| 31052 | else |
| 31053 | CAIRO_DELEGATE_TRUE='#' |
| 31054 | CAIRO_DELEGATE_FALSE= |
| 31055 | fi |
| 31056 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31057 | |
| 31058 | |
| 31059 | |
| 31060 | |
| 31061 | # |
| 31062 | # Check for TIFF delegate library. |
| 31063 | # |
| 31064 | |
| 31065 | # Check whether --with-tiff was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31066 | if test "${with_tiff+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31067 | withval=$with_tiff; with_tiff=$withval |
| 31068 | else |
| 31069 | with_tiff='yes' |
| 31070 | fi |
| 31071 | |
| 31072 | |
| 31073 | if test "$with_tiff" != 'yes'; then |
| 31074 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 31075 | fi |
| 31076 | |
| 31077 | have_tiff='no' |
| 31078 | TIFF_LIBS='' |
| 31079 | if test "$with_tiff" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31080 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 31081 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31083 | $as_echo_n "checking for TIFF... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31084 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 31085 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31086 | failed=0 |
| 31087 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31088 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31089 | if test "x$ac_cv_header_tiff_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31090 | passed=`expr $passed + 1` |
| 31091 | else |
| 31092 | failed=`expr $failed + 1` |
| 31093 | fi |
| 31094 | |
| 31095 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31096 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31097 | if test "x$ac_cv_header_tiffio_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31098 | passed=`expr $passed + 1` |
| 31099 | else |
| 31100 | failed=`expr $failed + 1` |
| 31101 | fi |
| 31102 | |
| 31103 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31105 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31106 | if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31107 | $as_echo_n "(cached) " >&6 |
| 31108 | else |
| 31109 | ac_check_lib_save_LIBS=$LIBS |
| 31110 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31112 | /* end confdefs.h. */ |
| 31113 | |
| 31114 | /* Override any GCC internal prototype to avoid an error. |
| 31115 | Use char because int might match the return type of a GCC |
| 31116 | builtin and then its argument prototype would still apply. */ |
| 31117 | #ifdef __cplusplus |
| 31118 | extern "C" |
| 31119 | #endif |
| 31120 | char TIFFOpen (); |
| 31121 | int |
| 31122 | main () |
| 31123 | { |
| 31124 | return TIFFOpen (); |
| 31125 | ; |
| 31126 | return 0; |
| 31127 | } |
| 31128 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31129 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31130 | ac_cv_lib_tiff_TIFFOpen=yes |
| 31131 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31132 | ac_cv_lib_tiff_TIFFOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31133 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31134 | rm -f core conftest.err conftest.$ac_objext \ |
| 31135 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31136 | LIBS=$ac_check_lib_save_LIBS |
| 31137 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31138 | { $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] | 31139 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31140 | if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31141 | passed=`expr $passed + 1` |
| 31142 | else |
| 31143 | failed=`expr $failed + 1` |
| 31144 | fi |
| 31145 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31147 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31148 | if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31149 | $as_echo_n "(cached) " >&6 |
| 31150 | else |
| 31151 | ac_check_lib_save_LIBS=$LIBS |
| 31152 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31154 | /* end confdefs.h. */ |
| 31155 | |
| 31156 | /* Override any GCC internal prototype to avoid an error. |
| 31157 | Use char because int might match the return type of a GCC |
| 31158 | builtin and then its argument prototype would still apply. */ |
| 31159 | #ifdef __cplusplus |
| 31160 | extern "C" |
| 31161 | #endif |
| 31162 | char TIFFClientOpen (); |
| 31163 | int |
| 31164 | main () |
| 31165 | { |
| 31166 | return TIFFClientOpen (); |
| 31167 | ; |
| 31168 | return 0; |
| 31169 | } |
| 31170 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31171 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31172 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 31173 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31174 | ac_cv_lib_tiff_TIFFClientOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31175 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31176 | rm -f core conftest.err conftest.$ac_objext \ |
| 31177 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31178 | LIBS=$ac_check_lib_save_LIBS |
| 31179 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31180 | { $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] | 31181 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31182 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31183 | passed=`expr $passed + 1` |
| 31184 | else |
| 31185 | failed=`expr $failed + 1` |
| 31186 | fi |
| 31187 | |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 31188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5 |
| 31189 | $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31190 | if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then : |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 31191 | $as_echo_n "(cached) " >&6 |
| 31192 | else |
| 31193 | ac_check_lib_save_LIBS=$LIBS |
| 31194 | LIBS="-ltiff $LIBS" |
| 31195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31196 | /* end confdefs.h. */ |
| 31197 | |
| 31198 | /* Override any GCC internal prototype to avoid an error. |
| 31199 | Use char because int might match the return type of a GCC |
| 31200 | builtin and then its argument prototype would still apply. */ |
| 31201 | #ifdef __cplusplus |
| 31202 | extern "C" |
| 31203 | #endif |
| 31204 | char TIFFIsBigEndian (); |
| 31205 | int |
| 31206 | main () |
| 31207 | { |
| 31208 | return TIFFIsBigEndian (); |
| 31209 | ; |
| 31210 | return 0; |
| 31211 | } |
| 31212 | _ACEOF |
| 31213 | if ac_fn_c_try_link "$LINENO"; then : |
| 31214 | ac_cv_lib_tiff_TIFFIsBigEndian=yes |
| 31215 | else |
| 31216 | ac_cv_lib_tiff_TIFFIsBigEndian=no |
| 31217 | fi |
| 31218 | rm -f core conftest.err conftest.$ac_objext \ |
| 31219 | conftest$ac_exeext conftest.$ac_ext |
| 31220 | LIBS=$ac_check_lib_save_LIBS |
| 31221 | fi |
| 31222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5 |
| 31223 | $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31224 | if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then : |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 31225 | passed=`expr $passed + 1` |
| 31226 | else |
| 31227 | failed=`expr $failed + 1` |
| 31228 | fi |
| 31229 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31231 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31232 | if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31233 | $as_echo_n "(cached) " >&6 |
| 31234 | else |
| 31235 | ac_check_lib_save_LIBS=$LIBS |
| 31236 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31238 | /* end confdefs.h. */ |
| 31239 | |
| 31240 | /* Override any GCC internal prototype to avoid an error. |
| 31241 | Use char because int might match the return type of a GCC |
| 31242 | builtin and then its argument prototype would still apply. */ |
| 31243 | #ifdef __cplusplus |
| 31244 | extern "C" |
| 31245 | #endif |
| 31246 | char TIFFIsByteSwapped (); |
| 31247 | int |
| 31248 | main () |
| 31249 | { |
| 31250 | return TIFFIsByteSwapped (); |
| 31251 | ; |
| 31252 | return 0; |
| 31253 | } |
| 31254 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31255 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31256 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 31257 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31258 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31259 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31260 | rm -f core conftest.err conftest.$ac_objext \ |
| 31261 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31262 | LIBS=$ac_check_lib_save_LIBS |
| 31263 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31264 | { $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] | 31265 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31266 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31267 | passed=`expr $passed + 1` |
| 31268 | else |
| 31269 | failed=`expr $failed + 1` |
| 31270 | fi |
| 31271 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31273 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31274 | if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31275 | $as_echo_n "(cached) " >&6 |
| 31276 | else |
| 31277 | ac_check_lib_save_LIBS=$LIBS |
| 31278 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31280 | /* end confdefs.h. */ |
| 31281 | |
| 31282 | /* Override any GCC internal prototype to avoid an error. |
| 31283 | Use char because int might match the return type of a GCC |
| 31284 | builtin and then its argument prototype would still apply. */ |
| 31285 | #ifdef __cplusplus |
| 31286 | extern "C" |
| 31287 | #endif |
| 31288 | char TIFFReadRGBATile (); |
| 31289 | int |
| 31290 | main () |
| 31291 | { |
| 31292 | return TIFFReadRGBATile (); |
| 31293 | ; |
| 31294 | return 0; |
| 31295 | } |
| 31296 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31297 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31298 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 31299 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31300 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31301 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31302 | rm -f core conftest.err conftest.$ac_objext \ |
| 31303 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31304 | LIBS=$ac_check_lib_save_LIBS |
| 31305 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31306 | { $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] | 31307 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31308 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31309 | passed=`expr $passed + 1` |
| 31310 | else |
| 31311 | failed=`expr $failed + 1` |
| 31312 | fi |
| 31313 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31315 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31316 | if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31317 | $as_echo_n "(cached) " >&6 |
| 31318 | else |
| 31319 | ac_check_lib_save_LIBS=$LIBS |
| 31320 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31322 | /* end confdefs.h. */ |
| 31323 | |
| 31324 | /* Override any GCC internal prototype to avoid an error. |
| 31325 | Use char because int might match the return type of a GCC |
| 31326 | builtin and then its argument prototype would still apply. */ |
| 31327 | #ifdef __cplusplus |
| 31328 | extern "C" |
| 31329 | #endif |
| 31330 | char TIFFReadRGBAStrip (); |
| 31331 | int |
| 31332 | main () |
| 31333 | { |
| 31334 | return TIFFReadRGBAStrip (); |
| 31335 | ; |
| 31336 | return 0; |
| 31337 | } |
| 31338 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31339 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31340 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 31341 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31342 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31343 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31344 | rm -f core conftest.err conftest.$ac_objext \ |
| 31345 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31346 | LIBS=$ac_check_lib_save_LIBS |
| 31347 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31348 | { $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] | 31349 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31350 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31351 | passed=`expr $passed + 1` |
| 31352 | else |
| 31353 | failed=`expr $failed + 1` |
| 31354 | fi |
| 31355 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31356 | { $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] | 31357 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 31358 | if test $passed -gt 0; then |
| 31359 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31360 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 31361 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31362 | have_tiff='no (failed tests)' |
| 31363 | else |
| 31364 | TIFF_LIBS='-ltiff' |
| 31365 | LIBS="$TIFF_LIBS $LIBS" |
| 31366 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31367 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31368 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31369 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 31370 | $as_echo "$as_me: yes" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31371 | have_tiff='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31372 | for ac_header in tiffconf.h |
| 31373 | do : |
| 31374 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31375 | if test "x$ac_cv_header_tiffconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31376 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31377 | #define HAVE_TIFFCONF_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31378 | _ACEOF |
| 31379 | |
| 31380 | fi |
| 31381 | |
| 31382 | done |
| 31383 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31384 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31385 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 31386 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31387 | do : |
| 31388 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31389 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 31390 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31391 | cat >>confdefs.h <<_ACEOF |
| 31392 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31393 | _ACEOF |
| 31394 | |
| 31395 | fi |
| 31396 | done |
| 31397 | |
| 31398 | fi |
| 31399 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31400 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 31401 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31402 | fi |
| 31403 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31404 | if test "$have_tiff" = 'yes'; then |
| 31405 | TIFF_DELEGATE_TRUE= |
| 31406 | TIFF_DELEGATE_FALSE='#' |
| 31407 | else |
| 31408 | TIFF_DELEGATE_TRUE='#' |
| 31409 | TIFF_DELEGATE_FALSE= |
| 31410 | fi |
| 31411 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31412 | |
| 31413 | |
| 31414 | |
| 31415 | # |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31416 | # Check for WEBP delegate library. |
| 31417 | # |
| 31418 | |
| 31419 | # Check whether --with-webp was given. |
| 31420 | if test "${with_webp+set}" = set; then : |
| 31421 | withval=$with_webp; with_webp=$withval |
| 31422 | else |
| 31423 | with_webp='yes' |
| 31424 | fi |
| 31425 | |
| 31426 | |
| 31427 | if test "$with_webp" != 'yes'; then |
| 31428 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " |
| 31429 | fi |
| 31430 | |
| 31431 | have_webp='no' |
| 31432 | WEBP_LIBS='' |
| 31433 | if test "$with_webp" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31434 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 31435 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 |
| 31437 | $as_echo_n "checking for WEBP... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31438 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 31439 | $as_echo "$as_me: " >&6;} |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31440 | failed=0 |
| 31441 | passed=0 |
| 31442 | ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" |
| 31443 | if test "x$ac_cv_header_webp_decode_h" = xyes; then : |
| 31444 | passed=`expr $passed + 1` |
| 31445 | else |
| 31446 | failed=`expr $failed + 1` |
| 31447 | fi |
| 31448 | |
| 31449 | |
| 31450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5 |
| 31451 | $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; } |
| 31452 | if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then : |
| 31453 | $as_echo_n "(cached) " >&6 |
| 31454 | else |
| 31455 | ac_check_lib_save_LIBS=$LIBS |
| 31456 | LIBS="-lwebp $LIBS" |
| 31457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31458 | /* end confdefs.h. */ |
| 31459 | |
| 31460 | /* Override any GCC internal prototype to avoid an error. |
| 31461 | Use char because int might match the return type of a GCC |
| 31462 | builtin and then its argument prototype would still apply. */ |
| 31463 | #ifdef __cplusplus |
| 31464 | extern "C" |
| 31465 | #endif |
| 31466 | char WebPDecodeRGB (); |
| 31467 | int |
| 31468 | main () |
| 31469 | { |
| 31470 | return WebPDecodeRGB (); |
| 31471 | ; |
| 31472 | return 0; |
| 31473 | } |
| 31474 | _ACEOF |
| 31475 | if ac_fn_c_try_link "$LINENO"; then : |
| 31476 | ac_cv_lib_webp_WebPDecodeRGB=yes |
| 31477 | else |
| 31478 | ac_cv_lib_webp_WebPDecodeRGB=no |
| 31479 | fi |
| 31480 | rm -f core conftest.err conftest.$ac_objext \ |
| 31481 | conftest$ac_exeext conftest.$ac_ext |
| 31482 | LIBS=$ac_check_lib_save_LIBS |
| 31483 | fi |
| 31484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5 |
| 31485 | $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; } |
| 31486 | if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then : |
| 31487 | passed=`expr $passed + 1` |
| 31488 | else |
| 31489 | failed=`expr $failed + 1` |
| 31490 | fi |
| 31491 | |
| 31492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 |
| 31493 | $as_echo_n "checking if WEBP package is complete... " >&6; } |
| 31494 | if test $passed -gt 0; then |
| 31495 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31496 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 31497 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31498 | have_webp='no (failed tests)' |
| 31499 | else |
| 31500 | WEBP_LIBS='-lwebp' |
| 31501 | LIBS="$WEBP_LIBS $LIBS" |
| 31502 | |
| 31503 | $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h |
| 31504 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31505 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 31506 | $as_echo "$as_me: yes" >&6;} |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31507 | have_webp='yes' |
| 31508 | fi |
| 31509 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31510 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 31511 | $as_echo "$as_me: no" >&6;} |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31512 | fi |
| 31513 | fi |
| 31514 | if test "$have_webp" = 'yes'; then |
| 31515 | WEBP_DELEGATE_TRUE= |
| 31516 | WEBP_DELEGATE_FALSE='#' |
| 31517 | else |
| 31518 | WEBP_DELEGATE_TRUE='#' |
| 31519 | WEBP_DELEGATE_FALSE= |
| 31520 | fi |
| 31521 | |
| 31522 | |
| 31523 | |
| 31524 | |
| 31525 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31526 | # Set Windows font directory. |
| 31527 | # |
| 31528 | |
| 31529 | # Check whether --with-windows-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31530 | if test "${with_windows_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31531 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 31532 | else |
| 31533 | with_windows_font_dir='' |
| 31534 | fi |
| 31535 | |
| 31536 | if test "$with_windows_font_dir" != '' ; then |
| 31537 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 31538 | fi |
| 31539 | |
| 31540 | |
| 31541 | # |
| 31542 | # Check for WMF delegate library. |
| 31543 | # |
| 31544 | |
| 31545 | # Check whether --with-wmf was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31546 | if test "${with_wmf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31547 | withval=$with_wmf; with_wmf=$withval |
| 31548 | else |
| cristy | 8d63d1d | 2010-01-06 20:38:37 +0000 | [diff] [blame] | 31549 | with_wmf='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31550 | fi |
| 31551 | |
| 31552 | |
| 31553 | if test "$with_wmf" != 'yes'; then |
| 31554 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 31555 | fi |
| 31556 | |
| 31557 | have_wmf='no' |
| 31558 | WMF_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31559 | if test "$with_wmf" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31560 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 31561 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31563 | $as_echo_n "checking for WMF... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31564 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 31565 | $as_echo "$as_me: " >&6;} |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31566 | failed=0 |
| 31567 | passed=0 |
| 31568 | ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default" |
| 31569 | if test "x$ac_cv_header_libwmf_eps_h" = xyes; then : |
| 31570 | passed=`expr $passed + 1` |
| 31571 | else |
| 31572 | failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31573 | fi |
| 31574 | |
| 31575 | |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5 |
| 31577 | $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; } |
| 31578 | if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31579 | $as_echo_n "(cached) " >&6 |
| 31580 | else |
| 31581 | ac_check_lib_save_LIBS=$LIBS |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31582 | LIBS="-lwmf "-lwmflite" $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31584 | /* end confdefs.h. */ |
| 31585 | |
| 31586 | /* Override any GCC internal prototype to avoid an error. |
| 31587 | Use char because int might match the return type of a GCC |
| 31588 | builtin and then its argument prototype would still apply. */ |
| 31589 | #ifdef __cplusplus |
| 31590 | extern "C" |
| 31591 | #endif |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31592 | char wmf_eps_function (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31593 | int |
| 31594 | main () |
| 31595 | { |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31596 | return wmf_eps_function (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31597 | ; |
| 31598 | return 0; |
| 31599 | } |
| 31600 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31601 | if ac_fn_c_try_link "$LINENO"; then : |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31602 | ac_cv_lib_wmf_wmf_eps_function=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31603 | else |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31604 | ac_cv_lib_wmf_wmf_eps_function=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31605 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31606 | rm -f core conftest.err conftest.$ac_objext \ |
| 31607 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31608 | LIBS=$ac_check_lib_save_LIBS |
| 31609 | fi |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5 |
| 31611 | $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; } |
| 31612 | if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then : |
| 31613 | passed=`expr $passed + 1` |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31614 | else |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31615 | failed=`expr $failed + 1` |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31616 | fi |
| 31617 | |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| 31619 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 31620 | if test $passed -gt 0; then |
| 31621 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31622 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 31623 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31624 | have_wmf='no (failed tests)' |
| 31625 | else |
| 31626 | WMF_LIBS='-lwmf -lwmflite' |
| 31627 | LIBS="$WMF_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31628 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31629 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31630 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31631 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 31632 | $as_echo "$as_me: yes" >&6;} |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31633 | have_wmf='yes' |
| 31634 | fi |
| 31635 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31636 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 31637 | $as_echo "$as_me: no" >&6;} |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31638 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31639 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31640 | if test "$have_wmf" = 'yes'; then |
| 31641 | WMF_DELEGATE_TRUE= |
| 31642 | WMF_DELEGATE_FALSE='#' |
| 31643 | else |
| 31644 | WMF_DELEGATE_TRUE='#' |
| 31645 | WMF_DELEGATE_FALSE= |
| 31646 | fi |
| 31647 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31648 | |
| 31649 | |
| 31650 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31651 | |
| 31652 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31653 | # |
| 31654 | # Check for XML delegate library. |
| 31655 | # |
| 31656 | |
| 31657 | # Check whether --with-xml was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31658 | if test "${with_xml+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31659 | withval=$with_xml; with_xml=$withval |
| 31660 | else |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31661 | with_xml=$have_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31662 | fi |
| 31663 | |
| 31664 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31665 | if test "$with_xml" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31666 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 31667 | fi |
| 31668 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31669 | have_xml='no' |
| 31670 | XML_LIBS='' |
| 31671 | if test "$with_xml" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31672 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 31673 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
| 31675 | $as_echo_n "checking for XML... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31676 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 31677 | $as_echo "$as_me: " >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31678 | PERSIST_LDFLAGS=$LDFLAGS |
| 31679 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 31680 | xml2_config='' |
| 31681 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 31682 | set dummy xml2-config; ac_word=$2 |
| 31683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 31684 | $as_echo_n "checking for $ac_word... " >&6; } |
| 31685 | if ${ac_cv_path_xml2_config+:} false; then : |
| 31686 | $as_echo_n "(cached) " >&6 |
| 31687 | else |
| 31688 | case $xml2_config in |
| 31689 | [\\/]* | ?:[\\/]*) |
| 31690 | ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. |
| 31691 | ;; |
| 31692 | *) |
| 31693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31694 | for as_dir in $PATH |
| 31695 | do |
| 31696 | IFS=$as_save_IFS |
| 31697 | test -z "$as_dir" && as_dir=. |
| 31698 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31700 | ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" |
| 31701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31702 | break 2 |
| 31703 | fi |
| 31704 | done |
| 31705 | done |
| 31706 | IFS=$as_save_IFS |
| 31707 | |
| 31708 | ;; |
| 31709 | esac |
| 31710 | fi |
| 31711 | xml2_config=$ac_cv_path_xml2_config |
| 31712 | if test -n "$xml2_config"; then |
| 31713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
| 31714 | $as_echo "$xml2_config" >&6; } |
| 31715 | else |
| 31716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31717 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31718 | fi |
| 31719 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31720 | if test -n "$xml2_config"; then |
| 31721 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 31722 | # the shared library installed under /usr/lib, whereas the package |
| 31723 | # installs itself under $prefix/libxml and $prefix/lib. |
| 31724 | xml2_prefix=`xml2-config --prefix` |
| 31725 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 31726 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 31727 | fi |
| 31728 | if test "${xml2_prefix}" != '/usr'; then |
| 31729 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 31730 | fi |
| 31731 | fi |
| 31732 | failed=0 |
| 31733 | passed=0 |
| 31734 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 31735 | if test "x$ac_cv_header_libxml_parser_h" = xyes; then : |
| 31736 | passed=`expr $passed + 1` |
| 31737 | else |
| 31738 | failed=`expr $failed + 1` |
| 31739 | fi |
| 31740 | |
| 31741 | |
| 31742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 |
| 31743 | $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } |
| 31744 | if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : |
| 31745 | $as_echo_n "(cached) " >&6 |
| 31746 | else |
| 31747 | ac_check_lib_save_LIBS=$LIBS |
| 31748 | LIBS="-lxml2 $LIBS" |
| 31749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31750 | /* end confdefs.h. */ |
| 31751 | |
| 31752 | /* Override any GCC internal prototype to avoid an error. |
| 31753 | Use char because int might match the return type of a GCC |
| 31754 | builtin and then its argument prototype would still apply. */ |
| 31755 | #ifdef __cplusplus |
| 31756 | extern "C" |
| 31757 | #endif |
| 31758 | char xmlSAXVersion (); |
| 31759 | int |
| 31760 | main () |
| 31761 | { |
| 31762 | return xmlSAXVersion (); |
| 31763 | ; |
| 31764 | return 0; |
| 31765 | } |
| 31766 | _ACEOF |
| 31767 | if ac_fn_c_try_link "$LINENO"; then : |
| 31768 | ac_cv_lib_xml2_xmlSAXVersion=yes |
| 31769 | else |
| 31770 | ac_cv_lib_xml2_xmlSAXVersion=no |
| 31771 | fi |
| 31772 | rm -f core conftest.err conftest.$ac_objext \ |
| 31773 | conftest$ac_exeext conftest.$ac_ext |
| 31774 | LIBS=$ac_check_lib_save_LIBS |
| 31775 | fi |
| 31776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 |
| 31777 | $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } |
| 31778 | if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : |
| 31779 | passed=`expr $passed + 1` |
| 31780 | else |
| 31781 | failed=`expr $failed + 1` |
| 31782 | fi |
| 31783 | |
| 31784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 |
| 31785 | $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } |
| 31786 | if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : |
| 31787 | $as_echo_n "(cached) " >&6 |
| 31788 | else |
| 31789 | ac_check_lib_save_LIBS=$LIBS |
| 31790 | LIBS="-lxml2 $LIBS" |
| 31791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31792 | /* end confdefs.h. */ |
| 31793 | |
| 31794 | /* Override any GCC internal prototype to avoid an error. |
| 31795 | Use char because int might match the return type of a GCC |
| 31796 | builtin and then its argument prototype would still apply. */ |
| 31797 | #ifdef __cplusplus |
| 31798 | extern "C" |
| 31799 | #endif |
| 31800 | char xmlParseChunk (); |
| 31801 | int |
| 31802 | main () |
| 31803 | { |
| 31804 | return xmlParseChunk (); |
| 31805 | ; |
| 31806 | return 0; |
| 31807 | } |
| 31808 | _ACEOF |
| 31809 | if ac_fn_c_try_link "$LINENO"; then : |
| 31810 | ac_cv_lib_xml2_xmlParseChunk=yes |
| 31811 | else |
| 31812 | ac_cv_lib_xml2_xmlParseChunk=no |
| 31813 | fi |
| 31814 | rm -f core conftest.err conftest.$ac_objext \ |
| 31815 | conftest$ac_exeext conftest.$ac_ext |
| 31816 | LIBS=$ac_check_lib_save_LIBS |
| 31817 | fi |
| 31818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 |
| 31819 | $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } |
| 31820 | if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : |
| 31821 | passed=`expr $passed + 1` |
| 31822 | else |
| 31823 | failed=`expr $failed + 1` |
| 31824 | fi |
| 31825 | |
| 31826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 |
| 31827 | $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } |
| 31828 | if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : |
| 31829 | $as_echo_n "(cached) " >&6 |
| 31830 | else |
| 31831 | ac_check_lib_save_LIBS=$LIBS |
| 31832 | LIBS="-lxml2 $LIBS" |
| 31833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31834 | /* end confdefs.h. */ |
| 31835 | |
| 31836 | /* Override any GCC internal prototype to avoid an error. |
| 31837 | Use char because int might match the return type of a GCC |
| 31838 | builtin and then its argument prototype would still apply. */ |
| 31839 | #ifdef __cplusplus |
| 31840 | extern "C" |
| 31841 | #endif |
| 31842 | char xmlCreatePushParserCtxt (); |
| 31843 | int |
| 31844 | main () |
| 31845 | { |
| 31846 | return xmlCreatePushParserCtxt (); |
| 31847 | ; |
| 31848 | return 0; |
| 31849 | } |
| 31850 | _ACEOF |
| 31851 | if ac_fn_c_try_link "$LINENO"; then : |
| 31852 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes |
| 31853 | else |
| 31854 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=no |
| 31855 | fi |
| 31856 | rm -f core conftest.err conftest.$ac_objext \ |
| 31857 | conftest$ac_exeext conftest.$ac_ext |
| 31858 | LIBS=$ac_check_lib_save_LIBS |
| 31859 | fi |
| 31860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 |
| 31861 | $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } |
| 31862 | if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : |
| 31863 | passed=`expr $passed + 1` |
| 31864 | else |
| 31865 | failed=`expr $failed + 1` |
| 31866 | fi |
| 31867 | |
| 31868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 |
| 31869 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 31870 | if test $passed -gt 0; then |
| 31871 | if test $failed -gt 0; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31872 | { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 |
| 31873 | $as_echo "$as_me: no -- some components failed test" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31874 | have_xml='no (failed tests)' |
| 31875 | LDFLAGS="$PERSIST_LDFLAGS" |
| 31876 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 31877 | else |
| 31878 | XML_LIBS='-lxml2' |
| 31879 | LIBS="$XML_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31880 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31881 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31882 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31883 | { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 |
| 31884 | $as_echo "$as_me: yes" >&6;} |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31885 | have_xml='yes' |
| 31886 | fi |
| 31887 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31888 | { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 |
| 31889 | $as_echo "$as_me: no" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31890 | fi |
| 31891 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31892 | if test "$have_xml" = 'yes'; then |
| 31893 | XML_DELEGATE_TRUE= |
| 31894 | XML_DELEGATE_FALSE='#' |
| 31895 | else |
| 31896 | XML_DELEGATE_TRUE='#' |
| 31897 | XML_DELEGATE_FALSE= |
| 31898 | fi |
| 31899 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31900 | |
| 31901 | |
| 31902 | |
| 31903 | # Substitute compiler name to build/link PerlMagick |
| 31904 | # |
| 31905 | |
| 31906 | |
| 31907 | # |
| 31908 | # Configure install Paths |
| 31909 | # |
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 31910 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 31911 | # Path to ImageMagick header files |
| 31912 | INCLUDE_RELATIVE_PATH="ImageMagick" |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 31913 | INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" |
| 31914 | DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 31915 | case "${build_os}" in |
| 31916 | mingw* ) |
| 31917 | DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` |
| 31918 | ;; |
| 31919 | esac |
| 31920 | |
| 31921 | cat >>confdefs.h <<_ACEOF |
| 31922 | #define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" |
| 31923 | _ACEOF |
| 31924 | |
| 31925 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31926 | |
| 31927 | # Subdirectory under lib to place ImageMagick lib files |
| 31928 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 31929 | |
| 31930 | cat >>confdefs.h <<_ACEOF |
| 31931 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 31932 | _ACEOF |
| 31933 | |
| 31934 | |
| 31935 | # Path to ImageMagick bin directory |
| 31936 | EXECUTABLE_PATH="${BIN_DIR}" |
| 31937 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 31938 | case "${build_os}" in |
| 31939 | mingw* ) |
| 31940 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 31941 | ;; |
| 31942 | esac |
| 31943 | |
| 31944 | cat >>confdefs.h <<_ACEOF |
| 31945 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 31946 | _ACEOF |
| 31947 | |
| 31948 | |
| 31949 | |
| 31950 | # Path to ImageMagick lib |
| 31951 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 31952 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 31953 | case "${build_os}" in |
| 31954 | mingw* ) |
| 31955 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 31956 | ;; |
| 31957 | esac |
| 31958 | |
| 31959 | cat >>confdefs.h <<_ACEOF |
| 31960 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 31961 | _ACEOF |
| 31962 | |
| 31963 | |
| 31964 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31965 | # |
| 31966 | # Subdirectory under lib to place ImageMagick coder module files |
| 31967 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 31968 | |
| 31969 | cat >>confdefs.h <<_ACEOF |
| 31970 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 31971 | _ACEOF |
| 31972 | |
| 31973 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 31974 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 31975 | case "${build_os}" in |
| 31976 | mingw* ) |
| 31977 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 31978 | ;; |
| 31979 | esac |
| 31980 | |
| 31981 | cat >>confdefs.h <<_ACEOF |
| 31982 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 31983 | _ACEOF |
| 31984 | |
| 31985 | |
| 31986 | |
| 31987 | # |
| 31988 | # Subdirectory under lib to place ImageMagick filter module files |
| 31989 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 31990 | |
| 31991 | cat >>confdefs.h <<_ACEOF |
| 31992 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 31993 | _ACEOF |
| 31994 | |
| 31995 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 31996 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 31997 | case "${build_os}" in |
| 31998 | mingw* ) |
| 31999 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 32000 | ;; |
| 32001 | esac |
| 32002 | |
| 32003 | cat >>confdefs.h <<_ACEOF |
| 32004 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 32005 | _ACEOF |
| 32006 | |
| 32007 | |
| 32008 | |
| 32009 | # |
| 32010 | # Path to ImageMagick documentation files |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 32011 | DOCUMENTATION_RELATIVE_PATH="" |
| 32012 | DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" |
| 32013 | DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32014 | case "${build_os}" in |
| 32015 | mingw* ) |
| 32016 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 32017 | ;; |
| 32018 | esac |
| 32019 | |
| 32020 | cat >>confdefs.h <<_ACEOF |
| 32021 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 32022 | _ACEOF |
| 32023 | |
| 32024 | |
| 32025 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32026 | # Subdirectory to place architecture-dependent configuration files |
| cristy | ba0f197 | 2011-03-28 12:42:52 +0000 | [diff] [blame] | 32027 | CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" |
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32028 | |
| 32029 | cat >>confdefs.h <<_ACEOF |
| 32030 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 32031 | _ACEOF |
| 32032 | |
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 32033 | CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32034 | DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 32035 | case "${build_os}" in |
| 32036 | mingw* ) |
| 32037 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 32038 | ;; |
| 32039 | esac |
| 32040 | |
| 32041 | cat >>confdefs.h <<_ACEOF |
| 32042 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 32043 | _ACEOF |
| 32044 | |
| 32045 | |
| 32046 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32047 | # Subdirectory to place architecture-independent configuration files |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32048 | SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32049 | |
| 32050 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32051 | #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32052 | _ACEOF |
| 32053 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 32054 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32055 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32056 | case "${build_os}" in |
| 32057 | mingw* ) |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32058 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32059 | ;; |
| 32060 | esac |
| 32061 | |
| 32062 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32063 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32064 | _ACEOF |
| 32065 | |
| 32066 | |
| 32067 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame^] | 32068 | # Subdirectory to place architecture-independent configuration files |
| 32069 | SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" |
| 32070 | |
| 32071 | cat >>confdefs.h <<_ACEOF |
| 32072 | #define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH" |
| 32073 | _ACEOF |
| 32074 | |
| 32075 | SHAREARCH_PATH="${DATA_DIR}/${SHAREARCH_RELATIVE_PATH}" |
| 32076 | DEFINE_SHAREARCH_PATH="${DATA_DIR}/${SHAREARCH_RELATIVE_PATH}/" |
| 32077 | case "${build_os}" in |
| 32078 | mingw* ) |
| 32079 | DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1` |
| 32080 | ;; |
| 32081 | esac |
| 32082 | |
| 32083 | cat >>confdefs.h <<_ACEOF |
| 32084 | #define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH" |
| 32085 | _ACEOF |
| 32086 | |
| 32087 | |
| 32088 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32089 | # |
| 32090 | # program_transform_name is formed for use in a Makefile, so create a |
| 32091 | # modified version for use in a shell script. |
| 32092 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 32093 | |
| 32094 | # Default delegate definitions |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32095 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 32096 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32098 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32099 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 32100 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32101 | AutotraceDecodeDelegateDefault='autotrace' |
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 32102 | BlenderDecodeDelegateDefault='blender' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32103 | BZIPDelegateDefault='bzip2' |
| 32104 | BrowseDelegateDefault='xdg-open' |
| 32105 | CGMDecodeDelegateDefault='ralcgm' |
| 32106 | CatDelegateDefault='cat' |
| 32107 | DNGDecodeDelegateDefault='ufraw-batch' |
| 32108 | GVCDecodeDelegateDefault='dot' |
| 32109 | DVIDecodeDelegateDefault='dvips' |
| 32110 | EchoDelegateDefault='echo' |
| 32111 | EditorDelegateDefault='xterm' |
| 32112 | FIGDecodeDelegateDefault='fig2dev' |
| 32113 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 32114 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 32115 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 32116 | GnuplotDecodeDelegateDefault='gnuplot' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32117 | HPGLDecodeDelegateDefault='hp2xx' |
| 32118 | HTMLDecodeDelegateDefault='html2ps' |
| 32119 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 32120 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 32121 | LPDelegateDefault='lp' |
| 32122 | LPRDelegateDefault='lpr' |
| 32123 | LZWDecodeDelegateDefault='uncompress' |
| 32124 | LZWEncodeDelegateDefault='compress' |
| 32125 | LaunchDelegateDefault='gimp' |
| 32126 | MANDelegateDefault='groff' |
| 32127 | MPEGDecodeDelegateDefault='ffmpeg' |
| 32128 | MPEGEncodeDelegateDefault='ffmpeg' |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32129 | MrSIDDecodeDelegateDefault='mrsidgeodecode' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32130 | MVDelegateDefault='mv' |
| 32131 | PCLDelegateDefault='pcl6' |
| 32132 | PGPDecodeDelegateDefault='pgpv' |
| 32133 | POVDelegateDefault='povray' |
| 32134 | if test "$native_win32_build" = 'yes'; then |
| 32135 | PSDelegateDefault='gswin32c' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 32136 | elif test "$gslib_framework" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32137 | PSDelegateDefault='gsc' |
| 32138 | else |
| 32139 | PSDelegateDefault='gs' |
| 32140 | fi |
| 32141 | RLEEncodeDelegateDefault='rawtorle' |
| 32142 | RMDelegateDefault='rm' |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 32143 | RSVGDecodeDelegateDefault='rsvg' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32144 | SCANDecodeDelegateDefault='scanimage' |
| 32145 | TXTDelegateDefault='enscript' |
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 32146 | UniconvertorDelegateDefault='uniconvertor' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32147 | WMFDecodeDelegateDefault='wmf2eps' |
| 32148 | WWWDecodeDelegateDefault='curl' |
| 32149 | XPSDelegateDefault='gxps' |
| 32150 | ZipDelegateDefault='gzip' |
| 32151 | |
| 32152 | # Search for delegates |
| 32153 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 32154 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32156 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32157 | if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32158 | $as_echo_n "(cached) " >&6 |
| 32159 | else |
| 32160 | case $AutotraceDecodeDelegate in |
| 32161 | [\\/]* | ?:[\\/]*) |
| 32162 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 32163 | ;; |
| 32164 | *) |
| 32165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32166 | for as_dir in $PATH |
| 32167 | do |
| 32168 | IFS=$as_save_IFS |
| 32169 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32172 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32173 | $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] | 32174 | break 2 |
| 32175 | fi |
| 32176 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32177 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32178 | IFS=$as_save_IFS |
| 32179 | |
| 32180 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 32181 | ;; |
| 32182 | esac |
| 32183 | fi |
| 32184 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 32185 | if test -n "$AutotraceDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32187 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 32188 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32190 | $as_echo "no" >&6; } |
| 32191 | fi |
| 32192 | |
| 32193 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32194 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 32195 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32197 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32198 | if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32199 | $as_echo_n "(cached) " >&6 |
| 32200 | else |
| 32201 | case $BlenderDecodeDelegate in |
| 32202 | [\\/]* | ?:[\\/]*) |
| 32203 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 32204 | ;; |
| 32205 | *) |
| 32206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32207 | for as_dir in $PATH |
| 32208 | do |
| 32209 | IFS=$as_save_IFS |
| 32210 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32211 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32213 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32214 | $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] | 32215 | break 2 |
| 32216 | fi |
| 32217 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32218 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32219 | IFS=$as_save_IFS |
| 32220 | |
| 32221 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 32222 | ;; |
| 32223 | esac |
| 32224 | fi |
| 32225 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 32226 | if test -n "$BlenderDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32228 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 32229 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32231 | $as_echo "no" >&6; } |
| 32232 | fi |
| 32233 | |
| 32234 | |
| 32235 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 32236 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32238 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32239 | if ${ac_cv_path_BZIPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32240 | $as_echo_n "(cached) " >&6 |
| 32241 | else |
| 32242 | case $BZIPDelegate in |
| 32243 | [\\/]* | ?:[\\/]*) |
| 32244 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 32245 | ;; |
| 32246 | *) |
| 32247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32248 | for as_dir in $PATH |
| 32249 | do |
| 32250 | IFS=$as_save_IFS |
| 32251 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32254 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32255 | $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] | 32256 | break 2 |
| 32257 | fi |
| 32258 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32259 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32260 | IFS=$as_save_IFS |
| 32261 | |
| 32262 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 32263 | ;; |
| 32264 | esac |
| 32265 | fi |
| 32266 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 32267 | if test -n "$BZIPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32269 | $as_echo "$BZIPDelegate" >&6; } |
| 32270 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32272 | $as_echo "no" >&6; } |
| 32273 | fi |
| 32274 | |
| 32275 | |
| 32276 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 32277 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32279 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32280 | if ${ac_cv_path_BrowseDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32281 | $as_echo_n "(cached) " >&6 |
| 32282 | else |
| 32283 | case $BrowseDelegate in |
| 32284 | [\\/]* | ?:[\\/]*) |
| 32285 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 32286 | ;; |
| 32287 | *) |
| 32288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32289 | for as_dir in $PATH |
| 32290 | do |
| 32291 | IFS=$as_save_IFS |
| 32292 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32293 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32295 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32296 | $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] | 32297 | break 2 |
| 32298 | fi |
| 32299 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32300 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32301 | IFS=$as_save_IFS |
| 32302 | |
| 32303 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 32304 | ;; |
| 32305 | esac |
| 32306 | fi |
| 32307 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 32308 | if test -n "$BrowseDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32310 | $as_echo "$BrowseDelegate" >&6; } |
| 32311 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32313 | $as_echo "no" >&6; } |
| 32314 | fi |
| 32315 | |
| 32316 | |
| 32317 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 32318 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32320 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32321 | if ${ac_cv_path_CGMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32322 | $as_echo_n "(cached) " >&6 |
| 32323 | else |
| 32324 | case $CGMDecodeDelegate in |
| 32325 | [\\/]* | ?:[\\/]*) |
| 32326 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 32327 | ;; |
| 32328 | *) |
| 32329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32330 | for as_dir in $PATH |
| 32331 | do |
| 32332 | IFS=$as_save_IFS |
| 32333 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32336 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32337 | $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] | 32338 | break 2 |
| 32339 | fi |
| 32340 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32341 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32342 | IFS=$as_save_IFS |
| 32343 | |
| 32344 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 32345 | ;; |
| 32346 | esac |
| 32347 | fi |
| 32348 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 32349 | if test -n "$CGMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32351 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 32352 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32354 | $as_echo "no" >&6; } |
| 32355 | fi |
| 32356 | |
| 32357 | |
| 32358 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 32359 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32361 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32362 | if ${ac_cv_path_CatDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32363 | $as_echo_n "(cached) " >&6 |
| 32364 | else |
| 32365 | case $CatDelegate in |
| 32366 | [\\/]* | ?:[\\/]*) |
| 32367 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 32368 | ;; |
| 32369 | *) |
| 32370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32371 | for as_dir in $PATH |
| 32372 | do |
| 32373 | IFS=$as_save_IFS |
| 32374 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32375 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32377 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32378 | $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] | 32379 | break 2 |
| 32380 | fi |
| 32381 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32382 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32383 | IFS=$as_save_IFS |
| 32384 | |
| 32385 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 32386 | ;; |
| 32387 | esac |
| 32388 | fi |
| 32389 | CatDelegate=$ac_cv_path_CatDelegate |
| 32390 | if test -n "$CatDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32392 | $as_echo "$CatDelegate" >&6; } |
| 32393 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32395 | $as_echo "no" >&6; } |
| 32396 | fi |
| 32397 | |
| 32398 | |
| 32399 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 32400 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32402 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32403 | if ${ac_cv_path_DNGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32404 | $as_echo_n "(cached) " >&6 |
| 32405 | else |
| 32406 | case $DNGDecodeDelegate in |
| 32407 | [\\/]* | ?:[\\/]*) |
| 32408 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 32409 | ;; |
| 32410 | *) |
| 32411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32412 | for as_dir in $PATH |
| 32413 | do |
| 32414 | IFS=$as_save_IFS |
| 32415 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32416 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32418 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32419 | $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] | 32420 | break 2 |
| 32421 | fi |
| 32422 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32423 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32424 | IFS=$as_save_IFS |
| 32425 | |
| 32426 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 32427 | ;; |
| 32428 | esac |
| 32429 | fi |
| 32430 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 32431 | if test -n "$DNGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32433 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 32434 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32436 | $as_echo "no" >&6; } |
| 32437 | fi |
| 32438 | |
| 32439 | |
| 32440 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 32441 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32443 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32444 | if ${ac_cv_path_GVCDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32445 | $as_echo_n "(cached) " >&6 |
| 32446 | else |
| 32447 | case $GVCDecodeDelegate in |
| 32448 | [\\/]* | ?:[\\/]*) |
| 32449 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 32450 | ;; |
| 32451 | *) |
| 32452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32453 | for as_dir in $PATH |
| 32454 | do |
| 32455 | IFS=$as_save_IFS |
| 32456 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32459 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32460 | $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] | 32461 | break 2 |
| 32462 | fi |
| 32463 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32464 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32465 | IFS=$as_save_IFS |
| 32466 | |
| 32467 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 32468 | ;; |
| 32469 | esac |
| 32470 | fi |
| 32471 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 32472 | if test -n "$GVCDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32474 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 32475 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32477 | $as_echo "no" >&6; } |
| 32478 | fi |
| 32479 | |
| 32480 | |
| 32481 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 32482 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32484 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32485 | if ${ac_cv_path_DVIDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32486 | $as_echo_n "(cached) " >&6 |
| 32487 | else |
| 32488 | case $DVIDecodeDelegate in |
| 32489 | [\\/]* | ?:[\\/]*) |
| 32490 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 32491 | ;; |
| 32492 | *) |
| 32493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32494 | for as_dir in $PATH |
| 32495 | do |
| 32496 | IFS=$as_save_IFS |
| 32497 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32500 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32501 | $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] | 32502 | break 2 |
| 32503 | fi |
| 32504 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32505 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32506 | IFS=$as_save_IFS |
| 32507 | |
| 32508 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 32509 | ;; |
| 32510 | esac |
| 32511 | fi |
| 32512 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 32513 | if test -n "$DVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32515 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 32516 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32518 | $as_echo "no" >&6; } |
| 32519 | fi |
| 32520 | |
| 32521 | |
| 32522 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 32523 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32525 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32526 | if ${ac_cv_path_EchoDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32527 | $as_echo_n "(cached) " >&6 |
| 32528 | else |
| 32529 | case $EchoDelegate in |
| 32530 | [\\/]* | ?:[\\/]*) |
| 32531 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 32532 | ;; |
| 32533 | *) |
| 32534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32535 | for as_dir in $PATH |
| 32536 | do |
| 32537 | IFS=$as_save_IFS |
| 32538 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32539 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32541 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32542 | $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] | 32543 | break 2 |
| 32544 | fi |
| 32545 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32546 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32547 | IFS=$as_save_IFS |
| 32548 | |
| 32549 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 32550 | ;; |
| 32551 | esac |
| 32552 | fi |
| 32553 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 32554 | if test -n "$EchoDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32556 | $as_echo "$EchoDelegate" >&6; } |
| 32557 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32559 | $as_echo "no" >&6; } |
| 32560 | fi |
| 32561 | |
| 32562 | |
| 32563 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 32564 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32566 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32567 | if ${ac_cv_path_EditorDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32568 | $as_echo_n "(cached) " >&6 |
| 32569 | else |
| 32570 | case $EditorDelegate in |
| 32571 | [\\/]* | ?:[\\/]*) |
| 32572 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 32573 | ;; |
| 32574 | *) |
| 32575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32576 | for as_dir in $PATH |
| 32577 | do |
| 32578 | IFS=$as_save_IFS |
| 32579 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32582 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32583 | $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] | 32584 | break 2 |
| 32585 | fi |
| 32586 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32587 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32588 | IFS=$as_save_IFS |
| 32589 | |
| 32590 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 32591 | ;; |
| 32592 | esac |
| 32593 | fi |
| 32594 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 32595 | if test -n "$EditorDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32597 | $as_echo "$EditorDelegate" >&6; } |
| 32598 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32600 | $as_echo "no" >&6; } |
| 32601 | fi |
| 32602 | |
| 32603 | |
| 32604 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 32605 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32607 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32608 | if ${ac_cv_path_FIGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32609 | $as_echo_n "(cached) " >&6 |
| 32610 | else |
| 32611 | case $FIGDecodeDelegate in |
| 32612 | [\\/]* | ?:[\\/]*) |
| 32613 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 32614 | ;; |
| 32615 | *) |
| 32616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32617 | for as_dir in $PATH |
| 32618 | do |
| 32619 | IFS=$as_save_IFS |
| 32620 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32623 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32624 | $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] | 32625 | break 2 |
| 32626 | fi |
| 32627 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32628 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32629 | IFS=$as_save_IFS |
| 32630 | |
| 32631 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 32632 | ;; |
| 32633 | esac |
| 32634 | fi |
| 32635 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 32636 | if test -n "$FIGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32638 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 32639 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32641 | $as_echo "no" >&6; } |
| 32642 | fi |
| 32643 | |
| 32644 | |
| 32645 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 32646 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32648 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32649 | if ${ac_cv_path_ConvertDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32650 | $as_echo_n "(cached) " >&6 |
| 32651 | else |
| 32652 | case $ConvertDelegate in |
| 32653 | [\\/]* | ?:[\\/]*) |
| 32654 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 32655 | ;; |
| 32656 | *) |
| 32657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32658 | for as_dir in $PATH |
| 32659 | do |
| 32660 | IFS=$as_save_IFS |
| 32661 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32662 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32664 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32665 | $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] | 32666 | break 2 |
| 32667 | fi |
| 32668 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32669 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32670 | IFS=$as_save_IFS |
| 32671 | |
| 32672 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 32673 | ;; |
| 32674 | esac |
| 32675 | fi |
| 32676 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 32677 | if test -n "$ConvertDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32679 | $as_echo "$ConvertDelegate" >&6; } |
| 32680 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32682 | $as_echo "no" >&6; } |
| 32683 | fi |
| 32684 | |
| 32685 | |
| 32686 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 32687 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32689 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32690 | if ${ac_cv_path_DisplayDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32691 | $as_echo_n "(cached) " >&6 |
| 32692 | else |
| 32693 | case $DisplayDelegate in |
| 32694 | [\\/]* | ?:[\\/]*) |
| 32695 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 32696 | ;; |
| 32697 | *) |
| 32698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32699 | for as_dir in $PATH |
| 32700 | do |
| 32701 | IFS=$as_save_IFS |
| 32702 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32705 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32706 | $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] | 32707 | break 2 |
| 32708 | fi |
| 32709 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32710 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32711 | IFS=$as_save_IFS |
| 32712 | |
| 32713 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 32714 | ;; |
| 32715 | esac |
| 32716 | fi |
| 32717 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 32718 | if test -n "$DisplayDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32720 | $as_echo "$DisplayDelegate" >&6; } |
| 32721 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32723 | $as_echo "no" >&6; } |
| 32724 | fi |
| 32725 | |
| 32726 | |
| 32727 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 32728 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32730 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32731 | if ${ac_cv_path_MogrifyDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32732 | $as_echo_n "(cached) " >&6 |
| 32733 | else |
| 32734 | case $MogrifyDelegate in |
| 32735 | [\\/]* | ?:[\\/]*) |
| 32736 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 32737 | ;; |
| 32738 | *) |
| 32739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32740 | for as_dir in $PATH |
| 32741 | do |
| 32742 | IFS=$as_save_IFS |
| 32743 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32746 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32747 | $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] | 32748 | break 2 |
| 32749 | fi |
| 32750 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32751 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32752 | IFS=$as_save_IFS |
| 32753 | |
| 32754 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 32755 | ;; |
| 32756 | esac |
| 32757 | fi |
| 32758 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 32759 | if test -n "$MogrifyDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32761 | $as_echo "$MogrifyDelegate" >&6; } |
| 32762 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32764 | $as_echo "no" >&6; } |
| 32765 | fi |
| 32766 | |
| 32767 | |
| 32768 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 32769 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32771 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32772 | if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32773 | $as_echo_n "(cached) " >&6 |
| 32774 | else |
| 32775 | case $GnuplotDecodeDelegate in |
| 32776 | [\\/]* | ?:[\\/]*) |
| 32777 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 32778 | ;; |
| 32779 | *) |
| 32780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32781 | for as_dir in $PATH |
| 32782 | do |
| 32783 | IFS=$as_save_IFS |
| 32784 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32785 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32787 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32788 | $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] | 32789 | break 2 |
| 32790 | fi |
| 32791 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32792 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32793 | IFS=$as_save_IFS |
| 32794 | |
| 32795 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 32796 | ;; |
| 32797 | esac |
| 32798 | fi |
| 32799 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 32800 | if test -n "$GnuplotDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32802 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 32803 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32805 | $as_echo "no" >&6; } |
| 32806 | fi |
| 32807 | |
| 32808 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32809 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 32810 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32812 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32813 | if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32814 | $as_echo_n "(cached) " >&6 |
| 32815 | else |
| 32816 | case $HPGLDecodeDelegate in |
| 32817 | [\\/]* | ?:[\\/]*) |
| 32818 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 32819 | ;; |
| 32820 | *) |
| 32821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32822 | for as_dir in $PATH |
| 32823 | do |
| 32824 | IFS=$as_save_IFS |
| 32825 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32828 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32829 | $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] | 32830 | break 2 |
| 32831 | fi |
| 32832 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32833 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32834 | IFS=$as_save_IFS |
| 32835 | |
| 32836 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 32837 | ;; |
| 32838 | esac |
| 32839 | fi |
| 32840 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 32841 | if test -n "$HPGLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32843 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 32844 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32846 | $as_echo "no" >&6; } |
| 32847 | fi |
| 32848 | |
| 32849 | |
| 32850 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 32851 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32853 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32854 | if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32855 | $as_echo_n "(cached) " >&6 |
| 32856 | else |
| 32857 | case $HTMLDecodeDelegate in |
| 32858 | [\\/]* | ?:[\\/]*) |
| 32859 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 32860 | ;; |
| 32861 | *) |
| 32862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32863 | for as_dir in $PATH |
| 32864 | do |
| 32865 | IFS=$as_save_IFS |
| 32866 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32869 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32870 | $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] | 32871 | break 2 |
| 32872 | fi |
| 32873 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32874 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32875 | IFS=$as_save_IFS |
| 32876 | |
| 32877 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 32878 | ;; |
| 32879 | esac |
| 32880 | fi |
| 32881 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 32882 | if test -n "$HTMLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32884 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 32885 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32887 | $as_echo "no" >&6; } |
| 32888 | fi |
| 32889 | |
| 32890 | |
| 32891 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 32892 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32894 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32895 | if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32896 | $as_echo_n "(cached) " >&6 |
| 32897 | else |
| 32898 | case $ILBMDecodeDelegate in |
| 32899 | [\\/]* | ?:[\\/]*) |
| 32900 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 32901 | ;; |
| 32902 | *) |
| 32903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32904 | for as_dir in $PATH |
| 32905 | do |
| 32906 | IFS=$as_save_IFS |
| 32907 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32910 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32911 | $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] | 32912 | break 2 |
| 32913 | fi |
| 32914 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32915 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32916 | IFS=$as_save_IFS |
| 32917 | |
| 32918 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 32919 | ;; |
| 32920 | esac |
| 32921 | fi |
| 32922 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 32923 | if test -n "$ILBMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32925 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 32926 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32928 | $as_echo "no" >&6; } |
| 32929 | fi |
| 32930 | |
| 32931 | |
| 32932 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 32933 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32935 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32936 | if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32937 | $as_echo_n "(cached) " >&6 |
| 32938 | else |
| 32939 | case $ILBMEncodeDelegate in |
| 32940 | [\\/]* | ?:[\\/]*) |
| 32941 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 32942 | ;; |
| 32943 | *) |
| 32944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32945 | for as_dir in $PATH |
| 32946 | do |
| 32947 | IFS=$as_save_IFS |
| 32948 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32951 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32952 | $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] | 32953 | break 2 |
| 32954 | fi |
| 32955 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32956 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32957 | IFS=$as_save_IFS |
| 32958 | |
| 32959 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 32960 | ;; |
| 32961 | esac |
| 32962 | fi |
| 32963 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 32964 | if test -n "$ILBMEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32966 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 32967 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32969 | $as_echo "no" >&6; } |
| 32970 | fi |
| 32971 | |
| 32972 | |
| 32973 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 32974 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32976 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32977 | if ${ac_cv_path_LPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32978 | $as_echo_n "(cached) " >&6 |
| 32979 | else |
| 32980 | case $LPDelegate in |
| 32981 | [\\/]* | ?:[\\/]*) |
| 32982 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 32983 | ;; |
| 32984 | *) |
| 32985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32986 | for as_dir in $PATH |
| 32987 | do |
| 32988 | IFS=$as_save_IFS |
| 32989 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32990 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32992 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32993 | $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] | 32994 | break 2 |
| 32995 | fi |
| 32996 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32997 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32998 | IFS=$as_save_IFS |
| 32999 | |
| 33000 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 33001 | ;; |
| 33002 | esac |
| 33003 | fi |
| 33004 | LPDelegate=$ac_cv_path_LPDelegate |
| 33005 | if test -n "$LPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33007 | $as_echo "$LPDelegate" >&6; } |
| 33008 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33010 | $as_echo "no" >&6; } |
| 33011 | fi |
| 33012 | |
| 33013 | |
| 33014 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 33015 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33017 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33018 | if ${ac_cv_path_LPRDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33019 | $as_echo_n "(cached) " >&6 |
| 33020 | else |
| 33021 | case $LPRDelegate in |
| 33022 | [\\/]* | ?:[\\/]*) |
| 33023 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 33024 | ;; |
| 33025 | *) |
| 33026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33027 | for as_dir in $PATH |
| 33028 | do |
| 33029 | IFS=$as_save_IFS |
| 33030 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33031 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33033 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33034 | $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] | 33035 | break 2 |
| 33036 | fi |
| 33037 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33038 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33039 | IFS=$as_save_IFS |
| 33040 | |
| 33041 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 33042 | ;; |
| 33043 | esac |
| 33044 | fi |
| 33045 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 33046 | if test -n "$LPRDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33048 | $as_echo "$LPRDelegate" >&6; } |
| 33049 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33051 | $as_echo "no" >&6; } |
| 33052 | fi |
| 33053 | |
| 33054 | |
| 33055 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 33056 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33058 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33059 | if ${ac_cv_path_LZWDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33060 | $as_echo_n "(cached) " >&6 |
| 33061 | else |
| 33062 | case $LZWDecodeDelegate in |
| 33063 | [\\/]* | ?:[\\/]*) |
| 33064 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 33065 | ;; |
| 33066 | *) |
| 33067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33068 | for as_dir in $PATH |
| 33069 | do |
| 33070 | IFS=$as_save_IFS |
| 33071 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33072 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33074 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33075 | $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] | 33076 | break 2 |
| 33077 | fi |
| 33078 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33079 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33080 | IFS=$as_save_IFS |
| 33081 | |
| 33082 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 33083 | ;; |
| 33084 | esac |
| 33085 | fi |
| 33086 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 33087 | if test -n "$LZWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33089 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 33090 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33092 | $as_echo "no" >&6; } |
| 33093 | fi |
| 33094 | |
| 33095 | |
| 33096 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 33097 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33099 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33100 | if ${ac_cv_path_LZWEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33101 | $as_echo_n "(cached) " >&6 |
| 33102 | else |
| 33103 | case $LZWEncodeDelegate in |
| 33104 | [\\/]* | ?:[\\/]*) |
| 33105 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 33106 | ;; |
| 33107 | *) |
| 33108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33109 | for as_dir in $PATH |
| 33110 | do |
| 33111 | IFS=$as_save_IFS |
| 33112 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33115 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33116 | $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] | 33117 | break 2 |
| 33118 | fi |
| 33119 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33120 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33121 | IFS=$as_save_IFS |
| 33122 | |
| 33123 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 33124 | ;; |
| 33125 | esac |
| 33126 | fi |
| 33127 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 33128 | if test -n "$LZWEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33130 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 33131 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33133 | $as_echo "no" >&6; } |
| 33134 | fi |
| 33135 | |
| 33136 | |
| 33137 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 33138 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33140 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33141 | if ${ac_cv_path_LaunchDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33142 | $as_echo_n "(cached) " >&6 |
| 33143 | else |
| 33144 | case $LaunchDelegate in |
| 33145 | [\\/]* | ?:[\\/]*) |
| 33146 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 33147 | ;; |
| 33148 | *) |
| 33149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33150 | for as_dir in $PATH |
| 33151 | do |
| 33152 | IFS=$as_save_IFS |
| 33153 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33156 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33157 | $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] | 33158 | break 2 |
| 33159 | fi |
| 33160 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33161 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33162 | IFS=$as_save_IFS |
| 33163 | |
| 33164 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 33165 | ;; |
| 33166 | esac |
| 33167 | fi |
| 33168 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 33169 | if test -n "$LaunchDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33171 | $as_echo "$LaunchDelegate" >&6; } |
| 33172 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33174 | $as_echo "no" >&6; } |
| 33175 | fi |
| 33176 | |
| 33177 | |
| 33178 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 33179 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33181 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33182 | if ${ac_cv_path_MANDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33183 | $as_echo_n "(cached) " >&6 |
| 33184 | else |
| 33185 | case $MANDelegate in |
| 33186 | [\\/]* | ?:[\\/]*) |
| 33187 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 33188 | ;; |
| 33189 | *) |
| 33190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33191 | for as_dir in $PATH |
| 33192 | do |
| 33193 | IFS=$as_save_IFS |
| 33194 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33197 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33198 | $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] | 33199 | break 2 |
| 33200 | fi |
| 33201 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33202 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33203 | IFS=$as_save_IFS |
| 33204 | |
| 33205 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 33206 | ;; |
| 33207 | esac |
| 33208 | fi |
| 33209 | MANDelegate=$ac_cv_path_MANDelegate |
| 33210 | if test -n "$MANDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33212 | $as_echo "$MANDelegate" >&6; } |
| 33213 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33215 | $as_echo "no" >&6; } |
| 33216 | fi |
| 33217 | |
| 33218 | |
| 33219 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 33220 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33222 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33223 | if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33224 | $as_echo_n "(cached) " >&6 |
| 33225 | else |
| 33226 | case $MPEGDecodeDelegate in |
| 33227 | [\\/]* | ?:[\\/]*) |
| 33228 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 33229 | ;; |
| 33230 | *) |
| 33231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33232 | for as_dir in $PATH |
| 33233 | do |
| 33234 | IFS=$as_save_IFS |
| 33235 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33238 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33239 | $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] | 33240 | break 2 |
| 33241 | fi |
| 33242 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33243 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33244 | IFS=$as_save_IFS |
| 33245 | |
| 33246 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 33247 | ;; |
| 33248 | esac |
| 33249 | fi |
| 33250 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 33251 | if test -n "$MPEGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33253 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 33254 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33256 | $as_echo "no" >&6; } |
| 33257 | fi |
| 33258 | |
| 33259 | |
| 33260 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 33261 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33263 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33264 | if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33265 | $as_echo_n "(cached) " >&6 |
| 33266 | else |
| 33267 | case $MPEGEncodeDelegate in |
| 33268 | [\\/]* | ?:[\\/]*) |
| 33269 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 33270 | ;; |
| 33271 | *) |
| 33272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33273 | for as_dir in $PATH |
| 33274 | do |
| 33275 | IFS=$as_save_IFS |
| 33276 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33279 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33280 | $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] | 33281 | break 2 |
| 33282 | fi |
| 33283 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33284 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33285 | IFS=$as_save_IFS |
| 33286 | |
| 33287 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 33288 | ;; |
| 33289 | esac |
| 33290 | fi |
| 33291 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 33292 | if test -n "$MPEGEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33294 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 33295 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33297 | $as_echo "no" >&6; } |
| 33298 | fi |
| 33299 | |
| 33300 | |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33301 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. |
| 33302 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 |
| 33303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33304 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33305 | if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33306 | $as_echo_n "(cached) " >&6 |
| 33307 | else |
| 33308 | case $MrSIDDecodeDelegate in |
| 33309 | [\\/]* | ?:[\\/]*) |
| 33310 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. |
| 33311 | ;; |
| 33312 | *) |
| 33313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33314 | for as_dir in $PATH |
| 33315 | do |
| 33316 | IFS=$as_save_IFS |
| 33317 | test -z "$as_dir" && as_dir=. |
| 33318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33320 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33322 | break 2 |
| 33323 | fi |
| 33324 | done |
| 33325 | done |
| 33326 | IFS=$as_save_IFS |
| 33327 | |
| 33328 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" |
| 33329 | ;; |
| 33330 | esac |
| 33331 | fi |
| 33332 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate |
| 33333 | if test -n "$MrSIDDecodeDelegate"; then |
| 33334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 |
| 33335 | $as_echo "$MrSIDDecodeDelegate" >&6; } |
| 33336 | else |
| 33337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33338 | $as_echo "no" >&6; } |
| 33339 | fi |
| 33340 | |
| 33341 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33342 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 33343 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33345 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33346 | if ${ac_cv_path_MVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33347 | $as_echo_n "(cached) " >&6 |
| 33348 | else |
| 33349 | case $MVDelegate in |
| 33350 | [\\/]* | ?:[\\/]*) |
| 33351 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 33352 | ;; |
| 33353 | *) |
| 33354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33355 | for as_dir in $PATH |
| 33356 | do |
| 33357 | IFS=$as_save_IFS |
| 33358 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33361 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33362 | $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] | 33363 | break 2 |
| 33364 | fi |
| 33365 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33366 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33367 | IFS=$as_save_IFS |
| 33368 | |
| 33369 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 33370 | ;; |
| 33371 | esac |
| 33372 | fi |
| 33373 | MVDelegate=$ac_cv_path_MVDelegate |
| 33374 | if test -n "$MVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33376 | $as_echo "$MVDelegate" >&6; } |
| 33377 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33379 | $as_echo "no" >&6; } |
| 33380 | fi |
| 33381 | |
| 33382 | |
| 33383 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 33384 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33386 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33387 | if ${ac_cv_path_PCLDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33388 | $as_echo_n "(cached) " >&6 |
| 33389 | else |
| 33390 | case $PCLDelegate in |
| 33391 | [\\/]* | ?:[\\/]*) |
| 33392 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 33393 | ;; |
| 33394 | *) |
| 33395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33396 | for as_dir in $PATH |
| 33397 | do |
| 33398 | IFS=$as_save_IFS |
| 33399 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33400 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33402 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33403 | $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] | 33404 | break 2 |
| 33405 | fi |
| 33406 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33407 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33408 | IFS=$as_save_IFS |
| 33409 | |
| 33410 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 33411 | ;; |
| 33412 | esac |
| 33413 | fi |
| 33414 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 33415 | if test -n "$PCLDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33417 | $as_echo "$PCLDelegate" >&6; } |
| 33418 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33420 | $as_echo "no" >&6; } |
| 33421 | fi |
| 33422 | |
| 33423 | |
| 33424 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 33425 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33427 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33428 | if ${ac_cv_path_PGPDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33429 | $as_echo_n "(cached) " >&6 |
| 33430 | else |
| 33431 | case $PGPDecodeDelegate in |
| 33432 | [\\/]* | ?:[\\/]*) |
| 33433 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 33434 | ;; |
| 33435 | *) |
| 33436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33437 | for as_dir in $PATH |
| 33438 | do |
| 33439 | IFS=$as_save_IFS |
| 33440 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33443 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33444 | $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] | 33445 | break 2 |
| 33446 | fi |
| 33447 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33448 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33449 | IFS=$as_save_IFS |
| 33450 | |
| 33451 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 33452 | ;; |
| 33453 | esac |
| 33454 | fi |
| 33455 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 33456 | if test -n "$PGPDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33458 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 33459 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33461 | $as_echo "no" >&6; } |
| 33462 | fi |
| 33463 | |
| 33464 | |
| 33465 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 33466 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33468 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33469 | if ${ac_cv_path_POVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33470 | $as_echo_n "(cached) " >&6 |
| 33471 | else |
| 33472 | case $POVDelegate in |
| 33473 | [\\/]* | ?:[\\/]*) |
| 33474 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 33475 | ;; |
| 33476 | *) |
| 33477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33478 | for as_dir in $PATH |
| 33479 | do |
| 33480 | IFS=$as_save_IFS |
| 33481 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33484 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33485 | $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] | 33486 | break 2 |
| 33487 | fi |
| 33488 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33489 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33490 | IFS=$as_save_IFS |
| 33491 | |
| 33492 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 33493 | ;; |
| 33494 | esac |
| 33495 | fi |
| 33496 | POVDelegate=$ac_cv_path_POVDelegate |
| 33497 | if test -n "$POVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33499 | $as_echo "$POVDelegate" >&6; } |
| 33500 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33502 | $as_echo "no" >&6; } |
| 33503 | fi |
| 33504 | |
| 33505 | |
| 33506 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 33507 | do |
| 33508 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33509 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33511 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33512 | if ${ac_cv_path_PSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33513 | $as_echo_n "(cached) " >&6 |
| 33514 | else |
| 33515 | case $PSDelegate in |
| 33516 | [\\/]* | ?:[\\/]*) |
| 33517 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 33518 | ;; |
| 33519 | *) |
| 33520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33521 | for as_dir in $PATH |
| 33522 | do |
| 33523 | IFS=$as_save_IFS |
| 33524 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33527 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33528 | $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] | 33529 | break 2 |
| 33530 | fi |
| 33531 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33532 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33533 | IFS=$as_save_IFS |
| 33534 | |
| 33535 | ;; |
| 33536 | esac |
| 33537 | fi |
| 33538 | PSDelegate=$ac_cv_path_PSDelegate |
| 33539 | if test -n "$PSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33541 | $as_echo "$PSDelegate" >&6; } |
| 33542 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33544 | $as_echo "no" >&6; } |
| 33545 | fi |
| 33546 | |
| 33547 | |
| 33548 | test -n "$PSDelegate" && break |
| 33549 | done |
| 33550 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 33551 | |
| 33552 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 33553 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33555 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33556 | if ${ac_cv_path_RLEEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33557 | $as_echo_n "(cached) " >&6 |
| 33558 | else |
| 33559 | case $RLEEncodeDelegate in |
| 33560 | [\\/]* | ?:[\\/]*) |
| 33561 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 33562 | ;; |
| 33563 | *) |
| 33564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33565 | for as_dir in $PATH |
| 33566 | do |
| 33567 | IFS=$as_save_IFS |
| 33568 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33571 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33572 | $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] | 33573 | break 2 |
| 33574 | fi |
| 33575 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33576 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33577 | IFS=$as_save_IFS |
| 33578 | |
| 33579 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 33580 | ;; |
| 33581 | esac |
| 33582 | fi |
| 33583 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 33584 | if test -n "$RLEEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33586 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 33587 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33589 | $as_echo "no" >&6; } |
| 33590 | fi |
| 33591 | |
| 33592 | |
| 33593 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 33594 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33596 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33597 | if ${ac_cv_path_RMDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33598 | $as_echo_n "(cached) " >&6 |
| 33599 | else |
| 33600 | case $RMDelegate in |
| 33601 | [\\/]* | ?:[\\/]*) |
| 33602 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 33603 | ;; |
| 33604 | *) |
| 33605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33606 | for as_dir in $PATH |
| 33607 | do |
| 33608 | IFS=$as_save_IFS |
| 33609 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33610 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33612 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33613 | $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] | 33614 | break 2 |
| 33615 | fi |
| 33616 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33617 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33618 | IFS=$as_save_IFS |
| 33619 | |
| 33620 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 33621 | ;; |
| 33622 | esac |
| 33623 | fi |
| 33624 | RMDelegate=$ac_cv_path_RMDelegate |
| 33625 | if test -n "$RMDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33627 | $as_echo "$RMDelegate" >&6; } |
| 33628 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33630 | $as_echo "no" >&6; } |
| 33631 | fi |
| 33632 | |
| 33633 | |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33634 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. |
| 33635 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 |
| 33636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33637 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33638 | if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33639 | $as_echo_n "(cached) " >&6 |
| 33640 | else |
| 33641 | case $RSVGDecodeDelegate in |
| 33642 | [\\/]* | ?:[\\/]*) |
| 33643 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. |
| 33644 | ;; |
| 33645 | *) |
| 33646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33647 | for as_dir in $PATH |
| 33648 | do |
| 33649 | IFS=$as_save_IFS |
| 33650 | test -z "$as_dir" && as_dir=. |
| 33651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33653 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33655 | break 2 |
| 33656 | fi |
| 33657 | done |
| 33658 | done |
| 33659 | IFS=$as_save_IFS |
| 33660 | |
| 33661 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" |
| 33662 | ;; |
| 33663 | esac |
| 33664 | fi |
| 33665 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate |
| 33666 | if test -n "$RSVGDecodeDelegate"; then |
| 33667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 |
| 33668 | $as_echo "$RSVGDecodeDelegate" >&6; } |
| 33669 | else |
| 33670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33671 | $as_echo "no" >&6; } |
| 33672 | fi |
| 33673 | |
| 33674 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33675 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 33676 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33678 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33679 | if ${ac_cv_path_SCANDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33680 | $as_echo_n "(cached) " >&6 |
| 33681 | else |
| 33682 | case $SCANDecodeDelegate in |
| 33683 | [\\/]* | ?:[\\/]*) |
| 33684 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 33685 | ;; |
| 33686 | *) |
| 33687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33688 | for as_dir in $PATH |
| 33689 | do |
| 33690 | IFS=$as_save_IFS |
| 33691 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33694 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33695 | $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] | 33696 | break 2 |
| 33697 | fi |
| 33698 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33699 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33700 | IFS=$as_save_IFS |
| 33701 | |
| 33702 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 33703 | ;; |
| 33704 | esac |
| 33705 | fi |
| 33706 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 33707 | if test -n "$SCANDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33709 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 33710 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33712 | $as_echo "no" >&6; } |
| 33713 | fi |
| 33714 | |
| 33715 | |
| 33716 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 33717 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33719 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33720 | if ${ac_cv_path_TXTDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33721 | $as_echo_n "(cached) " >&6 |
| 33722 | else |
| 33723 | case $TXTDelegate in |
| 33724 | [\\/]* | ?:[\\/]*) |
| 33725 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 33726 | ;; |
| 33727 | *) |
| 33728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33729 | for as_dir in $PATH |
| 33730 | do |
| 33731 | IFS=$as_save_IFS |
| 33732 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33735 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33736 | $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] | 33737 | break 2 |
| 33738 | fi |
| 33739 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33740 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33741 | IFS=$as_save_IFS |
| 33742 | |
| 33743 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 33744 | ;; |
| 33745 | esac |
| 33746 | fi |
| 33747 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 33748 | if test -n "$TXTDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33750 | $as_echo "$TXTDelegate" >&6; } |
| 33751 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33753 | $as_echo "no" >&6; } |
| 33754 | fi |
| 33755 | |
| 33756 | |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33757 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. |
| 33758 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 |
| 33759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33760 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33761 | if ${ac_cv_path_UniconvertorDelegate+:} false; then : |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33762 | $as_echo_n "(cached) " >&6 |
| 33763 | else |
| 33764 | case $UniconvertorDelegate in |
| 33765 | [\\/]* | ?:[\\/]*) |
| 33766 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. |
| 33767 | ;; |
| 33768 | *) |
| 33769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33770 | for as_dir in $PATH |
| 33771 | do |
| 33772 | IFS=$as_save_IFS |
| 33773 | test -z "$as_dir" && as_dir=. |
| 33774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33776 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33778 | break 2 |
| 33779 | fi |
| 33780 | done |
| 33781 | done |
| 33782 | IFS=$as_save_IFS |
| 33783 | |
| 33784 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" |
| 33785 | ;; |
| 33786 | esac |
| 33787 | fi |
| 33788 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate |
| 33789 | if test -n "$UniconvertorDelegate"; then |
| 33790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 |
| 33791 | $as_echo "$UniconvertorDelegate" >&6; } |
| 33792 | else |
| 33793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33794 | $as_echo "no" >&6; } |
| 33795 | fi |
| 33796 | |
| 33797 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33798 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 33799 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33801 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33802 | if ${ac_cv_path_WMFDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33803 | $as_echo_n "(cached) " >&6 |
| 33804 | else |
| 33805 | case $WMFDecodeDelegate in |
| 33806 | [\\/]* | ?:[\\/]*) |
| 33807 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 33808 | ;; |
| 33809 | *) |
| 33810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33811 | for as_dir in $PATH |
| 33812 | do |
| 33813 | IFS=$as_save_IFS |
| 33814 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33817 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33818 | $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] | 33819 | break 2 |
| 33820 | fi |
| 33821 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33822 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33823 | IFS=$as_save_IFS |
| 33824 | |
| 33825 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 33826 | ;; |
| 33827 | esac |
| 33828 | fi |
| 33829 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 33830 | if test -n "$WMFDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33832 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 33833 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33835 | $as_echo "no" >&6; } |
| 33836 | fi |
| 33837 | |
| 33838 | |
| 33839 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 33840 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33842 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33843 | if ${ac_cv_path_WWWDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33844 | $as_echo_n "(cached) " >&6 |
| 33845 | else |
| 33846 | case $WWWDecodeDelegate in |
| 33847 | [\\/]* | ?:[\\/]*) |
| 33848 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 33849 | ;; |
| 33850 | *) |
| 33851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33852 | for as_dir in $PATH |
| 33853 | do |
| 33854 | IFS=$as_save_IFS |
| 33855 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33858 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33859 | $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] | 33860 | break 2 |
| 33861 | fi |
| 33862 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33863 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33864 | IFS=$as_save_IFS |
| 33865 | |
| 33866 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 33867 | ;; |
| 33868 | esac |
| 33869 | fi |
| 33870 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 33871 | if test -n "$WWWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33873 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 33874 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33876 | $as_echo "no" >&6; } |
| 33877 | fi |
| 33878 | |
| 33879 | |
| 33880 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 33881 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33883 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33884 | if ${ac_cv_path_XPSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33885 | $as_echo_n "(cached) " >&6 |
| 33886 | else |
| 33887 | case $XPSDelegate in |
| 33888 | [\\/]* | ?:[\\/]*) |
| 33889 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 33890 | ;; |
| 33891 | *) |
| 33892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33893 | for as_dir in $PATH |
| 33894 | do |
| 33895 | IFS=$as_save_IFS |
| 33896 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33899 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33900 | $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] | 33901 | break 2 |
| 33902 | fi |
| 33903 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33904 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33905 | IFS=$as_save_IFS |
| 33906 | |
| 33907 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 33908 | ;; |
| 33909 | esac |
| 33910 | fi |
| 33911 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 33912 | if test -n "$XPSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33914 | $as_echo "$XPSDelegate" >&6; } |
| 33915 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33917 | $as_echo "no" >&6; } |
| 33918 | fi |
| 33919 | |
| 33920 | |
| 33921 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 33922 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33924 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33925 | if ${ac_cv_path_ZipDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33926 | $as_echo_n "(cached) " >&6 |
| 33927 | else |
| 33928 | case $ZipDelegate in |
| 33929 | [\\/]* | ?:[\\/]*) |
| 33930 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 33931 | ;; |
| 33932 | *) |
| 33933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33934 | for as_dir in $PATH |
| 33935 | do |
| 33936 | IFS=$as_save_IFS |
| 33937 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33940 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33941 | $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] | 33942 | break 2 |
| 33943 | fi |
| 33944 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33945 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33946 | IFS=$as_save_IFS |
| 33947 | |
| 33948 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 33949 | ;; |
| 33950 | esac |
| 33951 | fi |
| 33952 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 33953 | if test -n "$ZipDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33955 | $as_echo "$ZipDelegate" >&6; } |
| 33956 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33958 | $as_echo "no" >&6; } |
| 33959 | fi |
| 33960 | |
| 33961 | |
| 33962 | |
| 33963 | # Prefer lpr to lp; lp needs options tacked on. |
| 33964 | if test "$LPRDelegate" != no; then |
| 33965 | PrintDelegate="$LPRDelegate" |
| 33966 | else |
| 33967 | PrintDelegate="$LPDelegate -c -s" |
| 33968 | fi |
| 33969 | |
| 33970 | |
| 33971 | # Installed ImageMagick utiltity paths |
| 33972 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 33973 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 33974 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 33975 | |
| 33976 | # Set delegate booleans |
| 33977 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 33978 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 33979 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 33980 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 33981 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33982 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33983 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 33984 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33985 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 33986 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 33987 | |
| 33988 | # |
| 33989 | # Test for font directories |
| 33990 | # |
| 33991 | type_include_files='' |
| 33992 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 33993 | # Dejavu fonts. |
| 33994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 |
| 33995 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } |
| 33996 | dejavu_font_dir='' |
| 33997 | if test "${with_dejavu_font_dir}" != 'default'; then |
| 33998 | dejavu_font_dir="${with_dejavu_font_dir}/" |
| 33999 | else |
| 34000 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do |
| 34001 | if test -f "${font_dir}DejaVuSerif.ttf"; then |
| 34002 | dejavu_font_dir="${font_dir}" |
| 34003 | break 1 |
| 34004 | fi |
| 34005 | done |
| 34006 | fi |
| 34007 | if test "${dejavu_font_dir}x" != 'x'; then |
| 34008 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34009 | { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5 |
| 34010 | $as_echo "$as_me: $dejavu_font_dir" >&6;} |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34011 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34012 | { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 |
| 34013 | $as_echo "$as_me: not found!" >&6;}; |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34014 | fi |
| 34015 | |
| 34016 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34017 | # Windows |
| 34018 | windows_font_dir='' |
| 34019 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 34020 | windows_font_dir="${with_windows_font_dir}/" |
| 34021 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34022 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34023 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 34024 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 34025 | fi |
| 34026 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 34027 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 34028 | fi |
| 34029 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 34030 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 34031 | fi |
| 34032 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34033 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34034 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 34035 | fi |
| 34036 | |
| 34037 | |
| 34038 | # Ghostscript |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34040 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 34041 | ghostscript_font_dir='' |
| 34042 | if test "${with_gs_font_dir}" != 'default'; then |
| 34043 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 34044 | else |
| 34045 | if test "${native_win32_build}" = 'yes'; then |
| 34046 | # Native Windows Build |
| 34047 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 34048 | if test -f "${font_dir}a010013l.pfb"; then |
| 34049 | ghostscript_font_dir="$font_dir" |
| 34050 | break 1 |
| 34051 | fi |
| 34052 | done |
| 34053 | if test "${PSDelegate}" != 'gswin32c'; then |
| 34054 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 34055 | fi |
| 34056 | else |
| 34057 | # Linux / Mac OS X / Unix Build |
| 34058 | 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 |
| 34059 | if test -f "${font_dir}a010013l.pfb"; then |
| 34060 | ghostscript_font_dir="${font_dir}" |
| 34061 | break 1 |
| 34062 | fi |
| 34063 | done |
| 34064 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 34065 | if test "$PSDelegate" != 'gs'; then |
| 34066 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 34067 | fi |
| 34068 | fi |
| 34069 | fi |
| 34070 | fi |
| 34071 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 34072 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34073 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5 |
| 34074 | $as_echo "$as_me: $ghostscript_font_dir" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34075 | else |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34076 | { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 |
| 34077 | $as_echo "$as_me: not found!" >&6;}; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34078 | fi |
| 34079 | |
| 34080 | case "${build_os}" in |
| 34081 | mingw* ) |
| 34082 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 34083 | ;; |
| 34084 | esac |
| 34085 | |
| 34086 | |
| 34087 | |
| 34088 | # |
| 34089 | # Handle case where user doesn't want frozen paths |
| 34090 | # |
| 34091 | if test "$with_frozenpaths" != 'yes'; then |
| 34092 | # Re-set delegate definitions to default (no paths) |
| 34093 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34094 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 34095 | BZIPDelegate="$BZIPDelegateDefault" |
| 34096 | BrowseDelegate="$BrowseDelegateDefault" |
| 34097 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 34098 | CatDelegate="$CatDelegateDefault" |
| 34099 | ConvertDelegate="$ConvertDelegateDefault" |
| 34100 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 34101 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 34102 | EchoDelegate="$EchoDelegateDefault" |
| 34103 | EditorDelegate="$EditorDelegateDefault" |
| 34104 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 34105 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 34106 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 34107 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 34108 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 34109 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 34110 | LPDelegate="$LPDelegateDefault" |
| 34111 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 34112 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 34113 | LaunchDelegate="$LaunchDelegateDefault" |
| 34114 | MANDelegate="$MANDelegateDefault" |
| 34115 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 34116 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34117 | MogrifyDelegate="$MogrifyDelegateDefault" |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 34118 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" |
| 34119 | MVDelegate="$MVDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34120 | PCLDelegate="$PCLDelegateDefault" |
| 34121 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 34122 | POVDelegate="$POVDelegateDefault" |
| 34123 | PSDelegate="$PSDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34124 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 34125 | RMDelegate="$RMDelegateDefault" |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34126 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34127 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 34128 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 34129 | TXTDelegate="$TXTDelegateDefault" |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34130 | UniconvertorDelegate="$UniconvertorDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34131 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 34132 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 34133 | XPSDelegate="$XPSDelegateDefault" |
| 34134 | ZipDelegate="$ZipDelegateDefault" |
| 34135 | fi |
| 34136 | |
| 34137 | # Delegate substitutions |
| 34138 | |
| 34139 | |
| 34140 | |
| 34141 | |
| 34142 | |
| 34143 | |
| 34144 | |
| 34145 | |
| 34146 | |
| 34147 | |
| 34148 | |
| 34149 | |
| 34150 | |
| 34151 | |
| 34152 | |
| 34153 | |
| 34154 | |
| 34155 | |
| 34156 | |
| 34157 | |
| 34158 | |
| 34159 | |
| 34160 | |
| 34161 | |
| 34162 | |
| 34163 | |
| 34164 | |
| 34165 | |
| 34166 | |
| 34167 | |
| 34168 | |
| 34169 | |
| 34170 | |
| 34171 | |
| 34172 | |
| 34173 | |
| 34174 | |
| 34175 | |
| 34176 | |
| 34177 | |
| 34178 | |
| 34179 | |
| 34180 | # |
| 34181 | # RPM support. |
| 34182 | # |
| 34183 | RPM='' |
| 34184 | for ac_prog in gnutar gtar tar |
| 34185 | do |
| 34186 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34187 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34189 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34190 | if ${ac_cv_prog_TAR+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34191 | $as_echo_n "(cached) " >&6 |
| 34192 | else |
| 34193 | if test -n "$TAR"; then |
| 34194 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 34195 | else |
| 34196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34197 | for as_dir in $PATH |
| 34198 | do |
| 34199 | IFS=$as_save_IFS |
| 34200 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34203 | ac_cv_prog_TAR="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34204 | $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] | 34205 | break 2 |
| 34206 | fi |
| 34207 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34208 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34209 | IFS=$as_save_IFS |
| 34210 | |
| 34211 | fi |
| 34212 | fi |
| 34213 | TAR=$ac_cv_prog_TAR |
| 34214 | if test -n "$TAR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34216 | $as_echo "$TAR" >&6; } |
| 34217 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34219 | $as_echo "no" >&6; } |
| 34220 | fi |
| 34221 | |
| 34222 | |
| 34223 | test -n "$TAR" && break |
| 34224 | done |
| 34225 | |
| 34226 | for ac_prog in perl |
| 34227 | do |
| 34228 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34229 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34231 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34232 | if ${ac_cv_prog_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34233 | $as_echo_n "(cached) " >&6 |
| 34234 | else |
| 34235 | if test -n "$PERL"; then |
| 34236 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 34237 | else |
| 34238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34239 | for as_dir in $PATH |
| 34240 | do |
| 34241 | IFS=$as_save_IFS |
| 34242 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34245 | ac_cv_prog_PERL="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34246 | $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] | 34247 | break 2 |
| 34248 | fi |
| 34249 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34250 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34251 | IFS=$as_save_IFS |
| 34252 | |
| 34253 | fi |
| 34254 | fi |
| 34255 | PERL=$ac_cv_prog_PERL |
| 34256 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34258 | $as_echo "$PERL" >&6; } |
| 34259 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34261 | $as_echo "no" >&6; } |
| 34262 | fi |
| 34263 | |
| 34264 | |
| 34265 | test -n "$PERL" && break |
| 34266 | done |
| 34267 | |
| 34268 | for ac_prog in rpmbuild rpm |
| 34269 | do |
| 34270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34271 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34273 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34274 | if ${ac_cv_prog_RPM+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34275 | $as_echo_n "(cached) " >&6 |
| 34276 | else |
| 34277 | if test -n "$RPM"; then |
| 34278 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 34279 | else |
| 34280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34281 | for as_dir in $PATH |
| 34282 | do |
| 34283 | IFS=$as_save_IFS |
| 34284 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34287 | ac_cv_prog_RPM="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34288 | $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] | 34289 | break 2 |
| 34290 | fi |
| 34291 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34292 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34293 | IFS=$as_save_IFS |
| 34294 | |
| 34295 | fi |
| 34296 | fi |
| 34297 | RPM=$ac_cv_prog_RPM |
| 34298 | if test -n "$RPM"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34300 | $as_echo "$RPM" >&6; } |
| 34301 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34303 | $as_echo "no" >&6; } |
| 34304 | fi |
| 34305 | |
| 34306 | |
| 34307 | test -n "$RPM" && break |
| 34308 | done |
| 34309 | |
| 34310 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34311 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 34312 | |
| 34313 | |
| 34314 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 34315 | |
| 34316 | |
| 34317 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 34318 | |
| 34319 | |
| 34320 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 34321 | |
| 34322 | |
| 34323 | if test "x$RPM" != "x" ; then |
| 34324 | RPM_DELEGATE_TRUE= |
| 34325 | RPM_DELEGATE_FALSE='#' |
| 34326 | else |
| 34327 | RPM_DELEGATE_TRUE='#' |
| 34328 | RPM_DELEGATE_FALSE= |
| 34329 | fi |
| 34330 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34331 | |
| 34332 | # |
| 34333 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 34334 | # |
| 34335 | P7ZIP='' |
| 34336 | for ac_prog in 7za |
| 34337 | do |
| 34338 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34339 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34341 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34342 | if ${ac_cv_prog_P7ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34343 | $as_echo_n "(cached) " >&6 |
| 34344 | else |
| 34345 | if test -n "$P7ZIP"; then |
| 34346 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 34347 | else |
| 34348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34349 | for as_dir in $PATH |
| 34350 | do |
| 34351 | IFS=$as_save_IFS |
| 34352 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34353 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34355 | ac_cv_prog_P7ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34356 | $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] | 34357 | break 2 |
| 34358 | fi |
| 34359 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34360 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34361 | IFS=$as_save_IFS |
| 34362 | |
| 34363 | fi |
| 34364 | fi |
| 34365 | P7ZIP=$ac_cv_prog_P7ZIP |
| 34366 | if test -n "$P7ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34368 | $as_echo "$P7ZIP" >&6; } |
| 34369 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34371 | $as_echo "no" >&6; } |
| 34372 | fi |
| 34373 | |
| 34374 | |
| 34375 | test -n "$P7ZIP" && break |
| 34376 | done |
| 34377 | |
| 34378 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34379 | if test "x$P7ZIP" != "x" ; then |
| 34380 | P7ZIP_DELEGATE_TRUE= |
| 34381 | P7ZIP_DELEGATE_FALSE='#' |
| 34382 | else |
| 34383 | P7ZIP_DELEGATE_TRUE='#' |
| 34384 | P7ZIP_DELEGATE_FALSE= |
| 34385 | fi |
| 34386 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34387 | |
| 34388 | # |
| 34389 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 34390 | # |
| 34391 | ZIP='' |
| 34392 | for ac_prog in zip |
| 34393 | do |
| 34394 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34395 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34397 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34398 | if ${ac_cv_prog_ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34399 | $as_echo_n "(cached) " >&6 |
| 34400 | else |
| 34401 | if test -n "$ZIP"; then |
| 34402 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 34403 | else |
| 34404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34405 | for as_dir in $PATH |
| 34406 | do |
| 34407 | IFS=$as_save_IFS |
| 34408 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34411 | ac_cv_prog_ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34412 | $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] | 34413 | break 2 |
| 34414 | fi |
| 34415 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34416 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34417 | IFS=$as_save_IFS |
| 34418 | |
| 34419 | fi |
| 34420 | fi |
| 34421 | ZIP=$ac_cv_prog_ZIP |
| 34422 | if test -n "$ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34424 | $as_echo "$ZIP" >&6; } |
| 34425 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34427 | $as_echo "no" >&6; } |
| 34428 | fi |
| 34429 | |
| 34430 | |
| 34431 | test -n "$ZIP" && break |
| 34432 | done |
| 34433 | |
| 34434 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34435 | if test "x$ZIP" != "x" ; then |
| 34436 | ZIP_DELEGATE_TRUE= |
| 34437 | ZIP_DELEGATE_FALSE='#' |
| 34438 | else |
| 34439 | ZIP_DELEGATE_TRUE='#' |
| 34440 | ZIP_DELEGATE_FALSE= |
| 34441 | fi |
| 34442 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34443 | |
| 34444 | # |
| 34445 | # GhostPCL related configuration. |
| 34446 | # |
| 34447 | PCLColorDevice=ppmraw |
| cristy | 8bc8408 | 2011-09-07 13:57:00 +0000 | [diff] [blame] | 34448 | PCLCMYKDevice=pamcmyk32 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34449 | PCLMonoDevice=pbmraw |
| 34450 | if test -z "$PCLVersion"; then |
| 34451 | PCLVersion='unknown' |
| 34452 | fi |
| 34453 | if test $have_pcl = 'yes'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34454 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 34455 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34457 | $as_echo_n "checking for PCL... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34458 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 34459 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34460 | # PCLColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34462 | $as_echo_n "checking for pcl color device... " >&6; } |
| 34463 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34464 | : |
| 34465 | else |
| 34466 | PCLColorDevice=ppmraw |
| 34467 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34468 | { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5 |
| 34469 | $as_echo "$as_me: $PCLColorDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34470 | |
| 34471 | # PCLCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34473 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 34474 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34475 | : |
| 34476 | else |
| 34477 | PCLCMYKDevice=$PCLColorDevice |
| 34478 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34479 | { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5 |
| 34480 | $as_echo "$as_me: $PCLCMYKDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34481 | |
| 34482 | # PCLMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34484 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 34485 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34486 | : |
| 34487 | else |
| 34488 | PCLMonoDevice=$PCLColorDevice |
| 34489 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34490 | { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5 |
| 34491 | $as_echo "$as_me: $PCLMonoDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34492 | fi |
| 34493 | |
| 34494 | |
| 34495 | |
| 34496 | |
| 34497 | |
| 34498 | |
| 34499 | # |
| 34500 | # GhostXPS related configuration. |
| 34501 | # |
| 34502 | XPSColorDevice=ppmraw |
| 34503 | XPSCMYKDevice=bmpsep8 |
| 34504 | XPSMonoDevice=pbmraw |
| 34505 | if test -z "$XPSVersion"; then |
| 34506 | XPSVersion='unknown' |
| 34507 | fi |
| 34508 | if test $have_xps = 'yes'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34509 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 34510 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34512 | $as_echo_n "checking for XPS... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34513 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 34514 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34515 | # XPSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34517 | $as_echo_n "checking for xps color device... " >&6; } |
| 34518 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34519 | : |
| 34520 | else |
| 34521 | XPSColorDevice=ppmraw |
| 34522 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34523 | { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5 |
| 34524 | $as_echo "$as_me: $XPSColorDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34525 | |
| 34526 | # XPSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34528 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 34529 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34530 | : |
| 34531 | else |
| 34532 | XPSCMYKDevice=$XPSColorDevice |
| 34533 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34534 | { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5 |
| 34535 | $as_echo "$as_me: $XPSCMYKDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34536 | |
| 34537 | # XPSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34539 | $as_echo_n "checking for xps mono device... " >&6; } |
| 34540 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34541 | : |
| 34542 | else |
| 34543 | XPSMonoDevice=$XPSColorDevice |
| 34544 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34545 | { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5 |
| 34546 | $as_echo "$as_me: $XPSMonoDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34547 | fi |
| 34548 | |
| 34549 | |
| 34550 | |
| 34551 | |
| 34552 | |
| 34553 | |
| 34554 | # |
| 34555 | # Ghostscript related configuration. |
| 34556 | # |
| cristy | a97426c | 2011-02-04 01:41:27 +0000 | [diff] [blame] | 34557 | GSAlphaDevice=pngalpha |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34558 | GSColorDevice=pnmraw |
| 34559 | GSCMYKDevice=pam |
| 34560 | GSMonoDevice=pbmraw |
| 34561 | GSPDFDevice=pdfwrite |
| 34562 | GSPSDevice=pswrite |
| 34563 | GSEPSDevice=epswrite |
| 34564 | GSVersion='unknown' |
| 34565 | if test $have_gs = 'yes'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34566 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 34567 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34569 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34570 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 34571 | $as_echo "$as_me: " >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34573 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 34574 | if GSVersion=`$PSDelegate --version`; then |
| 34575 | : |
| 34576 | else |
| 34577 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 34578 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34579 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5 |
| 34580 | $as_echo "$as_me: $GSVersion" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34581 | |
| 34582 | # GSAlphaDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34584 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 34585 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34586 | : |
| 34587 | else |
| 34588 | GSAlphaDevice=pnmraw |
| 34589 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34590 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5 |
| 34591 | $as_echo "$as_me: $GSAlphaDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34592 | |
| 34593 | # GSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34595 | $as_echo_n "checking for gs color device... " >&6; } |
| 34596 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34597 | : |
| 34598 | else |
| 34599 | GSColorDevice=pnmraw |
| 34600 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34601 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5 |
| 34602 | $as_echo "$as_me: $GSColorDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34603 | |
| 34604 | # GSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34606 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 34607 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34608 | : |
| 34609 | else |
| 34610 | GSCMYKDevice=bmpsep8 |
| 34611 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34612 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5 |
| 34613 | $as_echo "$as_me: $GSCMYKDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34614 | |
| 34615 | # GSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34617 | $as_echo_n "checking for gs mono device... " >&6; } |
| 34618 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34619 | : |
| 34620 | else |
| 34621 | GSMonoDevice=$GSColorDevice |
| 34622 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34623 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5 |
| 34624 | $as_echo "$as_me: $GSMonoDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34625 | |
| 34626 | # GSPDFDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34627 | { $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] | 34628 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 34629 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34630 | : |
| 34631 | else |
| 34632 | GSPDFDevice=nodevice |
| 34633 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34634 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5 |
| 34635 | $as_echo "$as_me: $GSPDFDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34636 | |
| 34637 | # GSPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34638 | { $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] | 34639 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 34640 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34641 | : |
| 34642 | else |
| 34643 | GSPSDevice=nodevice |
| 34644 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34645 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5 |
| 34646 | $as_echo "$as_me: $GSPSDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34647 | |
| 34648 | # GSEPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34649 | { $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] | 34650 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 34651 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34652 | : |
| 34653 | else |
| 34654 | GSEPSDevice=nodevice |
| 34655 | fi |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34656 | { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5 |
| 34657 | $as_echo "$as_me: $GSEPSDevice" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34658 | fi |
| 34659 | |
| 34660 | |
| 34661 | |
| 34662 | |
| 34663 | |
| 34664 | |
| 34665 | |
| 34666 | |
| 34667 | |
| 34668 | |
| 34669 | # |
| 34670 | # PerlMagick-related configuration |
| 34671 | # |
| 34672 | |
| 34673 | # Look for PERL if PerlMagick requested |
| 34674 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 34675 | have_perl='no' |
| 34676 | if test "$with_perl" != 'no'; then |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34677 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 34678 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34680 | $as_echo_n "checking for Perl... " >&6; } |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34681 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
| 34682 | $as_echo "$as_me: " >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34683 | if test "$with_perl" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34685 | $as_echo_n "checking for perl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34686 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34687 | $as_echo_n "(cached) " >&6 |
| 34688 | else |
| 34689 | ac_cv_path_PERL="$with_perl" |
| 34690 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34692 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 34693 | PERL=$ac_cv_path_PERL |
| 34694 | have_perl="$ac_cv_path_PERL" |
| 34695 | else |
| 34696 | for ac_prog in perl perl5 |
| 34697 | do |
| 34698 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34699 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34701 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34702 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34703 | $as_echo_n "(cached) " >&6 |
| 34704 | else |
| 34705 | case $PERL in |
| 34706 | [\\/]* | ?:[\\/]*) |
| 34707 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 34708 | ;; |
| 34709 | *) |
| 34710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34711 | for as_dir in $PATH |
| 34712 | do |
| 34713 | IFS=$as_save_IFS |
| 34714 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34717 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34718 | $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] | 34719 | break 2 |
| 34720 | fi |
| 34721 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34722 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34723 | IFS=$as_save_IFS |
| 34724 | |
| 34725 | ;; |
| 34726 | esac |
| 34727 | fi |
| 34728 | PERL=$ac_cv_path_PERL |
| 34729 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34731 | $as_echo "$PERL" >&6; } |
| 34732 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34734 | $as_echo "no" >&6; } |
| 34735 | fi |
| 34736 | |
| 34737 | |
| 34738 | test -n "$PERL" && break |
| 34739 | done |
| 34740 | if test "$ac_cv_path_PERL"; then |
| 34741 | have_perl="$ac_cv_path_PERL" |
| 34742 | fi |
| 34743 | fi |
| 34744 | fi |
| 34745 | |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 34746 | if test "$with_perl" != 'yes' ; then |
| 34747 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " |
| 34748 | fi |
| 34749 | |
| 34750 | PERL_SUPPORTS_DESTDIR='no' |
| 34751 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34752 | with_perl_static='no' |
| 34753 | with_perl_dynamic='no' |
| 34754 | if test "$have_perl" != 'no'; then |
| 34755 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 34756 | with_perl_static='yes' |
| 34757 | fi |
| 34758 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 34759 | with_perl_dynamic='yes' |
| 34760 | fi |
| 34761 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34762 | |
| 34763 | |
| 34764 | |
| 34765 | |
| 34766 | if test -n "$PERL"; then : |
| 34767 | |
| 34768 | ax_perl_version="5.8.1" |
| 34769 | |
| 34770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 |
| 34771 | $as_echo_n "checking for perl version... " >&6; } |
| 34772 | |
| 34773 | perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` |
| 34774 | |
| 34775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 |
| 34776 | $as_echo "$perl_version" >&6; } |
| 34777 | |
| 34778 | PERL_VERSION=$perl_version |
| 34779 | |
| 34780 | |
| 34781 | |
| 34782 | |
| 34783 | |
| 34784 | # Used to indicate true or false condition |
| 34785 | ax_compare_version=false |
| 34786 | |
| 34787 | # Convert the two version strings to be compared into a format that |
| 34788 | # allows a simple string comparison. The end result is that a version |
| 34789 | # string of the form 1.12.5-r617 will be converted to the form |
| 34790 | # 0001001200050617. In other words, each number is zero padded to four |
| 34791 | # digits, and non digits are removed. |
| 34792 | |
| 34793 | ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 34794 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 34795 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34796 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34797 | -e 's/[^0-9]//g'` |
| 34798 | |
| 34799 | |
| 34800 | ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 34801 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 34802 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34803 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34804 | -e 's/[^0-9]//g'` |
| 34805 | |
| 34806 | |
| 34807 | ax_compare_version=`echo "x$ax_compare_version_A |
| 34808 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` |
| 34809 | |
| 34810 | |
| 34811 | |
| 34812 | if test "$ax_compare_version" = "true" ; then |
| 34813 | |
| 34814 | : |
| 34815 | PERL_SUPPORTS_DESTDIR='yes' |
| 34816 | |
| 34817 | else |
| 34818 | : |
| 34819 | PERL_SUPPORTS_DESTDIR='no' |
| 34820 | |
| 34821 | fi |
| 34822 | |
| 34823 | |
| 34824 | else |
| 34825 | |
| 34826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 |
| 34827 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} |
| 34828 | PERL_SUPPORTS_DESTDIR='no' |
| 34829 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34830 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34831 | |
| 34832 | fi |
| 34833 | if test "$have_perl" != 'no'; then |
| 34834 | WITH_PERL_TRUE= |
| 34835 | WITH_PERL_FALSE='#' |
| 34836 | else |
| 34837 | WITH_PERL_TRUE='#' |
| 34838 | WITH_PERL_FALSE= |
| 34839 | fi |
| 34840 | |
| 34841 | if test $with_perl_static = 'yes'; then |
| 34842 | WITH_PERL_STATIC_TRUE= |
| 34843 | WITH_PERL_STATIC_FALSE='#' |
| 34844 | else |
| 34845 | WITH_PERL_STATIC_TRUE='#' |
| 34846 | WITH_PERL_STATIC_FALSE= |
| 34847 | fi |
| 34848 | |
| 34849 | if test $with_perl_dynamic = 'yes'; then |
| 34850 | WITH_PERL_DYNAMIC_TRUE= |
| 34851 | WITH_PERL_DYNAMIC_FALSE='#' |
| 34852 | else |
| 34853 | WITH_PERL_DYNAMIC_TRUE='#' |
| 34854 | WITH_PERL_DYNAMIC_FALSE= |
| 34855 | fi |
| 34856 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34857 | |
| 34858 | |
| 34859 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 34860 | MAGICKCORE_PATH="${LIB_DIR}" |
| 34861 | if test $with_perl_static = 'yes'; then |
| 34862 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 34863 | libtool_objdir=$objdir |
| 34864 | |
| 34865 | # Linker search path to library, followed by -lMagickCore |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 34866 | MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34867 | fi |
| 34868 | |
| 34869 | |
| 34870 | # Create a simple string containing format names for all delegate libraries |
| 34871 | DELEGATES='' |
| 34872 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 34873 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 34874 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 34875 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 34876 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 34877 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 34878 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 34879 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 34880 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 34881 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 34882 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 34883 | if test "$have_jpeg" = 'yes'; then |
| 34884 | DELEGATES="$DELEGATES jpeg"; |
| 34885 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 34886 | fi |
| 34887 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 34888 | if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34889 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 34890 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 34891 | if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34892 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 34893 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 34894 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 34895 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 34896 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 34897 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 34898 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 34899 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 34900 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 34901 | |
| 34902 | |
| 34903 | |
| 34904 | # |
| 34905 | # Handle special compiler flags |
| 34906 | # |
| 34907 | |
| 34908 | # Add '-p' if prof source profiling support enabled |
| 34909 | if test "$enable_prof" = 'yes'; then |
| 34910 | CFLAGS="-p $CFLAGS" |
| 34911 | CXXFLAGS="-p $CXXFLAGS" |
| 34912 | LDFLAGS="-p $LDFLAGS" |
| 34913 | fi |
| 34914 | |
| 34915 | # Add '-pg' if gprof source profiling support enabled |
| 34916 | if test "$enable_gprof" = 'yes'; then |
| 34917 | CFLAGS="-pg $CFLAGS" |
| 34918 | CXXFLAGS="-pg $CXXFLAGS" |
| 34919 | LDFLAGS="-pg $LDFLAGS" |
| 34920 | fi |
| 34921 | |
| 34922 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 34923 | # This is a gcc-specific feature |
| 34924 | if test "$enable_gcov" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34925 | { $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] | 34926 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34927 | if ${ac_cv_lib_gcov__gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34928 | $as_echo_n "(cached) " >&6 |
| 34929 | else |
| 34930 | ac_check_lib_save_LIBS=$LIBS |
| 34931 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34933 | /* end confdefs.h. */ |
| 34934 | |
| 34935 | /* Override any GCC internal prototype to avoid an error. |
| 34936 | Use char because int might match the return type of a GCC |
| 34937 | builtin and then its argument prototype would still apply. */ |
| 34938 | #ifdef __cplusplus |
| 34939 | extern "C" |
| 34940 | #endif |
| 34941 | char _gcov_init (); |
| 34942 | int |
| 34943 | main () |
| 34944 | { |
| 34945 | return _gcov_init (); |
| 34946 | ; |
| 34947 | return 0; |
| 34948 | } |
| 34949 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34950 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34951 | ac_cv_lib_gcov__gcov_init=yes |
| 34952 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34953 | ac_cv_lib_gcov__gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34954 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34955 | rm -f core conftest.err conftest.$ac_objext \ |
| 34956 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34957 | LIBS=$ac_check_lib_save_LIBS |
| 34958 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34959 | { $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] | 34960 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34961 | if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34962 | cat >>confdefs.h <<_ACEOF |
| 34963 | #define HAVE_LIBGCOV 1 |
| 34964 | _ACEOF |
| 34965 | |
| 34966 | LIBS="-lgcov $LIBS" |
| 34967 | |
| 34968 | fi |
| 34969 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34970 | { $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] | 34971 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34972 | if ${ac_cv_lib_gcov___gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34973 | $as_echo_n "(cached) " >&6 |
| 34974 | else |
| 34975 | ac_check_lib_save_LIBS=$LIBS |
| 34976 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34978 | /* end confdefs.h. */ |
| 34979 | |
| 34980 | /* Override any GCC internal prototype to avoid an error. |
| 34981 | Use char because int might match the return type of a GCC |
| 34982 | builtin and then its argument prototype would still apply. */ |
| 34983 | #ifdef __cplusplus |
| 34984 | extern "C" |
| 34985 | #endif |
| 34986 | char __gcov_init (); |
| 34987 | int |
| 34988 | main () |
| 34989 | { |
| 34990 | return __gcov_init (); |
| 34991 | ; |
| 34992 | return 0; |
| 34993 | } |
| 34994 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34995 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34996 | ac_cv_lib_gcov___gcov_init=yes |
| 34997 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34998 | ac_cv_lib_gcov___gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34999 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35000 | rm -f core conftest.err conftest.$ac_objext \ |
| 35001 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35002 | LIBS=$ac_check_lib_save_LIBS |
| 35003 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35004 | { $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] | 35005 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35006 | if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35007 | cat >>confdefs.h <<_ACEOF |
| 35008 | #define HAVE_LIBGCOV 1 |
| 35009 | _ACEOF |
| 35010 | |
| 35011 | LIBS="-lgcov $LIBS" |
| 35012 | |
| 35013 | fi |
| 35014 | |
| 35015 | case "$target_os" in |
| 35016 | darwin*) |
| 35017 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 35018 | ;; |
| 35019 | *) |
| 35020 | OSX_GCOV_LDFLAG="" |
| 35021 | ;; |
| 35022 | esac |
| 35023 | |
| 35024 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 35025 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 35026 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 35027 | fi |
| 35028 | |
| 35029 | # |
| 35030 | # Build library dependency list for libMagickCore |
| 35031 | # |
| 35032 | |
| 35033 | MAGICK_LIBLTDL='' # Libltdl for build |
| 35034 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 35035 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 35036 | if test "$with_ltdl" != 'no' |
| 35037 | then |
| 35038 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 35039 | MAGICK_API_LIBLTDL='-lltdl' |
| 35040 | fi |
| 35041 | MAGICK_LIBLTDL=${LIBLTDL} |
| 35042 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 35043 | fi |
| 35044 | |
| 35045 | |
| 35046 | |
| 35047 | if test "$with_modules" != 'no'; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35048 | 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 $LZMA_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] | 35049 | else |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 35050 | MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35051 | fi |
| 35052 | |
| 35053 | |
| 35054 | # |
| 35055 | # Remove extraneous spaces from output variables (asthetic) |
| 35056 | # |
| 35057 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 35058 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 35059 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 35060 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 35061 | |
| 35062 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 35063 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 35064 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 35065 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 35066 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 35067 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 35068 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 35069 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 35070 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 35071 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 35072 | |
| 35073 | # Pass only user-provided LIBS as "global" libraries |
| 35074 | LIBS=$USER_LIBS |
| 35075 | |
| 35076 | #AC_SUBST(CPPFLAGS) |
| 35077 | |
| 35078 | #AC_SUBST(LDFLAGS) |
| 35079 | #AC_SUBST(X_PRE_LIBS) |
| 35080 | #AC_SUBST(X_LIBS) |
| 35081 | #AC_SUBST(X_EXTRA_LIBS) |
| 35082 | |
| 35083 | MAGICK_CFLAGS=$CFLAGS |
| 35084 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 35085 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 35086 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 35087 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 35088 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 35089 | |
| 35090 | |
| 35091 | |
| 35092 | |
| 35093 | |
| 35094 | |
| 35095 | |
| 35096 | |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 35097 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35098 | # Set configured scripts to executable. |
| 35099 | ac_config_commands="$ac_config_commands default" |
| 35100 | |
| 35101 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 35102 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35103 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 35104 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35105 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 35106 | |
| 35107 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 35108 | |
| 35109 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 35110 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 |
| 35111 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} |
| 35112 | { $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5 |
| 35113 | $as_echo "$as_me: Update ImageMagick configuration" >&6;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35114 | cat >confcache <<\_ACEOF |
| 35115 | # This file is a shell script that caches the results of configure |
| 35116 | # tests run on this system so they can be shared between configure |
| 35117 | # scripts and configure runs, see configure's option --config-cache. |
| 35118 | # It is not useful on other systems. If it contains results you don't |
| 35119 | # want to keep, you may remove or edit it. |
| 35120 | # |
| 35121 | # config.status only pays attention to the cache file if you give it |
| 35122 | # the --recheck option to rerun configure. |
| 35123 | # |
| 35124 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 35125 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35126 | # following values. |
| 35127 | |
| 35128 | _ACEOF |
| 35129 | |
| 35130 | # The following way of writing the cache mishandles newlines in values, |
| 35131 | # but we know of no workaround that is simple, portable, and efficient. |
| 35132 | # So, we kill variables containing newlines. |
| 35133 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35134 | # and sets the high bit in the cache file unless we assign to the vars. |
| 35135 | ( |
| 35136 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35137 | eval ac_val=\$$ac_var |
| 35138 | case $ac_val in #( |
| 35139 | *${as_nl}*) |
| 35140 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35141 | *_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] | 35142 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 35143 | esac |
| 35144 | case $ac_var in #( |
| 35145 | _ | IFS | as_nl) ;; #( |
| 35146 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35147 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35148 | esac ;; |
| 35149 | esac |
| 35150 | done |
| 35151 | |
| 35152 | (set) 2>&1 | |
| 35153 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35154 | *${as_nl}ac_space=\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35155 | # `set' does not quote correctly, so add quotes: double-quote |
| 35156 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35157 | sed -n \ |
| 35158 | "s/'/'\\\\''/g; |
| 35159 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 35160 | ;; #( |
| 35161 | *) |
| 35162 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 35163 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 35164 | ;; |
| 35165 | esac | |
| 35166 | sort |
| 35167 | ) | |
| 35168 | sed ' |
| 35169 | /^ac_cv_env_/b end |
| 35170 | t clear |
| 35171 | :clear |
| 35172 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35173 | t end |
| 35174 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35175 | :end' >>confcache |
| 35176 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35177 | if test -w "$cache_file"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35178 | if test "x$cache_file" != "x/dev/null"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35179 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35180 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35181 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 35182 | cat confcache >"$cache_file" |
| 35183 | else |
| 35184 | case $cache_file in #( |
| 35185 | */* | ?:*) |
| 35186 | mv -f confcache "$cache_file"$$ && |
| 35187 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 35188 | *) |
| 35189 | mv -f confcache "$cache_file" ;; |
| 35190 | esac |
| 35191 | fi |
| 35192 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35193 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35194 | { $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] | 35195 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 35196 | fi |
| 35197 | fi |
| 35198 | rm -f confcache |
| 35199 | |
| 35200 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35201 | # Let make expand exec_prefix. |
| 35202 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35203 | |
| 35204 | DEFS=-DHAVE_CONFIG_H |
| 35205 | |
| 35206 | ac_libobjs= |
| 35207 | ac_ltlibobjs= |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35208 | U= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35209 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35210 | # 1. Remove the extension, and $U if already installed. |
| 35211 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35212 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 35213 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35214 | # will be set to the directory where LIBOBJS objects are built. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35215 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35216 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35217 | done |
| 35218 | LIBOBJS=$ac_libobjs |
| 35219 | |
| 35220 | LTLIBOBJS=$ac_ltlibobjs |
| 35221 | |
| 35222 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35223 | if test -n "$EXEEXT"; then |
| 35224 | am__EXEEXT_TRUE= |
| 35225 | am__EXEEXT_FALSE='#' |
| 35226 | else |
| 35227 | am__EXEEXT_TRUE='#' |
| 35228 | am__EXEEXT_FALSE= |
| 35229 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35230 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35231 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35232 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35233 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35234 | fi |
| 35235 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35236 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35237 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35238 | fi |
| 35239 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35240 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35241 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35242 | fi |
| 35243 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35244 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35245 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35246 | fi |
| 35247 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35248 | as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35249 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35250 | fi |
| 35251 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35252 | as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35253 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35254 | fi |
| 35255 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35256 | as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35257 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35258 | fi |
| 35259 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35260 | as_fn_error $? "conditional \"USING_CL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35261 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35262 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35263 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35264 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35265 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35266 | fi |
| 35267 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35268 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35269 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35270 | fi |
| 35271 | LT_CONFIG_H=config/config.h |
| 35272 | |
| 35273 | _ltdl_libobjs= |
| 35274 | _ltdl_ltlibobjs= |
| 35275 | if test -n "$_LT_LIBOBJS"; then |
| 35276 | # Remove the extension. |
| 35277 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 35278 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 35279 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 35280 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 35281 | done |
| 35282 | fi |
| 35283 | ltdl_LIBOBJS=$_ltdl_libobjs |
| 35284 | |
| 35285 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 35286 | |
| 35287 | |
| 35288 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35289 | as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35290 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35291 | fi |
| 35292 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35293 | as_fn_error $? "conditional \"WITH_MODULES\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35294 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35295 | fi |
| 35296 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35297 | as_fn_error $? "conditional \"WITH_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35298 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35299 | fi |
| 35300 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35301 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35302 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35303 | fi |
| 35304 | |
| 35305 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35306 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35308 | fi |
| 35309 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35310 | as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35312 | fi |
| 35313 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35314 | as_fn_error $? "conditional \"HasUMEM\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35316 | fi |
| 35317 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35318 | as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35320 | fi |
| 35321 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35322 | as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35324 | fi |
| 35325 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35326 | as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35327 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35328 | fi |
| 35329 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35330 | as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35331 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35332 | fi |
| 35333 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35334 | as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35335 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35336 | fi |
| 35337 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35338 | as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35339 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35340 | fi |
| 35341 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35342 | as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35343 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35344 | fi |
| 35345 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35346 | as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35347 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35348 | fi |
| 35349 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35350 | as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35351 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35352 | fi |
| 35353 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35354 | as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35355 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35356 | fi |
| 35357 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35358 | as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35359 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35360 | fi |
| 35361 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35362 | as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35363 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35364 | fi |
| 35365 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35366 | as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35367 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35368 | fi |
| 35369 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35370 | as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35371 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35372 | fi |
| 35373 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35374 | as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35375 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35376 | fi |
| 35377 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35378 | as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35379 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35380 | fi |
| 35381 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35382 | as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35383 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35384 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35385 | if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then |
| 35386 | as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. |
| 35387 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35388 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35389 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35390 | as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35391 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35392 | fi |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 35393 | if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then |
| 35394 | as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. |
| 35395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35396 | fi |
| 35397 | if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then |
| 35398 | as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined. |
| 35399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35400 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35401 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35402 | as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35403 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35404 | fi |
| 35405 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35406 | as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35407 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35408 | fi |
| 35409 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35410 | as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35411 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35412 | fi |
| 35413 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35414 | as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35415 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35416 | fi |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 35417 | if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then |
| 35418 | as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. |
| 35419 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35420 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35421 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35422 | as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35423 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35424 | fi |
| 35425 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35426 | as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35427 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35428 | fi |
| 35429 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35430 | as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35431 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35432 | fi |
| 35433 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35434 | as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35435 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35436 | fi |
| 35437 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35438 | as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35439 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35440 | fi |
| 35441 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35442 | as_fn_error $? "conditional \"WITH_PERL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35443 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35444 | fi |
| 35445 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35446 | as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35447 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35448 | fi |
| 35449 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35450 | as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35451 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35452 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35453 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35454 | : "${CONFIG_STATUS=./config.status}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35455 | ac_write_fail=0 |
| 35456 | ac_clean_files_save=$ac_clean_files |
| 35457 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35458 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35459 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35460 | as_write_fail=0 |
| 35461 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35462 | #! $SHELL |
| 35463 | # Generated by $as_me. |
| 35464 | # Run this file to recreate the current configuration. |
| 35465 | # Compiler output produced by configure, useful for debugging |
| 35466 | # configure, is in config.log if it exists. |
| 35467 | |
| 35468 | debug=false |
| 35469 | ac_cs_recheck=false |
| 35470 | ac_cs_silent=false |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35471 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35472 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35473 | export SHELL |
| 35474 | _ASEOF |
| 35475 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 35476 | ## -------------------- ## |
| 35477 | ## M4sh Initialization. ## |
| 35478 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35479 | |
| 35480 | # Be more Bourne compatible |
| 35481 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35482 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35483 | emulate sh |
| 35484 | NULLCMD=: |
| 35485 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 35486 | # is contrary to our usage. Disable this feature. |
| 35487 | alias -g '${1+"$@"}'='"$@"' |
| 35488 | setopt NO_GLOB_SUBST |
| 35489 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35490 | case `(set -o) 2>/dev/null` in #( |
| 35491 | *posix*) : |
| 35492 | set -o posix ;; #( |
| 35493 | *) : |
| 35494 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35495 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35496 | fi |
| 35497 | |
| 35498 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35499 | as_nl=' |
| 35500 | ' |
| 35501 | export as_nl |
| 35502 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 35503 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 35504 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 35505 | 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] | 35506 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 35507 | # but without wasting forks for bash or zsh. |
| 35508 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 35509 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 35510 | as_echo='print -r --' |
| 35511 | as_echo_n='print -rn --' |
| 35512 | 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] | 35513 | as_echo='printf %s\n' |
| 35514 | as_echo_n='printf %s' |
| 35515 | else |
| 35516 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 35517 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 35518 | as_echo_n='/usr/ucb/echo -n' |
| 35519 | else |
| 35520 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 35521 | as_echo_n_body='eval |
| 35522 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35523 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35524 | *"$as_nl"*) |
| 35525 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 35526 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 35527 | esac; |
| 35528 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 35529 | ' |
| 35530 | export as_echo_n_body |
| 35531 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 35532 | fi |
| 35533 | export as_echo_body |
| 35534 | as_echo='sh -c $as_echo_body as_echo' |
| 35535 | fi |
| 35536 | |
| 35537 | # The user is always right. |
| 35538 | if test "${PATH_SEPARATOR+set}" != set; then |
| 35539 | PATH_SEPARATOR=: |
| 35540 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 35541 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 35542 | PATH_SEPARATOR=';' |
| 35543 | } |
| 35544 | fi |
| 35545 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35546 | |
| 35547 | # IFS |
| 35548 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35549 | # there to prevent editors from complaining about space-tab. |
| 35550 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35551 | # splitting by setting IFS to empty value.) |
| 35552 | IFS=" "" $as_nl" |
| 35553 | |
| 35554 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35555 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35556 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35557 | *[\\/]* ) as_myself=$0 ;; |
| 35558 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35559 | for as_dir in $PATH |
| 35560 | do |
| 35561 | IFS=$as_save_IFS |
| 35562 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35563 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35564 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35565 | IFS=$as_save_IFS |
| 35566 | |
| 35567 | ;; |
| 35568 | esac |
| 35569 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35570 | # in which case we are not to be found in the path. |
| 35571 | if test "x$as_myself" = x; then |
| 35572 | as_myself=$0 |
| 35573 | fi |
| 35574 | if test ! -f "$as_myself"; then |
| 35575 | $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] | 35576 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35577 | fi |
| 35578 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35579 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 35580 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 35581 | # suppresses any "Segmentation fault" message there. '((' could |
| 35582 | # trigger a bug in pdksh 5.2.14. |
| 35583 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 35584 | do eval test x\${$as_var+set} = xset \ |
| 35585 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35586 | done |
| 35587 | PS1='$ ' |
| 35588 | PS2='> ' |
| 35589 | PS4='+ ' |
| 35590 | |
| 35591 | # NLS nuisances. |
| 35592 | LC_ALL=C |
| 35593 | export LC_ALL |
| 35594 | LANGUAGE=C |
| 35595 | export LANGUAGE |
| 35596 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35597 | # CDPATH. |
| 35598 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 35599 | |
| 35600 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35601 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 35602 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35603 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 35604 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35605 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35606 | as_fn_error () |
| 35607 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35608 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 35609 | if test "$4"; then |
| 35610 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 35611 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35612 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35613 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35614 | as_fn_exit $as_status |
| 35615 | } # as_fn_error |
| 35616 | |
| 35617 | |
| 35618 | # as_fn_set_status STATUS |
| 35619 | # ----------------------- |
| 35620 | # Set $? to STATUS, without forking. |
| 35621 | as_fn_set_status () |
| 35622 | { |
| 35623 | return $1 |
| 35624 | } # as_fn_set_status |
| 35625 | |
| 35626 | # as_fn_exit STATUS |
| 35627 | # ----------------- |
| 35628 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 35629 | as_fn_exit () |
| 35630 | { |
| 35631 | set +e |
| 35632 | as_fn_set_status $1 |
| 35633 | exit $1 |
| 35634 | } # as_fn_exit |
| 35635 | |
| 35636 | # as_fn_unset VAR |
| 35637 | # --------------- |
| 35638 | # Portably unset VAR. |
| 35639 | as_fn_unset () |
| 35640 | { |
| 35641 | { eval $1=; unset $1;} |
| 35642 | } |
| 35643 | as_unset=as_fn_unset |
| 35644 | # as_fn_append VAR VALUE |
| 35645 | # ---------------------- |
| 35646 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 35647 | # advantage of any shell optimizations that allow amortized linear growth over |
| 35648 | # repeated appends, instead of the typical quadratic growth present in naive |
| 35649 | # implementations. |
| 35650 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 35651 | eval 'as_fn_append () |
| 35652 | { |
| 35653 | eval $1+=\$2 |
| 35654 | }' |
| 35655 | else |
| 35656 | as_fn_append () |
| 35657 | { |
| 35658 | eval $1=\$$1\$2 |
| 35659 | } |
| 35660 | fi # as_fn_append |
| 35661 | |
| 35662 | # as_fn_arith ARG... |
| 35663 | # ------------------ |
| 35664 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 35665 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 35666 | # must be portable across $(()) and expr. |
| 35667 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 35668 | eval 'as_fn_arith () |
| 35669 | { |
| 35670 | as_val=$(( $* )) |
| 35671 | }' |
| 35672 | else |
| 35673 | as_fn_arith () |
| 35674 | { |
| 35675 | as_val=`expr "$@" || test $? -eq 1` |
| 35676 | } |
| 35677 | fi # as_fn_arith |
| 35678 | |
| 35679 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35680 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35681 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35682 | as_expr=expr |
| 35683 | else |
| 35684 | as_expr=false |
| 35685 | fi |
| 35686 | |
| 35687 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35688 | as_basename=basename |
| 35689 | else |
| 35690 | as_basename=false |
| 35691 | fi |
| 35692 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35693 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35694 | as_dirname=dirname |
| 35695 | else |
| 35696 | as_dirname=false |
| 35697 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35698 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35699 | as_me=`$as_basename -- "$0" || |
| 35700 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35701 | X"$0" : 'X\(//\)$' \| \ |
| 35702 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35703 | $as_echo X/"$0" | |
| 35704 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35705 | s//\1/ |
| 35706 | q |
| 35707 | } |
| 35708 | /^X\/\(\/\/\)$/{ |
| 35709 | s//\1/ |
| 35710 | q |
| 35711 | } |
| 35712 | /^X\/\(\/\).*/{ |
| 35713 | s//\1/ |
| 35714 | q |
| 35715 | } |
| 35716 | s/.*/./; q'` |
| 35717 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35718 | # Avoid depending upon Character Ranges. |
| 35719 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35720 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35721 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35722 | as_cr_digits='0123456789' |
| 35723 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35724 | |
| 35725 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35726 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35727 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35728 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35729 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35730 | xy) ECHO_C='\c';; |
| 35731 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 35732 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35733 | esac;; |
| 35734 | *) |
| 35735 | ECHO_N='-n';; |
| 35736 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35737 | |
| 35738 | rm -f conf$$ conf$$.exe conf$$.file |
| 35739 | if test -d conf$$.dir; then |
| 35740 | rm -f conf$$.dir/conf$$.file |
| 35741 | else |
| 35742 | rm -f conf$$.dir |
| 35743 | mkdir conf$$.dir 2>/dev/null |
| 35744 | fi |
| 35745 | if (echo >conf$$.file) 2>/dev/null; then |
| 35746 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 35747 | as_ln_s='ln -s' |
| 35748 | # ... but there are two gotchas: |
| 35749 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35750 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35751 | # In both cases, we have to default to `cp -p'. |
| 35752 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 35753 | as_ln_s='cp -p' |
| 35754 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35755 | as_ln_s=ln |
| 35756 | else |
| 35757 | as_ln_s='cp -p' |
| 35758 | fi |
| 35759 | else |
| 35760 | as_ln_s='cp -p' |
| 35761 | fi |
| 35762 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35763 | rmdir conf$$.dir 2>/dev/null |
| 35764 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35765 | |
| 35766 | # as_fn_mkdir_p |
| 35767 | # ------------- |
| 35768 | # Create "$as_dir" as a directory, including parents if necessary. |
| 35769 | as_fn_mkdir_p () |
| 35770 | { |
| 35771 | |
| 35772 | case $as_dir in #( |
| 35773 | -*) as_dir=./$as_dir;; |
| 35774 | esac |
| 35775 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 35776 | as_dirs= |
| 35777 | while :; do |
| 35778 | case $as_dir in #( |
| 35779 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 35780 | *) as_qdir=$as_dir;; |
| 35781 | esac |
| 35782 | as_dirs="'$as_qdir' $as_dirs" |
| 35783 | as_dir=`$as_dirname -- "$as_dir" || |
| 35784 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 35785 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35786 | X"$as_dir" : 'X\(//\)$' \| \ |
| 35787 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 35788 | $as_echo X"$as_dir" | |
| 35789 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35790 | s//\1/ |
| 35791 | q |
| 35792 | } |
| 35793 | /^X\(\/\/\)[^/].*/{ |
| 35794 | s//\1/ |
| 35795 | q |
| 35796 | } |
| 35797 | /^X\(\/\/\)$/{ |
| 35798 | s//\1/ |
| 35799 | q |
| 35800 | } |
| 35801 | /^X\(\/\).*/{ |
| 35802 | s//\1/ |
| 35803 | q |
| 35804 | } |
| 35805 | s/.*/./; q'` |
| 35806 | test -d "$as_dir" && break |
| 35807 | done |
| 35808 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35809 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35810 | |
| 35811 | |
| 35812 | } # as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35813 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35814 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35815 | else |
| 35816 | test -d ./-p && rmdir ./-p |
| 35817 | as_mkdir_p=false |
| 35818 | fi |
| 35819 | |
| 35820 | if test -x / >/dev/null 2>&1; then |
| 35821 | as_test_x='test -x' |
| 35822 | else |
| 35823 | if ls -dL / >/dev/null 2>&1; then |
| 35824 | as_ls_L_option=L |
| 35825 | else |
| 35826 | as_ls_L_option= |
| 35827 | fi |
| 35828 | as_test_x=' |
| 35829 | eval sh -c '\'' |
| 35830 | if test -d "$1"; then |
| 35831 | test -d "$1/."; |
| 35832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35833 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35834 | -*)set "./$1";; |
| 35835 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35836 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35837 | ???[sx]*):;;*)false;;esac;fi |
| 35838 | '\'' sh |
| 35839 | ' |
| 35840 | fi |
| 35841 | as_executable_p=$as_test_x |
| 35842 | |
| 35843 | # Sed expression to map a string onto a valid CPP name. |
| 35844 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 35845 | |
| 35846 | # Sed expression to map a string onto a valid variable name. |
| 35847 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 35848 | |
| 35849 | |
| 35850 | exec 6>&1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35851 | ## ----------------------------------- ## |
| 35852 | ## Main body of $CONFIG_STATUS script. ## |
| 35853 | ## ----------------------------------- ## |
| 35854 | _ASEOF |
| 35855 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35856 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35857 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35858 | # Save the log message, to keep $0 and so on meaningful, and to |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35859 | # report actual input values of CONFIG_FILES etc. instead of their |
| 35860 | # values after options handling. |
| 35861 | ac_log=" |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 35862 | This file was extended by ImageMagick $as_me 7.0.0-0, which was |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35863 | generated by GNU Autoconf 2.68. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35864 | |
| 35865 | CONFIG_FILES = $CONFIG_FILES |
| 35866 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35867 | CONFIG_LINKS = $CONFIG_LINKS |
| 35868 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35869 | $ $0 $@ |
| 35870 | |
| 35871 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35872 | " |
| 35873 | |
| 35874 | _ACEOF |
| 35875 | |
| 35876 | case $ac_config_files in *" |
| 35877 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 35878 | esac |
| 35879 | |
| 35880 | case $ac_config_headers in *" |
| 35881 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 35882 | esac |
| 35883 | |
| 35884 | |
| 35885 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35886 | # Files that config.status was made for. |
| 35887 | config_files="$ac_config_files" |
| 35888 | config_headers="$ac_config_headers" |
| 35889 | config_commands="$ac_config_commands" |
| 35890 | |
| 35891 | _ACEOF |
| 35892 | |
| 35893 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35894 | ac_cs_usage="\ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35895 | \`$as_me' instantiates files and other configuration actions |
| 35896 | from templates according to the current configuration. Unless the files |
| 35897 | and actions are specified as TAGs, all are instantiated by default. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35898 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35899 | Usage: $0 [OPTION]... [TAG]... |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35900 | |
| 35901 | -h, --help print this help, then exit |
| 35902 | -V, --version print version number and configuration settings, then exit |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35903 | --config print configuration, then exit |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35904 | -q, --quiet, --silent |
| 35905 | do not print progress messages |
| 35906 | -d, --debug don't remove temporary files |
| 35907 | --recheck update $as_me by reconfiguring in the same conditions |
| 35908 | --file=FILE[:TEMPLATE] |
| 35909 | instantiate the configuration file FILE |
| 35910 | --header=FILE[:TEMPLATE] |
| 35911 | instantiate the configuration header FILE |
| 35912 | |
| 35913 | Configuration files: |
| 35914 | $config_files |
| 35915 | |
| 35916 | Configuration headers: |
| 35917 | $config_headers |
| 35918 | |
| 35919 | Configuration commands: |
| 35920 | $config_commands |
| 35921 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35922 | Report bugs to <http://www.imagemagick.org>." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35923 | |
| 35924 | _ACEOF |
| 35925 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35926 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35927 | ac_cs_version="\\ |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 35928 | ImageMagick config.status 7.0.0-0 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35929 | configured by $0, generated by GNU Autoconf 2.68, |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35930 | with options \\"\$ac_cs_config\\" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35931 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35932 | Copyright (C) 2010 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35933 | This config.status script is free software; the Free Software Foundation |
| 35934 | gives unlimited permission to copy, distribute and modify it." |
| 35935 | |
| 35936 | ac_pwd='$ac_pwd' |
| 35937 | srcdir='$srcdir' |
| 35938 | INSTALL='$INSTALL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35939 | MKDIR_P='$MKDIR_P' |
| 35940 | AWK='$AWK' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35941 | test -n "\$AWK" || AWK=awk |
| 35942 | _ACEOF |
| 35943 | |
| 35944 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35945 | # The default lists apply if the user does not specify any file. |
| 35946 | ac_need_defaults=: |
| 35947 | while test $# != 0 |
| 35948 | do |
| 35949 | case $1 in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35950 | --*=?*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35951 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35952 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 35953 | ac_shift=: |
| 35954 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35955 | --*=) |
| 35956 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35957 | ac_optarg= |
| 35958 | ac_shift=: |
| 35959 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35960 | *) |
| 35961 | ac_option=$1 |
| 35962 | ac_optarg=$2 |
| 35963 | ac_shift=shift |
| 35964 | ;; |
| 35965 | esac |
| 35966 | |
| 35967 | case $ac_option in |
| 35968 | # Handling of the options. |
| 35969 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35970 | ac_cs_recheck=: ;; |
| 35971 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35972 | $as_echo "$ac_cs_version"; exit ;; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35973 | --config | --confi | --conf | --con | --co | --c ) |
| 35974 | $as_echo "$ac_cs_config"; exit ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35975 | --debug | --debu | --deb | --de | --d | -d ) |
| 35976 | debug=: ;; |
| 35977 | --file | --fil | --fi | --f ) |
| 35978 | $ac_shift |
| 35979 | case $ac_optarg in |
| 35980 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35981 | '') as_fn_error $? "missing file argument" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35982 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35983 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35984 | ac_need_defaults=false;; |
| 35985 | --header | --heade | --head | --hea ) |
| 35986 | $ac_shift |
| 35987 | case $ac_optarg in |
| 35988 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35989 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35990 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35991 | ac_need_defaults=false;; |
| 35992 | --he | --h) |
| 35993 | # Conflict between --help and --header |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35994 | as_fn_error $? "ambiguous option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35995 | Try \`$0 --help' for more information.";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35996 | --help | --hel | -h ) |
| 35997 | $as_echo "$ac_cs_usage"; exit ;; |
| 35998 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35999 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 36000 | ac_cs_silent=: ;; |
| 36001 | |
| 36002 | # This is an error. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36003 | -*) as_fn_error $? "unrecognized option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36004 | Try \`$0 --help' for more information." ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36005 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36006 | *) as_fn_append ac_config_targets " $1" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36007 | ac_need_defaults=false ;; |
| 36008 | |
| 36009 | esac |
| 36010 | shift |
| 36011 | done |
| 36012 | |
| 36013 | ac_configure_extra_args= |
| 36014 | |
| 36015 | if $ac_cs_silent; then |
| 36016 | exec 6>/dev/null |
| 36017 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 36018 | fi |
| 36019 | |
| 36020 | _ACEOF |
| 36021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36022 | if \$ac_cs_recheck; then |
| 36023 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 36024 | shift |
| 36025 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 36026 | CONFIG_SHELL='$SHELL' |
| 36027 | export CONFIG_SHELL |
| 36028 | exec "\$@" |
| 36029 | fi |
| 36030 | |
| 36031 | _ACEOF |
| 36032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36033 | exec 5>>config.log |
| 36034 | { |
| 36035 | echo |
| 36036 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 36037 | ## Running $as_me. ## |
| 36038 | _ASBOX |
| 36039 | $as_echo "$ac_log" |
| 36040 | } >&5 |
| 36041 | |
| 36042 | _ACEOF |
| 36043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36044 | # |
| 36045 | # INIT-COMMANDS |
| 36046 | # |
| 36047 | PACKAGE="$PACKAGE" |
| 36048 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 36049 | |
| 36050 | |
| 36051 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 36052 | # if CDPATH is set. |
| 36053 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 36054 | |
| 36055 | sed_quote_subst='$sed_quote_subst' |
| 36056 | double_quote_subst='$double_quote_subst' |
| 36057 | delay_variable_subst='$delay_variable_subst' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36058 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 36059 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 36060 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 36061 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 36062 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 36063 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 36064 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 36065 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 36066 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 36067 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 36068 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 36069 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 36070 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 36071 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 36072 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 36073 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 36074 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 36075 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 36076 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 36077 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 36078 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 36079 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 36080 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 36081 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 36082 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 36083 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 36084 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 36085 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 36086 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 36087 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 36088 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36089 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 36090 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36091 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 36092 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 36093 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 36094 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36095 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 36096 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 36097 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36098 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 36099 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36100 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36101 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 36102 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 36103 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36104 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36105 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 36106 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 36107 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 36108 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 36109 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 36110 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 36111 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 36112 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 36113 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 36114 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36115 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 36116 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36117 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 36118 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 36119 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36120 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36121 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36122 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 36123 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 36124 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36125 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36126 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 36127 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 36128 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 36129 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 36130 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 36131 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 36132 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 36133 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 36134 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 36135 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 36136 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 36137 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 36138 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 36139 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 36140 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 36141 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 36142 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 36143 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 36144 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 36145 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 36146 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 36147 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 36148 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 36149 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 36150 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 36151 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 36152 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 36153 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 36154 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 36155 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 36156 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 36157 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36158 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 36159 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 36160 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 36161 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 36162 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36163 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36164 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 36165 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 36166 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 36167 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 36168 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 36169 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 36170 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 36171 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 36172 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 36173 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 36174 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 36175 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 36176 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36177 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36178 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 36179 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 36180 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 36181 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 36182 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 36183 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 36184 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 36185 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 36186 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 36187 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 36188 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 36189 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 36190 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 36191 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 36192 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 36193 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 36194 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 36195 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 36196 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36197 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36198 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36199 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 36200 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 36201 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36202 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36203 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36204 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 36205 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 36206 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 36207 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 36208 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36209 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36210 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 36211 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36212 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36213 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36214 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36215 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36216 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36217 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 36218 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36219 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36220 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36221 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 36222 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 36223 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 36224 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 36225 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 36226 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 36227 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 36228 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 36229 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36230 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 36231 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36232 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 36233 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 36234 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36235 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36236 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36237 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 36238 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 36239 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 36240 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 36241 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 36242 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 36243 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36244 | |
| 36245 | LTCC='$LTCC' |
| 36246 | LTCFLAGS='$LTCFLAGS' |
| 36247 | compiler='$compiler_DEFAULT' |
| 36248 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36249 | # A function that is used when there is no print builtin or printf. |
| 36250 | func_fallback_echo () |
| 36251 | { |
| 36252 | eval 'cat <<_LTECHO_EOF |
| 36253 | \$1 |
| 36254 | _LTECHO_EOF' |
| 36255 | } |
| 36256 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36257 | # Quote evaled strings. |
| 36258 | for var in SED \ |
| 36259 | GREP \ |
| 36260 | EGREP \ |
| 36261 | FGREP \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36262 | SHELL \ |
| 36263 | ECHO \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36264 | LD \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36265 | AS \ |
| 36266 | DLLTOOL \ |
| 36267 | OBJDUMP \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36268 | NM \ |
| 36269 | LN_S \ |
| 36270 | lt_SP2NL \ |
| 36271 | lt_NL2SP \ |
| 36272 | reload_flag \ |
| 36273 | deplibs_check_method \ |
| 36274 | file_magic_cmd \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36275 | file_magic_glob \ |
| 36276 | want_nocaseglob \ |
| 36277 | sharedlib_from_linklib_cmd \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36278 | AR \ |
| 36279 | AR_FLAGS \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36280 | archiver_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36281 | STRIP \ |
| 36282 | RANLIB \ |
| 36283 | CC \ |
| 36284 | CFLAGS \ |
| 36285 | compiler \ |
| 36286 | lt_cv_sys_global_symbol_pipe \ |
| 36287 | lt_cv_sys_global_symbol_to_cdecl \ |
| 36288 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 36289 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36290 | nm_file_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36291 | lt_prog_compiler_no_builtin_flag \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36292 | lt_prog_compiler_pic \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36293 | lt_prog_compiler_wl \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36294 | lt_prog_compiler_static \ |
| 36295 | lt_cv_prog_compiler_c_o \ |
| 36296 | need_locks \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36297 | MANIFEST_TOOL \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36298 | DSYMUTIL \ |
| 36299 | NMEDIT \ |
| 36300 | LIPO \ |
| 36301 | OTOOL \ |
| 36302 | OTOOL64 \ |
| 36303 | shrext_cmds \ |
| 36304 | export_dynamic_flag_spec \ |
| 36305 | whole_archive_flag_spec \ |
| 36306 | compiler_needs_object \ |
| 36307 | with_gnu_ld \ |
| 36308 | allow_undefined_flag \ |
| 36309 | no_undefined_flag \ |
| 36310 | hardcode_libdir_flag_spec \ |
| 36311 | hardcode_libdir_flag_spec_ld \ |
| 36312 | hardcode_libdir_separator \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36313 | exclude_expsyms \ |
| 36314 | include_expsyms \ |
| 36315 | file_list_spec \ |
| 36316 | variables_saved_for_relink \ |
| 36317 | libname_spec \ |
| 36318 | library_names_spec \ |
| 36319 | soname_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36320 | install_override_mode \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36321 | finish_eval \ |
| 36322 | old_striplib \ |
| 36323 | striplib \ |
| 36324 | compiler_lib_search_dirs \ |
| 36325 | predep_objects \ |
| 36326 | postdep_objects \ |
| 36327 | predeps \ |
| 36328 | postdeps \ |
| 36329 | compiler_lib_search_path \ |
| 36330 | LD_CXX \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36331 | reload_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36332 | compiler_CXX \ |
| 36333 | lt_prog_compiler_no_builtin_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36334 | lt_prog_compiler_pic_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36335 | lt_prog_compiler_wl_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36336 | lt_prog_compiler_static_CXX \ |
| 36337 | lt_cv_prog_compiler_c_o_CXX \ |
| 36338 | export_dynamic_flag_spec_CXX \ |
| 36339 | whole_archive_flag_spec_CXX \ |
| 36340 | compiler_needs_object_CXX \ |
| 36341 | with_gnu_ld_CXX \ |
| 36342 | allow_undefined_flag_CXX \ |
| 36343 | no_undefined_flag_CXX \ |
| 36344 | hardcode_libdir_flag_spec_CXX \ |
| 36345 | hardcode_libdir_flag_spec_ld_CXX \ |
| 36346 | hardcode_libdir_separator_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36347 | exclude_expsyms_CXX \ |
| 36348 | include_expsyms_CXX \ |
| 36349 | file_list_spec_CXX \ |
| 36350 | compiler_lib_search_dirs_CXX \ |
| 36351 | predep_objects_CXX \ |
| 36352 | postdep_objects_CXX \ |
| 36353 | predeps_CXX \ |
| 36354 | postdeps_CXX \ |
| 36355 | compiler_lib_search_path_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36356 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36357 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36358 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36359 | ;; |
| 36360 | *) |
| 36361 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 36362 | ;; |
| 36363 | esac |
| 36364 | done |
| 36365 | |
| 36366 | # Double-quote double-evaled strings. |
| 36367 | for var in reload_cmds \ |
| 36368 | old_postinstall_cmds \ |
| 36369 | old_postuninstall_cmds \ |
| 36370 | old_archive_cmds \ |
| 36371 | extract_expsyms_cmds \ |
| 36372 | old_archive_from_new_cmds \ |
| 36373 | old_archive_from_expsyms_cmds \ |
| 36374 | archive_cmds \ |
| 36375 | archive_expsym_cmds \ |
| 36376 | module_cmds \ |
| 36377 | module_expsym_cmds \ |
| 36378 | export_symbols_cmds \ |
| 36379 | prelink_cmds \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36380 | postlink_cmds \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36381 | postinstall_cmds \ |
| 36382 | postuninstall_cmds \ |
| 36383 | finish_cmds \ |
| 36384 | sys_lib_search_path_spec \ |
| 36385 | sys_lib_dlsearch_path_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36386 | reload_cmds_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36387 | old_archive_cmds_CXX \ |
| 36388 | old_archive_from_new_cmds_CXX \ |
| 36389 | old_archive_from_expsyms_cmds_CXX \ |
| 36390 | archive_cmds_CXX \ |
| 36391 | archive_expsym_cmds_CXX \ |
| 36392 | module_cmds_CXX \ |
| 36393 | module_expsym_cmds_CXX \ |
| 36394 | export_symbols_cmds_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36395 | prelink_cmds_CXX \ |
| 36396 | postlink_cmds_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36397 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36398 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36399 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36400 | ;; |
| 36401 | *) |
| 36402 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 36403 | ;; |
| 36404 | esac |
| 36405 | done |
| 36406 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36407 | ac_aux_dir='$ac_aux_dir' |
| 36408 | xsi_shell='$xsi_shell' |
| 36409 | lt_shell_append='$lt_shell_append' |
| 36410 | |
| 36411 | # See if we are running on zsh, and set the options which allow our |
| 36412 | # commands through without removal of \ escapes INIT. |
| 36413 | if test -n "\${ZSH_VERSION+set}" ; then |
| 36414 | setopt NO_GLOB_SUBST |
| 36415 | fi |
| 36416 | |
| 36417 | |
| 36418 | PACKAGE='$PACKAGE' |
| 36419 | VERSION='$VERSION' |
| 36420 | TIMESTAMP='$TIMESTAMP' |
| 36421 | RM='$RM' |
| 36422 | ofile='$ofile' |
| 36423 | |
| 36424 | |
| 36425 | |
| 36426 | |
| 36427 | |
| 36428 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36429 | _ACEOF |
| 36430 | |
| 36431 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36432 | |
| 36433 | # Handling of arguments. |
| 36434 | for ac_config_target in $ac_config_targets |
| 36435 | do |
| 36436 | case $ac_config_target in |
| 36437 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36438 | "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36439 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 36440 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 36441 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 36442 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 36443 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36444 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36445 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 36446 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 36447 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 36448 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 36449 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36450 | "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36451 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 36452 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36453 | "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; |
| 36454 | "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; |
| 36455 | "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36456 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 36457 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 36458 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 36459 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 36460 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 36461 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 36462 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 36463 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 36464 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 36465 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 36466 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 36467 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 36468 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 36469 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 36470 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 36471 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 36472 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36473 | "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; |
| 36474 | "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36475 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 36476 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36477 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 36478 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36479 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36480 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 36481 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 36482 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36483 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36484 | esac |
| 36485 | done |
| 36486 | |
| 36487 | |
| 36488 | # If the user did not use the arguments to specify the items to instantiate, |
| 36489 | # then the envvar interface is used. Set only those that are not. |
| 36490 | # We use the long form for the default assignment because of an extremely |
| 36491 | # bizarre bug on SunOS 4.1.3. |
| 36492 | if $ac_need_defaults; then |
| 36493 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 36494 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 36495 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 36496 | fi |
| 36497 | |
| 36498 | # Have a temporary directory for convenience. Make it in the build tree |
| 36499 | # simply because there is no reason against having it here, and in addition, |
| 36500 | # creating and moving files from /tmp can sometimes cause problems. |
| 36501 | # Hook for its removal unless debugging. |
| 36502 | # Note that there is a small window in which the directory will not be cleaned: |
| 36503 | # after its creation but before its name has been assigned to `$tmp'. |
| 36504 | $debug || |
| 36505 | { |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36506 | tmp= ac_tmp= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36507 | trap 'exit_status=$? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36508 | : "${ac_tmp:=$tmp}" |
| 36509 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36510 | ' 0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36511 | trap 'as_fn_exit 1' 1 2 13 15 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36512 | } |
| 36513 | # Create a (secure) tmp directory for tmp files. |
| 36514 | |
| 36515 | { |
| 36516 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36517 | test -d "$tmp" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36518 | } || |
| 36519 | { |
| 36520 | tmp=./conf$$-$RANDOM |
| 36521 | (umask 077 && mkdir "$tmp") |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36522 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36523 | ac_tmp=$tmp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36524 | |
| 36525 | # Set up the scripts for CONFIG_FILES section. |
| 36526 | # No need to generate them if there are no CONFIG_FILES. |
| 36527 | # This happens for instance with `./config.status config.h'. |
| 36528 | if test -n "$CONFIG_FILES"; then |
| 36529 | |
| 36530 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36531 | ac_cr=`echo X | tr X '\015'` |
| 36532 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 36533 | # But we know of no other shell where ac_cr would be empty at this |
| 36534 | # point, so we can use a bashism as a fallback. |
| 36535 | if test "x$ac_cr" = x; then |
| 36536 | eval ac_cr=\$\'\\r\' |
| 36537 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36538 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 36539 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36540 | ac_cs_awk_cr='\\r' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36541 | else |
| 36542 | ac_cs_awk_cr=$ac_cr |
| 36543 | fi |
| 36544 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36545 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36546 | _ACEOF |
| 36547 | |
| 36548 | |
| 36549 | { |
| 36550 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 36551 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 36552 | echo "_ACEOF" |
| 36553 | } >conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36554 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 36555 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36556 | ac_delim='%!_!# ' |
| 36557 | for ac_last_try in false false false false false :; do |
| 36558 | . ./conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36559 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36560 | |
| 36561 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 36562 | if test $ac_delim_n = $ac_delim_num; then |
| 36563 | break |
| 36564 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36565 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36566 | else |
| 36567 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36568 | fi |
| 36569 | done |
| 36570 | rm -f conf$$subs.sh |
| 36571 | |
| 36572 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36573 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36574 | _ACEOF |
| 36575 | sed -n ' |
| 36576 | h |
| 36577 | s/^/S["/; s/!.*/"]=/ |
| 36578 | p |
| 36579 | g |
| 36580 | s/^[^!]*!// |
| 36581 | :repl |
| 36582 | t repl |
| 36583 | s/'"$ac_delim"'$// |
| 36584 | t delim |
| 36585 | :nl |
| 36586 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36587 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36588 | t more1 |
| 36589 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 36590 | p |
| 36591 | n |
| 36592 | b repl |
| 36593 | :more1 |
| 36594 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36595 | p |
| 36596 | g |
| 36597 | s/.\{148\}// |
| 36598 | t nl |
| 36599 | :delim |
| 36600 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36601 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36602 | t more2 |
| 36603 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 36604 | p |
| 36605 | b |
| 36606 | :more2 |
| 36607 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36608 | p |
| 36609 | g |
| 36610 | s/.\{148\}// |
| 36611 | t delim |
| 36612 | ' <conf$$subs.awk | sed ' |
| 36613 | /^[^""]/{ |
| 36614 | N |
| 36615 | s/\n// |
| 36616 | } |
| 36617 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 36618 | rm -f conf$$subs.awk |
| 36619 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36620 | _ACAWK |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36621 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36622 | for (key in S) S_is_set[key] = 1 |
| 36623 | FS = "" |
| 36624 | |
| 36625 | } |
| 36626 | { |
| 36627 | line = $ 0 |
| 36628 | nfields = split(line, field, "@") |
| 36629 | substed = 0 |
| 36630 | len = length(field[1]) |
| 36631 | for (i = 2; i < nfields; i++) { |
| 36632 | key = field[i] |
| 36633 | keylen = length(key) |
| 36634 | if (S_is_set[key]) { |
| 36635 | value = S[key] |
| 36636 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 36637 | len += length(value) + length(field[++i]) |
| 36638 | substed = 1 |
| 36639 | } else |
| 36640 | len += 1 + keylen |
| 36641 | } |
| 36642 | |
| 36643 | print line |
| 36644 | } |
| 36645 | |
| 36646 | _ACAWK |
| 36647 | _ACEOF |
| 36648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36649 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 36650 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 36651 | else |
| 36652 | cat |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36653 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36654 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36655 | _ACEOF |
| 36656 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36657 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 36658 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36659 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36660 | # (actually we leave an empty line to preserve line numbers). |
| 36661 | if test "x$srcdir" = x.; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36662 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 36663 | h |
| 36664 | s/// |
| 36665 | s/^/:/ |
| 36666 | s/[ ]*$/:/ |
| 36667 | s/:\$(srcdir):/:/g |
| 36668 | s/:\${srcdir}:/:/g |
| 36669 | s/:@srcdir@:/:/g |
| 36670 | s/^:*// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36671 | s/:*$// |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36672 | x |
| 36673 | s/\(=[ ]*\).*/\1/ |
| 36674 | G |
| 36675 | s/\n// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36676 | s/^[^=]*=[ ]*$// |
| 36677 | }' |
| 36678 | fi |
| 36679 | |
| 36680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36681 | fi # test -n "$CONFIG_FILES" |
| 36682 | |
| 36683 | # Set up the scripts for CONFIG_HEADERS section. |
| 36684 | # No need to generate them if there are no CONFIG_HEADERS. |
| 36685 | # This happens for instance with `./config.status Makefile'. |
| 36686 | if test -n "$CONFIG_HEADERS"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36687 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36688 | BEGIN { |
| 36689 | _ACEOF |
| 36690 | |
| 36691 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 36692 | # here-document in config.status, that substitutes the proper values into |
| 36693 | # config.h.in to produce config.h. |
| 36694 | |
| 36695 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 36696 | # handling of long lines. |
| 36697 | ac_delim='%!_!# ' |
| 36698 | for ac_last_try in false false :; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36699 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 36700 | if test -z "$ac_tt"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36701 | break |
| 36702 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36703 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36704 | else |
| 36705 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36706 | fi |
| 36707 | done |
| 36708 | |
| 36709 | # For the awk script, D is an array of macro values keyed by name, |
| 36710 | # likewise P contains macro parameters if any. Preserve backslash |
| 36711 | # newline sequences. |
| 36712 | |
| 36713 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36714 | sed -n ' |
| 36715 | s/.\{148\}/&'"$ac_delim"'/g |
| 36716 | t rset |
| 36717 | :rset |
| 36718 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 36719 | t def |
| 36720 | d |
| 36721 | :def |
| 36722 | s/\\$// |
| 36723 | t bsnl |
| 36724 | s/["\\]/\\&/g |
| 36725 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 36726 | D["\1"]=" \3"/p |
| 36727 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 36728 | d |
| 36729 | :bsnl |
| 36730 | s/["\\]/\\&/g |
| 36731 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 36732 | D["\1"]=" \3\\\\\\n"\\/p |
| 36733 | t cont |
| 36734 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 36735 | t cont |
| 36736 | d |
| 36737 | :cont |
| 36738 | n |
| 36739 | s/.\{148\}/&'"$ac_delim"'/g |
| 36740 | t clear |
| 36741 | :clear |
| 36742 | s/\\$// |
| 36743 | t bsnlc |
| 36744 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 36745 | d |
| 36746 | :bsnlc |
| 36747 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 36748 | b cont |
| 36749 | ' <confdefs.h | sed ' |
| 36750 | s/'"$ac_delim"'/"\\\ |
| 36751 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 36752 | |
| 36753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36754 | for (key in D) D_is_set[key] = 1 |
| 36755 | FS = "" |
| 36756 | } |
| 36757 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 36758 | line = \$ 0 |
| 36759 | split(line, arg, " ") |
| 36760 | if (arg[1] == "#") { |
| 36761 | defundef = arg[2] |
| 36762 | mac1 = arg[3] |
| 36763 | } else { |
| 36764 | defundef = substr(arg[1], 2) |
| 36765 | mac1 = arg[2] |
| 36766 | } |
| 36767 | split(mac1, mac2, "(") #) |
| 36768 | macro = mac2[1] |
| 36769 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 36770 | if (D_is_set[macro]) { |
| 36771 | # Preserve the white space surrounding the "#". |
| 36772 | print prefix "define", macro P[macro] D[macro] |
| 36773 | next |
| 36774 | } else { |
| 36775 | # Replace #undef with comments. This is necessary, for example, |
| 36776 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 36777 | # on some systems where configure will not decide to define it. |
| 36778 | if (defundef == "undef") { |
| 36779 | print "/*", prefix defundef, macro, "*/" |
| 36780 | next |
| 36781 | } |
| 36782 | } |
| 36783 | } |
| 36784 | { print } |
| 36785 | _ACAWK |
| 36786 | _ACEOF |
| 36787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36788 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36789 | fi # test -n "$CONFIG_HEADERS" |
| 36790 | |
| 36791 | |
| 36792 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 36793 | shift |
| 36794 | for ac_tag |
| 36795 | do |
| 36796 | case $ac_tag in |
| 36797 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36798 | esac |
| 36799 | case $ac_mode$ac_tag in |
| 36800 | :[FHL]*:*);; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36801 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36802 | :[FH]-) ac_tag=-:-;; |
| 36803 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36804 | esac |
| 36805 | ac_save_IFS=$IFS |
| 36806 | IFS=: |
| 36807 | set x $ac_tag |
| 36808 | IFS=$ac_save_IFS |
| 36809 | shift |
| 36810 | ac_file=$1 |
| 36811 | shift |
| 36812 | |
| 36813 | case $ac_mode in |
| 36814 | :L) ac_source=$1;; |
| 36815 | :[FH]) |
| 36816 | ac_file_inputs= |
| 36817 | for ac_f |
| 36818 | do |
| 36819 | case $ac_f in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36820 | -) ac_f="$ac_tmp/stdin";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36821 | *) # Look for the file first in the build tree, then in the source tree |
| 36822 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36823 | # because $ac_f cannot contain `:'. |
| 36824 | test -f "$ac_f" || |
| 36825 | case $ac_f in |
| 36826 | [\\/$]*) false;; |
| 36827 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36828 | esac || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36829 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36830 | esac |
| 36831 | 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] | 36832 | as_fn_append ac_file_inputs " '$ac_f'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36833 | done |
| 36834 | |
| 36835 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36836 | # use $as_me), people would be surprised to read: |
| 36837 | # /* config.h. Generated by config.status. */ |
| 36838 | configure_input='Generated from '` |
| 36839 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 36840 | `' by configure.' |
| 36841 | if test x"$ac_file" != x-; then |
| 36842 | configure_input="$ac_file. $configure_input" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36843 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36844 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 36845 | fi |
| 36846 | # Neutralize special characters interpreted by sed in replacement strings. |
| 36847 | case $configure_input in #( |
| 36848 | *\&* | *\|* | *\\* ) |
| 36849 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 36850 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 36851 | *) ac_sed_conf_input=$configure_input;; |
| 36852 | esac |
| 36853 | |
| 36854 | case $ac_tag in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36855 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36856 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36857 | esac |
| 36858 | ;; |
| 36859 | esac |
| 36860 | |
| 36861 | ac_dir=`$as_dirname -- "$ac_file" || |
| 36862 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36863 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36864 | X"$ac_file" : 'X\(//\)$' \| \ |
| 36865 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 36866 | $as_echo X"$ac_file" | |
| 36867 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36868 | s//\1/ |
| 36869 | q |
| 36870 | } |
| 36871 | /^X\(\/\/\)[^/].*/{ |
| 36872 | s//\1/ |
| 36873 | q |
| 36874 | } |
| 36875 | /^X\(\/\/\)$/{ |
| 36876 | s//\1/ |
| 36877 | q |
| 36878 | } |
| 36879 | /^X\(\/\).*/{ |
| 36880 | s//\1/ |
| 36881 | q |
| 36882 | } |
| 36883 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36884 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36885 | ac_builddir=. |
| 36886 | |
| 36887 | case "$ac_dir" in |
| 36888 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36889 | *) |
| 36890 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 36891 | # A ".." for each directory in $ac_dir_suffix. |
| 36892 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 36893 | case $ac_top_builddir_sub in |
| 36894 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36895 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36896 | esac ;; |
| 36897 | esac |
| 36898 | ac_abs_top_builddir=$ac_pwd |
| 36899 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36900 | # for backward compatibility: |
| 36901 | ac_top_builddir=$ac_top_build_prefix |
| 36902 | |
| 36903 | case $srcdir in |
| 36904 | .) # We are building in place. |
| 36905 | ac_srcdir=. |
| 36906 | ac_top_srcdir=$ac_top_builddir_sub |
| 36907 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36908 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 36909 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 36910 | ac_top_srcdir=$srcdir |
| 36911 | ac_abs_top_srcdir=$srcdir ;; |
| 36912 | *) # Relative name. |
| 36913 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36914 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36915 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 36916 | esac |
| 36917 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 36918 | |
| 36919 | |
| 36920 | case $ac_mode in |
| 36921 | :F) |
| 36922 | # |
| 36923 | # CONFIG_FILE |
| 36924 | # |
| 36925 | |
| 36926 | case $INSTALL in |
| 36927 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 36928 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 36929 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36930 | ac_MKDIR_P=$MKDIR_P |
| 36931 | case $MKDIR_P in |
| 36932 | [\\/$]* | ?:[\\/]* ) ;; |
| 36933 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 36934 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36935 | _ACEOF |
| 36936 | |
| 36937 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36938 | # If the template does not know about datarootdir, expand it. |
| 36939 | # FIXME: This hack should be removed a few years after 2.60. |
| 36940 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36941 | ac_sed_dataroot=' |
| 36942 | /datarootdir/ { |
| 36943 | p |
| 36944 | q |
| 36945 | } |
| 36946 | /@datadir@/p |
| 36947 | /@docdir@/p |
| 36948 | /@infodir@/p |
| 36949 | /@localedir@/p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36950 | /@mandir@/p' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36951 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 36952 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36953 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36954 | { $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] | 36955 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36956 | _ACEOF |
| 36957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36958 | ac_datarootdir_hack=' |
| 36959 | s&@datadir@&$datadir&g |
| 36960 | s&@docdir@&$docdir&g |
| 36961 | s&@infodir@&$infodir&g |
| 36962 | s&@localedir@&$localedir&g |
| 36963 | s&@mandir@&$mandir&g |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36964 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36965 | esac |
| 36966 | _ACEOF |
| 36967 | |
| 36968 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36969 | # Shell code in configure.ac might set extrasub. |
| 36970 | # FIXME: do we really want to maintain this feature? |
| 36971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36972 | ac_sed_extra="$ac_vpsub |
| 36973 | $extrasub |
| 36974 | _ACEOF |
| 36975 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36976 | :t |
| 36977 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36978 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 36979 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36980 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 36981 | s&@srcdir@&$ac_srcdir&;t t |
| 36982 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36983 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36984 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36985 | s&@builddir@&$ac_builddir&;t t |
| 36986 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36987 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36988 | s&@INSTALL@&$ac_INSTALL&;t t |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36989 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36990 | $ac_datarootdir_hack |
| 36991 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36992 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 36993 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36994 | |
| 36995 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36996 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 36997 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 36998 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37000 | which seems to be undefined. Please make sure it is defined" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37001 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37002 | which seems to be undefined. Please make sure it is defined" >&2;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37003 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37004 | rm -f "$ac_tmp/stdin" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37005 | case $ac_file in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37006 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 37007 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37008 | esac \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37009 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37010 | ;; |
| 37011 | :H) |
| 37012 | # |
| 37013 | # CONFIG_HEADER |
| 37014 | # |
| 37015 | if test x"$ac_file" != x-; then |
| 37016 | { |
| 37017 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37018 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 37019 | } >"$ac_tmp/config.h" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37020 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37021 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37022 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37023 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 37024 | else |
| 37025 | rm -f "$ac_file" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37026 | mv "$ac_tmp/config.h" "$ac_file" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37027 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37028 | fi |
| 37029 | else |
| 37030 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37031 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37032 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37033 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37034 | # Compute "$ac_file"'s index in $config_headers. |
| 37035 | _am_arg="$ac_file" |
| 37036 | _am_stamp_count=1 |
| 37037 | for _am_header in $config_headers :; do |
| 37038 | case $_am_header in |
| 37039 | $_am_arg | $_am_arg:* ) |
| 37040 | break ;; |
| 37041 | * ) |
| 37042 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 37043 | esac |
| 37044 | done |
| 37045 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 37046 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37047 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 37048 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 37049 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 37050 | $as_echo X"$_am_arg" | |
| 37051 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37052 | s//\1/ |
| 37053 | q |
| 37054 | } |
| 37055 | /^X\(\/\/\)[^/].*/{ |
| 37056 | s//\1/ |
| 37057 | q |
| 37058 | } |
| 37059 | /^X\(\/\/\)$/{ |
| 37060 | s//\1/ |
| 37061 | q |
| 37062 | } |
| 37063 | /^X\(\/\).*/{ |
| 37064 | s//\1/ |
| 37065 | q |
| 37066 | } |
| 37067 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37068 | ;; |
| 37069 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37070 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37071 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 37072 | ;; |
| 37073 | esac |
| 37074 | |
| 37075 | |
| 37076 | case $ac_file$ac_mode in |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37077 | "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37078 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 37079 | ac_prefix_conf_PKG=`echo MagickCore` |
| 37080 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 37081 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 37082 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 37083 | if test ".$ac_prefix_conf_INP" = "."; then |
| 37084 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 37085 | case "$ac_file" in |
| 37086 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 37087 | *) |
| 37088 | esac |
| 37089 | test ".$ac_prefix_conf_INP" != "." && break |
| 37090 | done |
| 37091 | fi |
| 37092 | if test ".$ac_prefix_conf_INP" = "."; then |
| 37093 | case "$ac_prefix_conf_OUT" in |
| 37094 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 37095 | ;; |
| 37096 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 37097 | ;; |
| 37098 | *) ac_prefix_conf_INP=config.h |
| 37099 | ;; |
| 37100 | esac |
| 37101 | fi |
| 37102 | if test -z "$ac_prefix_conf_PKG" ; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37103 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37104 | else |
| 37105 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 37106 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 37107 | fi fi |
| 37108 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 37109 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 37110 | if test -f $ac_prefix_conf_INP ; then |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 37111 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 37112 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 37113 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 37114 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 37115 | $as_echo "#endif/" >> conftest.prefix |
| 37116 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 37117 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 37118 | $as_echo "#endif/" >> conftest.prefix |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37119 | # now executing _script on _DEF input to create _OUT output file |
| 37120 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 37121 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 37122 | echo ' ' >>$tmp/pconfig.h |
| 37123 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 37124 | |
| 37125 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 37126 | echo ' ' >>$tmp/pconfig.h |
| 37127 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 37128 | echo "#endif" >>$tmp/pconfig.h |
| 37129 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 37130 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 37131 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 37132 | else |
| 37133 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 37134 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37135 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 37136 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 37137 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 37138 | $as_echo X"$ac_prefix_conf_OUT" | |
| 37139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37140 | s//\1/ |
| 37141 | q |
| 37142 | } |
| 37143 | /^X\(\/\/\)[^/].*/{ |
| 37144 | s//\1/ |
| 37145 | q |
| 37146 | } |
| 37147 | /^X\(\/\/\)$/{ |
| 37148 | s//\1/ |
| 37149 | q |
| 37150 | } |
| 37151 | /^X\(\/\).*/{ |
| 37152 | s//\1/ |
| 37153 | q |
| 37154 | } |
| 37155 | s/.*/./; q'` |
| 37156 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 37157 | rm -f "$ac_prefix_conf_OUT" |
| 37158 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 37159 | fi |
| 37160 | cp conftest.prefix _configs.sed |
| 37161 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37162 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37163 | fi |
| 37164 | rm -f conftest.* |
| 37165 | fi |
| 37166 | ;; |
| 37167 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 37168 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 37169 | # are listed without --file. Let's play safe and only enable the eval |
| 37170 | # if we detect the quoting. |
| 37171 | case $CONFIG_FILES in |
| 37172 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 37173 | *) set x $CONFIG_FILES ;; |
| 37174 | esac |
| 37175 | shift |
| 37176 | for mf |
| 37177 | do |
| 37178 | # Strip MF so we end up with the name of the file. |
| 37179 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 37180 | # Check whether this is an Automake generated Makefile or not. |
| 37181 | # We used to match only the files named `Makefile.in', but |
| 37182 | # some people rename them; so instead we look at the file content. |
| 37183 | # Grep'ing the first line is not enough: some people post-process |
| 37184 | # each Makefile.in and add a new line on top of each file to say so. |
| 37185 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 37186 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 37187 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 37188 | dirpart=`$as_dirname -- "$mf" || |
| 37189 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37190 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 37191 | X"$mf" : 'X\(//\)$' \| \ |
| 37192 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 37193 | $as_echo X"$mf" | |
| 37194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37195 | s//\1/ |
| 37196 | q |
| 37197 | } |
| 37198 | /^X\(\/\/\)[^/].*/{ |
| 37199 | s//\1/ |
| 37200 | q |
| 37201 | } |
| 37202 | /^X\(\/\/\)$/{ |
| 37203 | s//\1/ |
| 37204 | q |
| 37205 | } |
| 37206 | /^X\(\/\).*/{ |
| 37207 | s//\1/ |
| 37208 | q |
| 37209 | } |
| 37210 | s/.*/./; q'` |
| 37211 | else |
| 37212 | continue |
| 37213 | fi |
| 37214 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 37215 | # from the Makefile without running `make'. |
| 37216 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 37217 | test -z "$DEPDIR" && continue |
| 37218 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 37219 | test -z "am__include" && continue |
| 37220 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 37221 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 37222 | U=`sed -n 's/^U = //p' < "$mf"` |
| 37223 | # Find all dependency output files, they are included files with |
| 37224 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 37225 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 37226 | # expansion. |
| 37227 | for file in `sed -n " |
| 37228 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 37229 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 37230 | # Make sure the directory exists. |
| 37231 | test -f "$dirpart/$file" && continue |
| 37232 | fdir=`$as_dirname -- "$file" || |
| 37233 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37234 | X"$file" : 'X\(//\)[^/]' \| \ |
| 37235 | X"$file" : 'X\(//\)$' \| \ |
| 37236 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 37237 | $as_echo X"$file" | |
| 37238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37239 | s//\1/ |
| 37240 | q |
| 37241 | } |
| 37242 | /^X\(\/\/\)[^/].*/{ |
| 37243 | s//\1/ |
| 37244 | q |
| 37245 | } |
| 37246 | /^X\(\/\/\)$/{ |
| 37247 | s//\1/ |
| 37248 | q |
| 37249 | } |
| 37250 | /^X\(\/\).*/{ |
| 37251 | s//\1/ |
| 37252 | q |
| 37253 | } |
| 37254 | s/.*/./; q'` |
| 37255 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 37256 | # echo "creating $dirpart/$file" |
| 37257 | echo '# dummy' > "$dirpart/$file" |
| 37258 | done |
| 37259 | done |
| 37260 | } |
| 37261 | ;; |
| 37262 | "libtool":C) |
| 37263 | |
| 37264 | # See if we are running on zsh, and set the options which allow our |
| 37265 | # commands through without removal of \ escapes. |
| 37266 | if test -n "${ZSH_VERSION+set}" ; then |
| 37267 | setopt NO_GLOB_SUBST |
| 37268 | fi |
| 37269 | |
| 37270 | cfgfile="${ofile}T" |
| 37271 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 37272 | $RM "$cfgfile" |
| 37273 | |
| 37274 | cat <<_LT_EOF >> "$cfgfile" |
| 37275 | #! $SHELL |
| 37276 | |
| 37277 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 37278 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 37279 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 37280 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 37281 | # |
| 37282 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37283 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 37284 | # Inc. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37285 | # Written by Gordon Matzigkeit, 1996 |
| 37286 | # |
| 37287 | # This file is part of GNU Libtool. |
| 37288 | # |
| 37289 | # GNU Libtool is free software; you can redistribute it and/or |
| 37290 | # modify it under the terms of the GNU General Public License as |
| 37291 | # published by the Free Software Foundation; either version 2 of |
| 37292 | # the License, or (at your option) any later version. |
| 37293 | # |
| 37294 | # As a special exception to the GNU General Public License, |
| 37295 | # if you distribute this file as part of a program or library that |
| 37296 | # is built using GNU Libtool, you may include this file under the |
| 37297 | # same distribution terms that you use for the rest of that program. |
| 37298 | # |
| 37299 | # GNU Libtool is distributed in the hope that it will be useful, |
| 37300 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 37301 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 37302 | # GNU General Public License for more details. |
| 37303 | # |
| 37304 | # You should have received a copy of the GNU General Public License |
| 37305 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 37306 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 37307 | # obtained by writing to the Free Software Foundation, Inc., |
| 37308 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 37309 | |
| 37310 | |
| 37311 | # The names of the tagged configurations supported by this script. |
| 37312 | available_tags="CXX " |
| 37313 | |
| 37314 | # ### BEGIN LIBTOOL CONFIG |
| 37315 | |
| 37316 | # A sed program that does not truncate output. |
| 37317 | SED=$lt_SED |
| 37318 | |
| 37319 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 37320 | Xsed="\$SED -e 1s/^X//" |
| 37321 | |
| 37322 | # A grep program that handles long lines. |
| 37323 | GREP=$lt_GREP |
| 37324 | |
| 37325 | # An ERE matcher. |
| 37326 | EGREP=$lt_EGREP |
| 37327 | |
| 37328 | # A literal string matcher. |
| 37329 | FGREP=$lt_FGREP |
| 37330 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37331 | # Shell to use when invoking shell scripts. |
| 37332 | SHELL=$lt_SHELL |
| 37333 | |
| 37334 | # An echo program that protects backslashes. |
| 37335 | ECHO=$lt_ECHO |
| 37336 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37337 | # Which release of libtool.m4 was used? |
| 37338 | macro_version=$macro_version |
| 37339 | macro_revision=$macro_revision |
| 37340 | |
| 37341 | # Assembler program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37342 | AS=$lt_AS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37343 | |
| 37344 | # DLL creation program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37345 | DLLTOOL=$lt_DLLTOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37346 | |
| 37347 | # Object dumper program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37348 | OBJDUMP=$lt_OBJDUMP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37349 | |
| 37350 | # Whether or not to build shared libraries. |
| 37351 | build_libtool_libs=$enable_shared |
| 37352 | |
| 37353 | # Whether or not to build static libraries. |
| 37354 | build_old_libs=$enable_static |
| 37355 | |
| 37356 | # What type of objects to build. |
| 37357 | pic_mode=$pic_mode |
| 37358 | |
| 37359 | # Whether or not to optimize for fast installation. |
| 37360 | fast_install=$enable_fast_install |
| 37361 | |
| 37362 | # The host system. |
| 37363 | host_alias=$host_alias |
| 37364 | host=$host |
| 37365 | host_os=$host_os |
| 37366 | |
| 37367 | # The build system. |
| 37368 | build_alias=$build_alias |
| 37369 | build=$build |
| 37370 | build_os=$build_os |
| 37371 | |
| 37372 | # A BSD- or MS-compatible name lister. |
| 37373 | NM=$lt_NM |
| 37374 | |
| 37375 | # Whether we need soft or hard links. |
| 37376 | LN_S=$lt_LN_S |
| 37377 | |
| 37378 | # What is the maximum length of a command? |
| 37379 | max_cmd_len=$max_cmd_len |
| 37380 | |
| 37381 | # Object file suffix (normally "o"). |
| 37382 | objext=$ac_objext |
| 37383 | |
| 37384 | # Executable file suffix (normally ""). |
| 37385 | exeext=$exeext |
| 37386 | |
| 37387 | # whether the shell understands "unset". |
| 37388 | lt_unset=$lt_unset |
| 37389 | |
| 37390 | # turn spaces into newlines. |
| 37391 | SP2NL=$lt_lt_SP2NL |
| 37392 | |
| 37393 | # turn newlines into spaces. |
| 37394 | NL2SP=$lt_lt_NL2SP |
| 37395 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37396 | # convert \$build file names to \$host format. |
| 37397 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 37398 | |
| 37399 | # convert \$build files to toolchain format. |
| 37400 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 37401 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37402 | # Method to check whether dependent libraries are shared objects. |
| 37403 | deplibs_check_method=$lt_deplibs_check_method |
| 37404 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37405 | # Command to use when deplibs_check_method = "file_magic". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37406 | file_magic_cmd=$lt_file_magic_cmd |
| 37407 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37408 | # How to find potential files when deplibs_check_method = "file_magic". |
| 37409 | file_magic_glob=$lt_file_magic_glob |
| 37410 | |
| 37411 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 37412 | want_nocaseglob=$lt_want_nocaseglob |
| 37413 | |
| 37414 | # Command to associate shared and link libraries. |
| 37415 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 37416 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37417 | # The archiver. |
| 37418 | AR=$lt_AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37419 | |
| 37420 | # Flags to create an archive. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37421 | AR_FLAGS=$lt_AR_FLAGS |
| 37422 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37423 | # How to feed a file listing to the archiver. |
| 37424 | archiver_list_spec=$lt_archiver_list_spec |
| 37425 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37426 | # A symbol stripping program. |
| 37427 | STRIP=$lt_STRIP |
| 37428 | |
| 37429 | # Commands used to install an old-style archive. |
| 37430 | RANLIB=$lt_RANLIB |
| 37431 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 37432 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 37433 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37434 | # Whether to use a lock for old archive extraction. |
| 37435 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 37436 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37437 | # A C compiler. |
| 37438 | LTCC=$lt_CC |
| 37439 | |
| 37440 | # LTCC compiler flags. |
| 37441 | LTCFLAGS=$lt_CFLAGS |
| 37442 | |
| 37443 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 37444 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 37445 | |
| 37446 | # Transform the output of nm in a proper C declaration. |
| 37447 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 37448 | |
| 37449 | # Transform the output of nm in a C name address pair. |
| 37450 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 37451 | |
| 37452 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 37453 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 37454 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37455 | # Specify filename containing input files for \$NM. |
| 37456 | nm_file_list_spec=$lt_nm_file_list_spec |
| 37457 | |
| 37458 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 37459 | lt_sysroot=$lt_sysroot |
| 37460 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37461 | # The name of the directory that contains temporary libtool files. |
| 37462 | objdir=$objdir |
| 37463 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37464 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 37465 | MAGIC_CMD=$MAGIC_CMD |
| 37466 | |
| 37467 | # Must we lock files when doing compilation? |
| 37468 | need_locks=$lt_need_locks |
| 37469 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37470 | # Manifest tool. |
| 37471 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 37472 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37473 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 37474 | DSYMUTIL=$lt_DSYMUTIL |
| 37475 | |
| 37476 | # Tool to change global to local symbols on Mac OS X. |
| 37477 | NMEDIT=$lt_NMEDIT |
| 37478 | |
| 37479 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 37480 | LIPO=$lt_LIPO |
| 37481 | |
| 37482 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 37483 | OTOOL=$lt_OTOOL |
| 37484 | |
| 37485 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 37486 | OTOOL64=$lt_OTOOL64 |
| 37487 | |
| 37488 | # Old archive suffix (normally "a"). |
| 37489 | libext=$libext |
| 37490 | |
| 37491 | # Shared library suffix (normally ".so"). |
| 37492 | shrext_cmds=$lt_shrext_cmds |
| 37493 | |
| 37494 | # The commands to extract the exported symbol list from a shared archive. |
| 37495 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 37496 | |
| 37497 | # Variables whose values should be saved in libtool wrapper scripts and |
| 37498 | # restored at link time. |
| 37499 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 37500 | |
| 37501 | # Do we need the "lib" prefix for modules? |
| 37502 | need_lib_prefix=$need_lib_prefix |
| 37503 | |
| 37504 | # Do we need a version for libraries? |
| 37505 | need_version=$need_version |
| 37506 | |
| 37507 | # Library versioning type. |
| 37508 | version_type=$version_type |
| 37509 | |
| 37510 | # Shared library runtime path variable. |
| 37511 | runpath_var=$runpath_var |
| 37512 | |
| 37513 | # Shared library path variable. |
| 37514 | shlibpath_var=$shlibpath_var |
| 37515 | |
| 37516 | # Is shlibpath searched before the hard-coded library search path? |
| 37517 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 37518 | |
| 37519 | # Format of library name prefix. |
| 37520 | libname_spec=$lt_libname_spec |
| 37521 | |
| 37522 | # List of archive names. First name is the real one, the rest are links. |
| 37523 | # The last name is the one that the linker finds with -lNAME |
| 37524 | library_names_spec=$lt_library_names_spec |
| 37525 | |
| 37526 | # The coded name of the library, if different from the real name. |
| 37527 | soname_spec=$lt_soname_spec |
| 37528 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37529 | # Permission mode override for installation of shared libraries. |
| 37530 | install_override_mode=$lt_install_override_mode |
| 37531 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37532 | # Command to use after installation of a shared archive. |
| 37533 | postinstall_cmds=$lt_postinstall_cmds |
| 37534 | |
| 37535 | # Command to use after uninstallation of a shared archive. |
| 37536 | postuninstall_cmds=$lt_postuninstall_cmds |
| 37537 | |
| 37538 | # Commands used to finish a libtool library installation in a directory. |
| 37539 | finish_cmds=$lt_finish_cmds |
| 37540 | |
| 37541 | # As "finish_cmds", except a single script fragment to be evaled but |
| 37542 | # not shown. |
| 37543 | finish_eval=$lt_finish_eval |
| 37544 | |
| 37545 | # Whether we should hardcode library paths into libraries. |
| 37546 | hardcode_into_libs=$hardcode_into_libs |
| 37547 | |
| 37548 | # Compile-time system search path for libraries. |
| 37549 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 37550 | |
| 37551 | # Run-time system search path for libraries. |
| 37552 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 37553 | |
| 37554 | # Whether dlopen is supported. |
| 37555 | dlopen_support=$enable_dlopen |
| 37556 | |
| 37557 | # Whether dlopen of programs is supported. |
| 37558 | dlopen_self=$enable_dlopen_self |
| 37559 | |
| 37560 | # Whether dlopen of statically linked programs is supported. |
| 37561 | dlopen_self_static=$enable_dlopen_self_static |
| 37562 | |
| 37563 | # Commands to strip libraries. |
| 37564 | old_striplib=$lt_old_striplib |
| 37565 | striplib=$lt_striplib |
| 37566 | |
| 37567 | |
| 37568 | # The linker used to build libraries. |
| 37569 | LD=$lt_LD |
| 37570 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37571 | # How to create reloadable object files. |
| 37572 | reload_flag=$lt_reload_flag |
| 37573 | reload_cmds=$lt_reload_cmds |
| 37574 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37575 | # Commands used to build an old-style archive. |
| 37576 | old_archive_cmds=$lt_old_archive_cmds |
| 37577 | |
| 37578 | # A language specific compiler. |
| 37579 | CC=$lt_compiler |
| 37580 | |
| 37581 | # Is the compiler the GNU compiler? |
| 37582 | with_gcc=$GCC |
| 37583 | |
| 37584 | # Compiler flag to turn off builtin functions. |
| 37585 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 37586 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37587 | # Additional compiler flags for building library objects. |
| 37588 | pic_flag=$lt_lt_prog_compiler_pic |
| 37589 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37590 | # How to pass a linker flag through the compiler. |
| 37591 | wl=$lt_lt_prog_compiler_wl |
| 37592 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37593 | # Compiler flag to prevent dynamic linking. |
| 37594 | link_static_flag=$lt_lt_prog_compiler_static |
| 37595 | |
| 37596 | # Does compiler simultaneously support -c and -o options? |
| 37597 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 37598 | |
| 37599 | # Whether or not to add -lc for building shared libraries. |
| 37600 | build_libtool_need_lc=$archive_cmds_need_lc |
| 37601 | |
| 37602 | # Whether or not to disallow shared libs when runtime libs are static. |
| 37603 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 37604 | |
| 37605 | # Compiler flag to allow reflexive dlopens. |
| 37606 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 37607 | |
| 37608 | # Compiler flag to generate shared objects directly from archives. |
| 37609 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 37610 | |
| 37611 | # Whether the compiler copes with passing no objects directly. |
| 37612 | compiler_needs_object=$lt_compiler_needs_object |
| 37613 | |
| 37614 | # Create an old-style archive from a shared archive. |
| 37615 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 37616 | |
| 37617 | # Create a temporary old-style archive to link instead of a shared archive. |
| 37618 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 37619 | |
| 37620 | # Commands used to build a shared archive. |
| 37621 | archive_cmds=$lt_archive_cmds |
| 37622 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 37623 | |
| 37624 | # Commands used to build a loadable module if different from building |
| 37625 | # a shared archive. |
| 37626 | module_cmds=$lt_module_cmds |
| 37627 | module_expsym_cmds=$lt_module_expsym_cmds |
| 37628 | |
| 37629 | # Whether we are building with GNU ld or not. |
| 37630 | with_gnu_ld=$lt_with_gnu_ld |
| 37631 | |
| 37632 | # Flag that allows shared libraries with undefined symbols to be built. |
| 37633 | allow_undefined_flag=$lt_allow_undefined_flag |
| 37634 | |
| 37635 | # Flag that enforces no undefined symbols. |
| 37636 | no_undefined_flag=$lt_no_undefined_flag |
| 37637 | |
| 37638 | # Flag to hardcode \$libdir into a binary during linking. |
| 37639 | # This must work even if \$libdir does not exist |
| 37640 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 37641 | |
| 37642 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 37643 | # during linking. This must work even if \$libdir does not exist. |
| 37644 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 37645 | |
| 37646 | # Whether we need a single "-rpath" flag with a separated argument. |
| 37647 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 37648 | |
| 37649 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37650 | # DIR into the resulting binary. |
| 37651 | hardcode_direct=$hardcode_direct |
| 37652 | |
| 37653 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37654 | # DIR into the resulting binary and the resulting library dependency is |
| 37655 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 37656 | # library is relocated. |
| 37657 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 37658 | |
| 37659 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 37660 | # into the resulting binary. |
| 37661 | hardcode_minus_L=$hardcode_minus_L |
| 37662 | |
| 37663 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 37664 | # into the resulting binary. |
| 37665 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 37666 | |
| 37667 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 37668 | # into the library and all subsequent libraries and executables linked |
| 37669 | # against it. |
| 37670 | hardcode_automatic=$hardcode_automatic |
| 37671 | |
| 37672 | # Set to yes if linker adds runtime paths of dependent libraries |
| 37673 | # to runtime path list. |
| 37674 | inherit_rpath=$inherit_rpath |
| 37675 | |
| 37676 | # Whether libtool must link a program against all its dependency libraries. |
| 37677 | link_all_deplibs=$link_all_deplibs |
| 37678 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37679 | # Set to "yes" if exported symbols are required. |
| 37680 | always_export_symbols=$always_export_symbols |
| 37681 | |
| 37682 | # The commands to list exported symbols. |
| 37683 | export_symbols_cmds=$lt_export_symbols_cmds |
| 37684 | |
| 37685 | # Symbols that should not be listed in the preloaded symbols. |
| 37686 | exclude_expsyms=$lt_exclude_expsyms |
| 37687 | |
| 37688 | # Symbols that must always be exported. |
| 37689 | include_expsyms=$lt_include_expsyms |
| 37690 | |
| 37691 | # Commands necessary for linking programs (against libraries) with templates. |
| 37692 | prelink_cmds=$lt_prelink_cmds |
| 37693 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37694 | # Commands necessary for finishing linking programs. |
| 37695 | postlink_cmds=$lt_postlink_cmds |
| 37696 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37697 | # Specify filename containing input files. |
| 37698 | file_list_spec=$lt_file_list_spec |
| 37699 | |
| 37700 | # How to hardcode a shared library path into an executable. |
| 37701 | hardcode_action=$hardcode_action |
| 37702 | |
| 37703 | # The directories searched by this compiler when creating a shared library. |
| 37704 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 37705 | |
| 37706 | # Dependencies to place before and after the objects being linked to |
| 37707 | # create a shared library. |
| 37708 | predep_objects=$lt_predep_objects |
| 37709 | postdep_objects=$lt_postdep_objects |
| 37710 | predeps=$lt_predeps |
| 37711 | postdeps=$lt_postdeps |
| 37712 | |
| 37713 | # The library search path used internally by the compiler when linking |
| 37714 | # a shared library. |
| 37715 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 37716 | |
| 37717 | # ### END LIBTOOL CONFIG |
| 37718 | |
| 37719 | _LT_EOF |
| 37720 | |
| 37721 | case $host_os in |
| 37722 | aix3*) |
| 37723 | cat <<\_LT_EOF >> "$cfgfile" |
| 37724 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 37725 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 37726 | # vanish in a puff of smoke. |
| 37727 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 37728 | COLLECT_NAMES= |
| 37729 | export COLLECT_NAMES |
| 37730 | fi |
| 37731 | _LT_EOF |
| 37732 | ;; |
| 37733 | esac |
| 37734 | |
| 37735 | |
| 37736 | ltmain="$ac_aux_dir/ltmain.sh" |
| 37737 | |
| 37738 | |
| 37739 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 37740 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 37741 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 37742 | # is reportedly fixed, but why not run on old versions too? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37743 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 37744 | || (rm -f "$cfgfile"; exit 1) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37745 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37746 | if test x"$xsi_shell" = xyes; then |
| 37747 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 37748 | func_dirname ()\ |
| 37749 | {\ |
| 37750 | \ case ${1} in\ |
| 37751 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 37752 | \ * ) func_dirname_result="${3}" ;;\ |
| 37753 | \ esac\ |
| 37754 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37755 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37756 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37757 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37758 | |
| 37759 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37760 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 37761 | func_basename ()\ |
| 37762 | {\ |
| 37763 | \ func_basename_result="${1##*/}"\ |
| 37764 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37765 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37766 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37767 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37768 | |
| 37769 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37770 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 37771 | func_dirname_and_basename ()\ |
| 37772 | {\ |
| 37773 | \ case ${1} in\ |
| 37774 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 37775 | \ * ) func_dirname_result="${3}" ;;\ |
| 37776 | \ esac\ |
| 37777 | \ func_basename_result="${1##*/}"\ |
| 37778 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37779 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37780 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37781 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37782 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37783 | |
| 37784 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 37785 | func_stripname ()\ |
| 37786 | {\ |
| 37787 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 37788 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 37789 | \ func_stripname_result=${3}\ |
| 37790 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 37791 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 37792 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37793 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37794 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37795 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37796 | |
| 37797 | |
| 37798 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 37799 | func_split_long_opt ()\ |
| 37800 | {\ |
| 37801 | \ func_split_long_opt_name=${1%%=*}\ |
| 37802 | \ func_split_long_opt_arg=${1#*=}\ |
| 37803 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37804 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37805 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37806 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37807 | |
| 37808 | |
| 37809 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 37810 | func_split_short_opt ()\ |
| 37811 | {\ |
| 37812 | \ func_split_short_opt_arg=${1#??}\ |
| 37813 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 37814 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37815 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37816 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37817 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37818 | |
| 37819 | |
| 37820 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 37821 | func_lo2o ()\ |
| 37822 | {\ |
| 37823 | \ case ${1} in\ |
| 37824 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 37825 | \ *) func_lo2o_result=${1} ;;\ |
| 37826 | \ esac\ |
| 37827 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37828 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37829 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37830 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37831 | |
| 37832 | |
| 37833 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 37834 | func_xform ()\ |
| 37835 | {\ |
| 37836 | func_xform_result=${1%.*}.lo\ |
| 37837 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37838 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37839 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37840 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37841 | |
| 37842 | |
| 37843 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 37844 | func_arith ()\ |
| 37845 | {\ |
| 37846 | func_arith_result=$(( $* ))\ |
| 37847 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37848 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37849 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37850 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37851 | |
| 37852 | |
| 37853 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 37854 | func_len ()\ |
| 37855 | {\ |
| 37856 | func_len_result=${#1}\ |
| 37857 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37858 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37859 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37860 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37861 | |
| 37862 | fi |
| 37863 | |
| 37864 | if test x"$lt_shell_append" = xyes; then |
| 37865 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 37866 | func_append ()\ |
| 37867 | {\ |
| 37868 | eval "${1}+=\\${2}"\ |
| 37869 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37870 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37871 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37872 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37873 | |
| 37874 | |
| 37875 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 37876 | func_append_quoted ()\ |
| 37877 | {\ |
| 37878 | \ func_quote_for_eval "${2}"\ |
| 37879 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 37880 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37881 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37882 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37883 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37884 | |
| 37885 | |
| 37886 | # Save a `func_append' function call where possible by direct use of '+=' |
| 37887 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 37888 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37889 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37890 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37891 | else |
| 37892 | # Save a `func_append' function call even when '+=' is not available |
| 37893 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 37894 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37895 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37896 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37897 | fi |
| 37898 | |
| 37899 | if test x"$_lt_function_replace_fail" = x":"; then |
| 37900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 37901 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 37902 | fi |
| 37903 | |
| 37904 | |
| 37905 | mv -f "$cfgfile" "$ofile" || |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37906 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 37907 | chmod +x "$ofile" |
| 37908 | |
| 37909 | |
| 37910 | cat <<_LT_EOF >> "$ofile" |
| 37911 | |
| 37912 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 37913 | |
| 37914 | # The linker used to build libraries. |
| 37915 | LD=$lt_LD_CXX |
| 37916 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37917 | # How to create reloadable object files. |
| 37918 | reload_flag=$lt_reload_flag_CXX |
| 37919 | reload_cmds=$lt_reload_cmds_CXX |
| 37920 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37921 | # Commands used to build an old-style archive. |
| 37922 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 37923 | |
| 37924 | # A language specific compiler. |
| 37925 | CC=$lt_compiler_CXX |
| 37926 | |
| 37927 | # Is the compiler the GNU compiler? |
| 37928 | with_gcc=$GCC_CXX |
| 37929 | |
| 37930 | # Compiler flag to turn off builtin functions. |
| 37931 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 37932 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37933 | # Additional compiler flags for building library objects. |
| 37934 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 37935 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37936 | # How to pass a linker flag through the compiler. |
| 37937 | wl=$lt_lt_prog_compiler_wl_CXX |
| 37938 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37939 | # Compiler flag to prevent dynamic linking. |
| 37940 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 37941 | |
| 37942 | # Does compiler simultaneously support -c and -o options? |
| 37943 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 37944 | |
| 37945 | # Whether or not to add -lc for building shared libraries. |
| 37946 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 37947 | |
| 37948 | # Whether or not to disallow shared libs when runtime libs are static. |
| 37949 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 37950 | |
| 37951 | # Compiler flag to allow reflexive dlopens. |
| 37952 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 37953 | |
| 37954 | # Compiler flag to generate shared objects directly from archives. |
| 37955 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 37956 | |
| 37957 | # Whether the compiler copes with passing no objects directly. |
| 37958 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 37959 | |
| 37960 | # Create an old-style archive from a shared archive. |
| 37961 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 37962 | |
| 37963 | # Create a temporary old-style archive to link instead of a shared archive. |
| 37964 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 37965 | |
| 37966 | # Commands used to build a shared archive. |
| 37967 | archive_cmds=$lt_archive_cmds_CXX |
| 37968 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 37969 | |
| 37970 | # Commands used to build a loadable module if different from building |
| 37971 | # a shared archive. |
| 37972 | module_cmds=$lt_module_cmds_CXX |
| 37973 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 37974 | |
| 37975 | # Whether we are building with GNU ld or not. |
| 37976 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 37977 | |
| 37978 | # Flag that allows shared libraries with undefined symbols to be built. |
| 37979 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 37980 | |
| 37981 | # Flag that enforces no undefined symbols. |
| 37982 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 37983 | |
| 37984 | # Flag to hardcode \$libdir into a binary during linking. |
| 37985 | # This must work even if \$libdir does not exist |
| 37986 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 37987 | |
| 37988 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 37989 | # during linking. This must work even if \$libdir does not exist. |
| 37990 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 37991 | |
| 37992 | # Whether we need a single "-rpath" flag with a separated argument. |
| 37993 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 37994 | |
| 37995 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37996 | # DIR into the resulting binary. |
| 37997 | hardcode_direct=$hardcode_direct_CXX |
| 37998 | |
| 37999 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 38000 | # DIR into the resulting binary and the resulting library dependency is |
| 38001 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 38002 | # library is relocated. |
| 38003 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 38004 | |
| 38005 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 38006 | # into the resulting binary. |
| 38007 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 38008 | |
| 38009 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 38010 | # into the resulting binary. |
| 38011 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 38012 | |
| 38013 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 38014 | # into the library and all subsequent libraries and executables linked |
| 38015 | # against it. |
| 38016 | hardcode_automatic=$hardcode_automatic_CXX |
| 38017 | |
| 38018 | # Set to yes if linker adds runtime paths of dependent libraries |
| 38019 | # to runtime path list. |
| 38020 | inherit_rpath=$inherit_rpath_CXX |
| 38021 | |
| 38022 | # Whether libtool must link a program against all its dependency libraries. |
| 38023 | link_all_deplibs=$link_all_deplibs_CXX |
| 38024 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38025 | # Set to "yes" if exported symbols are required. |
| 38026 | always_export_symbols=$always_export_symbols_CXX |
| 38027 | |
| 38028 | # The commands to list exported symbols. |
| 38029 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 38030 | |
| 38031 | # Symbols that should not be listed in the preloaded symbols. |
| 38032 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 38033 | |
| 38034 | # Symbols that must always be exported. |
| 38035 | include_expsyms=$lt_include_expsyms_CXX |
| 38036 | |
| 38037 | # Commands necessary for linking programs (against libraries) with templates. |
| 38038 | prelink_cmds=$lt_prelink_cmds_CXX |
| 38039 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38040 | # Commands necessary for finishing linking programs. |
| 38041 | postlink_cmds=$lt_postlink_cmds_CXX |
| 38042 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38043 | # Specify filename containing input files. |
| 38044 | file_list_spec=$lt_file_list_spec_CXX |
| 38045 | |
| 38046 | # How to hardcode a shared library path into an executable. |
| 38047 | hardcode_action=$hardcode_action_CXX |
| 38048 | |
| 38049 | # The directories searched by this compiler when creating a shared library. |
| 38050 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 38051 | |
| 38052 | # Dependencies to place before and after the objects being linked to |
| 38053 | # create a shared library. |
| 38054 | predep_objects=$lt_predep_objects_CXX |
| 38055 | postdep_objects=$lt_postdep_objects_CXX |
| 38056 | predeps=$lt_predeps_CXX |
| 38057 | postdeps=$lt_postdeps_CXX |
| 38058 | |
| 38059 | # The library search path used internally by the compiler when linking |
| 38060 | # a shared library. |
| 38061 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 38062 | |
| 38063 | # ### END LIBTOOL TAG CONFIG: CXX |
| 38064 | _LT_EOF |
| 38065 | |
| 38066 | ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38067 | "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38068 | "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38069 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 38070 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 38071 | |
| 38072 | esac |
| 38073 | done # for ac_tag |
| 38074 | |
| 38075 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38076 | as_fn_exit 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38077 | _ACEOF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38078 | ac_clean_files=$ac_clean_files_save |
| 38079 | |
| 38080 | test $ac_write_fail = 0 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38081 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38082 | |
| 38083 | |
| 38084 | # configure is writing to config.log, and then calls config.status. |
| 38085 | # config.status does its own redirection, appending to config.log. |
| 38086 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 38087 | # by configure, so config.status won't be able to write to it; its |
| 38088 | # output is simply discarded. So we exec the FD to /dev/null, |
| 38089 | # effectively closing config.log, so it can be properly (re)opened and |
| 38090 | # appended to by config.status. When coming back to configure, we |
| 38091 | # need to make the FD available again. |
| 38092 | if test "$no_create" != yes; then |
| 38093 | ac_cs_success=: |
| 38094 | ac_config_status_args= |
| 38095 | test "$silent" = yes && |
| 38096 | ac_config_status_args="$ac_config_status_args --quiet" |
| 38097 | exec 5>/dev/null |
| 38098 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 38099 | exec 5>>config.log |
| 38100 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 38101 | # would make configure fail if this is the last instruction. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38102 | $ac_cs_success || as_fn_exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38103 | fi |
| 38104 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38105 | { $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] | 38106 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 38107 | fi |
| 38108 | |
| 38109 | |
| 38110 | rm -f magick-version |
| 38111 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38112 | result_dejavu_font_dir='none' |
| 38113 | if test "${dejavu_font_dir}x" != 'x'; then |
| 38114 | result_dejavu_font_dir=$dejavu_font_dir |
| 38115 | fi |
| 38116 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38117 | result_ghostscript_font_dir='none' |
| 38118 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 38119 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 38120 | fi |
| 38121 | |
| 38122 | result_windows_font_dir='none' |
| 38123 | if test "${windows_font_dir}x" != 'x'; then |
| 38124 | result_windows_font_dir=${windows_font_dir} |
| 38125 | fi |
| 38126 | |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38127 | { $as_echo "$as_me:${as_lineno-$LINENO}: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38128 | ImageMagick is configured as follows. Please verify that this configuration |
| 38129 | matches your expectations. |
| 38130 | |
| 38131 | Host system type: $host |
| 38132 | Build system type: $build |
| 38133 | |
| 38134 | Option Value |
| 38135 | ------------------------------------------------------------------------------- |
| 38136 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 38137 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 38138 | Module support --with-modules=$with_modules $with_modules |
| 38139 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 38140 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 38141 | High Dynamic Range Imagery |
| 38142 | --enable-hdri=$enable_hdri $enable_hdri |
| 38143 | |
| 38144 | Delegate Configuration: |
| 38145 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 38146 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38147 | Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38148 | DJVU --with-djvu=$with_djvu $have_djvu |
| 38149 | DPS --with-dps=$with_dps $have_dps |
| 38150 | FFTW --with-fftw=$with_fftw $have_fftw |
| 38151 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 38152 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 38153 | FreeType --with-freetype=$with_freetype $have_freetype |
| 38154 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 38155 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 38156 | Ghostscript None $PSDelegate ($GSVersion) |
| 38157 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 38158 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 38159 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 38160 | JBIG --with-jbig=$with_jbig $have_jbig |
| 38161 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 38162 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38163 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 38164 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38165 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38166 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38167 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 38168 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38169 | PANGO --with-pango=$with_pango $have_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38170 | PERL --with-perl=$with_perl $have_perl |
| 38171 | PNG --with-png=$with_png $have_png |
| 38172 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 38173 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38174 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38175 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 38176 | WMF --with-wmf=$with_wmf $have_wmf |
| 38177 | X11 --with-x=$with_x $have_x |
| 38178 | XML --with-xml=$with_xml $have_xml |
| 38179 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 38180 | |
| 38181 | X11 Configuration: |
| 38182 | X_CFLAGS = $X_CFLAGS |
| 38183 | X_PRE_LIBS = $X_PRE_LIBS |
| 38184 | X_LIBS = $X_LIBS |
| 38185 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 38186 | |
| 38187 | Options used to compile and link: |
| 38188 | PREFIX = $PREFIX_DIR |
| 38189 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 38190 | VERSION = $PACKAGE_VERSION |
| 38191 | CC = $CC |
| 38192 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38193 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 38194 | PCFLAGS = $MAGICK_PCFLAGS |
| 38195 | DEFS = $DEFS |
| 38196 | LDFLAGS = $LDFLAGS |
| 38197 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 38198 | LIBS = $MAGICK_LIBS |
| 38199 | CXX = $CXX |
| 38200 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38201 | FEATURES = $MAGICK_FEATURES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38202 | " >&5 |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38203 | $as_echo "$as_me: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38204 | ImageMagick is configured as follows. Please verify that this configuration |
| 38205 | matches your expectations. |
| 38206 | |
| 38207 | Host system type: $host |
| 38208 | Build system type: $build |
| 38209 | |
| 38210 | Option Value |
| 38211 | ------------------------------------------------------------------------------- |
| 38212 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 38213 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 38214 | Module support --with-modules=$with_modules $with_modules |
| 38215 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 38216 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 38217 | High Dynamic Range Imagery |
| 38218 | --enable-hdri=$enable_hdri $enable_hdri |
| 38219 | |
| 38220 | Delegate Configuration: |
| 38221 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 38222 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38223 | Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38224 | DJVU --with-djvu=$with_djvu $have_djvu |
| 38225 | DPS --with-dps=$with_dps $have_dps |
| 38226 | FFTW --with-fftw=$with_fftw $have_fftw |
| 38227 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 38228 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 38229 | FreeType --with-freetype=$with_freetype $have_freetype |
| 38230 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 38231 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 38232 | Ghostscript None $PSDelegate ($GSVersion) |
| 38233 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 38234 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 38235 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 38236 | JBIG --with-jbig=$with_jbig $have_jbig |
| 38237 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 38238 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38239 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 38240 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38241 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38242 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38243 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 38244 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38245 | PANGO --with-pango=$with_pango $have_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38246 | PERL --with-perl=$with_perl $have_perl |
| 38247 | PNG --with-png=$with_png $have_png |
| 38248 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 38249 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38250 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38251 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 38252 | WMF --with-wmf=$with_wmf $have_wmf |
| 38253 | X11 --with-x=$with_x $have_x |
| 38254 | XML --with-xml=$with_xml $have_xml |
| 38255 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 38256 | |
| 38257 | X11 Configuration: |
| 38258 | X_CFLAGS = $X_CFLAGS |
| 38259 | X_PRE_LIBS = $X_PRE_LIBS |
| 38260 | X_LIBS = $X_LIBS |
| 38261 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 38262 | |
| 38263 | Options used to compile and link: |
| 38264 | PREFIX = $PREFIX_DIR |
| 38265 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 38266 | VERSION = $PACKAGE_VERSION |
| 38267 | CC = $CC |
| 38268 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38269 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 38270 | PCFLAGS = $MAGICK_PCFLAGS |
| 38271 | DEFS = $DEFS |
| 38272 | LDFLAGS = $LDFLAGS |
| 38273 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 38274 | LIBS = $MAGICK_LIBS |
| 38275 | CXX = $CXX |
| 38276 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38277 | FEATURES = $MAGICK_FEATURES |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38278 | " >&6;} |