| 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 | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3. | 
| 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 | fd9dcd4 | 2010-08-08 18:07:02 +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 | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 94 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; | 
|  | 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 97 | for as_dir in $PATH | 
|  | 98 | do | 
|  | 99 | IFS=$as_save_IFS | 
|  | 100 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 102 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS | 
|  | 104 |  | 
|  | 105 | ;; | 
|  | 106 | esac | 
|  | 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 108 | # in which case we are not to be found in the path. | 
|  | 109 | if test "x$as_myself" = x; then | 
|  | 110 | as_myself=$0 | 
|  | 111 | fi | 
|  | 112 | if test ! -f "$as_myself"; then | 
|  | 113 | $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] | 114 | exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 115 | fi | 
|  | 116 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 118 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 119 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 120 | # trigger a bug in pdksh 5.2.14. | 
|  | 121 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 122 | do eval test x\${$as_var+set} = xset \ | 
|  | 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 124 | done | 
|  | 125 | PS1='$ ' | 
|  | 126 | PS2='> ' | 
|  | 127 | PS4='+ ' | 
|  | 128 |  | 
|  | 129 | # NLS nuisances. | 
|  | 130 | LC_ALL=C | 
|  | 131 | export LC_ALL | 
|  | 132 | LANGUAGE=C | 
|  | 133 | export LANGUAGE | 
|  | 134 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 135 | # CDPATH. | 
|  | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 137 |  | 
|  | 138 | if test "x$CONFIG_SHELL" = x; then | 
|  | 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 140 | emulate sh | 
|  | 141 | NULLCMD=: | 
|  | 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 143 | # is contrary to our usage.  Disable this feature. | 
|  | 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 145 | setopt NO_GLOB_SUBST | 
|  | 146 | else | 
|  | 147 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 148 | *posix*) : | 
|  | 149 | set -o posix ;; #( | 
|  | 150 | *) : | 
|  | 151 | ;; | 
|  | 152 | esac | 
|  | 153 | fi | 
|  | 154 | " | 
|  | 155 | as_required="as_fn_return () { (exit \$1); } | 
|  | 156 | as_fn_success () { as_fn_return 0; } | 
|  | 157 | as_fn_failure () { as_fn_return 1; } | 
|  | 158 | as_fn_ret_success () { return 0; } | 
|  | 159 | as_fn_ret_failure () { return 1; } | 
|  | 160 |  | 
|  | 161 | exitcode=0 | 
|  | 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 167 |  | 
|  | 168 | else | 
|  | 169 | exitcode=1; echo positional parameters were not saved. | 
|  | 170 | fi | 
|  | 171 | test x\$exitcode = x0 || exit 1" | 
|  | 172 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 176 | test \$(( 1 + 1 )) = 2 || exit 1 | 
|  | 177 |  | 
|  | 178 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | 
|  | 179 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 180 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
|  | 181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
|  | 182 | PATH=/empty FPATH=/empty; export PATH FPATH | 
|  | 183 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | 
|  | 184 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 185 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 186 | as_have_required=yes | 
|  | 187 | else | 
|  | 188 | as_have_required=no | 
|  | 189 | fi | 
|  | 190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 191 |  | 
|  | 192 | else | 
|  | 193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 194 | as_found=false | 
|  | 195 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 196 | do | 
|  | 197 | IFS=$as_save_IFS | 
|  | 198 | test -z "$as_dir" && as_dir=. | 
|  | 199 | as_found=: | 
|  | 200 | case $as_dir in #( | 
|  | 201 | /*) | 
|  | 202 | for as_base in sh bash ksh sh5; do | 
|  | 203 | # Try only shells that exist, to save several forks. | 
|  | 204 | as_shell=$as_dir/$as_base | 
|  | 205 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 206 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 207 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 208 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 209 | break 2 | 
|  | 210 | fi | 
|  | 211 | fi | 
|  | 212 | done;; | 
|  | 213 | esac | 
|  | 214 | as_found=false | 
|  | 215 | done | 
|  | 216 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 217 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 218 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 219 | fi; } | 
|  | 220 | IFS=$as_save_IFS | 
|  | 221 |  | 
|  | 222 |  | 
|  | 223 | if test "x$CONFIG_SHELL" != x; then : | 
|  | 224 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 225 | # neutralization value for shells without unset; and this also | 
|  | 226 | # works around shells that cannot unset nonexistent variables. | 
|  | 227 | BASH_ENV=/dev/null | 
|  | 228 | ENV=/dev/null | 
|  | 229 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 230 | export CONFIG_SHELL | 
|  | 231 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | 
|  | 232 | fi | 
|  | 233 |  | 
|  | 234 | if test x$as_have_required = xno; then : | 
|  | 235 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 236 | $as_echo "$0: the shells that I found on your system." | 
|  | 237 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 240 | else | 
|  | 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
|  | 242 | $0: http://www.imagemagick.org about your system, including | 
|  | 243 | $0: any error possibly output before this message. Then | 
|  | 244 | $0: install a modern shell, or manually run the script | 
|  | 245 | $0: under such a shell if you do have one." | 
|  | 246 | fi | 
|  | 247 | exit 1 | 
|  | 248 | fi | 
|  | 249 | fi | 
|  | 250 | fi | 
|  | 251 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 252 | export SHELL | 
|  | 253 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 254 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 255 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 256 |  | 
|  | 257 | ## --------------------- ## | 
|  | 258 | ## M4sh Shell Functions. ## | 
|  | 259 | ## --------------------- ## | 
|  | 260 | # as_fn_unset VAR | 
|  | 261 | # --------------- | 
|  | 262 | # Portably unset VAR. | 
|  | 263 | as_fn_unset () | 
|  | 264 | { | 
|  | 265 | { eval $1=; unset $1;} | 
|  | 266 | } | 
|  | 267 | as_unset=as_fn_unset | 
|  | 268 |  | 
|  | 269 | # as_fn_set_status STATUS | 
|  | 270 | # ----------------------- | 
|  | 271 | # Set $? to STATUS, without forking. | 
|  | 272 | as_fn_set_status () | 
|  | 273 | { | 
|  | 274 | return $1 | 
|  | 275 | } # as_fn_set_status | 
|  | 276 |  | 
|  | 277 | # as_fn_exit STATUS | 
|  | 278 | # ----------------- | 
|  | 279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 280 | as_fn_exit () | 
|  | 281 | { | 
|  | 282 | set +e | 
|  | 283 | as_fn_set_status $1 | 
|  | 284 | exit $1 | 
|  | 285 | } # as_fn_exit | 
|  | 286 |  | 
|  | 287 | # as_fn_mkdir_p | 
|  | 288 | # ------------- | 
|  | 289 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 290 | as_fn_mkdir_p () | 
|  | 291 | { | 
|  | 292 |  | 
|  | 293 | case $as_dir in #( | 
|  | 294 | -*) as_dir=./$as_dir;; | 
|  | 295 | esac | 
|  | 296 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 297 | as_dirs= | 
|  | 298 | while :; do | 
|  | 299 | case $as_dir in #( | 
|  | 300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 301 | *) as_qdir=$as_dir;; | 
|  | 302 | esac | 
|  | 303 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 304 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 307 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 309 | $as_echo X"$as_dir" | | 
|  | 310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 311 | s//\1/ | 
|  | 312 | q | 
|  | 313 | } | 
|  | 314 | /^X\(\/\/\)[^/].*/{ | 
|  | 315 | s//\1/ | 
|  | 316 | q | 
|  | 317 | } | 
|  | 318 | /^X\(\/\/\)$/{ | 
|  | 319 | s//\1/ | 
|  | 320 | q | 
|  | 321 | } | 
|  | 322 | /^X\(\/\).*/{ | 
|  | 323 | s//\1/ | 
|  | 324 | q | 
|  | 325 | } | 
|  | 326 | s/.*/./; q'` | 
|  | 327 | test -d "$as_dir" && break | 
|  | 328 | done | 
|  | 329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 331 |  | 
|  | 332 |  | 
|  | 333 | } # as_fn_mkdir_p | 
|  | 334 | # as_fn_append VAR VALUE | 
|  | 335 | # ---------------------- | 
|  | 336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 337 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 338 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 339 | # implementations. | 
|  | 340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 341 | eval 'as_fn_append () | 
|  | 342 | { | 
|  | 343 | eval $1+=\$2 | 
|  | 344 | }' | 
|  | 345 | else | 
|  | 346 | as_fn_append () | 
|  | 347 | { | 
|  | 348 | eval $1=\$$1\$2 | 
|  | 349 | } | 
|  | 350 | fi # as_fn_append | 
|  | 351 |  | 
|  | 352 | # as_fn_arith ARG... | 
|  | 353 | # ------------------ | 
|  | 354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 356 | # must be portable across $(()) and expr. | 
|  | 357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 358 | eval 'as_fn_arith () | 
|  | 359 | { | 
|  | 360 | as_val=$(( $* )) | 
|  | 361 | }' | 
|  | 362 | else | 
|  | 363 | as_fn_arith () | 
|  | 364 | { | 
|  | 365 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 366 | } | 
|  | 367 | fi # as_fn_arith | 
|  | 368 |  | 
|  | 369 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 371 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 374 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 375 | as_fn_error () | 
|  | 376 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 377 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 378 | if test "$4"; then | 
|  | 379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 381 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 382 | $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 383 | as_fn_exit $as_status | 
|  | 384 | } # as_fn_error | 
|  | 385 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 386 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 388 | as_expr=expr | 
|  | 389 | else | 
|  | 390 | as_expr=false | 
|  | 391 | fi | 
|  | 392 |  | 
|  | 393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 394 | as_basename=basename | 
|  | 395 | else | 
|  | 396 | as_basename=false | 
|  | 397 | fi | 
|  | 398 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 400 | as_dirname=dirname | 
|  | 401 | else | 
|  | 402 | as_dirname=false | 
|  | 403 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 404 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 405 | as_me=`$as_basename -- "$0" || | 
|  | 406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 407 | X"$0" : 'X\(//\)$' \| \ | 
|  | 408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 409 | $as_echo X/"$0" | | 
|  | 410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 411 | s//\1/ | 
|  | 412 | q | 
|  | 413 | } | 
|  | 414 | /^X\/\(\/\/\)$/{ | 
|  | 415 | s//\1/ | 
|  | 416 | q | 
|  | 417 | } | 
|  | 418 | /^X\/\(\/\).*/{ | 
|  | 419 | s//\1/ | 
|  | 420 | q | 
|  | 421 | } | 
|  | 422 | s/.*/./; q'` | 
|  | 423 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 424 | # Avoid depending upon Character Ranges. | 
|  | 425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 428 | as_cr_digits='0123456789' | 
|  | 429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 430 |  | 
|  | 431 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 437 | sed -n ' | 
|  | 438 | p | 
|  | 439 | /[$]LINENO/= | 
|  | 440 | ' <$as_myself | | 
|  | 441 | sed ' | 
|  | 442 | s/[$]LINENO.*/&-/ | 
|  | 443 | t lineno | 
|  | 444 | b | 
|  | 445 | :lineno | 
|  | 446 | N | 
|  | 447 | :loop | 
|  | 448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
|  | 449 | t loop | 
|  | 450 | s/-\n.*// | 
|  | 451 | ' >$as_me.lineno && | 
|  | 452 | chmod +x "$as_me.lineno" || | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 453 | { $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] | 454 |  | 
|  | 455 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 456 | # (the dirname of $[0] is not the place where we might find the | 
|  | 457 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 458 | . "./$as_me.lineno" | 
|  | 459 | # Exit status is that of the last command. | 
|  | 460 | exit | 
|  | 461 | } | 
|  | 462 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 463 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 464 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 465 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 466 | case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 467 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 468 | xy)  ECHO_C='\c';; | 
|  | 469 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 470 | ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 471 | esac;; | 
|  | 472 | *) | 
|  | 473 | ECHO_N='-n';; | 
|  | 474 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 475 |  | 
|  | 476 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 477 | if test -d conf$$.dir; then | 
|  | 478 | rm -f conf$$.dir/conf$$.file | 
|  | 479 | else | 
|  | 480 | rm -f conf$$.dir | 
|  | 481 | mkdir conf$$.dir 2>/dev/null | 
|  | 482 | fi | 
|  | 483 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 485 | as_ln_s='ln -s' | 
|  | 486 | # ... but there are two gotchas: | 
|  | 487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 489 | # In both cases, we have to default to `cp -p'. | 
|  | 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 491 | as_ln_s='cp -p' | 
|  | 492 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 493 | as_ln_s=ln | 
|  | 494 | else | 
|  | 495 | as_ln_s='cp -p' | 
|  | 496 | fi | 
|  | 497 | else | 
|  | 498 | as_ln_s='cp -p' | 
|  | 499 | fi | 
|  | 500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 501 | rmdir conf$$.dir 2>/dev/null | 
|  | 502 |  | 
|  | 503 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 504 | as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 505 | else | 
|  | 506 | test -d ./-p && rmdir ./-p | 
|  | 507 | as_mkdir_p=false | 
|  | 508 | fi | 
|  | 509 |  | 
|  | 510 | if test -x / >/dev/null 2>&1; then | 
|  | 511 | as_test_x='test -x' | 
|  | 512 | else | 
|  | 513 | if ls -dL / >/dev/null 2>&1; then | 
|  | 514 | as_ls_L_option=L | 
|  | 515 | else | 
|  | 516 | as_ls_L_option= | 
|  | 517 | fi | 
|  | 518 | as_test_x=' | 
|  | 519 | eval sh -c '\'' | 
|  | 520 | if test -d "$1"; then | 
|  | 521 | test -d "$1/."; | 
|  | 522 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 523 | case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 524 | -*)set "./$1";; | 
|  | 525 | esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 527 | ???[sx]*):;;*)false;;esac;fi | 
|  | 528 | '\'' sh | 
|  | 529 | ' | 
|  | 530 | fi | 
|  | 531 | as_executable_p=$as_test_x | 
|  | 532 |  | 
|  | 533 | # Sed expression to map a string onto a valid CPP name. | 
|  | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 535 |  | 
|  | 536 | # Sed expression to map a string onto a valid variable name. | 
|  | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 538 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 539 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 540 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 541 | lt_ltdl_dir='ltdl' | 
|  | 542 |  | 
|  | 543 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" | 
|  | 544 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 545 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 546 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 547 | exec 6>&1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 548 |  | 
|  | 549 | # Name of the host. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 550 | # 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] | 551 | # so uname gets run too. | 
|  | 552 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 553 |  | 
|  | 554 | # | 
|  | 555 | # Initializations. | 
|  | 556 | # | 
|  | 557 | ac_default_prefix=/usr/local | 
|  | 558 | ac_clean_files= | 
|  | 559 | ac_config_libobj_dir=. | 
|  | 560 | LIBOBJS= | 
|  | 561 | cross_compiling=no | 
|  | 562 | subdirs= | 
|  | 563 | MFLAGS= | 
|  | 564 | MAKEFLAGS= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 565 |  | 
|  | 566 | # Identity of this package. | 
|  | 567 | PACKAGE_NAME='ImageMagick' | 
|  | 568 | PACKAGE_TARNAME='ImageMagick' | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 569 | PACKAGE_VERSION='6.6.3' | 
|  | 570 | PACKAGE_STRING='ImageMagick 6.6.3' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 571 | PACKAGE_BUGREPORT='http://www.imagemagick.org' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 572 | PACKAGE_URL='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 573 |  | 
|  | 574 | ac_unique_file="magick/MagickCore.h" | 
|  | 575 | ac_config_libobj_dir=ltdl | 
|  | 576 | # Factoring default headers for most tests. | 
|  | 577 | ac_includes_default="\ | 
|  | 578 | #include <stdio.h> | 
|  | 579 | #ifdef HAVE_SYS_TYPES_H | 
|  | 580 | # include <sys/types.h> | 
|  | 581 | #endif | 
|  | 582 | #ifdef HAVE_SYS_STAT_H | 
|  | 583 | # include <sys/stat.h> | 
|  | 584 | #endif | 
|  | 585 | #ifdef STDC_HEADERS | 
|  | 586 | # include <stdlib.h> | 
|  | 587 | # include <stddef.h> | 
|  | 588 | #else | 
|  | 589 | # ifdef HAVE_STDLIB_H | 
|  | 590 | #  include <stdlib.h> | 
|  | 591 | # endif | 
|  | 592 | #endif | 
|  | 593 | #ifdef HAVE_STRING_H | 
|  | 594 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
|  | 595 | #  include <memory.h> | 
|  | 596 | # endif | 
|  | 597 | # include <string.h> | 
|  | 598 | #endif | 
|  | 599 | #ifdef HAVE_STRINGS_H | 
|  | 600 | # include <strings.h> | 
|  | 601 | #endif | 
|  | 602 | #ifdef HAVE_INTTYPES_H | 
|  | 603 | # include <inttypes.h> | 
|  | 604 | #endif | 
|  | 605 | #ifdef HAVE_STDINT_H | 
|  | 606 | # include <stdint.h> | 
|  | 607 | #endif | 
|  | 608 | #ifdef HAVE_UNISTD_H | 
|  | 609 | # include <unistd.h> | 
|  | 610 | #endif" | 
|  | 611 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 612 | ac_header_list= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 613 | ac_subst_vars='ltdl_LTLIBOBJS | 
|  | 614 | ltdl_LIBOBJS | 
|  | 615 | am__EXEEXT_FALSE | 
|  | 616 | am__EXEEXT_TRUE | 
|  | 617 | LTLIBOBJS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 618 | MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 619 | MAGICK_LIBS | 
|  | 620 | MAGICK_LDFLAGS | 
|  | 621 | MAGICK_PCFLAGS | 
|  | 622 | MAGICK_CPPFLAGS | 
|  | 623 | MAGICK_CXXFLAGS | 
|  | 624 | MAGICK_CFLAGS | 
|  | 625 | MAGICK_DEP_LIBS | 
|  | 626 | MAGICK_LTDLDEPS | 
|  | 627 | MAGICK_LIBLTDL | 
|  | 628 | OSX_GCOV_LDFLAG | 
|  | 629 | DELEGATES | 
|  | 630 | MAGICKCORE_PATH | 
|  | 631 | PERL_SUPPORTS_DESTDIR | 
|  | 632 | WITH_PERL_DYNAMIC_FALSE | 
|  | 633 | WITH_PERL_DYNAMIC_TRUE | 
|  | 634 | WITH_PERL_STATIC_FALSE | 
|  | 635 | WITH_PERL_STATIC_TRUE | 
|  | 636 | WITH_PERL_FALSE | 
|  | 637 | WITH_PERL_TRUE | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 638 | PERL_VERSION | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 639 | GSVersion | 
|  | 640 | GSPSDevice | 
|  | 641 | GSPDFDevice | 
|  | 642 | GSMonoDevice | 
|  | 643 | GSEPSDevice | 
|  | 644 | GSColorDevice | 
|  | 645 | GSCMYKDevice | 
|  | 646 | GSAlphaDevice | 
|  | 647 | XPSVersion | 
|  | 648 | XPSCMYKDevice | 
|  | 649 | XPSColorDevice | 
|  | 650 | XPSMonoDevice | 
|  | 651 | PCLVersion | 
|  | 652 | PCLCMYKDevice | 
|  | 653 | PCLColorDevice | 
|  | 654 | PCLMonoDevice | 
|  | 655 | ZIP_DELEGATE_FALSE | 
|  | 656 | ZIP_DELEGATE_TRUE | 
|  | 657 | ZIP | 
|  | 658 | P7ZIP_DELEGATE_FALSE | 
|  | 659 | P7ZIP_DELEGATE_TRUE | 
|  | 660 | P7ZIP | 
|  | 661 | RPM_DELEGATE_FALSE | 
|  | 662 | RPM_DELEGATE_TRUE | 
|  | 663 | RPM | 
|  | 664 | PERL | 
|  | 665 | TAR | 
|  | 666 | ShowImageDelegate | 
|  | 667 | type_include_files | 
|  | 668 | ghostscript_font_dir | 
|  | 669 | windows_font_dir | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 670 | dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 671 | PrintDelegate | 
|  | 672 | ZipDelegate | 
|  | 673 | XPSDelegate | 
|  | 674 | WWWDecodeDelegate | 
|  | 675 | WMFDecodeDelegate | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 676 | UniconvertorDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 677 | TXTDelegate | 
|  | 678 | SCANDecodeDelegate | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 679 | RSVGDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 680 | RMDelegate | 
|  | 681 | RLEEncodeDelegate | 
|  | 682 | PSDelegate | 
|  | 683 | POVDelegate | 
|  | 684 | PGPDecodeDelegate | 
|  | 685 | PCLDelegate | 
|  | 686 | MVDelegate | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 687 | MrSIDDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 688 | MPEGEncodeDelegate | 
|  | 689 | MPEGDecodeDelegate | 
|  | 690 | MANDelegate | 
|  | 691 | LaunchDelegate | 
|  | 692 | LZWEncodeDelegate | 
|  | 693 | LZWDecodeDelegate | 
|  | 694 | LPRDelegate | 
|  | 695 | LPDelegate | 
|  | 696 | ILBMEncodeDelegate | 
|  | 697 | ILBMDecodeDelegate | 
|  | 698 | HTMLDecodeDelegate | 
|  | 699 | HPGLDecodeDelegate | 
|  | 700 | HDRDecodeDelegate | 
|  | 701 | GnuplotDecodeDelegate | 
|  | 702 | MogrifyDelegate | 
|  | 703 | DisplayDelegate | 
|  | 704 | ConvertDelegate | 
|  | 705 | FIGDecodeDelegate | 
|  | 706 | EditorDelegate | 
|  | 707 | EchoDelegate | 
|  | 708 | DVIDecodeDelegate | 
|  | 709 | GVCDecodeDelegate | 
|  | 710 | DNGDecodeDelegate | 
|  | 711 | CatDelegate | 
|  | 712 | CGMDecodeDelegate | 
|  | 713 | BrowseDelegate | 
|  | 714 | BZIPDelegate | 
|  | 715 | BlenderDecodeDelegate | 
|  | 716 | AVIDecodeDelegate | 
|  | 717 | AutotraceDecodeDelegate | 
|  | 718 | SHARE_CONFIGURE_PATH | 
|  | 719 | SHARE_PATH | 
|  | 720 | DOCUMENTATION_PATH | 
|  | 721 | FILTER_PATH | 
|  | 722 | CODER_PATH | 
|  | 723 | CONFIGURE_PATH | 
|  | 724 | LIBRARY_PATH | 
|  | 725 | EXECUTABLE_PATH | 
|  | 726 | PERLMAINCC | 
|  | 727 | XML_LIBS | 
|  | 728 | XML_DELEGATE_FALSE | 
|  | 729 | XML_DELEGATE_TRUE | 
|  | 730 | xml2_config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 731 | WMF_LIBS | 
|  | 732 | WMF_DELEGATE_FALSE | 
|  | 733 | WMF_DELEGATE_TRUE | 
|  | 734 | TIFF_LIBS | 
|  | 735 | TIFF_DELEGATE_FALSE | 
|  | 736 | TIFF_DELEGATE_TRUE | 
|  | 737 | CAIRO_DELEGATE_FALSE | 
|  | 738 | CAIRO_DELEGATE_TRUE | 
|  | 739 | RSVG_DELEGATE_FALSE | 
|  | 740 | RSVG_DELEGATE_TRUE | 
|  | 741 | CAIRO_SVG_LIBS | 
|  | 742 | CAIRO_SVG_CFLAGS | 
|  | 743 | RSVG_LIBS | 
|  | 744 | RSVG_CFLAGS | 
|  | 745 | PNG_LIBS | 
|  | 746 | PNG_DELEGATE_FALSE | 
|  | 747 | PNG_DELEGATE_TRUE | 
|  | 748 | OPENEXR_DELEGATE_FALSE | 
|  | 749 | OPENEXR_DELEGATE_TRUE | 
|  | 750 | OPENEXR_LIBS | 
|  | 751 | OPENEXR_CFLAGS | 
|  | 752 | LQR_DELEGATE_FALSE | 
|  | 753 | LQR_DELEGATE_TRUE | 
|  | 754 | LQR_LIBS | 
|  | 755 | LQR_CFLAGS | 
|  | 756 | LCMS_LIBS | 
|  | 757 | LCMS_DELEGATE_FALSE | 
|  | 758 | LCMS_DELEGATE_TRUE | 
|  | 759 | JP2_LIBS | 
|  | 760 | JP2_DELEGATE_FALSE | 
|  | 761 | JP2_DELEGATE_TRUE | 
|  | 762 | JPEG_LIBS | 
|  | 763 | JPEG_DELEGATE_FALSE | 
|  | 764 | JPEG_DELEGATE_TRUE | 
|  | 765 | JBIG_LIBS | 
|  | 766 | JBIG_DELEGATE_FALSE | 
|  | 767 | JBIG_DELEGATE_TRUE | 
|  | 768 | GVC_DELEGATE_FALSE | 
|  | 769 | GVC_DELEGATE_TRUE | 
|  | 770 | GVC_LIBS | 
|  | 771 | GVC_CFLAGS | 
|  | 772 | GS_LIBS | 
|  | 773 | GS_DELEGATE_FALSE | 
|  | 774 | GS_DELEGATE_TRUE | 
|  | 775 | FREETYPE_LIBS | 
|  | 776 | FREETYPE_DELEGATE_FALSE | 
|  | 777 | FREETYPE_DELEGATE_TRUE | 
|  | 778 | freetype_config | 
|  | 779 | FONTCONFIG_DELEGATE_FALSE | 
|  | 780 | FONTCONFIG_DELEGATE_TRUE | 
|  | 781 | FONTCONFIG_LIBS | 
|  | 782 | FONTCONFIG_CFLAGS | 
|  | 783 | FPX_LIBS | 
|  | 784 | FPX_DELEGATE_FALSE | 
|  | 785 | FPX_DELEGATE_TRUE | 
|  | 786 | FFTW_LIBS | 
|  | 787 | FFTW_DELEGATE_FALSE | 
|  | 788 | FFTW_DELEGATE_TRUE | 
|  | 789 | DJVU_LIBS | 
|  | 790 | DJVU_DELEGATE_FALSE | 
|  | 791 | DJVU_DELEGATE_TRUE | 
|  | 792 | DPS_LIBS | 
|  | 793 | DPS_DELEGATE_FALSE | 
|  | 794 | DPS_DELEGATE_TRUE | 
|  | 795 | AUTOTRACE_DELEGATE_FALSE | 
|  | 796 | AUTOTRACE_DELEGATE_TRUE | 
|  | 797 | AUTOTRACE_LIBS | 
|  | 798 | AUTOTRACE_CFLAGS | 
|  | 799 | LIB_DL | 
|  | 800 | ZLIB_LIBS | 
|  | 801 | ZLIB_DELEGATE_FALSE | 
|  | 802 | ZLIB_DELEGATE_TRUE | 
|  | 803 | XEXT_LIBS | 
|  | 804 | X11_LIBS | 
|  | 805 | X11_DELEGATE_FALSE | 
|  | 806 | X11_DELEGATE_TRUE | 
|  | 807 | X_EXTRA_LIBS | 
|  | 808 | X_LIBS | 
|  | 809 | X_PRE_LIBS | 
|  | 810 | X_CFLAGS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 811 | XMKMF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 812 | BZLIB_LIBS | 
|  | 813 | BZLIB_DELEGATE_FALSE | 
|  | 814 | BZLIB_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 815 | CCMALLOCDelegate | 
|  | 816 | UMEM_LIBS | 
|  | 817 | HasUMEM_FALSE | 
|  | 818 | HasUMEM_TRUE | 
|  | 819 | THREAD_LIBS | 
|  | 820 | GOMP_LIBS | 
|  | 821 | WITH_MAGICK_PLUS_PLUS_FALSE | 
|  | 822 | WITH_MAGICK_PLUS_PLUS_TRUE | 
|  | 823 | OPENMP_CXXFLAGS | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 824 | MATH_LIBS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 825 | POW_LIB | 
|  | 826 | LIBOBJS | 
|  | 827 | UINTPTR_T | 
|  | 828 | UINTMAX_T | 
|  | 829 | UINT64_T | 
|  | 830 | INT64_T | 
|  | 831 | UINT32_T | 
|  | 832 | INT32_T | 
|  | 833 | UINT16_T | 
|  | 834 | INT16_T | 
|  | 835 | UINT8_T | 
|  | 836 | INT8_T | 
|  | 837 | LIBRARY_EXTRA_CPPFLAGS | 
|  | 838 | MODULE_EXTRA_CPPFLAGS | 
|  | 839 | LIBSTDCLDFLAGS | 
|  | 840 | PERL_MAKE_OPTIONS | 
|  | 841 | QUANTUM_DEPTH | 
|  | 842 | MAINT | 
|  | 843 | MAINTAINER_MODE_FALSE | 
|  | 844 | MAINTAINER_MODE_TRUE | 
|  | 845 | MAGICK_HDRI | 
|  | 846 | DLLDFLAGS | 
|  | 847 | WITH_LTDL_FALSE | 
|  | 848 | WITH_LTDL_TRUE | 
|  | 849 | WITH_MODULES_FALSE | 
|  | 850 | WITH_MODULES_TRUE | 
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame] | 851 | WITH_SHARED_LIBS_FALSE | 
|  | 852 | WITH_SHARED_LIBS_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 853 | LTDLOPEN | 
|  | 854 | LT_CONFIG_H | 
|  | 855 | CONVENIENCE_LTDL_FALSE | 
|  | 856 | CONVENIENCE_LTDL_TRUE | 
|  | 857 | INSTALL_LTDL_FALSE | 
|  | 858 | INSTALL_LTDL_TRUE | 
|  | 859 | ARGZ_H | 
|  | 860 | sys_symbol_underscore | 
|  | 861 | LIBADD_DL | 
|  | 862 | LT_DLPREOPEN | 
|  | 863 | LIBADD_DLD_LINK | 
|  | 864 | LIBADD_SHL_LOAD | 
|  | 865 | LIBADD_DLOPEN | 
|  | 866 | LT_DLLOADERS | 
|  | 867 | INCLTDL | 
|  | 868 | LTDLINCL | 
|  | 869 | LTDLDEPS | 
|  | 870 | LIBLTDL | 
|  | 871 | LIBTOOL_DEPS | 
|  | 872 | CXXCPP | 
|  | 873 | OTOOL64 | 
|  | 874 | OTOOL | 
|  | 875 | LIPO | 
|  | 876 | NMEDIT | 
|  | 877 | DSYMUTIL | 
| cristy | 4dc4443 | 2009-12-30 23:30:06 +0000 | [diff] [blame] | 878 | RANLIB | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 879 | AR | 
|  | 880 | NM | 
|  | 881 | ac_ct_DUMPBIN | 
|  | 882 | DUMPBIN | 
|  | 883 | LIBTOOL | 
|  | 884 | OBJDUMP | 
|  | 885 | DLLTOOL | 
|  | 886 | AS | 
|  | 887 | LFS_CPPFLAGS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 888 | CL_LIBS | 
|  | 889 | CL_CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 890 | OPENMP_CFLAGS | 
|  | 891 | PTHREAD_CFLAGS | 
|  | 892 | PTHREAD_LIBS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 893 | PTHREAD_CC | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 894 | ax_pthread_config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 895 | WinPathScript | 
|  | 896 | USING_CL_FALSE | 
|  | 897 | USING_CL_TRUE | 
|  | 898 | CYGWIN_BUILD_FALSE | 
|  | 899 | CYGWIN_BUILD_TRUE | 
|  | 900 | WIN32_NATIVE_BUILD_FALSE | 
|  | 901 | WIN32_NATIVE_BUILD_TRUE | 
|  | 902 | WINGDI32_DELEGATE_FALSE | 
|  | 903 | WINGDI32_DELEGATE_TRUE | 
|  | 904 | GDI32_LIBS | 
|  | 905 | PKG_CONFIG | 
|  | 906 | LN_S | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 907 | LD | 
|  | 908 | FGREP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 909 | SED | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 910 | am__fastdepCXX_FALSE | 
|  | 911 | am__fastdepCXX_TRUE | 
|  | 912 | CXXDEPMODE | 
|  | 913 | ac_ct_CXX | 
|  | 914 | CXXFLAGS | 
|  | 915 | CXX | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 916 | EGREP | 
|  | 917 | GREP | 
|  | 918 | CPP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 919 | am__fastdepCC_FALSE | 
|  | 920 | am__fastdepCC_TRUE | 
|  | 921 | CCDEPMODE | 
|  | 922 | AMDEPBACKSLASH | 
|  | 923 | AMDEP_FALSE | 
|  | 924 | AMDEP_TRUE | 
|  | 925 | am__quote | 
|  | 926 | am__include | 
|  | 927 | DEPDIR | 
|  | 928 | OBJEXT | 
|  | 929 | EXEEXT | 
|  | 930 | ac_ct_CC | 
|  | 931 | CPPFLAGS | 
|  | 932 | LDFLAGS | 
|  | 933 | CFLAGS | 
|  | 934 | CC | 
|  | 935 | DIRSEP | 
|  | 936 | MAGICK_FILTER_MODULE_PATH | 
|  | 937 | MAGICK_CONFIGURE_BUILD_PATH | 
|  | 938 | MAGICK_CONFIGURE_SRC_PATH | 
|  | 939 | MAGICK_CODER_MODULE_PATH | 
|  | 940 | MAN_DIR | 
|  | 941 | INFO_DIR | 
|  | 942 | PERSISTINCLUDE_DIR | 
|  | 943 | INCLUDE_DIR | 
|  | 944 | LIB_DIR | 
|  | 945 | LOCALSTATE_DIR | 
|  | 946 | SHAREDSTATE_DIR | 
|  | 947 | SYSCONF_DIR | 
|  | 948 | DATA_DIR | 
|  | 949 | LIBEXEC_DIR | 
|  | 950 | SBIN_DIR | 
|  | 951 | BIN_DIR | 
|  | 952 | EXEC_PREFIX_DIR | 
|  | 953 | PREFIX_DIR | 
|  | 954 | CONFIG_STATUS_DEPENDENCIES | 
|  | 955 | MAGICK_LIB_VERSION_NUMBER | 
|  | 956 | MAGICK_LIB_VERSION_TEXT | 
|  | 957 | MAGICK_LIB_VERSION | 
|  | 958 | AM_BACKSLASH | 
|  | 959 | AM_DEFAULT_VERBOSITY | 
|  | 960 | am__untar | 
|  | 961 | am__tar | 
|  | 962 | AMTAR | 
|  | 963 | am__leading_dot | 
|  | 964 | SET_MAKE | 
|  | 965 | AWK | 
|  | 966 | mkdir_p | 
|  | 967 | MKDIR_P | 
|  | 968 | INSTALL_STRIP_PROGRAM | 
|  | 969 | STRIP | 
|  | 970 | install_sh | 
|  | 971 | MAKEINFO | 
|  | 972 | AUTOHEADER | 
|  | 973 | AUTOMAKE | 
|  | 974 | AUTOCONF | 
|  | 975 | ACLOCAL | 
|  | 976 | VERSION | 
|  | 977 | PACKAGE | 
|  | 978 | CYGPATH_W | 
|  | 979 | am__isrc | 
|  | 980 | INSTALL_DATA | 
|  | 981 | INSTALL_SCRIPT | 
|  | 982 | INSTALL_PROGRAM | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 983 | PACKAGE_VERSION_ADDENDUM | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 984 | PACKAGE_RELEASE_DATE | 
|  | 985 | PACKAGE_LIB_VERSION_NUMBER | 
|  | 986 | PACKAGE_LIB_VERSION | 
|  | 987 | PACKAGE_CHANGE_DATE | 
|  | 988 | PACKAGE_RELEASE | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 989 | MAGICK_LIBRARY_VERSION_INFO | 
|  | 990 | MAGICK_LIBRARY_CURRENT_MIN | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 991 | MAGICK_LIBRARY_AGE | 
|  | 992 | MAGICK_LIBRARY_REVISION | 
|  | 993 | MAGICK_LIBRARY_CURRENT | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 994 | MAGICK_TARGET_OS | 
|  | 995 | MAGICK_TARGET_VENDOR | 
|  | 996 | MAGICK_TARGET_CPU | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 997 | target_os | 
|  | 998 | target_vendor | 
|  | 999 | target_cpu | 
|  | 1000 | target | 
|  | 1001 | host_os | 
|  | 1002 | host_vendor | 
|  | 1003 | host_cpu | 
|  | 1004 | host | 
|  | 1005 | build_os | 
|  | 1006 | build_vendor | 
|  | 1007 | build_cpu | 
|  | 1008 | build | 
|  | 1009 | CONFIGURE_ARGS | 
|  | 1010 | DISTCHECK_CONFIG_FLAGS | 
|  | 1011 | target_alias | 
|  | 1012 | host_alias | 
|  | 1013 | build_alias | 
|  | 1014 | LIBS | 
|  | 1015 | ECHO_T | 
|  | 1016 | ECHO_N | 
|  | 1017 | ECHO_C | 
|  | 1018 | DEFS | 
|  | 1019 | mandir | 
|  | 1020 | localedir | 
|  | 1021 | libdir | 
|  | 1022 | psdir | 
|  | 1023 | pdfdir | 
|  | 1024 | dvidir | 
|  | 1025 | htmldir | 
|  | 1026 | infodir | 
|  | 1027 | docdir | 
|  | 1028 | oldincludedir | 
|  | 1029 | includedir | 
|  | 1030 | localstatedir | 
|  | 1031 | sharedstatedir | 
|  | 1032 | sysconfdir | 
|  | 1033 | datadir | 
|  | 1034 | datarootdir | 
|  | 1035 | libexecdir | 
|  | 1036 | sbindir | 
|  | 1037 | bindir | 
|  | 1038 | program_transform_name | 
|  | 1039 | prefix | 
|  | 1040 | exec_prefix | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1041 | PACKAGE_URL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1042 | PACKAGE_BUGREPORT | 
|  | 1043 | PACKAGE_STRING | 
|  | 1044 | PACKAGE_VERSION | 
|  | 1045 | PACKAGE_TARNAME | 
|  | 1046 | PACKAGE_NAME | 
|  | 1047 | PATH_SEPARATOR | 
|  | 1048 | SHELL' | 
|  | 1049 | ac_subst_files='' | 
|  | 1050 | ac_user_opts=' | 
|  | 1051 | enable_option_checking | 
|  | 1052 | enable_silent_rules | 
|  | 1053 | enable_dependency_tracking | 
|  | 1054 | with_gnu_ld | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1055 | with_dmalloc | 
|  | 1056 | enable_bounds_checking | 
|  | 1057 | enable_osx_universal_binary | 
|  | 1058 | with_threads | 
|  | 1059 | enable_openmp | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 1060 | enable_opencl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1061 | enable_largefile | 
|  | 1062 | enable_shared | 
|  | 1063 | enable_static | 
|  | 1064 | with_pic | 
|  | 1065 | enable_fast_install | 
|  | 1066 | enable_libtool_lock | 
|  | 1067 | with_included_ltdl | 
|  | 1068 | with_ltdl_include | 
|  | 1069 | with_ltdl_lib | 
|  | 1070 | enable_ltdl_install | 
|  | 1071 | with_modules | 
|  | 1072 | enable_delegate_build | 
|  | 1073 | enable_deprecated | 
|  | 1074 | enable_installed | 
|  | 1075 | enable_cipher | 
|  | 1076 | enable_embeddable | 
|  | 1077 | enable_hdri | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1078 | enable_assert | 
|  | 1079 | enable_maintainer_mode | 
|  | 1080 | enable_ccmalloc | 
|  | 1081 | enable_efence | 
|  | 1082 | enable_prof | 
|  | 1083 | enable_gprof | 
|  | 1084 | enable_gcov | 
|  | 1085 | with_method_prefix | 
|  | 1086 | with_quantum_depth | 
|  | 1087 | with_cache | 
|  | 1088 | with_frozenpaths | 
|  | 1089 | with_magick_plus_plus | 
|  | 1090 | with_perl | 
|  | 1091 | with_perl_options | 
|  | 1092 | with_umem | 
|  | 1093 | with_libstdc | 
|  | 1094 | with_bzlib | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1095 | with_x | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1096 | with_zlib | 
|  | 1097 | with_autotrace | 
|  | 1098 | with_dps | 
|  | 1099 | with_djvu | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1100 | with_dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1101 | with_fftw | 
|  | 1102 | with_fpx | 
|  | 1103 | with_fontconfig | 
|  | 1104 | with_freetype | 
|  | 1105 | with_gslib | 
|  | 1106 | with_fontpath | 
|  | 1107 | with_gs_font_dir | 
|  | 1108 | with_gvc | 
|  | 1109 | with_jbig | 
|  | 1110 | with_jpeg | 
|  | 1111 | with_jp2 | 
|  | 1112 | with_lcms | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1113 | with_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1114 | with_lqr | 
|  | 1115 | with_openexr | 
|  | 1116 | with_png | 
|  | 1117 | with_rsvg | 
|  | 1118 | with_tiff | 
|  | 1119 | with_windows_font_dir | 
|  | 1120 | with_wmf | 
|  | 1121 | with_xml | 
|  | 1122 | ' | 
|  | 1123 | ac_precious_vars='build_alias | 
|  | 1124 | host_alias | 
|  | 1125 | target_alias | 
|  | 1126 | CC | 
|  | 1127 | CFLAGS | 
|  | 1128 | LDFLAGS | 
|  | 1129 | LIBS | 
|  | 1130 | CPPFLAGS | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1131 | CPP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1132 | CXX | 
|  | 1133 | CXXFLAGS | 
|  | 1134 | CCC | 
|  | 1135 | PKG_CONFIG | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1136 | CXXCPP | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1137 | XMKMF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1138 | AUTOTRACE_CFLAGS | 
|  | 1139 | AUTOTRACE_LIBS | 
|  | 1140 | FONTCONFIG_CFLAGS | 
|  | 1141 | FONTCONFIG_LIBS | 
|  | 1142 | GVC_CFLAGS | 
|  | 1143 | GVC_LIBS | 
|  | 1144 | LQR_CFLAGS | 
|  | 1145 | LQR_LIBS | 
|  | 1146 | OPENEXR_CFLAGS | 
|  | 1147 | OPENEXR_LIBS | 
|  | 1148 | RSVG_CFLAGS | 
|  | 1149 | RSVG_LIBS | 
|  | 1150 | CAIRO_SVG_CFLAGS | 
|  | 1151 | CAIRO_SVG_LIBS' | 
|  | 1152 |  | 
|  | 1153 |  | 
|  | 1154 | # Initialize some variables set by options. | 
|  | 1155 | ac_init_help= | 
|  | 1156 | ac_init_version=false | 
|  | 1157 | ac_unrecognized_opts= | 
|  | 1158 | ac_unrecognized_sep= | 
|  | 1159 | # The variables have the same names as the options, with | 
|  | 1160 | # dashes changed to underlines. | 
|  | 1161 | cache_file=/dev/null | 
|  | 1162 | exec_prefix=NONE | 
|  | 1163 | no_create= | 
|  | 1164 | no_recursion= | 
|  | 1165 | prefix=NONE | 
|  | 1166 | program_prefix=NONE | 
|  | 1167 | program_suffix=NONE | 
|  | 1168 | program_transform_name=s,x,x, | 
|  | 1169 | silent= | 
|  | 1170 | site= | 
|  | 1171 | srcdir= | 
|  | 1172 | verbose= | 
|  | 1173 | x_includes=NONE | 
|  | 1174 | x_libraries=NONE | 
|  | 1175 |  | 
|  | 1176 | # Installation directory options. | 
|  | 1177 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 1178 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 1179 | # by default will actually change. | 
|  | 1180 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
|  | 1181 | # (The list follows the same order as the GNU Coding Standards.) | 
|  | 1182 | bindir='${exec_prefix}/bin' | 
|  | 1183 | sbindir='${exec_prefix}/sbin' | 
|  | 1184 | libexecdir='${exec_prefix}/libexec' | 
|  | 1185 | datarootdir='${prefix}/share' | 
|  | 1186 | datadir='${datarootdir}' | 
|  | 1187 | sysconfdir='${prefix}/etc' | 
|  | 1188 | sharedstatedir='${prefix}/com' | 
|  | 1189 | localstatedir='${prefix}/var' | 
|  | 1190 | includedir='${prefix}/include' | 
|  | 1191 | oldincludedir='/usr/include' | 
|  | 1192 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 1193 | infodir='${datarootdir}/info' | 
|  | 1194 | htmldir='${docdir}' | 
|  | 1195 | dvidir='${docdir}' | 
|  | 1196 | pdfdir='${docdir}' | 
|  | 1197 | psdir='${docdir}' | 
|  | 1198 | libdir='${exec_prefix}/lib' | 
|  | 1199 | localedir='${datarootdir}/locale' | 
|  | 1200 | mandir='${datarootdir}/man' | 
|  | 1201 |  | 
|  | 1202 | ac_prev= | 
|  | 1203 | ac_dashdash= | 
|  | 1204 | for ac_option | 
|  | 1205 | do | 
|  | 1206 | # If the previous option needs an argument, assign it. | 
|  | 1207 | if test -n "$ac_prev"; then | 
|  | 1208 | eval $ac_prev=\$ac_option | 
|  | 1209 | ac_prev= | 
|  | 1210 | continue | 
|  | 1211 | fi | 
|  | 1212 |  | 
|  | 1213 | case $ac_option in | 
|  | 1214 | *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 1215 | *)	ac_optarg=yes ;; | 
|  | 1216 | esac | 
|  | 1217 |  | 
|  | 1218 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 1219 |  | 
|  | 1220 | case $ac_dashdash$ac_option in | 
|  | 1221 | --) | 
|  | 1222 | ac_dashdash=yes ;; | 
|  | 1223 |  | 
|  | 1224 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 1225 | ac_prev=bindir ;; | 
|  | 1226 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 1227 | bindir=$ac_optarg ;; | 
|  | 1228 |  | 
|  | 1229 | -build | --build | --buil | --bui | --bu) | 
|  | 1230 | ac_prev=build_alias ;; | 
|  | 1231 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 1232 | build_alias=$ac_optarg ;; | 
|  | 1233 |  | 
|  | 1234 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 1235 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 1236 | ac_prev=cache_file ;; | 
|  | 1237 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 1238 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 1239 | cache_file=$ac_optarg ;; | 
|  | 1240 |  | 
|  | 1241 | --config-cache | -C) | 
|  | 1242 | cache_file=config.cache ;; | 
|  | 1243 |  | 
|  | 1244 | -datadir | --datadir | --datadi | --datad) | 
|  | 1245 | ac_prev=datadir ;; | 
|  | 1246 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
|  | 1247 | datadir=$ac_optarg ;; | 
|  | 1248 |  | 
|  | 1249 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 1250 | | --dataroo | --dataro | --datar) | 
|  | 1251 | ac_prev=datarootdir ;; | 
|  | 1252 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 1253 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 1254 | datarootdir=$ac_optarg ;; | 
|  | 1255 |  | 
|  | 1256 | -disable-* | --disable-*) | 
|  | 1257 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
|  | 1258 | # Reject names that are not valid shell variable names. | 
|  | 1259 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1260 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1261 | ac_useropt_orig=$ac_useropt | 
|  | 1262 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1263 | case $ac_user_opts in | 
|  | 1264 | *" | 
|  | 1265 | "enable_$ac_useropt" | 
|  | 1266 | "*) ;; | 
|  | 1267 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 1268 | ac_unrecognized_sep=', ';; | 
|  | 1269 | esac | 
|  | 1270 | eval enable_$ac_useropt=no ;; | 
|  | 1271 |  | 
|  | 1272 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 1273 | ac_prev=docdir ;; | 
|  | 1274 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 1275 | docdir=$ac_optarg ;; | 
|  | 1276 |  | 
|  | 1277 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 1278 | ac_prev=dvidir ;; | 
|  | 1279 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 1280 | dvidir=$ac_optarg ;; | 
|  | 1281 |  | 
|  | 1282 | -enable-* | --enable-*) | 
|  | 1283 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
|  | 1284 | # Reject names that are not valid shell variable names. | 
|  | 1285 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1286 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1287 | ac_useropt_orig=$ac_useropt | 
|  | 1288 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1289 | case $ac_user_opts in | 
|  | 1290 | *" | 
|  | 1291 | "enable_$ac_useropt" | 
|  | 1292 | "*) ;; | 
|  | 1293 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 1294 | ac_unrecognized_sep=', ';; | 
|  | 1295 | esac | 
|  | 1296 | eval enable_$ac_useropt=\$ac_optarg ;; | 
|  | 1297 |  | 
|  | 1298 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1299 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1300 | | --exec | --exe | --ex) | 
|  | 1301 | ac_prev=exec_prefix ;; | 
|  | 1302 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1303 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1304 | | --exec=* | --exe=* | --ex=*) | 
|  | 1305 | exec_prefix=$ac_optarg ;; | 
|  | 1306 |  | 
|  | 1307 | -gas | --gas | --ga | --g) | 
|  | 1308 | # Obsolete; use --with-gas. | 
|  | 1309 | with_gas=yes ;; | 
|  | 1310 |  | 
|  | 1311 | -help | --help | --hel | --he | -h) | 
|  | 1312 | ac_init_help=long ;; | 
|  | 1313 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1314 | ac_init_help=recursive ;; | 
|  | 1315 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1316 | ac_init_help=short ;; | 
|  | 1317 |  | 
|  | 1318 | -host | --host | --hos | --ho) | 
|  | 1319 | ac_prev=host_alias ;; | 
|  | 1320 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 1321 | host_alias=$ac_optarg ;; | 
|  | 1322 |  | 
|  | 1323 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1324 | ac_prev=htmldir ;; | 
|  | 1325 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1326 | | --ht=*) | 
|  | 1327 | htmldir=$ac_optarg ;; | 
|  | 1328 |  | 
|  | 1329 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1330 | | --includ | --inclu | --incl | --inc) | 
|  | 1331 | ac_prev=includedir ;; | 
|  | 1332 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1333 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 1334 | includedir=$ac_optarg ;; | 
|  | 1335 |  | 
|  | 1336 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1337 | ac_prev=infodir ;; | 
|  | 1338 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 1339 | infodir=$ac_optarg ;; | 
|  | 1340 |  | 
|  | 1341 | -libdir | --libdir | --libdi | --libd) | 
|  | 1342 | ac_prev=libdir ;; | 
|  | 1343 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 1344 | libdir=$ac_optarg ;; | 
|  | 1345 |  | 
|  | 1346 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1347 | | --libexe | --libex | --libe) | 
|  | 1348 | ac_prev=libexecdir ;; | 
|  | 1349 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1350 | | --libexe=* | --libex=* | --libe=*) | 
|  | 1351 | libexecdir=$ac_optarg ;; | 
|  | 1352 |  | 
|  | 1353 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1354 | ac_prev=localedir ;; | 
|  | 1355 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1356 | localedir=$ac_optarg ;; | 
|  | 1357 |  | 
|  | 1358 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 1359 | | --localstate | --localstat | --localsta | --localst | --locals) | 
|  | 1360 | ac_prev=localstatedir ;; | 
|  | 1361 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 1362 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
|  | 1363 | localstatedir=$ac_optarg ;; | 
|  | 1364 |  | 
|  | 1365 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1366 | ac_prev=mandir ;; | 
|  | 1367 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 1368 | mandir=$ac_optarg ;; | 
|  | 1369 |  | 
|  | 1370 | -nfp | --nfp | --nf) | 
|  | 1371 | # Obsolete; use --without-fp. | 
|  | 1372 | with_fp=no ;; | 
|  | 1373 |  | 
|  | 1374 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 1375 | | --no-cr | --no-c | -n) | 
|  | 1376 | no_create=yes ;; | 
|  | 1377 |  | 
|  | 1378 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1379 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1380 | no_recursion=yes ;; | 
|  | 1381 |  | 
|  | 1382 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1383 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1384 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1385 | ac_prev=oldincludedir ;; | 
|  | 1386 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1387 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1388 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 1389 | oldincludedir=$ac_optarg ;; | 
|  | 1390 |  | 
|  | 1391 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1392 | ac_prev=prefix ;; | 
|  | 1393 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 1394 | prefix=$ac_optarg ;; | 
|  | 1395 |  | 
|  | 1396 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1397 | | --program-pre | --program-pr | --program-p) | 
|  | 1398 | ac_prev=program_prefix ;; | 
|  | 1399 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1400 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 1401 | program_prefix=$ac_optarg ;; | 
|  | 1402 |  | 
|  | 1403 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1404 | | --program-suf | --program-su | --program-s) | 
|  | 1405 | ac_prev=program_suffix ;; | 
|  | 1406 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1407 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 1408 | program_suffix=$ac_optarg ;; | 
|  | 1409 |  | 
|  | 1410 | -program-transform-name | --program-transform-name \ | 
|  | 1411 | | --program-transform-nam | --program-transform-na \ | 
|  | 1412 | | --program-transform-n | --program-transform- \ | 
|  | 1413 | | --program-transform | --program-transfor \ | 
|  | 1414 | | --program-transfo | --program-transf \ | 
|  | 1415 | | --program-trans | --program-tran \ | 
|  | 1416 | | --progr-tra | --program-tr | --program-t) | 
|  | 1417 | ac_prev=program_transform_name ;; | 
|  | 1418 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1419 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1420 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1421 | | --program-transform=* | --program-transfor=* \ | 
|  | 1422 | | --program-transfo=* | --program-transf=* \ | 
|  | 1423 | | --program-trans=* | --program-tran=* \ | 
|  | 1424 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 1425 | program_transform_name=$ac_optarg ;; | 
|  | 1426 |  | 
|  | 1427 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1428 | ac_prev=pdfdir ;; | 
|  | 1429 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1430 | pdfdir=$ac_optarg ;; | 
|  | 1431 |  | 
|  | 1432 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1433 | ac_prev=psdir ;; | 
|  | 1434 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1435 | psdir=$ac_optarg ;; | 
|  | 1436 |  | 
|  | 1437 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1438 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1439 | silent=yes ;; | 
|  | 1440 |  | 
|  | 1441 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1442 | ac_prev=sbindir ;; | 
|  | 1443 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1444 | | --sbi=* | --sb=*) | 
|  | 1445 | sbindir=$ac_optarg ;; | 
|  | 1446 |  | 
|  | 1447 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1448 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1449 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1450 | | --sha | --sh) | 
|  | 1451 | ac_prev=sharedstatedir ;; | 
|  | 1452 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1453 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1454 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1455 | | --sha=* | --sh=*) | 
|  | 1456 | sharedstatedir=$ac_optarg ;; | 
|  | 1457 |  | 
|  | 1458 | -site | --site | --sit) | 
|  | 1459 | ac_prev=site ;; | 
|  | 1460 | -site=* | --site=* | --sit=*) | 
|  | 1461 | site=$ac_optarg ;; | 
|  | 1462 |  | 
|  | 1463 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1464 | ac_prev=srcdir ;; | 
|  | 1465 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 1466 | srcdir=$ac_optarg ;; | 
|  | 1467 |  | 
|  | 1468 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1469 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1470 | ac_prev=sysconfdir ;; | 
|  | 1471 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1472 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 1473 | sysconfdir=$ac_optarg ;; | 
|  | 1474 |  | 
|  | 1475 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 1476 | ac_prev=target_alias ;; | 
|  | 1477 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 1478 | target_alias=$ac_optarg ;; | 
|  | 1479 |  | 
|  | 1480 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1481 | verbose=yes ;; | 
|  | 1482 |  | 
|  | 1483 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1484 | ac_init_version=: ;; | 
|  | 1485 |  | 
|  | 1486 | -with-* | --with-*) | 
|  | 1487 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
|  | 1488 | # Reject names that are not valid shell variable names. | 
|  | 1489 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1490 | as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1491 | ac_useropt_orig=$ac_useropt | 
|  | 1492 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1493 | case $ac_user_opts in | 
|  | 1494 | *" | 
|  | 1495 | "with_$ac_useropt" | 
|  | 1496 | "*) ;; | 
|  | 1497 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1498 | ac_unrecognized_sep=', ';; | 
|  | 1499 | esac | 
|  | 1500 | eval with_$ac_useropt=\$ac_optarg ;; | 
|  | 1501 |  | 
|  | 1502 | -without-* | --without-*) | 
|  | 1503 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
|  | 1504 | # Reject names that are not valid shell variable names. | 
|  | 1505 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1506 | as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1507 | ac_useropt_orig=$ac_useropt | 
|  | 1508 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1509 | case $ac_user_opts in | 
|  | 1510 | *" | 
|  | 1511 | "with_$ac_useropt" | 
|  | 1512 | "*) ;; | 
|  | 1513 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1514 | ac_unrecognized_sep=', ';; | 
|  | 1515 | esac | 
|  | 1516 | eval with_$ac_useropt=no ;; | 
|  | 1517 |  | 
|  | 1518 | --x) | 
|  | 1519 | # Obsolete; use --with-x. | 
|  | 1520 | with_x=yes ;; | 
|  | 1521 |  | 
|  | 1522 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1523 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1524 | ac_prev=x_includes ;; | 
|  | 1525 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1526 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 1527 | x_includes=$ac_optarg ;; | 
|  | 1528 |  | 
|  | 1529 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1530 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1531 | ac_prev=x_libraries ;; | 
|  | 1532 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1533 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 1534 | x_libraries=$ac_optarg ;; | 
|  | 1535 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1536 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1537 | Try \`$0 --help' for more information" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1538 | ;; | 
|  | 1539 |  | 
|  | 1540 | *=*) | 
|  | 1541 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1542 | # Reject names that are not valid shell variable names. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1543 | case $ac_envvar in #( | 
|  | 1544 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1545 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1546 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1547 | eval $ac_envvar=\$ac_optarg | 
|  | 1548 | export $ac_envvar ;; | 
|  | 1549 |  | 
|  | 1550 | *) | 
|  | 1551 | # FIXME: should be removed in autoconf 3.0. | 
|  | 1552 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
|  | 1553 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
|  | 1554 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
|  | 1555 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
|  | 1556 | ;; | 
|  | 1557 |  | 
|  | 1558 | esac | 
|  | 1559 | done | 
|  | 1560 |  | 
|  | 1561 | if test -n "$ac_prev"; then | 
|  | 1562 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1563 | as_fn_error $? "missing argument to $ac_option" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1564 | fi | 
|  | 1565 |  | 
|  | 1566 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1567 | case $enable_option_checking in | 
|  | 1568 | no) ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1569 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1570 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1571 | esac | 
|  | 1572 | fi | 
|  | 1573 |  | 
|  | 1574 | # Check all directory arguments for consistency. | 
|  | 1575 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1576 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1577 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1578 | libdir localedir mandir | 
|  | 1579 | do | 
|  | 1580 | eval ac_val=\$$ac_var | 
|  | 1581 | # Remove trailing slashes. | 
|  | 1582 | case $ac_val in | 
|  | 1583 | */ ) | 
|  | 1584 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1585 | eval $ac_var=\$ac_val;; | 
|  | 1586 | esac | 
|  | 1587 | # Be sure to have absolute directory names. | 
|  | 1588 | case $ac_val in | 
|  | 1589 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1590 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
|  | 1591 | esac | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1592 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1593 | done | 
|  | 1594 |  | 
|  | 1595 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1596 | # used to hold the argument of --host etc. | 
|  | 1597 | # FIXME: To remove some day. | 
|  | 1598 | build=$build_alias | 
|  | 1599 | host=$host_alias | 
|  | 1600 | target=$target_alias | 
|  | 1601 |  | 
|  | 1602 | # FIXME: To remove some day. | 
|  | 1603 | if test "x$host_alias" != x; then | 
|  | 1604 | if test "x$build_alias" = x; then | 
|  | 1605 | cross_compiling=maybe | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1606 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
|  | 1607 | 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] | 1608 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1609 | cross_compiling=yes | 
|  | 1610 | fi | 
|  | 1611 | fi | 
|  | 1612 |  | 
|  | 1613 | ac_tool_prefix= | 
|  | 1614 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1615 |  | 
|  | 1616 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1617 |  | 
|  | 1618 |  | 
|  | 1619 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1620 | ac_ls_di=`ls -di .` && | 
|  | 1621 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1622 | as_fn_error $? "working directory cannot be determined" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1623 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1624 | as_fn_error $? "pwd does not report name of working directory" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1625 |  | 
|  | 1626 |  | 
|  | 1627 | # Find the source files, if location was not specified. | 
|  | 1628 | if test -z "$srcdir"; then | 
|  | 1629 | ac_srcdir_defaulted=yes | 
|  | 1630 | # Try the directory containing this script, then the parent directory. | 
|  | 1631 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1632 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1633 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1634 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1635 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1636 | $as_echo X"$as_myself" | | 
|  | 1637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1638 | s//\1/ | 
|  | 1639 | q | 
|  | 1640 | } | 
|  | 1641 | /^X\(\/\/\)[^/].*/{ | 
|  | 1642 | s//\1/ | 
|  | 1643 | q | 
|  | 1644 | } | 
|  | 1645 | /^X\(\/\/\)$/{ | 
|  | 1646 | s//\1/ | 
|  | 1647 | q | 
|  | 1648 | } | 
|  | 1649 | /^X\(\/\).*/{ | 
|  | 1650 | s//\1/ | 
|  | 1651 | q | 
|  | 1652 | } | 
|  | 1653 | s/.*/./; q'` | 
|  | 1654 | srcdir=$ac_confdir | 
|  | 1655 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1656 | srcdir=.. | 
|  | 1657 | fi | 
|  | 1658 | else | 
|  | 1659 | ac_srcdir_defaulted=no | 
|  | 1660 | fi | 
|  | 1661 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1662 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1663 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1664 | fi | 
|  | 1665 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1666 | ac_abs_confdir=`( | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1667 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1668 | pwd)` | 
|  | 1669 | # When building in place, set srcdir=. | 
|  | 1670 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1671 | srcdir=. | 
|  | 1672 | fi | 
|  | 1673 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1674 | # Double slashes in file names in object file debugging info | 
|  | 1675 | # mess up M-x gdb in Emacs. | 
|  | 1676 | case $srcdir in | 
|  | 1677 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1678 | esac | 
|  | 1679 | for ac_var in $ac_precious_vars; do | 
|  | 1680 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1681 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1682 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1683 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1684 | done | 
|  | 1685 |  | 
|  | 1686 | # | 
|  | 1687 | # Report the --help message. | 
|  | 1688 | # | 
|  | 1689 | if test "$ac_init_help" = "long"; then | 
|  | 1690 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1691 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1692 | cat <<_ACEOF | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 1693 | \`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1694 |  | 
|  | 1695 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1696 |  | 
|  | 1697 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1698 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1699 |  | 
|  | 1700 | Defaults for the options are specified in brackets. | 
|  | 1701 |  | 
|  | 1702 | Configuration: | 
|  | 1703 | -h, --help              display this help and exit | 
|  | 1704 | --help=short        display options specific to this package | 
|  | 1705 | --help=recursive    display the short help of all the included packages | 
|  | 1706 | -V, --version           display version information and exit | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1707 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1708 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1709 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1710 | -n, --no-create         do not create output files | 
|  | 1711 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1712 |  | 
|  | 1713 | Installation directories: | 
|  | 1714 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|  | 1715 | [$ac_default_prefix] | 
|  | 1716 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|  | 1717 | [PREFIX] | 
|  | 1718 |  | 
|  | 1719 | By default, \`make install' will install all the files in | 
|  | 1720 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1721 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1722 | for instance \`--prefix=\$HOME'. | 
|  | 1723 |  | 
|  | 1724 | For better control, use the options below. | 
|  | 1725 |  | 
|  | 1726 | Fine tuning of the installation directories: | 
|  | 1727 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1728 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1729 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1730 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1731 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1732 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1733 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1734 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1735 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1736 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1737 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1738 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1739 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1740 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
|  | 1741 | --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick] | 
|  | 1742 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1743 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1744 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1745 | --psdir=DIR             ps documentation [DOCDIR] | 
|  | 1746 | _ACEOF | 
|  | 1747 |  | 
|  | 1748 | cat <<\_ACEOF | 
|  | 1749 |  | 
|  | 1750 | Program names: | 
|  | 1751 | --program-prefix=PREFIX            prepend PREFIX to installed program names | 
|  | 1752 | --program-suffix=SUFFIX            append SUFFIX to installed program names | 
|  | 1753 | --program-transform-name=PROGRAM   run sed PROGRAM on installed program names | 
|  | 1754 |  | 
|  | 1755 | X features: | 
|  | 1756 | --x-includes=DIR    X include files are in DIR | 
|  | 1757 | --x-libraries=DIR   X library files are in DIR | 
|  | 1758 |  | 
|  | 1759 | System types: | 
|  | 1760 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1761 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1762 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1763 | _ACEOF | 
|  | 1764 | fi | 
|  | 1765 |  | 
|  | 1766 | if test -n "$ac_init_help"; then | 
|  | 1767 | case $ac_init_help in | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 1768 | short | recursive ) echo "Configuration of ImageMagick 6.6.3:";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1769 | esac | 
|  | 1770 | cat <<\_ACEOF | 
|  | 1771 |  | 
|  | 1772 | Optional Features: | 
|  | 1773 | --disable-option-checking  ignore unrecognized --enable/--with options | 
|  | 1774 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1775 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
|  | 1776 | --enable-silent-rules          less verbose build output (undo: `make V=1') | 
|  | 1777 | --disable-silent-rules         verbose build output (undo: `make V=0') | 
|  | 1778 | --disable-dependency-tracking  speeds up one-time build | 
|  | 1779 | --enable-dependency-tracking   do not reject slow dependency extractors | 
|  | 1780 | --bounds-checking       enable run-time bounds-checking | 
|  | 1781 | --enable-osx-universal-binary | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1782 | build universal binary on OS X [[default=no]] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1783 | --disable-openmp        do not use OpenMP | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 1784 | --disable-opencl        do not use OpenCL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1785 | --disable-largefile     omit support for large files | 
|  | 1786 | --enable-shared[=PKGS]  build shared libraries [default=yes] | 
|  | 1787 | --enable-static[=PKGS]  build static libraries [default=yes] | 
|  | 1788 | --enable-fast-install[=PKGS] | 
|  | 1789 | optimize for fast installation [default=yes] | 
|  | 1790 | --disable-libtool-lock  avoid locking (might break parallel builds) | 
|  | 1791 | --enable-ltdl-install   install libltdl | 
|  | 1792 | --enable-delegate-build look for delegate libraries in build directory | 
|  | 1793 | --disable-deprecated    exclude deprecated methods in MagickCore and | 
|  | 1794 | MagickWand API's | 
|  | 1795 | --disable-installed     Formally install ImageMagick under PREFIX | 
|  | 1796 | --disable-cipher        disable enciphering and deciphering image pixels | 
|  | 1797 | --enable-embeddable     enable self-contained, embeddable, | 
|  | 1798 | zero-configuration ImageMagick | 
|  | 1799 | --enable-hdri           accurately represent the wide range of intensity | 
|  | 1800 | levels found in real scenes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1801 | --disable-assert        disable assert() statements in build | 
|  | 1802 | --enable-maintainer-mode  enable make rules and dependencies not useful | 
|  | 1803 | (and sometimes confusing) to the casual installer | 
|  | 1804 | --enable-ccmalloc       enable 'ccmalloc' memory debug support | 
|  | 1805 | --enable-efence         enable 'efence' memory debug support | 
|  | 1806 | --enable-prof           enable 'prof' profiling support | 
|  | 1807 | --enable-gprof          enable 'gprof' profiling support | 
|  | 1808 | --enable-gcov           enable 'gcov' profiling support | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1809 | --disable-assert        turn off assertions | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1810 |  | 
|  | 1811 | Optional Packages: | 
|  | 1812 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1813 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
|  | 1814 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1815 | --with-dmalloc          use dmalloc, as in | 
|  | 1816 | http://www.dmalloc.com/dmalloc.tar.gz | 
|  | 1817 | --without-threads       disable threads support | 
|  | 1818 | --with-pic              try to use only PIC/non-PIC objects [default=use | 
|  | 1819 | both] | 
|  | 1820 | --with-included-ltdl    use the GNU ltdl sources included here | 
|  | 1821 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | 
|  | 1822 | --with-ltdl-lib=DIR     use the libltdl.la installed in DIR | 
|  | 1823 | --with-modules          enable building dynamically loadable modules | 
|  | 1824 | --with-method-prefix=PREFIX | 
|  | 1825 | prefix MagickCore API methods | 
|  | 1826 | --with-quantum-depth=DEPTH | 
|  | 1827 | number of bits in a pixel quantum (default 16) | 
|  | 1828 | --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available | 
|  | 1829 | memory) | 
|  | 1830 | --with-frozenpaths      freeze delegate paths | 
|  | 1831 | --without-magick-plus-plus | 
|  | 1832 | disable build/install of Magick++ | 
|  | 1833 | --with-perl             enable build/install of PerlMagick | 
|  | 1834 | --with-perl-options=OPTIONS | 
|  | 1835 | options to pass on command-line when generating | 
|  | 1836 | PerlMagick's build file | 
|  | 1837 | --with-umem             enable umem memory allocation library support | 
|  | 1838 | --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++) | 
|  | 1839 | --without-bzlib         disable BZLIB support | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1840 | --with-x                use the X Window System | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1841 | --without-zlib          disable ZLIB support | 
|  | 1842 | --with-autotrace        enable autotrace support | 
|  | 1843 | --without-dps           disable Display Postscript support | 
|  | 1844 | --without-djvu          disable DjVu support | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1845 | --with-dejavu-font-dir=DIR | 
|  | 1846 | DejaVu font directory | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1847 | --without-fftw          disable FFTW support | 
|  | 1848 | --without-fpx           disable FlashPIX support | 
|  | 1849 | --without-fontconfig    disable fontconfig support | 
|  | 1850 | --without-freetype      disable Freetype support | 
|  | 1851 | --without-gslib         enable Ghostscript library support | 
|  | 1852 | --with-fontpath=DIR     prepend to default font search path | 
|  | 1853 | --with-gs-font-dir=DIR  Ghostscript font directory | 
|  | 1854 | --without-gvc           disable GVC support | 
|  | 1855 | --without-jbig          disable JBIG support | 
|  | 1856 | --without-jpeg          disable JPEG support | 
|  | 1857 | --without-jp2           disable JPEG-2000 support | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1858 | --without-lcms          disable lcms (v1.1X) support | 
|  | 1859 | --without-lcms2         disable lcms (v2.X) support | 
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1860 | --without-lqr           disable Liquid Rescale support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1861 | --without-openexr       disable OpenEXR support | 
|  | 1862 | --without-png           disable PNG support | 
|  | 1863 | --without-rsvg          disable RSVG support | 
|  | 1864 | --without-tiff          disable TIFF support | 
|  | 1865 | --with-windows-font-dir=DIR | 
|  | 1866 | directory containing MS-Windows fonts | 
|  | 1867 | --without-wmf           disable WMF support | 
|  | 1868 | --without-xml           disable XML support | 
|  | 1869 |  | 
|  | 1870 | Some influential environment variables: | 
|  | 1871 | CC          C compiler command | 
|  | 1872 | CFLAGS      C compiler flags | 
|  | 1873 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1874 | nonstandard directory <lib dir> | 
|  | 1875 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1876 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1877 | you have headers in a nonstandard directory <include dir> | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1878 | CPP         C preprocessor | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1879 | CXX         C++ compiler command | 
|  | 1880 | CXXFLAGS    C++ compiler flags | 
|  | 1881 | PKG_CONFIG  path to pkg-config utility | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1882 | CXXCPP      C++ preprocessor | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1883 | XMKMF       Path to xmkmf, Makefile generator for X Window System | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1884 | AUTOTRACE_CFLAGS | 
|  | 1885 | C compiler flags for AUTOTRACE, overriding pkg-config | 
|  | 1886 | AUTOTRACE_LIBS | 
|  | 1887 | linker flags for AUTOTRACE, overriding pkg-config | 
|  | 1888 | FONTCONFIG_CFLAGS | 
|  | 1889 | C compiler flags for FONTCONFIG, overriding pkg-config | 
|  | 1890 | FONTCONFIG_LIBS | 
|  | 1891 | linker flags for FONTCONFIG, overriding pkg-config | 
|  | 1892 | GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config | 
|  | 1893 | GVC_LIBS    linker flags for GVC, overriding pkg-config | 
|  | 1894 | LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config | 
|  | 1895 | LQR_LIBS    linker flags for LQR, overriding pkg-config | 
|  | 1896 | OPENEXR_CFLAGS | 
|  | 1897 | C compiler flags for OPENEXR, overriding pkg-config | 
|  | 1898 | OPENEXR_LIBS | 
|  | 1899 | linker flags for OPENEXR, overriding pkg-config | 
|  | 1900 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config | 
|  | 1901 | RSVG_LIBS   linker flags for RSVG, overriding pkg-config | 
|  | 1902 | CAIRO_SVG_CFLAGS | 
|  | 1903 | C compiler flags for CAIRO_SVG, overriding pkg-config | 
|  | 1904 | CAIRO_SVG_LIBS | 
|  | 1905 | linker flags for CAIRO_SVG, overriding pkg-config | 
|  | 1906 |  | 
|  | 1907 | Use these variables to override the choices made by `configure' or to help | 
|  | 1908 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1909 |  | 
|  | 1910 | Report bugs to <http://www.imagemagick.org>. | 
|  | 1911 | _ACEOF | 
|  | 1912 | ac_status=$? | 
|  | 1913 | fi | 
|  | 1914 |  | 
|  | 1915 | if test "$ac_init_help" = "recursive"; then | 
|  | 1916 | # If there are subdirs, report their specific --help. | 
|  | 1917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
|  | 1918 | test -d "$ac_dir" || | 
|  | 1919 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1920 | continue | 
|  | 1921 | ac_builddir=. | 
|  | 1922 |  | 
|  | 1923 | case "$ac_dir" in | 
|  | 1924 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1925 | *) | 
|  | 1926 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
|  | 1927 | # A ".." for each directory in $ac_dir_suffix. | 
|  | 1928 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
|  | 1929 | case $ac_top_builddir_sub in | 
|  | 1930 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1931 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1932 | esac ;; | 
|  | 1933 | esac | 
|  | 1934 | ac_abs_top_builddir=$ac_pwd | 
|  | 1935 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1936 | # for backward compatibility: | 
|  | 1937 | ac_top_builddir=$ac_top_build_prefix | 
|  | 1938 |  | 
|  | 1939 | case $srcdir in | 
|  | 1940 | .)  # We are building in place. | 
|  | 1941 | ac_srcdir=. | 
|  | 1942 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1943 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1944 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
|  | 1945 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 1946 | ac_top_srcdir=$srcdir | 
|  | 1947 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1948 | *) # Relative name. | 
|  | 1949 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1950 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1951 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
|  | 1952 | esac | 
|  | 1953 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
|  | 1954 |  | 
|  | 1955 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1956 | # Check for guested configure. | 
|  | 1957 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1958 | echo && | 
|  | 1959 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1960 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1961 | echo && | 
|  | 1962 | $SHELL "$ac_srcdir/configure" --help=recursive | 
|  | 1963 | else | 
|  | 1964 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
|  | 1965 | fi || ac_status=$? | 
|  | 1966 | cd "$ac_pwd" || { ac_status=$?; break; } | 
|  | 1967 | done | 
|  | 1968 | fi | 
|  | 1969 |  | 
|  | 1970 | test -n "$ac_init_help" && exit $ac_status | 
|  | 1971 | if $ac_init_version; then | 
|  | 1972 | cat <<\_ACEOF | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 1973 | ImageMagick configure 6.6.3 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1974 | generated by GNU Autoconf 2.66 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1975 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 1976 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1977 | This configure script is free software; the Free Software Foundation | 
|  | 1978 | gives unlimited permission to copy, distribute and modify it. | 
|  | 1979 | _ACEOF | 
|  | 1980 | exit | 
|  | 1981 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1982 |  | 
|  | 1983 | ## ------------------------ ## | 
|  | 1984 | ## Autoconf initialization. ## | 
|  | 1985 | ## ------------------------ ## | 
|  | 1986 |  | 
|  | 1987 | # ac_fn_c_try_compile LINENO | 
|  | 1988 | # -------------------------- | 
|  | 1989 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 1990 | ac_fn_c_try_compile () | 
|  | 1991 | { | 
|  | 1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 1993 | rm -f conftest.$ac_objext | 
|  | 1994 | if { { ac_try="$ac_compile" | 
|  | 1995 | case "(($ac_try" in | 
|  | 1996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 1997 | *) ac_try_echo=$ac_try;; | 
|  | 1998 | esac | 
|  | 1999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2000 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2001 | (eval "$ac_compile") 2>conftest.err | 
|  | 2002 | ac_status=$? | 
|  | 2003 | if test -s conftest.err; then | 
|  | 2004 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2005 | cat conftest.er1 >&5 | 
|  | 2006 | mv -f conftest.er1 conftest.err | 
|  | 2007 | fi | 
|  | 2008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2009 | test $ac_status = 0; } && { | 
|  | 2010 | test -z "$ac_c_werror_flag" || | 
|  | 2011 | test ! -s conftest.err | 
|  | 2012 | } && test -s conftest.$ac_objext; then : | 
|  | 2013 | ac_retval=0 | 
|  | 2014 | else | 
|  | 2015 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2016 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2017 |  | 
|  | 2018 | ac_retval=1 | 
|  | 2019 | fi | 
|  | 2020 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2021 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2022 |  | 
|  | 2023 | } # ac_fn_c_try_compile | 
|  | 2024 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2025 | # ac_fn_c_try_cpp LINENO | 
|  | 2026 | # ---------------------- | 
|  | 2027 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 2028 | ac_fn_c_try_cpp () | 
|  | 2029 | { | 
|  | 2030 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2031 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 2032 | case "(($ac_try" in | 
|  | 2033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2034 | *) ac_try_echo=$ac_try;; | 
|  | 2035 | esac | 
|  | 2036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2037 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2038 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 2039 | ac_status=$? | 
|  | 2040 | if test -s conftest.err; then | 
|  | 2041 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2042 | cat conftest.er1 >&5 | 
|  | 2043 | mv -f conftest.er1 conftest.err | 
|  | 2044 | fi | 
|  | 2045 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2046 | test $ac_status = 0; } >/dev/null && { | 
|  | 2047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 2048 | test ! -s conftest.err | 
|  | 2049 | }; then : | 
|  | 2050 | ac_retval=0 | 
|  | 2051 | else | 
|  | 2052 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2053 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2054 |  | 
|  | 2055 | ac_retval=1 | 
|  | 2056 | fi | 
|  | 2057 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2058 | as_fn_set_status $ac_retval | 
|  | 2059 |  | 
|  | 2060 | } # ac_fn_c_try_cpp | 
|  | 2061 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2062 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 2063 | # ------------------------------------------------------- | 
|  | 2064 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 2065 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 2066 | # accordingly. | 
|  | 2067 | ac_fn_c_check_header_mongrel () | 
|  | 2068 | { | 
|  | 2069 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2070 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2072 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2073 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2074 | $as_echo_n "(cached) " >&6 | 
|  | 2075 | fi | 
|  | 2076 | eval ac_res=\$$3 | 
|  | 2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2078 | $as_echo "$ac_res" >&6; } | 
|  | 2079 | else | 
|  | 2080 | # Is the header compilable? | 
|  | 2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 2082 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2084 | /* end confdefs.h.  */ | 
|  | 2085 | $4 | 
|  | 2086 | #include <$2> | 
|  | 2087 | _ACEOF | 
|  | 2088 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2089 | ac_header_compiler=yes | 
|  | 2090 | else | 
|  | 2091 | ac_header_compiler=no | 
|  | 2092 | fi | 
|  | 2093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 2095 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 2096 |  | 
|  | 2097 | # Is the header present? | 
|  | 2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 2099 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 2100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2101 | /* end confdefs.h.  */ | 
|  | 2102 | #include <$2> | 
|  | 2103 | _ACEOF | 
|  | 2104 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 2105 | ac_header_preproc=yes | 
|  | 2106 | else | 
|  | 2107 | ac_header_preproc=no | 
|  | 2108 | fi | 
|  | 2109 | rm -f conftest.err conftest.$ac_ext | 
|  | 2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 2111 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 2112 |  | 
|  | 2113 | # So?  What about this header? | 
|  | 2114 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 2115 | yes:no: ) | 
|  | 2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 2117 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2119 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 2120 | ;; | 
|  | 2121 | no:yes:* ) | 
|  | 2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 2123 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 2125 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 2127 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 2129 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2131 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2132 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2133 | ## Report this to http://www.imagemagick.org ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2134 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2135 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 2136 | ;; | 
|  | 2137 | esac | 
|  | 2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2139 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2140 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2141 | $as_echo_n "(cached) " >&6 | 
|  | 2142 | else | 
|  | 2143 | eval "$3=\$ac_header_compiler" | 
|  | 2144 | fi | 
|  | 2145 | eval ac_res=\$$3 | 
|  | 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2147 | $as_echo "$ac_res" >&6; } | 
|  | 2148 | fi | 
|  | 2149 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2150 |  | 
|  | 2151 | } # ac_fn_c_check_header_mongrel | 
|  | 2152 |  | 
|  | 2153 | # ac_fn_c_try_run LINENO | 
|  | 2154 | # ---------------------- | 
|  | 2155 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 2156 | # that executables *can* be run. | 
|  | 2157 | ac_fn_c_try_run () | 
|  | 2158 | { | 
|  | 2159 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2160 | if { { ac_try="$ac_link" | 
|  | 2161 | case "(($ac_try" in | 
|  | 2162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2163 | *) ac_try_echo=$ac_try;; | 
|  | 2164 | esac | 
|  | 2165 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2166 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2167 | (eval "$ac_link") 2>&5 | 
|  | 2168 | ac_status=$? | 
|  | 2169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2170 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 2171 | { { case "(($ac_try" in | 
|  | 2172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2173 | *) ac_try_echo=$ac_try;; | 
|  | 2174 | esac | 
|  | 2175 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2176 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2177 | (eval "$ac_try") 2>&5 | 
|  | 2178 | ac_status=$? | 
|  | 2179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2180 | test $ac_status = 0; }; }; then : | 
|  | 2181 | ac_retval=0 | 
|  | 2182 | else | 
|  | 2183 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 2184 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2185 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2186 |  | 
|  | 2187 | ac_retval=$ac_status | 
|  | 2188 | fi | 
|  | 2189 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
|  | 2190 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2191 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2192 |  | 
|  | 2193 | } # ac_fn_c_try_run | 
|  | 2194 |  | 
|  | 2195 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 2196 | # ------------------------------------------------------- | 
|  | 2197 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 2198 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 2199 | ac_fn_c_check_header_compile () | 
|  | 2200 | { | 
|  | 2201 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2203 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2204 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2205 | $as_echo_n "(cached) " >&6 | 
|  | 2206 | else | 
|  | 2207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2208 | /* end confdefs.h.  */ | 
|  | 2209 | $4 | 
|  | 2210 | #include <$2> | 
|  | 2211 | _ACEOF | 
|  | 2212 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2213 | eval "$3=yes" | 
|  | 2214 | else | 
|  | 2215 | eval "$3=no" | 
|  | 2216 | fi | 
|  | 2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2218 | fi | 
|  | 2219 | eval ac_res=\$$3 | 
|  | 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2221 | $as_echo "$ac_res" >&6; } | 
|  | 2222 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2223 |  | 
|  | 2224 | } # ac_fn_c_check_header_compile | 
|  | 2225 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2226 | # ac_fn_cxx_try_compile LINENO | 
|  | 2227 | # ---------------------------- | 
|  | 2228 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 2229 | ac_fn_cxx_try_compile () | 
|  | 2230 | { | 
|  | 2231 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2232 | rm -f conftest.$ac_objext | 
|  | 2233 | if { { ac_try="$ac_compile" | 
|  | 2234 | case "(($ac_try" in | 
|  | 2235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2236 | *) ac_try_echo=$ac_try;; | 
|  | 2237 | esac | 
|  | 2238 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2239 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2240 | (eval "$ac_compile") 2>conftest.err | 
|  | 2241 | ac_status=$? | 
|  | 2242 | if test -s conftest.err; then | 
|  | 2243 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2244 | cat conftest.er1 >&5 | 
|  | 2245 | mv -f conftest.er1 conftest.err | 
|  | 2246 | fi | 
|  | 2247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2248 | test $ac_status = 0; } && { | 
|  | 2249 | test -z "$ac_cxx_werror_flag" || | 
|  | 2250 | test ! -s conftest.err | 
|  | 2251 | } && test -s conftest.$ac_objext; then : | 
|  | 2252 | ac_retval=0 | 
|  | 2253 | else | 
|  | 2254 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2255 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2256 |  | 
|  | 2257 | ac_retval=1 | 
|  | 2258 | fi | 
|  | 2259 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2260 | as_fn_set_status $ac_retval | 
|  | 2261 |  | 
|  | 2262 | } # ac_fn_cxx_try_compile | 
|  | 2263 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2264 | # ac_fn_c_try_link LINENO | 
|  | 2265 | # ----------------------- | 
|  | 2266 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 2267 | ac_fn_c_try_link () | 
|  | 2268 | { | 
|  | 2269 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2270 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 2271 | if { { ac_try="$ac_link" | 
|  | 2272 | case "(($ac_try" in | 
|  | 2273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2274 | *) ac_try_echo=$ac_try;; | 
|  | 2275 | esac | 
|  | 2276 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2277 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2278 | (eval "$ac_link") 2>conftest.err | 
|  | 2279 | ac_status=$? | 
|  | 2280 | if test -s conftest.err; then | 
|  | 2281 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2282 | cat conftest.er1 >&5 | 
|  | 2283 | mv -f conftest.er1 conftest.err | 
|  | 2284 | fi | 
|  | 2285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2286 | test $ac_status = 0; } && { | 
|  | 2287 | test -z "$ac_c_werror_flag" || | 
|  | 2288 | test ! -s conftest.err | 
|  | 2289 | } && test -s conftest$ac_exeext && { | 
|  | 2290 | test "$cross_compiling" = yes || | 
|  | 2291 | $as_test_x conftest$ac_exeext | 
|  | 2292 | }; then : | 
|  | 2293 | ac_retval=0 | 
|  | 2294 | else | 
|  | 2295 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2296 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2297 |  | 
|  | 2298 | ac_retval=1 | 
|  | 2299 | fi | 
|  | 2300 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 2301 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 2302 | # interfere with the next link command; also delete a directory that is | 
|  | 2303 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 2304 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
|  | 2305 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2306 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2307 |  | 
|  | 2308 | } # ac_fn_c_try_link | 
|  | 2309 |  | 
|  | 2310 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2311 | # ---------------------------------- | 
|  | 2312 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2313 | ac_fn_c_check_func () | 
|  | 2314 | { | 
|  | 2315 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2317 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2318 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2319 | $as_echo_n "(cached) " >&6 | 
|  | 2320 | else | 
|  | 2321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2322 | /* end confdefs.h.  */ | 
|  | 2323 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2324 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2325 | #define $2 innocuous_$2 | 
|  | 2326 |  | 
|  | 2327 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2328 | which can conflict with char $2 (); below. | 
|  | 2329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2330 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2331 |  | 
|  | 2332 | #ifdef __STDC__ | 
|  | 2333 | # include <limits.h> | 
|  | 2334 | #else | 
|  | 2335 | # include <assert.h> | 
|  | 2336 | #endif | 
|  | 2337 |  | 
|  | 2338 | #undef $2 | 
|  | 2339 |  | 
|  | 2340 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2341 | Use char because int might match the return type of a GCC | 
|  | 2342 | builtin and then its argument prototype would still apply.  */ | 
|  | 2343 | #ifdef __cplusplus | 
|  | 2344 | extern "C" | 
|  | 2345 | #endif | 
|  | 2346 | char $2 (); | 
|  | 2347 | /* The GNU C library defines this for functions which it implements | 
|  | 2348 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2349 | something starting with __ and the normal name is an alias.  */ | 
|  | 2350 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2351 | choke me | 
|  | 2352 | #endif | 
|  | 2353 |  | 
|  | 2354 | int | 
|  | 2355 | main () | 
|  | 2356 | { | 
|  | 2357 | return $2 (); | 
|  | 2358 | ; | 
|  | 2359 | return 0; | 
|  | 2360 | } | 
|  | 2361 | _ACEOF | 
|  | 2362 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2363 | eval "$3=yes" | 
|  | 2364 | else | 
|  | 2365 | eval "$3=no" | 
|  | 2366 | fi | 
|  | 2367 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2368 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2369 | fi | 
|  | 2370 | eval ac_res=\$$3 | 
|  | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2372 | $as_echo "$ac_res" >&6; } | 
|  | 2373 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2374 |  | 
|  | 2375 | } # ac_fn_c_check_func | 
|  | 2376 |  | 
|  | 2377 | # ac_fn_cxx_try_cpp LINENO | 
|  | 2378 | # ------------------------ | 
|  | 2379 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 2380 | ac_fn_cxx_try_cpp () | 
|  | 2381 | { | 
|  | 2382 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2383 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 2384 | case "(($ac_try" in | 
|  | 2385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2386 | *) ac_try_echo=$ac_try;; | 
|  | 2387 | esac | 
|  | 2388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2389 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 2391 | ac_status=$? | 
|  | 2392 | if test -s conftest.err; then | 
|  | 2393 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2394 | cat conftest.er1 >&5 | 
|  | 2395 | mv -f conftest.er1 conftest.err | 
|  | 2396 | fi | 
|  | 2397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2398 | test $ac_status = 0; } >/dev/null && { | 
|  | 2399 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | 
|  | 2400 | test ! -s conftest.err | 
|  | 2401 | }; then : | 
|  | 2402 | ac_retval=0 | 
|  | 2403 | else | 
|  | 2404 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2405 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2406 |  | 
|  | 2407 | ac_retval=1 | 
|  | 2408 | fi | 
|  | 2409 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2410 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2411 |  | 
|  | 2412 | } # ac_fn_cxx_try_cpp | 
|  | 2413 |  | 
|  | 2414 | # ac_fn_cxx_try_link LINENO | 
|  | 2415 | # ------------------------- | 
|  | 2416 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 2417 | ac_fn_cxx_try_link () | 
|  | 2418 | { | 
|  | 2419 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2420 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 2421 | if { { ac_try="$ac_link" | 
|  | 2422 | case "(($ac_try" in | 
|  | 2423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2424 | *) ac_try_echo=$ac_try;; | 
|  | 2425 | esac | 
|  | 2426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2427 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2428 | (eval "$ac_link") 2>conftest.err | 
|  | 2429 | ac_status=$? | 
|  | 2430 | if test -s conftest.err; then | 
|  | 2431 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2432 | cat conftest.er1 >&5 | 
|  | 2433 | mv -f conftest.er1 conftest.err | 
|  | 2434 | fi | 
|  | 2435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2436 | test $ac_status = 0; } && { | 
|  | 2437 | test -z "$ac_cxx_werror_flag" || | 
|  | 2438 | test ! -s conftest.err | 
|  | 2439 | } && test -s conftest$ac_exeext && { | 
|  | 2440 | test "$cross_compiling" = yes || | 
|  | 2441 | $as_test_x conftest$ac_exeext | 
|  | 2442 | }; then : | 
|  | 2443 | ac_retval=0 | 
|  | 2444 | else | 
|  | 2445 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2446 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2447 |  | 
|  | 2448 | ac_retval=1 | 
|  | 2449 | fi | 
|  | 2450 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 2451 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 2452 | # interfere with the next link command; also delete a directory that is | 
|  | 2453 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 2454 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
|  | 2455 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2456 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2457 |  | 
|  | 2458 | } # ac_fn_cxx_try_link | 
|  | 2459 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2460 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2461 | # --------------------------------------------- | 
|  | 2462 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2463 | # accordingly. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2464 | ac_fn_c_check_decl () | 
|  | 2465 | { | 
|  | 2466 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2467 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2468 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2470 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
|  | 2471 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2472 | $as_echo_n "(cached) " >&6 | 
|  | 2473 | else | 
|  | 2474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2475 | /* end confdefs.h.  */ | 
|  | 2476 | $4 | 
|  | 2477 | int | 
|  | 2478 | main () | 
|  | 2479 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2480 | #ifndef $as_decl_name | 
|  | 2481 | #ifdef __cplusplus | 
|  | 2482 | (void) $as_decl_use; | 
|  | 2483 | #else | 
|  | 2484 | (void) $as_decl_name; | 
|  | 2485 | #endif | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2486 | #endif | 
|  | 2487 |  | 
|  | 2488 | ; | 
|  | 2489 | return 0; | 
|  | 2490 | } | 
|  | 2491 | _ACEOF | 
|  | 2492 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2493 | eval "$3=yes" | 
|  | 2494 | else | 
|  | 2495 | eval "$3=no" | 
|  | 2496 | fi | 
|  | 2497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2498 | fi | 
|  | 2499 | eval ac_res=\$$3 | 
|  | 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2501 | $as_echo "$ac_res" >&6; } | 
|  | 2502 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2503 |  | 
|  | 2504 | } # ac_fn_c_check_decl | 
|  | 2505 |  | 
|  | 2506 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 2507 | # ------------------------------------------- | 
|  | 2508 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 2509 | # variable VAR accordingly. | 
|  | 2510 | ac_fn_c_check_type () | 
|  | 2511 | { | 
|  | 2512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2514 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2515 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2516 | $as_echo_n "(cached) " >&6 | 
|  | 2517 | else | 
|  | 2518 | eval "$3=no" | 
|  | 2519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2520 | /* end confdefs.h.  */ | 
|  | 2521 | $4 | 
|  | 2522 | int | 
|  | 2523 | main () | 
|  | 2524 | { | 
|  | 2525 | if (sizeof ($2)) | 
|  | 2526 | return 0; | 
|  | 2527 | ; | 
|  | 2528 | return 0; | 
|  | 2529 | } | 
|  | 2530 | _ACEOF | 
|  | 2531 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2533 | /* end confdefs.h.  */ | 
|  | 2534 | $4 | 
|  | 2535 | int | 
|  | 2536 | main () | 
|  | 2537 | { | 
|  | 2538 | if (sizeof (($2))) | 
|  | 2539 | return 0; | 
|  | 2540 | ; | 
|  | 2541 | return 0; | 
|  | 2542 | } | 
|  | 2543 | _ACEOF | 
|  | 2544 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2545 |  | 
|  | 2546 | else | 
|  | 2547 | eval "$3=yes" | 
|  | 2548 | fi | 
|  | 2549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2550 | fi | 
|  | 2551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2552 | fi | 
|  | 2553 | eval ac_res=\$$3 | 
|  | 2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2555 | $as_echo "$ac_res" >&6; } | 
|  | 2556 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2557 |  | 
|  | 2558 | } # ac_fn_c_check_type | 
|  | 2559 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2560 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2561 | # ---------------------------------------------------- | 
|  | 2562 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2563 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2564 | ac_fn_c_check_member () | 
|  | 2565 | { | 
|  | 2566 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2568 | $as_echo_n "checking for $2.$3... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2569 | if eval "test \"\${$4+set}\"" = set; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2570 | $as_echo_n "(cached) " >&6 | 
|  | 2571 | else | 
|  | 2572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2573 | /* end confdefs.h.  */ | 
|  | 2574 | $5 | 
|  | 2575 | int | 
|  | 2576 | main () | 
|  | 2577 | { | 
|  | 2578 | static $2 ac_aggr; | 
|  | 2579 | if (ac_aggr.$3) | 
|  | 2580 | return 0; | 
|  | 2581 | ; | 
|  | 2582 | return 0; | 
|  | 2583 | } | 
|  | 2584 | _ACEOF | 
|  | 2585 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2586 | eval "$4=yes" | 
|  | 2587 | else | 
|  | 2588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2589 | /* end confdefs.h.  */ | 
|  | 2590 | $5 | 
|  | 2591 | int | 
|  | 2592 | main () | 
|  | 2593 | { | 
|  | 2594 | static $2 ac_aggr; | 
|  | 2595 | if (sizeof ac_aggr.$3) | 
|  | 2596 | return 0; | 
|  | 2597 | ; | 
|  | 2598 | return 0; | 
|  | 2599 | } | 
|  | 2600 | _ACEOF | 
|  | 2601 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2602 | eval "$4=yes" | 
|  | 2603 | else | 
|  | 2604 | eval "$4=no" | 
|  | 2605 | fi | 
|  | 2606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2607 | fi | 
|  | 2608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2609 | fi | 
|  | 2610 | eval ac_res=\$$4 | 
|  | 2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2612 | $as_echo "$ac_res" >&6; } | 
|  | 2613 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2614 |  | 
|  | 2615 | } # ac_fn_c_check_member | 
|  | 2616 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2617 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 2618 | # -------------------------------------------- | 
|  | 2619 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2620 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2621 | # computed | 
|  | 2622 | ac_fn_c_compute_int () | 
|  | 2623 | { | 
|  | 2624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2625 | if test "$cross_compiling" = yes; then | 
|  | 2626 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2628 | /* end confdefs.h.  */ | 
|  | 2629 | $4 | 
|  | 2630 | int | 
|  | 2631 | main () | 
|  | 2632 | { | 
|  | 2633 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
|  | 2634 | test_array [0] = 0 | 
|  | 2635 |  | 
|  | 2636 | ; | 
|  | 2637 | return 0; | 
|  | 2638 | } | 
|  | 2639 | _ACEOF | 
|  | 2640 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2641 | ac_lo=0 ac_mid=0 | 
|  | 2642 | while :; do | 
|  | 2643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2644 | /* end confdefs.h.  */ | 
|  | 2645 | $4 | 
|  | 2646 | int | 
|  | 2647 | main () | 
|  | 2648 | { | 
|  | 2649 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2650 | test_array [0] = 0 | 
|  | 2651 |  | 
|  | 2652 | ; | 
|  | 2653 | return 0; | 
|  | 2654 | } | 
|  | 2655 | _ACEOF | 
|  | 2656 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2657 | ac_hi=$ac_mid; break | 
|  | 2658 | else | 
|  | 2659 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2660 | if test $ac_lo -le $ac_mid; then | 
|  | 2661 | ac_lo= ac_hi= | 
|  | 2662 | break | 
|  | 2663 | fi | 
|  | 2664 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2665 | fi | 
|  | 2666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2667 | done | 
|  | 2668 | else | 
|  | 2669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2670 | /* end confdefs.h.  */ | 
|  | 2671 | $4 | 
|  | 2672 | int | 
|  | 2673 | main () | 
|  | 2674 | { | 
|  | 2675 | static int test_array [1 - 2 * !(($2) < 0)]; | 
|  | 2676 | test_array [0] = 0 | 
|  | 2677 |  | 
|  | 2678 | ; | 
|  | 2679 | return 0; | 
|  | 2680 | } | 
|  | 2681 | _ACEOF | 
|  | 2682 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2683 | ac_hi=-1 ac_mid=-1 | 
|  | 2684 | while :; do | 
|  | 2685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2686 | /* end confdefs.h.  */ | 
|  | 2687 | $4 | 
|  | 2688 | int | 
|  | 2689 | main () | 
|  | 2690 | { | 
|  | 2691 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
|  | 2692 | test_array [0] = 0 | 
|  | 2693 |  | 
|  | 2694 | ; | 
|  | 2695 | return 0; | 
|  | 2696 | } | 
|  | 2697 | _ACEOF | 
|  | 2698 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2699 | ac_lo=$ac_mid; break | 
|  | 2700 | else | 
|  | 2701 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2702 | if test $ac_mid -le $ac_hi; then | 
|  | 2703 | ac_lo= ac_hi= | 
|  | 2704 | break | 
|  | 2705 | fi | 
|  | 2706 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2707 | fi | 
|  | 2708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2709 | done | 
|  | 2710 | else | 
|  | 2711 | ac_lo= ac_hi= | 
|  | 2712 | fi | 
|  | 2713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2714 | fi | 
|  | 2715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2716 | # Binary search between lo and hi bounds. | 
|  | 2717 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2718 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2720 | /* end confdefs.h.  */ | 
|  | 2721 | $4 | 
|  | 2722 | int | 
|  | 2723 | main () | 
|  | 2724 | { | 
|  | 2725 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2726 | test_array [0] = 0 | 
|  | 2727 |  | 
|  | 2728 | ; | 
|  | 2729 | return 0; | 
|  | 2730 | } | 
|  | 2731 | _ACEOF | 
|  | 2732 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2733 | ac_hi=$ac_mid | 
|  | 2734 | else | 
|  | 2735 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2736 | fi | 
|  | 2737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2738 | done | 
|  | 2739 | case $ac_lo in #(( | 
|  | 2740 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2741 | '') ac_retval=1 ;; | 
|  | 2742 | esac | 
|  | 2743 | else | 
|  | 2744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2745 | /* end confdefs.h.  */ | 
|  | 2746 | $4 | 
|  | 2747 | static long int longval () { return $2; } | 
|  | 2748 | static unsigned long int ulongval () { return $2; } | 
|  | 2749 | #include <stdio.h> | 
|  | 2750 | #include <stdlib.h> | 
|  | 2751 | int | 
|  | 2752 | main () | 
|  | 2753 | { | 
|  | 2754 |  | 
|  | 2755 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2756 | if (! f) | 
|  | 2757 | return 1; | 
|  | 2758 | if (($2) < 0) | 
|  | 2759 | { | 
|  | 2760 | long int i = longval (); | 
|  | 2761 | if (i != ($2)) | 
|  | 2762 | return 1; | 
|  | 2763 | fprintf (f, "%ld", i); | 
|  | 2764 | } | 
|  | 2765 | else | 
|  | 2766 | { | 
|  | 2767 | unsigned long int i = ulongval (); | 
|  | 2768 | if (i != ($2)) | 
|  | 2769 | return 1; | 
|  | 2770 | fprintf (f, "%lu", i); | 
|  | 2771 | } | 
|  | 2772 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2773 | on some platforms.  */ | 
|  | 2774 | return ferror (f) || fclose (f) != 0; | 
|  | 2775 |  | 
|  | 2776 | ; | 
|  | 2777 | return 0; | 
|  | 2778 | } | 
|  | 2779 | _ACEOF | 
|  | 2780 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2781 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2782 | else | 
|  | 2783 | ac_retval=1 | 
|  | 2784 | fi | 
|  | 2785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2786 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2787 | rm -f conftest.val | 
|  | 2788 |  | 
|  | 2789 | fi | 
|  | 2790 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2791 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2792 |  | 
|  | 2793 | } # ac_fn_c_compute_int | 
|  | 2794 |  | 
|  | 2795 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 2796 | # --------------------------------------------------------- | 
|  | 2797 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 2798 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 2799 | # accordingly. | 
|  | 2800 | ac_fn_cxx_check_header_mongrel () | 
|  | 2801 | { | 
|  | 2802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2803 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2805 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2806 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2807 | $as_echo_n "(cached) " >&6 | 
|  | 2808 | fi | 
|  | 2809 | eval ac_res=\$$3 | 
|  | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2811 | $as_echo "$ac_res" >&6; } | 
|  | 2812 | else | 
|  | 2813 | # Is the header compilable? | 
|  | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 2815 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 2816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2817 | /* end confdefs.h.  */ | 
|  | 2818 | $4 | 
|  | 2819 | #include <$2> | 
|  | 2820 | _ACEOF | 
|  | 2821 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 2822 | ac_header_compiler=yes | 
|  | 2823 | else | 
|  | 2824 | ac_header_compiler=no | 
|  | 2825 | fi | 
|  | 2826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 2828 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 2829 |  | 
|  | 2830 | # Is the header present? | 
|  | 2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 2832 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 2833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2834 | /* end confdefs.h.  */ | 
|  | 2835 | #include <$2> | 
|  | 2836 | _ACEOF | 
|  | 2837 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 2838 | ac_header_preproc=yes | 
|  | 2839 | else | 
|  | 2840 | ac_header_preproc=no | 
|  | 2841 | fi | 
|  | 2842 | rm -f conftest.err conftest.$ac_ext | 
|  | 2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 2844 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 2845 |  | 
|  | 2846 | # So?  What about this header? | 
|  | 2847 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | 
|  | 2848 | yes:no: ) | 
|  | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 2850 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2852 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 2853 | ;; | 
|  | 2854 | no:yes:* ) | 
|  | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 2856 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 2858 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 2860 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 2862 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2864 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2865 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2866 | ## Report this to http://www.imagemagick.org ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2867 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2868 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 2869 | ;; | 
|  | 2870 | esac | 
|  | 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2872 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2873 | if eval "test \"\${$3+set}\"" = set; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2874 | $as_echo_n "(cached) " >&6 | 
|  | 2875 | else | 
|  | 2876 | eval "$3=\$ac_header_compiler" | 
|  | 2877 | fi | 
|  | 2878 | eval ac_res=\$$3 | 
|  | 2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2880 | $as_echo "$ac_res" >&6; } | 
|  | 2881 | fi | 
|  | 2882 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 
|  | 2883 |  | 
|  | 2884 | } # ac_fn_cxx_check_header_mongrel | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2885 | cat >config.log <<_ACEOF | 
|  | 2886 | This file contains any messages produced by compilers while | 
|  | 2887 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2888 |  | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 2889 | It was created by ImageMagick $as_me 6.6.3, which was | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 2890 | generated by GNU Autoconf 2.66.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2891 |  | 
|  | 2892 | $ $0 $@ | 
|  | 2893 |  | 
|  | 2894 | _ACEOF | 
|  | 2895 | exec 5>>config.log | 
|  | 2896 | { | 
|  | 2897 | cat <<_ASUNAME | 
|  | 2898 | ## --------- ## | 
|  | 2899 | ## Platform. ## | 
|  | 2900 | ## --------- ## | 
|  | 2901 |  | 
|  | 2902 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2903 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2904 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2905 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2906 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2907 |  | 
|  | 2908 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2909 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2910 |  | 
|  | 2911 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2912 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2913 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
|  | 2914 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
|  | 2915 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2916 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2917 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2918 |  | 
|  | 2919 | _ASUNAME | 
|  | 2920 |  | 
|  | 2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2922 | for as_dir in $PATH | 
|  | 2923 | do | 
|  | 2924 | IFS=$as_save_IFS | 
|  | 2925 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2926 | $as_echo "PATH: $as_dir" | 
|  | 2927 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2928 | IFS=$as_save_IFS | 
|  | 2929 |  | 
|  | 2930 | } >&5 | 
|  | 2931 |  | 
|  | 2932 | cat >&5 <<_ACEOF | 
|  | 2933 |  | 
|  | 2934 |  | 
|  | 2935 | ## ----------- ## | 
|  | 2936 | ## Core tests. ## | 
|  | 2937 | ## ----------- ## | 
|  | 2938 |  | 
|  | 2939 | _ACEOF | 
|  | 2940 |  | 
|  | 2941 |  | 
|  | 2942 | # Keep a trace of the command line. | 
|  | 2943 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|  | 2944 | # Strip out --silent because we don't want to record it for future runs. | 
|  | 2945 | # Also quote any args containing shell meta-characters. | 
|  | 2946 | # Make two passes to allow for proper duplicate-argument suppression. | 
|  | 2947 | ac_configure_args= | 
|  | 2948 | ac_configure_args0= | 
|  | 2949 | ac_configure_args1= | 
|  | 2950 | ac_must_keep_next=false | 
|  | 2951 | for ac_pass in 1 2 | 
|  | 2952 | do | 
|  | 2953 | for ac_arg | 
|  | 2954 | do | 
|  | 2955 | case $ac_arg in | 
|  | 2956 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2957 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2958 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2959 | continue ;; | 
|  | 2960 | *\'*) | 
|  | 2961 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 2962 | esac | 
|  | 2963 | case $ac_pass in | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2964 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2965 | 2) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2966 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2967 | if test $ac_must_keep_next = true; then | 
|  | 2968 | ac_must_keep_next=false # Got value, back to normal. | 
|  | 2969 | else | 
|  | 2970 | case $ac_arg in | 
|  | 2971 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2972 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2973 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2974 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2975 | case "$ac_configure_args0 " in | 
|  | 2976 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 2977 | esac | 
|  | 2978 | ;; | 
|  | 2979 | -* ) ac_must_keep_next=true ;; | 
|  | 2980 | esac | 
|  | 2981 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2982 | as_fn_append ac_configure_args " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2983 | ;; | 
|  | 2984 | esac | 
|  | 2985 | done | 
|  | 2986 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2987 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 2988 | { ac_configure_args1=; unset ac_configure_args1;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2989 |  | 
|  | 2990 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 2991 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 2992 | # would cause problems or look ugly. | 
|  | 2993 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 2994 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
|  | 2995 | trap 'exit_status=$? | 
|  | 2996 | # Save into config.log some information that might help in debugging. | 
|  | 2997 | { | 
|  | 2998 | echo | 
|  | 2999 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3000 | $as_echo "## ---------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3001 | ## Cache variables. ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3002 | ## ---------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3003 | echo | 
|  | 3004 | # The following way of writing the cache mishandles newlines in values, | 
|  | 3005 | ( | 
|  | 3006 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 3007 | eval ac_val=\$$ac_var | 
|  | 3008 | case $ac_val in #( | 
|  | 3009 | *${as_nl}*) | 
|  | 3010 | case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3011 | *_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] | 3012 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
|  | 3013 | esac | 
|  | 3014 | case $ac_var in #( | 
|  | 3015 | _ | IFS | as_nl) ;; #( | 
|  | 3016 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3017 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3018 | esac ;; | 
|  | 3019 | esac | 
|  | 3020 | done | 
|  | 3021 | (set) 2>&1 | | 
|  | 3022 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 3023 | *${as_nl}ac_space=\ *) | 
|  | 3024 | sed -n \ | 
|  | 3025 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 3026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 3027 | ;; #( | 
|  | 3028 | *) | 
|  | 3029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
|  | 3030 | ;; | 
|  | 3031 | esac | | 
|  | 3032 | sort | 
|  | 3033 | ) | 
|  | 3034 | echo | 
|  | 3035 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3036 | $as_echo "## ----------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3037 | ## Output variables. ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3038 | ## ----------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3039 | echo | 
|  | 3040 | for ac_var in $ac_subst_vars | 
|  | 3041 | do | 
|  | 3042 | eval ac_val=\$$ac_var | 
|  | 3043 | case $ac_val in | 
|  | 3044 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
|  | 3045 | esac | 
|  | 3046 | $as_echo "$ac_var='\''$ac_val'\''" | 
|  | 3047 | done | sort | 
|  | 3048 | echo | 
|  | 3049 |  | 
|  | 3050 | if test -n "$ac_subst_files"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3051 | $as_echo "## ------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3052 | ## File substitutions. ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3053 | ## ------------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3054 | echo | 
|  | 3055 | for ac_var in $ac_subst_files | 
|  | 3056 | do | 
|  | 3057 | eval ac_val=\$$ac_var | 
|  | 3058 | case $ac_val in | 
|  | 3059 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
|  | 3060 | esac | 
|  | 3061 | $as_echo "$ac_var='\''$ac_val'\''" | 
|  | 3062 | done | sort | 
|  | 3063 | echo | 
|  | 3064 | fi | 
|  | 3065 |  | 
|  | 3066 | if test -s confdefs.h; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3067 | $as_echo "## ----------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3068 | ## confdefs.h. ## | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3069 | ## ----------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3070 | echo | 
|  | 3071 | cat confdefs.h | 
|  | 3072 | echo | 
|  | 3073 | fi | 
|  | 3074 | test "$ac_signal" != 0 && | 
|  | 3075 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 3076 | $as_echo "$as_me: exit $exit_status" | 
|  | 3077 | } >&5 | 
|  | 3078 | rm -f core *.core core.conftest.* && | 
|  | 3079 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
|  | 3080 | exit $exit_status | 
|  | 3081 | ' 0 | 
|  | 3082 | for ac_signal in 1 2 13 15; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3083 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3084 | done | 
|  | 3085 | ac_signal=0 | 
|  | 3086 |  | 
|  | 3087 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 3088 | rm -f -r conftest* confdefs.h | 
|  | 3089 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3090 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 3091 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3092 | # Predefined preprocessor variables. | 
|  | 3093 |  | 
|  | 3094 | cat >>confdefs.h <<_ACEOF | 
|  | 3095 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 3096 | _ACEOF | 
|  | 3097 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3098 | cat >>confdefs.h <<_ACEOF | 
|  | 3099 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 3100 | _ACEOF | 
|  | 3101 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3102 | cat >>confdefs.h <<_ACEOF | 
|  | 3103 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 3104 | _ACEOF | 
|  | 3105 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3106 | cat >>confdefs.h <<_ACEOF | 
|  | 3107 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 3108 | _ACEOF | 
|  | 3109 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3110 | cat >>confdefs.h <<_ACEOF | 
|  | 3111 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 3112 | _ACEOF | 
|  | 3113 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3114 | cat >>confdefs.h <<_ACEOF | 
|  | 3115 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 3116 | _ACEOF | 
|  | 3117 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3118 |  | 
|  | 3119 | # Let the site file select an alternate cache file if it wants to. | 
|  | 3120 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 3121 | ac_site_file1=NONE | 
|  | 3122 | ac_site_file2=NONE | 
|  | 3123 | if test -n "$CONFIG_SITE"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3124 | # We do not want a PATH search for config.site. | 
|  | 3125 | case $CONFIG_SITE in #(( | 
|  | 3126 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 3127 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 3128 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 3129 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3130 | elif test "x$prefix" != xNONE; then | 
|  | 3131 | ac_site_file1=$prefix/share/config.site | 
|  | 3132 | ac_site_file2=$prefix/etc/config.site | 
|  | 3133 | else | 
|  | 3134 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 3135 | ac_site_file2=$ac_default_prefix/etc/config.site | 
|  | 3136 | fi | 
|  | 3137 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
|  | 3138 | do | 
|  | 3139 | test "x$ac_site_file" = xNONE && continue | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3140 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3141 | { $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] | 3142 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
|  | 3143 | sed 's/^/| /' "$ac_site_file" >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3144 | . "$ac_site_file" \ | 
|  | 3145 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3147 | as_fn_error $? "failed to load site script $ac_site_file | 
|  | 3148 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3149 | fi | 
|  | 3150 | done | 
|  | 3151 |  | 
|  | 3152 | if test -r "$cache_file"; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3153 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 3154 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 3155 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3157 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
|  | 3158 | case $cache_file in | 
|  | 3159 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 3160 | *)                      . "./$cache_file";; | 
|  | 3161 | esac | 
|  | 3162 | fi | 
|  | 3163 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3165 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
|  | 3166 | >$cache_file | 
|  | 3167 | fi | 
|  | 3168 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3169 | as_fn_append ac_header_list " stdlib.h" | 
|  | 3170 | as_fn_append ac_header_list " unistd.h" | 
|  | 3171 | as_fn_append ac_header_list " sys/param.h" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3172 | # Check that the precious variables saved in the cache have kept the same | 
|  | 3173 | # value. | 
|  | 3174 | ac_cache_corrupted=false | 
|  | 3175 | for ac_var in $ac_precious_vars; do | 
|  | 3176 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 3177 | eval ac_new_set=\$ac_env_${ac_var}_set | 
|  | 3178 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 3179 | eval ac_new_val=\$ac_env_${ac_var}_value | 
|  | 3180 | case $ac_old_set,$ac_new_set in | 
|  | 3181 | set,) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3182 | { $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] | 3183 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
|  | 3184 | ac_cache_corrupted=: ;; | 
|  | 3185 | ,set) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3186 | { $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] | 3187 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
|  | 3188 | ac_cache_corrupted=: ;; | 
|  | 3189 | ,);; | 
|  | 3190 | *) | 
|  | 3191 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
|  | 3192 | # differences in whitespace do not lead to failure. | 
|  | 3193 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 3194 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 3195 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3196 | { $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] | 3197 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 3198 | ac_cache_corrupted=: | 
|  | 3199 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3200 | { $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] | 3201 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 3202 | eval $ac_var=\$ac_old_val | 
|  | 3203 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3204 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3205 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3207 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
|  | 3208 | fi;; | 
|  | 3209 | esac | 
|  | 3210 | # Pass precious variables to config.status. | 
|  | 3211 | if test "$ac_new_set" = set; then | 
|  | 3212 | case $ac_new_val in | 
|  | 3213 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 3214 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 3215 | esac | 
|  | 3216 | case " $ac_configure_args " in | 
|  | 3217 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3218 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3219 | esac | 
|  | 3220 | fi | 
|  | 3221 | done | 
|  | 3222 | if $ac_cache_corrupted; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3225 | { $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] | 3226 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3227 | 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] | 3228 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3229 | ## -------------------- ## | 
|  | 3230 | ## Main body of script. ## | 
|  | 3231 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3232 |  | 
|  | 3233 | ac_ext=c | 
|  | 3234 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3238 |  | 
|  | 3239 |  | 
|  | 3240 |  | 
|  | 3241 | ac_aux_dir= | 
|  | 3242 | for ac_dir in config "$srcdir"/config; do | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3243 | if test -f "$ac_dir/install-sh"; then | 
|  | 3244 | ac_aux_dir=$ac_dir | 
|  | 3245 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 3246 | break | 
|  | 3247 | elif test -f "$ac_dir/install.sh"; then | 
|  | 3248 | ac_aux_dir=$ac_dir | 
|  | 3249 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 3250 | break | 
|  | 3251 | elif test -f "$ac_dir/shtool"; then | 
|  | 3252 | ac_aux_dir=$ac_dir | 
|  | 3253 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 3254 | break | 
|  | 3255 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3256 | done | 
|  | 3257 | if test -z "$ac_aux_dir"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3258 | 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] | 3259 | fi | 
|  | 3260 |  | 
|  | 3261 | # These three variables are undocumented and unsupported, | 
|  | 3262 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 3263 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 3264 | # whose full name contains unusual characters. | 
|  | 3265 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 3266 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 3267 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 3268 |  | 
|  | 3269 |  | 
|  | 3270 |  | 
|  | 3271 |  | 
|  | 3272 | ac_config_headers="$ac_config_headers config/config.h" | 
|  | 3273 |  | 
|  | 3274 | ac_config_commands="$ac_config_commands magick/magick-config.h" | 
|  | 3275 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 3276 | 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3277 |  | 
|  | 3278 |  | 
|  | 3279 | # | 
|  | 3280 | # Save initial user-tunable values | 
|  | 3281 | # | 
|  | 3282 | USER_LIBS=$LIBS | 
|  | 3283 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do | 
|  | 3284 | eval isset=\${$var+set} | 
|  | 3285 | if test "$isset" = 'set'; then | 
|  | 3286 | eval val=$`echo $var` | 
|  | 3287 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " | 
|  | 3288 | fi | 
|  | 3289 | done | 
|  | 3290 |  | 
|  | 3291 |  | 
|  | 3292 | CONFIGURE_ARGS="$0 ${ac_configure_args}" | 
|  | 3293 |  | 
|  | 3294 |  | 
|  | 3295 | # Source file containing package/library versioning information. | 
|  | 3296 | . ${srcdir}/version.sh | 
|  | 3297 |  | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3298 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3299 | # Make sure we can run config.sub. | 
|  | 3300 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3301 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3302 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3304 | $as_echo_n "checking build system type... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3305 | if test "${ac_cv_build+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3306 | $as_echo_n "(cached) " >&6 | 
|  | 3307 | else | 
|  | 3308 | ac_build_alias=$build_alias | 
|  | 3309 | test "x$ac_build_alias" = x && | 
|  | 3310 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 3311 | test "x$ac_build_alias" = x && | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3312 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3313 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3314 | 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] | 3315 |  | 
|  | 3316 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3318 | $as_echo "$ac_cv_build" >&6; } | 
|  | 3319 | case $ac_cv_build in | 
|  | 3320 | *-*-*) ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3321 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3322 | esac | 
|  | 3323 | build=$ac_cv_build | 
|  | 3324 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3325 | set x $ac_cv_build | 
|  | 3326 | shift | 
|  | 3327 | build_cpu=$1 | 
|  | 3328 | build_vendor=$2 | 
|  | 3329 | shift; shift | 
|  | 3330 | # Remember, the first character of IFS is used to create $*, | 
|  | 3331 | # except with old shells: | 
|  | 3332 | build_os=$* | 
|  | 3333 | IFS=$ac_save_IFS | 
|  | 3334 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 3335 |  | 
|  | 3336 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3338 | $as_echo_n "checking host system type... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3339 | if test "${ac_cv_host+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3340 | $as_echo_n "(cached) " >&6 | 
|  | 3341 | else | 
|  | 3342 | if test "x$host_alias" = x; then | 
|  | 3343 | ac_cv_host=$ac_cv_build | 
|  | 3344 | else | 
|  | 3345 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3346 | 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] | 3347 | fi | 
|  | 3348 |  | 
|  | 3349 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3351 | $as_echo "$ac_cv_host" >&6; } | 
|  | 3352 | case $ac_cv_host in | 
|  | 3353 | *-*-*) ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3354 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3355 | esac | 
|  | 3356 | host=$ac_cv_host | 
|  | 3357 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3358 | set x $ac_cv_host | 
|  | 3359 | shift | 
|  | 3360 | host_cpu=$1 | 
|  | 3361 | host_vendor=$2 | 
|  | 3362 | shift; shift | 
|  | 3363 | # Remember, the first character of IFS is used to create $*, | 
|  | 3364 | # except with old shells: | 
|  | 3365 | host_os=$* | 
|  | 3366 | IFS=$ac_save_IFS | 
|  | 3367 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
|  | 3368 |  | 
|  | 3369 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3371 | $as_echo_n "checking target system type... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3372 | if test "${ac_cv_target+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3373 | $as_echo_n "(cached) " >&6 | 
|  | 3374 | else | 
|  | 3375 | if test "x$target_alias" = x; then | 
|  | 3376 | ac_cv_target=$ac_cv_host | 
|  | 3377 | else | 
|  | 3378 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3379 | 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] | 3380 | fi | 
|  | 3381 |  | 
|  | 3382 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3384 | $as_echo "$ac_cv_target" >&6; } | 
|  | 3385 | case $ac_cv_target in | 
|  | 3386 | *-*-*) ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3387 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3388 | esac | 
|  | 3389 | target=$ac_cv_target | 
|  | 3390 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3391 | set x $ac_cv_target | 
|  | 3392 | shift | 
|  | 3393 | target_cpu=$1 | 
|  | 3394 | target_vendor=$2 | 
|  | 3395 | shift; shift | 
|  | 3396 | # Remember, the first character of IFS is used to create $*, | 
|  | 3397 | # except with old shells: | 
|  | 3398 | target_os=$* | 
|  | 3399 | IFS=$ac_save_IFS | 
|  | 3400 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 3401 |  | 
|  | 3402 |  | 
|  | 3403 | # The aliases save the names the user supplied, while $host etc. | 
|  | 3404 | # will get canonicalized. | 
|  | 3405 | test -n "$target_alias" && | 
|  | 3406 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 3407 | NONENONEs,x,x, && | 
|  | 3408 | program_prefix=${target_alias}- | 
|  | 3409 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3410 |  | 
|  | 3411 |  | 
|  | 3412 |  | 
|  | 3413 |  | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3414 | MAGICK_TARGET_CPU=$target_cpu | 
|  | 3415 |  | 
|  | 3416 |  | 
|  | 3417 | MAGICK_TARGET_VENDOR=$target_vendor | 
|  | 3418 |  | 
|  | 3419 |  | 
|  | 3420 | MAGICK_TARGET_OS=$target_os | 
|  | 3421 |  | 
|  | 3422 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3423 | # Substitute library versioning | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3424 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` | 
|  | 3425 |  | 
|  | 3426 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE | 
|  | 3427 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3428 |  | 
|  | 3429 |  | 
|  | 3430 | # Ensure that make can run correctly | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3432 | $as_echo_n "checking whether build environment is sane... " >&6; } | 
|  | 3433 | # Just in case | 
|  | 3434 | sleep 1 | 
|  | 3435 | echo timestamp > conftest.file | 
|  | 3436 | # Reject unsafe characters in $srcdir or the absolute working directory | 
|  | 3437 | # name.  Accept space and tab only in the latter. | 
|  | 3438 | am_lf=' | 
|  | 3439 | ' | 
|  | 3440 | case `pwd` in | 
|  | 3441 | *[\\\"\#\$\&\'\`$am_lf]*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3442 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3443 | esac | 
|  | 3444 | case $srcdir in | 
|  | 3445 | *[\\\"\#\$\&\'\`$am_lf\ \	]*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3446 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3447 | esac | 
|  | 3448 |  | 
|  | 3449 | # Do `set' in a subshell so we don't clobber the current shell's | 
|  | 3450 | # arguments.  Must try -L first in case configure is actually a | 
|  | 3451 | # symlink; some systems play weird games with the mod time of symlinks | 
|  | 3452 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|  | 3453 | # directory). | 
|  | 3454 | if ( | 
|  | 3455 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | 
|  | 3456 | if test "$*" = "X"; then | 
|  | 3457 | # -L didn't work. | 
|  | 3458 | set X `ls -t "$srcdir/configure" conftest.file` | 
|  | 3459 | fi | 
|  | 3460 | rm -f conftest.file | 
|  | 3461 | if test "$*" != "X $srcdir/configure conftest.file" \ | 
|  | 3462 | && test "$*" != "X conftest.file $srcdir/configure"; then | 
|  | 3463 |  | 
|  | 3464 | # If neither matched, then we have a broken ls.  This can happen | 
|  | 3465 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|  | 3466 | # broken ls alias from the environment.  This has actually | 
|  | 3467 | # happened.  Such a system could not be considered "sane". | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3468 | as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3469 | alias in your environment" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3470 | fi | 
|  | 3471 |  | 
|  | 3472 | test "$2" = conftest.file | 
|  | 3473 | ) | 
|  | 3474 | then | 
|  | 3475 | # Ok. | 
|  | 3476 | : | 
|  | 3477 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3478 | as_fn_error $? "newly created file is older than distributed files! | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3479 | Check your system clock" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3480 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3482 | $as_echo "yes" >&6; } | 
|  | 3483 |  | 
|  | 3484 | am__api_version='1.11' | 
|  | 3485 |  | 
|  | 3486 | # Find a good install program.  We prefer a C program (faster), | 
|  | 3487 | # so one script is as good as another.  But avoid the broken or | 
|  | 3488 | # incompatible versions: | 
|  | 3489 | # SysV /etc/install, /usr/sbin/install | 
|  | 3490 | # SunOS /usr/etc/install | 
|  | 3491 | # IRIX /sbin/install | 
|  | 3492 | # AIX /bin/install | 
|  | 3493 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 3494 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 3495 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 3496 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 3497 | # OS/2's system install, which has a completely different semantic | 
|  | 3498 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 3499 | # Reject install programs that cannot install multiple files. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3501 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
|  | 3502 | if test -z "$INSTALL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3503 | if test "${ac_cv_path_install+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3504 | $as_echo_n "(cached) " >&6 | 
|  | 3505 | else | 
|  | 3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3507 | for as_dir in $PATH | 
|  | 3508 | do | 
|  | 3509 | IFS=$as_save_IFS | 
|  | 3510 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3511 | # Account for people who put trailing slashes in PATH elements. | 
|  | 3512 | case $as_dir/ in #(( | 
|  | 3513 | ./ | .// | /[cC]/* | \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3514 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3515 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3516 | /usr/ucb/* ) ;; | 
|  | 3517 | *) | 
|  | 3518 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 3519 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 3520 | # by default. | 
|  | 3521 | for ac_prog in ginstall scoinst install; do | 
|  | 3522 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3523 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
|  | 3524 | if test $ac_prog = install && | 
|  | 3525 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 3526 | # AIX install.  It has an incompatible calling convention. | 
|  | 3527 | : | 
|  | 3528 | elif test $ac_prog = install && | 
|  | 3529 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 3530 | # program-specific install script used by HP pwplus--don't use. | 
|  | 3531 | : | 
|  | 3532 | else | 
|  | 3533 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 3534 | echo one > conftest.one | 
|  | 3535 | echo two > conftest.two | 
|  | 3536 | mkdir conftest.dir | 
|  | 3537 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 3538 | test -s conftest.one && test -s conftest.two && | 
|  | 3539 | test -s conftest.dir/conftest.one && | 
|  | 3540 | test -s conftest.dir/conftest.two | 
|  | 3541 | then | 
|  | 3542 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 3543 | break 3 | 
|  | 3544 | fi | 
|  | 3545 | fi | 
|  | 3546 | fi | 
|  | 3547 | done | 
|  | 3548 | done | 
|  | 3549 | ;; | 
|  | 3550 | esac | 
|  | 3551 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3552 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3553 | IFS=$as_save_IFS | 
|  | 3554 |  | 
|  | 3555 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 3556 |  | 
|  | 3557 | fi | 
|  | 3558 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 3559 | INSTALL=$ac_cv_path_install | 
|  | 3560 | else | 
|  | 3561 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 3562 | # value for INSTALL within a source directory, because that will | 
|  | 3563 | # break other packages using the cache if that directory is | 
|  | 3564 | # removed, or if the value is a relative name. | 
|  | 3565 | INSTALL=$ac_install_sh | 
|  | 3566 | fi | 
|  | 3567 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3569 | $as_echo "$INSTALL" >&6; } | 
|  | 3570 |  | 
|  | 3571 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 3572 | # It thinks the first close brace ends the variable substitution. | 
|  | 3573 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 3574 |  | 
|  | 3575 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 3576 |  | 
|  | 3577 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 3578 |  | 
|  | 3579 | test "$program_prefix" != NONE && | 
|  | 3580 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | 
|  | 3581 | # Use a double $ so make ignores it. | 
|  | 3582 | test "$program_suffix" != NONE && | 
|  | 3583 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | 
|  | 3584 | # Double any \ or $. | 
|  | 3585 | # By default was `s,x,x', remove it if useless. | 
|  | 3586 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | 
|  | 3587 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | 
|  | 3588 |  | 
|  | 3589 | # expand $ac_aux_dir to an absolute path | 
|  | 3590 | am_aux_dir=`cd $ac_aux_dir && pwd` | 
|  | 3591 |  | 
|  | 3592 | if test x"${MISSING+set}" != xset; then | 
|  | 3593 | case $am_aux_dir in | 
|  | 3594 | *\ * | *\	*) | 
|  | 3595 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | 
|  | 3596 | *) | 
|  | 3597 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | 
|  | 3598 | esac | 
|  | 3599 | fi | 
|  | 3600 | # Use eval to expand $SHELL | 
|  | 3601 | if eval "$MISSING --run true"; then | 
|  | 3602 | am_missing_run="$MISSING --run " | 
|  | 3603 | else | 
|  | 3604 | am_missing_run= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3606 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | 
|  | 3607 | fi | 
|  | 3608 |  | 
|  | 3609 | if test x"${install_sh}" != xset; then | 
|  | 3610 | case $am_aux_dir in | 
|  | 3611 | *\ * | *\	*) | 
|  | 3612 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | 
|  | 3613 | *) | 
|  | 3614 | install_sh="\${SHELL} $am_aux_dir/install-sh" | 
|  | 3615 | esac | 
|  | 3616 | fi | 
|  | 3617 |  | 
|  | 3618 | # Installed binaries are usually stripped using `strip' when the user | 
|  | 3619 | # run `make install-strip'.  However `strip' might not be the right | 
|  | 3620 | # tool to use in cross-compilation environments, therefore Automake | 
|  | 3621 | # will honor the `STRIP' environment variable to overrule this program. | 
|  | 3622 | if test "$cross_compiling" != no; then | 
|  | 3623 | if test -n "$ac_tool_prefix"; then | 
|  | 3624 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 3625 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3627 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3628 | if test "${ac_cv_prog_STRIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3629 | $as_echo_n "(cached) " >&6 | 
|  | 3630 | else | 
|  | 3631 | if test -n "$STRIP"; then | 
|  | 3632 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 3633 | else | 
|  | 3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3635 | for as_dir in $PATH | 
|  | 3636 | do | 
|  | 3637 | IFS=$as_save_IFS | 
|  | 3638 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3639 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3641 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3642 | $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] | 3643 | break 2 | 
|  | 3644 | fi | 
|  | 3645 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3646 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3647 | IFS=$as_save_IFS | 
|  | 3648 |  | 
|  | 3649 | fi | 
|  | 3650 | fi | 
|  | 3651 | STRIP=$ac_cv_prog_STRIP | 
|  | 3652 | if test -n "$STRIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3654 | $as_echo "$STRIP" >&6; } | 
|  | 3655 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3657 | $as_echo "no" >&6; } | 
|  | 3658 | fi | 
|  | 3659 |  | 
|  | 3660 |  | 
|  | 3661 | fi | 
|  | 3662 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 3663 | ac_ct_STRIP=$STRIP | 
|  | 3664 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 3665 | set dummy strip; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3667 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3668 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3669 | $as_echo_n "(cached) " >&6 | 
|  | 3670 | else | 
|  | 3671 | if test -n "$ac_ct_STRIP"; then | 
|  | 3672 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 3673 | else | 
|  | 3674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3675 | for as_dir in $PATH | 
|  | 3676 | do | 
|  | 3677 | IFS=$as_save_IFS | 
|  | 3678 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3679 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3681 | ac_cv_prog_ac_ct_STRIP="strip" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3682 | $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] | 3683 | break 2 | 
|  | 3684 | fi | 
|  | 3685 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3686 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3687 | IFS=$as_save_IFS | 
|  | 3688 |  | 
|  | 3689 | fi | 
|  | 3690 | fi | 
|  | 3691 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 3692 | if test -n "$ac_ct_STRIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3694 | $as_echo "$ac_ct_STRIP" >&6; } | 
|  | 3695 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3697 | $as_echo "no" >&6; } | 
|  | 3698 | fi | 
|  | 3699 |  | 
|  | 3700 | if test "x$ac_ct_STRIP" = x; then | 
|  | 3701 | STRIP=":" | 
|  | 3702 | else | 
|  | 3703 | case $cross_compiling:$ac_tool_warned in | 
|  | 3704 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3705 | { $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] | 3706 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 3707 | ac_tool_warned=yes ;; | 
|  | 3708 | esac | 
|  | 3709 | STRIP=$ac_ct_STRIP | 
|  | 3710 | fi | 
|  | 3711 | else | 
|  | 3712 | STRIP="$ac_cv_prog_STRIP" | 
|  | 3713 | fi | 
|  | 3714 |  | 
|  | 3715 | fi | 
|  | 3716 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 
|  | 3717 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3719 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 3720 | if test -z "$MKDIR_P"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3721 | if test "${ac_cv_path_mkdir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3722 | $as_echo_n "(cached) " >&6 | 
|  | 3723 | else | 
|  | 3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3725 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 3726 | do | 
|  | 3727 | IFS=$as_save_IFS | 
|  | 3728 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3729 | for ac_prog in mkdir gmkdir; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3730 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3731 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | 
|  | 3732 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 3733 | 'mkdir (GNU coreutils) '* | \ | 
|  | 3734 | 'mkdir (coreutils) '* | \ | 
|  | 3735 | 'mkdir (fileutils) '4.1*) | 
|  | 3736 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 3737 | break 3;; | 
|  | 3738 | esac | 
|  | 3739 | done | 
|  | 3740 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3741 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3742 | IFS=$as_save_IFS | 
|  | 3743 |  | 
|  | 3744 | fi | 
|  | 3745 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3746 | test -d ./--version && rmdir ./--version | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3747 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 3748 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 3749 | else | 
|  | 3750 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 3751 | # value for MKDIR_P within a source directory, because that will | 
|  | 3752 | # break other packages using the cache if that directory is | 
|  | 3753 | # removed, or if the value is a relative name. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3754 | MKDIR_P="$ac_install_sh -d" | 
|  | 3755 | fi | 
|  | 3756 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3758 | $as_echo "$MKDIR_P" >&6; } | 
|  | 3759 |  | 
|  | 3760 | mkdir_p="$MKDIR_P" | 
|  | 3761 | case $mkdir_p in | 
|  | 3762 | [\\/$]* | ?:[\\/]*) ;; | 
|  | 3763 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | 
|  | 3764 | esac | 
|  | 3765 |  | 
|  | 3766 | for ac_prog in gawk mawk nawk awk | 
|  | 3767 | do | 
|  | 3768 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3769 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3771 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3772 | if test "${ac_cv_prog_AWK+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3773 | $as_echo_n "(cached) " >&6 | 
|  | 3774 | else | 
|  | 3775 | if test -n "$AWK"; then | 
|  | 3776 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | 
|  | 3777 | else | 
|  | 3778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3779 | for as_dir in $PATH | 
|  | 3780 | do | 
|  | 3781 | IFS=$as_save_IFS | 
|  | 3782 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3783 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3785 | ac_cv_prog_AWK="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3786 | $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] | 3787 | break 2 | 
|  | 3788 | fi | 
|  | 3789 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3790 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3791 | IFS=$as_save_IFS | 
|  | 3792 |  | 
|  | 3793 | fi | 
|  | 3794 | fi | 
|  | 3795 | AWK=$ac_cv_prog_AWK | 
|  | 3796 | if test -n "$AWK"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3798 | $as_echo "$AWK" >&6; } | 
|  | 3799 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3801 | $as_echo "no" >&6; } | 
|  | 3802 | fi | 
|  | 3803 |  | 
|  | 3804 |  | 
|  | 3805 | test -n "$AWK" && break | 
|  | 3806 | done | 
|  | 3807 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3809 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
|  | 3810 | set x ${MAKE-make} | 
|  | 3811 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3812 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3813 | $as_echo_n "(cached) " >&6 | 
|  | 3814 | else | 
|  | 3815 | cat >conftest.make <<\_ACEOF | 
|  | 3816 | SHELL = /bin/sh | 
|  | 3817 | all: | 
|  | 3818 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 
|  | 3819 | _ACEOF | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3820 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3821 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
|  | 3822 | *@@@%%%=?*=@@@%%%*) | 
|  | 3823 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 
|  | 3824 | *) | 
|  | 3825 | eval ac_cv_prog_make_${ac_make}_set=no;; | 
|  | 3826 | esac | 
|  | 3827 | rm -f conftest.make | 
|  | 3828 | fi | 
|  | 3829 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3831 | $as_echo "yes" >&6; } | 
|  | 3832 | SET_MAKE= | 
|  | 3833 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3835 | $as_echo "no" >&6; } | 
|  | 3836 | SET_MAKE="MAKE=${MAKE-make}" | 
|  | 3837 | fi | 
|  | 3838 |  | 
|  | 3839 | rm -rf .tst 2>/dev/null | 
|  | 3840 | mkdir .tst 2>/dev/null | 
|  | 3841 | if test -d .tst; then | 
|  | 3842 | am__leading_dot=. | 
|  | 3843 | else | 
|  | 3844 | am__leading_dot=_ | 
|  | 3845 | fi | 
|  | 3846 | rmdir .tst 2>/dev/null | 
|  | 3847 |  | 
|  | 3848 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | 
|  | 3849 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | 
|  | 3850 | # is not polluted with repeated "-I." | 
|  | 3851 | am__isrc=' -I$(srcdir)' | 
|  | 3852 | # test to see if srcdir already configured | 
|  | 3853 | if test -f $srcdir/config.status; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3854 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3855 | fi | 
|  | 3856 | fi | 
|  | 3857 |  | 
|  | 3858 | # test whether we have cygpath | 
|  | 3859 | if test -z "$CYGPATH_W"; then | 
|  | 3860 | if (cygpath --version) >/dev/null 2>/dev/null; then | 
|  | 3861 | CYGPATH_W='cygpath -w' | 
|  | 3862 | else | 
|  | 3863 | CYGPATH_W=echo | 
|  | 3864 | fi | 
|  | 3865 | fi | 
|  | 3866 |  | 
|  | 3867 |  | 
|  | 3868 | # Define the identity of the package. | 
|  | 3869 | PACKAGE=$PACKAGE_NAME | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3870 | VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3871 |  | 
|  | 3872 |  | 
|  | 3873 | # Some tools Automake needs. | 
|  | 3874 |  | 
|  | 3875 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | 
|  | 3876 |  | 
|  | 3877 |  | 
|  | 3878 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
|  | 3879 |  | 
|  | 3880 |  | 
|  | 3881 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | 
|  | 3882 |  | 
|  | 3883 |  | 
|  | 3884 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
|  | 3885 |  | 
|  | 3886 |  | 
|  | 3887 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | 
|  | 3888 |  | 
|  | 3889 | # We need awk for the "check" target.  The system "awk" is bad on | 
|  | 3890 | # some platforms. | 
|  | 3891 | # Always define AMTAR for backward compatibility. | 
|  | 3892 |  | 
|  | 3893 | AMTAR=${AMTAR-"${am_missing_run}tar"} | 
|  | 3894 |  | 
|  | 3895 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | 
|  | 3896 |  | 
|  | 3897 |  | 
|  | 3898 |  | 
|  | 3899 |  | 
|  | 3900 |  | 
|  | 3901 |  | 
|  | 3902 | # Enable support for silent build rules | 
|  | 3903 | # Check whether --enable-silent-rules was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3904 | if test "${enable_silent_rules+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3905 | enableval=$enable_silent_rules; | 
|  | 3906 | fi | 
|  | 3907 |  | 
|  | 3908 | case $enable_silent_rules in | 
|  | 3909 | yes) AM_DEFAULT_VERBOSITY=0;; | 
|  | 3910 | no)  AM_DEFAULT_VERBOSITY=1;; | 
|  | 3911 | *)   AM_DEFAULT_VERBOSITY=0;; | 
|  | 3912 | esac | 
|  | 3913 | AM_BACKSLASH='\' | 
|  | 3914 |  | 
|  | 3915 |  | 
|  | 3916 | MAGICK_LIB_VERSION="0x" | 
|  | 3917 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then | 
|  | 3918 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3919 | fi | 
|  | 3920 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} | 
|  | 3921 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then | 
|  | 3922 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3923 | fi | 
|  | 3924 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} | 
|  | 3925 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then | 
|  | 3926 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3927 | fi | 
|  | 3928 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} | 
|  | 3929 |  | 
|  | 3930 |  | 
|  | 3931 | # Definition used to define MagickLibVersionText in version.h | 
|  | 3932 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" | 
|  | 3933 |  | 
|  | 3934 |  | 
|  | 3935 | # Definition used to define MagickLibVersionNumber in version.h | 
|  | 3936 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" | 
|  | 3937 |  | 
|  | 3938 |  | 
|  | 3939 | # Regenerate config.status if ChangeLog or version.sh is updated. | 
|  | 3940 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' | 
|  | 3941 |  | 
|  | 3942 |  | 
|  | 3943 | PERLMAINCC=$CC | 
|  | 3944 |  | 
|  | 3945 | MAGICK_CFLAGS='' | 
|  | 3946 | MAGICK_CPPFLAGS=$CPPFLAGS_USER | 
|  | 3947 | MAGICK_PCFLAGS=$CPPFLAGS_USER | 
|  | 3948 | MAGICK_LDFLAGS='' | 
|  | 3949 | MAGICK_LIBS='' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 3950 | MAGICK_FEATURES='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3951 |  | 
|  | 3952 | # | 
|  | 3953 | # Evaluate shell variable equivalents to Makefile directory variables | 
|  | 3954 | # | 
|  | 3955 | if test "x$prefix" = xNONE; then | 
|  | 3956 | prefix=$ac_default_prefix | 
|  | 3957 | fi | 
|  | 3958 | # Let make expand exec_prefix. | 
|  | 3959 | if test "x$exec_prefix" = xNONE; then | 
|  | 3960 | exec_prefix='${prefix}' | 
|  | 3961 | fi | 
|  | 3962 |  | 
|  | 3963 | # | 
|  | 3964 | eval "eval PREFIX_DIR=${prefix}" | 
|  | 3965 |  | 
|  | 3966 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" | 
|  | 3967 |  | 
|  | 3968 | eval "eval BIN_DIR=$bindir" | 
|  | 3969 |  | 
|  | 3970 | eval "eval SBIN_DIR=$sbindir" | 
|  | 3971 |  | 
|  | 3972 | eval "eval LIBEXEC_DIR=$libexecdir" | 
|  | 3973 |  | 
|  | 3974 | eval "eval DATA_DIR=$datadir" | 
|  | 3975 |  | 
|  | 3976 | eval "eval SYSCONF_DIR=$sysconfdir" | 
|  | 3977 |  | 
|  | 3978 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" | 
|  | 3979 |  | 
|  | 3980 | eval "eval LOCALSTATE_DIR=$localstatedir" | 
|  | 3981 |  | 
|  | 3982 | eval "eval LIB_DIR=$libdir" | 
|  | 3983 |  | 
|  | 3984 | eval "eval INCLUDE_DIR=$includedir" | 
|  | 3985 |  | 
|  | 3986 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" | 
|  | 3987 |  | 
|  | 3988 | eval "eval INFO_DIR=$infodir" | 
|  | 3989 |  | 
|  | 3990 | eval "eval MAN_DIR=$mandir" | 
|  | 3991 |  | 
|  | 3992 |  | 
|  | 3993 | # Get full paths to source and build directories | 
|  | 3994 | srcdirfull="`cd $srcdir && pwd`" | 
|  | 3995 | builddir="`pwd`" | 
|  | 3996 |  | 
|  | 3997 | # | 
|  | 3998 | # Compute variables useful for running uninstalled software. | 
|  | 3999 | # | 
|  | 4000 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" | 
|  | 4001 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" | 
|  | 4002 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" | 
|  | 4003 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" | 
|  | 4004 | DIRSEP=':' | 
|  | 4005 | case "${build_os}" in | 
|  | 4006 | mingw* ) | 
|  | 4007 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` | 
|  | 4008 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` | 
|  | 4009 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` | 
|  | 4010 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` | 
|  | 4011 | DIRSEP=';' | 
|  | 4012 | ;; | 
|  | 4013 | esac | 
|  | 4014 | case "${host_os}" in | 
|  | 4015 | mingw* ) | 
|  | 4016 | DIRSEP=';' | 
|  | 4017 | ;; | 
|  | 4018 | esac | 
|  | 4019 |  | 
|  | 4020 |  | 
|  | 4021 |  | 
|  | 4022 |  | 
|  | 4023 |  | 
|  | 4024 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4025 |  | 
|  | 4026 | # | 
|  | 4027 | # Enable OS features. | 
|  | 4028 | # | 
|  | 4029 | DEPDIR="${am__leading_dot}deps" | 
|  | 4030 |  | 
|  | 4031 | ac_config_commands="$ac_config_commands depfiles" | 
|  | 4032 |  | 
|  | 4033 |  | 
|  | 4034 | am_make=${MAKE-make} | 
|  | 4035 | cat > confinc << 'END' | 
|  | 4036 | am__doit: | 
|  | 4037 | @echo this is the am__doit target | 
|  | 4038 | .PHONY: am__doit | 
|  | 4039 | END | 
|  | 4040 | # If we don't find an include directive, just comment out the code. | 
|  | 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | 
|  | 4042 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | 
|  | 4043 | am__include="#" | 
|  | 4044 | am__quote= | 
|  | 4045 | _am_result=none | 
|  | 4046 | # First try GNU make style include. | 
|  | 4047 | echo "include confinc" > confmf | 
|  | 4048 | # Ignore all kinds of additional output from `make'. | 
|  | 4049 | case `$am_make -s -f confmf 2> /dev/null` in #( | 
|  | 4050 | *the\ am__doit\ target*) | 
|  | 4051 | am__include=include | 
|  | 4052 | am__quote= | 
|  | 4053 | _am_result=GNU | 
|  | 4054 | ;; | 
|  | 4055 | esac | 
|  | 4056 | # Now try BSD make style include. | 
|  | 4057 | if test "$am__include" = "#"; then | 
|  | 4058 | echo '.include "confinc"' > confmf | 
|  | 4059 | case `$am_make -s -f confmf 2> /dev/null` in #( | 
|  | 4060 | *the\ am__doit\ target*) | 
|  | 4061 | am__include=.include | 
|  | 4062 | am__quote="\"" | 
|  | 4063 | _am_result=BSD | 
|  | 4064 | ;; | 
|  | 4065 | esac | 
|  | 4066 | fi | 
|  | 4067 |  | 
|  | 4068 |  | 
|  | 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | 
|  | 4070 | $as_echo "$_am_result" >&6; } | 
|  | 4071 | rm -f confinc confmf | 
|  | 4072 |  | 
|  | 4073 | # Check whether --enable-dependency-tracking was given. | 
|  | 4074 | if test "${enable_dependency_tracking+set}" = set; then : | 
|  | 4075 | enableval=$enable_dependency_tracking; | 
|  | 4076 | fi | 
|  | 4077 |  | 
|  | 4078 | if test "x$enable_dependency_tracking" != xno; then | 
|  | 4079 | am_depcomp="$ac_aux_dir/depcomp" | 
|  | 4080 | AMDEPBACKSLASH='\' | 
|  | 4081 | fi | 
|  | 4082 | if test "x$enable_dependency_tracking" != xno; then | 
|  | 4083 | AMDEP_TRUE= | 
|  | 4084 | AMDEP_FALSE='#' | 
|  | 4085 | else | 
|  | 4086 | AMDEP_TRUE='#' | 
|  | 4087 | AMDEP_FALSE= | 
|  | 4088 | fi | 
|  | 4089 |  | 
|  | 4090 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4091 | ac_ext=c | 
|  | 4092 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4096 | if test -n "$ac_tool_prefix"; then | 
|  | 4097 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 4098 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4100 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4101 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4102 | $as_echo_n "(cached) " >&6 | 
|  | 4103 | else | 
|  | 4104 | if test -n "$CC"; then | 
|  | 4105 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4106 | else | 
|  | 4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4108 | for as_dir in $PATH | 
|  | 4109 | do | 
|  | 4110 | IFS=$as_save_IFS | 
|  | 4111 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4112 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4114 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4115 | $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] | 4116 | break 2 | 
|  | 4117 | fi | 
|  | 4118 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4119 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4120 | IFS=$as_save_IFS | 
|  | 4121 |  | 
|  | 4122 | fi | 
|  | 4123 | fi | 
|  | 4124 | CC=$ac_cv_prog_CC | 
|  | 4125 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4127 | $as_echo "$CC" >&6; } | 
|  | 4128 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4130 | $as_echo "no" >&6; } | 
|  | 4131 | fi | 
|  | 4132 |  | 
|  | 4133 |  | 
|  | 4134 | fi | 
|  | 4135 | if test -z "$ac_cv_prog_CC"; then | 
|  | 4136 | ac_ct_CC=$CC | 
|  | 4137 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 4138 | set dummy gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4140 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4141 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4142 | $as_echo_n "(cached) " >&6 | 
|  | 4143 | else | 
|  | 4144 | if test -n "$ac_ct_CC"; then | 
|  | 4145 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 4146 | else | 
|  | 4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4148 | for as_dir in $PATH | 
|  | 4149 | do | 
|  | 4150 | IFS=$as_save_IFS | 
|  | 4151 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4152 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4154 | ac_cv_prog_ac_ct_CC="gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4155 | $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] | 4156 | break 2 | 
|  | 4157 | fi | 
|  | 4158 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4159 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4160 | IFS=$as_save_IFS | 
|  | 4161 |  | 
|  | 4162 | fi | 
|  | 4163 | fi | 
|  | 4164 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 4165 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4167 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 4168 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4170 | $as_echo "no" >&6; } | 
|  | 4171 | fi | 
|  | 4172 |  | 
|  | 4173 | if test "x$ac_ct_CC" = x; then | 
|  | 4174 | CC="" | 
|  | 4175 | else | 
|  | 4176 | case $cross_compiling:$ac_tool_warned in | 
|  | 4177 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4178 | { $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] | 4179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4180 | ac_tool_warned=yes ;; | 
|  | 4181 | esac | 
|  | 4182 | CC=$ac_ct_CC | 
|  | 4183 | fi | 
|  | 4184 | else | 
|  | 4185 | CC="$ac_cv_prog_CC" | 
|  | 4186 | fi | 
|  | 4187 |  | 
|  | 4188 | if test -z "$CC"; then | 
|  | 4189 | if test -n "$ac_tool_prefix"; then | 
|  | 4190 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 4191 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4193 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4194 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4195 | $as_echo_n "(cached) " >&6 | 
|  | 4196 | else | 
|  | 4197 | if test -n "$CC"; then | 
|  | 4198 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4199 | else | 
|  | 4200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4201 | for as_dir in $PATH | 
|  | 4202 | do | 
|  | 4203 | IFS=$as_save_IFS | 
|  | 4204 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4205 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4207 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4208 | $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] | 4209 | break 2 | 
|  | 4210 | fi | 
|  | 4211 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4212 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4213 | IFS=$as_save_IFS | 
|  | 4214 |  | 
|  | 4215 | fi | 
|  | 4216 | fi | 
|  | 4217 | CC=$ac_cv_prog_CC | 
|  | 4218 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4220 | $as_echo "$CC" >&6; } | 
|  | 4221 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4223 | $as_echo "no" >&6; } | 
|  | 4224 | fi | 
|  | 4225 |  | 
|  | 4226 |  | 
|  | 4227 | fi | 
|  | 4228 | fi | 
|  | 4229 | if test -z "$CC"; then | 
|  | 4230 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 4231 | set dummy cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4233 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4234 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4235 | $as_echo_n "(cached) " >&6 | 
|  | 4236 | else | 
|  | 4237 | if test -n "$CC"; then | 
|  | 4238 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4239 | else | 
|  | 4240 | ac_prog_rejected=no | 
|  | 4241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4242 | for as_dir in $PATH | 
|  | 4243 | do | 
|  | 4244 | IFS=$as_save_IFS | 
|  | 4245 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4246 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4248 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 4249 | ac_prog_rejected=yes | 
|  | 4250 | continue | 
|  | 4251 | fi | 
|  | 4252 | ac_cv_prog_CC="cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4253 | $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] | 4254 | break 2 | 
|  | 4255 | fi | 
|  | 4256 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4257 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4258 | IFS=$as_save_IFS | 
|  | 4259 |  | 
|  | 4260 | if test $ac_prog_rejected = yes; then | 
|  | 4261 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4262 | set dummy $ac_cv_prog_CC | 
|  | 4263 | shift | 
|  | 4264 | if test $# != 0; then | 
|  | 4265 | # We chose a different compiler from the bogus one. | 
|  | 4266 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4267 | # first if we set CC to just the basename; use the full file name. | 
|  | 4268 | shift | 
|  | 4269 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 4270 | fi | 
|  | 4271 | fi | 
|  | 4272 | fi | 
|  | 4273 | fi | 
|  | 4274 | CC=$ac_cv_prog_CC | 
|  | 4275 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4277 | $as_echo "$CC" >&6; } | 
|  | 4278 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4280 | $as_echo "no" >&6; } | 
|  | 4281 | fi | 
|  | 4282 |  | 
|  | 4283 |  | 
|  | 4284 | fi | 
|  | 4285 | if test -z "$CC"; then | 
|  | 4286 | if test -n "$ac_tool_prefix"; then | 
|  | 4287 | for ac_prog in cl.exe | 
|  | 4288 | do | 
|  | 4289 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 4290 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4292 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4293 | if test "${ac_cv_prog_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4294 | $as_echo_n "(cached) " >&6 | 
|  | 4295 | else | 
|  | 4296 | if test -n "$CC"; then | 
|  | 4297 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4298 | else | 
|  | 4299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4300 | for as_dir in $PATH | 
|  | 4301 | do | 
|  | 4302 | IFS=$as_save_IFS | 
|  | 4303 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4304 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4306 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4307 | $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] | 4308 | break 2 | 
|  | 4309 | fi | 
|  | 4310 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4311 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4312 | IFS=$as_save_IFS | 
|  | 4313 |  | 
|  | 4314 | fi | 
|  | 4315 | fi | 
|  | 4316 | CC=$ac_cv_prog_CC | 
|  | 4317 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4319 | $as_echo "$CC" >&6; } | 
|  | 4320 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4322 | $as_echo "no" >&6; } | 
|  | 4323 | fi | 
|  | 4324 |  | 
|  | 4325 |  | 
|  | 4326 | test -n "$CC" && break | 
|  | 4327 | done | 
|  | 4328 | fi | 
|  | 4329 | if test -z "$CC"; then | 
|  | 4330 | ac_ct_CC=$CC | 
|  | 4331 | for ac_prog in cl.exe | 
|  | 4332 | do | 
|  | 4333 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4334 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4336 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4337 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4338 | $as_echo_n "(cached) " >&6 | 
|  | 4339 | else | 
|  | 4340 | if test -n "$ac_ct_CC"; then | 
|  | 4341 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 4342 | else | 
|  | 4343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4344 | for as_dir in $PATH | 
|  | 4345 | do | 
|  | 4346 | IFS=$as_save_IFS | 
|  | 4347 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4348 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4350 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4351 | $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] | 4352 | break 2 | 
|  | 4353 | fi | 
|  | 4354 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4355 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4356 | IFS=$as_save_IFS | 
|  | 4357 |  | 
|  | 4358 | fi | 
|  | 4359 | fi | 
|  | 4360 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 4361 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4363 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 4364 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4366 | $as_echo "no" >&6; } | 
|  | 4367 | fi | 
|  | 4368 |  | 
|  | 4369 |  | 
|  | 4370 | test -n "$ac_ct_CC" && break | 
|  | 4371 | done | 
|  | 4372 |  | 
|  | 4373 | if test "x$ac_ct_CC" = x; then | 
|  | 4374 | CC="" | 
|  | 4375 | else | 
|  | 4376 | case $cross_compiling:$ac_tool_warned in | 
|  | 4377 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4378 | { $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] | 4379 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4380 | ac_tool_warned=yes ;; | 
|  | 4381 | esac | 
|  | 4382 | CC=$ac_ct_CC | 
|  | 4383 | fi | 
|  | 4384 | fi | 
|  | 4385 |  | 
|  | 4386 | fi | 
|  | 4387 |  | 
|  | 4388 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4389 | 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] | 4390 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4391 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
|  | 4392 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4393 |  | 
|  | 4394 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4395 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4396 | set X $ac_compile | 
|  | 4397 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4398 | for ac_option in --version -v -V -qversion; do | 
|  | 4399 | { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4400 | case "(($ac_try" in | 
|  | 4401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4402 | *) ac_try_echo=$ac_try;; | 
|  | 4403 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4404 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4405 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4406 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4407 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4408 | if test -s conftest.err; then | 
|  | 4409 | sed '10a\ | 
|  | 4410 | ... rest of stderr output deleted ... | 
|  | 4411 | 10q' conftest.err >conftest.er1 | 
|  | 4412 | cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4413 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4414 | rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4416 | test $ac_status = 0; } | 
|  | 4417 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4418 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4420 | /* end confdefs.h.  */ | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4421 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4422 | int | 
|  | 4423 | main () | 
|  | 4424 | { | 
|  | 4425 |  | 
|  | 4426 | ; | 
|  | 4427 | return 0; | 
|  | 4428 | } | 
|  | 4429 | _ACEOF | 
|  | 4430 | ac_clean_files_save=$ac_clean_files | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4431 | 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] | 4432 | # Try to create an executable without -o first, disregard a.out. | 
|  | 4433 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 4434 | # of exeext. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 4436 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4437 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 4438 |  | 
|  | 4439 | # The possible output files: | 
|  | 4440 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 4441 |  | 
|  | 4442 | ac_rmfiles= | 
|  | 4443 | for ac_file in $ac_files | 
|  | 4444 | do | 
|  | 4445 | case $ac_file in | 
|  | 4446 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
|  | 4447 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 4448 | esac | 
|  | 4449 | done | 
|  | 4450 | rm -f $ac_rmfiles | 
|  | 4451 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4452 | if { { ac_try="$ac_link_default" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4453 | case "(($ac_try" in | 
|  | 4454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4455 | *) ac_try_echo=$ac_try;; | 
|  | 4456 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4458 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4459 | (eval "$ac_link_default") 2>&5 | 
|  | 4460 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4462 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4463 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 4464 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 4465 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 4466 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 4467 | # Autoconf. | 
|  | 4468 | for ac_file in $ac_files '' | 
|  | 4469 | do | 
|  | 4470 | test -f "$ac_file" || continue | 
|  | 4471 | case $ac_file in | 
|  | 4472 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
|  | 4473 | ;; | 
|  | 4474 | [ab].out ) | 
|  | 4475 | # We found the default executable, but exeext='' is most | 
|  | 4476 | # certainly right. | 
|  | 4477 | break;; | 
|  | 4478 | *.* ) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4479 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4480 | then :; else | 
|  | 4481 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4482 | fi | 
|  | 4483 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 4484 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 4485 | # argument, so we may need to know it at that point already. | 
|  | 4486 | # Even if this section looks crufty: it has the advantage of | 
|  | 4487 | # actually working. | 
|  | 4488 | break;; | 
|  | 4489 | * ) | 
|  | 4490 | break;; | 
|  | 4491 | esac | 
|  | 4492 | done | 
|  | 4493 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 4494 |  | 
|  | 4495 | else | 
|  | 4496 | ac_file='' | 
|  | 4497 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4498 | if test -z "$ac_file"; then : | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4500 | $as_echo "no" >&6; } | 
|  | 4501 | $as_echo "$as_me: failed program was:" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4502 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4503 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4506 | as_fn_error 77 "C compiler cannot create executables | 
|  | 4507 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4508 | else | 
|  | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4510 | $as_echo "yes" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4511 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4513 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4515 | $as_echo "$ac_file" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4516 | ac_exeext=$ac_cv_exeext | 
|  | 4517 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4518 | 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] | 4519 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4521 | $as_echo_n "checking for suffix of executables... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4522 | if { { ac_try="$ac_link" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4523 | case "(($ac_try" in | 
|  | 4524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4525 | *) ac_try_echo=$ac_try;; | 
|  | 4526 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4528 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4529 | (eval "$ac_link") 2>&5 | 
|  | 4530 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4532 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4533 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4534 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4535 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4536 | # `rm'. | 
|  | 4537 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4538 | test -f "$ac_file" || continue | 
|  | 4539 | case $ac_file in | 
|  | 4540 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
|  | 4541 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4542 | break;; | 
|  | 4543 | * ) break;; | 
|  | 4544 | esac | 
|  | 4545 | done | 
|  | 4546 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4549 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
|  | 4550 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4551 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4552 | rm -f conftest conftest$ac_cv_exeext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4554 | $as_echo "$ac_cv_exeext" >&6; } | 
|  | 4555 |  | 
|  | 4556 | rm -f conftest.$ac_ext | 
|  | 4557 | EXEEXT=$ac_cv_exeext | 
|  | 4558 | ac_exeext=$EXEEXT | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4560 | /* end confdefs.h.  */ | 
|  | 4561 | #include <stdio.h> | 
|  | 4562 | int | 
|  | 4563 | main () | 
|  | 4564 | { | 
|  | 4565 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4566 | return ferror (f) || fclose (f) != 0; | 
|  | 4567 |  | 
|  | 4568 | ; | 
|  | 4569 | return 0; | 
|  | 4570 | } | 
|  | 4571 | _ACEOF | 
|  | 4572 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4573 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4574 | # the compiler is broken, or we cross compile. | 
|  | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4576 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4577 | if test "$cross_compiling" != yes; then | 
|  | 4578 | { { ac_try="$ac_link" | 
|  | 4579 | case "(($ac_try" in | 
|  | 4580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4581 | *) ac_try_echo=$ac_try;; | 
|  | 4582 | esac | 
|  | 4583 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4584 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4585 | (eval "$ac_link") 2>&5 | 
|  | 4586 | ac_status=$? | 
|  | 4587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4588 | test $ac_status = 0; } | 
|  | 4589 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4590 | { { case "(($ac_try" in | 
|  | 4591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4592 | *) ac_try_echo=$ac_try;; | 
|  | 4593 | esac | 
|  | 4594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4595 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4596 | (eval "$ac_try") 2>&5 | 
|  | 4597 | ac_status=$? | 
|  | 4598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4599 | test $ac_status = 0; }; }; then | 
|  | 4600 | cross_compiling=no | 
|  | 4601 | else | 
|  | 4602 | if test "$cross_compiling" = maybe; then | 
|  | 4603 | cross_compiling=yes | 
|  | 4604 | else | 
|  | 4605 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4607 | as_fn_error $? "cannot run C compiled programs. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4608 | If you meant to cross compile, use \`--host'. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4609 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4610 | fi | 
|  | 4611 | fi | 
|  | 4612 | fi | 
|  | 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4614 | $as_echo "$cross_compiling" >&6; } | 
|  | 4615 |  | 
|  | 4616 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4617 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4618 | { $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] | 4619 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4620 | if test "${ac_cv_objext+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4621 | $as_echo_n "(cached) " >&6 | 
|  | 4622 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4624 | /* end confdefs.h.  */ | 
|  | 4625 |  | 
|  | 4626 | int | 
|  | 4627 | main () | 
|  | 4628 | { | 
|  | 4629 |  | 
|  | 4630 | ; | 
|  | 4631 | return 0; | 
|  | 4632 | } | 
|  | 4633 | _ACEOF | 
|  | 4634 | rm -f conftest.o conftest.obj | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4635 | if { { ac_try="$ac_compile" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4636 | case "(($ac_try" in | 
|  | 4637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4638 | *) ac_try_echo=$ac_try;; | 
|  | 4639 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4641 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4642 | (eval "$ac_compile") 2>&5 | 
|  | 4643 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4645 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4646 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4647 | test -f "$ac_file" || continue; | 
|  | 4648 | case $ac_file in | 
|  | 4649 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
|  | 4650 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4651 | break;; | 
|  | 4652 | esac | 
|  | 4653 | done | 
|  | 4654 | else | 
|  | 4655 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 4656 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4657 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4658 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4659 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 4660 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
|  | 4661 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4662 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4663 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 4664 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4666 | $as_echo "$ac_cv_objext" >&6; } | 
|  | 4667 | OBJEXT=$ac_cv_objext | 
|  | 4668 | ac_objext=$OBJEXT | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4669 | { $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] | 4670 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4671 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4672 | $as_echo_n "(cached) " >&6 | 
|  | 4673 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4675 | /* end confdefs.h.  */ | 
|  | 4676 |  | 
|  | 4677 | int | 
|  | 4678 | main () | 
|  | 4679 | { | 
|  | 4680 | #ifndef __GNUC__ | 
|  | 4681 | choke me | 
|  | 4682 | #endif | 
|  | 4683 |  | 
|  | 4684 | ; | 
|  | 4685 | return 0; | 
|  | 4686 | } | 
|  | 4687 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4688 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4689 | ac_compiler_gnu=yes | 
|  | 4690 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4691 | ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4692 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4694 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4695 |  | 
|  | 4696 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4697 | { $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] | 4698 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4699 | if test $ac_compiler_gnu = yes; then | 
|  | 4700 | GCC=yes | 
|  | 4701 | else | 
|  | 4702 | GCC= | 
|  | 4703 | fi | 
|  | 4704 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4705 | ac_save_CFLAGS=$CFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4707 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4708 | if test "${ac_cv_prog_cc_g+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4709 | $as_echo_n "(cached) " >&6 | 
|  | 4710 | else | 
|  | 4711 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4712 | ac_c_werror_flag=yes | 
|  | 4713 | ac_cv_prog_cc_g=no | 
|  | 4714 | CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4716 | /* end confdefs.h.  */ | 
|  | 4717 |  | 
|  | 4718 | int | 
|  | 4719 | main () | 
|  | 4720 | { | 
|  | 4721 |  | 
|  | 4722 | ; | 
|  | 4723 | return 0; | 
|  | 4724 | } | 
|  | 4725 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4726 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4727 | ac_cv_prog_cc_g=yes | 
|  | 4728 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4729 | CFLAGS="" | 
|  | 4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4731 | /* end confdefs.h.  */ | 
|  | 4732 |  | 
|  | 4733 | int | 
|  | 4734 | main () | 
|  | 4735 | { | 
|  | 4736 |  | 
|  | 4737 | ; | 
|  | 4738 | return 0; | 
|  | 4739 | } | 
|  | 4740 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4741 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4742 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4743 | else | 
|  | 4744 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4745 | CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4747 | /* end confdefs.h.  */ | 
|  | 4748 |  | 
|  | 4749 | int | 
|  | 4750 | main () | 
|  | 4751 | { | 
|  | 4752 |  | 
|  | 4753 | ; | 
|  | 4754 | return 0; | 
|  | 4755 | } | 
|  | 4756 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4757 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4758 | ac_cv_prog_cc_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4759 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4761 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4763 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4765 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4766 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4767 | { $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] | 4768 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
|  | 4769 | if test "$ac_test_CFLAGS" = set; then | 
|  | 4770 | CFLAGS=$ac_save_CFLAGS | 
|  | 4771 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4772 | if test "$GCC" = yes; then | 
|  | 4773 | CFLAGS="-g -O2" | 
|  | 4774 | else | 
|  | 4775 | CFLAGS="-g" | 
|  | 4776 | fi | 
|  | 4777 | else | 
|  | 4778 | if test "$GCC" = yes; then | 
|  | 4779 | CFLAGS="-O2" | 
|  | 4780 | else | 
|  | 4781 | CFLAGS= | 
|  | 4782 | fi | 
|  | 4783 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4784 | { $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] | 4785 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4786 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4787 | $as_echo_n "(cached) " >&6 | 
|  | 4788 | else | 
|  | 4789 | ac_cv_prog_cc_c89=no | 
|  | 4790 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4792 | /* end confdefs.h.  */ | 
|  | 4793 | #include <stdarg.h> | 
|  | 4794 | #include <stdio.h> | 
|  | 4795 | #include <sys/types.h> | 
|  | 4796 | #include <sys/stat.h> | 
|  | 4797 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4798 | struct buf { int x; }; | 
|  | 4799 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4800 | static char *e (p, i) | 
|  | 4801 | char **p; | 
|  | 4802 | int i; | 
|  | 4803 | { | 
|  | 4804 | return p[i]; | 
|  | 4805 | } | 
|  | 4806 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4807 | { | 
|  | 4808 | char *s; | 
|  | 4809 | va_list v; | 
|  | 4810 | va_start (v,p); | 
|  | 4811 | s = g (p, va_arg (v,int)); | 
|  | 4812 | va_end (v); | 
|  | 4813 | return s; | 
|  | 4814 | } | 
|  | 4815 |  | 
|  | 4816 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4817 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4818 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 4819 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 4820 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4821 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 4822 | that's true only with -std.  */ | 
|  | 4823 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4824 |  | 
|  | 4825 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4826 | inside strings and character constants.  */ | 
|  | 4827 | #define FOO(x) 'x' | 
|  | 4828 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4829 |  | 
|  | 4830 | int test (int i, double x); | 
|  | 4831 | struct s1 {int (*f) (int a);}; | 
|  | 4832 | struct s2 {int (*f) (double a);}; | 
|  | 4833 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4834 | int argc; | 
|  | 4835 | char **argv; | 
|  | 4836 | int | 
|  | 4837 | main () | 
|  | 4838 | { | 
|  | 4839 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4840 | ; | 
|  | 4841 | return 0; | 
|  | 4842 | } | 
|  | 4843 | _ACEOF | 
|  | 4844 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4845 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 4846 | do | 
|  | 4847 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4848 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4849 | ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4850 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4851 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4852 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 4853 | done | 
|  | 4854 | rm -f conftest.$ac_ext | 
|  | 4855 | CC=$ac_save_CC | 
|  | 4856 |  | 
|  | 4857 | fi | 
|  | 4858 | # AC_CACHE_VAL | 
|  | 4859 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4860 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4862 | $as_echo "none needed" >&6; } ;; | 
|  | 4863 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4865 | $as_echo "unsupported" >&6; } ;; | 
|  | 4866 | *) | 
|  | 4867 | CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4868 | { $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] | 4869 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 4870 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4871 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4872 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4873 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4874 |  | 
|  | 4875 | ac_ext=c | 
|  | 4876 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4877 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4878 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4879 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4880 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4881 | depcc="$CC"   am_compiler_list= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4882 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 4884 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
|  | 4885 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | 
|  | 4886 | $as_echo_n "(cached) " >&6 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4887 | else | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4888 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 4889 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 4890 | # making bogus files that we don't know about and never remove.  For | 
|  | 4891 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 4892 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 4893 | # in D'. | 
|  | 4894 | mkdir conftest.dir | 
|  | 4895 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 4896 | # using a relative directory. | 
|  | 4897 | cp "$am_depcomp" conftest.dir | 
|  | 4898 | cd conftest.dir | 
|  | 4899 | # We will build objects and dependencies in a subdirectory because | 
|  | 4900 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 4901 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 4902 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 4903 | # the current directory while Tru64 will put them in the object | 
|  | 4904 | # directory. | 
|  | 4905 | mkdir sub | 
|  | 4906 |  | 
|  | 4907 | am_cv_CC_dependencies_compiler_type=none | 
|  | 4908 | if test "$am_compiler_list" = ""; then | 
|  | 4909 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 4910 | fi | 
|  | 4911 | am__universal=false | 
|  | 4912 | case " $depcc " in #( | 
|  | 4913 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 4914 | esac | 
|  | 4915 |  | 
|  | 4916 | for depmode in $am_compiler_list; do | 
|  | 4917 | # Setup a source with many dependencies, because some compilers | 
|  | 4918 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 4919 | # we should not choose a depcomp mode which is confused by this. | 
|  | 4920 | # | 
|  | 4921 | # We need to recreate these files for each test, as the compiler may | 
|  | 4922 | # overwrite some of them when testing with obscure command lines. | 
|  | 4923 | # This happens at least with the AIX C compiler. | 
|  | 4924 | : > sub/conftest.c | 
|  | 4925 | for i in 1 2 3 4 5 6; do | 
|  | 4926 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 4927 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 4928 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 4929 | touch sub/conftst$i.h | 
|  | 4930 | done | 
|  | 4931 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 4932 |  | 
|  | 4933 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 4934 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 4935 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 4936 | # versions had trouble with output in subdirs | 
|  | 4937 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 4938 | am__minus_obj="-o $am__obj" | 
|  | 4939 | case $depmode in | 
|  | 4940 | gcc) | 
|  | 4941 | # This depmode causes a compiler race in universal mode. | 
|  | 4942 | test "$am__universal" = false || continue | 
|  | 4943 | ;; | 
|  | 4944 | nosideeffect) | 
|  | 4945 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 4946 | # only be used when explicitly requested | 
|  | 4947 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 4948 | continue | 
|  | 4949 | else | 
|  | 4950 | break | 
|  | 4951 | fi | 
|  | 4952 | ;; | 
|  | 4953 | msvisualcpp | msvcmsys) | 
|  | 4954 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 4955 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 4956 | # so weak that their functioning should not be impacted. | 
|  | 4957 | am__obj=conftest.${OBJEXT-o} | 
|  | 4958 | am__minus_obj= | 
|  | 4959 | ;; | 
|  | 4960 | none) break ;; | 
|  | 4961 | esac | 
|  | 4962 | if depmode=$depmode \ | 
|  | 4963 | source=sub/conftest.c object=$am__obj \ | 
|  | 4964 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 4965 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 4966 | >/dev/null 2>conftest.err && | 
|  | 4967 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 4968 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 4969 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 4970 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 4971 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 4972 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 4973 | # that says an option was ignored or not supported. | 
|  | 4974 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 4975 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 4976 | # The diagnosis changed in icc 8.0: | 
|  | 4977 | #   icc: Command line remark: option '-MP' not supported | 
|  | 4978 | if (grep 'ignoring option' conftest.err || | 
|  | 4979 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 4980 | am_cv_CC_dependencies_compiler_type=$depmode | 
|  | 4981 | break | 
|  | 4982 | fi | 
|  | 4983 | fi | 
|  | 4984 | done | 
|  | 4985 |  | 
|  | 4986 | cd .. | 
|  | 4987 | rm -rf conftest.dir | 
|  | 4988 | else | 
|  | 4989 | am_cv_CC_dependencies_compiler_type=none | 
|  | 4990 | fi | 
|  | 4991 |  | 
|  | 4992 | fi | 
|  | 4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
|  | 4994 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
|  | 4995 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
|  | 4996 |  | 
|  | 4997 | if | 
|  | 4998 | test "x$enable_dependency_tracking" != xno \ | 
|  | 4999 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
|  | 5000 | am__fastdepCC_TRUE= | 
|  | 5001 | am__fastdepCC_FALSE='#' | 
|  | 5002 | else | 
|  | 5003 | am__fastdepCC_TRUE='#' | 
|  | 5004 | am__fastdepCC_FALSE= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5005 | fi | 
|  | 5006 |  | 
|  | 5007 |  | 
|  | 5008 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5009 | ac_ext=c | 
|  | 5010 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 5015 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 5016 | # On Suns, sometimes $CPP names a directory. | 
|  | 5017 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 5018 | CPP= | 
|  | 5019 | fi | 
|  | 5020 | if test -z "$CPP"; then | 
|  | 5021 | if test "${ac_cv_prog_CPP+set}" = set; then : | 
|  | 5022 | $as_echo_n "(cached) " >&6 | 
|  | 5023 | else | 
|  | 5024 | # Double quotes because CPP needs to be expanded | 
|  | 5025 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 5026 | do | 
|  | 5027 | ac_preproc_ok=false | 
|  | 5028 | for ac_c_preproc_warn_flag in '' yes | 
|  | 5029 | do | 
|  | 5030 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5031 | # with a fresh cross-compiler works. | 
|  | 5032 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5033 | # <limits.h> exists even on freestanding compilers. | 
|  | 5034 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5035 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5037 | /* end confdefs.h.  */ | 
|  | 5038 | #ifdef __STDC__ | 
|  | 5039 | # include <limits.h> | 
|  | 5040 | #else | 
|  | 5041 | # include <assert.h> | 
|  | 5042 | #endif | 
|  | 5043 | Syntax error | 
|  | 5044 | _ACEOF | 
|  | 5045 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5046 |  | 
|  | 5047 | else | 
|  | 5048 | # Broken: fails on valid input. | 
|  | 5049 | continue | 
|  | 5050 | fi | 
|  | 5051 | rm -f conftest.err conftest.$ac_ext | 
|  | 5052 |  | 
|  | 5053 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 5054 | # can be detected and how. | 
|  | 5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5056 | /* end confdefs.h.  */ | 
|  | 5057 | #include <ac_nonexistent.h> | 
|  | 5058 | _ACEOF | 
|  | 5059 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5060 | # Broken: success on invalid input. | 
|  | 5061 | continue | 
|  | 5062 | else | 
|  | 5063 | # Passes both tests. | 
|  | 5064 | ac_preproc_ok=: | 
|  | 5065 | break | 
|  | 5066 | fi | 
|  | 5067 | rm -f conftest.err conftest.$ac_ext | 
|  | 5068 |  | 
|  | 5069 | done | 
|  | 5070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 5071 | rm -f conftest.err conftest.$ac_ext | 
|  | 5072 | if $ac_preproc_ok; then : | 
|  | 5073 | break | 
|  | 5074 | fi | 
|  | 5075 |  | 
|  | 5076 | done | 
|  | 5077 | ac_cv_prog_CPP=$CPP | 
|  | 5078 |  | 
|  | 5079 | fi | 
|  | 5080 | CPP=$ac_cv_prog_CPP | 
|  | 5081 | else | 
|  | 5082 | ac_cv_prog_CPP=$CPP | 
|  | 5083 | fi | 
|  | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 5085 | $as_echo "$CPP" >&6; } | 
|  | 5086 | ac_preproc_ok=false | 
|  | 5087 | for ac_c_preproc_warn_flag in '' yes | 
|  | 5088 | do | 
|  | 5089 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5090 | # with a fresh cross-compiler works. | 
|  | 5091 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5092 | # <limits.h> exists even on freestanding compilers. | 
|  | 5093 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5094 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5096 | /* end confdefs.h.  */ | 
|  | 5097 | #ifdef __STDC__ | 
|  | 5098 | # include <limits.h> | 
|  | 5099 | #else | 
|  | 5100 | # include <assert.h> | 
|  | 5101 | #endif | 
|  | 5102 | Syntax error | 
|  | 5103 | _ACEOF | 
|  | 5104 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5105 |  | 
|  | 5106 | else | 
|  | 5107 | # Broken: fails on valid input. | 
|  | 5108 | continue | 
|  | 5109 | fi | 
|  | 5110 | rm -f conftest.err conftest.$ac_ext | 
|  | 5111 |  | 
|  | 5112 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 5113 | # can be detected and how. | 
|  | 5114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5115 | /* end confdefs.h.  */ | 
|  | 5116 | #include <ac_nonexistent.h> | 
|  | 5117 | _ACEOF | 
|  | 5118 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5119 | # Broken: success on invalid input. | 
|  | 5120 | continue | 
|  | 5121 | else | 
|  | 5122 | # Passes both tests. | 
|  | 5123 | ac_preproc_ok=: | 
|  | 5124 | break | 
|  | 5125 | fi | 
|  | 5126 | rm -f conftest.err conftest.$ac_ext | 
|  | 5127 |  | 
|  | 5128 | done | 
|  | 5129 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 5130 | rm -f conftest.err conftest.$ac_ext | 
|  | 5131 | if $ac_preproc_ok; then : | 
|  | 5132 |  | 
|  | 5133 | else | 
|  | 5134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 5135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 5136 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 5137 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5138 | fi | 
|  | 5139 |  | 
|  | 5140 | ac_ext=c | 
|  | 5141 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5145 |  | 
|  | 5146 |  | 
|  | 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 5148 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
|  | 5149 | if test "${ac_cv_path_GREP+set}" = set; then : | 
|  | 5150 | $as_echo_n "(cached) " >&6 | 
|  | 5151 | else | 
|  | 5152 | if test -z "$GREP"; then | 
|  | 5153 | ac_path_GREP_found=false | 
|  | 5154 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5156 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5157 | do | 
|  | 5158 | IFS=$as_save_IFS | 
|  | 5159 | test -z "$as_dir" && as_dir=. | 
|  | 5160 | for ac_prog in grep ggrep; do | 
|  | 5161 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5162 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 5163 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
|  | 5164 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 5165 | # Check for GNU $ac_path_GREP | 
|  | 5166 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 5167 | *GNU*) | 
|  | 5168 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 5169 | *) | 
|  | 5170 | ac_count=0 | 
|  | 5171 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 5172 | while : | 
|  | 5173 | do | 
|  | 5174 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5175 | mv "conftest.tmp" "conftest.in" | 
|  | 5176 | cp "conftest.in" "conftest.nl" | 
|  | 5177 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 5178 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5179 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 5180 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 5181 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 5182 | # Best one so far, save it but keep looking for a better one | 
|  | 5183 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 5184 | ac_path_GREP_max=$ac_count | 
|  | 5185 | fi | 
|  | 5186 | # 10*(2^10) chars as input seems more than enough | 
|  | 5187 | test $ac_count -gt 10 && break | 
|  | 5188 | done | 
|  | 5189 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5190 | esac | 
|  | 5191 |  | 
|  | 5192 | $ac_path_GREP_found && break 3 | 
|  | 5193 | done | 
|  | 5194 | done | 
|  | 5195 | done | 
|  | 5196 | IFS=$as_save_IFS | 
|  | 5197 | if test -z "$ac_cv_path_GREP"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 5198 | 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] | 5199 | fi | 
|  | 5200 | else | 
|  | 5201 | ac_cv_path_GREP=$GREP | 
|  | 5202 | fi | 
|  | 5203 |  | 
|  | 5204 | fi | 
|  | 5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 5206 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 5207 | GREP="$ac_cv_path_GREP" | 
|  | 5208 |  | 
|  | 5209 |  | 
|  | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5211 | $as_echo_n "checking for egrep... " >&6; } | 
|  | 5212 | if test "${ac_cv_path_EGREP+set}" = set; then : | 
|  | 5213 | $as_echo_n "(cached) " >&6 | 
|  | 5214 | else | 
|  | 5215 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5216 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5217 | else | 
|  | 5218 | if test -z "$EGREP"; then | 
|  | 5219 | ac_path_EGREP_found=false | 
|  | 5220 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5222 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5223 | do | 
|  | 5224 | IFS=$as_save_IFS | 
|  | 5225 | test -z "$as_dir" && as_dir=. | 
|  | 5226 | for ac_prog in egrep; do | 
|  | 5227 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5228 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 5229 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
|  | 5230 | # Check for GNU ac_path_EGREP and select it if it is found. | 
|  | 5231 | # Check for GNU $ac_path_EGREP | 
|  | 5232 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5233 | *GNU*) | 
|  | 5234 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5235 | *) | 
|  | 5236 | ac_count=0 | 
|  | 5237 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 5238 | while : | 
|  | 5239 | do | 
|  | 5240 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5241 | mv "conftest.tmp" "conftest.in" | 
|  | 5242 | cp "conftest.in" "conftest.nl" | 
|  | 5243 | $as_echo 'EGREP' >> "conftest.nl" | 
|  | 5244 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5245 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 5246 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 5247 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5248 | # Best one so far, save it but keep looking for a better one | 
|  | 5249 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5250 | ac_path_EGREP_max=$ac_count | 
|  | 5251 | fi | 
|  | 5252 | # 10*(2^10) chars as input seems more than enough | 
|  | 5253 | test $ac_count -gt 10 && break | 
|  | 5254 | done | 
|  | 5255 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5256 | esac | 
|  | 5257 |  | 
|  | 5258 | $ac_path_EGREP_found && break 3 | 
|  | 5259 | done | 
|  | 5260 | done | 
|  | 5261 | done | 
|  | 5262 | IFS=$as_save_IFS | 
|  | 5263 | if test -z "$ac_cv_path_EGREP"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 5264 | 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] | 5265 | fi | 
|  | 5266 | else | 
|  | 5267 | ac_cv_path_EGREP=$EGREP | 
|  | 5268 | fi | 
|  | 5269 |  | 
|  | 5270 | fi | 
|  | 5271 | fi | 
|  | 5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5273 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
|  | 5274 | EGREP="$ac_cv_path_EGREP" | 
|  | 5275 |  | 
|  | 5276 |  | 
|  | 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5278 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
|  | 5279 | if test "${ac_cv_header_stdc+set}" = set; then : | 
|  | 5280 | $as_echo_n "(cached) " >&6 | 
|  | 5281 | else | 
|  | 5282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5283 | /* end confdefs.h.  */ | 
|  | 5284 | #include <stdlib.h> | 
|  | 5285 | #include <stdarg.h> | 
|  | 5286 | #include <string.h> | 
|  | 5287 | #include <float.h> | 
|  | 5288 |  | 
|  | 5289 | int | 
|  | 5290 | main () | 
|  | 5291 | { | 
|  | 5292 |  | 
|  | 5293 | ; | 
|  | 5294 | return 0; | 
|  | 5295 | } | 
|  | 5296 | _ACEOF | 
|  | 5297 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5298 | ac_cv_header_stdc=yes | 
|  | 5299 | else | 
|  | 5300 | ac_cv_header_stdc=no | 
|  | 5301 | fi | 
|  | 5302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5303 |  | 
|  | 5304 | if test $ac_cv_header_stdc = yes; then | 
|  | 5305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5307 | /* end confdefs.h.  */ | 
|  | 5308 | #include <string.h> | 
|  | 5309 |  | 
|  | 5310 | _ACEOF | 
|  | 5311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5312 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 5313 |  | 
|  | 5314 | else | 
|  | 5315 | ac_cv_header_stdc=no | 
|  | 5316 | fi | 
|  | 5317 | rm -f conftest* | 
|  | 5318 |  | 
|  | 5319 | fi | 
|  | 5320 |  | 
|  | 5321 | if test $ac_cv_header_stdc = yes; then | 
|  | 5322 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5324 | /* end confdefs.h.  */ | 
|  | 5325 | #include <stdlib.h> | 
|  | 5326 |  | 
|  | 5327 | _ACEOF | 
|  | 5328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5329 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5330 |  | 
|  | 5331 | else | 
|  | 5332 | ac_cv_header_stdc=no | 
|  | 5333 | fi | 
|  | 5334 | rm -f conftest* | 
|  | 5335 |  | 
|  | 5336 | fi | 
|  | 5337 |  | 
|  | 5338 | if test $ac_cv_header_stdc = yes; then | 
|  | 5339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5340 | if test "$cross_compiling" = yes; then : | 
|  | 5341 | : | 
|  | 5342 | else | 
|  | 5343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5344 | /* end confdefs.h.  */ | 
|  | 5345 | #include <ctype.h> | 
|  | 5346 | #include <stdlib.h> | 
|  | 5347 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5350 | #else | 
|  | 5351 | # define ISLOWER(c) \ | 
|  | 5352 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5353 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5354 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5356 | #endif | 
|  | 5357 |  | 
|  | 5358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5359 | int | 
|  | 5360 | main () | 
|  | 5361 | { | 
|  | 5362 | int i; | 
|  | 5363 | for (i = 0; i < 256; i++) | 
|  | 5364 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5365 | || toupper (i) != TOUPPER (i)) | 
|  | 5366 | return 2; | 
|  | 5367 | return 0; | 
|  | 5368 | } | 
|  | 5369 | _ACEOF | 
|  | 5370 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5371 |  | 
|  | 5372 | else | 
|  | 5373 | ac_cv_header_stdc=no | 
|  | 5374 | fi | 
|  | 5375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5376 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5377 | fi | 
|  | 5378 |  | 
|  | 5379 | fi | 
|  | 5380 | fi | 
|  | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5382 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5383 | if test $ac_cv_header_stdc = yes; then | 
|  | 5384 |  | 
|  | 5385 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5386 |  | 
|  | 5387 | fi | 
|  | 5388 |  | 
|  | 5389 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5390 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5391 | inttypes.h stdint.h unistd.h | 
|  | 5392 | do : | 
|  | 5393 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5394 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5395 | " | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 5396 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5397 | cat >>confdefs.h <<_ACEOF | 
|  | 5398 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5399 | _ACEOF | 
|  | 5400 |  | 
|  | 5401 | fi | 
|  | 5402 |  | 
|  | 5403 | done | 
|  | 5404 |  | 
|  | 5405 |  | 
|  | 5406 |  | 
|  | 5407 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
|  | 5408 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | 
|  | 5409 | MINIX=yes | 
|  | 5410 | else | 
|  | 5411 | MINIX= | 
|  | 5412 | fi | 
|  | 5413 |  | 
|  | 5414 |  | 
|  | 5415 | if test "$MINIX" = yes; then | 
|  | 5416 |  | 
|  | 5417 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5418 |  | 
|  | 5419 |  | 
|  | 5420 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5421 |  | 
|  | 5422 |  | 
|  | 5423 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5424 |  | 
|  | 5425 | fi | 
|  | 5426 |  | 
|  | 5427 |  | 
|  | 5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5429 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
|  | 5430 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | 
|  | 5431 | $as_echo_n "(cached) " >&6 | 
|  | 5432 | else | 
|  | 5433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5434 | /* end confdefs.h.  */ | 
|  | 5435 |  | 
|  | 5436 | #	  define __EXTENSIONS__ 1 | 
|  | 5437 | $ac_includes_default | 
|  | 5438 | int | 
|  | 5439 | main () | 
|  | 5440 | { | 
|  | 5441 |  | 
|  | 5442 | ; | 
|  | 5443 | return 0; | 
|  | 5444 | } | 
|  | 5445 | _ACEOF | 
|  | 5446 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5447 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5448 | else | 
|  | 5449 | ac_cv_safe_to_define___extensions__=no | 
|  | 5450 | fi | 
|  | 5451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5452 | fi | 
|  | 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5454 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5455 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5456 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5457 |  | 
|  | 5458 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5459 |  | 
|  | 5460 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5461 |  | 
|  | 5462 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5463 |  | 
|  | 5464 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5465 |  | 
|  | 5466 |  | 
|  | 5467 |  | 
|  | 5468 | # Check for programs | 
|  | 5469 | ac_ext=c | 
|  | 5470 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5474 | if test -n "$ac_tool_prefix"; then | 
|  | 5475 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 5476 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
|  | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5478 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5479 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 5480 | $as_echo_n "(cached) " >&6 | 
|  | 5481 | else | 
|  | 5482 | if test -n "$CC"; then | 
|  | 5483 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5484 | else | 
|  | 5485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5486 | for as_dir in $PATH | 
|  | 5487 | do | 
|  | 5488 | IFS=$as_save_IFS | 
|  | 5489 | test -z "$as_dir" && as_dir=. | 
|  | 5490 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5492 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
|  | 5493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5494 | break 2 | 
|  | 5495 | fi | 
|  | 5496 | done | 
|  | 5497 | done | 
|  | 5498 | IFS=$as_save_IFS | 
|  | 5499 |  | 
|  | 5500 | fi | 
|  | 5501 | fi | 
|  | 5502 | CC=$ac_cv_prog_CC | 
|  | 5503 | if test -n "$CC"; then | 
|  | 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5505 | $as_echo "$CC" >&6; } | 
|  | 5506 | else | 
|  | 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5508 | $as_echo "no" >&6; } | 
|  | 5509 | fi | 
|  | 5510 |  | 
|  | 5511 |  | 
|  | 5512 | fi | 
|  | 5513 | if test -z "$ac_cv_prog_CC"; then | 
|  | 5514 | ac_ct_CC=$CC | 
|  | 5515 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 5516 | set dummy gcc; ac_word=$2 | 
|  | 5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5518 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5519 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
|  | 5520 | $as_echo_n "(cached) " >&6 | 
|  | 5521 | else | 
|  | 5522 | if test -n "$ac_ct_CC"; then | 
|  | 5523 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 5524 | else | 
|  | 5525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5526 | for as_dir in $PATH | 
|  | 5527 | do | 
|  | 5528 | IFS=$as_save_IFS | 
|  | 5529 | test -z "$as_dir" && as_dir=. | 
|  | 5530 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5532 | ac_cv_prog_ac_ct_CC="gcc" | 
|  | 5533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5534 | break 2 | 
|  | 5535 | fi | 
|  | 5536 | done | 
|  | 5537 | done | 
|  | 5538 | IFS=$as_save_IFS | 
|  | 5539 |  | 
|  | 5540 | fi | 
|  | 5541 | fi | 
|  | 5542 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 5543 | if test -n "$ac_ct_CC"; then | 
|  | 5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 5545 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 5546 | else | 
|  | 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5548 | $as_echo "no" >&6; } | 
|  | 5549 | fi | 
|  | 5550 |  | 
|  | 5551 | if test "x$ac_ct_CC" = x; then | 
|  | 5552 | CC="" | 
|  | 5553 | else | 
|  | 5554 | case $cross_compiling:$ac_tool_warned in | 
|  | 5555 | yes:) | 
|  | 5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5557 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5558 | ac_tool_warned=yes ;; | 
|  | 5559 | esac | 
|  | 5560 | CC=$ac_ct_CC | 
|  | 5561 | fi | 
|  | 5562 | else | 
|  | 5563 | CC="$ac_cv_prog_CC" | 
|  | 5564 | fi | 
|  | 5565 |  | 
|  | 5566 | if test -z "$CC"; then | 
|  | 5567 | if test -n "$ac_tool_prefix"; then | 
|  | 5568 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 5569 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
|  | 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5571 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5572 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 5573 | $as_echo_n "(cached) " >&6 | 
|  | 5574 | else | 
|  | 5575 | if test -n "$CC"; then | 
|  | 5576 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5577 | else | 
|  | 5578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5579 | for as_dir in $PATH | 
|  | 5580 | do | 
|  | 5581 | IFS=$as_save_IFS | 
|  | 5582 | test -z "$as_dir" && as_dir=. | 
|  | 5583 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5585 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
|  | 5586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5587 | break 2 | 
|  | 5588 | fi | 
|  | 5589 | done | 
|  | 5590 | done | 
|  | 5591 | IFS=$as_save_IFS | 
|  | 5592 |  | 
|  | 5593 | fi | 
|  | 5594 | fi | 
|  | 5595 | CC=$ac_cv_prog_CC | 
|  | 5596 | if test -n "$CC"; then | 
|  | 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5598 | $as_echo "$CC" >&6; } | 
|  | 5599 | else | 
|  | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5601 | $as_echo "no" >&6; } | 
|  | 5602 | fi | 
|  | 5603 |  | 
|  | 5604 |  | 
|  | 5605 | fi | 
|  | 5606 | fi | 
|  | 5607 | if test -z "$CC"; then | 
|  | 5608 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 5609 | set dummy cc; ac_word=$2 | 
|  | 5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5611 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5612 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 5613 | $as_echo_n "(cached) " >&6 | 
|  | 5614 | else | 
|  | 5615 | if test -n "$CC"; then | 
|  | 5616 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5617 | else | 
|  | 5618 | ac_prog_rejected=no | 
|  | 5619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5620 | for as_dir in $PATH | 
|  | 5621 | do | 
|  | 5622 | IFS=$as_save_IFS | 
|  | 5623 | test -z "$as_dir" && as_dir=. | 
|  | 5624 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5626 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 5627 | ac_prog_rejected=yes | 
|  | 5628 | continue | 
|  | 5629 | fi | 
|  | 5630 | ac_cv_prog_CC="cc" | 
|  | 5631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5632 | break 2 | 
|  | 5633 | fi | 
|  | 5634 | done | 
|  | 5635 | done | 
|  | 5636 | IFS=$as_save_IFS | 
|  | 5637 |  | 
|  | 5638 | if test $ac_prog_rejected = yes; then | 
|  | 5639 | # We found a bogon in the path, so make sure we never use it. | 
|  | 5640 | set dummy $ac_cv_prog_CC | 
|  | 5641 | shift | 
|  | 5642 | if test $# != 0; then | 
|  | 5643 | # We chose a different compiler from the bogus one. | 
|  | 5644 | # However, it has the same basename, so the bogon will be chosen | 
|  | 5645 | # first if we set CC to just the basename; use the full file name. | 
|  | 5646 | shift | 
|  | 5647 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 5648 | fi | 
|  | 5649 | fi | 
|  | 5650 | fi | 
|  | 5651 | fi | 
|  | 5652 | CC=$ac_cv_prog_CC | 
|  | 5653 | if test -n "$CC"; then | 
|  | 5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5655 | $as_echo "$CC" >&6; } | 
|  | 5656 | else | 
|  | 5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5658 | $as_echo "no" >&6; } | 
|  | 5659 | fi | 
|  | 5660 |  | 
|  | 5661 |  | 
|  | 5662 | fi | 
|  | 5663 | if test -z "$CC"; then | 
|  | 5664 | if test -n "$ac_tool_prefix"; then | 
|  | 5665 | for ac_prog in cl.exe | 
|  | 5666 | do | 
|  | 5667 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5668 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5670 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5671 | if test "${ac_cv_prog_CC+set}" = set; then : | 
|  | 5672 | $as_echo_n "(cached) " >&6 | 
|  | 5673 | else | 
|  | 5674 | if test -n "$CC"; then | 
|  | 5675 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5676 | else | 
|  | 5677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5678 | for as_dir in $PATH | 
|  | 5679 | do | 
|  | 5680 | IFS=$as_save_IFS | 
|  | 5681 | test -z "$as_dir" && as_dir=. | 
|  | 5682 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5684 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
|  | 5685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5686 | break 2 | 
|  | 5687 | fi | 
|  | 5688 | done | 
|  | 5689 | done | 
|  | 5690 | IFS=$as_save_IFS | 
|  | 5691 |  | 
|  | 5692 | fi | 
|  | 5693 | fi | 
|  | 5694 | CC=$ac_cv_prog_CC | 
|  | 5695 | if test -n "$CC"; then | 
|  | 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5697 | $as_echo "$CC" >&6; } | 
|  | 5698 | else | 
|  | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5700 | $as_echo "no" >&6; } | 
|  | 5701 | fi | 
|  | 5702 |  | 
|  | 5703 |  | 
|  | 5704 | test -n "$CC" && break | 
|  | 5705 | done | 
|  | 5706 | fi | 
|  | 5707 | if test -z "$CC"; then | 
|  | 5708 | ac_ct_CC=$CC | 
|  | 5709 | for ac_prog in cl.exe | 
|  | 5710 | do | 
|  | 5711 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5712 | set dummy $ac_prog; ac_word=$2 | 
|  | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5714 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 5715 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | 
|  | 5716 | $as_echo_n "(cached) " >&6 | 
|  | 5717 | else | 
|  | 5718 | if test -n "$ac_ct_CC"; then | 
|  | 5719 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 5720 | else | 
|  | 5721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5722 | for as_dir in $PATH | 
|  | 5723 | do | 
|  | 5724 | IFS=$as_save_IFS | 
|  | 5725 | test -z "$as_dir" && as_dir=. | 
|  | 5726 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5728 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
|  | 5729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5730 | break 2 | 
|  | 5731 | fi | 
|  | 5732 | done | 
|  | 5733 | done | 
|  | 5734 | IFS=$as_save_IFS | 
|  | 5735 |  | 
|  | 5736 | fi | 
|  | 5737 | fi | 
|  | 5738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 5739 | if test -n "$ac_ct_CC"; then | 
|  | 5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 5741 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 5742 | else | 
|  | 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5744 | $as_echo "no" >&6; } | 
|  | 5745 | fi | 
|  | 5746 |  | 
|  | 5747 |  | 
|  | 5748 | test -n "$ac_ct_CC" && break | 
|  | 5749 | done | 
|  | 5750 |  | 
|  | 5751 | if test "x$ac_ct_CC" = x; then | 
|  | 5752 | CC="" | 
|  | 5753 | else | 
|  | 5754 | case $cross_compiling:$ac_tool_warned in | 
|  | 5755 | yes:) | 
|  | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5758 | ac_tool_warned=yes ;; | 
|  | 5759 | esac | 
|  | 5760 | CC=$ac_ct_CC | 
|  | 5761 | fi | 
|  | 5762 | fi | 
|  | 5763 |  | 
|  | 5764 | fi | 
|  | 5765 |  | 
|  | 5766 |  | 
|  | 5767 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 5768 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 5769 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
|  | 5770 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5771 |  | 
|  | 5772 | # Provide some information about the compiler. | 
|  | 5773 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 5774 | set X $ac_compile | 
|  | 5775 | ac_compiler=$2 | 
|  | 5776 | for ac_option in --version -v -V -qversion; do | 
|  | 5777 | { { ac_try="$ac_compiler $ac_option >&5" | 
|  | 5778 | case "(($ac_try" in | 
|  | 5779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 5780 | *) ac_try_echo=$ac_try;; | 
|  | 5781 | esac | 
|  | 5782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 5783 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 5784 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
|  | 5785 | ac_status=$? | 
|  | 5786 | if test -s conftest.err; then | 
|  | 5787 | sed '10a\ | 
|  | 5788 | ... rest of stderr output deleted ... | 
|  | 5789 | 10q' conftest.err >conftest.er1 | 
|  | 5790 | cat conftest.er1 >&5 | 
|  | 5791 | fi | 
|  | 5792 | rm -f conftest.er1 conftest.err | 
|  | 5793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 5794 | test $ac_status = 0; } | 
|  | 5795 | done | 
|  | 5796 |  | 
|  | 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 5798 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
|  | 5799 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | 
|  | 5800 | $as_echo_n "(cached) " >&6 | 
|  | 5801 | else | 
|  | 5802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5803 | /* end confdefs.h.  */ | 
|  | 5804 |  | 
|  | 5805 | int | 
|  | 5806 | main () | 
|  | 5807 | { | 
|  | 5808 | #ifndef __GNUC__ | 
|  | 5809 | choke me | 
|  | 5810 | #endif | 
|  | 5811 |  | 
|  | 5812 | ; | 
|  | 5813 | return 0; | 
|  | 5814 | } | 
|  | 5815 | _ACEOF | 
|  | 5816 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5817 | ac_compiler_gnu=yes | 
|  | 5818 | else | 
|  | 5819 | ac_compiler_gnu=no | 
|  | 5820 | fi | 
|  | 5821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5822 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 5823 |  | 
|  | 5824 | fi | 
|  | 5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 5826 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 5827 | if test $ac_compiler_gnu = yes; then | 
|  | 5828 | GCC=yes | 
|  | 5829 | else | 
|  | 5830 | GCC= | 
|  | 5831 | fi | 
|  | 5832 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 5833 | ac_save_CFLAGS=$CFLAGS | 
|  | 5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 5835 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
|  | 5836 | if test "${ac_cv_prog_cc_g+set}" = set; then : | 
|  | 5837 | $as_echo_n "(cached) " >&6 | 
|  | 5838 | else | 
|  | 5839 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 5840 | ac_c_werror_flag=yes | 
|  | 5841 | ac_cv_prog_cc_g=no | 
|  | 5842 | CFLAGS="-g" | 
|  | 5843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5844 | /* end confdefs.h.  */ | 
|  | 5845 |  | 
|  | 5846 | int | 
|  | 5847 | main () | 
|  | 5848 | { | 
|  | 5849 |  | 
|  | 5850 | ; | 
|  | 5851 | return 0; | 
|  | 5852 | } | 
|  | 5853 | _ACEOF | 
|  | 5854 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5855 | ac_cv_prog_cc_g=yes | 
|  | 5856 | else | 
|  | 5857 | CFLAGS="" | 
|  | 5858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5859 | /* end confdefs.h.  */ | 
|  | 5860 |  | 
|  | 5861 | int | 
|  | 5862 | main () | 
|  | 5863 | { | 
|  | 5864 |  | 
|  | 5865 | ; | 
|  | 5866 | return 0; | 
|  | 5867 | } | 
|  | 5868 | _ACEOF | 
|  | 5869 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5870 |  | 
|  | 5871 | else | 
|  | 5872 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 5873 | CFLAGS="-g" | 
|  | 5874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5875 | /* end confdefs.h.  */ | 
|  | 5876 |  | 
|  | 5877 | int | 
|  | 5878 | main () | 
|  | 5879 | { | 
|  | 5880 |  | 
|  | 5881 | ; | 
|  | 5882 | return 0; | 
|  | 5883 | } | 
|  | 5884 | _ACEOF | 
|  | 5885 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5886 | ac_cv_prog_cc_g=yes | 
|  | 5887 | fi | 
|  | 5888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5889 | fi | 
|  | 5890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5891 | fi | 
|  | 5892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5893 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 5894 | fi | 
|  | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 5896 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
|  | 5897 | if test "$ac_test_CFLAGS" = set; then | 
|  | 5898 | CFLAGS=$ac_save_CFLAGS | 
|  | 5899 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 5900 | if test "$GCC" = yes; then | 
|  | 5901 | CFLAGS="-g -O2" | 
|  | 5902 | else | 
|  | 5903 | CFLAGS="-g" | 
|  | 5904 | fi | 
|  | 5905 | else | 
|  | 5906 | if test "$GCC" = yes; then | 
|  | 5907 | CFLAGS="-O2" | 
|  | 5908 | else | 
|  | 5909 | CFLAGS= | 
|  | 5910 | fi | 
|  | 5911 | fi | 
|  | 5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 5913 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
|  | 5914 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
|  | 5915 | $as_echo_n "(cached) " >&6 | 
|  | 5916 | else | 
|  | 5917 | ac_cv_prog_cc_c89=no | 
|  | 5918 | ac_save_CC=$CC | 
|  | 5919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5920 | /* end confdefs.h.  */ | 
|  | 5921 | #include <stdarg.h> | 
|  | 5922 | #include <stdio.h> | 
|  | 5923 | #include <sys/types.h> | 
|  | 5924 | #include <sys/stat.h> | 
|  | 5925 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 5926 | struct buf { int x; }; | 
|  | 5927 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 5928 | static char *e (p, i) | 
|  | 5929 | char **p; | 
|  | 5930 | int i; | 
|  | 5931 | { | 
|  | 5932 | return p[i]; | 
|  | 5933 | } | 
|  | 5934 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 5935 | { | 
|  | 5936 | char *s; | 
|  | 5937 | va_list v; | 
|  | 5938 | va_start (v,p); | 
|  | 5939 | s = g (p, va_arg (v,int)); | 
|  | 5940 | va_end (v); | 
|  | 5941 | return s; | 
|  | 5942 | } | 
|  | 5943 |  | 
|  | 5944 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 5945 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 5946 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 5947 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 5948 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 5949 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 5950 | that's true only with -std.  */ | 
|  | 5951 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 5952 |  | 
|  | 5953 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 5954 | inside strings and character constants.  */ | 
|  | 5955 | #define FOO(x) 'x' | 
|  | 5956 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 5957 |  | 
|  | 5958 | int test (int i, double x); | 
|  | 5959 | struct s1 {int (*f) (int a);}; | 
|  | 5960 | struct s2 {int (*f) (double a);}; | 
|  | 5961 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 5962 | int argc; | 
|  | 5963 | char **argv; | 
|  | 5964 | int | 
|  | 5965 | main () | 
|  | 5966 | { | 
|  | 5967 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 5968 | ; | 
|  | 5969 | return 0; | 
|  | 5970 | } | 
|  | 5971 | _ACEOF | 
|  | 5972 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 5973 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 5974 | do | 
|  | 5975 | CC="$ac_save_CC $ac_arg" | 
|  | 5976 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5977 | ac_cv_prog_cc_c89=$ac_arg | 
|  | 5978 | fi | 
|  | 5979 | rm -f core conftest.err conftest.$ac_objext | 
|  | 5980 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 5981 | done | 
|  | 5982 | rm -f conftest.$ac_ext | 
|  | 5983 | CC=$ac_save_CC | 
|  | 5984 |  | 
|  | 5985 | fi | 
|  | 5986 | # AC_CACHE_VAL | 
|  | 5987 | case "x$ac_cv_prog_cc_c89" in | 
|  | 5988 | x) | 
|  | 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 5990 | $as_echo "none needed" >&6; } ;; | 
|  | 5991 | xno) | 
|  | 5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 5993 | $as_echo "unsupported" >&6; } ;; | 
|  | 5994 | *) | 
|  | 5995 | CC="$CC $ac_cv_prog_cc_c89" | 
|  | 5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 5997 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 5998 | esac | 
|  | 5999 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
|  | 6000 |  | 
|  | 6001 | fi | 
|  | 6002 |  | 
|  | 6003 | ac_ext=c | 
|  | 6004 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6008 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6009 | depcc="$CC"   am_compiler_list= | 
|  | 6010 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6012 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6013 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6014 | $as_echo_n "(cached) " >&6 | 
|  | 6015 | else | 
|  | 6016 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 6017 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 6018 | # making bogus files that we don't know about and never remove.  For | 
|  | 6019 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 6020 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 6021 | # in D'. | 
|  | 6022 | mkdir conftest.dir | 
|  | 6023 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 6024 | # using a relative directory. | 
|  | 6025 | cp "$am_depcomp" conftest.dir | 
|  | 6026 | cd conftest.dir | 
|  | 6027 | # We will build objects and dependencies in a subdirectory because | 
|  | 6028 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 6029 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 6030 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 6031 | # the current directory while Tru64 will put them in the object | 
|  | 6032 | # directory. | 
|  | 6033 | mkdir sub | 
|  | 6034 |  | 
|  | 6035 | am_cv_CC_dependencies_compiler_type=none | 
|  | 6036 | if test "$am_compiler_list" = ""; then | 
|  | 6037 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 6038 | fi | 
|  | 6039 | am__universal=false | 
|  | 6040 | case " $depcc " in #( | 
|  | 6041 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 6042 | esac | 
|  | 6043 |  | 
|  | 6044 | for depmode in $am_compiler_list; do | 
|  | 6045 | # Setup a source with many dependencies, because some compilers | 
|  | 6046 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 6047 | # we should not choose a depcomp mode which is confused by this. | 
|  | 6048 | # | 
|  | 6049 | # We need to recreate these files for each test, as the compiler may | 
|  | 6050 | # overwrite some of them when testing with obscure command lines. | 
|  | 6051 | # This happens at least with the AIX C compiler. | 
|  | 6052 | : > sub/conftest.c | 
|  | 6053 | for i in 1 2 3 4 5 6; do | 
|  | 6054 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 6055 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 6056 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 6057 | touch sub/conftst$i.h | 
|  | 6058 | done | 
|  | 6059 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 6060 |  | 
|  | 6061 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 6062 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 6063 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 6064 | # versions had trouble with output in subdirs | 
|  | 6065 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 6066 | am__minus_obj="-o $am__obj" | 
|  | 6067 | case $depmode in | 
|  | 6068 | gcc) | 
|  | 6069 | # This depmode causes a compiler race in universal mode. | 
|  | 6070 | test "$am__universal" = false || continue | 
|  | 6071 | ;; | 
|  | 6072 | nosideeffect) | 
|  | 6073 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 6074 | # only be used when explicitly requested | 
|  | 6075 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 6076 | continue | 
|  | 6077 | else | 
|  | 6078 | break | 
|  | 6079 | fi | 
|  | 6080 | ;; | 
|  | 6081 | msvisualcpp | msvcmsys) | 
|  | 6082 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 6083 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 6084 | # so weak that their functioning should not be impacted. | 
|  | 6085 | am__obj=conftest.${OBJEXT-o} | 
|  | 6086 | am__minus_obj= | 
|  | 6087 | ;; | 
|  | 6088 | none) break ;; | 
|  | 6089 | esac | 
|  | 6090 | if depmode=$depmode \ | 
|  | 6091 | source=sub/conftest.c object=$am__obj \ | 
|  | 6092 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 6093 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 6094 | >/dev/null 2>conftest.err && | 
|  | 6095 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6096 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6097 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6098 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 6099 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 6100 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 6101 | # that says an option was ignored or not supported. | 
|  | 6102 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 6103 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 6104 | # The diagnosis changed in icc 8.0: | 
|  | 6105 | #   icc: Command line remark: option '-MP' not supported | 
|  | 6106 | if (grep 'ignoring option' conftest.err || | 
|  | 6107 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 6108 | am_cv_CC_dependencies_compiler_type=$depmode | 
|  | 6109 | break | 
|  | 6110 | fi | 
|  | 6111 | fi | 
|  | 6112 | done | 
|  | 6113 |  | 
|  | 6114 | cd .. | 
|  | 6115 | rm -rf conftest.dir | 
|  | 6116 | else | 
|  | 6117 | am_cv_CC_dependencies_compiler_type=none | 
|  | 6118 | fi | 
|  | 6119 |  | 
|  | 6120 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6122 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
|  | 6123 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
|  | 6124 |  | 
|  | 6125 | if | 
|  | 6126 | test "x$enable_dependency_tracking" != xno \ | 
|  | 6127 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
|  | 6128 | am__fastdepCC_TRUE= | 
|  | 6129 | am__fastdepCC_FALSE='#' | 
|  | 6130 | else | 
|  | 6131 | am__fastdepCC_TRUE='#' | 
|  | 6132 | am__fastdepCC_FALSE= | 
|  | 6133 | fi | 
|  | 6134 |  | 
|  | 6135 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6136 | ac_ext=cpp | 
|  | 6137 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 6138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 6141 | if test -z "$CXX"; then | 
|  | 6142 | if test -n "$CCC"; then | 
|  | 6143 | CXX=$CCC | 
|  | 6144 | else | 
|  | 6145 | if test -n "$ac_tool_prefix"; then | 
|  | 6146 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 6147 | do | 
|  | 6148 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6149 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6151 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6152 | if test "${ac_cv_prog_CXX+set}" = set; then : | 
|  | 6153 | $as_echo_n "(cached) " >&6 | 
|  | 6154 | else | 
|  | 6155 | if test -n "$CXX"; then | 
|  | 6156 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 6157 | else | 
|  | 6158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6159 | for as_dir in $PATH | 
|  | 6160 | do | 
|  | 6161 | IFS=$as_save_IFS | 
|  | 6162 | test -z "$as_dir" && as_dir=. | 
|  | 6163 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6165 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 6166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6167 | break 2 | 
|  | 6168 | fi | 
|  | 6169 | done | 
|  | 6170 | done | 
|  | 6171 | IFS=$as_save_IFS | 
|  | 6172 |  | 
|  | 6173 | fi | 
|  | 6174 | fi | 
|  | 6175 | CXX=$ac_cv_prog_CXX | 
|  | 6176 | if test -n "$CXX"; then | 
|  | 6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 6178 | $as_echo "$CXX" >&6; } | 
|  | 6179 | else | 
|  | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6181 | $as_echo "no" >&6; } | 
|  | 6182 | fi | 
|  | 6183 |  | 
|  | 6184 |  | 
|  | 6185 | test -n "$CXX" && break | 
|  | 6186 | done | 
|  | 6187 | fi | 
|  | 6188 | if test -z "$CXX"; then | 
|  | 6189 | ac_ct_CXX=$CXX | 
|  | 6190 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 6191 | do | 
|  | 6192 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6193 | set dummy $ac_prog; ac_word=$2 | 
|  | 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6195 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 6196 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | 
|  | 6197 | $as_echo_n "(cached) " >&6 | 
|  | 6198 | else | 
|  | 6199 | if test -n "$ac_ct_CXX"; then | 
|  | 6200 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 6201 | else | 
|  | 6202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6203 | for as_dir in $PATH | 
|  | 6204 | do | 
|  | 6205 | IFS=$as_save_IFS | 
|  | 6206 | test -z "$as_dir" && as_dir=. | 
|  | 6207 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6209 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 6210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6211 | break 2 | 
|  | 6212 | fi | 
|  | 6213 | done | 
|  | 6214 | done | 
|  | 6215 | IFS=$as_save_IFS | 
|  | 6216 |  | 
|  | 6217 | fi | 
|  | 6218 | fi | 
|  | 6219 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 6220 | if test -n "$ac_ct_CXX"; then | 
|  | 6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 6222 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 6223 | else | 
|  | 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6225 | $as_echo "no" >&6; } | 
|  | 6226 | fi | 
|  | 6227 |  | 
|  | 6228 |  | 
|  | 6229 | test -n "$ac_ct_CXX" && break | 
|  | 6230 | done | 
|  | 6231 |  | 
|  | 6232 | if test "x$ac_ct_CXX" = x; then | 
|  | 6233 | CXX="g++" | 
|  | 6234 | else | 
|  | 6235 | case $cross_compiling:$ac_tool_warned in | 
|  | 6236 | yes:) | 
|  | 6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6239 | ac_tool_warned=yes ;; | 
|  | 6240 | esac | 
|  | 6241 | CXX=$ac_ct_CXX | 
|  | 6242 | fi | 
|  | 6243 | fi | 
|  | 6244 |  | 
|  | 6245 | fi | 
|  | 6246 | fi | 
|  | 6247 | # Provide some information about the compiler. | 
|  | 6248 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
|  | 6249 | set X $ac_compile | 
|  | 6250 | ac_compiler=$2 | 
|  | 6251 | for ac_option in --version -v -V -qversion; do | 
|  | 6252 | { { ac_try="$ac_compiler $ac_option >&5" | 
|  | 6253 | case "(($ac_try" in | 
|  | 6254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 6255 | *) ac_try_echo=$ac_try;; | 
|  | 6256 | esac | 
|  | 6257 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 6258 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 6259 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
|  | 6260 | ac_status=$? | 
|  | 6261 | if test -s conftest.err; then | 
|  | 6262 | sed '10a\ | 
|  | 6263 | ... rest of stderr output deleted ... | 
|  | 6264 | 10q' conftest.err >conftest.er1 | 
|  | 6265 | cat conftest.er1 >&5 | 
|  | 6266 | fi | 
|  | 6267 | rm -f conftest.er1 conftest.err | 
|  | 6268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 6269 | test $ac_status = 0; } | 
|  | 6270 | done | 
|  | 6271 |  | 
|  | 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 6273 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
|  | 6274 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | 
|  | 6275 | $as_echo_n "(cached) " >&6 | 
|  | 6276 | else | 
|  | 6277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6278 | /* end confdefs.h.  */ | 
|  | 6279 |  | 
|  | 6280 | int | 
|  | 6281 | main () | 
|  | 6282 | { | 
|  | 6283 | #ifndef __GNUC__ | 
|  | 6284 | choke me | 
|  | 6285 | #endif | 
|  | 6286 |  | 
|  | 6287 | ; | 
|  | 6288 | return 0; | 
|  | 6289 | } | 
|  | 6290 | _ACEOF | 
|  | 6291 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6292 | ac_compiler_gnu=yes | 
|  | 6293 | else | 
|  | 6294 | ac_compiler_gnu=no | 
|  | 6295 | fi | 
|  | 6296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6297 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 6298 |  | 
|  | 6299 | fi | 
|  | 6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 6301 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 6302 | if test $ac_compiler_gnu = yes; then | 
|  | 6303 | GXX=yes | 
|  | 6304 | else | 
|  | 6305 | GXX= | 
|  | 6306 | fi | 
|  | 6307 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 6308 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
|  | 6310 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
|  | 6311 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | 
|  | 6312 | $as_echo_n "(cached) " >&6 | 
|  | 6313 | else | 
|  | 6314 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 6315 | ac_cxx_werror_flag=yes | 
|  | 6316 | ac_cv_prog_cxx_g=no | 
|  | 6317 | CXXFLAGS="-g" | 
|  | 6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6319 | /* end confdefs.h.  */ | 
|  | 6320 |  | 
|  | 6321 | int | 
|  | 6322 | main () | 
|  | 6323 | { | 
|  | 6324 |  | 
|  | 6325 | ; | 
|  | 6326 | return 0; | 
|  | 6327 | } | 
|  | 6328 | _ACEOF | 
|  | 6329 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6330 | ac_cv_prog_cxx_g=yes | 
|  | 6331 | else | 
|  | 6332 | CXXFLAGS="" | 
|  | 6333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6334 | /* end confdefs.h.  */ | 
|  | 6335 |  | 
|  | 6336 | int | 
|  | 6337 | main () | 
|  | 6338 | { | 
|  | 6339 |  | 
|  | 6340 | ; | 
|  | 6341 | return 0; | 
|  | 6342 | } | 
|  | 6343 | _ACEOF | 
|  | 6344 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6345 |  | 
|  | 6346 | else | 
|  | 6347 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 6348 | CXXFLAGS="-g" | 
|  | 6349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6350 | /* end confdefs.h.  */ | 
|  | 6351 |  | 
|  | 6352 | int | 
|  | 6353 | main () | 
|  | 6354 | { | 
|  | 6355 |  | 
|  | 6356 | ; | 
|  | 6357 | return 0; | 
|  | 6358 | } | 
|  | 6359 | _ACEOF | 
|  | 6360 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6361 | ac_cv_prog_cxx_g=yes | 
|  | 6362 | fi | 
|  | 6363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6364 | fi | 
|  | 6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6366 | fi | 
|  | 6367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6368 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 6369 | fi | 
|  | 6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 6371 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
|  | 6372 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 6373 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 6374 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 6375 | if test "$GXX" = yes; then | 
|  | 6376 | CXXFLAGS="-g -O2" | 
|  | 6377 | else | 
|  | 6378 | CXXFLAGS="-g" | 
|  | 6379 | fi | 
|  | 6380 | else | 
|  | 6381 | if test "$GXX" = yes; then | 
|  | 6382 | CXXFLAGS="-O2" | 
|  | 6383 | else | 
|  | 6384 | CXXFLAGS= | 
|  | 6385 | fi | 
|  | 6386 | fi | 
|  | 6387 | ac_ext=c | 
|  | 6388 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6392 |  | 
|  | 6393 | depcc="$CXX"  am_compiler_list= | 
|  | 6394 |  | 
|  | 6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 6396 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
|  | 6397 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | 
|  | 6398 | $as_echo_n "(cached) " >&6 | 
|  | 6399 | else | 
|  | 6400 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 6401 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 6402 | # making bogus files that we don't know about and never remove.  For | 
|  | 6403 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 6404 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 6405 | # in D'. | 
|  | 6406 | mkdir conftest.dir | 
|  | 6407 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 6408 | # using a relative directory. | 
|  | 6409 | cp "$am_depcomp" conftest.dir | 
|  | 6410 | cd conftest.dir | 
|  | 6411 | # We will build objects and dependencies in a subdirectory because | 
|  | 6412 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 6413 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 6414 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 6415 | # the current directory while Tru64 will put them in the object | 
|  | 6416 | # directory. | 
|  | 6417 | mkdir sub | 
|  | 6418 |  | 
|  | 6419 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 6420 | if test "$am_compiler_list" = ""; then | 
|  | 6421 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 6422 | fi | 
|  | 6423 | am__universal=false | 
|  | 6424 | case " $depcc " in #( | 
|  | 6425 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 6426 | esac | 
|  | 6427 |  | 
|  | 6428 | for depmode in $am_compiler_list; do | 
|  | 6429 | # Setup a source with many dependencies, because some compilers | 
|  | 6430 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 6431 | # we should not choose a depcomp mode which is confused by this. | 
|  | 6432 | # | 
|  | 6433 | # We need to recreate these files for each test, as the compiler may | 
|  | 6434 | # overwrite some of them when testing with obscure command lines. | 
|  | 6435 | # This happens at least with the AIX C compiler. | 
|  | 6436 | : > sub/conftest.c | 
|  | 6437 | for i in 1 2 3 4 5 6; do | 
|  | 6438 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 6439 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 6440 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 6441 | touch sub/conftst$i.h | 
|  | 6442 | done | 
|  | 6443 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 6444 |  | 
|  | 6445 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 6446 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 6447 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 6448 | # versions had trouble with output in subdirs | 
|  | 6449 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 6450 | am__minus_obj="-o $am__obj" | 
|  | 6451 | case $depmode in | 
|  | 6452 | gcc) | 
|  | 6453 | # This depmode causes a compiler race in universal mode. | 
|  | 6454 | test "$am__universal" = false || continue | 
|  | 6455 | ;; | 
|  | 6456 | nosideeffect) | 
|  | 6457 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 6458 | # only be used when explicitly requested | 
|  | 6459 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 6460 | continue | 
|  | 6461 | else | 
|  | 6462 | break | 
|  | 6463 | fi | 
|  | 6464 | ;; | 
|  | 6465 | msvisualcpp | msvcmsys) | 
|  | 6466 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 6467 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 6468 | # so weak that their functioning should not be impacted. | 
|  | 6469 | am__obj=conftest.${OBJEXT-o} | 
|  | 6470 | am__minus_obj= | 
|  | 6471 | ;; | 
|  | 6472 | none) break ;; | 
|  | 6473 | esac | 
|  | 6474 | if depmode=$depmode \ | 
|  | 6475 | source=sub/conftest.c object=$am__obj \ | 
|  | 6476 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 6477 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 6478 | >/dev/null 2>conftest.err && | 
|  | 6479 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6480 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6481 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6482 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 6483 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 6484 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 6485 | # that says an option was ignored or not supported. | 
|  | 6486 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 6487 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 6488 | # The diagnosis changed in icc 8.0: | 
|  | 6489 | #   icc: Command line remark: option '-MP' not supported | 
|  | 6490 | if (grep 'ignoring option' conftest.err || | 
|  | 6491 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 6492 | am_cv_CXX_dependencies_compiler_type=$depmode | 
|  | 6493 | break | 
|  | 6494 | fi | 
|  | 6495 | fi | 
|  | 6496 | done | 
|  | 6497 |  | 
|  | 6498 | cd .. | 
|  | 6499 | rm -rf conftest.dir | 
|  | 6500 | else | 
|  | 6501 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 6502 | fi | 
|  | 6503 |  | 
|  | 6504 | fi | 
|  | 6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
|  | 6506 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
|  | 6507 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
|  | 6508 |  | 
|  | 6509 | if | 
|  | 6510 | test "x$enable_dependency_tracking" != xno \ | 
|  | 6511 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
|  | 6512 | am__fastdepCXX_TRUE= | 
|  | 6513 | am__fastdepCXX_FALSE='#' | 
|  | 6514 | else | 
|  | 6515 | am__fastdepCXX_TRUE='#' | 
|  | 6516 | am__fastdepCXX_FALSE= | 
|  | 6517 | fi | 
|  | 6518 |  | 
|  | 6519 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6520 | case $ac_cv_prog_cc_stdc in #( | 
|  | 6521 | no) : | 
|  | 6522 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | 
|  | 6523 | *) : | 
|  | 6524 | { $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] | 6525 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6526 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6527 | $as_echo_n "(cached) " >&6 | 
|  | 6528 | else | 
|  | 6529 | ac_cv_prog_cc_c99=no | 
|  | 6530 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6532 | /* end confdefs.h.  */ | 
|  | 6533 | #include <stdarg.h> | 
|  | 6534 | #include <stdbool.h> | 
|  | 6535 | #include <stdlib.h> | 
|  | 6536 | #include <wchar.h> | 
|  | 6537 | #include <stdio.h> | 
|  | 6538 |  | 
|  | 6539 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
|  | 6540 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
|  | 6541 | #define showlist(...) puts (#__VA_ARGS__) | 
|  | 6542 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
|  | 6543 | static void | 
|  | 6544 | test_varargs_macros (void) | 
|  | 6545 | { | 
|  | 6546 | int x = 1234; | 
|  | 6547 | int y = 5678; | 
|  | 6548 | debug ("Flag"); | 
|  | 6549 | debug ("X = %d\n", x); | 
|  | 6550 | showlist (The first, second, and third items.); | 
|  | 6551 | report (x>y, "x is %d but y is %d", x, y); | 
|  | 6552 | } | 
|  | 6553 |  | 
|  | 6554 | // Check long long types. | 
|  | 6555 | #define BIG64 18446744073709551615ull | 
|  | 6556 | #define BIG32 4294967295ul | 
|  | 6557 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
|  | 6558 | #if !BIG_OK | 
|  | 6559 | your preprocessor is broken; | 
|  | 6560 | #endif | 
|  | 6561 | #if BIG_OK | 
|  | 6562 | #else | 
|  | 6563 | your preprocessor is broken; | 
|  | 6564 | #endif | 
|  | 6565 | static long long int bignum = -9223372036854775807LL; | 
|  | 6566 | static unsigned long long int ubignum = BIG64; | 
|  | 6567 |  | 
|  | 6568 | struct incomplete_array | 
|  | 6569 | { | 
|  | 6570 | int datasize; | 
|  | 6571 | double data[]; | 
|  | 6572 | }; | 
|  | 6573 |  | 
|  | 6574 | struct named_init { | 
|  | 6575 | int number; | 
|  | 6576 | const wchar_t *name; | 
|  | 6577 | double average; | 
|  | 6578 | }; | 
|  | 6579 |  | 
|  | 6580 | typedef const char *ccp; | 
|  | 6581 |  | 
|  | 6582 | static inline int | 
|  | 6583 | test_restrict (ccp restrict text) | 
|  | 6584 | { | 
|  | 6585 | // See if C++-style comments work. | 
|  | 6586 | // Iterate through items via the restricted pointer. | 
|  | 6587 | // Also check for declarations in for loops. | 
|  | 6588 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
|  | 6589 | continue; | 
|  | 6590 | return 0; | 
|  | 6591 | } | 
|  | 6592 |  | 
|  | 6593 | // Check varargs and va_copy. | 
|  | 6594 | static void | 
|  | 6595 | test_varargs (const char *format, ...) | 
|  | 6596 | { | 
|  | 6597 | va_list args; | 
|  | 6598 | va_start (args, format); | 
|  | 6599 | va_list args_copy; | 
|  | 6600 | va_copy (args_copy, args); | 
|  | 6601 |  | 
|  | 6602 | const char *str; | 
|  | 6603 | int number; | 
|  | 6604 | float fnumber; | 
|  | 6605 |  | 
|  | 6606 | while (*format) | 
|  | 6607 | { | 
|  | 6608 | switch (*format++) | 
|  | 6609 | { | 
|  | 6610 | case 's': // string | 
|  | 6611 | str = va_arg (args_copy, const char *); | 
|  | 6612 | break; | 
|  | 6613 | case 'd': // int | 
|  | 6614 | number = va_arg (args_copy, int); | 
|  | 6615 | break; | 
|  | 6616 | case 'f': // float | 
|  | 6617 | fnumber = va_arg (args_copy, double); | 
|  | 6618 | break; | 
|  | 6619 | default: | 
|  | 6620 | break; | 
|  | 6621 | } | 
|  | 6622 | } | 
|  | 6623 | va_end (args_copy); | 
|  | 6624 | va_end (args); | 
|  | 6625 | } | 
|  | 6626 |  | 
|  | 6627 | int | 
|  | 6628 | main () | 
|  | 6629 | { | 
|  | 6630 |  | 
|  | 6631 | // Check bool. | 
|  | 6632 | _Bool success = false; | 
|  | 6633 |  | 
|  | 6634 | // Check restrict. | 
|  | 6635 | if (test_restrict ("String literal") == 0) | 
|  | 6636 | success = true; | 
|  | 6637 | char *restrict newvar = "Another string"; | 
|  | 6638 |  | 
|  | 6639 | // Check varargs. | 
|  | 6640 | test_varargs ("s, d' f .", "string", 65, 34.234); | 
|  | 6641 | test_varargs_macros (); | 
|  | 6642 |  | 
|  | 6643 | // Check flexible array members. | 
|  | 6644 | struct incomplete_array *ia = | 
|  | 6645 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
|  | 6646 | ia->datasize = 10; | 
|  | 6647 | for (int i = 0; i < ia->datasize; ++i) | 
|  | 6648 | ia->data[i] = i * 1.234; | 
|  | 6649 |  | 
|  | 6650 | // Check named initializers. | 
|  | 6651 | struct named_init ni = { | 
|  | 6652 | .number = 34, | 
|  | 6653 | .name = L"Test wide string", | 
|  | 6654 | .average = 543.34343, | 
|  | 6655 | }; | 
|  | 6656 |  | 
|  | 6657 | ni.number = 58; | 
|  | 6658 |  | 
|  | 6659 | int dynamic_array[ni.number]; | 
|  | 6660 | dynamic_array[ni.number - 1] = 543; | 
|  | 6661 |  | 
|  | 6662 | // work around unused variable warnings | 
|  | 6663 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
|  | 6664 | || dynamic_array[ni.number - 1] != 543); | 
|  | 6665 |  | 
|  | 6666 | ; | 
|  | 6667 | return 0; | 
|  | 6668 | } | 
|  | 6669 | _ACEOF | 
|  | 6670 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
|  | 6671 | do | 
|  | 6672 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6673 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6674 | ac_cv_prog_cc_c99=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6675 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6676 | rm -f core conftest.err conftest.$ac_objext | 
|  | 6677 | test "x$ac_cv_prog_cc_c99" != "xno" && break | 
|  | 6678 | done | 
|  | 6679 | rm -f conftest.$ac_ext | 
|  | 6680 | CC=$ac_save_CC | 
|  | 6681 |  | 
|  | 6682 | fi | 
|  | 6683 | # AC_CACHE_VAL | 
|  | 6684 | case "x$ac_cv_prog_cc_c99" in | 
|  | 6685 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6687 | $as_echo "none needed" >&6; } ;; | 
|  | 6688 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6690 | $as_echo "unsupported" >&6; } ;; | 
|  | 6691 | *) | 
|  | 6692 | CC="$CC $ac_cv_prog_cc_c99" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6693 | { $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] | 6694 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
|  | 6695 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6696 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6697 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | 
|  | 6698 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6699 | { $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] | 6700 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6701 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6702 | $as_echo_n "(cached) " >&6 | 
|  | 6703 | else | 
|  | 6704 | ac_cv_prog_cc_c89=no | 
|  | 6705 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6707 | /* end confdefs.h.  */ | 
|  | 6708 | #include <stdarg.h> | 
|  | 6709 | #include <stdio.h> | 
|  | 6710 | #include <sys/types.h> | 
|  | 6711 | #include <sys/stat.h> | 
|  | 6712 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 6713 | struct buf { int x; }; | 
|  | 6714 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 6715 | static char *e (p, i) | 
|  | 6716 | char **p; | 
|  | 6717 | int i; | 
|  | 6718 | { | 
|  | 6719 | return p[i]; | 
|  | 6720 | } | 
|  | 6721 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 6722 | { | 
|  | 6723 | char *s; | 
|  | 6724 | va_list v; | 
|  | 6725 | va_start (v,p); | 
|  | 6726 | s = g (p, va_arg (v,int)); | 
|  | 6727 | va_end (v); | 
|  | 6728 | return s; | 
|  | 6729 | } | 
|  | 6730 |  | 
|  | 6731 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 6732 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 6733 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 6734 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 6735 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 6736 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 6737 | that's true only with -std.  */ | 
|  | 6738 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 6739 |  | 
|  | 6740 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 6741 | inside strings and character constants.  */ | 
|  | 6742 | #define FOO(x) 'x' | 
|  | 6743 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 6744 |  | 
|  | 6745 | int test (int i, double x); | 
|  | 6746 | struct s1 {int (*f) (int a);}; | 
|  | 6747 | struct s2 {int (*f) (double a);}; | 
|  | 6748 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 6749 | int argc; | 
|  | 6750 | char **argv; | 
|  | 6751 | int | 
|  | 6752 | main () | 
|  | 6753 | { | 
|  | 6754 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 6755 | ; | 
|  | 6756 | return 0; | 
|  | 6757 | } | 
|  | 6758 | _ACEOF | 
|  | 6759 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 6760 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 6761 | do | 
|  | 6762 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6763 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6764 | ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6765 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6766 | rm -f core conftest.err conftest.$ac_objext | 
|  | 6767 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 6768 | done | 
|  | 6769 | rm -f conftest.$ac_ext | 
|  | 6770 | CC=$ac_save_CC | 
|  | 6771 |  | 
|  | 6772 | fi | 
|  | 6773 | # AC_CACHE_VAL | 
|  | 6774 | case "x$ac_cv_prog_cc_c89" in | 
|  | 6775 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6777 | $as_echo "none needed" >&6; } ;; | 
|  | 6778 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6780 | $as_echo "unsupported" >&6; } ;; | 
|  | 6781 | *) | 
|  | 6782 | CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6783 | { $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] | 6784 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 6785 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6786 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6787 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | 
|  | 6788 | else | 
|  | 6789 | ac_cv_prog_cc_stdc=no | 
|  | 6790 | fi | 
|  | 6791 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6792 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6793 | ;; | 
|  | 6794 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6795 | { $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] | 6796 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6797 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6798 | $as_echo_n "(cached) " >&6 | 
|  | 6799 | fi | 
|  | 6800 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6801 | case $ac_cv_prog_cc_stdc in #( | 
|  | 6802 | no) : | 
|  | 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 6804 | $as_echo "unsupported" >&6; } ;; #( | 
|  | 6805 | '') : | 
|  | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 6807 | $as_echo "none needed" >&6; } ;; #( | 
|  | 6808 | *) : | 
|  | 6809 | { $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] | 6810 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | 
|  | 6811 | esac | 
|  | 6812 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6813 | ac_ext=c | 
|  | 6814 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6818 | { $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] | 6819 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 6820 | # On Suns, sometimes $CPP names a directory. | 
|  | 6821 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 6822 | CPP= | 
|  | 6823 | fi | 
|  | 6824 | if test -z "$CPP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6825 | if test "${ac_cv_prog_CPP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6826 | $as_echo_n "(cached) " >&6 | 
|  | 6827 | else | 
|  | 6828 | # Double quotes because CPP needs to be expanded | 
|  | 6829 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 6830 | do | 
|  | 6831 | ac_preproc_ok=false | 
|  | 6832 | for ac_c_preproc_warn_flag in '' yes | 
|  | 6833 | do | 
|  | 6834 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 6835 | # with a fresh cross-compiler works. | 
|  | 6836 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 6837 | # <limits.h> exists even on freestanding compilers. | 
|  | 6838 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 6839 | # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6841 | /* end confdefs.h.  */ | 
|  | 6842 | #ifdef __STDC__ | 
|  | 6843 | # include <limits.h> | 
|  | 6844 | #else | 
|  | 6845 | # include <assert.h> | 
|  | 6846 | #endif | 
|  | 6847 | Syntax error | 
|  | 6848 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6849 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6850 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6851 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6852 | # Broken: fails on valid input. | 
|  | 6853 | continue | 
|  | 6854 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6855 | rm -f conftest.err conftest.$ac_ext | 
|  | 6856 |  | 
|  | 6857 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 6858 | # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6860 | /* end confdefs.h.  */ | 
|  | 6861 | #include <ac_nonexistent.h> | 
|  | 6862 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6863 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6864 | # Broken: success on invalid input. | 
|  | 6865 | continue | 
|  | 6866 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6867 | # Passes both tests. | 
|  | 6868 | ac_preproc_ok=: | 
|  | 6869 | break | 
|  | 6870 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6871 | rm -f conftest.err conftest.$ac_ext | 
|  | 6872 |  | 
|  | 6873 | done | 
|  | 6874 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 6875 | rm -f conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6876 | if $ac_preproc_ok; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6877 | break | 
|  | 6878 | fi | 
|  | 6879 |  | 
|  | 6880 | done | 
|  | 6881 | ac_cv_prog_CPP=$CPP | 
|  | 6882 |  | 
|  | 6883 | fi | 
|  | 6884 | CPP=$ac_cv_prog_CPP | 
|  | 6885 | else | 
|  | 6886 | ac_cv_prog_CPP=$CPP | 
|  | 6887 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6889 | $as_echo "$CPP" >&6; } | 
|  | 6890 | ac_preproc_ok=false | 
|  | 6891 | for ac_c_preproc_warn_flag in '' yes | 
|  | 6892 | do | 
|  | 6893 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 6894 | # with a fresh cross-compiler works. | 
|  | 6895 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 6896 | # <limits.h> exists even on freestanding compilers. | 
|  | 6897 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 6898 | # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6900 | /* end confdefs.h.  */ | 
|  | 6901 | #ifdef __STDC__ | 
|  | 6902 | # include <limits.h> | 
|  | 6903 | #else | 
|  | 6904 | # include <assert.h> | 
|  | 6905 | #endif | 
|  | 6906 | Syntax error | 
|  | 6907 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6908 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6909 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6910 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6911 | # Broken: fails on valid input. | 
|  | 6912 | continue | 
|  | 6913 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6914 | rm -f conftest.err conftest.$ac_ext | 
|  | 6915 |  | 
|  | 6916 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 6917 | # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6919 | /* end confdefs.h.  */ | 
|  | 6920 | #include <ac_nonexistent.h> | 
|  | 6921 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6922 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6923 | # Broken: success on invalid input. | 
|  | 6924 | continue | 
|  | 6925 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6926 | # Passes both tests. | 
|  | 6927 | ac_preproc_ok=: | 
|  | 6928 | break | 
|  | 6929 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6930 | rm -f conftest.err conftest.$ac_ext | 
|  | 6931 |  | 
|  | 6932 | done | 
|  | 6933 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 6934 | rm -f conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6935 | if $ac_preproc_ok; then : | 
|  | 6936 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6937 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6938 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6939 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 6940 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 6941 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6942 | fi | 
|  | 6943 |  | 
|  | 6944 | ac_ext=c | 
|  | 6945 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6949 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6951 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6952 | if test "${ac_cv_path_SED+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6953 | $as_echo_n "(cached) " >&6 | 
|  | 6954 | else | 
|  | 6955 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
|  | 6956 | for ac_i in 1 2 3 4 5 6 7; do | 
|  | 6957 | ac_script="$ac_script$as_nl$ac_script" | 
|  | 6958 | done | 
|  | 6959 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6960 | { ac_script=; unset ac_script;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6961 | if test -z "$SED"; then | 
|  | 6962 | ac_path_SED_found=false | 
|  | 6963 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 6964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6965 | for as_dir in $PATH | 
|  | 6966 | do | 
|  | 6967 | IFS=$as_save_IFS | 
|  | 6968 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6969 | for ac_prog in sed gsed; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6970 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6971 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 6972 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | 
|  | 6973 | # Check for GNU ac_path_SED and select it if it is found. | 
|  | 6974 | # Check for GNU $ac_path_SED | 
|  | 6975 | case `"$ac_path_SED" --version 2>&1` in | 
|  | 6976 | *GNU*) | 
|  | 6977 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
|  | 6978 | *) | 
|  | 6979 | ac_count=0 | 
|  | 6980 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 6981 | while : | 
|  | 6982 | do | 
|  | 6983 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 6984 | mv "conftest.tmp" "conftest.in" | 
|  | 6985 | cp "conftest.in" "conftest.nl" | 
|  | 6986 | $as_echo '' >> "conftest.nl" | 
|  | 6987 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 6988 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6989 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6990 | if test $ac_count -gt ${ac_path_SED_max-0}; then | 
|  | 6991 | # Best one so far, save it but keep looking for a better one | 
|  | 6992 | ac_cv_path_SED="$ac_path_SED" | 
|  | 6993 | ac_path_SED_max=$ac_count | 
|  | 6994 | fi | 
|  | 6995 | # 10*(2^10) chars as input seems more than enough | 
|  | 6996 | test $ac_count -gt 10 && break | 
|  | 6997 | done | 
|  | 6998 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 6999 | esac | 
|  | 7000 |  | 
|  | 7001 | $ac_path_SED_found && break 3 | 
|  | 7002 | done | 
|  | 7003 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7004 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7005 | IFS=$as_save_IFS | 
|  | 7006 | if test -z "$ac_cv_path_SED"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7007 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7008 | fi | 
|  | 7009 | else | 
|  | 7010 | ac_cv_path_SED=$SED | 
|  | 7011 | fi | 
|  | 7012 |  | 
|  | 7013 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7015 | $as_echo "$ac_cv_path_SED" >&6; } | 
|  | 7016 | SED="$ac_cv_path_SED" | 
|  | 7017 | rm -f conftest.sed | 
|  | 7018 |  | 
|  | 7019 | test -z "$SED" && SED=sed | 
|  | 7020 | Xsed="$SED -e 1s/^X//" | 
|  | 7021 |  | 
|  | 7022 |  | 
|  | 7023 |  | 
|  | 7024 |  | 
|  | 7025 |  | 
|  | 7026 |  | 
|  | 7027 |  | 
|  | 7028 |  | 
|  | 7029 |  | 
|  | 7030 |  | 
|  | 7031 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7033 | $as_echo_n "checking for fgrep... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7034 | if test "${ac_cv_path_FGREP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7035 | $as_echo_n "(cached) " >&6 | 
|  | 7036 | else | 
|  | 7037 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | 
|  | 7038 | then ac_cv_path_FGREP="$GREP -F" | 
|  | 7039 | else | 
|  | 7040 | if test -z "$FGREP"; then | 
|  | 7041 | ac_path_FGREP_found=false | 
|  | 7042 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 7043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7044 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 7045 | do | 
|  | 7046 | IFS=$as_save_IFS | 
|  | 7047 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7048 | for ac_prog in fgrep; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7049 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7050 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 7051 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | 
|  | 7052 | # Check for GNU ac_path_FGREP and select it if it is found. | 
|  | 7053 | # Check for GNU $ac_path_FGREP | 
|  | 7054 | case `"$ac_path_FGREP" --version 2>&1` in | 
|  | 7055 | *GNU*) | 
|  | 7056 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | 
|  | 7057 | *) | 
|  | 7058 | ac_count=0 | 
|  | 7059 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 7060 | while : | 
|  | 7061 | do | 
|  | 7062 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 7063 | mv "conftest.tmp" "conftest.in" | 
|  | 7064 | cp "conftest.in" "conftest.nl" | 
|  | 7065 | $as_echo 'FGREP' >> "conftest.nl" | 
|  | 7066 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 7067 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7068 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7069 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | 
|  | 7070 | # Best one so far, save it but keep looking for a better one | 
|  | 7071 | ac_cv_path_FGREP="$ac_path_FGREP" | 
|  | 7072 | ac_path_FGREP_max=$ac_count | 
|  | 7073 | fi | 
|  | 7074 | # 10*(2^10) chars as input seems more than enough | 
|  | 7075 | test $ac_count -gt 10 && break | 
|  | 7076 | done | 
|  | 7077 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 7078 | esac | 
|  | 7079 |  | 
|  | 7080 | $ac_path_FGREP_found && break 3 | 
|  | 7081 | done | 
|  | 7082 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7083 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7084 | IFS=$as_save_IFS | 
|  | 7085 | if test -z "$ac_cv_path_FGREP"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7086 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7087 | fi | 
|  | 7088 | else | 
|  | 7089 | ac_cv_path_FGREP=$FGREP | 
|  | 7090 | fi | 
|  | 7091 |  | 
|  | 7092 | fi | 
|  | 7093 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7095 | $as_echo "$ac_cv_path_FGREP" >&6; } | 
|  | 7096 | FGREP="$ac_cv_path_FGREP" | 
|  | 7097 |  | 
|  | 7098 |  | 
|  | 7099 | test -z "$GREP" && GREP=grep | 
|  | 7100 |  | 
|  | 7101 |  | 
|  | 7102 |  | 
|  | 7103 |  | 
|  | 7104 |  | 
|  | 7105 |  | 
|  | 7106 |  | 
|  | 7107 |  | 
|  | 7108 |  | 
|  | 7109 |  | 
|  | 7110 |  | 
|  | 7111 |  | 
|  | 7112 |  | 
|  | 7113 |  | 
|  | 7114 |  | 
|  | 7115 |  | 
|  | 7116 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7117 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 7118 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | 
|  | 7119 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | 
|  | 7120 |  | 
|  | 7121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | 
|  | 7122 | $as_echo_n "checking how to print strings... " >&6; } | 
|  | 7123 | # Test print first, because it will be a builtin if present. | 
|  | 7124 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | 
|  | 7125 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | 
|  | 7126 | ECHO='print -r --' | 
|  | 7127 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | 
|  | 7128 | ECHO='printf %s\n' | 
|  | 7129 | else | 
|  | 7130 | # Use this function as a fallback that always works. | 
|  | 7131 | func_fallback_echo () | 
|  | 7132 | { | 
|  | 7133 | eval 'cat <<_LTECHO_EOF | 
|  | 7134 | $1 | 
|  | 7135 | _LTECHO_EOF' | 
|  | 7136 | } | 
|  | 7137 | ECHO='func_fallback_echo' | 
|  | 7138 | fi | 
|  | 7139 |  | 
|  | 7140 | # func_echo_all arg... | 
|  | 7141 | # Invoke $ECHO with all args, space-separated. | 
|  | 7142 | func_echo_all () | 
|  | 7143 | { | 
|  | 7144 | $ECHO "" | 
|  | 7145 | } | 
|  | 7146 |  | 
|  | 7147 | case "$ECHO" in | 
|  | 7148 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | 
|  | 7149 | $as_echo "printf" >&6; } ;; | 
|  | 7150 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | 
|  | 7151 | $as_echo "print -r" >&6; } ;; | 
|  | 7152 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | 
|  | 7153 | $as_echo "cat" >&6; } ;; | 
|  | 7154 | esac | 
|  | 7155 |  | 
|  | 7156 |  | 
|  | 7157 |  | 
|  | 7158 |  | 
|  | 7159 |  | 
|  | 7160 |  | 
|  | 7161 |  | 
|  | 7162 |  | 
|  | 7163 |  | 
|  | 7164 |  | 
|  | 7165 |  | 
|  | 7166 |  | 
|  | 7167 |  | 
|  | 7168 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7169 |  | 
|  | 7170 |  | 
|  | 7171 | # Check whether --with-gnu-ld was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7172 | if test "${with_gnu_ld+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7173 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
|  | 7174 | else | 
|  | 7175 | with_gnu_ld=no | 
|  | 7176 | fi | 
|  | 7177 |  | 
|  | 7178 | ac_prog=ld | 
|  | 7179 | if test "$GCC" = yes; then | 
|  | 7180 | # Check if gcc -print-prog-name=ld gives a path. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7182 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
|  | 7183 | case $host in | 
|  | 7184 | *-*-mingw*) | 
|  | 7185 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 7186 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 7187 | *) | 
|  | 7188 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 7189 | esac | 
|  | 7190 | case $ac_prog in | 
|  | 7191 | # Accept absolute paths. | 
|  | 7192 | [\\/]* | ?:[\\/]*) | 
|  | 7193 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 7194 | # Canonicalize the pathname of ld | 
|  | 7195 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
|  | 7196 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
|  | 7197 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 7198 | done | 
|  | 7199 | test -z "$LD" && LD="$ac_prog" | 
|  | 7200 | ;; | 
|  | 7201 | "") | 
|  | 7202 | # If it fails, then pretend we aren't using GCC. | 
|  | 7203 | ac_prog=ld | 
|  | 7204 | ;; | 
|  | 7205 | *) | 
|  | 7206 | # If it is relative, then search for the first ld in PATH. | 
|  | 7207 | with_gnu_ld=unknown | 
|  | 7208 | ;; | 
|  | 7209 | esac | 
|  | 7210 | elif test "$with_gnu_ld" = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7212 | $as_echo_n "checking for GNU ld... " >&6; } | 
|  | 7213 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7215 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
|  | 7216 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7217 | if test "${lt_cv_path_LD+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7218 | $as_echo_n "(cached) " >&6 | 
|  | 7219 | else | 
|  | 7220 | if test -z "$LD"; then | 
|  | 7221 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 7222 | for ac_dir in $PATH; do | 
|  | 7223 | IFS="$lt_save_ifs" | 
|  | 7224 | test -z "$ac_dir" && ac_dir=. | 
|  | 7225 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 7226 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 7227 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 7228 | # but apparently some variants of GNU ld only accept -v. | 
|  | 7229 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 7230 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 7231 | *GNU* | *'with BFD'*) | 
|  | 7232 | test "$with_gnu_ld" != no && break | 
|  | 7233 | ;; | 
|  | 7234 | *) | 
|  | 7235 | test "$with_gnu_ld" != yes && break | 
|  | 7236 | ;; | 
|  | 7237 | esac | 
|  | 7238 | fi | 
|  | 7239 | done | 
|  | 7240 | IFS="$lt_save_ifs" | 
|  | 7241 | else | 
|  | 7242 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 7243 | fi | 
|  | 7244 | fi | 
|  | 7245 |  | 
|  | 7246 | LD="$lt_cv_path_LD" | 
|  | 7247 | if test -n "$LD"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7249 | $as_echo "$LD" >&6; } | 
|  | 7250 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7252 | $as_echo "no" >&6; } | 
|  | 7253 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7254 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7256 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7257 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7258 | $as_echo_n "(cached) " >&6 | 
|  | 7259 | else | 
|  | 7260 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
|  | 7261 | case `$LD -v 2>&1 </dev/null` in | 
|  | 7262 | *GNU* | *'with BFD'*) | 
|  | 7263 | lt_cv_prog_gnu_ld=yes | 
|  | 7264 | ;; | 
|  | 7265 | *) | 
|  | 7266 | lt_cv_prog_gnu_ld=no | 
|  | 7267 | ;; | 
|  | 7268 | esac | 
|  | 7269 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7271 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
|  | 7272 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 7273 |  | 
|  | 7274 |  | 
|  | 7275 |  | 
|  | 7276 |  | 
|  | 7277 |  | 
|  | 7278 |  | 
|  | 7279 |  | 
|  | 7280 |  | 
|  | 7281 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7282 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | 
|  | 7284 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
|  | 7285 | if test "${ac_cv_prog_cc_c99+set}" = set; then : | 
|  | 7286 | $as_echo_n "(cached) " >&6 | 
|  | 7287 | else | 
|  | 7288 | ac_cv_prog_cc_c99=no | 
|  | 7289 | ac_save_CC=$CC | 
|  | 7290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7291 | /* end confdefs.h.  */ | 
|  | 7292 | #include <stdarg.h> | 
|  | 7293 | #include <stdbool.h> | 
|  | 7294 | #include <stdlib.h> | 
|  | 7295 | #include <wchar.h> | 
|  | 7296 | #include <stdio.h> | 
|  | 7297 |  | 
|  | 7298 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
|  | 7299 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
|  | 7300 | #define showlist(...) puts (#__VA_ARGS__) | 
|  | 7301 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
|  | 7302 | static void | 
|  | 7303 | test_varargs_macros (void) | 
|  | 7304 | { | 
|  | 7305 | int x = 1234; | 
|  | 7306 | int y = 5678; | 
|  | 7307 | debug ("Flag"); | 
|  | 7308 | debug ("X = %d\n", x); | 
|  | 7309 | showlist (The first, second, and third items.); | 
|  | 7310 | report (x>y, "x is %d but y is %d", x, y); | 
|  | 7311 | } | 
|  | 7312 |  | 
|  | 7313 | // Check long long types. | 
|  | 7314 | #define BIG64 18446744073709551615ull | 
|  | 7315 | #define BIG32 4294967295ul | 
|  | 7316 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
|  | 7317 | #if !BIG_OK | 
|  | 7318 | your preprocessor is broken; | 
|  | 7319 | #endif | 
|  | 7320 | #if BIG_OK | 
|  | 7321 | #else | 
|  | 7322 | your preprocessor is broken; | 
|  | 7323 | #endif | 
|  | 7324 | static long long int bignum = -9223372036854775807LL; | 
|  | 7325 | static unsigned long long int ubignum = BIG64; | 
|  | 7326 |  | 
|  | 7327 | struct incomplete_array | 
|  | 7328 | { | 
|  | 7329 | int datasize; | 
|  | 7330 | double data[]; | 
|  | 7331 | }; | 
|  | 7332 |  | 
|  | 7333 | struct named_init { | 
|  | 7334 | int number; | 
|  | 7335 | const wchar_t *name; | 
|  | 7336 | double average; | 
|  | 7337 | }; | 
|  | 7338 |  | 
|  | 7339 | typedef const char *ccp; | 
|  | 7340 |  | 
|  | 7341 | static inline int | 
|  | 7342 | test_restrict (ccp restrict text) | 
|  | 7343 | { | 
|  | 7344 | // See if C++-style comments work. | 
|  | 7345 | // Iterate through items via the restricted pointer. | 
|  | 7346 | // Also check for declarations in for loops. | 
|  | 7347 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
|  | 7348 | continue; | 
|  | 7349 | return 0; | 
|  | 7350 | } | 
|  | 7351 |  | 
|  | 7352 | // Check varargs and va_copy. | 
|  | 7353 | static void | 
|  | 7354 | test_varargs (const char *format, ...) | 
|  | 7355 | { | 
|  | 7356 | va_list args; | 
|  | 7357 | va_start (args, format); | 
|  | 7358 | va_list args_copy; | 
|  | 7359 | va_copy (args_copy, args); | 
|  | 7360 |  | 
|  | 7361 | const char *str; | 
|  | 7362 | int number; | 
|  | 7363 | float fnumber; | 
|  | 7364 |  | 
|  | 7365 | while (*format) | 
|  | 7366 | { | 
|  | 7367 | switch (*format++) | 
|  | 7368 | { | 
|  | 7369 | case 's': // string | 
|  | 7370 | str = va_arg (args_copy, const char *); | 
|  | 7371 | break; | 
|  | 7372 | case 'd': // int | 
|  | 7373 | number = va_arg (args_copy, int); | 
|  | 7374 | break; | 
|  | 7375 | case 'f': // float | 
|  | 7376 | fnumber = va_arg (args_copy, double); | 
|  | 7377 | break; | 
|  | 7378 | default: | 
|  | 7379 | break; | 
|  | 7380 | } | 
|  | 7381 | } | 
|  | 7382 | va_end (args_copy); | 
|  | 7383 | va_end (args); | 
|  | 7384 | } | 
|  | 7385 |  | 
|  | 7386 | int | 
|  | 7387 | main () | 
|  | 7388 | { | 
|  | 7389 |  | 
|  | 7390 | // Check bool. | 
|  | 7391 | _Bool success = false; | 
|  | 7392 |  | 
|  | 7393 | // Check restrict. | 
|  | 7394 | if (test_restrict ("String literal") == 0) | 
|  | 7395 | success = true; | 
|  | 7396 | char *restrict newvar = "Another string"; | 
|  | 7397 |  | 
|  | 7398 | // Check varargs. | 
|  | 7399 | test_varargs ("s, d' f .", "string", 65, 34.234); | 
|  | 7400 | test_varargs_macros (); | 
|  | 7401 |  | 
|  | 7402 | // Check flexible array members. | 
|  | 7403 | struct incomplete_array *ia = | 
|  | 7404 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
|  | 7405 | ia->datasize = 10; | 
|  | 7406 | for (int i = 0; i < ia->datasize; ++i) | 
|  | 7407 | ia->data[i] = i * 1.234; | 
|  | 7408 |  | 
|  | 7409 | // Check named initializers. | 
|  | 7410 | struct named_init ni = { | 
|  | 7411 | .number = 34, | 
|  | 7412 | .name = L"Test wide string", | 
|  | 7413 | .average = 543.34343, | 
|  | 7414 | }; | 
|  | 7415 |  | 
|  | 7416 | ni.number = 58; | 
|  | 7417 |  | 
|  | 7418 | int dynamic_array[ni.number]; | 
|  | 7419 | dynamic_array[ni.number - 1] = 543; | 
|  | 7420 |  | 
|  | 7421 | // work around unused variable warnings | 
|  | 7422 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
|  | 7423 | || dynamic_array[ni.number - 1] != 543); | 
|  | 7424 |  | 
|  | 7425 | ; | 
|  | 7426 | return 0; | 
|  | 7427 | } | 
|  | 7428 | _ACEOF | 
|  | 7429 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
|  | 7430 | do | 
|  | 7431 | CC="$ac_save_CC $ac_arg" | 
|  | 7432 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7433 | ac_cv_prog_cc_c99=$ac_arg | 
|  | 7434 | fi | 
|  | 7435 | rm -f core conftest.err conftest.$ac_objext | 
|  | 7436 | test "x$ac_cv_prog_cc_c99" != "xno" && break | 
|  | 7437 | done | 
|  | 7438 | rm -f conftest.$ac_ext | 
|  | 7439 | CC=$ac_save_CC | 
|  | 7440 |  | 
|  | 7441 | fi | 
|  | 7442 | # AC_CACHE_VAL | 
|  | 7443 | case "x$ac_cv_prog_cc_c99" in | 
|  | 7444 | x) | 
|  | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 7446 | $as_echo "none needed" >&6; } ;; | 
|  | 7447 | xno) | 
|  | 7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 7449 | $as_echo "unsupported" >&6; } ;; | 
|  | 7450 | *) | 
|  | 7451 | CC="$CC $ac_cv_prog_cc_c99" | 
|  | 7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | 
|  | 7453 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
|  | 7454 | esac | 
|  | 7455 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
|  | 7456 |  | 
|  | 7457 | fi | 
|  | 7458 |  | 
|  | 7459 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7460 | if test "x$CC" != xcc; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7462 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | 
|  | 7463 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7465 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | 
|  | 7466 | fi | 
|  | 7467 | set dummy $CC; ac_cc=`$as_echo "$2" | | 
|  | 7468 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7469 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7470 | $as_echo_n "(cached) " >&6 | 
|  | 7471 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7473 | /* end confdefs.h.  */ | 
|  | 7474 |  | 
|  | 7475 | int | 
|  | 7476 | main () | 
|  | 7477 | { | 
|  | 7478 |  | 
|  | 7479 | ; | 
|  | 7480 | return 0; | 
|  | 7481 | } | 
|  | 7482 | _ACEOF | 
|  | 7483 | # Make sure it works both with $CC and with simple cc. | 
|  | 7484 | # We do the test twice because some compilers refuse to overwrite an | 
|  | 7485 | # existing .o file with -o, though they will create one. | 
|  | 7486 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
|  | 7487 | rm -f conftest2.* | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7488 | if { { case "(($ac_try" in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7490 | *) ac_try_echo=$ac_try;; | 
|  | 7491 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7493 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7494 | (eval "$ac_try") 2>&5 | 
|  | 7495 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7497 | test $ac_status = 0; } && | 
|  | 7498 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7500 | *) ac_try_echo=$ac_try;; | 
|  | 7501 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7502 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7503 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7504 | (eval "$ac_try") 2>&5 | 
|  | 7505 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7507 | test $ac_status = 0; }; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7508 | then | 
|  | 7509 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | 
|  | 7510 | if test "x$CC" != xcc; then | 
|  | 7511 | # Test first that cc exists at all. | 
|  | 7512 | if { ac_try='cc -c conftest.$ac_ext >&5' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7513 | { { case "(($ac_try" in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7515 | *) ac_try_echo=$ac_try;; | 
|  | 7516 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7517 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7518 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7519 | (eval "$ac_try") 2>&5 | 
|  | 7520 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7522 | test $ac_status = 0; }; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7523 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
|  | 7524 | rm -f conftest2.* | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7525 | if { { case "(($ac_try" in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7527 | *) ac_try_echo=$ac_try;; | 
|  | 7528 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7530 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7531 | (eval "$ac_try") 2>&5 | 
|  | 7532 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7534 | test $ac_status = 0; } && | 
|  | 7535 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7537 | *) ac_try_echo=$ac_try;; | 
|  | 7538 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7540 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7541 | (eval "$ac_try") 2>&5 | 
|  | 7542 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7544 | test $ac_status = 0; }; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7545 | then | 
|  | 7546 | # cc works too. | 
|  | 7547 | : | 
|  | 7548 | else | 
|  | 7549 | # cc exists but doesn't like -o. | 
|  | 7550 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
|  | 7551 | fi | 
|  | 7552 | fi | 
|  | 7553 | fi | 
|  | 7554 | else | 
|  | 7555 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
|  | 7556 | fi | 
|  | 7557 | rm -f core conftest* | 
|  | 7558 |  | 
|  | 7559 | fi | 
|  | 7560 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7562 | $as_echo "yes" >&6; } | 
|  | 7563 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7565 | $as_echo "no" >&6; } | 
|  | 7566 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7567 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7568 |  | 
|  | 7569 | fi | 
|  | 7570 |  | 
|  | 7571 | # FIXME: we rely on the cache variable name because | 
|  | 7572 | # there is no other way. | 
|  | 7573 | set dummy $CC | 
|  | 7574 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
|  | 7575 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | 
|  | 7576 | if test "$am_t" != yes; then | 
|  | 7577 | # Losing compiler, so override with the script. | 
|  | 7578 | # FIXME: It is wrong to rewrite CC. | 
|  | 7579 | # But if we don't then we get into trouble of one sort or another. | 
|  | 7580 | # A longer-term fix would be to have automake use am__CC in this case, | 
|  | 7581 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | 
|  | 7582 | CC="$am_aux_dir/compile $CC" | 
|  | 7583 | fi | 
|  | 7584 |  | 
|  | 7585 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 | 
|  | 7587 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | 
|  | 7588 | if test "${ac_cv_cflags_warn_all+set}" = set; then : | 
|  | 7589 | $as_echo_n "(cached) " >&6 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7590 | else | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 7591 | ac_cv_cflags_warn_all="no, unknown" | 
|  | 7592 |  | 
|  | 7593 | ac_ext=c | 
|  | 7594 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7598 |  | 
|  | 7599 | ac_save_CFLAGS="$CFLAGS" | 
|  | 7600 | 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"    # | 
|  | 7601 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | 
|  | 7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7603 | /* end confdefs.h.  */ | 
|  | 7604 |  | 
|  | 7605 | int | 
|  | 7606 | main () | 
|  | 7607 | { | 
|  | 7608 | return 0; | 
|  | 7609 | ; | 
|  | 7610 | return 0; | 
|  | 7611 | } | 
|  | 7612 | _ACEOF | 
|  | 7613 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7614 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7615 | fi | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 7616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7617 | done | 
|  | 7618 | CFLAGS="$ac_save_CFLAGS" | 
|  | 7619 | ac_ext=c | 
|  | 7620 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7624 |  | 
|  | 7625 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 7626 | fi | 
|  | 7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | 
|  | 7628 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | 
|  | 7629 | case ".$ac_cv_cflags_warn_all" in | 
|  | 7630 | .ok|.ok,*)  ;; | 
|  | 7631 | .|.no|.no,*) | 
|  | 7632 | ;; | 
|  | 7633 | *) | 
|  | 7634 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null | 
|  | 7635 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 | 
|  | 7636 | (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 | 
|  | 7637 | ac_status=$? | 
|  | 7638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7639 | test $ac_status = 0; } | 
|  | 7640 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | 
|  | 7641 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | 
|  | 7642 | ac_status=$? | 
|  | 7643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7644 | test $ac_status = 0; } | 
|  | 7645 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | 
|  | 7646 | fi | 
|  | 7647 | ;; | 
|  | 7648 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7649 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7650 | $ac_includes_default | 
|  | 7651 |  | 
|  | 7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
|  | 7653 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
|  | 7654 | set x ${MAKE-make} | 
|  | 7655 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7656 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7657 | $as_echo_n "(cached) " >&6 | 
|  | 7658 | else | 
|  | 7659 | cat >conftest.make <<\_ACEOF | 
|  | 7660 | SHELL = /bin/sh | 
|  | 7661 | all: | 
|  | 7662 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 
|  | 7663 | _ACEOF | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 7664 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7665 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
|  | 7666 | *@@@%%%=?*=@@@%%%*) | 
|  | 7667 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 
|  | 7668 | *) | 
|  | 7669 | eval ac_cv_prog_make_${ac_make}_set=no;; | 
|  | 7670 | esac | 
|  | 7671 | rm -f conftest.make | 
|  | 7672 | fi | 
|  | 7673 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
|  | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7675 | $as_echo "yes" >&6; } | 
|  | 7676 | SET_MAKE= | 
|  | 7677 | else | 
|  | 7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7679 | $as_echo "no" >&6; } | 
|  | 7680 | SET_MAKE="MAKE=${MAKE-make}" | 
|  | 7681 | fi | 
|  | 7682 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7684 | $as_echo_n "checking whether ln -s works... " >&6; } | 
|  | 7685 | LN_S=$as_ln_s | 
|  | 7686 | if test "$LN_S" = "ln -s"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7688 | $as_echo "yes" >&6; } | 
|  | 7689 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7691 | $as_echo "no, using $LN_S" >&6; } | 
|  | 7692 | fi | 
|  | 7693 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7695 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } | 
|  | 7696 |  | 
|  | 7697 | # Check whether --with-dmalloc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7698 | if test "${with_dmalloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7699 | withval=$with_dmalloc; if test "$withval" = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7701 | $as_echo "yes" >&6; } | 
|  | 7702 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7703 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7704 |  | 
|  | 7705 | LIBS="$LIBS -ldmalloc" | 
|  | 7706 | LDFLAGS="$LDFLAGS -g" | 
|  | 7707 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7709 | $as_echo "no" >&6; } | 
|  | 7710 | fi | 
|  | 7711 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7713 | $as_echo "no" >&6; } | 
|  | 7714 | fi | 
|  | 7715 |  | 
|  | 7716 |  | 
|  | 7717 |  | 
| cristy | 0d3a638 | 2010-04-26 00:45:55 +0000 | [diff] [blame] | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | 
|  | 7719 | $as_echo_n "checking for __attribute__... " >&6; } | 
|  | 7720 | if test "${ax_cv___attribute__+set}" = set; then : | 
|  | 7721 | $as_echo_n "(cached) " >&6 | 
|  | 7722 | else | 
|  | 7723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7724 | /* end confdefs.h.  */ | 
|  | 7725 | #include <stdlib.h> | 
|  | 7726 | static void foo(void) __attribute__ ((unused)); | 
|  | 7727 | static void | 
|  | 7728 | foo(void) { | 
|  | 7729 | exit(1); | 
|  | 7730 | } | 
|  | 7731 |  | 
|  | 7732 | int | 
|  | 7733 | main () | 
|  | 7734 | { | 
|  | 7735 |  | 
|  | 7736 | ; | 
|  | 7737 | return 0; | 
|  | 7738 | } | 
|  | 7739 | _ACEOF | 
|  | 7740 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7741 | ax_cv___attribute__=yes | 
|  | 7742 | else | 
|  | 7743 | ax_cv___attribute__=no | 
|  | 7744 |  | 
|  | 7745 | fi | 
|  | 7746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7747 |  | 
|  | 7748 | fi | 
|  | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 | 
|  | 7750 | $as_echo "$ax_cv___attribute__" >&6; } | 
|  | 7751 | if test "$ax_cv___attribute__" = "yes"; then | 
|  | 7752 |  | 
|  | 7753 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | 
|  | 7754 |  | 
|  | 7755 | fi | 
|  | 7756 |  | 
|  | 7757 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7758 |  | 
|  | 7759 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 7760 | if test -n "$ac_tool_prefix"; then | 
|  | 7761 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 7762 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7764 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7765 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7766 | $as_echo_n "(cached) " >&6 | 
|  | 7767 | else | 
|  | 7768 | case $PKG_CONFIG in | 
|  | 7769 | [\\/]* | ?:[\\/]*) | 
|  | 7770 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 7771 | ;; | 
|  | 7772 | *) | 
|  | 7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7774 | for as_dir in $PATH | 
|  | 7775 | do | 
|  | 7776 | IFS=$as_save_IFS | 
|  | 7777 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7778 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7780 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7781 | $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] | 7782 | break 2 | 
|  | 7783 | fi | 
|  | 7784 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7785 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7786 | IFS=$as_save_IFS | 
|  | 7787 |  | 
|  | 7788 | ;; | 
|  | 7789 | esac | 
|  | 7790 | fi | 
|  | 7791 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 7792 | if test -n "$PKG_CONFIG"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7794 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 7795 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7797 | $as_echo "no" >&6; } | 
|  | 7798 | fi | 
|  | 7799 |  | 
|  | 7800 |  | 
|  | 7801 | fi | 
|  | 7802 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 7803 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 7804 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 7805 | set dummy pkg-config; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7807 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7808 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7809 | $as_echo_n "(cached) " >&6 | 
|  | 7810 | else | 
|  | 7811 | case $ac_pt_PKG_CONFIG in | 
|  | 7812 | [\\/]* | ?:[\\/]*) | 
|  | 7813 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 7814 | ;; | 
|  | 7815 | *) | 
|  | 7816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7817 | for as_dir in $PATH | 
|  | 7818 | do | 
|  | 7819 | IFS=$as_save_IFS | 
|  | 7820 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7821 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7823 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7824 | $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] | 7825 | break 2 | 
|  | 7826 | fi | 
|  | 7827 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7828 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7829 | IFS=$as_save_IFS | 
|  | 7830 |  | 
|  | 7831 | ;; | 
|  | 7832 | esac | 
|  | 7833 | fi | 
|  | 7834 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 7835 | if test -n "$ac_pt_PKG_CONFIG"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7837 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 7838 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7840 | $as_echo "no" >&6; } | 
|  | 7841 | fi | 
|  | 7842 |  | 
|  | 7843 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 7844 | PKG_CONFIG="" | 
|  | 7845 | else | 
|  | 7846 | case $cross_compiling:$ac_tool_warned in | 
|  | 7847 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7848 | { $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] | 7849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 7850 | ac_tool_warned=yes ;; | 
|  | 7851 | esac | 
|  | 7852 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 7853 | fi | 
|  | 7854 | else | 
|  | 7855 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 7856 | fi | 
|  | 7857 |  | 
|  | 7858 | fi | 
|  | 7859 | if test -n "$PKG_CONFIG"; then | 
|  | 7860 | _pkg_min_version=0.9.0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7862 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 7863 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7865 | $as_echo "yes" >&6; } | 
|  | 7866 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7868 | $as_echo "no" >&6; } | 
|  | 7869 | PKG_CONFIG="" | 
|  | 7870 | fi | 
|  | 7871 |  | 
|  | 7872 | fi | 
|  | 7873 |  | 
|  | 7874 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7875 | # Enable run-time checking. | 
|  | 7876 | # | 
|  | 7877 | # Check whether --enable-bounds-checking was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7878 | if test "${enable_bounds_checking+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7879 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval | 
|  | 7880 | else | 
|  | 7881 | enable_bounds_checking='no' | 
|  | 7882 | fi | 
|  | 7883 |  | 
|  | 7884 |  | 
|  | 7885 | if test "$enable_bounds_checking" = yes; then | 
|  | 7886 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7887 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7888 |  | 
|  | 7889 | fi | 
|  | 7890 |  | 
|  | 7891 | # | 
|  | 7892 | # Tests for Windows | 
|  | 7893 | # | 
|  | 7894 |  | 
|  | 7895 |  | 
| cristy | 0d3a638 | 2010-04-26 00:45:55 +0000 | [diff] [blame] | 7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
|  | 7897 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
|  | 7898 | if test "${ax_cv_c_compiler_ms+set}" = set; then : | 
|  | 7899 | $as_echo_n "(cached) " >&6 | 
|  | 7900 | else | 
|  | 7901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7902 | /* end confdefs.h.  */ | 
|  | 7903 |  | 
|  | 7904 | int | 
|  | 7905 | main () | 
|  | 7906 | { | 
|  | 7907 | #ifndef _MSC_VER | 
|  | 7908 | choke me | 
|  | 7909 | #endif | 
|  | 7910 |  | 
|  | 7911 | ; | 
|  | 7912 | return 0; | 
|  | 7913 | } | 
|  | 7914 | _ACEOF | 
|  | 7915 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7916 | ax_compiler_ms=yes | 
|  | 7917 | else | 
|  | 7918 | ax_compiler_ms=no | 
|  | 7919 | fi | 
|  | 7920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7921 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
|  | 7922 |  | 
|  | 7923 | fi | 
|  | 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
|  | 7925 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7926 |  | 
|  | 7927 | GDI32_LIBS='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7928 | native_win32_build='no' | 
|  | 7929 | cygwin_build='no' | 
|  | 7930 | case "${host_os}" in | 
|  | 7931 | cygwin* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7932 | cygwin_build='yes' | 
|  | 7933 | GDI32_LIBS='-lgdi32' | 
|  | 7934 | ;; | 
|  | 7935 | mingw* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7936 | native_win32_build='yes' | 
|  | 7937 | GDI32_LIBS='-lgdi32' | 
|  | 7938 | ;; | 
|  | 7939 | esac | 
|  | 7940 | if test "${GDI32_LIBS}x" != 'x'; then | 
|  | 7941 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7942 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7943 |  | 
|  | 7944 | fi | 
|  | 7945 |  | 
|  | 7946 | if test "${GDI32_LIBS}x" != 'x' ; then | 
|  | 7947 | WINGDI32_DELEGATE_TRUE= | 
|  | 7948 | WINGDI32_DELEGATE_FALSE='#' | 
|  | 7949 | else | 
|  | 7950 | WINGDI32_DELEGATE_TRUE='#' | 
|  | 7951 | WINGDI32_DELEGATE_FALSE= | 
|  | 7952 | fi | 
|  | 7953 |  | 
|  | 7954 | if test "${native_win32_build}" = 'yes' ; then | 
|  | 7955 | WIN32_NATIVE_BUILD_TRUE= | 
|  | 7956 | WIN32_NATIVE_BUILD_FALSE='#' | 
|  | 7957 | else | 
|  | 7958 | WIN32_NATIVE_BUILD_TRUE='#' | 
|  | 7959 | WIN32_NATIVE_BUILD_FALSE= | 
|  | 7960 | fi | 
|  | 7961 |  | 
|  | 7962 | if test "${cygwin_build}" = 'yes' ; then | 
|  | 7963 | CYGWIN_BUILD_TRUE= | 
|  | 7964 | CYGWIN_BUILD_FALSE='#' | 
|  | 7965 | else | 
|  | 7966 | CYGWIN_BUILD_TRUE='#' | 
|  | 7967 | CYGWIN_BUILD_FALSE= | 
|  | 7968 | fi | 
|  | 7969 |  | 
|  | 7970 | if test "x${CC}" = 'xcl.exe' ; then | 
|  | 7971 | USING_CL_TRUE= | 
|  | 7972 | USING_CL_FALSE='#' | 
|  | 7973 | else | 
|  | 7974 | USING_CL_TRUE='#' | 
|  | 7975 | USING_CL_FALSE= | 
|  | 7976 | fi | 
|  | 7977 |  | 
|  | 7978 |  | 
|  | 7979 | WinPathScript="${srcdirfull}/winpath.sh" | 
|  | 7980 |  | 
|  | 7981 |  | 
|  | 7982 | # | 
|  | 7983 | # Compiler flags tweaks | 
|  | 7984 | # | 
|  | 7985 | if test "${GCC}" != "yes"; then | 
|  | 7986 | case "${host}" in | 
|  | 7987 | *-*-hpux* ) | 
|  | 7988 | # aCC: HP ANSI C++ B3910B A.03.34 | 
|  | 7989 | CFLAGS="${CFLAGS} -Wp,-H30000" | 
|  | 7990 | if test -n "${CXXFLAGS}"; then | 
|  | 7991 | CXXFLAGS='-AA' | 
|  | 7992 | else | 
|  | 7993 | CXXFLAGS="${CXXFLAGS} -AA" | 
|  | 7994 | fi | 
|  | 7995 | ;; | 
|  | 7996 | *-dec-osf5.* ) | 
|  | 7997 | # Compaq alphaev68-dec-osf5.1 compiler | 
|  | 7998 | if test -n "${CXXFLAGS}"; then | 
|  | 7999 | CXXFLAGS='-std strict_ansi -noimplicit_include' | 
|  | 8000 | else | 
|  | 8001 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" | 
|  | 8002 | fi | 
|  | 8003 | esac | 
|  | 8004 | fi | 
|  | 8005 |  | 
|  | 8006 | # Check for lazy-loading. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8008 | $as_echo_n "checking for linker lazyload option... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8009 | if test "${im_cv_ld_lazyload+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8010 | $as_echo_n "(cached) " >&6 | 
|  | 8011 | else | 
|  | 8012 |  | 
|  | 8013 | im_cv_ld_lazyload='none' | 
|  | 8014 | case "${host}" in | 
|  | 8015 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) | 
|  | 8016 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then | 
|  | 8017 | im_cv_ld_lazyload='-Wl,-zlazyload' | 
|  | 8018 | fi | 
|  | 8019 | ;; | 
|  | 8020 | esac | 
|  | 8021 |  | 
|  | 8022 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8024 | $as_echo "$im_cv_ld_lazyload" >&6; } | 
|  | 8025 | if test "${im_cv_ld_lazyload}" != 'none' ; then | 
|  | 8026 | if test -z "${LDFLAGS}" ; then | 
|  | 8027 | LDFLAGS="${im_cv_ld_lazyload}" | 
|  | 8028 | else | 
|  | 8029 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" | 
|  | 8030 | fi | 
|  | 8031 | fi | 
|  | 8032 |  | 
|  | 8033 | case "$host" in | 
|  | 8034 | *darwin* | *-macos10*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8035 | # Check whether --enable-osx-universal-binary was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8036 | if test "${enable_osx_universal_binary+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8037 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" | 
|  | 8038 | else | 
|  | 8039 | build_osxuniversal=no | 
|  | 8040 | fi | 
|  | 8041 |  | 
|  | 8042 |  | 
|  | 8043 | if test "${build_osxuniversal}" != no ; then | 
|  | 8044 | if test "$enable_dependency_tracking" != no ; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 8045 | as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8046 | Please re-run configure with these options: | 
|  | 8047 | --disable-dependency-tracking --enable-osx-universal-binary | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8048 | " "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8049 | fi | 
|  | 8050 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8051 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8052 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8053 | fi | 
|  | 8054 | ;; | 
|  | 8055 | esac | 
|  | 8056 |  | 
|  | 8057 | # Enable support for threads | 
|  | 8058 |  | 
|  | 8059 | # Check whether --with-threads was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8060 | if test "${with_threads+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8061 | withval=$with_threads; with_threads=$withval | 
|  | 8062 | else | 
|  | 8063 | with_threads='yes' | 
|  | 8064 | fi | 
|  | 8065 |  | 
|  | 8066 |  | 
|  | 8067 | have_threads=no | 
|  | 8068 | if test "$with_threads" != 'no'; then | 
|  | 8069 |  | 
|  | 8070 |  | 
|  | 8071 |  | 
|  | 8072 | ac_ext=c | 
|  | 8073 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8077 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8078 | ax_pthread_ok=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8079 |  | 
|  | 8080 | # We used to check for pthread.h first, but this fails if pthread.h | 
|  | 8081 | # requires special compiler flags (e.g. on True64 or Sequent). | 
|  | 8082 | # It gets checked for in the link test anyway. | 
|  | 8083 |  | 
|  | 8084 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
|  | 8085 | # etcetera environment variables, and if threads linking works using | 
|  | 8086 | # them: | 
|  | 8087 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
|  | 8088 | save_CFLAGS="$CFLAGS" | 
|  | 8089 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8090 | save_LIBS="$LIBS" | 
|  | 8091 | LIBS="$PTHREAD_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8093 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8095 | /* end confdefs.h.  */ | 
|  | 8096 |  | 
|  | 8097 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8098 | Use char because int might match the return type of a GCC | 
|  | 8099 | builtin and then its argument prototype would still apply.  */ | 
|  | 8100 | #ifdef __cplusplus | 
|  | 8101 | extern "C" | 
|  | 8102 | #endif | 
|  | 8103 | char pthread_join (); | 
|  | 8104 | int | 
|  | 8105 | main () | 
|  | 8106 | { | 
|  | 8107 | return pthread_join (); | 
|  | 8108 | ; | 
|  | 8109 | return 0; | 
|  | 8110 | } | 
|  | 8111 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8112 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8113 | ax_pthread_ok=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8114 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8115 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8116 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8118 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8119 | if test x"$ax_pthread_ok" = xno; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8120 | PTHREAD_LIBS="" | 
|  | 8121 | PTHREAD_CFLAGS="" | 
|  | 8122 | fi | 
|  | 8123 | LIBS="$save_LIBS" | 
|  | 8124 | CFLAGS="$save_CFLAGS" | 
|  | 8125 | fi | 
|  | 8126 |  | 
|  | 8127 | # We must check for the threads library under a number of different | 
|  | 8128 | # names; the ordering is very important because some systems | 
|  | 8129 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
|  | 8130 | # libraries is broken (non-POSIX). | 
|  | 8131 |  | 
|  | 8132 | # Create a list of thread flags to try.  Items starting with a "-" are | 
|  | 8133 | # C compiler flags, and other items are library names, except for "none" | 
|  | 8134 | # which indicates that we try without any flags at all, and "pthread-config" | 
|  | 8135 | # which is a program returning the flags for the Pth emulation library. | 
|  | 8136 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8137 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8138 |  | 
|  | 8139 | # The ordering *is* (sometimes) important.  Some notes on the | 
|  | 8140 | # individual items follow: | 
|  | 8141 |  | 
|  | 8142 | # pthreads: AIX (must check this before -lpthread) | 
|  | 8143 | # none: in case threads are in libc; should be tried before -Kthread and | 
|  | 8144 | #       other compiler flags to prevent continual compiler warnings | 
|  | 8145 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
|  | 8146 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
|  | 8147 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
|  | 8148 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
|  | 8149 | # -pthreads: Solaris/gcc | 
|  | 8150 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
|  | 8151 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
|  | 8152 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
|  | 8153 | #      also defines -D_REENTRANT) | 
|  | 8154 | #      ... -mt is also the pthreads flag for HP/aCC | 
|  | 8155 | # pthread: Linux, etcetera | 
|  | 8156 | # --thread-safe: KAI C++ | 
|  | 8157 | # pthread-config: use pthread-config program (for GNU Pth library) | 
|  | 8158 |  | 
|  | 8159 | case "${host_cpu}-${host_os}" in | 
|  | 8160 | *solaris*) | 
|  | 8161 |  | 
|  | 8162 | # On Solaris (at least, for some versions), libc contains stubbed | 
|  | 8163 | # (non-functional) versions of the pthreads routines, so link-based | 
|  | 8164 | # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
|  | 8165 | # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
|  | 8166 | # a function called by this macro, so we could check for that, but | 
|  | 8167 | # who knows whether they'll stub that too in a future libc.)  So, | 
|  | 8168 | # we'll just look for -pthreads and -lpthread first: | 
|  | 8169 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8170 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8171 | ;; | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8172 |  | 
|  | 8173 | *-darwin*) | 
|  | 8174 | acx_pthread_flags="-pthread $acx_pthread_flags" | 
|  | 8175 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8176 | esac | 
|  | 8177 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8178 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8179 | for flag in $ax_pthread_flags; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8180 |  | 
|  | 8181 | case $flag in | 
|  | 8182 | none) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8184 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
|  | 8185 | ;; | 
|  | 8186 |  | 
|  | 8187 | -*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8189 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
|  | 8190 | PTHREAD_CFLAGS="$flag" | 
|  | 8191 | ;; | 
|  | 8192 |  | 
|  | 8193 | pthread-config) | 
|  | 8194 | # Extract the first word of "pthread-config", so it can be a program name with args. | 
|  | 8195 | set dummy pthread-config; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8197 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8198 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8199 | $as_echo_n "(cached) " >&6 | 
|  | 8200 | else | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8201 | if test -n "$ax_pthread_config"; then | 
|  | 8202 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8203 | else | 
|  | 8204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8205 | for as_dir in $PATH | 
|  | 8206 | do | 
|  | 8207 | IFS=$as_save_IFS | 
|  | 8208 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8209 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8211 | ac_cv_prog_ax_pthread_config="yes" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8212 | $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] | 8213 | break 2 | 
|  | 8214 | fi | 
|  | 8215 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8216 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8217 | IFS=$as_save_IFS | 
|  | 8218 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8219 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8220 | fi | 
|  | 8221 | fi | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8222 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
|  | 8223 | if test -n "$ax_pthread_config"; then | 
|  | 8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
|  | 8225 | $as_echo "$ax_pthread_config" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8226 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8228 | $as_echo "no" >&6; } | 
|  | 8229 | fi | 
|  | 8230 |  | 
|  | 8231 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8232 | if test x"$ax_pthread_config" = xno; then continue; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8233 | PTHREAD_CFLAGS="`pthread-config --cflags`" | 
|  | 8234 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
|  | 8235 | ;; | 
|  | 8236 |  | 
|  | 8237 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8239 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
|  | 8240 | PTHREAD_LIBS="-l$flag" | 
|  | 8241 | ;; | 
|  | 8242 | esac | 
|  | 8243 |  | 
|  | 8244 | save_LIBS="$LIBS" | 
|  | 8245 | save_CFLAGS="$CFLAGS" | 
|  | 8246 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8247 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8248 |  | 
|  | 8249 | # Check for various functions.  We must include pthread.h, | 
|  | 8250 | # since some functions may be macros.  (On the Sequent, we | 
|  | 8251 | # need a special flag -Kthread to make this header compile.) | 
|  | 8252 | # We check for pthread_join because it is in -lpthread on IRIX | 
|  | 8253 | # while pthread_create is in libc.  We check for pthread_attr_init | 
|  | 8254 | # due to DEC craziness with -lpthreads.  We check for | 
|  | 8255 | # pthread_cleanup_push because it is one of the few pthread | 
|  | 8256 | # functions on Solaris that doesn't have a non-functional libc stub. | 
|  | 8257 | # We try pthread_create on general principles. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8259 | /* end confdefs.h.  */ | 
|  | 8260 | #include <pthread.h> | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8261 | static void routine(void* a) {a=0;} | 
|  | 8262 | static void* start_routine(void* a) {return a;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8263 | int | 
|  | 8264 | main () | 
|  | 8265 | { | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8266 | pthread_t th; pthread_attr_t attr; | 
|  | 8267 | pthread_join(th, 0); | 
|  | 8268 | pthread_attr_init(&attr); | 
|  | 8269 | pthread_cleanup_push(routine, 0); | 
|  | 8270 | pthread_create(&th,0,start_routine,0); | 
|  | 8271 | pthread_cleanup_pop(0); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8272 | ; | 
|  | 8273 | return 0; | 
|  | 8274 | } | 
|  | 8275 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8276 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8277 | ax_pthread_ok=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8278 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8279 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8280 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8281 |  | 
|  | 8282 | LIBS="$save_LIBS" | 
|  | 8283 | CFLAGS="$save_CFLAGS" | 
|  | 8284 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8286 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8287 | if test "x$ax_pthread_ok" = xyes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8288 | break; | 
|  | 8289 | fi | 
|  | 8290 |  | 
|  | 8291 | PTHREAD_LIBS="" | 
|  | 8292 | PTHREAD_CFLAGS="" | 
|  | 8293 | done | 
|  | 8294 | fi | 
|  | 8295 |  | 
|  | 8296 | # Various other checks: | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8297 | if test "x$ax_pthread_ok" = xyes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8298 | save_LIBS="$LIBS" | 
|  | 8299 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8300 | save_CFLAGS="$CFLAGS" | 
|  | 8301 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8302 |  | 
|  | 8303 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8305 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
|  | 8306 | attr_name=unknown | 
|  | 8307 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8309 | /* end confdefs.h.  */ | 
|  | 8310 | #include <pthread.h> | 
|  | 8311 | int | 
|  | 8312 | main () | 
|  | 8313 | { | 
|  | 8314 | int attr=$attr; return attr; | 
|  | 8315 | ; | 
|  | 8316 | return 0; | 
|  | 8317 | } | 
|  | 8318 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8319 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8320 | attr_name=$attr; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8321 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8322 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8323 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8324 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8326 | $as_echo "$attr_name" >&6; } | 
|  | 8327 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
|  | 8328 |  | 
|  | 8329 | cat >>confdefs.h <<_ACEOF | 
|  | 8330 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
|  | 8331 | _ACEOF | 
|  | 8332 |  | 
|  | 8333 | fi | 
|  | 8334 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8336 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
|  | 8337 | flag=no | 
|  | 8338 | case "${host_cpu}-${host_os}" in | 
|  | 8339 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
|  | 8340 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
|  | 8341 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8343 | $as_echo "${flag}" >&6; } | 
|  | 8344 | if test "x$flag" != xno; then | 
|  | 8345 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
|  | 8346 | fi | 
|  | 8347 |  | 
|  | 8348 | LIBS="$save_LIBS" | 
|  | 8349 | CFLAGS="$save_CFLAGS" | 
|  | 8350 |  | 
|  | 8351 | # More AIX lossage: must compile with xlc_r or cc_r | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8352 | if test x"$GCC" != xyes; then | 
|  | 8353 | for ac_prog in xlc_r cc_r | 
|  | 8354 | do | 
|  | 8355 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 8356 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8358 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8359 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8360 | $as_echo_n "(cached) " >&6 | 
|  | 8361 | else | 
|  | 8362 | if test -n "$PTHREAD_CC"; then | 
|  | 8363 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
|  | 8364 | else | 
|  | 8365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8366 | for as_dir in $PATH | 
|  | 8367 | do | 
|  | 8368 | IFS=$as_save_IFS | 
|  | 8369 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8370 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8372 | ac_cv_prog_PTHREAD_CC="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8373 | $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] | 8374 | break 2 | 
|  | 8375 | fi | 
|  | 8376 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8377 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8378 | IFS=$as_save_IFS | 
|  | 8379 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8380 | fi | 
|  | 8381 | fi | 
|  | 8382 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
|  | 8383 | if test -n "$PTHREAD_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8385 | $as_echo "$PTHREAD_CC" >&6; } | 
|  | 8386 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8388 | $as_echo "no" >&6; } | 
|  | 8389 | fi | 
|  | 8390 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8391 |  | 
|  | 8392 | test -n "$PTHREAD_CC" && break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8393 | done | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8394 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8395 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8396 | else | 
|  | 8397 | PTHREAD_CC=$CC | 
|  | 8398 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8399 | else | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8400 | PTHREAD_CC="$CC" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8401 | fi | 
|  | 8402 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8403 |  | 
|  | 8404 |  | 
|  | 8405 |  | 
|  | 8406 |  | 
|  | 8407 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8408 | if test x"$ax_pthread_ok" = xyes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8409 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8410 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8411 |  | 
|  | 8412 | : | 
|  | 8413 | else | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8414 | ax_pthread_ok=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8415 |  | 
|  | 8416 | fi | 
|  | 8417 | ac_ext=c | 
|  | 8418 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8422 |  | 
|  | 8423 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8424 | if test "$ax_pthread_ok" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8425 | have_threads=yes | 
|  | 8426 | DEF_THREAD="$PTHREAD_CFLAGS" | 
|  | 8427 | CFLAGS="$CFLAGS $DEF_THREAD" | 
|  | 8428 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" | 
|  | 8429 | if test "$CC" != "$PTHREAD_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8430 | { $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] | 8431 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} | 
|  | 8432 | CC="$PTHREAD_CC" | 
|  | 8433 | fi | 
|  | 8434 | fi | 
|  | 8435 | fi | 
|  | 8436 |  | 
|  | 8437 | # Enable support for OpenMP | 
|  | 8438 | if test "$have_threads" != 'yes'; then | 
|  | 8439 | ac_cv_prog_c_openmp=unsupported | 
|  | 8440 | fi | 
|  | 8441 |  | 
|  | 8442 | OPENMP_CFLAGS= | 
|  | 8443 | # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8444 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8445 | enableval=$enable_openmp; | 
|  | 8446 | fi | 
|  | 8447 |  | 
|  | 8448 | if test "$enable_openmp" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8449 | { $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] | 8450 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8451 | if test "${ac_cv_prog_c_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8452 | $as_echo_n "(cached) " >&6 | 
|  | 8453 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8455 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8456 |  | 
|  | 8457 | #ifndef _OPENMP | 
|  | 8458 | choke me | 
|  | 8459 | #endif | 
|  | 8460 | #include <omp.h> | 
|  | 8461 | int main () { return omp_get_num_threads (); } | 
|  | 8462 |  | 
|  | 8463 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8464 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8465 | ac_cv_prog_c_openmp='none needed' | 
|  | 8466 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8467 | ac_cv_prog_c_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8468 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
|  | 8469 | ac_save_CFLAGS=$CFLAGS | 
|  | 8470 | CFLAGS="$CFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8472 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8473 |  | 
|  | 8474 | #ifndef _OPENMP | 
|  | 8475 | choke me | 
|  | 8476 | #endif | 
|  | 8477 | #include <omp.h> | 
|  | 8478 | int main () { return omp_get_num_threads (); } | 
|  | 8479 |  | 
|  | 8480 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8481 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8482 | ac_cv_prog_c_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8483 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8484 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8485 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8486 | CFLAGS=$ac_save_CFLAGS | 
|  | 8487 | if test "$ac_cv_prog_c_openmp" != unsupported; then | 
|  | 8488 | break | 
|  | 8489 | fi | 
|  | 8490 | done | 
|  | 8491 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8492 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8493 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8494 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8495 | { $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] | 8496 | $as_echo "$ac_cv_prog_c_openmp" >&6; } | 
|  | 8497 | case $ac_cv_prog_c_openmp in #( | 
|  | 8498 | "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8499 | ;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8500 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8501 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8502 | esac | 
|  | 8503 | fi | 
|  | 8504 |  | 
|  | 8505 |  | 
|  | 8506 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" | 
|  | 8507 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" | 
|  | 8508 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 8509 | case $ac_cv_prog_c_openmp in #( | 
|  | 8510 | "none needed" | unsupported) | 
|  | 8511 | ;; #( | 
|  | 8512 | *) | 
|  | 8513 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" | 
|  | 8514 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8515 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8516 | # Enable support for OpenCL | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8517 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 8518 |  | 
|  | 8519 |  | 
|  | 8520 | ac_ext=c | 
|  | 8521 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8525 |  | 
|  | 8526 | ax_pthread_ok=no | 
|  | 8527 |  | 
|  | 8528 | # We used to check for pthread.h first, but this fails if pthread.h | 
|  | 8529 | # requires special compiler flags (e.g. on True64 or Sequent). | 
|  | 8530 | # It gets checked for in the link test anyway. | 
|  | 8531 |  | 
|  | 8532 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
|  | 8533 | # etcetera environment variables, and if threads linking works using | 
|  | 8534 | # them: | 
|  | 8535 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
|  | 8536 | save_CFLAGS="$CFLAGS" | 
|  | 8537 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8538 | save_LIBS="$LIBS" | 
|  | 8539 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
|  | 8541 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
|  | 8542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8543 | /* end confdefs.h.  */ | 
|  | 8544 |  | 
|  | 8545 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8546 | Use char because int might match the return type of a GCC | 
|  | 8547 | builtin and then its argument prototype would still apply.  */ | 
|  | 8548 | #ifdef __cplusplus | 
|  | 8549 | extern "C" | 
|  | 8550 | #endif | 
|  | 8551 | char pthread_join (); | 
|  | 8552 | int | 
|  | 8553 | main () | 
|  | 8554 | { | 
|  | 8555 | return pthread_join (); | 
|  | 8556 | ; | 
|  | 8557 | return 0; | 
|  | 8558 | } | 
|  | 8559 | _ACEOF | 
|  | 8560 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8561 | ax_pthread_ok=yes | 
|  | 8562 | fi | 
|  | 8563 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8564 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8566 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8567 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8568 | PTHREAD_LIBS="" | 
|  | 8569 | PTHREAD_CFLAGS="" | 
|  | 8570 | fi | 
|  | 8571 | LIBS="$save_LIBS" | 
|  | 8572 | CFLAGS="$save_CFLAGS" | 
|  | 8573 | fi | 
|  | 8574 |  | 
|  | 8575 | # We must check for the threads library under a number of different | 
|  | 8576 | # names; the ordering is very important because some systems | 
|  | 8577 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
|  | 8578 | # libraries is broken (non-POSIX). | 
|  | 8579 |  | 
|  | 8580 | # Create a list of thread flags to try.  Items starting with a "-" are | 
|  | 8581 | # C compiler flags, and other items are library names, except for "none" | 
|  | 8582 | # which indicates that we try without any flags at all, and "pthread-config" | 
|  | 8583 | # which is a program returning the flags for the Pth emulation library. | 
|  | 8584 |  | 
|  | 8585 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | 
|  | 8586 |  | 
|  | 8587 | # The ordering *is* (sometimes) important.  Some notes on the | 
|  | 8588 | # individual items follow: | 
|  | 8589 |  | 
|  | 8590 | # pthreads: AIX (must check this before -lpthread) | 
|  | 8591 | # none: in case threads are in libc; should be tried before -Kthread and | 
|  | 8592 | #       other compiler flags to prevent continual compiler warnings | 
|  | 8593 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
|  | 8594 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
|  | 8595 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
|  | 8596 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
|  | 8597 | # -pthreads: Solaris/gcc | 
|  | 8598 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
|  | 8599 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
|  | 8600 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
|  | 8601 | #      also defines -D_REENTRANT) | 
|  | 8602 | #      ... -mt is also the pthreads flag for HP/aCC | 
|  | 8603 | # pthread: Linux, etcetera | 
|  | 8604 | # --thread-safe: KAI C++ | 
|  | 8605 | # pthread-config: use pthread-config program (for GNU Pth library) | 
|  | 8606 |  | 
|  | 8607 | case "${host_cpu}-${host_os}" in | 
|  | 8608 | *solaris*) | 
|  | 8609 |  | 
|  | 8610 | # On Solaris (at least, for some versions), libc contains stubbed | 
|  | 8611 | # (non-functional) versions of the pthreads routines, so link-based | 
|  | 8612 | # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
|  | 8613 | # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
|  | 8614 | # a function called by this macro, so we could check for that, but | 
|  | 8615 | # who knows whether they'll stub that too in a future libc.)  So, | 
|  | 8616 | # we'll just look for -pthreads and -lpthread first: | 
|  | 8617 |  | 
|  | 8618 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
|  | 8619 | ;; | 
|  | 8620 |  | 
|  | 8621 | *-darwin*) | 
|  | 8622 | acx_pthread_flags="-pthread $acx_pthread_flags" | 
|  | 8623 | ;; | 
|  | 8624 | esac | 
|  | 8625 |  | 
|  | 8626 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8627 | for flag in $ax_pthread_flags; do | 
|  | 8628 |  | 
|  | 8629 | case $flag in | 
|  | 8630 | none) | 
|  | 8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
|  | 8632 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
|  | 8633 | ;; | 
|  | 8634 |  | 
|  | 8635 | -*) | 
|  | 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
|  | 8637 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
|  | 8638 | PTHREAD_CFLAGS="$flag" | 
|  | 8639 | ;; | 
|  | 8640 |  | 
|  | 8641 | pthread-config) | 
|  | 8642 | # Extract the first word of "pthread-config", so it can be a program name with args. | 
|  | 8643 | set dummy pthread-config; ac_word=$2 | 
|  | 8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8645 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 8646 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : | 
|  | 8647 | $as_echo_n "(cached) " >&6 | 
|  | 8648 | else | 
|  | 8649 | if test -n "$ax_pthread_config"; then | 
|  | 8650 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
|  | 8651 | else | 
|  | 8652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8653 | for as_dir in $PATH | 
|  | 8654 | do | 
|  | 8655 | IFS=$as_save_IFS | 
|  | 8656 | test -z "$as_dir" && as_dir=. | 
|  | 8657 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8659 | ac_cv_prog_ax_pthread_config="yes" | 
|  | 8660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8661 | break 2 | 
|  | 8662 | fi | 
|  | 8663 | done | 
|  | 8664 | done | 
|  | 8665 | IFS=$as_save_IFS | 
|  | 8666 |  | 
|  | 8667 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
|  | 8668 | fi | 
|  | 8669 | fi | 
|  | 8670 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
|  | 8671 | if test -n "$ax_pthread_config"; then | 
|  | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
|  | 8673 | $as_echo "$ax_pthread_config" >&6; } | 
|  | 8674 | else | 
|  | 8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8676 | $as_echo "no" >&6; } | 
|  | 8677 | fi | 
|  | 8678 |  | 
|  | 8679 |  | 
|  | 8680 | if test x"$ax_pthread_config" = xno; then continue; fi | 
|  | 8681 | PTHREAD_CFLAGS="`pthread-config --cflags`" | 
|  | 8682 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
|  | 8683 | ;; | 
|  | 8684 |  | 
|  | 8685 | *) | 
|  | 8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
|  | 8687 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
|  | 8688 | PTHREAD_LIBS="-l$flag" | 
|  | 8689 | ;; | 
|  | 8690 | esac | 
|  | 8691 |  | 
|  | 8692 | save_LIBS="$LIBS" | 
|  | 8693 | save_CFLAGS="$CFLAGS" | 
|  | 8694 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8695 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8696 |  | 
|  | 8697 | # Check for various functions.  We must include pthread.h, | 
|  | 8698 | # since some functions may be macros.  (On the Sequent, we | 
|  | 8699 | # need a special flag -Kthread to make this header compile.) | 
|  | 8700 | # We check for pthread_join because it is in -lpthread on IRIX | 
|  | 8701 | # while pthread_create is in libc.  We check for pthread_attr_init | 
|  | 8702 | # due to DEC craziness with -lpthreads.  We check for | 
|  | 8703 | # pthread_cleanup_push because it is one of the few pthread | 
|  | 8704 | # functions on Solaris that doesn't have a non-functional libc stub. | 
|  | 8705 | # We try pthread_create on general principles. | 
|  | 8706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8707 | /* end confdefs.h.  */ | 
|  | 8708 | #include <pthread.h> | 
|  | 8709 | static void routine(void* a) {a=0;} | 
|  | 8710 | static void* start_routine(void* a) {return a;} | 
|  | 8711 | int | 
|  | 8712 | main () | 
|  | 8713 | { | 
|  | 8714 | pthread_t th; pthread_attr_t attr; | 
|  | 8715 | pthread_join(th, 0); | 
|  | 8716 | pthread_attr_init(&attr); | 
|  | 8717 | pthread_cleanup_push(routine, 0); | 
|  | 8718 | pthread_create(&th,0,start_routine,0); | 
|  | 8719 | pthread_cleanup_pop(0); | 
|  | 8720 | ; | 
|  | 8721 | return 0; | 
|  | 8722 | } | 
|  | 8723 | _ACEOF | 
|  | 8724 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8725 | ax_pthread_ok=yes | 
|  | 8726 | fi | 
|  | 8727 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8728 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8729 |  | 
|  | 8730 | LIBS="$save_LIBS" | 
|  | 8731 | CFLAGS="$save_CFLAGS" | 
|  | 8732 |  | 
|  | 8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8734 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8735 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8736 | break; | 
|  | 8737 | fi | 
|  | 8738 |  | 
|  | 8739 | PTHREAD_LIBS="" | 
|  | 8740 | PTHREAD_CFLAGS="" | 
|  | 8741 | done | 
|  | 8742 | fi | 
|  | 8743 |  | 
|  | 8744 | # Various other checks: | 
|  | 8745 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8746 | save_LIBS="$LIBS" | 
|  | 8747 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8748 | save_CFLAGS="$CFLAGS" | 
|  | 8749 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8750 |  | 
|  | 8751 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
|  | 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
|  | 8753 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
|  | 8754 | attr_name=unknown | 
|  | 8755 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
|  | 8756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8757 | /* end confdefs.h.  */ | 
|  | 8758 | #include <pthread.h> | 
|  | 8759 | int | 
|  | 8760 | main () | 
|  | 8761 | { | 
|  | 8762 | int attr=$attr; return attr; | 
|  | 8763 | ; | 
|  | 8764 | return 0; | 
|  | 8765 | } | 
|  | 8766 | _ACEOF | 
|  | 8767 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8768 | attr_name=$attr; break | 
|  | 8769 | fi | 
|  | 8770 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8771 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8772 | done | 
|  | 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
|  | 8774 | $as_echo "$attr_name" >&6; } | 
|  | 8775 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
|  | 8776 |  | 
|  | 8777 | cat >>confdefs.h <<_ACEOF | 
|  | 8778 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
|  | 8779 | _ACEOF | 
|  | 8780 |  | 
|  | 8781 | fi | 
|  | 8782 |  | 
|  | 8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
|  | 8784 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
|  | 8785 | flag=no | 
|  | 8786 | case "${host_cpu}-${host_os}" in | 
|  | 8787 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
|  | 8788 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
|  | 8789 | esac | 
|  | 8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
|  | 8791 | $as_echo "${flag}" >&6; } | 
|  | 8792 | if test "x$flag" != xno; then | 
|  | 8793 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
|  | 8794 | fi | 
|  | 8795 |  | 
|  | 8796 | LIBS="$save_LIBS" | 
|  | 8797 | CFLAGS="$save_CFLAGS" | 
|  | 8798 |  | 
|  | 8799 | # More AIX lossage: must compile with xlc_r or cc_r | 
|  | 8800 | if test x"$GCC" != xyes; then | 
|  | 8801 | for ac_prog in xlc_r cc_r | 
|  | 8802 | do | 
|  | 8803 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 8804 | set dummy $ac_prog; ac_word=$2 | 
|  | 8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8806 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 8807 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : | 
|  | 8808 | $as_echo_n "(cached) " >&6 | 
|  | 8809 | else | 
|  | 8810 | if test -n "$PTHREAD_CC"; then | 
|  | 8811 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
|  | 8812 | else | 
|  | 8813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8814 | for as_dir in $PATH | 
|  | 8815 | do | 
|  | 8816 | IFS=$as_save_IFS | 
|  | 8817 | test -z "$as_dir" && as_dir=. | 
|  | 8818 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8820 | ac_cv_prog_PTHREAD_CC="$ac_prog" | 
|  | 8821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8822 | break 2 | 
|  | 8823 | fi | 
|  | 8824 | done | 
|  | 8825 | done | 
|  | 8826 | IFS=$as_save_IFS | 
|  | 8827 |  | 
|  | 8828 | fi | 
|  | 8829 | fi | 
|  | 8830 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
|  | 8831 | if test -n "$PTHREAD_CC"; then | 
|  | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
|  | 8833 | $as_echo "$PTHREAD_CC" >&6; } | 
|  | 8834 | else | 
|  | 8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8836 | $as_echo "no" >&6; } | 
|  | 8837 | fi | 
|  | 8838 |  | 
|  | 8839 |  | 
|  | 8840 | test -n "$PTHREAD_CC" && break | 
|  | 8841 | done | 
|  | 8842 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
|  | 8843 |  | 
|  | 8844 | else | 
|  | 8845 | PTHREAD_CC=$CC | 
|  | 8846 | fi | 
|  | 8847 | else | 
|  | 8848 | PTHREAD_CC="$CC" | 
|  | 8849 | fi | 
|  | 8850 |  | 
|  | 8851 |  | 
|  | 8852 |  | 
|  | 8853 |  | 
|  | 8854 |  | 
|  | 8855 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
|  | 8856 | if test x"$ax_pthread_ok" = xyes; then | 
|  | 8857 |  | 
|  | 8858 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
|  | 8859 |  | 
|  | 8860 | : | 
|  | 8861 | else | 
|  | 8862 | ax_pthread_ok=no | 
|  | 8863 |  | 
|  | 8864 | fi | 
|  | 8865 | ac_ext=c | 
|  | 8866 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8870 |  | 
|  | 8871 |  | 
|  | 8872 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8873 | # Check whether --enable-opencl was given. | 
|  | 8874 | if test "${enable_opencl+set}" = set; then : | 
|  | 8875 | enableval=$enable_opencl; disable_opencl=$enableval | 
|  | 8876 | else | 
|  | 8877 | disable_opencl='yes' | 
|  | 8878 | fi | 
|  | 8879 |  | 
|  | 8880 |  | 
|  | 8881 | if test "$disable_opencl" = 'yes'; then | 
|  | 8882 | ac_ext=c | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8883 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8884 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8885 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8887 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8889 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8890 | if test "${ax_cv_c_compiler_ms+set}" = set; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8891 | $as_echo_n "(cached) " >&6 | 
|  | 8892 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8894 | /* end confdefs.h.  */ | 
|  | 8895 |  | 
|  | 8896 | int | 
|  | 8897 | main () | 
|  | 8898 | { | 
|  | 8899 | #ifndef _MSC_VER | 
|  | 8900 | choke me | 
|  | 8901 | #endif | 
|  | 8902 |  | 
|  | 8903 | ; | 
|  | 8904 | return 0; | 
|  | 8905 | } | 
|  | 8906 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8907 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8908 | ax_compiler_ms=yes | 
|  | 8909 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8910 | ax_compiler_ms=no | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8911 | fi | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8913 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
|  | 8914 |  | 
|  | 8915 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8917 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8918 | if test X$ax_compiler_ms = Xno; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8919 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" | 
|  | 8920 | fi | 
|  | 8921 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8922 | ax_save_CPPFLAGS=$CPPFLAGS | 
|  | 8923 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
|  | 8924 | for ac_header in CL/cl.h OpenCL/cl.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8925 | do : | 
|  | 8926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8927 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 8928 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8929 | cat >>confdefs.h <<_ACEOF | 
|  | 8930 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8931 | _ACEOF | 
|  | 8932 |  | 
|  | 8933 | fi | 
|  | 8934 |  | 
|  | 8935 | done | 
|  | 8936 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8937 | CPPFLAGS=$ax_save_CPPFLAGS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8938 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8939 | for ac_header in windows.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8940 | do : | 
|  | 8941 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | 
|  | 8942 | if test "x$ac_cv_header_windows_h" = x""yes; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8943 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8944 | #define HAVE_WINDOWS_H 1 | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8945 | _ACEOF | 
|  | 8946 |  | 
|  | 8947 | fi | 
|  | 8948 |  | 
|  | 8949 | done | 
|  | 8950 |  | 
|  | 8951 |  | 
|  | 8952 |  | 
|  | 8953 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8955 | $as_echo_n "checking for OpenCL library... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8956 | if test "${ax_cv_check_cl_libcl+set}" = set; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8957 | $as_echo_n "(cached) " >&6 | 
|  | 8958 | else | 
|  | 8959 | ax_cv_check_cl_libcl=no | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8960 | case $host_cpu in | 
|  | 8961 | x86_64) ax_check_cl_libdir=lib64 ;; | 
|  | 8962 | *)      ax_check_cl_libdir=lib ;; | 
|  | 8963 | esac | 
|  | 8964 | ax_save_CPPFLAGS=$CPPFLAGS | 
|  | 8965 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
|  | 8966 | ax_save_LIBS=$LIBS | 
|  | 8967 | LIBS="" | 
|  | 8968 | ax_check_libs="-lOpenCL -lCL -lclparser" | 
|  | 8969 | for ax_lib in $ax_check_libs; do | 
|  | 8970 | if test X$ax_compiler_ms = Xyes; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8971 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` | 
|  | 8972 | else | 
|  | 8973 | ax_try_lib=$ax_lib | 
|  | 8974 | fi | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8975 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" | 
|  | 8976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8977 | /* end confdefs.h.  */ | 
|  | 8978 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 8979 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 8980 | #   include <windows.h> | 
|  | 8981 | # endif | 
|  | 8982 | # ifdef HAVE_CL_CL_H | 
|  | 8983 | #   include <CL/cl.h> | 
|  | 8984 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 8985 | #   include <OpenCL/cl.h> | 
|  | 8986 | # else | 
|  | 8987 | #   error no CL.h | 
|  | 8988 | # endif | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8989 | int | 
|  | 8990 | main () | 
|  | 8991 | { | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 8992 | clCreateContextFromType(0,0,0,0,0) | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8993 | ; | 
|  | 8994 | return 0; | 
|  | 8995 | } | 
|  | 8996 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8997 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8998 | ax_cv_check_cl_libcl=$ax_try_lib; break | 
|  | 8999 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9000 | 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" | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9002 | /* end confdefs.h.  */ | 
|  | 9003 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9004 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9005 | #   include <windows.h> | 
|  | 9006 | # endif | 
|  | 9007 | # ifdef HAVE_CL_CL_H | 
|  | 9008 | #   include <CL/cl.h> | 
|  | 9009 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9010 | #   include <OpenCL/cl.h> | 
|  | 9011 | # else | 
|  | 9012 | #   error no CL.h | 
|  | 9013 | # endif | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9014 | int | 
|  | 9015 | main () | 
|  | 9016 | { | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9017 | clCreateContextFromType(0,0,0,0,0) | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9018 | ; | 
|  | 9019 | return 0; | 
|  | 9020 | } | 
|  | 9021 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9022 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9023 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break | 
|  | 9024 | else | 
| cristy | 4dc4443 | 2009-12-30 23:30:06 +0000 | [diff] [blame] | 9025 | ax_check_cl_dylib_flag='-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 | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9027 | /* end confdefs.h.  */ | 
|  | 9028 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9029 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9030 | #   include <windows.h> | 
|  | 9031 | # endif | 
|  | 9032 | # ifdef HAVE_CL_CL_H | 
|  | 9033 | #   include <CL/cl.h> | 
|  | 9034 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9035 | #   include <OpenCL/cl.h> | 
|  | 9036 | # else | 
|  | 9037 | #   error no CL.h | 
|  | 9038 | # endif | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9039 | int | 
|  | 9040 | main () | 
|  | 9041 | { | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9042 | clCreateContextFromType(0,0,0,0,0) | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9043 | ; | 
|  | 9044 | return 0; | 
|  | 9045 | } | 
|  | 9046 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9047 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9048 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9049 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9050 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9051 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9052 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9053 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9054 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9055 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9056 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9057 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9058 | done | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9059 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9060 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9061 | LIBS='-framework OpenCL' | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9063 | /* end confdefs.h.  */ | 
|  | 9064 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9065 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9066 | #   include <windows.h> | 
|  | 9067 | # endif | 
|  | 9068 | # ifdef HAVE_CL_CL_H | 
|  | 9069 | #   include <CL/cl.h> | 
|  | 9070 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9071 | #   include <OpenCL/cl.h> | 
|  | 9072 | # else | 
|  | 9073 | #   error no CL.h | 
|  | 9074 | # endif | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9075 | int | 
|  | 9076 | main () | 
|  | 9077 | { | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9078 | clCreateContextFromType(0,0,0,0,0) | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9079 | ; | 
|  | 9080 | return 0; | 
|  | 9081 | } | 
|  | 9082 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9083 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9084 | ax_cv_check_cl_libcl=$LIBS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9085 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9086 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9087 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9088 | fi | 
|  | 9089 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9090 | LIBS=$ax_save_LIBS | 
|  | 9091 | CPPFLAGS=$ax_save_CPPFLAGS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9092 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9094 | $as_echo "$ax_cv_check_cl_libcl" >&6; } | 
|  | 9095 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9096 | if test "X$ax_cv_check_cl_libcl" = Xno; then : | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9097 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" | 
|  | 9098 | else | 
| cristy | 99cc300 | 2010-01-21 14:50:11 +0000 | [diff] [blame] | 9099 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; | 
|  | 9100 | $as_echo "#define _OPENCL 1" >>confdefs.h | 
|  | 9101 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9102 | fi | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9103 | ac_ext=c | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9104 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 9105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 9108 |  | 
| cristy | 43596fe | 2010-01-21 16:46:08 +0000 | [diff] [blame] | 9109 | fi | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9110 |  | 
|  | 9111 |  | 
|  | 9112 |  | 
|  | 9113 |  | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9114 | CFLAGS="$CL_CFLAGS $CFLAGS" | 
|  | 9115 | LIBS="$CL_LIBS $LIBS" | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9116 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9117 | if test "_OPENCL" = '1'; then | 
|  | 9118 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" | 
|  | 9119 | fi | 
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 9120 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9121 | ######## | 
|  | 9122 | # | 
|  | 9123 | # Check for large file support | 
|  | 9124 | # | 
|  | 9125 | ######## | 
|  | 9126 | # Check whether --enable-largefile was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9127 | if test "${enable_largefile+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9128 | enableval=$enable_largefile; | 
|  | 9129 | fi | 
|  | 9130 |  | 
|  | 9131 | if test "$enable_largefile" != no; then | 
|  | 9132 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9133 | { $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] | 9134 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9135 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9136 | $as_echo_n "(cached) " >&6 | 
|  | 9137 | else | 
|  | 9138 | ac_cv_sys_largefile_CC=no | 
|  | 9139 | if test "$GCC" != yes; then | 
|  | 9140 | ac_save_CC=$CC | 
|  | 9141 | while :; do | 
|  | 9142 | # IRIX 6.2 and later do not support large files by default, | 
|  | 9143 | # so use the C compiler's -n32 option if that helps. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9145 | /* end confdefs.h.  */ | 
|  | 9146 | #include <sys/types.h> | 
|  | 9147 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9148 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9149 | since some C++ compilers masquerading as C compilers | 
|  | 9150 | incorrectly reject 9223372036854775807.  */ | 
|  | 9151 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9152 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9153 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9154 | ? 1 : -1]; | 
|  | 9155 | int | 
|  | 9156 | main () | 
|  | 9157 | { | 
|  | 9158 |  | 
|  | 9159 | ; | 
|  | 9160 | return 0; | 
|  | 9161 | } | 
|  | 9162 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9163 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9164 | break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9165 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9166 | rm -f core conftest.err conftest.$ac_objext | 
|  | 9167 | CC="$CC -n32" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9168 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9169 | ac_cv_sys_largefile_CC=' -n32'; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9170 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9171 | rm -f core conftest.err conftest.$ac_objext | 
|  | 9172 | break | 
|  | 9173 | done | 
|  | 9174 | CC=$ac_save_CC | 
|  | 9175 | rm -f conftest.$ac_ext | 
|  | 9176 | fi | 
|  | 9177 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9178 | { $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] | 9179 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | 
|  | 9180 | if test "$ac_cv_sys_largefile_CC" != no; then | 
|  | 9181 | CC=$CC$ac_cv_sys_largefile_CC | 
|  | 9182 | fi | 
|  | 9183 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9184 | { $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] | 9185 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9186 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9187 | $as_echo_n "(cached) " >&6 | 
|  | 9188 | else | 
|  | 9189 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9191 | /* end confdefs.h.  */ | 
|  | 9192 | #include <sys/types.h> | 
|  | 9193 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9194 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9195 | since some C++ compilers masquerading as C compilers | 
|  | 9196 | incorrectly reject 9223372036854775807.  */ | 
|  | 9197 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9198 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9199 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9200 | ? 1 : -1]; | 
|  | 9201 | int | 
|  | 9202 | main () | 
|  | 9203 | { | 
|  | 9204 |  | 
|  | 9205 | ; | 
|  | 9206 | return 0; | 
|  | 9207 | } | 
|  | 9208 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9209 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9210 | ac_cv_sys_file_offset_bits=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9211 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9214 | /* end confdefs.h.  */ | 
|  | 9215 | #define _FILE_OFFSET_BITS 64 | 
|  | 9216 | #include <sys/types.h> | 
|  | 9217 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9218 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9219 | since some C++ compilers masquerading as C compilers | 
|  | 9220 | incorrectly reject 9223372036854775807.  */ | 
|  | 9221 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9222 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9223 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9224 | ? 1 : -1]; | 
|  | 9225 | int | 
|  | 9226 | main () | 
|  | 9227 | { | 
|  | 9228 |  | 
|  | 9229 | ; | 
|  | 9230 | return 0; | 
|  | 9231 | } | 
|  | 9232 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9233 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9234 | ac_cv_sys_file_offset_bits=64; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9235 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9237 | ac_cv_sys_file_offset_bits=unknown | 
|  | 9238 | break | 
|  | 9239 | done | 
|  | 9240 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9241 | { $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] | 9242 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | 
|  | 9243 | case $ac_cv_sys_file_offset_bits in #( | 
|  | 9244 | no | unknown) ;; | 
|  | 9245 | *) | 
|  | 9246 | cat >>confdefs.h <<_ACEOF | 
|  | 9247 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 
|  | 9248 | _ACEOF | 
|  | 9249 | ;; | 
|  | 9250 | esac | 
|  | 9251 | rm -rf conftest* | 
|  | 9252 | if test $ac_cv_sys_file_offset_bits = unknown; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9253 | { $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] | 9254 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9255 | if test "${ac_cv_sys_large_files+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9256 | $as_echo_n "(cached) " >&6 | 
|  | 9257 | else | 
|  | 9258 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9260 | /* end confdefs.h.  */ | 
|  | 9261 | #include <sys/types.h> | 
|  | 9262 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9263 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9264 | since some C++ compilers masquerading as C compilers | 
|  | 9265 | incorrectly reject 9223372036854775807.  */ | 
|  | 9266 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9267 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9268 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9269 | ? 1 : -1]; | 
|  | 9270 | int | 
|  | 9271 | main () | 
|  | 9272 | { | 
|  | 9273 |  | 
|  | 9274 | ; | 
|  | 9275 | return 0; | 
|  | 9276 | } | 
|  | 9277 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9278 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9279 | ac_cv_sys_large_files=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9280 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9283 | /* end confdefs.h.  */ | 
|  | 9284 | #define _LARGE_FILES 1 | 
|  | 9285 | #include <sys/types.h> | 
|  | 9286 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9287 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9288 | since some C++ compilers masquerading as C compilers | 
|  | 9289 | incorrectly reject 9223372036854775807.  */ | 
|  | 9290 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9291 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9292 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9293 | ? 1 : -1]; | 
|  | 9294 | int | 
|  | 9295 | main () | 
|  | 9296 | { | 
|  | 9297 |  | 
|  | 9298 | ; | 
|  | 9299 | return 0; | 
|  | 9300 | } | 
|  | 9301 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9302 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9303 | ac_cv_sys_large_files=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9304 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9306 | ac_cv_sys_large_files=unknown | 
|  | 9307 | break | 
|  | 9308 | done | 
|  | 9309 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9310 | { $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] | 9311 | $as_echo "$ac_cv_sys_large_files" >&6; } | 
|  | 9312 | case $ac_cv_sys_large_files in #( | 
|  | 9313 | no | unknown) ;; | 
|  | 9314 | *) | 
|  | 9315 | cat >>confdefs.h <<_ACEOF | 
|  | 9316 | #define _LARGE_FILES $ac_cv_sys_large_files | 
|  | 9317 | _ACEOF | 
|  | 9318 | ;; | 
|  | 9319 | esac | 
|  | 9320 | rm -rf conftest* | 
|  | 9321 | fi | 
|  | 9322 | fi | 
|  | 9323 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9324 | { $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] | 9325 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9326 | if test "${ac_cv_sys_largefile_source+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9327 | $as_echo_n "(cached) " >&6 | 
|  | 9328 | else | 
|  | 9329 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9331 | /* end confdefs.h.  */ | 
|  | 9332 | #include <sys/types.h> /* for off_t */ | 
|  | 9333 | #include <stdio.h> | 
|  | 9334 | int | 
|  | 9335 | main () | 
|  | 9336 | { | 
|  | 9337 | int (*fp) (FILE *, off_t, int) = fseeko; | 
|  | 9338 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
|  | 9339 | ; | 
|  | 9340 | return 0; | 
|  | 9341 | } | 
|  | 9342 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9343 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9344 | ac_cv_sys_largefile_source=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9345 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9346 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9347 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9349 | /* end confdefs.h.  */ | 
|  | 9350 | #define _LARGEFILE_SOURCE 1 | 
|  | 9351 | #include <sys/types.h> /* for off_t */ | 
|  | 9352 | #include <stdio.h> | 
|  | 9353 | int | 
|  | 9354 | main () | 
|  | 9355 | { | 
|  | 9356 | int (*fp) (FILE *, off_t, int) = fseeko; | 
|  | 9357 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
|  | 9358 | ; | 
|  | 9359 | return 0; | 
|  | 9360 | } | 
|  | 9361 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9362 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9363 | ac_cv_sys_largefile_source=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9364 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9365 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9366 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9367 | ac_cv_sys_largefile_source=unknown | 
|  | 9368 | break | 
|  | 9369 | done | 
|  | 9370 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9371 | { $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] | 9372 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | 
|  | 9373 | case $ac_cv_sys_largefile_source in #( | 
|  | 9374 | no | unknown) ;; | 
|  | 9375 | *) | 
|  | 9376 | cat >>confdefs.h <<_ACEOF | 
|  | 9377 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 
|  | 9378 | _ACEOF | 
|  | 9379 | ;; | 
|  | 9380 | esac | 
|  | 9381 | rm -rf conftest* | 
|  | 9382 |  | 
|  | 9383 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 
|  | 9384 | # in glibc 2.1.3, but that breaks too many other things. | 
|  | 9385 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 
|  | 9386 | if test $ac_cv_sys_largefile_source != unknown; then | 
|  | 9387 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9388 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9389 |  | 
|  | 9390 | fi | 
|  | 9391 |  | 
|  | 9392 | LFS_CPPFLAGS='' | 
|  | 9393 | if test "$enable_largefile" != no; then | 
|  | 9394 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then | 
|  | 9395 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" | 
|  | 9396 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9397 | { $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] | 9398 | $as_echo_n "checking for native large file support... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9399 | if test "$cross_compiling" = yes; then : | 
|  | 9400 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9401 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9402 | as_fn_error $? "cannot run test program while cross compiling | 
|  | 9403 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9404 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9406 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9407 | #include <unistd.h> | 
|  | 9408 | main () { | 
|  | 9409 | exit(!(sizeof(off_t) == 8)); | 
|  | 9410 | } | 
|  | 9411 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9412 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9413 | 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] | 9414 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9416 | $as_echo "yes" >&6; } | 
|  | 9417 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9419 | $as_echo "no" >&6; } | 
|  | 9420 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9422 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9423 | fi | 
|  | 9424 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9425 | fi | 
|  | 9426 | if test "$ac_cv_sys_large_files" != 'no'; then | 
|  | 9427 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" | 
|  | 9428 | fi | 
|  | 9429 | if test "$ac_cv_sys_largefile_source" != 'no'; then | 
|  | 9430 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" | 
|  | 9431 | fi | 
|  | 9432 | fi | 
|  | 9433 |  | 
|  | 9434 |  | 
|  | 9435 | # | 
|  | 9436 | # Configure libtool & libltdl | 
|  | 9437 | # | 
|  | 9438 | # Configure libtool | 
|  | 9439 | enable_dlopen=yes | 
|  | 9440 |  | 
|  | 9441 |  | 
|  | 9442 |  | 
|  | 9443 | case `pwd` in | 
|  | 9444 | *\ * | *\	*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9445 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9446 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | 
|  | 9447 | esac | 
|  | 9448 |  | 
|  | 9449 |  | 
|  | 9450 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9451 | macro_version='2.2.10' | 
|  | 9452 | macro_revision='1.3175' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9453 |  | 
|  | 9454 |  | 
|  | 9455 |  | 
|  | 9456 |  | 
|  | 9457 |  | 
|  | 9458 |  | 
|  | 9459 |  | 
|  | 9460 |  | 
|  | 9461 |  | 
|  | 9462 |  | 
|  | 9463 |  | 
|  | 9464 |  | 
|  | 9465 |  | 
|  | 9466 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 9467 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9468 | # Backslashify metacharacters that are still active within | 
|  | 9469 | # double-quoted strings. | 
|  | 9470 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 
|  | 9471 |  | 
|  | 9472 | # Same as above, but do not quote variable references. | 
|  | 9473 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | 
|  | 9474 |  | 
|  | 9475 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|  | 9476 | # double_quote_subst'ed string. | 
|  | 9477 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|  | 9478 |  | 
|  | 9479 | # Sed substitution to delay expansion of an escaped single quote. | 
|  | 9480 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | 
|  | 9481 |  | 
|  | 9482 | # Sed substitution to avoid accidental globbing in evaled expressions | 
|  | 9483 | no_glob_subst='s/\*/\\\*/g' | 
|  | 9484 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9486 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9487 | if test "${lt_cv_path_NM+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9488 | $as_echo_n "(cached) " >&6 | 
|  | 9489 | else | 
|  | 9490 | if test -n "$NM"; then | 
|  | 9491 | # Let the user override the test. | 
|  | 9492 | lt_cv_path_NM="$NM" | 
|  | 9493 | else | 
|  | 9494 | lt_nm_to_check="${ac_tool_prefix}nm" | 
|  | 9495 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
|  | 9496 | lt_nm_to_check="$lt_nm_to_check nm" | 
|  | 9497 | fi | 
|  | 9498 | for lt_tmp_nm in $lt_nm_to_check; do | 
|  | 9499 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 9500 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
|  | 9501 | IFS="$lt_save_ifs" | 
|  | 9502 | test -z "$ac_dir" && ac_dir=. | 
|  | 9503 | tmp_nm="$ac_dir/$lt_tmp_nm" | 
|  | 9504 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 9505 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 9506 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 9507 | #   nm: unknown option "B" ignored | 
|  | 9508 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 9509 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 9510 | */dev/null* | *'Invalid file or object type'*) | 
|  | 9511 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 9512 | break | 
|  | 9513 | ;; | 
|  | 9514 | *) | 
|  | 9515 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 9516 | */dev/null*) | 
|  | 9517 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 9518 | break | 
|  | 9519 | ;; | 
|  | 9520 | *) | 
|  | 9521 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 9522 | continue # so that we can try to find one that supports BSD flags | 
|  | 9523 | ;; | 
|  | 9524 | esac | 
|  | 9525 | ;; | 
|  | 9526 | esac | 
|  | 9527 | fi | 
|  | 9528 | done | 
|  | 9529 | IFS="$lt_save_ifs" | 
|  | 9530 | done | 
|  | 9531 | : ${lt_cv_path_NM=no} | 
|  | 9532 | fi | 
|  | 9533 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9535 | $as_echo "$lt_cv_path_NM" >&6; } | 
|  | 9536 | if test "$lt_cv_path_NM" != "no"; then | 
|  | 9537 | NM="$lt_cv_path_NM" | 
|  | 9538 | else | 
|  | 9539 | # Didn't find any BSD compatible name lister, look for dumpbin. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9540 | if test -n "$DUMPBIN"; then : | 
|  | 9541 | # Let the user override the test. | 
|  | 9542 | else | 
|  | 9543 | if test -n "$ac_tool_prefix"; then | 
|  | 9544 | for ac_prog in dumpbin "link -dump" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9545 | do | 
|  | 9546 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 9547 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9549 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9550 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9551 | $as_echo_n "(cached) " >&6 | 
|  | 9552 | else | 
|  | 9553 | if test -n "$DUMPBIN"; then | 
|  | 9554 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | 
|  | 9555 | else | 
|  | 9556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9557 | for as_dir in $PATH | 
|  | 9558 | do | 
|  | 9559 | IFS=$as_save_IFS | 
|  | 9560 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9561 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 9563 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9564 | $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] | 9565 | break 2 | 
|  | 9566 | fi | 
|  | 9567 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9568 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9569 | IFS=$as_save_IFS | 
|  | 9570 |  | 
|  | 9571 | fi | 
|  | 9572 | fi | 
|  | 9573 | DUMPBIN=$ac_cv_prog_DUMPBIN | 
|  | 9574 | if test -n "$DUMPBIN"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9576 | $as_echo "$DUMPBIN" >&6; } | 
|  | 9577 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9579 | $as_echo "no" >&6; } | 
|  | 9580 | fi | 
|  | 9581 |  | 
|  | 9582 |  | 
|  | 9583 | test -n "$DUMPBIN" && break | 
|  | 9584 | done | 
|  | 9585 | fi | 
|  | 9586 | if test -z "$DUMPBIN"; then | 
|  | 9587 | ac_ct_DUMPBIN=$DUMPBIN | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9588 | for ac_prog in dumpbin "link -dump" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9589 | do | 
|  | 9590 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 9591 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9593 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9594 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9595 | $as_echo_n "(cached) " >&6 | 
|  | 9596 | else | 
|  | 9597 | if test -n "$ac_ct_DUMPBIN"; then | 
|  | 9598 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | 
|  | 9599 | else | 
|  | 9600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9601 | for as_dir in $PATH | 
|  | 9602 | do | 
|  | 9603 | IFS=$as_save_IFS | 
|  | 9604 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9605 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 9607 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9608 | $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] | 9609 | break 2 | 
|  | 9610 | fi | 
|  | 9611 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9612 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9613 | IFS=$as_save_IFS | 
|  | 9614 |  | 
|  | 9615 | fi | 
|  | 9616 | fi | 
|  | 9617 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | 
|  | 9618 | if test -n "$ac_ct_DUMPBIN"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9620 | $as_echo "$ac_ct_DUMPBIN" >&6; } | 
|  | 9621 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9623 | $as_echo "no" >&6; } | 
|  | 9624 | fi | 
|  | 9625 |  | 
|  | 9626 |  | 
|  | 9627 | test -n "$ac_ct_DUMPBIN" && break | 
|  | 9628 | done | 
|  | 9629 |  | 
|  | 9630 | if test "x$ac_ct_DUMPBIN" = x; then | 
|  | 9631 | DUMPBIN=":" | 
|  | 9632 | else | 
|  | 9633 | case $cross_compiling:$ac_tool_warned in | 
|  | 9634 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9635 | { $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] | 9636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 9637 | ac_tool_warned=yes ;; | 
|  | 9638 | esac | 
|  | 9639 | DUMPBIN=$ac_ct_DUMPBIN | 
|  | 9640 | fi | 
|  | 9641 | fi | 
|  | 9642 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9643 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | 
|  | 9644 | *COFF*) | 
|  | 9645 | DUMPBIN="$DUMPBIN -symbols" | 
|  | 9646 | ;; | 
|  | 9647 | *) | 
|  | 9648 | DUMPBIN=: | 
|  | 9649 | ;; | 
|  | 9650 | esac | 
|  | 9651 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9652 |  | 
|  | 9653 | if test "$DUMPBIN" != ":"; then | 
|  | 9654 | NM="$DUMPBIN" | 
|  | 9655 | fi | 
|  | 9656 | fi | 
|  | 9657 | test -z "$NM" && NM=nm | 
|  | 9658 |  | 
|  | 9659 |  | 
|  | 9660 |  | 
|  | 9661 |  | 
|  | 9662 |  | 
|  | 9663 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9665 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9666 | if test "${lt_cv_nm_interface+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9667 | $as_echo_n "(cached) " >&6 | 
|  | 9668 | else | 
|  | 9669 | lt_cv_nm_interface="BSD nm" | 
|  | 9670 | echo "int some_variable = 0;" > conftest.$ac_ext | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9671 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9672 | (eval "$ac_compile" 2>conftest.err) | 
|  | 9673 | cat conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9674 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9675 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 
|  | 9676 | cat conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9677 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9678 | cat conftest.out >&5 | 
|  | 9679 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 
|  | 9680 | lt_cv_nm_interface="MS dumpbin" | 
|  | 9681 | fi | 
|  | 9682 | rm -f conftest* | 
|  | 9683 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9685 | $as_echo "$lt_cv_nm_interface" >&6; } | 
|  | 9686 |  | 
|  | 9687 | # find the maximum length of command line arguments | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9689 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9690 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9691 | $as_echo_n "(cached) " >&6 | 
|  | 9692 | else | 
|  | 9693 | i=0 | 
|  | 9694 | teststring="ABCD" | 
|  | 9695 |  | 
|  | 9696 | case $build_os in | 
|  | 9697 | msdosdjgpp*) | 
|  | 9698 | # On DJGPP, this test can blow up pretty badly due to problems in libc | 
|  | 9699 | # (any single argument exceeding 2000 bytes causes a buffer overrun | 
|  | 9700 | # during glob expansion).  Even if it were fixed, the result of this | 
|  | 9701 | # check would be larger than it should be. | 
|  | 9702 | lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
|  | 9703 | ;; | 
|  | 9704 |  | 
|  | 9705 | gnu*) | 
|  | 9706 | # Under GNU Hurd, this test is not required because there is | 
|  | 9707 | # no limit to the length of command line arguments. | 
|  | 9708 | # Libtool will interpret -1 as no limit whatsoever | 
|  | 9709 | lt_cv_sys_max_cmd_len=-1; | 
|  | 9710 | ;; | 
|  | 9711 |  | 
|  | 9712 | cygwin* | mingw* | cegcc*) | 
|  | 9713 | # On Win9x/ME, this test blows up -- it succeeds, but takes | 
|  | 9714 | # about 5 minutes as the teststring grows exponentially. | 
|  | 9715 | # Worse, since 9x/ME are not pre-emptively multitasking, | 
|  | 9716 | # you end up with a "frozen" computer, even though with patience | 
|  | 9717 | # the test eventually succeeds (with a max line length of 256k). | 
|  | 9718 | # Instead, let's just punt: use the minimum linelength reported by | 
|  | 9719 | # all of the supported platforms: 8192 (on NT/2K/XP). | 
|  | 9720 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9721 | ;; | 
|  | 9722 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9723 | mint*) | 
|  | 9724 | # On MiNT this can take a long time and run out of memory. | 
|  | 9725 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9726 | ;; | 
|  | 9727 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9728 | amigaos*) | 
|  | 9729 | # On AmigaOS with pdksh, this test takes hours, literally. | 
|  | 9730 | # So we just punt and use a minimum line length of 8192. | 
|  | 9731 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9732 | ;; | 
|  | 9733 |  | 
|  | 9734 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 
|  | 9735 | # This has been around since 386BSD, at least.  Likely further. | 
|  | 9736 | if test -x /sbin/sysctl; then | 
|  | 9737 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
|  | 9738 | elif test -x /usr/sbin/sysctl; then | 
|  | 9739 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
|  | 9740 | else | 
|  | 9741 | lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs | 
|  | 9742 | fi | 
|  | 9743 | # And add a safety zone | 
|  | 9744 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 9745 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
|  | 9746 | ;; | 
|  | 9747 |  | 
|  | 9748 | interix*) | 
|  | 9749 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | 
|  | 9750 | lt_cv_sys_max_cmd_len=196608 | 
|  | 9751 | ;; | 
|  | 9752 |  | 
|  | 9753 | osf*) | 
|  | 9754 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 
|  | 9755 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 
|  | 9756 | # nice to cause kernel panics so lets avoid the loop below. | 
|  | 9757 | # First set a reasonable default. | 
|  | 9758 | lt_cv_sys_max_cmd_len=16384 | 
|  | 9759 | # | 
|  | 9760 | if test -x /sbin/sysconfig; then | 
|  | 9761 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 
|  | 9762 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | 
|  | 9763 | esac | 
|  | 9764 | fi | 
|  | 9765 | ;; | 
|  | 9766 | sco3.2v5*) | 
|  | 9767 | lt_cv_sys_max_cmd_len=102400 | 
|  | 9768 | ;; | 
|  | 9769 | sysv5* | sco5v6* | sysv4.2uw2*) | 
|  | 9770 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 
|  | 9771 | if test -n "$kargmax"; then | 
|  | 9772 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'` | 
|  | 9773 | else | 
|  | 9774 | lt_cv_sys_max_cmd_len=32768 | 
|  | 9775 | fi | 
|  | 9776 | ;; | 
|  | 9777 | *) | 
|  | 9778 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 
|  | 9779 | if test -n "$lt_cv_sys_max_cmd_len"; then | 
|  | 9780 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 9781 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
|  | 9782 | else | 
|  | 9783 | # Make teststring a little bigger before we do anything with it. | 
|  | 9784 | # a 1K string should be a reasonable start. | 
|  | 9785 | for i in 1 2 3 4 5 6 7 8 ; do | 
|  | 9786 | teststring=$teststring$teststring | 
|  | 9787 | done | 
|  | 9788 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
|  | 9789 | # If test is not a shell built-in, we'll probably end up computing a | 
|  | 9790 | # maximum length that is only half of the actual maximum length, but | 
|  | 9791 | # we can't tell. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 9792 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | 
|  | 9793 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9794 | test $i != 17 # 1/2 MB should be enough | 
|  | 9795 | do | 
|  | 9796 | i=`expr $i + 1` | 
|  | 9797 | teststring=$teststring$teststring | 
|  | 9798 | done | 
|  | 9799 | # Only check the string length outside the loop. | 
|  | 9800 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | 
|  | 9801 | teststring= | 
|  | 9802 | # Add a significant safety factor because C++ compilers can tack on | 
|  | 9803 | # massive amounts of additional arguments before passing them to the | 
|  | 9804 | # linker.  It appears as though 1/2 is a usable value. | 
|  | 9805 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
|  | 9806 | fi | 
|  | 9807 | ;; | 
|  | 9808 | esac | 
|  | 9809 |  | 
|  | 9810 | fi | 
|  | 9811 |  | 
|  | 9812 | if test -n $lt_cv_sys_max_cmd_len ; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9814 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | 
|  | 9815 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9817 | $as_echo "none" >&6; } | 
|  | 9818 | fi | 
|  | 9819 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 9820 |  | 
|  | 9821 |  | 
|  | 9822 |  | 
|  | 9823 |  | 
|  | 9824 |  | 
|  | 9825 |  | 
|  | 9826 | : ${CP="cp -f"} | 
|  | 9827 | : ${MV="mv -f"} | 
|  | 9828 | : ${RM="rm -f"} | 
|  | 9829 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9831 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | 
|  | 9832 | # Try some XSI features | 
|  | 9833 | xsi_shell=no | 
|  | 9834 | ( _lt_dummy="a/b/c" | 
|  | 9835 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | 
|  | 9836 | = c,a/b,, \ | 
|  | 9837 | && eval 'test $(( 1 + 1 )) -eq 2 \ | 
|  | 9838 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | 
|  | 9839 | && xsi_shell=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9841 | $as_echo "$xsi_shell" >&6; } | 
|  | 9842 |  | 
|  | 9843 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9845 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | 
|  | 9846 | lt_shell_append=no | 
|  | 9847 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | 
|  | 9848 | >/dev/null 2>&1 \ | 
|  | 9849 | && lt_shell_append=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9851 | $as_echo "$lt_shell_append" >&6; } | 
|  | 9852 |  | 
|  | 9853 |  | 
|  | 9854 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 9855 | lt_unset=unset | 
|  | 9856 | else | 
|  | 9857 | lt_unset=false | 
|  | 9858 | fi | 
|  | 9859 |  | 
|  | 9860 |  | 
|  | 9861 |  | 
|  | 9862 |  | 
|  | 9863 |  | 
|  | 9864 | # test EBCDIC or ASCII | 
|  | 9865 | case `echo X|tr X '\101'` in | 
|  | 9866 | A) # ASCII based system | 
|  | 9867 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | 
|  | 9868 | lt_SP2NL='tr \040 \012' | 
|  | 9869 | lt_NL2SP='tr \015\012 \040\040' | 
|  | 9870 | ;; | 
|  | 9871 | *) # EBCDIC based system | 
|  | 9872 | lt_SP2NL='tr \100 \n' | 
|  | 9873 | lt_NL2SP='tr \r\n \100\100' | 
|  | 9874 | ;; | 
|  | 9875 | esac | 
|  | 9876 |  | 
|  | 9877 |  | 
|  | 9878 |  | 
|  | 9879 |  | 
|  | 9880 |  | 
|  | 9881 |  | 
|  | 9882 |  | 
|  | 9883 |  | 
|  | 9884 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9886 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9887 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9888 | $as_echo_n "(cached) " >&6 | 
|  | 9889 | else | 
|  | 9890 | lt_cv_ld_reload_flag='-r' | 
|  | 9891 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9893 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | 
|  | 9894 | reload_flag=$lt_cv_ld_reload_flag | 
|  | 9895 | case $reload_flag in | 
|  | 9896 | "" | " "*) ;; | 
|  | 9897 | *) reload_flag=" $reload_flag" ;; | 
|  | 9898 | esac | 
|  | 9899 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 9900 | case $host_os in | 
|  | 9901 | darwin*) | 
|  | 9902 | if test "$GCC" = yes; then | 
|  | 9903 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 
|  | 9904 | else | 
|  | 9905 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 9906 | fi | 
|  | 9907 | ;; | 
|  | 9908 | esac | 
|  | 9909 |  | 
|  | 9910 |  | 
|  | 9911 |  | 
|  | 9912 |  | 
|  | 9913 |  | 
|  | 9914 |  | 
|  | 9915 |  | 
|  | 9916 |  | 
|  | 9917 |  | 
|  | 9918 | if test -n "$ac_tool_prefix"; then | 
|  | 9919 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
|  | 9920 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9922 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9923 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9924 | $as_echo_n "(cached) " >&6 | 
|  | 9925 | else | 
|  | 9926 | if test -n "$OBJDUMP"; then | 
|  | 9927 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
|  | 9928 | else | 
|  | 9929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9930 | for as_dir in $PATH | 
|  | 9931 | do | 
|  | 9932 | IFS=$as_save_IFS | 
|  | 9933 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9934 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 9936 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9937 | $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] | 9938 | break 2 | 
|  | 9939 | fi | 
|  | 9940 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9941 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9942 | IFS=$as_save_IFS | 
|  | 9943 |  | 
|  | 9944 | fi | 
|  | 9945 | fi | 
|  | 9946 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
|  | 9947 | if test -n "$OBJDUMP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9949 | $as_echo "$OBJDUMP" >&6; } | 
|  | 9950 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9952 | $as_echo "no" >&6; } | 
|  | 9953 | fi | 
|  | 9954 |  | 
|  | 9955 |  | 
|  | 9956 | fi | 
|  | 9957 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
|  | 9958 | ac_ct_OBJDUMP=$OBJDUMP | 
|  | 9959 | # Extract the first word of "objdump", so it can be a program name with args. | 
|  | 9960 | set dummy objdump; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9962 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9963 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9964 | $as_echo_n "(cached) " >&6 | 
|  | 9965 | else | 
|  | 9966 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 9967 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
|  | 9968 | else | 
|  | 9969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9970 | for as_dir in $PATH | 
|  | 9971 | do | 
|  | 9972 | IFS=$as_save_IFS | 
|  | 9973 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9974 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 9976 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9977 | $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] | 9978 | break 2 | 
|  | 9979 | fi | 
|  | 9980 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9981 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9982 | IFS=$as_save_IFS | 
|  | 9983 |  | 
|  | 9984 | fi | 
|  | 9985 | fi | 
|  | 9986 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
|  | 9987 | if test -n "$ac_ct_OBJDUMP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9989 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
|  | 9990 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9992 | $as_echo "no" >&6; } | 
|  | 9993 | fi | 
|  | 9994 |  | 
|  | 9995 | if test "x$ac_ct_OBJDUMP" = x; then | 
|  | 9996 | OBJDUMP="false" | 
|  | 9997 | else | 
|  | 9998 | case $cross_compiling:$ac_tool_warned in | 
|  | 9999 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10000 | { $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] | 10001 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10002 | ac_tool_warned=yes ;; | 
|  | 10003 | esac | 
|  | 10004 | OBJDUMP=$ac_ct_OBJDUMP | 
|  | 10005 | fi | 
|  | 10006 | else | 
|  | 10007 | OBJDUMP="$ac_cv_prog_OBJDUMP" | 
|  | 10008 | fi | 
|  | 10009 |  | 
|  | 10010 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 10011 |  | 
|  | 10012 |  | 
|  | 10013 |  | 
|  | 10014 |  | 
|  | 10015 |  | 
|  | 10016 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10018 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10019 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10020 | $as_echo_n "(cached) " >&6 | 
|  | 10021 | else | 
|  | 10022 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|  | 10023 | lt_cv_file_magic_test_file= | 
|  | 10024 | lt_cv_deplibs_check_method='unknown' | 
|  | 10025 | # Need to set the preceding variable on all platforms that support | 
|  | 10026 | # interlibrary dependencies. | 
|  | 10027 | # 'none' -- dependencies not supported. | 
|  | 10028 | # `unknown' -- same as none, but documents that we really don't know. | 
|  | 10029 | # 'pass_all' -- all dependencies passed with no checks. | 
|  | 10030 | # 'test_compile' -- check by making test program. | 
|  | 10031 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
|  | 10032 | # which responds to the $file_magic_cmd with a given extended regex. | 
|  | 10033 | # If you have `file' or equivalent on your system and you're not sure | 
|  | 10034 | # whether `pass_all' will *always* work, you probably want this one. | 
|  | 10035 |  | 
|  | 10036 | case $host_os in | 
|  | 10037 | aix[4-9]*) | 
|  | 10038 | lt_cv_deplibs_check_method=pass_all | 
|  | 10039 | ;; | 
|  | 10040 |  | 
|  | 10041 | beos*) | 
|  | 10042 | lt_cv_deplibs_check_method=pass_all | 
|  | 10043 | ;; | 
|  | 10044 |  | 
|  | 10045 | bsdi[45]*) | 
|  | 10046 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|  | 10047 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 10048 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 10049 | ;; | 
|  | 10050 |  | 
|  | 10051 | cygwin*) | 
|  | 10052 | # func_win32_libid is a shell function defined in ltmain.sh | 
|  | 10053 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 10054 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 10055 | ;; | 
|  | 10056 |  | 
|  | 10057 | mingw* | pw32*) | 
|  | 10058 | # Base MSYS/MinGW do not provide the 'file' command needed by | 
|  | 10059 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | 
|  | 10060 | # unless we find 'file', for example because we are cross-compiling. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10061 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | 
|  | 10062 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10063 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 10064 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 10065 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10066 | # Keep this pattern in sync with the one in func_win32_libid. | 
|  | 10067 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10068 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|  | 10069 | fi | 
|  | 10070 | ;; | 
|  | 10071 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10072 | cegcc*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10073 | # use the weaker test based on 'objdump'. See mingw*. | 
|  | 10074 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 
|  | 10075 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|  | 10076 | ;; | 
|  | 10077 |  | 
|  | 10078 | darwin* | rhapsody*) | 
|  | 10079 | lt_cv_deplibs_check_method=pass_all | 
|  | 10080 | ;; | 
|  | 10081 |  | 
|  | 10082 | freebsd* | dragonfly*) | 
|  | 10083 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
|  | 10084 | case $host_cpu in | 
|  | 10085 | i*86 ) | 
|  | 10086 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|  | 10087 | # Let's accept both of them until this is cleared up. | 
|  | 10088 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | 
|  | 10089 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10090 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 10091 | ;; | 
|  | 10092 | esac | 
|  | 10093 | else | 
|  | 10094 | lt_cv_deplibs_check_method=pass_all | 
|  | 10095 | fi | 
|  | 10096 | ;; | 
|  | 10097 |  | 
|  | 10098 | gnu*) | 
|  | 10099 | lt_cv_deplibs_check_method=pass_all | 
|  | 10100 | ;; | 
|  | 10101 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10102 | haiku*) | 
|  | 10103 | lt_cv_deplibs_check_method=pass_all | 
|  | 10104 | ;; | 
|  | 10105 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10106 | hpux10.20* | hpux11*) | 
|  | 10107 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10108 | case $host_cpu in | 
|  | 10109 | ia64*) | 
|  | 10110 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|  | 10111 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|  | 10112 | ;; | 
|  | 10113 | hppa*64*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10114 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10115 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
|  | 10116 | ;; | 
|  | 10117 | *) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10118 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10119 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|  | 10120 | ;; | 
|  | 10121 | esac | 
|  | 10122 | ;; | 
|  | 10123 |  | 
|  | 10124 | interix[3-9]*) | 
|  | 10125 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 
|  | 10126 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | 
|  | 10127 | ;; | 
|  | 10128 |  | 
|  | 10129 | irix5* | irix6* | nonstopux*) | 
|  | 10130 | case $LD in | 
|  | 10131 | *-32|*"-32 ") libmagic=32-bit;; | 
|  | 10132 | *-n32|*"-n32 ") libmagic=N32;; | 
|  | 10133 | *-64|*"-64 ") libmagic=64-bit;; | 
|  | 10134 | *) libmagic=never-match;; | 
|  | 10135 | esac | 
|  | 10136 | lt_cv_deplibs_check_method=pass_all | 
|  | 10137 | ;; | 
|  | 10138 |  | 
|  | 10139 | # This must be Linux ELF. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10140 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10141 | lt_cv_deplibs_check_method=pass_all | 
|  | 10142 | ;; | 
|  | 10143 |  | 
|  | 10144 | netbsd*) | 
|  | 10145 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
|  | 10146 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10147 | else | 
|  | 10148 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
|  | 10149 | fi | 
|  | 10150 | ;; | 
|  | 10151 |  | 
|  | 10152 | newos6*) | 
|  | 10153 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|  | 10154 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10155 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|  | 10156 | ;; | 
|  | 10157 |  | 
|  | 10158 | *nto* | *qnx*) | 
|  | 10159 | lt_cv_deplibs_check_method=pass_all | 
|  | 10160 | ;; | 
|  | 10161 |  | 
|  | 10162 | openbsd*) | 
|  | 10163 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 10164 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
|  | 10165 | else | 
|  | 10166 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10167 | fi | 
|  | 10168 | ;; | 
|  | 10169 |  | 
|  | 10170 | osf3* | osf4* | osf5*) | 
|  | 10171 | lt_cv_deplibs_check_method=pass_all | 
|  | 10172 | ;; | 
|  | 10173 |  | 
|  | 10174 | rdos*) | 
|  | 10175 | lt_cv_deplibs_check_method=pass_all | 
|  | 10176 | ;; | 
|  | 10177 |  | 
|  | 10178 | solaris*) | 
|  | 10179 | lt_cv_deplibs_check_method=pass_all | 
|  | 10180 | ;; | 
|  | 10181 |  | 
|  | 10182 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 10183 | lt_cv_deplibs_check_method=pass_all | 
|  | 10184 | ;; | 
|  | 10185 |  | 
|  | 10186 | sysv4 | sysv4.3*) | 
|  | 10187 | case $host_vendor in | 
|  | 10188 | motorola) | 
|  | 10189 | 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]' | 
|  | 10190 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|  | 10191 | ;; | 
|  | 10192 | ncr) | 
|  | 10193 | lt_cv_deplibs_check_method=pass_all | 
|  | 10194 | ;; | 
|  | 10195 | sequent) | 
|  | 10196 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10197 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|  | 10198 | ;; | 
|  | 10199 | sni) | 
|  | 10200 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10201 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|  | 10202 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 10203 | ;; | 
|  | 10204 | siemens) | 
|  | 10205 | lt_cv_deplibs_check_method=pass_all | 
|  | 10206 | ;; | 
|  | 10207 | pc) | 
|  | 10208 | lt_cv_deplibs_check_method=pass_all | 
|  | 10209 | ;; | 
|  | 10210 | esac | 
|  | 10211 | ;; | 
|  | 10212 |  | 
|  | 10213 | tpf*) | 
|  | 10214 | lt_cv_deplibs_check_method=pass_all | 
|  | 10215 | ;; | 
|  | 10216 | esac | 
|  | 10217 |  | 
|  | 10218 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10220 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | 
|  | 10221 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|  | 10222 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|  | 10223 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
|  | 10224 |  | 
|  | 10225 |  | 
|  | 10226 |  | 
|  | 10227 |  | 
|  | 10228 |  | 
|  | 10229 |  | 
|  | 10230 |  | 
|  | 10231 |  | 
|  | 10232 |  | 
|  | 10233 |  | 
|  | 10234 |  | 
|  | 10235 |  | 
|  | 10236 | if test -n "$ac_tool_prefix"; then | 
|  | 10237 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
|  | 10238 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10240 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10241 | if test "${ac_cv_prog_AR+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10242 | $as_echo_n "(cached) " >&6 | 
|  | 10243 | else | 
|  | 10244 | if test -n "$AR"; then | 
|  | 10245 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 10246 | else | 
|  | 10247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10248 | for as_dir in $PATH | 
|  | 10249 | do | 
|  | 10250 | IFS=$as_save_IFS | 
|  | 10251 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10252 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10254 | ac_cv_prog_AR="${ac_tool_prefix}ar" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10255 | $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] | 10256 | break 2 | 
|  | 10257 | fi | 
|  | 10258 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10259 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10260 | IFS=$as_save_IFS | 
|  | 10261 |  | 
|  | 10262 | fi | 
|  | 10263 | fi | 
|  | 10264 | AR=$ac_cv_prog_AR | 
|  | 10265 | if test -n "$AR"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10267 | $as_echo "$AR" >&6; } | 
|  | 10268 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10270 | $as_echo "no" >&6; } | 
|  | 10271 | fi | 
|  | 10272 |  | 
|  | 10273 |  | 
|  | 10274 | fi | 
|  | 10275 | if test -z "$ac_cv_prog_AR"; then | 
|  | 10276 | ac_ct_AR=$AR | 
|  | 10277 | # Extract the first word of "ar", so it can be a program name with args. | 
|  | 10278 | set dummy ar; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10280 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10281 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10282 | $as_echo_n "(cached) " >&6 | 
|  | 10283 | else | 
|  | 10284 | if test -n "$ac_ct_AR"; then | 
|  | 10285 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 10286 | else | 
|  | 10287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10288 | for as_dir in $PATH | 
|  | 10289 | do | 
|  | 10290 | IFS=$as_save_IFS | 
|  | 10291 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10292 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10294 | ac_cv_prog_ac_ct_AR="ar" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10295 | $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] | 10296 | break 2 | 
|  | 10297 | fi | 
|  | 10298 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10299 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10300 | IFS=$as_save_IFS | 
|  | 10301 |  | 
|  | 10302 | fi | 
|  | 10303 | fi | 
|  | 10304 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 10305 | if test -n "$ac_ct_AR"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10307 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 10308 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10310 | $as_echo "no" >&6; } | 
|  | 10311 | fi | 
|  | 10312 |  | 
|  | 10313 | if test "x$ac_ct_AR" = x; then | 
|  | 10314 | AR="false" | 
|  | 10315 | else | 
|  | 10316 | case $cross_compiling:$ac_tool_warned in | 
|  | 10317 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10318 | { $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] | 10319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10320 | ac_tool_warned=yes ;; | 
|  | 10321 | esac | 
|  | 10322 | AR=$ac_ct_AR | 
|  | 10323 | fi | 
|  | 10324 | else | 
|  | 10325 | AR="$ac_cv_prog_AR" | 
|  | 10326 | fi | 
|  | 10327 |  | 
|  | 10328 | test -z "$AR" && AR=ar | 
|  | 10329 | test -z "$AR_FLAGS" && AR_FLAGS=cru | 
|  | 10330 |  | 
|  | 10331 |  | 
|  | 10332 |  | 
|  | 10333 |  | 
|  | 10334 |  | 
|  | 10335 |  | 
|  | 10336 |  | 
|  | 10337 |  | 
|  | 10338 |  | 
|  | 10339 |  | 
|  | 10340 |  | 
|  | 10341 | if test -n "$ac_tool_prefix"; then | 
|  | 10342 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 10343 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10345 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10346 | if test "${ac_cv_prog_STRIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10347 | $as_echo_n "(cached) " >&6 | 
|  | 10348 | else | 
|  | 10349 | if test -n "$STRIP"; then | 
|  | 10350 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 10351 | else | 
|  | 10352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10353 | for as_dir in $PATH | 
|  | 10354 | do | 
|  | 10355 | IFS=$as_save_IFS | 
|  | 10356 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10357 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10359 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10360 | $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] | 10361 | break 2 | 
|  | 10362 | fi | 
|  | 10363 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10364 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10365 | IFS=$as_save_IFS | 
|  | 10366 |  | 
|  | 10367 | fi | 
|  | 10368 | fi | 
|  | 10369 | STRIP=$ac_cv_prog_STRIP | 
|  | 10370 | if test -n "$STRIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10372 | $as_echo "$STRIP" >&6; } | 
|  | 10373 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10375 | $as_echo "no" >&6; } | 
|  | 10376 | fi | 
|  | 10377 |  | 
|  | 10378 |  | 
|  | 10379 | fi | 
|  | 10380 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 10381 | ac_ct_STRIP=$STRIP | 
|  | 10382 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 10383 | set dummy strip; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10385 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10386 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10387 | $as_echo_n "(cached) " >&6 | 
|  | 10388 | else | 
|  | 10389 | if test -n "$ac_ct_STRIP"; then | 
|  | 10390 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 10391 | else | 
|  | 10392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10393 | for as_dir in $PATH | 
|  | 10394 | do | 
|  | 10395 | IFS=$as_save_IFS | 
|  | 10396 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10397 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10399 | ac_cv_prog_ac_ct_STRIP="strip" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10400 | $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] | 10401 | break 2 | 
|  | 10402 | fi | 
|  | 10403 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10404 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10405 | IFS=$as_save_IFS | 
|  | 10406 |  | 
|  | 10407 | fi | 
|  | 10408 | fi | 
|  | 10409 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 10410 | if test -n "$ac_ct_STRIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10412 | $as_echo "$ac_ct_STRIP" >&6; } | 
|  | 10413 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10415 | $as_echo "no" >&6; } | 
|  | 10416 | fi | 
|  | 10417 |  | 
|  | 10418 | if test "x$ac_ct_STRIP" = x; then | 
|  | 10419 | STRIP=":" | 
|  | 10420 | else | 
|  | 10421 | case $cross_compiling:$ac_tool_warned in | 
|  | 10422 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10423 | { $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] | 10424 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10425 | ac_tool_warned=yes ;; | 
|  | 10426 | esac | 
|  | 10427 | STRIP=$ac_ct_STRIP | 
|  | 10428 | fi | 
|  | 10429 | else | 
|  | 10430 | STRIP="$ac_cv_prog_STRIP" | 
|  | 10431 | fi | 
|  | 10432 |  | 
|  | 10433 | test -z "$STRIP" && STRIP=: | 
|  | 10434 |  | 
|  | 10435 |  | 
|  | 10436 |  | 
|  | 10437 |  | 
|  | 10438 |  | 
|  | 10439 |  | 
|  | 10440 | if test -n "$ac_tool_prefix"; then | 
|  | 10441 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 10442 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10444 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10445 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10446 | $as_echo_n "(cached) " >&6 | 
|  | 10447 | else | 
|  | 10448 | if test -n "$RANLIB"; then | 
|  | 10449 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 10450 | else | 
|  | 10451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10452 | for as_dir in $PATH | 
|  | 10453 | do | 
|  | 10454 | IFS=$as_save_IFS | 
|  | 10455 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10456 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10458 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10459 | $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] | 10460 | break 2 | 
|  | 10461 | fi | 
|  | 10462 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10463 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10464 | IFS=$as_save_IFS | 
|  | 10465 |  | 
|  | 10466 | fi | 
|  | 10467 | fi | 
|  | 10468 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 10469 | if test -n "$RANLIB"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10471 | $as_echo "$RANLIB" >&6; } | 
|  | 10472 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10474 | $as_echo "no" >&6; } | 
|  | 10475 | fi | 
|  | 10476 |  | 
|  | 10477 |  | 
|  | 10478 | fi | 
|  | 10479 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 10480 | ac_ct_RANLIB=$RANLIB | 
|  | 10481 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 10482 | set dummy ranlib; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10484 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10485 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10486 | $as_echo_n "(cached) " >&6 | 
|  | 10487 | else | 
|  | 10488 | if test -n "$ac_ct_RANLIB"; then | 
|  | 10489 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 10490 | else | 
|  | 10491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10492 | for as_dir in $PATH | 
|  | 10493 | do | 
|  | 10494 | IFS=$as_save_IFS | 
|  | 10495 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10496 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10497 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10498 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10499 | $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] | 10500 | break 2 | 
|  | 10501 | fi | 
|  | 10502 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10503 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10504 | IFS=$as_save_IFS | 
|  | 10505 |  | 
|  | 10506 | fi | 
|  | 10507 | fi | 
|  | 10508 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 10509 | if test -n "$ac_ct_RANLIB"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10511 | $as_echo "$ac_ct_RANLIB" >&6; } | 
|  | 10512 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10514 | $as_echo "no" >&6; } | 
|  | 10515 | fi | 
|  | 10516 |  | 
|  | 10517 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 10518 | RANLIB=":" | 
|  | 10519 | else | 
|  | 10520 | case $cross_compiling:$ac_tool_warned in | 
|  | 10521 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10522 | { $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] | 10523 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10524 | ac_tool_warned=yes ;; | 
|  | 10525 | esac | 
|  | 10526 | RANLIB=$ac_ct_RANLIB | 
|  | 10527 | fi | 
|  | 10528 | else | 
|  | 10529 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 10530 | fi | 
|  | 10531 |  | 
|  | 10532 | test -z "$RANLIB" && RANLIB=: | 
|  | 10533 |  | 
|  | 10534 |  | 
|  | 10535 |  | 
|  | 10536 |  | 
|  | 10537 |  | 
|  | 10538 |  | 
|  | 10539 | # Determine commands to create old-style static archives. | 
|  | 10540 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | 
|  | 10541 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 10542 | old_postuninstall_cmds= | 
|  | 10543 |  | 
|  | 10544 | if test -n "$RANLIB"; then | 
|  | 10545 | case $host_os in | 
|  | 10546 | openbsd*) | 
|  | 10547 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 
|  | 10548 | ;; | 
|  | 10549 | *) | 
|  | 10550 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 
|  | 10551 | ;; | 
|  | 10552 | esac | 
|  | 10553 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
|  | 10554 | fi | 
|  | 10555 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10556 | case $host_os in | 
|  | 10557 | darwin*) | 
|  | 10558 | lock_old_archive_extraction=yes ;; | 
|  | 10559 | *) | 
|  | 10560 | lock_old_archive_extraction=no ;; | 
|  | 10561 | esac | 
|  | 10562 |  | 
|  | 10563 |  | 
|  | 10564 |  | 
|  | 10565 |  | 
|  | 10566 |  | 
|  | 10567 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10568 |  | 
|  | 10569 |  | 
|  | 10570 |  | 
|  | 10571 |  | 
|  | 10572 |  | 
|  | 10573 |  | 
|  | 10574 |  | 
|  | 10575 |  | 
|  | 10576 |  | 
|  | 10577 |  | 
|  | 10578 |  | 
|  | 10579 |  | 
|  | 10580 |  | 
|  | 10581 |  | 
|  | 10582 |  | 
|  | 10583 |  | 
|  | 10584 |  | 
|  | 10585 |  | 
|  | 10586 |  | 
|  | 10587 |  | 
|  | 10588 |  | 
|  | 10589 |  | 
|  | 10590 |  | 
|  | 10591 |  | 
|  | 10592 |  | 
|  | 10593 |  | 
|  | 10594 |  | 
|  | 10595 |  | 
|  | 10596 |  | 
|  | 10597 |  | 
|  | 10598 |  | 
|  | 10599 |  | 
|  | 10600 |  | 
|  | 10601 | # If no C compiler was specified, use CC. | 
|  | 10602 | LTCC=${LTCC-"$CC"} | 
|  | 10603 |  | 
|  | 10604 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 10605 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 10606 |  | 
|  | 10607 | # Allow CC to be a program name with arguments. | 
|  | 10608 | compiler=$CC | 
|  | 10609 |  | 
|  | 10610 |  | 
|  | 10611 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10613 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10614 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10615 | $as_echo_n "(cached) " >&6 | 
|  | 10616 | else | 
|  | 10617 |  | 
|  | 10618 | # These are sane defaults that work on at least a few old systems. | 
|  | 10619 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 10620 |  | 
|  | 10621 | # Character class describing NM global symbol codes. | 
|  | 10622 | symcode='[BCDEGRST]' | 
|  | 10623 |  | 
|  | 10624 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 10625 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 10626 |  | 
|  | 10627 | # Define system-specific variables. | 
|  | 10628 | case $host_os in | 
|  | 10629 | aix*) | 
|  | 10630 | symcode='[BCDT]' | 
|  | 10631 | ;; | 
|  | 10632 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 10633 | symcode='[ABCDGISTW]' | 
|  | 10634 | ;; | 
|  | 10635 | hpux*) | 
|  | 10636 | if test "$host_cpu" = ia64; then | 
|  | 10637 | symcode='[ABCDEGRST]' | 
|  | 10638 | fi | 
|  | 10639 | ;; | 
|  | 10640 | irix* | nonstopux*) | 
|  | 10641 | symcode='[BCDEGRST]' | 
|  | 10642 | ;; | 
|  | 10643 | osf*) | 
|  | 10644 | symcode='[BCDEGQRST]' | 
|  | 10645 | ;; | 
|  | 10646 | solaris*) | 
|  | 10647 | symcode='[BDRT]' | 
|  | 10648 | ;; | 
|  | 10649 | sco3.2v5*) | 
|  | 10650 | symcode='[DT]' | 
|  | 10651 | ;; | 
|  | 10652 | sysv4.2uw2*) | 
|  | 10653 | symcode='[DT]' | 
|  | 10654 | ;; | 
|  | 10655 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 10656 | symcode='[ABDT]' | 
|  | 10657 | ;; | 
|  | 10658 | sysv4) | 
|  | 10659 | symcode='[DFNSTU]' | 
|  | 10660 | ;; | 
|  | 10661 | esac | 
|  | 10662 |  | 
|  | 10663 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 10664 | case `$NM -V 2>&1` in | 
|  | 10665 | *GNU* | *'with BFD'*) | 
|  | 10666 | symcode='[ABCDGIRSTW]' ;; | 
|  | 10667 | esac | 
|  | 10668 |  | 
|  | 10669 | # Transform an extracted symbol line into a proper C declaration. | 
|  | 10670 | # Some systems (esp. on ia64) link data and code symbols differently, | 
|  | 10671 | # so use this general approach. | 
|  | 10672 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 10673 |  | 
|  | 10674 | # Transform an extracted symbol line into symbol name and symbol address | 
|  | 10675 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'" | 
|  | 10676 | 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'" | 
|  | 10677 |  | 
|  | 10678 | # Handle CRLF in mingw tool chain | 
|  | 10679 | opt_cr= | 
|  | 10680 | case $build_os in | 
|  | 10681 | mingw*) | 
|  | 10682 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 10683 | ;; | 
|  | 10684 | esac | 
|  | 10685 |  | 
|  | 10686 | # Try without a prefix underscore, then with it. | 
|  | 10687 | for ac_symprfx in "" "_"; do | 
|  | 10688 |  | 
|  | 10689 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
|  | 10690 | symxfrm="\\1 $ac_symprfx\\2 \\2" | 
|  | 10691 |  | 
|  | 10692 | # Write the raw and C identifiers. | 
|  | 10693 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 
|  | 10694 | # Fake it for dumpbin and say T for any non-static function | 
|  | 10695 | # and D for any global variable. | 
|  | 10696 | # Also find C++ and __fastcall symbols from MSVC++, | 
|  | 10697 | # which start with @ or ?. | 
|  | 10698 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | 
|  | 10699 | "     {last_section=section; section=\$ 3};"\ | 
|  | 10700 | "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 
|  | 10701 | "     \$ 0!~/External *\|/{next};"\ | 
|  | 10702 | "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 
|  | 10703 | "     {if(hide[section]) next};"\ | 
|  | 10704 | "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | 
|  | 10705 | "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | 
|  | 10706 | "     s[1]~/^[@?]/{print s[1], s[1]; next};"\ | 
|  | 10707 | "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 
|  | 10708 | "     ' prfx=^$ac_symprfx" | 
|  | 10709 | else | 
|  | 10710 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
|  | 10711 | fi | 
|  | 10712 |  | 
|  | 10713 | # Check to see that the pipe works correctly. | 
|  | 10714 | pipe_works=no | 
|  | 10715 |  | 
|  | 10716 | rm -f conftest* | 
|  | 10717 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 10718 | #ifdef __cplusplus | 
|  | 10719 | extern "C" { | 
|  | 10720 | #endif | 
|  | 10721 | char nm_test_var; | 
|  | 10722 | void nm_test_func(void); | 
|  | 10723 | void nm_test_func(void){} | 
|  | 10724 | #ifdef __cplusplus | 
|  | 10725 | } | 
|  | 10726 | #endif | 
|  | 10727 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 10728 | _LT_EOF | 
|  | 10729 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10730 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10731 | (eval $ac_compile) 2>&5 | 
|  | 10732 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10734 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10735 | # Now try to grab the symbols. | 
|  | 10736 | nlist=conftest.nm | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10737 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | 
|  | 10738 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10739 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10741 | test $ac_status = 0; } && test -s "$nlist"; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10742 | # Try sorting and uniquifying the output. | 
|  | 10743 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 10744 | mv -f "$nlist"T "$nlist" | 
|  | 10745 | else | 
|  | 10746 | rm -f "$nlist"T | 
|  | 10747 | fi | 
|  | 10748 |  | 
|  | 10749 | # Make sure that we snagged all the symbols we need. | 
|  | 10750 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 10751 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 10752 | cat <<_LT_EOF > conftest.$ac_ext | 
|  | 10753 | #ifdef __cplusplus | 
|  | 10754 | extern "C" { | 
|  | 10755 | #endif | 
|  | 10756 |  | 
|  | 10757 | _LT_EOF | 
|  | 10758 | # Now generate the symbol file. | 
|  | 10759 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | 
|  | 10760 |  | 
|  | 10761 | cat <<_LT_EOF >> conftest.$ac_ext | 
|  | 10762 |  | 
|  | 10763 | /* The mapping between symbol names and symbols.  */ | 
|  | 10764 | const struct { | 
|  | 10765 | const char *name; | 
|  | 10766 | void       *address; | 
|  | 10767 | } | 
|  | 10768 | lt__PROGRAM__LTX_preloaded_symbols[] = | 
|  | 10769 | { | 
|  | 10770 | { "@PROGRAM@", (void *) 0 }, | 
|  | 10771 | _LT_EOF | 
|  | 10772 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | 
|  | 10773 | cat <<\_LT_EOF >> conftest.$ac_ext | 
|  | 10774 | {0, (void *) 0} | 
|  | 10775 | }; | 
|  | 10776 |  | 
|  | 10777 | /* This works around a problem in FreeBSD linker */ | 
|  | 10778 | #ifdef FREEBSD_WORKAROUND | 
|  | 10779 | static const void *lt_preloaded_setup() { | 
|  | 10780 | return lt__PROGRAM__LTX_preloaded_symbols; | 
|  | 10781 | } | 
|  | 10782 | #endif | 
|  | 10783 |  | 
|  | 10784 | #ifdef __cplusplus | 
|  | 10785 | } | 
|  | 10786 | #endif | 
|  | 10787 | _LT_EOF | 
|  | 10788 | # Now try linking the two files. | 
|  | 10789 | mv conftest.$ac_objext conftstm.$ac_objext | 
|  | 10790 | lt_save_LIBS="$LIBS" | 
|  | 10791 | lt_save_CFLAGS="$CFLAGS" | 
|  | 10792 | LIBS="conftstm.$ac_objext" | 
|  | 10793 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10794 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10795 | (eval $ac_link) 2>&5 | 
|  | 10796 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10798 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10799 | pipe_works=yes | 
|  | 10800 | fi | 
|  | 10801 | LIBS="$lt_save_LIBS" | 
|  | 10802 | CFLAGS="$lt_save_CFLAGS" | 
|  | 10803 | else | 
|  | 10804 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 10805 | fi | 
|  | 10806 | else | 
|  | 10807 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 10808 | fi | 
|  | 10809 | else | 
|  | 10810 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 10811 | fi | 
|  | 10812 | else | 
|  | 10813 | echo "$progname: failed program was:" >&5 | 
|  | 10814 | cat conftest.$ac_ext >&5 | 
|  | 10815 | fi | 
|  | 10816 | rm -rf conftest* conftst* | 
|  | 10817 |  | 
|  | 10818 | # Do not use the global_symbol_pipe unless it works. | 
|  | 10819 | if test "$pipe_works" = yes; then | 
|  | 10820 | break | 
|  | 10821 | else | 
|  | 10822 | lt_cv_sys_global_symbol_pipe= | 
|  | 10823 | fi | 
|  | 10824 | done | 
|  | 10825 |  | 
|  | 10826 | fi | 
|  | 10827 |  | 
|  | 10828 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 10829 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 10830 | fi | 
|  | 10831 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10833 | $as_echo "failed" >&6; } | 
|  | 10834 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10836 | $as_echo "ok" >&6; } | 
|  | 10837 | fi | 
|  | 10838 |  | 
|  | 10839 |  | 
|  | 10840 |  | 
|  | 10841 |  | 
|  | 10842 |  | 
|  | 10843 |  | 
|  | 10844 |  | 
|  | 10845 |  | 
|  | 10846 |  | 
|  | 10847 |  | 
|  | 10848 |  | 
|  | 10849 |  | 
|  | 10850 |  | 
|  | 10851 |  | 
|  | 10852 |  | 
|  | 10853 |  | 
|  | 10854 |  | 
|  | 10855 |  | 
|  | 10856 |  | 
|  | 10857 |  | 
|  | 10858 |  | 
|  | 10859 |  | 
|  | 10860 | # Check whether --enable-libtool-lock was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10861 | if test "${enable_libtool_lock+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10862 | enableval=$enable_libtool_lock; | 
|  | 10863 | fi | 
|  | 10864 |  | 
|  | 10865 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 10866 |  | 
|  | 10867 | # Some flags need to be propagated to the compiler or linker for good | 
|  | 10868 | # libtool support. | 
|  | 10869 | case $host in | 
|  | 10870 | ia64-*-hpux*) | 
|  | 10871 | # Find out which ABI we are using. | 
|  | 10872 | echo 'int i;' > conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10873 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10874 | (eval $ac_compile) 2>&5 | 
|  | 10875 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10877 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10878 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10879 | *ELF-32*) | 
|  | 10880 | HPUX_IA64_MODE="32" | 
|  | 10881 | ;; | 
|  | 10882 | *ELF-64*) | 
|  | 10883 | HPUX_IA64_MODE="64" | 
|  | 10884 | ;; | 
|  | 10885 | esac | 
|  | 10886 | fi | 
|  | 10887 | rm -rf conftest* | 
|  | 10888 | ;; | 
|  | 10889 | *-*-irix6*) | 
|  | 10890 | # Find out which ABI we are using. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 10891 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10892 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10893 | (eval $ac_compile) 2>&5 | 
|  | 10894 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10896 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10897 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 10898 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10899 | *32-bit*) | 
|  | 10900 | LD="${LD-ld} -melf32bsmip" | 
|  | 10901 | ;; | 
|  | 10902 | *N32*) | 
|  | 10903 | LD="${LD-ld} -melf32bmipn32" | 
|  | 10904 | ;; | 
|  | 10905 | *64-bit*) | 
|  | 10906 | LD="${LD-ld} -melf64bmip" | 
|  | 10907 | ;; | 
|  | 10908 | esac | 
|  | 10909 | else | 
|  | 10910 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 10911 | *32-bit*) | 
|  | 10912 | LD="${LD-ld} -32" | 
|  | 10913 | ;; | 
|  | 10914 | *N32*) | 
|  | 10915 | LD="${LD-ld} -n32" | 
|  | 10916 | ;; | 
|  | 10917 | *64-bit*) | 
|  | 10918 | LD="${LD-ld} -64" | 
|  | 10919 | ;; | 
|  | 10920 | esac | 
|  | 10921 | fi | 
|  | 10922 | fi | 
|  | 10923 | rm -rf conftest* | 
|  | 10924 | ;; | 
|  | 10925 |  | 
|  | 10926 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 
|  | 10927 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 
|  | 10928 | # Find out which ABI we are using. | 
|  | 10929 | echo 'int i;' > conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10930 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10931 | (eval $ac_compile) 2>&5 | 
|  | 10932 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10934 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10935 | case `/usr/bin/file conftest.o` in | 
|  | 10936 | *32-bit*) | 
|  | 10937 | case $host in | 
|  | 10938 | x86_64-*kfreebsd*-gnu) | 
|  | 10939 | LD="${LD-ld} -m elf_i386_fbsd" | 
|  | 10940 | ;; | 
|  | 10941 | x86_64-*linux*) | 
|  | 10942 | LD="${LD-ld} -m elf_i386" | 
|  | 10943 | ;; | 
|  | 10944 | ppc64-*linux*|powerpc64-*linux*) | 
|  | 10945 | LD="${LD-ld} -m elf32ppclinux" | 
|  | 10946 | ;; | 
|  | 10947 | s390x-*linux*) | 
|  | 10948 | LD="${LD-ld} -m elf_s390" | 
|  | 10949 | ;; | 
|  | 10950 | sparc64-*linux*) | 
|  | 10951 | LD="${LD-ld} -m elf32_sparc" | 
|  | 10952 | ;; | 
|  | 10953 | esac | 
|  | 10954 | ;; | 
|  | 10955 | *64-bit*) | 
|  | 10956 | case $host in | 
|  | 10957 | x86_64-*kfreebsd*-gnu) | 
|  | 10958 | LD="${LD-ld} -m elf_x86_64_fbsd" | 
|  | 10959 | ;; | 
|  | 10960 | x86_64-*linux*) | 
|  | 10961 | LD="${LD-ld} -m elf_x86_64" | 
|  | 10962 | ;; | 
|  | 10963 | ppc*-*linux*|powerpc*-*linux*) | 
|  | 10964 | LD="${LD-ld} -m elf64ppc" | 
|  | 10965 | ;; | 
|  | 10966 | s390*-*linux*|s390*-*tpf*) | 
|  | 10967 | LD="${LD-ld} -m elf64_s390" | 
|  | 10968 | ;; | 
|  | 10969 | sparc*-*linux*) | 
|  | 10970 | LD="${LD-ld} -m elf64_sparc" | 
|  | 10971 | ;; | 
|  | 10972 | esac | 
|  | 10973 | ;; | 
|  | 10974 | esac | 
|  | 10975 | fi | 
|  | 10976 | rm -rf conftest* | 
|  | 10977 | ;; | 
|  | 10978 |  | 
|  | 10979 | *-*-sco3.2v5*) | 
|  | 10980 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|  | 10981 | SAVE_CFLAGS="$CFLAGS" | 
|  | 10982 | CFLAGS="$CFLAGS -belf" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10984 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10985 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10986 | $as_echo_n "(cached) " >&6 | 
|  | 10987 | else | 
|  | 10988 | ac_ext=c | 
|  | 10989 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 10990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 10991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 10992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 10993 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10995 | /* end confdefs.h.  */ | 
|  | 10996 |  | 
|  | 10997 | int | 
|  | 10998 | main () | 
|  | 10999 | { | 
|  | 11000 |  | 
|  | 11001 | ; | 
|  | 11002 | return 0; | 
|  | 11003 | } | 
|  | 11004 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11005 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11006 | lt_cv_cc_needs_belf=yes | 
|  | 11007 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11008 | lt_cv_cc_needs_belf=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11009 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11010 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11011 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11012 | ac_ext=c | 
|  | 11013 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 11014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 11015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 11016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 11017 |  | 
|  | 11018 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11020 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | 
|  | 11021 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|  | 11022 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|  | 11023 | CFLAGS="$SAVE_CFLAGS" | 
|  | 11024 | fi | 
|  | 11025 | ;; | 
|  | 11026 | sparc*-*solaris*) | 
|  | 11027 | # Find out which ABI we are using. | 
|  | 11028 | echo 'int i;' > conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11029 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11030 | (eval $ac_compile) 2>&5 | 
|  | 11031 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11033 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11034 | case `/usr/bin/file conftest.o` in | 
|  | 11035 | *64-bit*) | 
|  | 11036 | case $lt_cv_prog_gnu_ld in | 
|  | 11037 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | 
|  | 11038 | *) | 
|  | 11039 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 
|  | 11040 | LD="${LD-ld} -64" | 
|  | 11041 | fi | 
|  | 11042 | ;; | 
|  | 11043 | esac | 
|  | 11044 | ;; | 
|  | 11045 | esac | 
|  | 11046 | fi | 
|  | 11047 | rm -rf conftest* | 
|  | 11048 | ;; | 
|  | 11049 | esac | 
|  | 11050 |  | 
|  | 11051 | need_locks="$enable_libtool_lock" | 
|  | 11052 |  | 
|  | 11053 |  | 
|  | 11054 | case $host_os in | 
|  | 11055 | rhapsody* | darwin*) | 
|  | 11056 | if test -n "$ac_tool_prefix"; then | 
|  | 11057 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | 
|  | 11058 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11060 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11061 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11062 | $as_echo_n "(cached) " >&6 | 
|  | 11063 | else | 
|  | 11064 | if test -n "$DSYMUTIL"; then | 
|  | 11065 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | 
|  | 11066 | else | 
|  | 11067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11068 | for as_dir in $PATH | 
|  | 11069 | do | 
|  | 11070 | IFS=$as_save_IFS | 
|  | 11071 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11072 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11074 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11075 | $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] | 11076 | break 2 | 
|  | 11077 | fi | 
|  | 11078 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11079 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11080 | IFS=$as_save_IFS | 
|  | 11081 |  | 
|  | 11082 | fi | 
|  | 11083 | fi | 
|  | 11084 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | 
|  | 11085 | if test -n "$DSYMUTIL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11087 | $as_echo "$DSYMUTIL" >&6; } | 
|  | 11088 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11090 | $as_echo "no" >&6; } | 
|  | 11091 | fi | 
|  | 11092 |  | 
|  | 11093 |  | 
|  | 11094 | fi | 
|  | 11095 | if test -z "$ac_cv_prog_DSYMUTIL"; then | 
|  | 11096 | ac_ct_DSYMUTIL=$DSYMUTIL | 
|  | 11097 | # Extract the first word of "dsymutil", so it can be a program name with args. | 
|  | 11098 | set dummy dsymutil; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11100 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11101 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11102 | $as_echo_n "(cached) " >&6 | 
|  | 11103 | else | 
|  | 11104 | if test -n "$ac_ct_DSYMUTIL"; then | 
|  | 11105 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | 
|  | 11106 | else | 
|  | 11107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11108 | for as_dir in $PATH | 
|  | 11109 | do | 
|  | 11110 | IFS=$as_save_IFS | 
|  | 11111 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11112 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11114 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11115 | $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] | 11116 | break 2 | 
|  | 11117 | fi | 
|  | 11118 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11119 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11120 | IFS=$as_save_IFS | 
|  | 11121 |  | 
|  | 11122 | fi | 
|  | 11123 | fi | 
|  | 11124 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | 
|  | 11125 | if test -n "$ac_ct_DSYMUTIL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11127 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | 
|  | 11128 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11130 | $as_echo "no" >&6; } | 
|  | 11131 | fi | 
|  | 11132 |  | 
|  | 11133 | if test "x$ac_ct_DSYMUTIL" = x; then | 
|  | 11134 | DSYMUTIL=":" | 
|  | 11135 | else | 
|  | 11136 | case $cross_compiling:$ac_tool_warned in | 
|  | 11137 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11138 | { $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] | 11139 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11140 | ac_tool_warned=yes ;; | 
|  | 11141 | esac | 
|  | 11142 | DSYMUTIL=$ac_ct_DSYMUTIL | 
|  | 11143 | fi | 
|  | 11144 | else | 
|  | 11145 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | 
|  | 11146 | fi | 
|  | 11147 |  | 
|  | 11148 | if test -n "$ac_tool_prefix"; then | 
|  | 11149 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | 
|  | 11150 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11152 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11153 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11154 | $as_echo_n "(cached) " >&6 | 
|  | 11155 | else | 
|  | 11156 | if test -n "$NMEDIT"; then | 
|  | 11157 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | 
|  | 11158 | else | 
|  | 11159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11160 | for as_dir in $PATH | 
|  | 11161 | do | 
|  | 11162 | IFS=$as_save_IFS | 
|  | 11163 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11164 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11166 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11167 | $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] | 11168 | break 2 | 
|  | 11169 | fi | 
|  | 11170 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11171 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11172 | IFS=$as_save_IFS | 
|  | 11173 |  | 
|  | 11174 | fi | 
|  | 11175 | fi | 
|  | 11176 | NMEDIT=$ac_cv_prog_NMEDIT | 
|  | 11177 | if test -n "$NMEDIT"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11179 | $as_echo "$NMEDIT" >&6; } | 
|  | 11180 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11182 | $as_echo "no" >&6; } | 
|  | 11183 | fi | 
|  | 11184 |  | 
|  | 11185 |  | 
|  | 11186 | fi | 
|  | 11187 | if test -z "$ac_cv_prog_NMEDIT"; then | 
|  | 11188 | ac_ct_NMEDIT=$NMEDIT | 
|  | 11189 | # Extract the first word of "nmedit", so it can be a program name with args. | 
|  | 11190 | set dummy nmedit; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11192 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11193 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11194 | $as_echo_n "(cached) " >&6 | 
|  | 11195 | else | 
|  | 11196 | if test -n "$ac_ct_NMEDIT"; then | 
|  | 11197 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | 
|  | 11198 | else | 
|  | 11199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11200 | for as_dir in $PATH | 
|  | 11201 | do | 
|  | 11202 | IFS=$as_save_IFS | 
|  | 11203 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11204 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11206 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11207 | $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] | 11208 | break 2 | 
|  | 11209 | fi | 
|  | 11210 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11211 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11212 | IFS=$as_save_IFS | 
|  | 11213 |  | 
|  | 11214 | fi | 
|  | 11215 | fi | 
|  | 11216 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | 
|  | 11217 | if test -n "$ac_ct_NMEDIT"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11219 | $as_echo "$ac_ct_NMEDIT" >&6; } | 
|  | 11220 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11222 | $as_echo "no" >&6; } | 
|  | 11223 | fi | 
|  | 11224 |  | 
|  | 11225 | if test "x$ac_ct_NMEDIT" = x; then | 
|  | 11226 | NMEDIT=":" | 
|  | 11227 | else | 
|  | 11228 | case $cross_compiling:$ac_tool_warned in | 
|  | 11229 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11230 | { $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] | 11231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11232 | ac_tool_warned=yes ;; | 
|  | 11233 | esac | 
|  | 11234 | NMEDIT=$ac_ct_NMEDIT | 
|  | 11235 | fi | 
|  | 11236 | else | 
|  | 11237 | NMEDIT="$ac_cv_prog_NMEDIT" | 
|  | 11238 | fi | 
|  | 11239 |  | 
|  | 11240 | if test -n "$ac_tool_prefix"; then | 
|  | 11241 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | 
|  | 11242 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11244 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11245 | if test "${ac_cv_prog_LIPO+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11246 | $as_echo_n "(cached) " >&6 | 
|  | 11247 | else | 
|  | 11248 | if test -n "$LIPO"; then | 
|  | 11249 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | 
|  | 11250 | else | 
|  | 11251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11252 | for as_dir in $PATH | 
|  | 11253 | do | 
|  | 11254 | IFS=$as_save_IFS | 
|  | 11255 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11256 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11258 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11259 | $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] | 11260 | break 2 | 
|  | 11261 | fi | 
|  | 11262 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11263 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11264 | IFS=$as_save_IFS | 
|  | 11265 |  | 
|  | 11266 | fi | 
|  | 11267 | fi | 
|  | 11268 | LIPO=$ac_cv_prog_LIPO | 
|  | 11269 | if test -n "$LIPO"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11271 | $as_echo "$LIPO" >&6; } | 
|  | 11272 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11274 | $as_echo "no" >&6; } | 
|  | 11275 | fi | 
|  | 11276 |  | 
|  | 11277 |  | 
|  | 11278 | fi | 
|  | 11279 | if test -z "$ac_cv_prog_LIPO"; then | 
|  | 11280 | ac_ct_LIPO=$LIPO | 
|  | 11281 | # Extract the first word of "lipo", so it can be a program name with args. | 
|  | 11282 | set dummy lipo; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11284 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11285 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11286 | $as_echo_n "(cached) " >&6 | 
|  | 11287 | else | 
|  | 11288 | if test -n "$ac_ct_LIPO"; then | 
|  | 11289 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | 
|  | 11290 | else | 
|  | 11291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11292 | for as_dir in $PATH | 
|  | 11293 | do | 
|  | 11294 | IFS=$as_save_IFS | 
|  | 11295 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11296 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11298 | ac_cv_prog_ac_ct_LIPO="lipo" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11299 | $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] | 11300 | break 2 | 
|  | 11301 | fi | 
|  | 11302 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11303 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11304 | IFS=$as_save_IFS | 
|  | 11305 |  | 
|  | 11306 | fi | 
|  | 11307 | fi | 
|  | 11308 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | 
|  | 11309 | if test -n "$ac_ct_LIPO"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11311 | $as_echo "$ac_ct_LIPO" >&6; } | 
|  | 11312 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11314 | $as_echo "no" >&6; } | 
|  | 11315 | fi | 
|  | 11316 |  | 
|  | 11317 | if test "x$ac_ct_LIPO" = x; then | 
|  | 11318 | LIPO=":" | 
|  | 11319 | else | 
|  | 11320 | case $cross_compiling:$ac_tool_warned in | 
|  | 11321 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11322 | { $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] | 11323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11324 | ac_tool_warned=yes ;; | 
|  | 11325 | esac | 
|  | 11326 | LIPO=$ac_ct_LIPO | 
|  | 11327 | fi | 
|  | 11328 | else | 
|  | 11329 | LIPO="$ac_cv_prog_LIPO" | 
|  | 11330 | fi | 
|  | 11331 |  | 
|  | 11332 | if test -n "$ac_tool_prefix"; then | 
|  | 11333 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | 
|  | 11334 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11336 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11337 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11338 | $as_echo_n "(cached) " >&6 | 
|  | 11339 | else | 
|  | 11340 | if test -n "$OTOOL"; then | 
|  | 11341 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | 
|  | 11342 | else | 
|  | 11343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11344 | for as_dir in $PATH | 
|  | 11345 | do | 
|  | 11346 | IFS=$as_save_IFS | 
|  | 11347 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11348 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11350 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11351 | $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] | 11352 | break 2 | 
|  | 11353 | fi | 
|  | 11354 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11355 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11356 | IFS=$as_save_IFS | 
|  | 11357 |  | 
|  | 11358 | fi | 
|  | 11359 | fi | 
|  | 11360 | OTOOL=$ac_cv_prog_OTOOL | 
|  | 11361 | if test -n "$OTOOL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11363 | $as_echo "$OTOOL" >&6; } | 
|  | 11364 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11366 | $as_echo "no" >&6; } | 
|  | 11367 | fi | 
|  | 11368 |  | 
|  | 11369 |  | 
|  | 11370 | fi | 
|  | 11371 | if test -z "$ac_cv_prog_OTOOL"; then | 
|  | 11372 | ac_ct_OTOOL=$OTOOL | 
|  | 11373 | # Extract the first word of "otool", so it can be a program name with args. | 
|  | 11374 | set dummy otool; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11376 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11377 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11378 | $as_echo_n "(cached) " >&6 | 
|  | 11379 | else | 
|  | 11380 | if test -n "$ac_ct_OTOOL"; then | 
|  | 11381 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | 
|  | 11382 | else | 
|  | 11383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11384 | for as_dir in $PATH | 
|  | 11385 | do | 
|  | 11386 | IFS=$as_save_IFS | 
|  | 11387 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11388 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11390 | ac_cv_prog_ac_ct_OTOOL="otool" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11391 | $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] | 11392 | break 2 | 
|  | 11393 | fi | 
|  | 11394 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11395 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11396 | IFS=$as_save_IFS | 
|  | 11397 |  | 
|  | 11398 | fi | 
|  | 11399 | fi | 
|  | 11400 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | 
|  | 11401 | if test -n "$ac_ct_OTOOL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11403 | $as_echo "$ac_ct_OTOOL" >&6; } | 
|  | 11404 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11406 | $as_echo "no" >&6; } | 
|  | 11407 | fi | 
|  | 11408 |  | 
|  | 11409 | if test "x$ac_ct_OTOOL" = x; then | 
|  | 11410 | OTOOL=":" | 
|  | 11411 | else | 
|  | 11412 | case $cross_compiling:$ac_tool_warned in | 
|  | 11413 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11414 | { $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] | 11415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11416 | ac_tool_warned=yes ;; | 
|  | 11417 | esac | 
|  | 11418 | OTOOL=$ac_ct_OTOOL | 
|  | 11419 | fi | 
|  | 11420 | else | 
|  | 11421 | OTOOL="$ac_cv_prog_OTOOL" | 
|  | 11422 | fi | 
|  | 11423 |  | 
|  | 11424 | if test -n "$ac_tool_prefix"; then | 
|  | 11425 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | 
|  | 11426 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11428 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11429 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11430 | $as_echo_n "(cached) " >&6 | 
|  | 11431 | else | 
|  | 11432 | if test -n "$OTOOL64"; then | 
|  | 11433 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | 
|  | 11434 | else | 
|  | 11435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11436 | for as_dir in $PATH | 
|  | 11437 | do | 
|  | 11438 | IFS=$as_save_IFS | 
|  | 11439 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11440 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11442 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11443 | $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] | 11444 | break 2 | 
|  | 11445 | fi | 
|  | 11446 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11447 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11448 | IFS=$as_save_IFS | 
|  | 11449 |  | 
|  | 11450 | fi | 
|  | 11451 | fi | 
|  | 11452 | OTOOL64=$ac_cv_prog_OTOOL64 | 
|  | 11453 | if test -n "$OTOOL64"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11455 | $as_echo "$OTOOL64" >&6; } | 
|  | 11456 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11458 | $as_echo "no" >&6; } | 
|  | 11459 | fi | 
|  | 11460 |  | 
|  | 11461 |  | 
|  | 11462 | fi | 
|  | 11463 | if test -z "$ac_cv_prog_OTOOL64"; then | 
|  | 11464 | ac_ct_OTOOL64=$OTOOL64 | 
|  | 11465 | # Extract the first word of "otool64", so it can be a program name with args. | 
|  | 11466 | set dummy otool64; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11468 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11469 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11470 | $as_echo_n "(cached) " >&6 | 
|  | 11471 | else | 
|  | 11472 | if test -n "$ac_ct_OTOOL64"; then | 
|  | 11473 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | 
|  | 11474 | else | 
|  | 11475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11476 | for as_dir in $PATH | 
|  | 11477 | do | 
|  | 11478 | IFS=$as_save_IFS | 
|  | 11479 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11480 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11482 | ac_cv_prog_ac_ct_OTOOL64="otool64" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11483 | $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] | 11484 | break 2 | 
|  | 11485 | fi | 
|  | 11486 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11487 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11488 | IFS=$as_save_IFS | 
|  | 11489 |  | 
|  | 11490 | fi | 
|  | 11491 | fi | 
|  | 11492 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | 
|  | 11493 | if test -n "$ac_ct_OTOOL64"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11495 | $as_echo "$ac_ct_OTOOL64" >&6; } | 
|  | 11496 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11498 | $as_echo "no" >&6; } | 
|  | 11499 | fi | 
|  | 11500 |  | 
|  | 11501 | if test "x$ac_ct_OTOOL64" = x; then | 
|  | 11502 | OTOOL64=":" | 
|  | 11503 | else | 
|  | 11504 | case $cross_compiling:$ac_tool_warned in | 
|  | 11505 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11506 | { $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] | 11507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11508 | ac_tool_warned=yes ;; | 
|  | 11509 | esac | 
|  | 11510 | OTOOL64=$ac_ct_OTOOL64 | 
|  | 11511 | fi | 
|  | 11512 | else | 
|  | 11513 | OTOOL64="$ac_cv_prog_OTOOL64" | 
|  | 11514 | fi | 
|  | 11515 |  | 
|  | 11516 |  | 
|  | 11517 |  | 
|  | 11518 |  | 
|  | 11519 |  | 
|  | 11520 |  | 
|  | 11521 |  | 
|  | 11522 |  | 
|  | 11523 |  | 
|  | 11524 |  | 
|  | 11525 |  | 
|  | 11526 |  | 
|  | 11527 |  | 
|  | 11528 |  | 
|  | 11529 |  | 
|  | 11530 |  | 
|  | 11531 |  | 
|  | 11532 |  | 
|  | 11533 |  | 
|  | 11534 |  | 
|  | 11535 |  | 
|  | 11536 |  | 
|  | 11537 |  | 
|  | 11538 |  | 
|  | 11539 |  | 
|  | 11540 |  | 
|  | 11541 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11543 | $as_echo_n "checking for -single_module linker flag... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11544 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11545 | $as_echo_n "(cached) " >&6 | 
|  | 11546 | else | 
|  | 11547 | lt_cv_apple_cc_single_mod=no | 
|  | 11548 | if test -z "${LT_MULTI_MODULE}"; then | 
|  | 11549 | # By default we will add the -single_module flag. You can override | 
|  | 11550 | # by either setting the environment variable LT_MULTI_MODULE | 
|  | 11551 | # non-empty at configure time, or by adding -multi_module to the | 
|  | 11552 | # link flags. | 
|  | 11553 | rm -rf libconftest.dylib* | 
|  | 11554 | echo "int foo(void){return 1;}" > conftest.c | 
|  | 11555 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
|  | 11556 | -dynamiclib -Wl,-single_module conftest.c" >&5 | 
|  | 11557 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
|  | 11558 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 
|  | 11559 | _lt_result=$? | 
|  | 11560 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | 
|  | 11561 | lt_cv_apple_cc_single_mod=yes | 
|  | 11562 | else | 
|  | 11563 | cat conftest.err >&5 | 
|  | 11564 | fi | 
|  | 11565 | rm -rf libconftest.dylib* | 
|  | 11566 | rm -f conftest.* | 
|  | 11567 | fi | 
|  | 11568 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11570 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11572 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11573 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11574 | $as_echo_n "(cached) " >&6 | 
|  | 11575 | else | 
|  | 11576 | lt_cv_ld_exported_symbols_list=no | 
|  | 11577 | save_LDFLAGS=$LDFLAGS | 
|  | 11578 | echo "_main" > conftest.sym | 
|  | 11579 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11581 | /* end confdefs.h.  */ | 
|  | 11582 |  | 
|  | 11583 | int | 
|  | 11584 | main () | 
|  | 11585 | { | 
|  | 11586 |  | 
|  | 11587 | ; | 
|  | 11588 | return 0; | 
|  | 11589 | } | 
|  | 11590 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11591 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11592 | lt_cv_ld_exported_symbols_list=yes | 
|  | 11593 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11594 | lt_cv_ld_exported_symbols_list=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11595 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11596 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11597 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11598 | LDFLAGS="$save_LDFLAGS" | 
|  | 11599 |  | 
|  | 11600 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11602 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | 
|  | 11604 | $as_echo_n "checking for -force_load linker flag... " >&6; } | 
|  | 11605 | if test "${lt_cv_ld_force_load+set}" = set; then : | 
|  | 11606 | $as_echo_n "(cached) " >&6 | 
|  | 11607 | else | 
|  | 11608 | lt_cv_ld_force_load=no | 
|  | 11609 | cat > conftest.c << _LT_EOF | 
|  | 11610 | int forced_loaded() { return 2;} | 
|  | 11611 | _LT_EOF | 
|  | 11612 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | 
|  | 11613 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | 
|  | 11614 | echo "$AR cru libconftest.a conftest.o" >&5 | 
|  | 11615 | $AR cru libconftest.a conftest.o 2>&5 | 
|  | 11616 | echo "$RANLIB libconftest.a" >&5 | 
|  | 11617 | $RANLIB libconftest.a 2>&5 | 
|  | 11618 | cat > conftest.c << _LT_EOF | 
|  | 11619 | int main() { return 0;} | 
|  | 11620 | _LT_EOF | 
|  | 11621 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | 
|  | 11622 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 
|  | 11623 | _lt_result=$? | 
|  | 11624 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | 
|  | 11625 | lt_cv_ld_force_load=yes | 
|  | 11626 | else | 
|  | 11627 | cat conftest.err >&5 | 
|  | 11628 | fi | 
|  | 11629 | rm -f conftest.err libconftest.a conftest conftest.c | 
|  | 11630 | rm -rf conftest.dSYM | 
|  | 11631 |  | 
|  | 11632 | fi | 
|  | 11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | 
|  | 11634 | $as_echo "$lt_cv_ld_force_load" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11635 | case $host_os in | 
|  | 11636 | rhapsody* | darwin1.[012]) | 
|  | 11637 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 
|  | 11638 | darwin1.*) | 
|  | 11639 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
|  | 11640 | darwin*) # darwin 5.x on | 
|  | 11641 | # if running on 10.5 or later, the deployment target defaults | 
|  | 11642 | # to the OS version, if on x86, and 10.4, the deployment | 
|  | 11643 | # target defaults to 10.4. Don't you love it? | 
|  | 11644 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 
|  | 11645 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | 
|  | 11646 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
|  | 11647 | 10.[012]*) | 
|  | 11648 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
|  | 11649 | 10.*) | 
|  | 11650 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
|  | 11651 | esac | 
|  | 11652 | ;; | 
|  | 11653 | esac | 
|  | 11654 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 
|  | 11655 | _lt_dar_single_mod='$single_module' | 
|  | 11656 | fi | 
|  | 11657 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 
|  | 11658 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | 
|  | 11659 | else | 
|  | 11660 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 11661 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 11662 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11663 | _lt_dsymutil='~$DSYMUTIL $lib || :' | 
|  | 11664 | else | 
|  | 11665 | _lt_dsymutil= | 
|  | 11666 | fi | 
|  | 11667 | ;; | 
|  | 11668 | esac | 
|  | 11669 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11670 | for ac_header in dlfcn.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11671 | do : | 
|  | 11672 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | 
|  | 11673 | " | 
|  | 11674 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11675 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11676 | #define HAVE_DLFCN_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11677 | _ACEOF | 
|  | 11678 |  | 
|  | 11679 | fi | 
|  | 11680 |  | 
|  | 11681 | done | 
|  | 11682 |  | 
|  | 11683 |  | 
|  | 11684 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11685 |  | 
|  | 11686 |  | 
|  | 11687 |  | 
|  | 11688 | # Set options | 
|  | 11689 | enable_win32_dll=yes | 
|  | 11690 |  | 
|  | 11691 | case $host in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 11692 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11693 | if test -n "$ac_tool_prefix"; then | 
|  | 11694 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | 
|  | 11695 | set dummy ${ac_tool_prefix}as; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11697 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11698 | if test "${ac_cv_prog_AS+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11699 | $as_echo_n "(cached) " >&6 | 
|  | 11700 | else | 
|  | 11701 | if test -n "$AS"; then | 
|  | 11702 | ac_cv_prog_AS="$AS" # Let the user override the test. | 
|  | 11703 | else | 
|  | 11704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11705 | for as_dir in $PATH | 
|  | 11706 | do | 
|  | 11707 | IFS=$as_save_IFS | 
|  | 11708 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11709 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11711 | ac_cv_prog_AS="${ac_tool_prefix}as" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11712 | $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] | 11713 | break 2 | 
|  | 11714 | fi | 
|  | 11715 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11716 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11717 | IFS=$as_save_IFS | 
|  | 11718 |  | 
|  | 11719 | fi | 
|  | 11720 | fi | 
|  | 11721 | AS=$ac_cv_prog_AS | 
|  | 11722 | if test -n "$AS"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11724 | $as_echo "$AS" >&6; } | 
|  | 11725 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11727 | $as_echo "no" >&6; } | 
|  | 11728 | fi | 
|  | 11729 |  | 
|  | 11730 |  | 
|  | 11731 | fi | 
|  | 11732 | if test -z "$ac_cv_prog_AS"; then | 
|  | 11733 | ac_ct_AS=$AS | 
|  | 11734 | # Extract the first word of "as", so it can be a program name with args. | 
|  | 11735 | set dummy as; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11737 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11738 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11739 | $as_echo_n "(cached) " >&6 | 
|  | 11740 | else | 
|  | 11741 | if test -n "$ac_ct_AS"; then | 
|  | 11742 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | 
|  | 11743 | else | 
|  | 11744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11745 | for as_dir in $PATH | 
|  | 11746 | do | 
|  | 11747 | IFS=$as_save_IFS | 
|  | 11748 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11749 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11751 | ac_cv_prog_ac_ct_AS="as" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11752 | $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] | 11753 | break 2 | 
|  | 11754 | fi | 
|  | 11755 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11756 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11757 | IFS=$as_save_IFS | 
|  | 11758 |  | 
|  | 11759 | fi | 
|  | 11760 | fi | 
|  | 11761 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | 
|  | 11762 | if test -n "$ac_ct_AS"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11764 | $as_echo "$ac_ct_AS" >&6; } | 
|  | 11765 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11767 | $as_echo "no" >&6; } | 
|  | 11768 | fi | 
|  | 11769 |  | 
|  | 11770 | if test "x$ac_ct_AS" = x; then | 
|  | 11771 | AS="false" | 
|  | 11772 | else | 
|  | 11773 | case $cross_compiling:$ac_tool_warned in | 
|  | 11774 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11775 | { $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] | 11776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11777 | ac_tool_warned=yes ;; | 
|  | 11778 | esac | 
|  | 11779 | AS=$ac_ct_AS | 
|  | 11780 | fi | 
|  | 11781 | else | 
|  | 11782 | AS="$ac_cv_prog_AS" | 
|  | 11783 | fi | 
|  | 11784 |  | 
|  | 11785 | if test -n "$ac_tool_prefix"; then | 
|  | 11786 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 
|  | 11787 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11789 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11790 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11791 | $as_echo_n "(cached) " >&6 | 
|  | 11792 | else | 
|  | 11793 | if test -n "$DLLTOOL"; then | 
|  | 11794 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | 
|  | 11795 | else | 
|  | 11796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11797 | for as_dir in $PATH | 
|  | 11798 | do | 
|  | 11799 | IFS=$as_save_IFS | 
|  | 11800 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11801 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11803 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11804 | $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] | 11805 | break 2 | 
|  | 11806 | fi | 
|  | 11807 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11808 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11809 | IFS=$as_save_IFS | 
|  | 11810 |  | 
|  | 11811 | fi | 
|  | 11812 | fi | 
|  | 11813 | DLLTOOL=$ac_cv_prog_DLLTOOL | 
|  | 11814 | if test -n "$DLLTOOL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11816 | $as_echo "$DLLTOOL" >&6; } | 
|  | 11817 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11819 | $as_echo "no" >&6; } | 
|  | 11820 | fi | 
|  | 11821 |  | 
|  | 11822 |  | 
|  | 11823 | fi | 
|  | 11824 | if test -z "$ac_cv_prog_DLLTOOL"; then | 
|  | 11825 | ac_ct_DLLTOOL=$DLLTOOL | 
|  | 11826 | # Extract the first word of "dlltool", so it can be a program name with args. | 
|  | 11827 | set dummy dlltool; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11829 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11830 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11831 | $as_echo_n "(cached) " >&6 | 
|  | 11832 | else | 
|  | 11833 | if test -n "$ac_ct_DLLTOOL"; then | 
|  | 11834 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | 
|  | 11835 | else | 
|  | 11836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11837 | for as_dir in $PATH | 
|  | 11838 | do | 
|  | 11839 | IFS=$as_save_IFS | 
|  | 11840 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11841 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11843 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11844 | $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] | 11845 | break 2 | 
|  | 11846 | fi | 
|  | 11847 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11848 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11849 | IFS=$as_save_IFS | 
|  | 11850 |  | 
|  | 11851 | fi | 
|  | 11852 | fi | 
|  | 11853 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 
|  | 11854 | if test -n "$ac_ct_DLLTOOL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11856 | $as_echo "$ac_ct_DLLTOOL" >&6; } | 
|  | 11857 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11859 | $as_echo "no" >&6; } | 
|  | 11860 | fi | 
|  | 11861 |  | 
|  | 11862 | if test "x$ac_ct_DLLTOOL" = x; then | 
|  | 11863 | DLLTOOL="false" | 
|  | 11864 | else | 
|  | 11865 | case $cross_compiling:$ac_tool_warned in | 
|  | 11866 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11867 | { $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] | 11868 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11869 | ac_tool_warned=yes ;; | 
|  | 11870 | esac | 
|  | 11871 | DLLTOOL=$ac_ct_DLLTOOL | 
|  | 11872 | fi | 
|  | 11873 | else | 
|  | 11874 | DLLTOOL="$ac_cv_prog_DLLTOOL" | 
|  | 11875 | fi | 
|  | 11876 |  | 
|  | 11877 | if test -n "$ac_tool_prefix"; then | 
|  | 11878 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
|  | 11879 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11881 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11882 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11883 | $as_echo_n "(cached) " >&6 | 
|  | 11884 | else | 
|  | 11885 | if test -n "$OBJDUMP"; then | 
|  | 11886 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
|  | 11887 | else | 
|  | 11888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11889 | for as_dir in $PATH | 
|  | 11890 | do | 
|  | 11891 | IFS=$as_save_IFS | 
|  | 11892 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11893 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11895 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11896 | $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] | 11897 | break 2 | 
|  | 11898 | fi | 
|  | 11899 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11900 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11901 | IFS=$as_save_IFS | 
|  | 11902 |  | 
|  | 11903 | fi | 
|  | 11904 | fi | 
|  | 11905 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
|  | 11906 | if test -n "$OBJDUMP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11908 | $as_echo "$OBJDUMP" >&6; } | 
|  | 11909 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11911 | $as_echo "no" >&6; } | 
|  | 11912 | fi | 
|  | 11913 |  | 
|  | 11914 |  | 
|  | 11915 | fi | 
|  | 11916 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
|  | 11917 | ac_ct_OBJDUMP=$OBJDUMP | 
|  | 11918 | # Extract the first word of "objdump", so it can be a program name with args. | 
|  | 11919 | set dummy objdump; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11921 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11922 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11923 | $as_echo_n "(cached) " >&6 | 
|  | 11924 | else | 
|  | 11925 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 11926 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
|  | 11927 | else | 
|  | 11928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11929 | for as_dir in $PATH | 
|  | 11930 | do | 
|  | 11931 | IFS=$as_save_IFS | 
|  | 11932 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11933 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11935 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11936 | $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] | 11937 | break 2 | 
|  | 11938 | fi | 
|  | 11939 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11940 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11941 | IFS=$as_save_IFS | 
|  | 11942 |  | 
|  | 11943 | fi | 
|  | 11944 | fi | 
|  | 11945 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
|  | 11946 | if test -n "$ac_ct_OBJDUMP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11948 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
|  | 11949 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11951 | $as_echo "no" >&6; } | 
|  | 11952 | fi | 
|  | 11953 |  | 
|  | 11954 | if test "x$ac_ct_OBJDUMP" = x; then | 
|  | 11955 | OBJDUMP="false" | 
|  | 11956 | else | 
|  | 11957 | case $cross_compiling:$ac_tool_warned in | 
|  | 11958 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11959 | { $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] | 11960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11961 | ac_tool_warned=yes ;; | 
|  | 11962 | esac | 
|  | 11963 | OBJDUMP=$ac_ct_OBJDUMP | 
|  | 11964 | fi | 
|  | 11965 | else | 
|  | 11966 | OBJDUMP="$ac_cv_prog_OBJDUMP" | 
|  | 11967 | fi | 
|  | 11968 |  | 
|  | 11969 | ;; | 
|  | 11970 | esac | 
|  | 11971 |  | 
|  | 11972 | test -z "$AS" && AS=as | 
|  | 11973 |  | 
|  | 11974 |  | 
|  | 11975 |  | 
|  | 11976 |  | 
|  | 11977 |  | 
|  | 11978 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 11979 |  | 
|  | 11980 |  | 
|  | 11981 |  | 
|  | 11982 |  | 
|  | 11983 |  | 
|  | 11984 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 11985 |  | 
|  | 11986 |  | 
|  | 11987 |  | 
|  | 11988 |  | 
|  | 11989 |  | 
|  | 11990 |  | 
|  | 11991 |  | 
|  | 11992 |  | 
|  | 11993 |  | 
|  | 11994 | # Check whether --enable-shared was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11995 | if test "${enable_shared+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11996 | enableval=$enable_shared; p=${PACKAGE-default} | 
|  | 11997 | case $enableval in | 
|  | 11998 | yes) enable_shared=yes ;; | 
|  | 11999 | no) enable_shared=no ;; | 
|  | 12000 | *) | 
|  | 12001 | enable_shared=no | 
|  | 12002 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12003 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12004 | for pkg in $enableval; do | 
|  | 12005 | IFS="$lt_save_ifs" | 
|  | 12006 | if test "X$pkg" = "X$p"; then | 
|  | 12007 | enable_shared=yes | 
|  | 12008 | fi | 
|  | 12009 | done | 
|  | 12010 | IFS="$lt_save_ifs" | 
|  | 12011 | ;; | 
|  | 12012 | esac | 
|  | 12013 | else | 
|  | 12014 | enable_shared=yes | 
|  | 12015 | fi | 
|  | 12016 |  | 
|  | 12017 |  | 
|  | 12018 |  | 
|  | 12019 |  | 
|  | 12020 |  | 
|  | 12021 |  | 
|  | 12022 |  | 
|  | 12023 |  | 
|  | 12024 |  | 
|  | 12025 | # Check whether --enable-static was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12026 | if test "${enable_static+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12027 | enableval=$enable_static; p=${PACKAGE-default} | 
|  | 12028 | case $enableval in | 
|  | 12029 | yes) enable_static=yes ;; | 
|  | 12030 | no) enable_static=no ;; | 
|  | 12031 | *) | 
|  | 12032 | enable_static=no | 
|  | 12033 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12034 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12035 | for pkg in $enableval; do | 
|  | 12036 | IFS="$lt_save_ifs" | 
|  | 12037 | if test "X$pkg" = "X$p"; then | 
|  | 12038 | enable_static=yes | 
|  | 12039 | fi | 
|  | 12040 | done | 
|  | 12041 | IFS="$lt_save_ifs" | 
|  | 12042 | ;; | 
|  | 12043 | esac | 
|  | 12044 | else | 
|  | 12045 | enable_static=yes | 
|  | 12046 | fi | 
|  | 12047 |  | 
|  | 12048 |  | 
|  | 12049 |  | 
|  | 12050 |  | 
|  | 12051 |  | 
|  | 12052 |  | 
|  | 12053 |  | 
|  | 12054 |  | 
|  | 12055 |  | 
|  | 12056 |  | 
|  | 12057 | # Check whether --with-pic was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12058 | if test "${with_pic+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12059 | withval=$with_pic; pic_mode="$withval" | 
|  | 12060 | else | 
|  | 12061 | pic_mode=default | 
|  | 12062 | fi | 
|  | 12063 |  | 
|  | 12064 |  | 
|  | 12065 | test -z "$pic_mode" && pic_mode=default | 
|  | 12066 |  | 
|  | 12067 |  | 
|  | 12068 |  | 
|  | 12069 |  | 
|  | 12070 |  | 
|  | 12071 |  | 
|  | 12072 |  | 
|  | 12073 | # Check whether --enable-fast-install was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12074 | if test "${enable_fast_install+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12075 | enableval=$enable_fast_install; p=${PACKAGE-default} | 
|  | 12076 | case $enableval in | 
|  | 12077 | yes) enable_fast_install=yes ;; | 
|  | 12078 | no) enable_fast_install=no ;; | 
|  | 12079 | *) | 
|  | 12080 | enable_fast_install=no | 
|  | 12081 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12082 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12083 | for pkg in $enableval; do | 
|  | 12084 | IFS="$lt_save_ifs" | 
|  | 12085 | if test "X$pkg" = "X$p"; then | 
|  | 12086 | enable_fast_install=yes | 
|  | 12087 | fi | 
|  | 12088 | done | 
|  | 12089 | IFS="$lt_save_ifs" | 
|  | 12090 | ;; | 
|  | 12091 | esac | 
|  | 12092 | else | 
|  | 12093 | enable_fast_install=yes | 
|  | 12094 | fi | 
|  | 12095 |  | 
|  | 12096 |  | 
|  | 12097 |  | 
|  | 12098 |  | 
|  | 12099 |  | 
|  | 12100 |  | 
|  | 12101 |  | 
|  | 12102 |  | 
|  | 12103 |  | 
|  | 12104 |  | 
|  | 12105 |  | 
|  | 12106 | # This can be used to rebuild libtool when needed | 
|  | 12107 | LIBTOOL_DEPS="$ltmain" | 
|  | 12108 |  | 
|  | 12109 | # Always use our own libtool. | 
|  | 12110 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|  | 12111 |  | 
|  | 12112 |  | 
|  | 12113 |  | 
|  | 12114 |  | 
|  | 12115 |  | 
|  | 12116 |  | 
|  | 12117 |  | 
|  | 12118 |  | 
|  | 12119 |  | 
|  | 12120 |  | 
|  | 12121 |  | 
|  | 12122 |  | 
|  | 12123 |  | 
|  | 12124 |  | 
|  | 12125 |  | 
|  | 12126 |  | 
|  | 12127 |  | 
|  | 12128 |  | 
|  | 12129 |  | 
|  | 12130 |  | 
|  | 12131 |  | 
|  | 12132 |  | 
|  | 12133 |  | 
|  | 12134 |  | 
|  | 12135 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12136 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12137 | test -z "$LN_S" && LN_S="ln -s" | 
|  | 12138 |  | 
|  | 12139 |  | 
|  | 12140 |  | 
|  | 12141 |  | 
|  | 12142 |  | 
|  | 12143 |  | 
|  | 12144 |  | 
|  | 12145 |  | 
|  | 12146 |  | 
|  | 12147 |  | 
|  | 12148 |  | 
|  | 12149 |  | 
|  | 12150 |  | 
|  | 12151 |  | 
|  | 12152 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 12153 | setopt NO_GLOB_SUBST | 
|  | 12154 | fi | 
|  | 12155 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12157 | $as_echo_n "checking for objdir... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12158 | if test "${lt_cv_objdir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12159 | $as_echo_n "(cached) " >&6 | 
|  | 12160 | else | 
|  | 12161 | rm -f .libs 2>/dev/null | 
|  | 12162 | mkdir .libs 2>/dev/null | 
|  | 12163 | if test -d .libs; then | 
|  | 12164 | lt_cv_objdir=.libs | 
|  | 12165 | else | 
|  | 12166 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 12167 | lt_cv_objdir=_libs | 
|  | 12168 | fi | 
|  | 12169 | rmdir .libs 2>/dev/null | 
|  | 12170 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12172 | $as_echo "$lt_cv_objdir" >&6; } | 
|  | 12173 | objdir=$lt_cv_objdir | 
|  | 12174 |  | 
|  | 12175 |  | 
|  | 12176 |  | 
|  | 12177 |  | 
|  | 12178 |  | 
|  | 12179 | cat >>confdefs.h <<_ACEOF | 
|  | 12180 | #define LT_OBJDIR "$lt_cv_objdir/" | 
|  | 12181 | _ACEOF | 
|  | 12182 |  | 
|  | 12183 |  | 
|  | 12184 |  | 
|  | 12185 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12186 | case $host_os in | 
|  | 12187 | aix3*) | 
|  | 12188 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 12189 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 12190 | # vanish in a puff of smoke. | 
|  | 12191 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 12192 | COLLECT_NAMES= | 
|  | 12193 | export COLLECT_NAMES | 
|  | 12194 | fi | 
|  | 12195 | ;; | 
|  | 12196 | esac | 
|  | 12197 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12198 | # Global variables: | 
|  | 12199 | ofile=libtool | 
|  | 12200 | can_build_shared=yes | 
|  | 12201 |  | 
|  | 12202 | # All known linkers require a `.a' archive for static linking (except MSVC, | 
|  | 12203 | # which needs '.lib'). | 
|  | 12204 | libext=a | 
|  | 12205 |  | 
|  | 12206 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|  | 12207 |  | 
|  | 12208 | old_CC="$CC" | 
|  | 12209 | old_CFLAGS="$CFLAGS" | 
|  | 12210 |  | 
|  | 12211 | # Set sane defaults for various variables | 
|  | 12212 | test -z "$CC" && CC=cc | 
|  | 12213 | test -z "$LTCC" && LTCC=$CC | 
|  | 12214 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 
|  | 12215 | test -z "$LD" && LD=ld | 
|  | 12216 | test -z "$ac_objext" && ac_objext=o | 
|  | 12217 |  | 
|  | 12218 | for cc_temp in $compiler""; do | 
|  | 12219 | case $cc_temp in | 
|  | 12220 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
|  | 12221 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
|  | 12222 | \-*) ;; | 
|  | 12223 | *) break;; | 
|  | 12224 | esac | 
|  | 12225 | done | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12226 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12227 |  | 
|  | 12228 |  | 
|  | 12229 | # Only perform the check for file, if the check method requires it | 
|  | 12230 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|  | 12231 | case $deplibs_check_method in | 
|  | 12232 | file_magic*) | 
|  | 12233 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12235 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12236 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12237 | $as_echo_n "(cached) " >&6 | 
|  | 12238 | else | 
|  | 12239 | case $MAGIC_CMD in | 
|  | 12240 | [\\/*] |  ?:[\\/]*) | 
|  | 12241 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 12242 | ;; | 
|  | 12243 | *) | 
|  | 12244 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 12245 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 12246 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 12247 | for ac_dir in $ac_dummy; do | 
|  | 12248 | IFS="$lt_save_ifs" | 
|  | 12249 | test -z "$ac_dir" && ac_dir=. | 
|  | 12250 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|  | 12251 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|  | 12252 | if test -n "$file_magic_test_file"; then | 
|  | 12253 | case $deplibs_check_method in | 
|  | 12254 | "file_magic "*) | 
|  | 12255 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
|  | 12256 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12257 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 12258 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 12259 | : | 
|  | 12260 | else | 
|  | 12261 | cat <<_LT_EOF 1>&2 | 
|  | 12262 |  | 
|  | 12263 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 12264 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 12265 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 12266 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 12267 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 12268 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 12269 | *** may want to report the problem to your system manager and/or to | 
|  | 12270 | *** bug-libtool@gnu.org | 
|  | 12271 |  | 
|  | 12272 | _LT_EOF | 
|  | 12273 | fi ;; | 
|  | 12274 | esac | 
|  | 12275 | fi | 
|  | 12276 | break | 
|  | 12277 | fi | 
|  | 12278 | done | 
|  | 12279 | IFS="$lt_save_ifs" | 
|  | 12280 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 12281 | ;; | 
|  | 12282 | esac | 
|  | 12283 | fi | 
|  | 12284 |  | 
|  | 12285 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12286 | if test -n "$MAGIC_CMD"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12288 | $as_echo "$MAGIC_CMD" >&6; } | 
|  | 12289 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12291 | $as_echo "no" >&6; } | 
|  | 12292 | fi | 
|  | 12293 |  | 
|  | 12294 |  | 
|  | 12295 |  | 
|  | 12296 |  | 
|  | 12297 |  | 
|  | 12298 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|  | 12299 | if test -n "$ac_tool_prefix"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12301 | $as_echo_n "checking for file... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12302 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12303 | $as_echo_n "(cached) " >&6 | 
|  | 12304 | else | 
|  | 12305 | case $MAGIC_CMD in | 
|  | 12306 | [\\/*] |  ?:[\\/]*) | 
|  | 12307 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 12308 | ;; | 
|  | 12309 | *) | 
|  | 12310 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 12311 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 12312 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 12313 | for ac_dir in $ac_dummy; do | 
|  | 12314 | IFS="$lt_save_ifs" | 
|  | 12315 | test -z "$ac_dir" && ac_dir=. | 
|  | 12316 | if test -f $ac_dir/file; then | 
|  | 12317 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|  | 12318 | if test -n "$file_magic_test_file"; then | 
|  | 12319 | case $deplibs_check_method in | 
|  | 12320 | "file_magic "*) | 
|  | 12321 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
|  | 12322 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12323 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 12324 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 12325 | : | 
|  | 12326 | else | 
|  | 12327 | cat <<_LT_EOF 1>&2 | 
|  | 12328 |  | 
|  | 12329 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 12330 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 12331 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 12332 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 12333 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 12334 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 12335 | *** may want to report the problem to your system manager and/or to | 
|  | 12336 | *** bug-libtool@gnu.org | 
|  | 12337 |  | 
|  | 12338 | _LT_EOF | 
|  | 12339 | fi ;; | 
|  | 12340 | esac | 
|  | 12341 | fi | 
|  | 12342 | break | 
|  | 12343 | fi | 
|  | 12344 | done | 
|  | 12345 | IFS="$lt_save_ifs" | 
|  | 12346 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 12347 | ;; | 
|  | 12348 | esac | 
|  | 12349 | fi | 
|  | 12350 |  | 
|  | 12351 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12352 | if test -n "$MAGIC_CMD"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12354 | $as_echo "$MAGIC_CMD" >&6; } | 
|  | 12355 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12357 | $as_echo "no" >&6; } | 
|  | 12358 | fi | 
|  | 12359 |  | 
|  | 12360 |  | 
|  | 12361 | else | 
|  | 12362 | MAGIC_CMD=: | 
|  | 12363 | fi | 
|  | 12364 | fi | 
|  | 12365 |  | 
|  | 12366 | fi | 
|  | 12367 | ;; | 
|  | 12368 | esac | 
|  | 12369 |  | 
|  | 12370 | # Use C for the default configuration in the libtool script | 
|  | 12371 |  | 
|  | 12372 | lt_save_CC="$CC" | 
|  | 12373 | ac_ext=c | 
|  | 12374 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 12375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 12376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 12377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 12378 |  | 
|  | 12379 |  | 
|  | 12380 | # Source file extension for C test sources. | 
|  | 12381 | ac_ext=c | 
|  | 12382 |  | 
|  | 12383 | # Object file extension for compiled C test sources. | 
|  | 12384 | objext=o | 
|  | 12385 | objext=$objext | 
|  | 12386 |  | 
|  | 12387 | # Code to be used in simple compile tests | 
|  | 12388 | lt_simple_compile_test_code="int some_variable = 0;" | 
|  | 12389 |  | 
|  | 12390 | # Code to be used in simple link tests | 
|  | 12391 | lt_simple_link_test_code='int main(){return(0);}' | 
|  | 12392 |  | 
|  | 12393 |  | 
|  | 12394 |  | 
|  | 12395 |  | 
|  | 12396 |  | 
|  | 12397 |  | 
|  | 12398 |  | 
|  | 12399 | # If no C compiler was specified, use CC. | 
|  | 12400 | LTCC=${LTCC-"$CC"} | 
|  | 12401 |  | 
|  | 12402 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 12403 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 12404 |  | 
|  | 12405 | # Allow CC to be a program name with arguments. | 
|  | 12406 | compiler=$CC | 
|  | 12407 |  | 
|  | 12408 | # Save the default compiler, since it gets overwritten when the other | 
|  | 12409 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | 
|  | 12410 | compiler_DEFAULT=$CC | 
|  | 12411 |  | 
|  | 12412 | # save warnings/boilerplate of simple test code | 
|  | 12413 | ac_outfile=conftest.$ac_objext | 
|  | 12414 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
|  | 12415 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 12416 | _lt_compiler_boilerplate=`cat conftest.err` | 
|  | 12417 | $RM conftest* | 
|  | 12418 |  | 
|  | 12419 | ac_outfile=conftest.$ac_objext | 
|  | 12420 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
|  | 12421 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 12422 | _lt_linker_boilerplate=`cat conftest.err` | 
|  | 12423 | $RM -r conftest* | 
|  | 12424 |  | 
|  | 12425 |  | 
|  | 12426 | ## CAVEAT EMPTOR: | 
|  | 12427 | ## There is no encapsulation within the following macros, do not change | 
|  | 12428 | ## the running order or otherwise move them around unless you know exactly | 
|  | 12429 | ## what you are doing... | 
|  | 12430 | if test -n "$compiler"; then | 
|  | 12431 |  | 
|  | 12432 | lt_prog_compiler_no_builtin_flag= | 
|  | 12433 |  | 
|  | 12434 | if test "$GCC" = yes; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12435 | case $cc_basename in | 
|  | 12436 | nvcc*) | 
|  | 12437 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | 
|  | 12438 | *) | 
|  | 12439 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | 
|  | 12440 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12441 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12443 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12444 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12445 | $as_echo_n "(cached) " >&6 | 
|  | 12446 | else | 
|  | 12447 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 12448 | ac_outfile=conftest.$ac_objext | 
|  | 12449 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12450 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 12451 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12452 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12453 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12454 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12455 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 12456 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12457 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 12458 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12459 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12460 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12461 | (eval "$lt_compile" 2>conftest.err) | 
|  | 12462 | ac_status=$? | 
|  | 12463 | cat conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12465 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 12466 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12467 | # So say no if there are warnings other than the usual output. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12468 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12469 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 12470 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 12471 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 12472 | fi | 
|  | 12473 | fi | 
|  | 12474 | $RM conftest* | 
|  | 12475 |  | 
|  | 12476 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12478 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 
|  | 12479 |  | 
|  | 12480 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 12481 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
|  | 12482 | else | 
|  | 12483 | : | 
|  | 12484 | fi | 
|  | 12485 |  | 
|  | 12486 | fi | 
|  | 12487 |  | 
|  | 12488 |  | 
|  | 12489 |  | 
|  | 12490 |  | 
|  | 12491 |  | 
|  | 12492 |  | 
|  | 12493 | lt_prog_compiler_wl= | 
|  | 12494 | lt_prog_compiler_pic= | 
|  | 12495 | lt_prog_compiler_static= | 
|  | 12496 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12498 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
|  | 12499 |  | 
|  | 12500 | if test "$GCC" = yes; then | 
|  | 12501 | lt_prog_compiler_wl='-Wl,' | 
|  | 12502 | lt_prog_compiler_static='-static' | 
|  | 12503 |  | 
|  | 12504 | case $host_os in | 
|  | 12505 | aix*) | 
|  | 12506 | # All AIX code is PIC. | 
|  | 12507 | if test "$host_cpu" = ia64; then | 
|  | 12508 | # AIX 5 now supports IA64 processor | 
|  | 12509 | lt_prog_compiler_static='-Bstatic' | 
|  | 12510 | fi | 
|  | 12511 | ;; | 
|  | 12512 |  | 
|  | 12513 | amigaos*) | 
|  | 12514 | case $host_cpu in | 
|  | 12515 | powerpc) | 
|  | 12516 | # see comment about AmigaOS4 .so support | 
|  | 12517 | lt_prog_compiler_pic='-fPIC' | 
|  | 12518 | ;; | 
|  | 12519 | m68k) | 
|  | 12520 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 12521 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 12522 | # like `-m68040'. | 
|  | 12523 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
|  | 12524 | ;; | 
|  | 12525 | esac | 
|  | 12526 | ;; | 
|  | 12527 |  | 
|  | 12528 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 12529 | # PIC is the default for these OSes. | 
|  | 12530 | ;; | 
|  | 12531 |  | 
|  | 12532 | mingw* | cygwin* | pw32* | os2* | cegcc*) | 
|  | 12533 | # This hack is so that the source file can tell whether it is being | 
|  | 12534 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 12535 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
|  | 12536 | # (--disable-auto-import) libraries | 
|  | 12537 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 12538 | ;; | 
|  | 12539 |  | 
|  | 12540 | darwin* | rhapsody*) | 
|  | 12541 | # PIC is the default on this platform | 
|  | 12542 | # Common symbols not allowed in MH_DYLIB files | 
|  | 12543 | lt_prog_compiler_pic='-fno-common' | 
|  | 12544 | ;; | 
|  | 12545 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12546 | haiku*) | 
|  | 12547 | # PIC is the default for Haiku. | 
|  | 12548 | # The "-static" flag exists, but is broken. | 
|  | 12549 | lt_prog_compiler_static= | 
|  | 12550 | ;; | 
|  | 12551 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12552 | hpux*) | 
|  | 12553 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
|  | 12554 | # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
|  | 12555 | # sets the default TLS model and affects inlining. | 
|  | 12556 | case $host_cpu in | 
|  | 12557 | hppa*64*) | 
|  | 12558 | # +Z the default | 
|  | 12559 | ;; | 
|  | 12560 | *) | 
|  | 12561 | lt_prog_compiler_pic='-fPIC' | 
|  | 12562 | ;; | 
|  | 12563 | esac | 
|  | 12564 | ;; | 
|  | 12565 |  | 
|  | 12566 | interix[3-9]*) | 
|  | 12567 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
|  | 12568 | # Instead, we relocate shared libraries at runtime. | 
|  | 12569 | ;; | 
|  | 12570 |  | 
|  | 12571 | msdosdjgpp*) | 
|  | 12572 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 12573 | # on systems that don't support them. | 
|  | 12574 | lt_prog_compiler_can_build_shared=no | 
|  | 12575 | enable_shared=no | 
|  | 12576 | ;; | 
|  | 12577 |  | 
|  | 12578 | *nto* | *qnx*) | 
|  | 12579 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 12580 | # it will coredump. | 
|  | 12581 | lt_prog_compiler_pic='-fPIC -shared' | 
|  | 12582 | ;; | 
|  | 12583 |  | 
|  | 12584 | sysv4*MP*) | 
|  | 12585 | if test -d /usr/nec; then | 
|  | 12586 | lt_prog_compiler_pic=-Kconform_pic | 
|  | 12587 | fi | 
|  | 12588 | ;; | 
|  | 12589 |  | 
|  | 12590 | *) | 
|  | 12591 | lt_prog_compiler_pic='-fPIC' | 
|  | 12592 | ;; | 
|  | 12593 | esac | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12594 |  | 
|  | 12595 | case $cc_basename in | 
|  | 12596 | nvcc*) # Cuda Compiler Driver 2.2 | 
|  | 12597 | lt_prog_compiler_wl='-Xlinker ' | 
|  | 12598 | lt_prog_compiler_pic='-Xcompiler -fPIC' | 
|  | 12599 | ;; | 
|  | 12600 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12601 | else | 
|  | 12602 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 12603 | case $host_os in | 
|  | 12604 | aix*) | 
|  | 12605 | lt_prog_compiler_wl='-Wl,' | 
|  | 12606 | if test "$host_cpu" = ia64; then | 
|  | 12607 | # AIX 5 now supports IA64 processor | 
|  | 12608 | lt_prog_compiler_static='-Bstatic' | 
|  | 12609 | else | 
|  | 12610 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
|  | 12611 | fi | 
|  | 12612 | ;; | 
|  | 12613 |  | 
|  | 12614 | mingw* | cygwin* | pw32* | os2* | cegcc*) | 
|  | 12615 | # This hack is so that the source file can tell whether it is being | 
|  | 12616 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 12617 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 12618 | ;; | 
|  | 12619 |  | 
|  | 12620 | hpux9* | hpux10* | hpux11*) | 
|  | 12621 | lt_prog_compiler_wl='-Wl,' | 
|  | 12622 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 12623 | # not for PA HP-UX. | 
|  | 12624 | case $host_cpu in | 
|  | 12625 | hppa*64*|ia64*) | 
|  | 12626 | # +Z the default | 
|  | 12627 | ;; | 
|  | 12628 | *) | 
|  | 12629 | lt_prog_compiler_pic='+Z' | 
|  | 12630 | ;; | 
|  | 12631 | esac | 
|  | 12632 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 12633 | lt_prog_compiler_static='${wl}-a ${wl}archive' | 
|  | 12634 | ;; | 
|  | 12635 |  | 
|  | 12636 | irix5* | irix6* | nonstopux*) | 
|  | 12637 | lt_prog_compiler_wl='-Wl,' | 
|  | 12638 | # PIC (with -KPIC) is the default. | 
|  | 12639 | lt_prog_compiler_static='-non_shared' | 
|  | 12640 | ;; | 
|  | 12641 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12642 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12643 | case $cc_basename in | 
|  | 12644 | # old Intel for x86_64 which still supported -KPIC. | 
|  | 12645 | ecc*) | 
|  | 12646 | lt_prog_compiler_wl='-Wl,' | 
|  | 12647 | lt_prog_compiler_pic='-KPIC' | 
|  | 12648 | lt_prog_compiler_static='-static' | 
|  | 12649 | ;; | 
|  | 12650 | # icc used to be incompatible with GCC. | 
|  | 12651 | # ICC 10 doesn't accept -KPIC any more. | 
|  | 12652 | icc* | ifort*) | 
|  | 12653 | lt_prog_compiler_wl='-Wl,' | 
|  | 12654 | lt_prog_compiler_pic='-fPIC' | 
|  | 12655 | lt_prog_compiler_static='-static' | 
|  | 12656 | ;; | 
|  | 12657 | # Lahey Fortran 8.1. | 
|  | 12658 | lf95*) | 
|  | 12659 | lt_prog_compiler_wl='-Wl,' | 
|  | 12660 | lt_prog_compiler_pic='--shared' | 
|  | 12661 | lt_prog_compiler_static='--static' | 
|  | 12662 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12663 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12664 | # Portland Group compilers (*not* the Pentium gcc compiler, | 
|  | 12665 | # which looks to be a dead project) | 
|  | 12666 | lt_prog_compiler_wl='-Wl,' | 
|  | 12667 | lt_prog_compiler_pic='-fpic' | 
|  | 12668 | lt_prog_compiler_static='-Bstatic' | 
|  | 12669 | ;; | 
|  | 12670 | ccc*) | 
|  | 12671 | lt_prog_compiler_wl='-Wl,' | 
|  | 12672 | # All Alpha code is PIC. | 
|  | 12673 | lt_prog_compiler_static='-non_shared' | 
|  | 12674 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12675 | xl* | bgxl* | bgf* | mpixl*) | 
|  | 12676 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12677 | lt_prog_compiler_wl='-Wl,' | 
|  | 12678 | lt_prog_compiler_pic='-qpic' | 
|  | 12679 | lt_prog_compiler_static='-qstaticlink' | 
|  | 12680 | ;; | 
|  | 12681 | *) | 
|  | 12682 | case `$CC -V 2>&1 | sed 5q` in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12683 | *Sun\ F* | *Sun*Fortran*) | 
|  | 12684 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 
|  | 12685 | lt_prog_compiler_pic='-KPIC' | 
|  | 12686 | lt_prog_compiler_static='-Bstatic' | 
|  | 12687 | lt_prog_compiler_wl='' | 
|  | 12688 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12689 | *Sun\ C*) | 
|  | 12690 | # Sun C 5.9 | 
|  | 12691 | lt_prog_compiler_pic='-KPIC' | 
|  | 12692 | lt_prog_compiler_static='-Bstatic' | 
|  | 12693 | lt_prog_compiler_wl='-Wl,' | 
|  | 12694 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12695 | esac | 
|  | 12696 | ;; | 
|  | 12697 | esac | 
|  | 12698 | ;; | 
|  | 12699 |  | 
|  | 12700 | newsos6) | 
|  | 12701 | lt_prog_compiler_pic='-KPIC' | 
|  | 12702 | lt_prog_compiler_static='-Bstatic' | 
|  | 12703 | ;; | 
|  | 12704 |  | 
|  | 12705 | *nto* | *qnx*) | 
|  | 12706 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 12707 | # it will coredump. | 
|  | 12708 | lt_prog_compiler_pic='-fPIC -shared' | 
|  | 12709 | ;; | 
|  | 12710 |  | 
|  | 12711 | osf3* | osf4* | osf5*) | 
|  | 12712 | lt_prog_compiler_wl='-Wl,' | 
|  | 12713 | # All OSF/1 code is PIC. | 
|  | 12714 | lt_prog_compiler_static='-non_shared' | 
|  | 12715 | ;; | 
|  | 12716 |  | 
|  | 12717 | rdos*) | 
|  | 12718 | lt_prog_compiler_static='-non_shared' | 
|  | 12719 | ;; | 
|  | 12720 |  | 
|  | 12721 | solaris*) | 
|  | 12722 | lt_prog_compiler_pic='-KPIC' | 
|  | 12723 | lt_prog_compiler_static='-Bstatic' | 
|  | 12724 | case $cc_basename in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12725 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12726 | lt_prog_compiler_wl='-Qoption ld ';; | 
|  | 12727 | *) | 
|  | 12728 | lt_prog_compiler_wl='-Wl,';; | 
|  | 12729 | esac | 
|  | 12730 | ;; | 
|  | 12731 |  | 
|  | 12732 | sunos4*) | 
|  | 12733 | lt_prog_compiler_wl='-Qoption ld ' | 
|  | 12734 | lt_prog_compiler_pic='-PIC' | 
|  | 12735 | lt_prog_compiler_static='-Bstatic' | 
|  | 12736 | ;; | 
|  | 12737 |  | 
|  | 12738 | sysv4 | sysv4.2uw2* | sysv4.3*) | 
|  | 12739 | lt_prog_compiler_wl='-Wl,' | 
|  | 12740 | lt_prog_compiler_pic='-KPIC' | 
|  | 12741 | lt_prog_compiler_static='-Bstatic' | 
|  | 12742 | ;; | 
|  | 12743 |  | 
|  | 12744 | sysv4*MP*) | 
|  | 12745 | if test -d /usr/nec ;then | 
|  | 12746 | lt_prog_compiler_pic='-Kconform_pic' | 
|  | 12747 | lt_prog_compiler_static='-Bstatic' | 
|  | 12748 | fi | 
|  | 12749 | ;; | 
|  | 12750 |  | 
|  | 12751 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
|  | 12752 | lt_prog_compiler_wl='-Wl,' | 
|  | 12753 | lt_prog_compiler_pic='-KPIC' | 
|  | 12754 | lt_prog_compiler_static='-Bstatic' | 
|  | 12755 | ;; | 
|  | 12756 |  | 
|  | 12757 | unicos*) | 
|  | 12758 | lt_prog_compiler_wl='-Wl,' | 
|  | 12759 | lt_prog_compiler_can_build_shared=no | 
|  | 12760 | ;; | 
|  | 12761 |  | 
|  | 12762 | uts4*) | 
|  | 12763 | lt_prog_compiler_pic='-pic' | 
|  | 12764 | lt_prog_compiler_static='-Bstatic' | 
|  | 12765 | ;; | 
|  | 12766 |  | 
|  | 12767 | *) | 
|  | 12768 | lt_prog_compiler_can_build_shared=no | 
|  | 12769 | ;; | 
|  | 12770 | esac | 
|  | 12771 | fi | 
|  | 12772 |  | 
|  | 12773 | case $host_os in | 
|  | 12774 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 12775 | *djgpp*) | 
|  | 12776 | lt_prog_compiler_pic= | 
|  | 12777 | ;; | 
|  | 12778 | *) | 
|  | 12779 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
|  | 12780 | ;; | 
|  | 12781 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12783 | $as_echo "$lt_prog_compiler_pic" >&6; } | 
|  | 12784 |  | 
|  | 12785 |  | 
|  | 12786 |  | 
|  | 12787 |  | 
|  | 12788 |  | 
|  | 12789 |  | 
|  | 12790 | # | 
|  | 12791 | # Check to make sure the PIC flag actually works. | 
|  | 12792 | # | 
|  | 12793 | if test -n "$lt_prog_compiler_pic"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12795 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12796 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12797 | $as_echo_n "(cached) " >&6 | 
|  | 12798 | else | 
|  | 12799 | lt_cv_prog_compiler_pic_works=no | 
|  | 12800 | ac_outfile=conftest.$ac_objext | 
|  | 12801 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12802 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
|  | 12803 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12804 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12805 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12806 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12807 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 12808 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12809 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 12810 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12811 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12812 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12813 | (eval "$lt_compile" 2>conftest.err) | 
|  | 12814 | ac_status=$? | 
|  | 12815 | cat conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12817 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 12818 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12819 | # So say no if there are warnings other than the usual output. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12820 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12821 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 12822 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 12823 | lt_cv_prog_compiler_pic_works=yes | 
|  | 12824 | fi | 
|  | 12825 | fi | 
|  | 12826 | $RM conftest* | 
|  | 12827 |  | 
|  | 12828 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12830 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | 
|  | 12831 |  | 
|  | 12832 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | 
|  | 12833 | case $lt_prog_compiler_pic in | 
|  | 12834 | "" | " "*) ;; | 
|  | 12835 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
|  | 12836 | esac | 
|  | 12837 | else | 
|  | 12838 | lt_prog_compiler_pic= | 
|  | 12839 | lt_prog_compiler_can_build_shared=no | 
|  | 12840 | fi | 
|  | 12841 |  | 
|  | 12842 | fi | 
|  | 12843 |  | 
|  | 12844 |  | 
|  | 12845 |  | 
|  | 12846 |  | 
|  | 12847 |  | 
|  | 12848 |  | 
|  | 12849 | # | 
|  | 12850 | # Check to make sure the static flag actually works. | 
|  | 12851 | # | 
|  | 12852 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12854 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12855 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12856 | $as_echo_n "(cached) " >&6 | 
|  | 12857 | else | 
|  | 12858 | lt_cv_prog_compiler_static_works=no | 
|  | 12859 | save_LDFLAGS="$LDFLAGS" | 
|  | 12860 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
|  | 12861 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 12862 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 12863 | # The linker can only warn and ignore the option if not recognized | 
|  | 12864 | # So say no if there are warnings | 
|  | 12865 | if test -s conftest.err; then | 
|  | 12866 | # Append any errors to the config.log. | 
|  | 12867 | cat conftest.err 1>&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12868 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12869 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 12870 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 12871 | lt_cv_prog_compiler_static_works=yes | 
|  | 12872 | fi | 
|  | 12873 | else | 
|  | 12874 | lt_cv_prog_compiler_static_works=yes | 
|  | 12875 | fi | 
|  | 12876 | fi | 
|  | 12877 | $RM -r conftest* | 
|  | 12878 | LDFLAGS="$save_LDFLAGS" | 
|  | 12879 |  | 
|  | 12880 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12882 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | 
|  | 12883 |  | 
|  | 12884 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | 
|  | 12885 | : | 
|  | 12886 | else | 
|  | 12887 | lt_prog_compiler_static= | 
|  | 12888 | fi | 
|  | 12889 |  | 
|  | 12890 |  | 
|  | 12891 |  | 
|  | 12892 |  | 
|  | 12893 |  | 
|  | 12894 |  | 
|  | 12895 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12897 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12898 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12899 | $as_echo_n "(cached) " >&6 | 
|  | 12900 | else | 
|  | 12901 | lt_cv_prog_compiler_c_o=no | 
|  | 12902 | $RM -r conftest 2>/dev/null | 
|  | 12903 | mkdir conftest | 
|  | 12904 | cd conftest | 
|  | 12905 | mkdir out | 
|  | 12906 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12907 |  | 
|  | 12908 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 12909 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12910 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12911 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12912 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12913 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12914 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 12915 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12916 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12917 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12918 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 12919 | ac_status=$? | 
|  | 12920 | cat out/conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12922 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 12923 | then | 
|  | 12924 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12925 | # So say no if there are warnings | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12926 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12927 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 12928 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 12929 | lt_cv_prog_compiler_c_o=yes | 
|  | 12930 | fi | 
|  | 12931 | fi | 
|  | 12932 | chmod u+w . 2>&5 | 
|  | 12933 | $RM conftest* | 
|  | 12934 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 12935 | # template instantiation | 
|  | 12936 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 12937 | $RM out/* && rmdir out | 
|  | 12938 | cd .. | 
|  | 12939 | $RM -r conftest | 
|  | 12940 | $RM conftest* | 
|  | 12941 |  | 
|  | 12942 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12944 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
|  | 12945 |  | 
|  | 12946 |  | 
|  | 12947 |  | 
|  | 12948 |  | 
|  | 12949 |  | 
|  | 12950 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12952 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12953 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12954 | $as_echo_n "(cached) " >&6 | 
|  | 12955 | else | 
|  | 12956 | lt_cv_prog_compiler_c_o=no | 
|  | 12957 | $RM -r conftest 2>/dev/null | 
|  | 12958 | mkdir conftest | 
|  | 12959 | cd conftest | 
|  | 12960 | mkdir out | 
|  | 12961 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12962 |  | 
|  | 12963 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 12964 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12965 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12966 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12967 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12968 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 12970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12971 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12972 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12973 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 12974 | ac_status=$? | 
|  | 12975 | cat out/conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12977 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 12978 | then | 
|  | 12979 | # The compiler can only warn and ignore the option if not recognized | 
|  | 12980 | # So say no if there are warnings | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 12981 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12982 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 12983 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 12984 | lt_cv_prog_compiler_c_o=yes | 
|  | 12985 | fi | 
|  | 12986 | fi | 
|  | 12987 | chmod u+w . 2>&5 | 
|  | 12988 | $RM conftest* | 
|  | 12989 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 12990 | # template instantiation | 
|  | 12991 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 12992 | $RM out/* && rmdir out | 
|  | 12993 | cd .. | 
|  | 12994 | $RM -r conftest | 
|  | 12995 | $RM conftest* | 
|  | 12996 |  | 
|  | 12997 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12999 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
|  | 13000 |  | 
|  | 13001 |  | 
|  | 13002 |  | 
|  | 13003 |  | 
|  | 13004 | hard_links="nottested" | 
|  | 13005 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 
|  | 13006 | # do not overwrite the value of need_locks provided by the user | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13008 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
|  | 13009 | hard_links=yes | 
|  | 13010 | $RM conftest* | 
|  | 13011 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 13012 | touch conftest.a | 
|  | 13013 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 13014 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13016 | $as_echo "$hard_links" >&6; } | 
|  | 13017 | if test "$hard_links" = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13019 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 13020 | need_locks=warn | 
|  | 13021 | fi | 
|  | 13022 | else | 
|  | 13023 | need_locks=no | 
|  | 13024 | fi | 
|  | 13025 |  | 
|  | 13026 |  | 
|  | 13027 |  | 
|  | 13028 |  | 
|  | 13029 |  | 
|  | 13030 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13032 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 13033 |  | 
|  | 13034 | runpath_var= | 
|  | 13035 | allow_undefined_flag= | 
|  | 13036 | always_export_symbols=no | 
|  | 13037 | archive_cmds= | 
|  | 13038 | archive_expsym_cmds= | 
|  | 13039 | compiler_needs_object=no | 
|  | 13040 | enable_shared_with_static_runtimes=no | 
|  | 13041 | export_dynamic_flag_spec= | 
|  | 13042 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 13043 | hardcode_automatic=no | 
|  | 13044 | hardcode_direct=no | 
|  | 13045 | hardcode_direct_absolute=no | 
|  | 13046 | hardcode_libdir_flag_spec= | 
|  | 13047 | hardcode_libdir_flag_spec_ld= | 
|  | 13048 | hardcode_libdir_separator= | 
|  | 13049 | hardcode_minus_L=no | 
|  | 13050 | hardcode_shlibpath_var=unsupported | 
|  | 13051 | inherit_rpath=no | 
|  | 13052 | link_all_deplibs=unknown | 
|  | 13053 | module_cmds= | 
|  | 13054 | module_expsym_cmds= | 
|  | 13055 | old_archive_from_new_cmds= | 
|  | 13056 | old_archive_from_expsyms_cmds= | 
|  | 13057 | thread_safe_flag_spec= | 
|  | 13058 | whole_archive_flag_spec= | 
|  | 13059 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 13060 | # included in the symbol list | 
|  | 13061 | include_expsyms= | 
|  | 13062 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 13063 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 13064 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 13065 | # as well as any symbol that contains `d'. | 
|  | 13066 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
|  | 13067 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 13068 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 13069 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 13070 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 13071 | # preloaded symbol tables. | 
|  | 13072 | # Exclude shared library initialization/finalization symbols. | 
|  | 13073 | extract_expsyms_cmds= | 
|  | 13074 |  | 
|  | 13075 | case $host_os in | 
|  | 13076 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 13077 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 13078 | # When not using gcc, we currently assume that we are using | 
|  | 13079 | # Microsoft Visual C++. | 
|  | 13080 | if test "$GCC" != yes; then | 
|  | 13081 | with_gnu_ld=no | 
|  | 13082 | fi | 
|  | 13083 | ;; | 
|  | 13084 | interix*) | 
|  | 13085 | # we just hope/assume this is gcc and not c89 (= MSVC++) | 
|  | 13086 | with_gnu_ld=yes | 
|  | 13087 | ;; | 
|  | 13088 | openbsd*) | 
|  | 13089 | with_gnu_ld=no | 
|  | 13090 | ;; | 
|  | 13091 | esac | 
|  | 13092 |  | 
|  | 13093 | ld_shlibs=yes | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13094 |  | 
|  | 13095 | # On some targets, GNU ld is compatible enough with the native linker | 
|  | 13096 | # that we're better off using the native interface for both. | 
|  | 13097 | lt_use_gnu_ld_interface=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13098 | if test "$with_gnu_ld" = yes; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13099 | case $host_os in | 
|  | 13100 | aix*) | 
|  | 13101 | # The AIX port of GNU ld has always aspired to compatibility | 
|  | 13102 | # with the native linker.  However, as the warning in the GNU ld | 
|  | 13103 | # block says, versions before 2.19.5* couldn't really create working | 
|  | 13104 | # shared libraries, regardless of the interface used. | 
|  | 13105 | case `$LD -v 2>&1` in | 
|  | 13106 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | 
|  | 13107 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | 
|  | 13108 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | 
|  | 13109 | *) | 
|  | 13110 | lt_use_gnu_ld_interface=yes | 
|  | 13111 | ;; | 
|  | 13112 | esac | 
|  | 13113 | ;; | 
|  | 13114 | *) | 
|  | 13115 | lt_use_gnu_ld_interface=yes | 
|  | 13116 | ;; | 
|  | 13117 | esac | 
|  | 13118 | fi | 
|  | 13119 |  | 
|  | 13120 | if test "$lt_use_gnu_ld_interface" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13121 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 13122 | wlarc='${wl}' | 
|  | 13123 |  | 
|  | 13124 | # Set some defaults for GNU ld with shared library support. These | 
|  | 13125 | # are reset later if shared libraries are not supported. Putting them | 
|  | 13126 | # here allows them to be overridden if necessary. | 
|  | 13127 | runpath_var=LD_RUN_PATH | 
|  | 13128 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13129 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|  | 13130 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 13131 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 
|  | 13132 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 13133 | else | 
|  | 13134 | whole_archive_flag_spec= | 
|  | 13135 | fi | 
|  | 13136 | supports_anon_versioning=no | 
|  | 13137 | case `$LD -v 2>&1` in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13138 | *GNU\ gold*) supports_anon_versioning=yes ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13139 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 13140 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 13141 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 13142 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 13143 | *) supports_anon_versioning=yes ;; | 
|  | 13144 | esac | 
|  | 13145 |  | 
|  | 13146 | # See if GNU ld supports shared libraries. | 
|  | 13147 | case $host_os in | 
|  | 13148 | aix[3-9]*) | 
|  | 13149 | # On AIX/PPC, the GNU linker is very broken | 
|  | 13150 | if test "$host_cpu" != ia64; then | 
|  | 13151 | ld_shlibs=no | 
|  | 13152 | cat <<_LT_EOF 1>&2 | 
|  | 13153 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13154 | *** Warning: the GNU linker, at least up to release 2.19, is reported | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13155 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 13156 | *** Therefore, libtool is disabling shared libraries support.  If you | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13157 | *** really care for shared libraries, you may want to install binutils | 
|  | 13158 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | 
|  | 13159 | *** You will then need to restart the configuration process. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13160 |  | 
|  | 13161 | _LT_EOF | 
|  | 13162 | fi | 
|  | 13163 | ;; | 
|  | 13164 |  | 
|  | 13165 | amigaos*) | 
|  | 13166 | case $host_cpu in | 
|  | 13167 | powerpc) | 
|  | 13168 | # see comment about AmigaOS4 .so support | 
|  | 13169 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13170 | archive_expsym_cmds='' | 
|  | 13171 | ;; | 
|  | 13172 | m68k) | 
|  | 13173 | 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)' | 
|  | 13174 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13175 | hardcode_minus_L=yes | 
|  | 13176 | ;; | 
|  | 13177 | esac | 
|  | 13178 | ;; | 
|  | 13179 |  | 
|  | 13180 | beos*) | 
|  | 13181 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13182 | allow_undefined_flag=unsupported | 
|  | 13183 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 13184 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 13185 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13186 | else | 
|  | 13187 | ld_shlibs=no | 
|  | 13188 | fi | 
|  | 13189 | ;; | 
|  | 13190 |  | 
|  | 13191 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 13192 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
|  | 13193 | # as there is no search path for DLLs. | 
|  | 13194 | hardcode_libdir_flag_spec='-L$libdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13195 | export_dynamic_flag_spec='${wl}--export-all-symbols' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13196 | allow_undefined_flag=unsupported | 
|  | 13197 | always_export_symbols=no | 
|  | 13198 | enable_shared_with_static_runtimes=yes | 
|  | 13199 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | 
|  | 13200 |  | 
|  | 13201 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
|  | 13202 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
|  | 13203 | # If the export-symbols file already is a .def file (1st line | 
|  | 13204 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 13205 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 13206 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 13207 | else | 
|  | 13208 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 13209 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 13210 | fi~ | 
|  | 13211 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
|  | 13212 | else | 
|  | 13213 | ld_shlibs=no | 
|  | 13214 | fi | 
|  | 13215 | ;; | 
|  | 13216 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13217 | haiku*) | 
|  | 13218 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13219 | link_all_deplibs=yes | 
|  | 13220 | ;; | 
|  | 13221 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13222 | interix[3-9]*) | 
|  | 13223 | hardcode_direct=no | 
|  | 13224 | hardcode_shlibpath_var=no | 
|  | 13225 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 13226 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13227 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
|  | 13228 | # Instead, shared libraries are loaded at an image base (0x10000000 by | 
|  | 13229 | # default) and relocated if they conflict, which is a slow very memory | 
|  | 13230 | # consuming and fragmenting process.  To avoid this, we pick a random, | 
|  | 13231 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
|  | 13232 | # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
|  | 13233 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
|  | 13234 | 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' | 
|  | 13235 | ;; | 
|  | 13236 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13237 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13238 | tmp_diet=no | 
|  | 13239 | if test "$host_os" = linux-dietlibc; then | 
|  | 13240 | case $cc_basename in | 
|  | 13241 | diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn) | 
|  | 13242 | esac | 
|  | 13243 | fi | 
|  | 13244 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 
|  | 13245 | && test "$tmp_diet" = no | 
|  | 13246 | then | 
|  | 13247 | tmp_addflag= | 
|  | 13248 | tmp_sharedflag='-shared' | 
|  | 13249 | case $cc_basename,$host_cpu in | 
|  | 13250 | pgcc*)				# Portland Group C compiler | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13251 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13252 | tmp_addflag=' $pic_flag' | 
|  | 13253 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13254 | pgf77* | pgf90* | pgf95* | pgfortran*) | 
|  | 13255 | # Portland Group f77 and f90 compilers | 
|  | 13256 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13257 | tmp_addflag=' $pic_flag -Mnomain' ;; | 
|  | 13258 | ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64 | 
|  | 13259 | tmp_addflag=' -i_dynamic' ;; | 
|  | 13260 | efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
|  | 13261 | tmp_addflag=' -i_dynamic -nofor_main' ;; | 
|  | 13262 | ifc* | ifort*)			# Intel Fortran compiler | 
|  | 13263 | tmp_addflag=' -nofor_main' ;; | 
|  | 13264 | lf95*)				# Lahey Fortran 8.1 | 
|  | 13265 | whole_archive_flag_spec= | 
|  | 13266 | tmp_sharedflag='--shared' ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13267 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13268 | tmp_sharedflag='-qmkshrobj' | 
|  | 13269 | tmp_addflag= ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13270 | nvcc*)	# Cuda Compiler Driver 2.2 | 
|  | 13271 | 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' | 
|  | 13272 | compiler_needs_object=yes | 
|  | 13273 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13274 | esac | 
|  | 13275 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 13276 | *Sun\ C*)			# Sun C 5.9 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13277 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13278 | compiler_needs_object=yes | 
|  | 13279 | tmp_sharedflag='-G' ;; | 
|  | 13280 | *Sun\ F*)			# Sun Fortran 8.3 | 
|  | 13281 | tmp_sharedflag='-G' ;; | 
|  | 13282 | esac | 
|  | 13283 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13284 |  | 
|  | 13285 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 13286 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 13287 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 13288 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
|  | 13289 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 13290 | fi | 
|  | 13291 |  | 
|  | 13292 | case $cc_basename in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13293 | xlf* | bgf* | bgxlf* | mpixlf*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13294 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 
|  | 13295 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | 
|  | 13296 | hardcode_libdir_flag_spec= | 
|  | 13297 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13298 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13299 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 13300 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 13301 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 13302 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13303 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13304 | fi | 
|  | 13305 | ;; | 
|  | 13306 | esac | 
|  | 13307 | else | 
|  | 13308 | ld_shlibs=no | 
|  | 13309 | fi | 
|  | 13310 | ;; | 
|  | 13311 |  | 
|  | 13312 | netbsd*) | 
|  | 13313 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 13314 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 13315 | wlarc= | 
|  | 13316 | else | 
|  | 13317 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13318 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 13319 | fi | 
|  | 13320 | ;; | 
|  | 13321 |  | 
|  | 13322 | solaris*) | 
|  | 13323 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | 
|  | 13324 | ld_shlibs=no | 
|  | 13325 | cat <<_LT_EOF 1>&2 | 
|  | 13326 |  | 
|  | 13327 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 13328 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 13329 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 13330 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 13331 | *** your PATH or compiler configuration so that the native linker is | 
|  | 13332 | *** used, and then restart. | 
|  | 13333 |  | 
|  | 13334 | _LT_EOF | 
|  | 13335 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13336 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13337 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 13338 | else | 
|  | 13339 | ld_shlibs=no | 
|  | 13340 | fi | 
|  | 13341 | ;; | 
|  | 13342 |  | 
|  | 13343 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 13344 | case `$LD -v 2>&1` in | 
|  | 13345 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
|  | 13346 | ld_shlibs=no | 
|  | 13347 | cat <<_LT_EOF 1>&2 | 
|  | 13348 |  | 
|  | 13349 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
|  | 13350 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
|  | 13351 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 13352 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
|  | 13353 | *** your PATH or compiler configuration so that the native linker is | 
|  | 13354 | *** used, and then restart. | 
|  | 13355 |  | 
|  | 13356 | _LT_EOF | 
|  | 13357 | ;; | 
|  | 13358 | *) | 
|  | 13359 | # For security reasons, it is highly recommended that you always | 
|  | 13360 | # use absolute paths for naming shared libraries, and exclude the | 
|  | 13361 | # DT_RUNPATH tag from executables and libraries.  But doing so | 
|  | 13362 | # requires that you compile everything twice, which is a pain. | 
|  | 13363 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13364 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13365 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13366 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 13367 | else | 
|  | 13368 | ld_shlibs=no | 
|  | 13369 | fi | 
|  | 13370 | ;; | 
|  | 13371 | esac | 
|  | 13372 | ;; | 
|  | 13373 |  | 
|  | 13374 | sunos4*) | 
|  | 13375 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13376 | wlarc= | 
|  | 13377 | hardcode_direct=yes | 
|  | 13378 | hardcode_shlibpath_var=no | 
|  | 13379 | ;; | 
|  | 13380 |  | 
|  | 13381 | *) | 
|  | 13382 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13383 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13384 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 13385 | else | 
|  | 13386 | ld_shlibs=no | 
|  | 13387 | fi | 
|  | 13388 | ;; | 
|  | 13389 | esac | 
|  | 13390 |  | 
|  | 13391 | if test "$ld_shlibs" = no; then | 
|  | 13392 | runpath_var= | 
|  | 13393 | hardcode_libdir_flag_spec= | 
|  | 13394 | export_dynamic_flag_spec= | 
|  | 13395 | whole_archive_flag_spec= | 
|  | 13396 | fi | 
|  | 13397 | else | 
|  | 13398 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 13399 | case $host_os in | 
|  | 13400 | aix3*) | 
|  | 13401 | allow_undefined_flag=unsupported | 
|  | 13402 | always_export_symbols=yes | 
|  | 13403 | 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' | 
|  | 13404 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 13405 | # are no directories specified by -L. | 
|  | 13406 | hardcode_minus_L=yes | 
|  | 13407 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
|  | 13408 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 13409 | # broken collect2. | 
|  | 13410 | hardcode_direct=unsupported | 
|  | 13411 | fi | 
|  | 13412 | ;; | 
|  | 13413 |  | 
|  | 13414 | aix[4-9]*) | 
|  | 13415 | if test "$host_cpu" = ia64; then | 
|  | 13416 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 13417 | # have to do anything special. | 
|  | 13418 | aix_use_runtimelinking=no | 
|  | 13419 | exp_sym_flag='-Bexport' | 
|  | 13420 | no_entry_flag="" | 
|  | 13421 | else | 
|  | 13422 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 13423 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13424 | # Also, AIX nm treats weak defined symbols like other global | 
|  | 13425 | # defined symbols, whereas GNU nm marks them as "W". | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13426 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13427 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13428 | else | 
|  | 13429 | 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' | 
|  | 13430 | fi | 
|  | 13431 | aix_use_runtimelinking=no | 
|  | 13432 |  | 
|  | 13433 | # Test if we are trying to use run time linking or normal | 
|  | 13434 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 13435 | # need to do runtime linking. | 
|  | 13436 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
|  | 13437 | for ld_flag in $LDFLAGS; do | 
|  | 13438 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 13439 | aix_use_runtimelinking=yes | 
|  | 13440 | break | 
|  | 13441 | fi | 
|  | 13442 | done | 
|  | 13443 | ;; | 
|  | 13444 | esac | 
|  | 13445 |  | 
|  | 13446 | exp_sym_flag='-bexport' | 
|  | 13447 | no_entry_flag='-bnoentry' | 
|  | 13448 | fi | 
|  | 13449 |  | 
|  | 13450 | # When large executables or shared objects are built, AIX ld can | 
|  | 13451 | # have problems creating the table of contents.  If linking a library | 
|  | 13452 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 13453 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 13454 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 13455 |  | 
|  | 13456 | archive_cmds='' | 
|  | 13457 | hardcode_direct=yes | 
|  | 13458 | hardcode_direct_absolute=yes | 
|  | 13459 | hardcode_libdir_separator=':' | 
|  | 13460 | link_all_deplibs=yes | 
|  | 13461 | file_list_spec='${wl}-f,' | 
|  | 13462 |  | 
|  | 13463 | if test "$GCC" = yes; then | 
|  | 13464 | case $host_os in aix4.[012]|aix4.[012].*) | 
|  | 13465 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 13466 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 13467 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 13468 | if test -f "$collect2name" && | 
|  | 13469 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
|  | 13470 | then | 
|  | 13471 | # We have reworked collect2 | 
|  | 13472 | : | 
|  | 13473 | else | 
|  | 13474 | # We have old collect2 | 
|  | 13475 | hardcode_direct=unsupported | 
|  | 13476 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 13477 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 13478 | # to unsupported forces relinking | 
|  | 13479 | hardcode_minus_L=yes | 
|  | 13480 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13481 | hardcode_libdir_separator= | 
|  | 13482 | fi | 
|  | 13483 | ;; | 
|  | 13484 | esac | 
|  | 13485 | shared_flag='-shared' | 
|  | 13486 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13487 | shared_flag="$shared_flag "'${wl}-G' | 
|  | 13488 | fi | 
|  | 13489 | else | 
|  | 13490 | # not using gcc | 
|  | 13491 | if test "$host_cpu" = ia64; then | 
|  | 13492 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 13493 | # chokes on -Wl,-G. The following line is correct: | 
|  | 13494 | shared_flag='-G' | 
|  | 13495 | else | 
|  | 13496 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13497 | shared_flag='${wl}-G' | 
|  | 13498 | else | 
|  | 13499 | shared_flag='${wl}-bM:SRE' | 
|  | 13500 | fi | 
|  | 13501 | fi | 
|  | 13502 | fi | 
|  | 13503 |  | 
|  | 13504 | export_dynamic_flag_spec='${wl}-bexpall' | 
|  | 13505 | # It seems that -bexpall does not export symbols beginning with | 
|  | 13506 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 13507 | always_export_symbols=yes | 
|  | 13508 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 13509 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 13510 | # -berok will link without error, but may produce a broken library. | 
|  | 13511 | allow_undefined_flag='-berok' | 
|  | 13512 | # Determine the default libpath from the value encoded in an | 
|  | 13513 | # empty executable. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13515 | /* end confdefs.h.  */ | 
|  | 13516 |  | 
|  | 13517 | int | 
|  | 13518 | main () | 
|  | 13519 | { | 
|  | 13520 |  | 
|  | 13521 | ; | 
|  | 13522 | return 0; | 
|  | 13523 | } | 
|  | 13524 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13525 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13526 |  | 
|  | 13527 | lt_aix_libpath_sed=' | 
|  | 13528 | /Import File Strings/,/^$/ { | 
|  | 13529 | /^0/ { | 
|  | 13530 | s/^0  *\(.*\)$/\1/ | 
|  | 13531 | p | 
|  | 13532 | } | 
|  | 13533 | }' | 
|  | 13534 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 13535 | # Check for a 64-bit object if we didn't find anything. | 
|  | 13536 | if test -z "$aix_libpath"; then | 
|  | 13537 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 13538 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13539 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13540 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13541 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13542 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 13543 |  | 
|  | 13544 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13545 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13546 | else | 
|  | 13547 | if test "$host_cpu" = ia64; then | 
|  | 13548 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 13549 | allow_undefined_flag="-z nodefs" | 
|  | 13550 | 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" | 
|  | 13551 | else | 
|  | 13552 | # Determine the default libpath from the value encoded in an | 
|  | 13553 | # empty executable. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13555 | /* end confdefs.h.  */ | 
|  | 13556 |  | 
|  | 13557 | int | 
|  | 13558 | main () | 
|  | 13559 | { | 
|  | 13560 |  | 
|  | 13561 | ; | 
|  | 13562 | return 0; | 
|  | 13563 | } | 
|  | 13564 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13565 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13566 |  | 
|  | 13567 | lt_aix_libpath_sed=' | 
|  | 13568 | /Import File Strings/,/^$/ { | 
|  | 13569 | /^0/ { | 
|  | 13570 | s/^0  *\(.*\)$/\1/ | 
|  | 13571 | p | 
|  | 13572 | } | 
|  | 13573 | }' | 
|  | 13574 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 13575 | # Check for a 64-bit object if we didn't find anything. | 
|  | 13576 | if test -z "$aix_libpath"; then | 
|  | 13577 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 13578 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13579 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13580 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13581 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13582 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 13583 |  | 
|  | 13584 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 13585 | # Warning - without using the other run time loading flags, | 
|  | 13586 | # -berok will link without error, but may produce a broken library. | 
|  | 13587 | no_undefined_flag=' ${wl}-bernotok' | 
|  | 13588 | allow_undefined_flag=' ${wl}-berok' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13589 | if test "$with_gnu_ld" = yes; then | 
|  | 13590 | # We only use this code for GNU lds that support --whole-archive. | 
|  | 13591 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 13592 | else | 
|  | 13593 | # Exported symbols can be pulled into shared objects from archives | 
|  | 13594 | whole_archive_flag_spec='$convenience' | 
|  | 13595 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13596 | archive_cmds_need_lc=yes | 
|  | 13597 | # This is similar to how AIX traditionally builds its shared libraries. | 
|  | 13598 | 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' | 
|  | 13599 | fi | 
|  | 13600 | fi | 
|  | 13601 | ;; | 
|  | 13602 |  | 
|  | 13603 | amigaos*) | 
|  | 13604 | case $host_cpu in | 
|  | 13605 | powerpc) | 
|  | 13606 | # see comment about AmigaOS4 .so support | 
|  | 13607 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13608 | archive_expsym_cmds='' | 
|  | 13609 | ;; | 
|  | 13610 | m68k) | 
|  | 13611 | 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)' | 
|  | 13612 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13613 | hardcode_minus_L=yes | 
|  | 13614 | ;; | 
|  | 13615 | esac | 
|  | 13616 | ;; | 
|  | 13617 |  | 
|  | 13618 | bsdi[45]*) | 
|  | 13619 | export_dynamic_flag_spec=-rdynamic | 
|  | 13620 | ;; | 
|  | 13621 |  | 
|  | 13622 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 13623 | # When not using gcc, we currently assume that we are using | 
|  | 13624 | # Microsoft Visual C++. | 
|  | 13625 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 13626 | # no search path for DLLs. | 
|  | 13627 | hardcode_libdir_flag_spec=' ' | 
|  | 13628 | allow_undefined_flag=unsupported | 
|  | 13629 | # Tell ltmain to make .lib files, not .a files. | 
|  | 13630 | libext=lib | 
|  | 13631 | # Tell ltmain to make .dll files, not .so files. | 
|  | 13632 | shrext_cmds=".dll" | 
|  | 13633 | # FIXME: Setting linknames here is a bad hack. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13634 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13635 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 13636 | old_archive_from_new_cmds='true' | 
|  | 13637 | # FIXME: Should let the user specify the lib program. | 
|  | 13638 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 13639 | fix_srcfile_path='`cygpath -w "$srcfile"`' | 
|  | 13640 | enable_shared_with_static_runtimes=yes | 
|  | 13641 | ;; | 
|  | 13642 |  | 
|  | 13643 | darwin* | rhapsody*) | 
|  | 13644 |  | 
|  | 13645 |  | 
|  | 13646 | archive_cmds_need_lc=no | 
|  | 13647 | hardcode_direct=no | 
|  | 13648 | hardcode_automatic=yes | 
|  | 13649 | hardcode_shlibpath_var=unsupported | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13650 | if test "$lt_cv_ld_force_load" = "yes"; then | 
|  | 13651 | 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\"`' | 
|  | 13652 | else | 
|  | 13653 | whole_archive_flag_spec='' | 
|  | 13654 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13655 | link_all_deplibs=yes | 
|  | 13656 | allow_undefined_flag="$_lt_dar_allow_undefined" | 
|  | 13657 | case $cc_basename in | 
|  | 13658 | ifort*) _lt_dar_can_shared=yes ;; | 
|  | 13659 | *) _lt_dar_can_shared=$GCC ;; | 
|  | 13660 | esac | 
|  | 13661 | if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13662 | output_verbose_link_cmd=func_echo_all | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13663 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | 
|  | 13664 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
|  | 13665 | 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}" | 
|  | 13666 | 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}" | 
|  | 13667 |  | 
|  | 13668 | else | 
|  | 13669 | ld_shlibs=no | 
|  | 13670 | fi | 
|  | 13671 |  | 
|  | 13672 | ;; | 
|  | 13673 |  | 
|  | 13674 | dgux*) | 
|  | 13675 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13676 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13677 | hardcode_shlibpath_var=no | 
|  | 13678 | ;; | 
|  | 13679 |  | 
|  | 13680 | freebsd1*) | 
|  | 13681 | ld_shlibs=no | 
|  | 13682 | ;; | 
|  | 13683 |  | 
|  | 13684 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 13685 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 13686 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 13687 | # extra space). | 
|  | 13688 | freebsd2.2*) | 
|  | 13689 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 13690 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 13691 | hardcode_direct=yes | 
|  | 13692 | hardcode_shlibpath_var=no | 
|  | 13693 | ;; | 
|  | 13694 |  | 
|  | 13695 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 13696 | freebsd2*) | 
|  | 13697 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13698 | hardcode_direct=yes | 
|  | 13699 | hardcode_minus_L=yes | 
|  | 13700 | hardcode_shlibpath_var=no | 
|  | 13701 | ;; | 
|  | 13702 |  | 
|  | 13703 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|  | 13704 | freebsd* | dragonfly*) | 
|  | 13705 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13706 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 13707 | hardcode_direct=yes | 
|  | 13708 | hardcode_shlibpath_var=no | 
|  | 13709 | ;; | 
|  | 13710 |  | 
|  | 13711 | hpux9*) | 
|  | 13712 | if test "$GCC" = yes; then | 
|  | 13713 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
|  | 13714 | else | 
|  | 13715 | 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' | 
|  | 13716 | fi | 
|  | 13717 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 13718 | hardcode_libdir_separator=: | 
|  | 13719 | hardcode_direct=yes | 
|  | 13720 |  | 
|  | 13721 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13722 | # but as the default location of the library. | 
|  | 13723 | hardcode_minus_L=yes | 
|  | 13724 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13725 | ;; | 
|  | 13726 |  | 
|  | 13727 | hpux10*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13728 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13729 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13730 | else | 
|  | 13731 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13732 | fi | 
|  | 13733 | if test "$with_gnu_ld" = no; then | 
|  | 13734 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 13735 | hardcode_libdir_flag_spec_ld='+b $libdir' | 
|  | 13736 | hardcode_libdir_separator=: | 
|  | 13737 | hardcode_direct=yes | 
|  | 13738 | hardcode_direct_absolute=yes | 
|  | 13739 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13740 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13741 | # but as the default location of the library. | 
|  | 13742 | hardcode_minus_L=yes | 
|  | 13743 | fi | 
|  | 13744 | ;; | 
|  | 13745 |  | 
|  | 13746 | hpux11*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13747 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13748 | case $host_cpu in | 
|  | 13749 | hppa*64*) | 
|  | 13750 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13751 | ;; | 
|  | 13752 | ia64*) | 
|  | 13753 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13754 | ;; | 
|  | 13755 | *) | 
|  | 13756 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13757 | ;; | 
|  | 13758 | esac | 
|  | 13759 | else | 
|  | 13760 | case $host_cpu in | 
|  | 13761 | hppa*64*) | 
|  | 13762 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13763 | ;; | 
|  | 13764 | ia64*) | 
|  | 13765 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13766 | ;; | 
|  | 13767 | *) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13768 |  | 
|  | 13769 | # Older versions of the 11.00 compiler do not understand -b yet | 
|  | 13770 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | 
|  | 13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | 
|  | 13772 | $as_echo_n "checking if $CC understands -b... " >&6; } | 
|  | 13773 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | 
|  | 13774 | $as_echo_n "(cached) " >&6 | 
|  | 13775 | else | 
|  | 13776 | lt_cv_prog_compiler__b=no | 
|  | 13777 | save_LDFLAGS="$LDFLAGS" | 
|  | 13778 | LDFLAGS="$LDFLAGS -b" | 
|  | 13779 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 13780 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 13781 | # The linker can only warn and ignore the option if not recognized | 
|  | 13782 | # So say no if there are warnings | 
|  | 13783 | if test -s conftest.err; then | 
|  | 13784 | # Append any errors to the config.log. | 
|  | 13785 | cat conftest.err 1>&5 | 
|  | 13786 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
|  | 13787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 13788 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 13789 | lt_cv_prog_compiler__b=yes | 
|  | 13790 | fi | 
|  | 13791 | else | 
|  | 13792 | lt_cv_prog_compiler__b=yes | 
|  | 13793 | fi | 
|  | 13794 | fi | 
|  | 13795 | $RM -r conftest* | 
|  | 13796 | LDFLAGS="$save_LDFLAGS" | 
|  | 13797 |  | 
|  | 13798 | fi | 
|  | 13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | 
|  | 13800 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | 
|  | 13801 |  | 
|  | 13802 | if test x"$lt_cv_prog_compiler__b" = xyes; then | 
|  | 13803 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13804 | else | 
|  | 13805 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13806 | fi | 
|  | 13807 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13808 | ;; | 
|  | 13809 | esac | 
|  | 13810 | fi | 
|  | 13811 | if test "$with_gnu_ld" = no; then | 
|  | 13812 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 13813 | hardcode_libdir_separator=: | 
|  | 13814 |  | 
|  | 13815 | case $host_cpu in | 
|  | 13816 | hppa*64*|ia64*) | 
|  | 13817 | hardcode_direct=no | 
|  | 13818 | hardcode_shlibpath_var=no | 
|  | 13819 | ;; | 
|  | 13820 | *) | 
|  | 13821 | hardcode_direct=yes | 
|  | 13822 | hardcode_direct_absolute=yes | 
|  | 13823 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13824 |  | 
|  | 13825 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 13826 | # but as the default location of the library. | 
|  | 13827 | hardcode_minus_L=yes | 
|  | 13828 | ;; | 
|  | 13829 | esac | 
|  | 13830 | fi | 
|  | 13831 | ;; | 
|  | 13832 |  | 
|  | 13833 | irix5* | irix6* | nonstopux*) | 
|  | 13834 | if test "$GCC" = yes; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13835 | archive_cmds='$CC -shared $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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13836 | # Try to use the -exported_symbol ld option, if it does not | 
|  | 13837 | # work, assume that -exports_file does not work either and | 
|  | 13838 | # implicitly export all symbols. | 
|  | 13839 | save_LDFLAGS="$LDFLAGS" | 
|  | 13840 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 13842 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13843 | int foo(void) {} | 
|  | 13844 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13845 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13846 | archive_expsym_cmds='$CC -shared $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' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13847 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13848 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13849 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 13850 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13851 | LDFLAGS="$save_LDFLAGS" | 
|  | 13852 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13853 | 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' | 
|  | 13854 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13855 | fi | 
|  | 13856 | archive_cmds_need_lc='no' | 
|  | 13857 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13858 | hardcode_libdir_separator=: | 
|  | 13859 | inherit_rpath=yes | 
|  | 13860 | link_all_deplibs=yes | 
|  | 13861 | ;; | 
|  | 13862 |  | 
|  | 13863 | netbsd*) | 
|  | 13864 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 13865 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 13866 | else | 
|  | 13867 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 13868 | fi | 
|  | 13869 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 13870 | hardcode_direct=yes | 
|  | 13871 | hardcode_shlibpath_var=no | 
|  | 13872 | ;; | 
|  | 13873 |  | 
|  | 13874 | newsos6) | 
|  | 13875 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13876 | hardcode_direct=yes | 
|  | 13877 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13878 | hardcode_libdir_separator=: | 
|  | 13879 | hardcode_shlibpath_var=no | 
|  | 13880 | ;; | 
|  | 13881 |  | 
|  | 13882 | *nto* | *qnx*) | 
|  | 13883 | ;; | 
|  | 13884 |  | 
|  | 13885 | openbsd*) | 
|  | 13886 | if test -f /usr/libexec/ld.so; then | 
|  | 13887 | hardcode_direct=yes | 
|  | 13888 | hardcode_shlibpath_var=no | 
|  | 13889 | hardcode_direct_absolute=yes | 
|  | 13890 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 13891 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13892 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
|  | 13893 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 13894 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13895 | else | 
|  | 13896 | case $host_os in | 
|  | 13897 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 13898 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13899 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 13900 | ;; | 
|  | 13901 | *) | 
|  | 13902 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13903 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 13904 | ;; | 
|  | 13905 | esac | 
|  | 13906 | fi | 
|  | 13907 | else | 
|  | 13908 | ld_shlibs=no | 
|  | 13909 | fi | 
|  | 13910 | ;; | 
|  | 13911 |  | 
|  | 13912 | os2*) | 
|  | 13913 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13914 | hardcode_minus_L=yes | 
|  | 13915 | allow_undefined_flag=unsupported | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13916 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13917 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 13918 | ;; | 
|  | 13919 |  | 
|  | 13920 | osf3*) | 
|  | 13921 | if test "$GCC" = yes; then | 
|  | 13922 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13923 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13924 | else | 
|  | 13925 | allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13926 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13927 | fi | 
|  | 13928 | archive_cmds_need_lc='no' | 
|  | 13929 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13930 | hardcode_libdir_separator=: | 
|  | 13931 | ;; | 
|  | 13932 |  | 
|  | 13933 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 13934 | if test "$GCC" = yes; then | 
|  | 13935 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13936 | archive_cmds='$CC -shared${allow_undefined_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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13937 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13938 | else | 
|  | 13939 | allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13940 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13941 | 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 | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 13942 | $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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13943 |  | 
|  | 13944 | # Both c and cxx compiler support -rpath directly | 
|  | 13945 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|  | 13946 | fi | 
|  | 13947 | archive_cmds_need_lc='no' | 
|  | 13948 | hardcode_libdir_separator=: | 
|  | 13949 | ;; | 
|  | 13950 |  | 
|  | 13951 | solaris*) | 
|  | 13952 | no_undefined_flag=' -z defs' | 
|  | 13953 | if test "$GCC" = yes; then | 
|  | 13954 | wlarc='${wl}' | 
|  | 13955 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13956 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 13957 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
|  | 13958 | else | 
|  | 13959 | case `$CC -V 2>&1` in | 
|  | 13960 | *"Compilers 5.0"*) | 
|  | 13961 | wlarc='' | 
|  | 13962 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13963 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 13964 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | 
|  | 13965 | ;; | 
|  | 13966 | *) | 
|  | 13967 | wlarc='${wl}' | 
|  | 13968 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13969 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 13970 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
|  | 13971 | ;; | 
|  | 13972 | esac | 
|  | 13973 | fi | 
|  | 13974 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 13975 | hardcode_shlibpath_var=no | 
|  | 13976 | case $host_os in | 
|  | 13977 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 13978 | *) | 
|  | 13979 | # The compiler driver will combine and reorder linker options, | 
|  | 13980 | # but understands `-z linker_flag'.  GCC discards it without `$wl', | 
|  | 13981 | # but is careful enough not to reorder. | 
|  | 13982 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 13983 | if test "$GCC" = yes; then | 
|  | 13984 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 13985 | else | 
|  | 13986 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | 
|  | 13987 | fi | 
|  | 13988 | ;; | 
|  | 13989 | esac | 
|  | 13990 | link_all_deplibs=yes | 
|  | 13991 | ;; | 
|  | 13992 |  | 
|  | 13993 | sunos4*) | 
|  | 13994 | if test "x$host_vendor" = xsequent; then | 
|  | 13995 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 13996 | # files that make .init and .fini sections work. | 
|  | 13997 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 13998 | else | 
|  | 13999 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14000 | fi | 
|  | 14001 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14002 | hardcode_direct=yes | 
|  | 14003 | hardcode_minus_L=yes | 
|  | 14004 | hardcode_shlibpath_var=no | 
|  | 14005 | ;; | 
|  | 14006 |  | 
|  | 14007 | sysv4) | 
|  | 14008 | case $host_vendor in | 
|  | 14009 | sni) | 
|  | 14010 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14011 | hardcode_direct=yes # is this really true??? | 
|  | 14012 | ;; | 
|  | 14013 | siemens) | 
|  | 14014 | ## LD is ld it makes a PLAMLIB | 
|  | 14015 | ## CC just makes a GrossModule. | 
|  | 14016 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14017 | reload_cmds='$CC -r -o $output$reload_objs' | 
|  | 14018 | hardcode_direct=no | 
|  | 14019 | ;; | 
|  | 14020 | motorola) | 
|  | 14021 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14022 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|  | 14023 | ;; | 
|  | 14024 | esac | 
|  | 14025 | runpath_var='LD_RUN_PATH' | 
|  | 14026 | hardcode_shlibpath_var=no | 
|  | 14027 | ;; | 
|  | 14028 |  | 
|  | 14029 | sysv4.3*) | 
|  | 14030 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14031 | hardcode_shlibpath_var=no | 
|  | 14032 | export_dynamic_flag_spec='-Bexport' | 
|  | 14033 | ;; | 
|  | 14034 |  | 
|  | 14035 | sysv4*MP*) | 
|  | 14036 | if test -d /usr/nec; then | 
|  | 14037 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14038 | hardcode_shlibpath_var=no | 
|  | 14039 | runpath_var=LD_RUN_PATH | 
|  | 14040 | hardcode_runpath_var=yes | 
|  | 14041 | ld_shlibs=yes | 
|  | 14042 | fi | 
|  | 14043 | ;; | 
|  | 14044 |  | 
|  | 14045 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
|  | 14046 | no_undefined_flag='${wl}-z,text' | 
|  | 14047 | archive_cmds_need_lc=no | 
|  | 14048 | hardcode_shlibpath_var=no | 
|  | 14049 | runpath_var='LD_RUN_PATH' | 
|  | 14050 |  | 
|  | 14051 | if test "$GCC" = yes; then | 
|  | 14052 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14053 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14054 | else | 
|  | 14055 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14056 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14057 | fi | 
|  | 14058 | ;; | 
|  | 14059 |  | 
|  | 14060 | sysv5* | sco3.2v5* | sco5v6*) | 
|  | 14061 | # Note: We can NOT use -z defs as we might desire, because we do not | 
|  | 14062 | # link with -lc, and that would cause any symbols used from libc to | 
|  | 14063 | # always be unresolved, which means just about no library would | 
|  | 14064 | # ever link correctly.  If we're not using GNU ld we use -z text | 
|  | 14065 | # though, which does catch some bad symbols but isn't as heavy-handed | 
|  | 14066 | # as -z defs. | 
|  | 14067 | no_undefined_flag='${wl}-z,text' | 
|  | 14068 | allow_undefined_flag='${wl}-z,nodefs' | 
|  | 14069 | archive_cmds_need_lc=no | 
|  | 14070 | hardcode_shlibpath_var=no | 
|  | 14071 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | 
|  | 14072 | hardcode_libdir_separator=':' | 
|  | 14073 | link_all_deplibs=yes | 
|  | 14074 | export_dynamic_flag_spec='${wl}-Bexport' | 
|  | 14075 | runpath_var='LD_RUN_PATH' | 
|  | 14076 |  | 
|  | 14077 | if test "$GCC" = yes; then | 
|  | 14078 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14079 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14080 | else | 
|  | 14081 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14082 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14083 | fi | 
|  | 14084 | ;; | 
|  | 14085 |  | 
|  | 14086 | uts4*) | 
|  | 14087 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14088 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14089 | hardcode_shlibpath_var=no | 
|  | 14090 | ;; | 
|  | 14091 |  | 
|  | 14092 | *) | 
|  | 14093 | ld_shlibs=no | 
|  | 14094 | ;; | 
|  | 14095 | esac | 
|  | 14096 |  | 
|  | 14097 | if test x$host_vendor = xsni; then | 
|  | 14098 | case $host in | 
|  | 14099 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 14100 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 14101 | ;; | 
|  | 14102 | esac | 
|  | 14103 | fi | 
|  | 14104 | fi | 
|  | 14105 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14107 | $as_echo "$ld_shlibs" >&6; } | 
|  | 14108 | test "$ld_shlibs" = no && can_build_shared=no | 
|  | 14109 |  | 
|  | 14110 | with_gnu_ld=$with_gnu_ld | 
|  | 14111 |  | 
|  | 14112 |  | 
|  | 14113 |  | 
|  | 14114 |  | 
|  | 14115 |  | 
|  | 14116 |  | 
|  | 14117 |  | 
|  | 14118 |  | 
|  | 14119 |  | 
|  | 14120 |  | 
|  | 14121 |  | 
|  | 14122 |  | 
|  | 14123 |  | 
|  | 14124 |  | 
|  | 14125 |  | 
|  | 14126 | # | 
|  | 14127 | # Do we need to explicitly link libc? | 
|  | 14128 | # | 
|  | 14129 | case "x$archive_cmds_need_lc" in | 
|  | 14130 | x|xyes) | 
|  | 14131 | # Assume -lc should be added | 
|  | 14132 | archive_cmds_need_lc=yes | 
|  | 14133 |  | 
|  | 14134 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 14135 | case $archive_cmds in | 
|  | 14136 | *'~'*) | 
|  | 14137 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 14138 | ;; | 
|  | 14139 | '$CC '*) | 
|  | 14140 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 14141 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 14142 | # to ld, don't add -lc before -lgcc. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14144 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14145 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | 
|  | 14146 | $as_echo_n "(cached) " >&6 | 
|  | 14147 | else | 
|  | 14148 | $RM conftest* | 
|  | 14149 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14150 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14152 | (eval $ac_compile) 2>&5 | 
|  | 14153 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 14155 | test $ac_status = 0; } 2>conftest.err; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14156 | soname=conftest | 
|  | 14157 | lib=conftest | 
|  | 14158 | libobjs=conftest.$ac_objext | 
|  | 14159 | deplibs= | 
|  | 14160 | wl=$lt_prog_compiler_wl | 
|  | 14161 | pic_flag=$lt_prog_compiler_pic | 
|  | 14162 | compiler_flags=-v | 
|  | 14163 | linker_flags=-v | 
|  | 14164 | verstring= | 
|  | 14165 | output_objdir=. | 
|  | 14166 | libname=conftest | 
|  | 14167 | lt_save_allow_undefined_flag=$allow_undefined_flag | 
|  | 14168 | allow_undefined_flag= | 
|  | 14169 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14170 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 14171 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 14173 | test $ac_status = 0; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14174 | then | 
|  | 14175 | lt_cv_archive_cmds_need_lc=no | 
|  | 14176 | else | 
|  | 14177 | lt_cv_archive_cmds_need_lc=yes | 
|  | 14178 | fi | 
|  | 14179 | allow_undefined_flag=$lt_save_allow_undefined_flag | 
|  | 14180 | else | 
|  | 14181 | cat conftest.err 1>&5 | 
|  | 14182 | fi | 
|  | 14183 | $RM conftest* | 
|  | 14184 |  | 
|  | 14185 | fi | 
|  | 14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | 
|  | 14187 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | 
|  | 14188 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14189 | ;; | 
|  | 14190 | esac | 
|  | 14191 | fi | 
|  | 14192 | ;; | 
|  | 14193 | esac | 
|  | 14194 |  | 
|  | 14195 |  | 
|  | 14196 |  | 
|  | 14197 |  | 
|  | 14198 |  | 
|  | 14199 |  | 
|  | 14200 |  | 
|  | 14201 |  | 
|  | 14202 |  | 
|  | 14203 |  | 
|  | 14204 |  | 
|  | 14205 |  | 
|  | 14206 |  | 
|  | 14207 |  | 
|  | 14208 |  | 
|  | 14209 |  | 
|  | 14210 |  | 
|  | 14211 |  | 
|  | 14212 |  | 
|  | 14213 |  | 
|  | 14214 |  | 
|  | 14215 |  | 
|  | 14216 |  | 
|  | 14217 |  | 
|  | 14218 |  | 
|  | 14219 |  | 
|  | 14220 |  | 
|  | 14221 |  | 
|  | 14222 |  | 
|  | 14223 |  | 
|  | 14224 |  | 
|  | 14225 |  | 
|  | 14226 |  | 
|  | 14227 |  | 
|  | 14228 |  | 
|  | 14229 |  | 
|  | 14230 |  | 
|  | 14231 |  | 
|  | 14232 |  | 
|  | 14233 |  | 
|  | 14234 |  | 
|  | 14235 |  | 
|  | 14236 |  | 
|  | 14237 |  | 
|  | 14238 |  | 
|  | 14239 |  | 
|  | 14240 |  | 
|  | 14241 |  | 
|  | 14242 |  | 
|  | 14243 |  | 
|  | 14244 |  | 
|  | 14245 |  | 
|  | 14246 |  | 
|  | 14247 |  | 
|  | 14248 |  | 
|  | 14249 |  | 
|  | 14250 |  | 
|  | 14251 |  | 
|  | 14252 |  | 
|  | 14253 |  | 
|  | 14254 |  | 
|  | 14255 |  | 
|  | 14256 |  | 
|  | 14257 |  | 
|  | 14258 |  | 
|  | 14259 |  | 
|  | 14260 |  | 
|  | 14261 |  | 
|  | 14262 |  | 
|  | 14263 |  | 
|  | 14264 |  | 
|  | 14265 |  | 
|  | 14266 |  | 
|  | 14267 |  | 
|  | 14268 |  | 
|  | 14269 |  | 
|  | 14270 |  | 
|  | 14271 |  | 
|  | 14272 |  | 
|  | 14273 |  | 
|  | 14274 |  | 
|  | 14275 |  | 
|  | 14276 |  | 
|  | 14277 |  | 
|  | 14278 |  | 
|  | 14279 |  | 
|  | 14280 |  | 
|  | 14281 |  | 
|  | 14282 |  | 
|  | 14283 |  | 
|  | 14284 |  | 
|  | 14285 |  | 
|  | 14286 |  | 
|  | 14287 |  | 
|  | 14288 |  | 
|  | 14289 |  | 
|  | 14290 |  | 
|  | 14291 |  | 
|  | 14292 |  | 
|  | 14293 |  | 
|  | 14294 |  | 
|  | 14295 |  | 
|  | 14296 |  | 
|  | 14297 |  | 
|  | 14298 |  | 
|  | 14299 |  | 
|  | 14300 |  | 
|  | 14301 |  | 
|  | 14302 |  | 
|  | 14303 |  | 
|  | 14304 |  | 
|  | 14305 |  | 
|  | 14306 |  | 
|  | 14307 |  | 
|  | 14308 |  | 
|  | 14309 |  | 
|  | 14310 |  | 
|  | 14311 |  | 
|  | 14312 |  | 
|  | 14313 |  | 
|  | 14314 |  | 
|  | 14315 |  | 
|  | 14316 |  | 
|  | 14317 |  | 
|  | 14318 |  | 
|  | 14319 |  | 
|  | 14320 |  | 
|  | 14321 |  | 
|  | 14322 |  | 
|  | 14323 |  | 
|  | 14324 |  | 
|  | 14325 |  | 
|  | 14326 |  | 
|  | 14327 |  | 
|  | 14328 |  | 
|  | 14329 |  | 
|  | 14330 |  | 
|  | 14331 |  | 
|  | 14332 |  | 
|  | 14333 |  | 
|  | 14334 |  | 
|  | 14335 |  | 
|  | 14336 |  | 
|  | 14337 |  | 
|  | 14338 |  | 
|  | 14339 |  | 
|  | 14340 |  | 
|  | 14341 |  | 
|  | 14342 |  | 
|  | 14343 |  | 
|  | 14344 |  | 
|  | 14345 |  | 
|  | 14346 |  | 
|  | 14347 |  | 
|  | 14348 |  | 
|  | 14349 |  | 
|  | 14350 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14352 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
|  | 14353 |  | 
|  | 14354 | if test "$GCC" = yes; then | 
|  | 14355 | case $host_os in | 
|  | 14356 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 
|  | 14357 | *) lt_awk_arg="/^libraries:/" ;; | 
|  | 14358 | esac | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14359 | case $host_os in | 
|  | 14360 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | 
|  | 14361 | *) lt_sed_strip_eq="s,=/,/,g" ;; | 
|  | 14362 | esac | 
|  | 14363 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | 
|  | 14364 | case $lt_search_path_spec in | 
|  | 14365 | *\;*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14366 | # if the path contains ";" then we assume it to be the separator | 
|  | 14367 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 14368 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 14369 | # okay in the real world where ";" in dirpaths is itself problematic. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14370 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | 
|  | 14371 | ;; | 
|  | 14372 | *) | 
|  | 14373 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | 
|  | 14374 | ;; | 
|  | 14375 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14376 | # Ok, now we have the path, separated by spaces, we can step through it | 
|  | 14377 | # and add multilib dir if necessary. | 
|  | 14378 | lt_tmp_lt_search_path_spec= | 
|  | 14379 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | 
|  | 14380 | for lt_sys_path in $lt_search_path_spec; do | 
|  | 14381 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | 
|  | 14382 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | 
|  | 14383 | else | 
|  | 14384 | test -d "$lt_sys_path" && \ | 
|  | 14385 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 
|  | 14386 | fi | 
|  | 14387 | done | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14388 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14389 | BEGIN {RS=" "; FS="/|\n";} { | 
|  | 14390 | lt_foo=""; | 
|  | 14391 | lt_count=0; | 
|  | 14392 | for (lt_i = NF; lt_i > 0; lt_i--) { | 
|  | 14393 | if ($lt_i != "" && $lt_i != ".") { | 
|  | 14394 | if ($lt_i == "..") { | 
|  | 14395 | lt_count++; | 
|  | 14396 | } else { | 
|  | 14397 | if (lt_count == 0) { | 
|  | 14398 | lt_foo="/" $lt_i lt_foo; | 
|  | 14399 | } else { | 
|  | 14400 | lt_count--; | 
|  | 14401 | } | 
|  | 14402 | } | 
|  | 14403 | } | 
|  | 14404 | } | 
|  | 14405 | if (lt_foo != "") { lt_freq[lt_foo]++; } | 
|  | 14406 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | 
|  | 14407 | }'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14408 | # AWK program above erroneously prepends '/' to C:/dos/paths | 
|  | 14409 | # for these hosts. | 
|  | 14410 | case $host_os in | 
|  | 14411 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | 
|  | 14412 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | 
|  | 14413 | esac | 
|  | 14414 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14415 | else | 
|  | 14416 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 14417 | fi | 
|  | 14418 | library_names_spec= | 
|  | 14419 | libname_spec='lib$name' | 
|  | 14420 | soname_spec= | 
|  | 14421 | shrext_cmds=".so" | 
|  | 14422 | postinstall_cmds= | 
|  | 14423 | postuninstall_cmds= | 
|  | 14424 | finish_cmds= | 
|  | 14425 | finish_eval= | 
|  | 14426 | shlibpath_var= | 
|  | 14427 | shlibpath_overrides_runpath=unknown | 
|  | 14428 | version_type=none | 
|  | 14429 | dynamic_linker="$host_os ld.so" | 
|  | 14430 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 14431 | need_lib_prefix=unknown | 
|  | 14432 | hardcode_into_libs=no | 
|  | 14433 |  | 
|  | 14434 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 14435 | # flags to be left without arguments | 
|  | 14436 | need_version=unknown | 
|  | 14437 |  | 
|  | 14438 | case $host_os in | 
|  | 14439 | aix3*) | 
|  | 14440 | version_type=linux | 
|  | 14441 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 14442 | shlibpath_var=LIBPATH | 
|  | 14443 |  | 
|  | 14444 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 14445 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14446 | ;; | 
|  | 14447 |  | 
|  | 14448 | aix[4-9]*) | 
|  | 14449 | version_type=linux | 
|  | 14450 | need_lib_prefix=no | 
|  | 14451 | need_version=no | 
|  | 14452 | hardcode_into_libs=yes | 
|  | 14453 | if test "$host_cpu" = ia64; then | 
|  | 14454 | # AIX 5 supports IA64 | 
|  | 14455 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 14456 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14457 | else | 
|  | 14458 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 14459 | # for dependence libraries.  The import file would start with | 
|  | 14460 | # the line `#! .'.  This would cause the generated library to | 
|  | 14461 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 14462 | # development snapshots of GCC prior to 3.0. | 
|  | 14463 | case $host_os in | 
|  | 14464 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 14465 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 14466 | echo ' yes ' | 
|  | 14467 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
|  | 14468 | : | 
|  | 14469 | else | 
|  | 14470 | can_build_shared=no | 
|  | 14471 | fi | 
|  | 14472 | ;; | 
|  | 14473 | esac | 
|  | 14474 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 14475 | # soname into executable. Probably we can add versioning support to | 
|  | 14476 | # collect2, so additional links can be useful in future. | 
|  | 14477 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14478 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 14479 | # instead of lib<name>.a to let people know that these are not | 
|  | 14480 | # typical AIX shared libraries. | 
|  | 14481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14482 | else | 
|  | 14483 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 14484 | # and later when we are not doing run time linking. | 
|  | 14485 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 14486 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14487 | fi | 
|  | 14488 | shlibpath_var=LIBPATH | 
|  | 14489 | fi | 
|  | 14490 | ;; | 
|  | 14491 |  | 
|  | 14492 | amigaos*) | 
|  | 14493 | case $host_cpu in | 
|  | 14494 | powerpc) | 
|  | 14495 | # Since July 2007 AmigaOS4 officially supports .so libraries. | 
|  | 14496 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
|  | 14497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14498 | ;; | 
|  | 14499 | m68k) | 
|  | 14500 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 14501 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14502 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14503 | ;; | 
|  | 14504 | esac | 
|  | 14505 | ;; | 
|  | 14506 |  | 
|  | 14507 | beos*) | 
|  | 14508 | library_names_spec='${libname}${shared_ext}' | 
|  | 14509 | dynamic_linker="$host_os ld.so" | 
|  | 14510 | shlibpath_var=LIBRARY_PATH | 
|  | 14511 | ;; | 
|  | 14512 |  | 
|  | 14513 | bsdi[45]*) | 
|  | 14514 | version_type=linux | 
|  | 14515 | need_version=no | 
|  | 14516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14517 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14518 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 14519 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14520 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 14521 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 14522 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 14523 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 14524 | # libtool to hard-code these into programs | 
|  | 14525 | ;; | 
|  | 14526 |  | 
|  | 14527 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 14528 | version_type=windows | 
|  | 14529 | shrext_cmds=".dll" | 
|  | 14530 | need_version=no | 
|  | 14531 | need_lib_prefix=no | 
|  | 14532 |  | 
|  | 14533 | case $GCC,$host_os in | 
|  | 14534 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | 
|  | 14535 | library_names_spec='$libname.dll.a' | 
|  | 14536 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 14537 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 14538 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 14539 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 14540 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 14541 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 14542 | chmod a+x \$dldir/$dlname~ | 
|  | 14543 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
|  | 14544 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
|  | 14545 | fi' | 
|  | 14546 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 14547 | dlpath=$dir/\$dldll~ | 
|  | 14548 | $RM \$dlpath' | 
|  | 14549 | shlibpath_overrides_runpath=yes | 
|  | 14550 |  | 
|  | 14551 | case $host_os in | 
|  | 14552 | cygwin*) | 
|  | 14553 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 14554 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14555 |  | 
|  | 14556 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14557 | ;; | 
|  | 14558 | mingw* | cegcc*) | 
|  | 14559 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 14560 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14561 | ;; | 
|  | 14562 | pw32*) | 
|  | 14563 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 14564 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 14565 | ;; | 
|  | 14566 | esac | 
|  | 14567 | ;; | 
|  | 14568 |  | 
|  | 14569 | *) | 
|  | 14570 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 14571 | ;; | 
|  | 14572 | esac | 
|  | 14573 | dynamic_linker='Win32 ld.exe' | 
|  | 14574 | # FIXME: first we should search . and the directory the executable is in | 
|  | 14575 | shlibpath_var=PATH | 
|  | 14576 | ;; | 
|  | 14577 |  | 
|  | 14578 | darwin* | rhapsody*) | 
|  | 14579 | dynamic_linker="$host_os dyld" | 
|  | 14580 | version_type=darwin | 
|  | 14581 | need_lib_prefix=no | 
|  | 14582 | need_version=no | 
|  | 14583 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 14584 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 14585 | shlibpath_overrides_runpath=yes | 
|  | 14586 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 14587 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
|  | 14588 |  | 
|  | 14589 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | 
|  | 14590 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 14591 | ;; | 
|  | 14592 |  | 
|  | 14593 | dgux*) | 
|  | 14594 | version_type=linux | 
|  | 14595 | need_lib_prefix=no | 
|  | 14596 | need_version=no | 
|  | 14597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 14598 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14599 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14600 | ;; | 
|  | 14601 |  | 
|  | 14602 | freebsd1*) | 
|  | 14603 | dynamic_linker=no | 
|  | 14604 | ;; | 
|  | 14605 |  | 
|  | 14606 | freebsd* | dragonfly*) | 
|  | 14607 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 14608 | # versioning mechanism, adjust this. | 
|  | 14609 | if test -x /usr/bin/objformat; then | 
|  | 14610 | objformat=`/usr/bin/objformat` | 
|  | 14611 | else | 
|  | 14612 | case $host_os in | 
|  | 14613 | freebsd[123]*) objformat=aout ;; | 
|  | 14614 | *) objformat=elf ;; | 
|  | 14615 | esac | 
|  | 14616 | fi | 
|  | 14617 | version_type=freebsd-$objformat | 
|  | 14618 | case $version_type in | 
|  | 14619 | freebsd-elf*) | 
|  | 14620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 14621 | need_version=no | 
|  | 14622 | need_lib_prefix=no | 
|  | 14623 | ;; | 
|  | 14624 | freebsd-*) | 
|  | 14625 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 14626 | need_version=yes | 
|  | 14627 | ;; | 
|  | 14628 | esac | 
|  | 14629 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14630 | case $host_os in | 
|  | 14631 | freebsd2*) | 
|  | 14632 | shlibpath_overrides_runpath=yes | 
|  | 14633 | ;; | 
|  | 14634 | freebsd3.[01]* | freebsdelf3.[01]*) | 
|  | 14635 | shlibpath_overrides_runpath=yes | 
|  | 14636 | hardcode_into_libs=yes | 
|  | 14637 | ;; | 
|  | 14638 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 14639 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
|  | 14640 | shlibpath_overrides_runpath=no | 
|  | 14641 | hardcode_into_libs=yes | 
|  | 14642 | ;; | 
|  | 14643 | *) # from 4.6 on, and DragonFly | 
|  | 14644 | shlibpath_overrides_runpath=yes | 
|  | 14645 | hardcode_into_libs=yes | 
|  | 14646 | ;; | 
|  | 14647 | esac | 
|  | 14648 | ;; | 
|  | 14649 |  | 
|  | 14650 | gnu*) | 
|  | 14651 | version_type=linux | 
|  | 14652 | need_lib_prefix=no | 
|  | 14653 | need_version=no | 
|  | 14654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 14655 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14656 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14657 | hardcode_into_libs=yes | 
|  | 14658 | ;; | 
|  | 14659 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14660 | haiku*) | 
|  | 14661 | version_type=linux | 
|  | 14662 | need_lib_prefix=no | 
|  | 14663 | need_version=no | 
|  | 14664 | dynamic_linker="$host_os runtime_loader" | 
|  | 14665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 14666 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14667 | shlibpath_var=LIBRARY_PATH | 
|  | 14668 | shlibpath_overrides_runpath=yes | 
|  | 14669 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
|  | 14670 | hardcode_into_libs=yes | 
|  | 14671 | ;; | 
|  | 14672 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14673 | hpux9* | hpux10* | hpux11*) | 
|  | 14674 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 14675 | # link against other versions. | 
|  | 14676 | version_type=sunos | 
|  | 14677 | need_lib_prefix=no | 
|  | 14678 | need_version=no | 
|  | 14679 | case $host_cpu in | 
|  | 14680 | ia64*) | 
|  | 14681 | shrext_cmds='.so' | 
|  | 14682 | hardcode_into_libs=yes | 
|  | 14683 | dynamic_linker="$host_os dld.so" | 
|  | 14684 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14685 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 14686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14687 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14688 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 14689 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 14690 | else | 
|  | 14691 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 14692 | fi | 
|  | 14693 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 14694 | ;; | 
|  | 14695 | hppa*64*) | 
|  | 14696 | shrext_cmds='.sl' | 
|  | 14697 | hardcode_into_libs=yes | 
|  | 14698 | dynamic_linker="$host_os dld.sl" | 
|  | 14699 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 14700 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 14701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14702 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14703 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 14704 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 14705 | ;; | 
|  | 14706 | *) | 
|  | 14707 | shrext_cmds='.sl' | 
|  | 14708 | dynamic_linker="$host_os dld.sl" | 
|  | 14709 | shlibpath_var=SHLIB_PATH | 
|  | 14710 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 14711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14712 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14713 | ;; | 
|  | 14714 | esac | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14715 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14716 | postinstall_cmds='chmod 555 $lib' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14717 | # or fails outright, so override atomically: | 
|  | 14718 | install_override_mode=555 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14719 | ;; | 
|  | 14720 |  | 
|  | 14721 | interix[3-9]*) | 
|  | 14722 | version_type=linux | 
|  | 14723 | need_lib_prefix=no | 
|  | 14724 | need_version=no | 
|  | 14725 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 14726 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14727 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 14728 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14729 | shlibpath_overrides_runpath=no | 
|  | 14730 | hardcode_into_libs=yes | 
|  | 14731 | ;; | 
|  | 14732 |  | 
|  | 14733 | irix5* | irix6* | nonstopux*) | 
|  | 14734 | case $host_os in | 
|  | 14735 | nonstopux*) version_type=nonstopux ;; | 
|  | 14736 | *) | 
|  | 14737 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 14738 | version_type=linux | 
|  | 14739 | else | 
|  | 14740 | version_type=irix | 
|  | 14741 | fi ;; | 
|  | 14742 | esac | 
|  | 14743 | need_lib_prefix=no | 
|  | 14744 | need_version=no | 
|  | 14745 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 14747 | case $host_os in | 
|  | 14748 | irix5* | nonstopux*) | 
|  | 14749 | libsuff= shlibsuff= | 
|  | 14750 | ;; | 
|  | 14751 | *) | 
|  | 14752 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 14753 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 14754 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 14755 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 14756 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 14757 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 14758 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 14759 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 14760 | esac | 
|  | 14761 | ;; | 
|  | 14762 | esac | 
|  | 14763 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 14764 | shlibpath_overrides_runpath=no | 
|  | 14765 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 14766 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 14767 | hardcode_into_libs=yes | 
|  | 14768 | ;; | 
|  | 14769 |  | 
|  | 14770 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 14771 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 14772 | dynamic_linker=no | 
|  | 14773 | ;; | 
|  | 14774 |  | 
|  | 14775 | # This must be Linux ELF. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14776 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14777 | version_type=linux | 
|  | 14778 | need_lib_prefix=no | 
|  | 14779 | need_version=no | 
|  | 14780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14781 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 14783 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14784 | shlibpath_overrides_runpath=no | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14785 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14786 | # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14787 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | 
|  | 14788 | $as_echo_n "(cached) " >&6 | 
|  | 14789 | else | 
|  | 14790 | lt_cv_shlibpath_overrides_runpath=no | 
|  | 14791 | save_LDFLAGS=$LDFLAGS | 
|  | 14792 | save_libdir=$libdir | 
|  | 14793 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | 
|  | 14794 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | 
|  | 14795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14796 | /* end confdefs.h.  */ | 
|  | 14797 |  | 
|  | 14798 | int | 
|  | 14799 | main () | 
|  | 14800 | { | 
|  | 14801 |  | 
|  | 14802 | ; | 
|  | 14803 | return 0; | 
|  | 14804 | } | 
|  | 14805 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14806 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 14807 | if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14808 | lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14809 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14810 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14811 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14812 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14813 | LDFLAGS=$save_LDFLAGS | 
|  | 14814 | libdir=$save_libdir | 
|  | 14815 |  | 
|  | 14816 | fi | 
|  | 14817 |  | 
|  | 14818 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14819 |  | 
|  | 14820 | # This implies no fast_install, which is unacceptable. | 
|  | 14821 | # Some rework will be needed to allow for fast_install | 
|  | 14822 | # before this can be enabled. | 
|  | 14823 | hardcode_into_libs=yes | 
|  | 14824 |  | 
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 14825 | # Add ABI-specific directories to the system library path. | 
|  | 14826 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
|  | 14827 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14828 | # Append ld.so.conf contents to the search path | 
|  | 14829 | if test -f /etc/ld.so.conf; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14830 | 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 | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 14831 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 14832 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14833 | fi | 
|  | 14834 |  | 
|  | 14835 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 14836 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 14837 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 14838 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 14839 | # people can always --disable-shared, the test was removed, and we | 
|  | 14840 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 14841 | dynamic_linker='GNU/Linux ld.so' | 
|  | 14842 | ;; | 
|  | 14843 |  | 
|  | 14844 | netbsd*) | 
|  | 14845 | version_type=sunos | 
|  | 14846 | need_lib_prefix=no | 
|  | 14847 | need_version=no | 
|  | 14848 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 14849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14850 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 14851 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 14852 | else | 
|  | 14853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 14854 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14855 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 14856 | fi | 
|  | 14857 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14858 | shlibpath_overrides_runpath=yes | 
|  | 14859 | hardcode_into_libs=yes | 
|  | 14860 | ;; | 
|  | 14861 |  | 
|  | 14862 | newsos6) | 
|  | 14863 | version_type=linux | 
|  | 14864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14865 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14866 | shlibpath_overrides_runpath=yes | 
|  | 14867 | ;; | 
|  | 14868 |  | 
|  | 14869 | *nto* | *qnx*) | 
|  | 14870 | version_type=qnx | 
|  | 14871 | need_lib_prefix=no | 
|  | 14872 | need_version=no | 
|  | 14873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14874 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14875 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14876 | shlibpath_overrides_runpath=no | 
|  | 14877 | hardcode_into_libs=yes | 
|  | 14878 | dynamic_linker='ldqnx.so' | 
|  | 14879 | ;; | 
|  | 14880 |  | 
|  | 14881 | openbsd*) | 
|  | 14882 | version_type=sunos | 
|  | 14883 | sys_lib_dlsearch_path_spec="/usr/lib" | 
|  | 14884 | need_lib_prefix=no | 
|  | 14885 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 14886 | case $host_os in | 
|  | 14887 | openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
|  | 14888 | *)				need_version=no  ;; | 
|  | 14889 | esac | 
|  | 14890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14891 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 14892 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14893 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 14894 | case $host_os in | 
|  | 14895 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 14896 | shlibpath_overrides_runpath=no | 
|  | 14897 | ;; | 
|  | 14898 | *) | 
|  | 14899 | shlibpath_overrides_runpath=yes | 
|  | 14900 | ;; | 
|  | 14901 | esac | 
|  | 14902 | else | 
|  | 14903 | shlibpath_overrides_runpath=yes | 
|  | 14904 | fi | 
|  | 14905 | ;; | 
|  | 14906 |  | 
|  | 14907 | os2*) | 
|  | 14908 | libname_spec='$name' | 
|  | 14909 | shrext_cmds=".dll" | 
|  | 14910 | need_lib_prefix=no | 
|  | 14911 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 14912 | dynamic_linker='OS/2 ld.exe' | 
|  | 14913 | shlibpath_var=LIBPATH | 
|  | 14914 | ;; | 
|  | 14915 |  | 
|  | 14916 | osf3* | osf4* | osf5*) | 
|  | 14917 | version_type=osf | 
|  | 14918 | need_lib_prefix=no | 
|  | 14919 | need_version=no | 
|  | 14920 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14922 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14923 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 14924 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 14925 | ;; | 
|  | 14926 |  | 
|  | 14927 | rdos*) | 
|  | 14928 | dynamic_linker=no | 
|  | 14929 | ;; | 
|  | 14930 |  | 
|  | 14931 | solaris*) | 
|  | 14932 | version_type=linux | 
|  | 14933 | need_lib_prefix=no | 
|  | 14934 | need_version=no | 
|  | 14935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14936 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14937 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14938 | shlibpath_overrides_runpath=yes | 
|  | 14939 | hardcode_into_libs=yes | 
|  | 14940 | # ldd complains unless libraries are executable | 
|  | 14941 | postinstall_cmds='chmod +x $lib' | 
|  | 14942 | ;; | 
|  | 14943 |  | 
|  | 14944 | sunos4*) | 
|  | 14945 | version_type=sunos | 
|  | 14946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 14947 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 14948 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14949 | shlibpath_overrides_runpath=yes | 
|  | 14950 | if test "$with_gnu_ld" = yes; then | 
|  | 14951 | need_lib_prefix=no | 
|  | 14952 | fi | 
|  | 14953 | need_version=yes | 
|  | 14954 | ;; | 
|  | 14955 |  | 
|  | 14956 | sysv4 | sysv4.3*) | 
|  | 14957 | version_type=linux | 
|  | 14958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 14959 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14960 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14961 | case $host_vendor in | 
|  | 14962 | sni) | 
|  | 14963 | shlibpath_overrides_runpath=no | 
|  | 14964 | need_lib_prefix=no | 
|  | 14965 | runpath_var=LD_RUN_PATH | 
|  | 14966 | ;; | 
|  | 14967 | siemens) | 
|  | 14968 | need_lib_prefix=no | 
|  | 14969 | ;; | 
|  | 14970 | motorola) | 
|  | 14971 | need_lib_prefix=no | 
|  | 14972 | need_version=no | 
|  | 14973 | shlibpath_overrides_runpath=no | 
|  | 14974 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 14975 | ;; | 
|  | 14976 | esac | 
|  | 14977 | ;; | 
|  | 14978 |  | 
|  | 14979 | sysv4*MP*) | 
|  | 14980 | if test -d /usr/nec ;then | 
|  | 14981 | version_type=linux | 
|  | 14982 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 14983 | soname_spec='$libname${shared_ext}.$major' | 
|  | 14984 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14985 | fi | 
|  | 14986 | ;; | 
|  | 14987 |  | 
|  | 14988 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 14989 | version_type=freebsd-elf | 
|  | 14990 | need_lib_prefix=no | 
|  | 14991 | need_version=no | 
|  | 14992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 14993 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 14994 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 14995 | shlibpath_overrides_runpath=yes | 
|  | 14996 | hardcode_into_libs=yes | 
|  | 14997 | if test "$with_gnu_ld" = yes; then | 
|  | 14998 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 14999 | else | 
|  | 15000 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 15001 | case $host_os in | 
|  | 15002 | sco3.2v5*) | 
|  | 15003 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 15004 | ;; | 
|  | 15005 | esac | 
|  | 15006 | fi | 
|  | 15007 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 15008 | ;; | 
|  | 15009 |  | 
|  | 15010 | tpf*) | 
|  | 15011 | # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
|  | 15012 | version_type=linux | 
|  | 15013 | need_lib_prefix=no | 
|  | 15014 | need_version=no | 
|  | 15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15016 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15017 | shlibpath_overrides_runpath=no | 
|  | 15018 | hardcode_into_libs=yes | 
|  | 15019 | ;; | 
|  | 15020 |  | 
|  | 15021 | uts4*) | 
|  | 15022 | version_type=linux | 
|  | 15023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15024 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15025 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15026 | ;; | 
|  | 15027 |  | 
|  | 15028 | *) | 
|  | 15029 | dynamic_linker=no | 
|  | 15030 | ;; | 
|  | 15031 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15033 | $as_echo "$dynamic_linker" >&6; } | 
|  | 15034 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 15035 |  | 
|  | 15036 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 15037 | if test "$GCC" = yes; then | 
|  | 15038 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 15039 | fi | 
|  | 15040 |  | 
|  | 15041 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
|  | 15042 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
|  | 15043 | fi | 
|  | 15044 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
|  | 15045 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
|  | 15046 | fi | 
|  | 15047 |  | 
|  | 15048 |  | 
|  | 15049 |  | 
|  | 15050 |  | 
|  | 15051 |  | 
|  | 15052 |  | 
|  | 15053 |  | 
|  | 15054 |  | 
|  | 15055 |  | 
|  | 15056 |  | 
|  | 15057 |  | 
|  | 15058 |  | 
|  | 15059 |  | 
|  | 15060 |  | 
|  | 15061 |  | 
|  | 15062 |  | 
|  | 15063 |  | 
|  | 15064 |  | 
|  | 15065 |  | 
|  | 15066 |  | 
|  | 15067 |  | 
|  | 15068 |  | 
|  | 15069 |  | 
|  | 15070 |  | 
|  | 15071 |  | 
|  | 15072 |  | 
|  | 15073 |  | 
|  | 15074 |  | 
|  | 15075 |  | 
|  | 15076 |  | 
|  | 15077 |  | 
|  | 15078 |  | 
|  | 15079 |  | 
|  | 15080 |  | 
|  | 15081 |  | 
|  | 15082 |  | 
|  | 15083 |  | 
|  | 15084 |  | 
|  | 15085 |  | 
|  | 15086 |  | 
|  | 15087 |  | 
|  | 15088 |  | 
|  | 15089 |  | 
|  | 15090 |  | 
|  | 15091 |  | 
|  | 15092 |  | 
|  | 15093 |  | 
|  | 15094 |  | 
|  | 15095 |  | 
|  | 15096 |  | 
|  | 15097 |  | 
|  | 15098 |  | 
|  | 15099 |  | 
|  | 15100 |  | 
|  | 15101 |  | 
|  | 15102 |  | 
|  | 15103 |  | 
|  | 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 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15134 |  | 
|  | 15135 |  | 
|  | 15136 |  | 
|  | 15137 |  | 
|  | 15138 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15140 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
|  | 15141 | hardcode_action= | 
|  | 15142 | if test -n "$hardcode_libdir_flag_spec" || | 
|  | 15143 | test -n "$runpath_var" || | 
|  | 15144 | test "X$hardcode_automatic" = "Xyes" ; then | 
|  | 15145 |  | 
|  | 15146 | # We can hardcode non-existent directories. | 
|  | 15147 | if test "$hardcode_direct" != no && | 
|  | 15148 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 15149 | # have to relink, otherwise we might link with an installed library | 
|  | 15150 | # when we should be linking with a yet-to-be-installed one | 
|  | 15151 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | 
|  | 15152 | test "$hardcode_minus_L" != no; then | 
|  | 15153 | # Linking always hardcodes the temporary library directory. | 
|  | 15154 | hardcode_action=relink | 
|  | 15155 | else | 
|  | 15156 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 15157 | hardcode_action=immediate | 
|  | 15158 | fi | 
|  | 15159 | else | 
|  | 15160 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 15161 | # directories. | 
|  | 15162 | hardcode_action=unsupported | 
|  | 15163 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15165 | $as_echo "$hardcode_action" >&6; } | 
|  | 15166 |  | 
|  | 15167 | if test "$hardcode_action" = relink || | 
|  | 15168 | test "$inherit_rpath" = yes; then | 
|  | 15169 | # Fast installation is not supported | 
|  | 15170 | enable_fast_install=no | 
|  | 15171 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 15172 | test "$enable_shared" = no; then | 
|  | 15173 | # Fast installation is not necessary | 
|  | 15174 | enable_fast_install=needless | 
|  | 15175 | fi | 
|  | 15176 |  | 
|  | 15177 |  | 
|  | 15178 |  | 
|  | 15179 |  | 
|  | 15180 |  | 
|  | 15181 |  | 
|  | 15182 | if test "x$enable_dlopen" != xyes; then | 
|  | 15183 | enable_dlopen=unknown | 
|  | 15184 | enable_dlopen_self=unknown | 
|  | 15185 | enable_dlopen_self_static=unknown | 
|  | 15186 | else | 
|  | 15187 | lt_cv_dlopen=no | 
|  | 15188 | lt_cv_dlopen_libs= | 
|  | 15189 |  | 
|  | 15190 | case $host_os in | 
|  | 15191 | beos*) | 
|  | 15192 | lt_cv_dlopen="load_add_on" | 
|  | 15193 | lt_cv_dlopen_libs= | 
|  | 15194 | lt_cv_dlopen_self=yes | 
|  | 15195 | ;; | 
|  | 15196 |  | 
|  | 15197 | mingw* | pw32* | cegcc*) | 
|  | 15198 | lt_cv_dlopen="LoadLibrary" | 
|  | 15199 | lt_cv_dlopen_libs= | 
|  | 15200 | ;; | 
|  | 15201 |  | 
|  | 15202 | cygwin*) | 
|  | 15203 | lt_cv_dlopen="dlopen" | 
|  | 15204 | lt_cv_dlopen_libs= | 
|  | 15205 | ;; | 
|  | 15206 |  | 
|  | 15207 | darwin*) | 
|  | 15208 | # if libdl is installed we need to link against it | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15210 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15211 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15212 | $as_echo_n "(cached) " >&6 | 
|  | 15213 | else | 
|  | 15214 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15215 | LIBS="-ldl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15217 | /* end confdefs.h.  */ | 
|  | 15218 |  | 
|  | 15219 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15220 | Use char because int might match the return type of a GCC | 
|  | 15221 | builtin and then its argument prototype would still apply.  */ | 
|  | 15222 | #ifdef __cplusplus | 
|  | 15223 | extern "C" | 
|  | 15224 | #endif | 
|  | 15225 | char dlopen (); | 
|  | 15226 | int | 
|  | 15227 | main () | 
|  | 15228 | { | 
|  | 15229 | return dlopen (); | 
|  | 15230 | ; | 
|  | 15231 | return 0; | 
|  | 15232 | } | 
|  | 15233 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15234 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15235 | ac_cv_lib_dl_dlopen=yes | 
|  | 15236 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15237 | ac_cv_lib_dl_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15238 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15239 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15240 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15241 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15242 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15243 | { $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] | 15244 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15245 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15246 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 15247 | else | 
|  | 15248 |  | 
|  | 15249 | lt_cv_dlopen="dyld" | 
|  | 15250 | lt_cv_dlopen_libs= | 
|  | 15251 | lt_cv_dlopen_self=yes | 
|  | 15252 |  | 
|  | 15253 | fi | 
|  | 15254 |  | 
|  | 15255 | ;; | 
|  | 15256 |  | 
|  | 15257 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15258 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
|  | 15259 | if test "x$ac_cv_func_shl_load" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15260 | lt_cv_dlopen="shl_load" | 
|  | 15261 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15263 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15264 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15265 | $as_echo_n "(cached) " >&6 | 
|  | 15266 | else | 
|  | 15267 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15268 | LIBS="-ldld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15270 | /* end confdefs.h.  */ | 
|  | 15271 |  | 
|  | 15272 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15273 | Use char because int might match the return type of a GCC | 
|  | 15274 | builtin and then its argument prototype would still apply.  */ | 
|  | 15275 | #ifdef __cplusplus | 
|  | 15276 | extern "C" | 
|  | 15277 | #endif | 
|  | 15278 | char shl_load (); | 
|  | 15279 | int | 
|  | 15280 | main () | 
|  | 15281 | { | 
|  | 15282 | return shl_load (); | 
|  | 15283 | ; | 
|  | 15284 | return 0; | 
|  | 15285 | } | 
|  | 15286 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15287 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15288 | ac_cv_lib_dld_shl_load=yes | 
|  | 15289 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15290 | ac_cv_lib_dld_shl_load=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15291 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15292 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15293 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15294 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15295 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15297 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15298 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15299 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | 
|  | 15300 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15301 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
|  | 15302 | if test "x$ac_cv_func_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15303 | lt_cv_dlopen="dlopen" | 
|  | 15304 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15306 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15307 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15308 | $as_echo_n "(cached) " >&6 | 
|  | 15309 | else | 
|  | 15310 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15311 | LIBS="-ldl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15313 | /* end confdefs.h.  */ | 
|  | 15314 |  | 
|  | 15315 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15316 | Use char because int might match the return type of a GCC | 
|  | 15317 | builtin and then its argument prototype would still apply.  */ | 
|  | 15318 | #ifdef __cplusplus | 
|  | 15319 | extern "C" | 
|  | 15320 | #endif | 
|  | 15321 | char dlopen (); | 
|  | 15322 | int | 
|  | 15323 | main () | 
|  | 15324 | { | 
|  | 15325 | return dlopen (); | 
|  | 15326 | ; | 
|  | 15327 | return 0; | 
|  | 15328 | } | 
|  | 15329 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15330 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15331 | ac_cv_lib_dl_dlopen=yes | 
|  | 15332 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15333 | ac_cv_lib_dl_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15334 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15335 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15336 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15337 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15338 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15339 | { $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] | 15340 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15341 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15342 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 15343 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15345 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15346 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15347 | $as_echo_n "(cached) " >&6 | 
|  | 15348 | else | 
|  | 15349 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15350 | LIBS="-lsvld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15352 | /* end confdefs.h.  */ | 
|  | 15353 |  | 
|  | 15354 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15355 | Use char because int might match the return type of a GCC | 
|  | 15356 | builtin and then its argument prototype would still apply.  */ | 
|  | 15357 | #ifdef __cplusplus | 
|  | 15358 | extern "C" | 
|  | 15359 | #endif | 
|  | 15360 | char dlopen (); | 
|  | 15361 | int | 
|  | 15362 | main () | 
|  | 15363 | { | 
|  | 15364 | return dlopen (); | 
|  | 15365 | ; | 
|  | 15366 | return 0; | 
|  | 15367 | } | 
|  | 15368 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15369 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15370 | ac_cv_lib_svld_dlopen=yes | 
|  | 15371 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15372 | ac_cv_lib_svld_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15373 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15374 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15375 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15376 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15377 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15379 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15380 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15381 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 15382 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15384 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15385 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15386 | $as_echo_n "(cached) " >&6 | 
|  | 15387 | else | 
|  | 15388 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15389 | LIBS="-ldld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15391 | /* end confdefs.h.  */ | 
|  | 15392 |  | 
|  | 15393 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15394 | Use char because int might match the return type of a GCC | 
|  | 15395 | builtin and then its argument prototype would still apply.  */ | 
|  | 15396 | #ifdef __cplusplus | 
|  | 15397 | extern "C" | 
|  | 15398 | #endif | 
|  | 15399 | char dld_link (); | 
|  | 15400 | int | 
|  | 15401 | main () | 
|  | 15402 | { | 
|  | 15403 | return dld_link (); | 
|  | 15404 | ; | 
|  | 15405 | return 0; | 
|  | 15406 | } | 
|  | 15407 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15408 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15409 | ac_cv_lib_dld_dld_link=yes | 
|  | 15410 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15411 | ac_cv_lib_dld_dld_link=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15412 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15413 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15414 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15415 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15416 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15418 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15419 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15420 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | 
|  | 15421 | fi | 
|  | 15422 |  | 
|  | 15423 |  | 
|  | 15424 | fi | 
|  | 15425 |  | 
|  | 15426 |  | 
|  | 15427 | fi | 
|  | 15428 |  | 
|  | 15429 |  | 
|  | 15430 | fi | 
|  | 15431 |  | 
|  | 15432 |  | 
|  | 15433 | fi | 
|  | 15434 |  | 
|  | 15435 |  | 
|  | 15436 | fi | 
|  | 15437 |  | 
|  | 15438 | ;; | 
|  | 15439 | esac | 
|  | 15440 |  | 
|  | 15441 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 15442 | enable_dlopen=yes | 
|  | 15443 | else | 
|  | 15444 | enable_dlopen=no | 
|  | 15445 | fi | 
|  | 15446 |  | 
|  | 15447 | case $lt_cv_dlopen in | 
|  | 15448 | dlopen) | 
|  | 15449 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 15450 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 15451 |  | 
|  | 15452 | save_LDFLAGS="$LDFLAGS" | 
|  | 15453 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 15454 |  | 
|  | 15455 | save_LIBS="$LIBS" | 
|  | 15456 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 15457 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15459 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15460 | if test "${lt_cv_dlopen_self+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15461 | $as_echo_n "(cached) " >&6 | 
|  | 15462 | else | 
|  | 15463 | if test "$cross_compiling" = yes; then : | 
|  | 15464 | lt_cv_dlopen_self=cross | 
|  | 15465 | else | 
|  | 15466 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 15467 | lt_status=$lt_dlunknown | 
|  | 15468 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15469 | #line $LINENO "configure" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15470 | #include "confdefs.h" | 
|  | 15471 |  | 
|  | 15472 | #if HAVE_DLFCN_H | 
|  | 15473 | #include <dlfcn.h> | 
|  | 15474 | #endif | 
|  | 15475 |  | 
|  | 15476 | #include <stdio.h> | 
|  | 15477 |  | 
|  | 15478 | #ifdef RTLD_GLOBAL | 
|  | 15479 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 15480 | #else | 
|  | 15481 | #  ifdef DL_GLOBAL | 
|  | 15482 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 15483 | #  else | 
|  | 15484 | #    define LT_DLGLOBAL		0 | 
|  | 15485 | #  endif | 
|  | 15486 | #endif | 
|  | 15487 |  | 
|  | 15488 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 15489 | find out it does not work in some platform. */ | 
|  | 15490 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 15491 | #  ifdef RTLD_LAZY | 
|  | 15492 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 15493 | #  else | 
|  | 15494 | #    ifdef DL_LAZY | 
|  | 15495 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 15496 | #    else | 
|  | 15497 | #      ifdef RTLD_NOW | 
|  | 15498 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 15499 | #      else | 
|  | 15500 | #        ifdef DL_NOW | 
|  | 15501 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 15502 | #        else | 
|  | 15503 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 15504 | #        endif | 
|  | 15505 | #      endif | 
|  | 15506 | #    endif | 
|  | 15507 | #  endif | 
|  | 15508 | #endif | 
|  | 15509 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15510 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 15511 | correspondingly for the symbols needed.  */ | 
|  | 15512 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
|  | 15513 | void fnord () __attribute__((visibility("default"))); | 
|  | 15514 | #endif | 
|  | 15515 |  | 
|  | 15516 | void fnord () { int i=42; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15517 | int main () | 
|  | 15518 | { | 
|  | 15519 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 15520 | int status = $lt_dlunknown; | 
|  | 15521 |  | 
|  | 15522 | if (self) | 
|  | 15523 | { | 
|  | 15524 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15525 | else | 
|  | 15526 | { | 
|  | 15527 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 15528 | else puts (dlerror ()); | 
|  | 15529 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15530 | /* dlclose (self); */ | 
|  | 15531 | } | 
|  | 15532 | else | 
|  | 15533 | puts (dlerror ()); | 
|  | 15534 |  | 
|  | 15535 | return status; | 
|  | 15536 | } | 
|  | 15537 | _LT_EOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15538 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15539 | (eval $ac_link) 2>&5 | 
|  | 15540 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 15542 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15543 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 15544 | lt_status=$? | 
|  | 15545 | case x$lt_status in | 
|  | 15546 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 15547 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 15548 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 15549 | esac | 
|  | 15550 | else : | 
|  | 15551 | # compilation failed | 
|  | 15552 | lt_cv_dlopen_self=no | 
|  | 15553 | fi | 
|  | 15554 | fi | 
|  | 15555 | rm -fr conftest* | 
|  | 15556 |  | 
|  | 15557 |  | 
|  | 15558 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15560 | $as_echo "$lt_cv_dlopen_self" >&6; } | 
|  | 15561 |  | 
|  | 15562 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 15563 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15565 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15566 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15567 | $as_echo_n "(cached) " >&6 | 
|  | 15568 | else | 
|  | 15569 | if test "$cross_compiling" = yes; then : | 
|  | 15570 | lt_cv_dlopen_self_static=cross | 
|  | 15571 | else | 
|  | 15572 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 15573 | lt_status=$lt_dlunknown | 
|  | 15574 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15575 | #line $LINENO "configure" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15576 | #include "confdefs.h" | 
|  | 15577 |  | 
|  | 15578 | #if HAVE_DLFCN_H | 
|  | 15579 | #include <dlfcn.h> | 
|  | 15580 | #endif | 
|  | 15581 |  | 
|  | 15582 | #include <stdio.h> | 
|  | 15583 |  | 
|  | 15584 | #ifdef RTLD_GLOBAL | 
|  | 15585 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 15586 | #else | 
|  | 15587 | #  ifdef DL_GLOBAL | 
|  | 15588 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 15589 | #  else | 
|  | 15590 | #    define LT_DLGLOBAL		0 | 
|  | 15591 | #  endif | 
|  | 15592 | #endif | 
|  | 15593 |  | 
|  | 15594 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 15595 | find out it does not work in some platform. */ | 
|  | 15596 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 15597 | #  ifdef RTLD_LAZY | 
|  | 15598 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 15599 | #  else | 
|  | 15600 | #    ifdef DL_LAZY | 
|  | 15601 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 15602 | #    else | 
|  | 15603 | #      ifdef RTLD_NOW | 
|  | 15604 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 15605 | #      else | 
|  | 15606 | #        ifdef DL_NOW | 
|  | 15607 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 15608 | #        else | 
|  | 15609 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 15610 | #        endif | 
|  | 15611 | #      endif | 
|  | 15612 | #    endif | 
|  | 15613 | #  endif | 
|  | 15614 | #endif | 
|  | 15615 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15616 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 15617 | correspondingly for the symbols needed.  */ | 
|  | 15618 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
|  | 15619 | void fnord () __attribute__((visibility("default"))); | 
|  | 15620 | #endif | 
|  | 15621 |  | 
|  | 15622 | void fnord () { int i=42; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15623 | int main () | 
|  | 15624 | { | 
|  | 15625 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 15626 | int status = $lt_dlunknown; | 
|  | 15627 |  | 
|  | 15628 | if (self) | 
|  | 15629 | { | 
|  | 15630 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15631 | else | 
|  | 15632 | { | 
|  | 15633 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 15634 | else puts (dlerror ()); | 
|  | 15635 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15636 | /* dlclose (self); */ | 
|  | 15637 | } | 
|  | 15638 | else | 
|  | 15639 | puts (dlerror ()); | 
|  | 15640 |  | 
|  | 15641 | return status; | 
|  | 15642 | } | 
|  | 15643 | _LT_EOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15644 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15645 | (eval $ac_link) 2>&5 | 
|  | 15646 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 15648 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15649 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 15650 | lt_status=$? | 
|  | 15651 | case x$lt_status in | 
|  | 15652 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 15653 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 15654 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 15655 | esac | 
|  | 15656 | else : | 
|  | 15657 | # compilation failed | 
|  | 15658 | lt_cv_dlopen_self_static=no | 
|  | 15659 | fi | 
|  | 15660 | fi | 
|  | 15661 | rm -fr conftest* | 
|  | 15662 |  | 
|  | 15663 |  | 
|  | 15664 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15666 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | 
|  | 15667 | fi | 
|  | 15668 |  | 
|  | 15669 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 15670 | LDFLAGS="$save_LDFLAGS" | 
|  | 15671 | LIBS="$save_LIBS" | 
|  | 15672 | ;; | 
|  | 15673 | esac | 
|  | 15674 |  | 
|  | 15675 | case $lt_cv_dlopen_self in | 
|  | 15676 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 15677 | *) enable_dlopen_self=unknown ;; | 
|  | 15678 | esac | 
|  | 15679 |  | 
|  | 15680 | case $lt_cv_dlopen_self_static in | 
|  | 15681 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 15682 | *) enable_dlopen_self_static=unknown ;; | 
|  | 15683 | esac | 
|  | 15684 | fi | 
|  | 15685 |  | 
|  | 15686 |  | 
|  | 15687 |  | 
|  | 15688 |  | 
|  | 15689 |  | 
|  | 15690 |  | 
|  | 15691 |  | 
|  | 15692 |  | 
|  | 15693 |  | 
|  | 15694 |  | 
|  | 15695 |  | 
|  | 15696 |  | 
|  | 15697 |  | 
|  | 15698 |  | 
|  | 15699 |  | 
|  | 15700 |  | 
|  | 15701 |  | 
|  | 15702 | striplib= | 
|  | 15703 | old_striplib= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15705 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | 
|  | 15706 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | 
|  | 15707 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 15708 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15710 | $as_echo "yes" >&6; } | 
|  | 15711 | else | 
|  | 15712 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 15713 | case $host_os in | 
|  | 15714 | darwin*) | 
|  | 15715 | if test -n "$STRIP" ; then | 
|  | 15716 | striplib="$STRIP -x" | 
|  | 15717 | old_striplib="$STRIP -S" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15719 | $as_echo "yes" >&6; } | 
|  | 15720 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15722 | $as_echo "no" >&6; } | 
|  | 15723 | fi | 
|  | 15724 | ;; | 
|  | 15725 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15727 | $as_echo "no" >&6; } | 
|  | 15728 | ;; | 
|  | 15729 | esac | 
|  | 15730 | fi | 
|  | 15731 |  | 
|  | 15732 |  | 
|  | 15733 |  | 
|  | 15734 |  | 
|  | 15735 |  | 
|  | 15736 |  | 
|  | 15737 |  | 
|  | 15738 |  | 
|  | 15739 |  | 
|  | 15740 |  | 
|  | 15741 |  | 
|  | 15742 |  | 
|  | 15743 | # Report which library types will actually be built | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15745 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15747 | $as_echo "$can_build_shared" >&6; } | 
|  | 15748 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15750 | $as_echo_n "checking whether to build shared libraries... " >&6; } | 
|  | 15751 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 15752 |  | 
|  | 15753 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 15754 | # are all built from PIC. | 
|  | 15755 | case $host_os in | 
|  | 15756 | aix3*) | 
|  | 15757 | test "$enable_shared" = yes && enable_static=no | 
|  | 15758 | if test -n "$RANLIB"; then | 
|  | 15759 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
|  | 15760 | postinstall_cmds='$RANLIB $lib' | 
|  | 15761 | fi | 
|  | 15762 | ;; | 
|  | 15763 |  | 
|  | 15764 | aix[4-9]*) | 
|  | 15765 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|  | 15766 | test "$enable_shared" = yes && enable_static=no | 
|  | 15767 | fi | 
|  | 15768 | ;; | 
|  | 15769 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15771 | $as_echo "$enable_shared" >&6; } | 
|  | 15772 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15774 | $as_echo_n "checking whether to build static libraries... " >&6; } | 
|  | 15775 | # Make sure either enable_shared or enable_static is yes. | 
|  | 15776 | test "$enable_shared" = yes || enable_static=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15778 | $as_echo "$enable_static" >&6; } | 
|  | 15779 |  | 
|  | 15780 |  | 
|  | 15781 |  | 
|  | 15782 |  | 
|  | 15783 | fi | 
|  | 15784 | ac_ext=c | 
|  | 15785 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 15786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 15787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 15788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 15789 |  | 
|  | 15790 | CC="$lt_save_CC" | 
|  | 15791 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15792 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 15793 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 15794 | (test "X$CXX" != "Xg++"))) ; then | 
|  | 15795 | ac_ext=cpp | 
|  | 15796 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 15797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 15798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 15799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 15800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | 
|  | 15801 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | 
|  | 15802 | if test -z "$CXXCPP"; then | 
|  | 15803 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | 
|  | 15804 | $as_echo_n "(cached) " >&6 | 
|  | 15805 | else | 
|  | 15806 | # Double quotes because CXXCPP needs to be expanded | 
|  | 15807 | for CXXCPP in "$CXX -E" "/lib/cpp" | 
|  | 15808 | do | 
|  | 15809 | ac_preproc_ok=false | 
|  | 15810 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 15811 | do | 
|  | 15812 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 15813 | # with a fresh cross-compiler works. | 
|  | 15814 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 15815 | # <limits.h> exists even on freestanding compilers. | 
|  | 15816 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 15817 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 15818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15819 | /* end confdefs.h.  */ | 
|  | 15820 | #ifdef __STDC__ | 
|  | 15821 | # include <limits.h> | 
|  | 15822 | #else | 
|  | 15823 | # include <assert.h> | 
|  | 15824 | #endif | 
|  | 15825 | Syntax error | 
|  | 15826 | _ACEOF | 
|  | 15827 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 15828 |  | 
|  | 15829 | else | 
|  | 15830 | # Broken: fails on valid input. | 
|  | 15831 | continue | 
|  | 15832 | fi | 
|  | 15833 | rm -f conftest.err conftest.$ac_ext | 
|  | 15834 |  | 
|  | 15835 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 15836 | # can be detected and how. | 
|  | 15837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15838 | /* end confdefs.h.  */ | 
|  | 15839 | #include <ac_nonexistent.h> | 
|  | 15840 | _ACEOF | 
|  | 15841 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 15842 | # Broken: success on invalid input. | 
|  | 15843 | continue | 
|  | 15844 | else | 
|  | 15845 | # Passes both tests. | 
|  | 15846 | ac_preproc_ok=: | 
|  | 15847 | break | 
|  | 15848 | fi | 
|  | 15849 | rm -f conftest.err conftest.$ac_ext | 
|  | 15850 |  | 
|  | 15851 | done | 
|  | 15852 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 15853 | rm -f conftest.err conftest.$ac_ext | 
|  | 15854 | if $ac_preproc_ok; then : | 
|  | 15855 | break | 
|  | 15856 | fi | 
|  | 15857 |  | 
|  | 15858 | done | 
|  | 15859 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 15860 |  | 
|  | 15861 | fi | 
|  | 15862 | CXXCPP=$ac_cv_prog_CXXCPP | 
|  | 15863 | else | 
|  | 15864 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 15865 | fi | 
|  | 15866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | 
|  | 15867 | $as_echo "$CXXCPP" >&6; } | 
|  | 15868 | ac_preproc_ok=false | 
|  | 15869 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 15870 | do | 
|  | 15871 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 15872 | # with a fresh cross-compiler works. | 
|  | 15873 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 15874 | # <limits.h> exists even on freestanding compilers. | 
|  | 15875 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 15876 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 15877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15878 | /* end confdefs.h.  */ | 
|  | 15879 | #ifdef __STDC__ | 
|  | 15880 | # include <limits.h> | 
|  | 15881 | #else | 
|  | 15882 | # include <assert.h> | 
|  | 15883 | #endif | 
|  | 15884 | Syntax error | 
|  | 15885 | _ACEOF | 
|  | 15886 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 15887 |  | 
|  | 15888 | else | 
|  | 15889 | # Broken: fails on valid input. | 
|  | 15890 | continue | 
|  | 15891 | fi | 
|  | 15892 | rm -f conftest.err conftest.$ac_ext | 
|  | 15893 |  | 
|  | 15894 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 15895 | # can be detected and how. | 
|  | 15896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15897 | /* end confdefs.h.  */ | 
|  | 15898 | #include <ac_nonexistent.h> | 
|  | 15899 | _ACEOF | 
|  | 15900 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 15901 | # Broken: success on invalid input. | 
|  | 15902 | continue | 
|  | 15903 | else | 
|  | 15904 | # Passes both tests. | 
|  | 15905 | ac_preproc_ok=: | 
|  | 15906 | break | 
|  | 15907 | fi | 
|  | 15908 | rm -f conftest.err conftest.$ac_ext | 
|  | 15909 |  | 
|  | 15910 | done | 
|  | 15911 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
|  | 15912 | rm -f conftest.err conftest.$ac_ext | 
|  | 15913 | if $ac_preproc_ok; then : | 
|  | 15914 |  | 
|  | 15915 | else | 
|  | 15916 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 15917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 15918 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 15919 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 15920 | fi | 
|  | 15921 |  | 
|  | 15922 | ac_ext=c | 
|  | 15923 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 15924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 15925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 15926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 15927 |  | 
|  | 15928 | else | 
|  | 15929 | _lt_caught_CXX_error=yes | 
|  | 15930 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15931 |  | 
|  | 15932 | ac_ext=cpp | 
|  | 15933 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 15934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 15935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 15936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 15937 |  | 
|  | 15938 | archive_cmds_need_lc_CXX=no | 
|  | 15939 | allow_undefined_flag_CXX= | 
|  | 15940 | always_export_symbols_CXX=no | 
|  | 15941 | archive_expsym_cmds_CXX= | 
|  | 15942 | compiler_needs_object_CXX=no | 
|  | 15943 | export_dynamic_flag_spec_CXX= | 
|  | 15944 | hardcode_direct_CXX=no | 
|  | 15945 | hardcode_direct_absolute_CXX=no | 
|  | 15946 | hardcode_libdir_flag_spec_CXX= | 
|  | 15947 | hardcode_libdir_flag_spec_ld_CXX= | 
|  | 15948 | hardcode_libdir_separator_CXX= | 
|  | 15949 | hardcode_minus_L_CXX=no | 
|  | 15950 | hardcode_shlibpath_var_CXX=unsupported | 
|  | 15951 | hardcode_automatic_CXX=no | 
|  | 15952 | inherit_rpath_CXX=no | 
|  | 15953 | module_cmds_CXX= | 
|  | 15954 | module_expsym_cmds_CXX= | 
|  | 15955 | link_all_deplibs_CXX=unknown | 
|  | 15956 | old_archive_cmds_CXX=$old_archive_cmds | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 15957 | reload_flag_CXX=$reload_flag | 
|  | 15958 | reload_cmds_CXX=$reload_cmds | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15959 | no_undefined_flag_CXX= | 
|  | 15960 | whole_archive_flag_spec_CXX= | 
|  | 15961 | enable_shared_with_static_runtimes_CXX=no | 
|  | 15962 |  | 
|  | 15963 | # Source file extension for C++ test sources. | 
|  | 15964 | ac_ext=cpp | 
|  | 15965 |  | 
|  | 15966 | # Object file extension for compiled C++ test sources. | 
|  | 15967 | objext=o | 
|  | 15968 | objext_CXX=$objext | 
|  | 15969 |  | 
|  | 15970 | # No sense in running all these tests if we already determined that | 
|  | 15971 | # the CXX compiler isn't working.  Some variables (like enable_shared) | 
|  | 15972 | # are currently assumed to apply to all compilers on this platform, | 
|  | 15973 | # and will be corrupted by setting them based on a non-working compiler. | 
|  | 15974 | if test "$_lt_caught_CXX_error" != yes; then | 
|  | 15975 | # Code to be used in simple compile tests | 
|  | 15976 | lt_simple_compile_test_code="int some_variable = 0;" | 
|  | 15977 |  | 
|  | 15978 | # Code to be used in simple link tests | 
|  | 15979 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | 
|  | 15980 |  | 
|  | 15981 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 15982 |  | 
|  | 15983 |  | 
|  | 15984 |  | 
|  | 15985 |  | 
|  | 15986 |  | 
|  | 15987 |  | 
|  | 15988 | # If no C compiler was specified, use CC. | 
|  | 15989 | LTCC=${LTCC-"$CC"} | 
|  | 15990 |  | 
|  | 15991 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 15992 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 15993 |  | 
|  | 15994 | # Allow CC to be a program name with arguments. | 
|  | 15995 | compiler=$CC | 
|  | 15996 |  | 
|  | 15997 |  | 
|  | 15998 | # save warnings/boilerplate of simple test code | 
|  | 15999 | ac_outfile=conftest.$ac_objext | 
|  | 16000 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
|  | 16001 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 16002 | _lt_compiler_boilerplate=`cat conftest.err` | 
|  | 16003 | $RM conftest* | 
|  | 16004 |  | 
|  | 16005 | ac_outfile=conftest.$ac_objext | 
|  | 16006 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
|  | 16007 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 16008 | _lt_linker_boilerplate=`cat conftest.err` | 
|  | 16009 | $RM -r conftest* | 
|  | 16010 |  | 
|  | 16011 |  | 
|  | 16012 | # Allow CC to be a program name with arguments. | 
|  | 16013 | lt_save_CC=$CC | 
|  | 16014 | lt_save_LD=$LD | 
|  | 16015 | lt_save_GCC=$GCC | 
|  | 16016 | GCC=$GXX | 
|  | 16017 | lt_save_with_gnu_ld=$with_gnu_ld | 
|  | 16018 | lt_save_path_LD=$lt_cv_path_LD | 
|  | 16019 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
|  | 16020 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
|  | 16021 | else | 
|  | 16022 | $as_unset lt_cv_prog_gnu_ld | 
|  | 16023 | fi | 
|  | 16024 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
|  | 16025 | lt_cv_path_LD=$lt_cv_path_LDCXX | 
|  | 16026 | else | 
|  | 16027 | $as_unset lt_cv_path_LD | 
|  | 16028 | fi | 
|  | 16029 | test -z "${LDCXX+set}" || LD=$LDCXX | 
|  | 16030 | CC=${CXX-"c++"} | 
|  | 16031 | compiler=$CC | 
|  | 16032 | compiler_CXX=$CC | 
|  | 16033 | for cc_temp in $compiler""; do | 
|  | 16034 | case $cc_temp in | 
|  | 16035 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
|  | 16036 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
|  | 16037 | \-*) ;; | 
|  | 16038 | *) break;; | 
|  | 16039 | esac | 
|  | 16040 | done | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16041 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16042 |  | 
|  | 16043 |  | 
|  | 16044 | if test -n "$compiler"; then | 
|  | 16045 | # We don't want -fno-exception when compiling C++ code, so set the | 
|  | 16046 | # no_builtin_flag separately | 
|  | 16047 | if test "$GXX" = yes; then | 
|  | 16048 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
|  | 16049 | else | 
|  | 16050 | lt_prog_compiler_no_builtin_flag_CXX= | 
|  | 16051 | fi | 
|  | 16052 |  | 
|  | 16053 | if test "$GXX" = yes; then | 
|  | 16054 | # Set up default GNU C++ configuration | 
|  | 16055 |  | 
|  | 16056 |  | 
|  | 16057 |  | 
|  | 16058 | # Check whether --with-gnu-ld was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16059 | if test "${with_gnu_ld+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16060 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
|  | 16061 | else | 
|  | 16062 | with_gnu_ld=no | 
|  | 16063 | fi | 
|  | 16064 |  | 
|  | 16065 | ac_prog=ld | 
|  | 16066 | if test "$GCC" = yes; then | 
|  | 16067 | # Check if gcc -print-prog-name=ld gives a path. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16069 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
|  | 16070 | case $host in | 
|  | 16071 | *-*-mingw*) | 
|  | 16072 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 16073 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 16074 | *) | 
|  | 16075 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 16076 | esac | 
|  | 16077 | case $ac_prog in | 
|  | 16078 | # Accept absolute paths. | 
|  | 16079 | [\\/]* | ?:[\\/]*) | 
|  | 16080 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 16081 | # Canonicalize the pathname of ld | 
|  | 16082 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
|  | 16083 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
|  | 16084 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 16085 | done | 
|  | 16086 | test -z "$LD" && LD="$ac_prog" | 
|  | 16087 | ;; | 
|  | 16088 | "") | 
|  | 16089 | # If it fails, then pretend we aren't using GCC. | 
|  | 16090 | ac_prog=ld | 
|  | 16091 | ;; | 
|  | 16092 | *) | 
|  | 16093 | # If it is relative, then search for the first ld in PATH. | 
|  | 16094 | with_gnu_ld=unknown | 
|  | 16095 | ;; | 
|  | 16096 | esac | 
|  | 16097 | elif test "$with_gnu_ld" = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16099 | $as_echo_n "checking for GNU ld... " >&6; } | 
|  | 16100 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16102 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
|  | 16103 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16104 | if test "${lt_cv_path_LD+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16105 | $as_echo_n "(cached) " >&6 | 
|  | 16106 | else | 
|  | 16107 | if test -z "$LD"; then | 
|  | 16108 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 16109 | for ac_dir in $PATH; do | 
|  | 16110 | IFS="$lt_save_ifs" | 
|  | 16111 | test -z "$ac_dir" && ac_dir=. | 
|  | 16112 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 16113 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 16114 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 16115 | # but apparently some variants of GNU ld only accept -v. | 
|  | 16116 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 16117 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 16118 | *GNU* | *'with BFD'*) | 
|  | 16119 | test "$with_gnu_ld" != no && break | 
|  | 16120 | ;; | 
|  | 16121 | *) | 
|  | 16122 | test "$with_gnu_ld" != yes && break | 
|  | 16123 | ;; | 
|  | 16124 | esac | 
|  | 16125 | fi | 
|  | 16126 | done | 
|  | 16127 | IFS="$lt_save_ifs" | 
|  | 16128 | else | 
|  | 16129 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 16130 | fi | 
|  | 16131 | fi | 
|  | 16132 |  | 
|  | 16133 | LD="$lt_cv_path_LD" | 
|  | 16134 | if test -n "$LD"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16136 | $as_echo "$LD" >&6; } | 
|  | 16137 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16139 | $as_echo "no" >&6; } | 
|  | 16140 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16141 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16143 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16144 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16145 | $as_echo_n "(cached) " >&6 | 
|  | 16146 | else | 
|  | 16147 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
|  | 16148 | case `$LD -v 2>&1 </dev/null` in | 
|  | 16149 | *GNU* | *'with BFD'*) | 
|  | 16150 | lt_cv_prog_gnu_ld=yes | 
|  | 16151 | ;; | 
|  | 16152 | *) | 
|  | 16153 | lt_cv_prog_gnu_ld=no | 
|  | 16154 | ;; | 
|  | 16155 | esac | 
|  | 16156 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16158 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
|  | 16159 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 16160 |  | 
|  | 16161 |  | 
|  | 16162 |  | 
|  | 16163 |  | 
|  | 16164 |  | 
|  | 16165 |  | 
|  | 16166 |  | 
|  | 16167 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
|  | 16168 | # archiving commands below assume that GNU ld is being used. | 
|  | 16169 | if test "$with_gnu_ld" = yes; then | 
|  | 16170 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16171 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 16172 |  | 
|  | 16173 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16174 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 16175 |  | 
|  | 16176 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 16177 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
|  | 16178 | #     investigate it a little bit more. (MM) | 
|  | 16179 | wlarc='${wl}' | 
|  | 16180 |  | 
|  | 16181 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 16182 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | 
|  | 16183 | $GREP 'no-whole-archive' > /dev/null; then | 
|  | 16184 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 16185 | else | 
|  | 16186 | whole_archive_flag_spec_CXX= | 
|  | 16187 | fi | 
|  | 16188 | else | 
|  | 16189 | with_gnu_ld=no | 
|  | 16190 | wlarc= | 
|  | 16191 |  | 
|  | 16192 | # A generic and very simple default shared library creation | 
|  | 16193 | # command for GNU C++ for the case where it uses the native | 
|  | 16194 | # linker, instead of GNU ld.  If possible, this setting should | 
|  | 16195 | # overridden to take advantage of the native linker features on | 
|  | 16196 | # the platform it is being used on. | 
|  | 16197 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 16198 | fi | 
|  | 16199 |  | 
|  | 16200 | # Commands to make compiler produce verbose output that lists | 
|  | 16201 | # what "hidden" libraries, object files and flags are used when | 
|  | 16202 | # linking a shared library. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16203 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16204 |  | 
|  | 16205 | else | 
|  | 16206 | GXX=no | 
|  | 16207 | with_gnu_ld=no | 
|  | 16208 | wlarc= | 
|  | 16209 | fi | 
|  | 16210 |  | 
|  | 16211 | # PORTME: fill in a description of your system's C++ link characteristics | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16213 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 16214 | ld_shlibs_CXX=yes | 
|  | 16215 | case $host_os in | 
|  | 16216 | aix3*) | 
|  | 16217 | # FIXME: insert proper C++ library support | 
|  | 16218 | ld_shlibs_CXX=no | 
|  | 16219 | ;; | 
|  | 16220 | aix[4-9]*) | 
|  | 16221 | if test "$host_cpu" = ia64; then | 
|  | 16222 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 16223 | # have to do anything special. | 
|  | 16224 | aix_use_runtimelinking=no | 
|  | 16225 | exp_sym_flag='-Bexport' | 
|  | 16226 | no_entry_flag="" | 
|  | 16227 | else | 
|  | 16228 | aix_use_runtimelinking=no | 
|  | 16229 |  | 
|  | 16230 | # Test if we are trying to use run time linking or normal | 
|  | 16231 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 16232 | # need to do runtime linking. | 
|  | 16233 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
|  | 16234 | for ld_flag in $LDFLAGS; do | 
|  | 16235 | case $ld_flag in | 
|  | 16236 | *-brtl*) | 
|  | 16237 | aix_use_runtimelinking=yes | 
|  | 16238 | break | 
|  | 16239 | ;; | 
|  | 16240 | esac | 
|  | 16241 | done | 
|  | 16242 | ;; | 
|  | 16243 | esac | 
|  | 16244 |  | 
|  | 16245 | exp_sym_flag='-bexport' | 
|  | 16246 | no_entry_flag='-bnoentry' | 
|  | 16247 | fi | 
|  | 16248 |  | 
|  | 16249 | # When large executables or shared objects are built, AIX ld can | 
|  | 16250 | # have problems creating the table of contents.  If linking a library | 
|  | 16251 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 16252 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 16253 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 16254 |  | 
|  | 16255 | archive_cmds_CXX='' | 
|  | 16256 | hardcode_direct_CXX=yes | 
|  | 16257 | hardcode_direct_absolute_CXX=yes | 
|  | 16258 | hardcode_libdir_separator_CXX=':' | 
|  | 16259 | link_all_deplibs_CXX=yes | 
|  | 16260 | file_list_spec_CXX='${wl}-f,' | 
|  | 16261 |  | 
|  | 16262 | if test "$GXX" = yes; then | 
|  | 16263 | case $host_os in aix4.[012]|aix4.[012].*) | 
|  | 16264 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 16265 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 16266 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 16267 | if test -f "$collect2name" && | 
|  | 16268 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
|  | 16269 | then | 
|  | 16270 | # We have reworked collect2 | 
|  | 16271 | : | 
|  | 16272 | else | 
|  | 16273 | # We have old collect2 | 
|  | 16274 | hardcode_direct_CXX=unsupported | 
|  | 16275 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 16276 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 16277 | # to unsupported forces relinking | 
|  | 16278 | hardcode_minus_L_CXX=yes | 
|  | 16279 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 16280 | hardcode_libdir_separator_CXX= | 
|  | 16281 | fi | 
|  | 16282 | esac | 
|  | 16283 | shared_flag='-shared' | 
|  | 16284 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16285 | shared_flag="$shared_flag "'${wl}-G' | 
|  | 16286 | fi | 
|  | 16287 | else | 
|  | 16288 | # not using gcc | 
|  | 16289 | if test "$host_cpu" = ia64; then | 
|  | 16290 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 16291 | # chokes on -Wl,-G. The following line is correct: | 
|  | 16292 | shared_flag='-G' | 
|  | 16293 | else | 
|  | 16294 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16295 | shared_flag='${wl}-G' | 
|  | 16296 | else | 
|  | 16297 | shared_flag='${wl}-bM:SRE' | 
|  | 16298 | fi | 
|  | 16299 | fi | 
|  | 16300 | fi | 
|  | 16301 |  | 
|  | 16302 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | 
|  | 16303 | # It seems that -bexpall does not export symbols beginning with | 
|  | 16304 | # underscore (_), so it is better to generate a list of symbols to | 
|  | 16305 | # export. | 
|  | 16306 | always_export_symbols_CXX=yes | 
|  | 16307 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16308 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 16309 | # -berok will link without error, but may produce a broken library. | 
|  | 16310 | allow_undefined_flag_CXX='-berok' | 
|  | 16311 | # Determine the default libpath from the value encoded in an empty | 
|  | 16312 | # executable. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16314 | /* end confdefs.h.  */ | 
|  | 16315 |  | 
|  | 16316 | int | 
|  | 16317 | main () | 
|  | 16318 | { | 
|  | 16319 |  | 
|  | 16320 | ; | 
|  | 16321 | return 0; | 
|  | 16322 | } | 
|  | 16323 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16324 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16325 |  | 
|  | 16326 | lt_aix_libpath_sed=' | 
|  | 16327 | /Import File Strings/,/^$/ { | 
|  | 16328 | /^0/ { | 
|  | 16329 | s/^0  *\(.*\)$/\1/ | 
|  | 16330 | p | 
|  | 16331 | } | 
|  | 16332 | }' | 
|  | 16333 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 16334 | # Check for a 64-bit object if we didn't find anything. | 
|  | 16335 | if test -z "$aix_libpath"; then | 
|  | 16336 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 16337 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16338 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16339 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16340 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16341 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 16342 |  | 
|  | 16343 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 16344 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16345 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16346 | else | 
|  | 16347 | if test "$host_cpu" = ia64; then | 
|  | 16348 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 16349 | allow_undefined_flag_CXX="-z nodefs" | 
|  | 16350 | 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" | 
|  | 16351 | else | 
|  | 16352 | # Determine the default libpath from the value encoded in an | 
|  | 16353 | # empty executable. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16355 | /* end confdefs.h.  */ | 
|  | 16356 |  | 
|  | 16357 | int | 
|  | 16358 | main () | 
|  | 16359 | { | 
|  | 16360 |  | 
|  | 16361 | ; | 
|  | 16362 | return 0; | 
|  | 16363 | } | 
|  | 16364 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16365 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16366 |  | 
|  | 16367 | lt_aix_libpath_sed=' | 
|  | 16368 | /Import File Strings/,/^$/ { | 
|  | 16369 | /^0/ { | 
|  | 16370 | s/^0  *\(.*\)$/\1/ | 
|  | 16371 | p | 
|  | 16372 | } | 
|  | 16373 | }' | 
|  | 16374 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 16375 | # Check for a 64-bit object if we didn't find anything. | 
|  | 16376 | if test -z "$aix_libpath"; then | 
|  | 16377 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 16378 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16379 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16380 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16381 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16382 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 
|  | 16383 |  | 
|  | 16384 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 16385 | # Warning - without using the other run time loading flags, | 
|  | 16386 | # -berok will link without error, but may produce a broken library. | 
|  | 16387 | no_undefined_flag_CXX=' ${wl}-bernotok' | 
|  | 16388 | allow_undefined_flag_CXX=' ${wl}-berok' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16389 | if test "$with_gnu_ld" = yes; then | 
|  | 16390 | # We only use this code for GNU lds that support --whole-archive. | 
|  | 16391 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 16392 | else | 
|  | 16393 | # Exported symbols can be pulled into shared objects from archives | 
|  | 16394 | whole_archive_flag_spec_CXX='$convenience' | 
|  | 16395 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16396 | archive_cmds_need_lc_CXX=yes | 
|  | 16397 | # This is similar to how AIX traditionally builds its shared | 
|  | 16398 | # libraries. | 
|  | 16399 | 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' | 
|  | 16400 | fi | 
|  | 16401 | fi | 
|  | 16402 | ;; | 
|  | 16403 |  | 
|  | 16404 | beos*) | 
|  | 16405 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 16406 | allow_undefined_flag_CXX=unsupported | 
|  | 16407 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 16408 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 16409 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16410 | else | 
|  | 16411 | ld_shlibs_CXX=no | 
|  | 16412 | fi | 
|  | 16413 | ;; | 
|  | 16414 |  | 
|  | 16415 | chorus*) | 
|  | 16416 | case $cc_basename in | 
|  | 16417 | *) | 
|  | 16418 | # FIXME: insert proper C++ library support | 
|  | 16419 | ld_shlibs_CXX=no | 
|  | 16420 | ;; | 
|  | 16421 | esac | 
|  | 16422 | ;; | 
|  | 16423 |  | 
|  | 16424 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 16425 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
|  | 16426 | # as there is no search path for DLLs. | 
|  | 16427 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16428 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16429 | allow_undefined_flag_CXX=unsupported | 
|  | 16430 | always_export_symbols_CXX=no | 
|  | 16431 | enable_shared_with_static_runtimes_CXX=yes | 
|  | 16432 |  | 
|  | 16433 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
|  | 16434 | 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' | 
|  | 16435 | # If the export-symbols file already is a .def file (1st line | 
|  | 16436 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 16437 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 16438 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 16439 | else | 
|  | 16440 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 16441 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 16442 | fi~ | 
|  | 16443 | $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' | 
|  | 16444 | else | 
|  | 16445 | ld_shlibs_CXX=no | 
|  | 16446 | fi | 
|  | 16447 | ;; | 
|  | 16448 | darwin* | rhapsody*) | 
|  | 16449 |  | 
|  | 16450 |  | 
|  | 16451 | archive_cmds_need_lc_CXX=no | 
|  | 16452 | hardcode_direct_CXX=no | 
|  | 16453 | hardcode_automatic_CXX=yes | 
|  | 16454 | hardcode_shlibpath_var_CXX=unsupported | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16455 | if test "$lt_cv_ld_force_load" = "yes"; then | 
|  | 16456 | 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\"`' | 
|  | 16457 | else | 
|  | 16458 | whole_archive_flag_spec_CXX='' | 
|  | 16459 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16460 | link_all_deplibs_CXX=yes | 
|  | 16461 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | 
|  | 16462 | case $cc_basename in | 
|  | 16463 | ifort*) _lt_dar_can_shared=yes ;; | 
|  | 16464 | *) _lt_dar_can_shared=$GCC ;; | 
|  | 16465 | esac | 
|  | 16466 | if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16467 | output_verbose_link_cmd=func_echo_all | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16468 | 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}" | 
|  | 16469 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
|  | 16470 | 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}" | 
|  | 16471 | 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}" | 
|  | 16472 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | 
|  | 16473 | 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}" | 
|  | 16474 | 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}" | 
|  | 16475 | fi | 
|  | 16476 |  | 
|  | 16477 | else | 
|  | 16478 | ld_shlibs_CXX=no | 
|  | 16479 | fi | 
|  | 16480 |  | 
|  | 16481 | ;; | 
|  | 16482 |  | 
|  | 16483 | dgux*) | 
|  | 16484 | case $cc_basename in | 
|  | 16485 | ec++*) | 
|  | 16486 | # FIXME: insert proper C++ library support | 
|  | 16487 | ld_shlibs_CXX=no | 
|  | 16488 | ;; | 
|  | 16489 | ghcx*) | 
|  | 16490 | # Green Hills C++ Compiler | 
|  | 16491 | # FIXME: insert proper C++ library support | 
|  | 16492 | ld_shlibs_CXX=no | 
|  | 16493 | ;; | 
|  | 16494 | *) | 
|  | 16495 | # FIXME: insert proper C++ library support | 
|  | 16496 | ld_shlibs_CXX=no | 
|  | 16497 | ;; | 
|  | 16498 | esac | 
|  | 16499 | ;; | 
|  | 16500 |  | 
|  | 16501 | freebsd[12]*) | 
|  | 16502 | # C++ shared libraries reported to be fairly broken before | 
|  | 16503 | # switch to ELF | 
|  | 16504 | ld_shlibs_CXX=no | 
|  | 16505 | ;; | 
|  | 16506 |  | 
|  | 16507 | freebsd-elf*) | 
|  | 16508 | archive_cmds_need_lc_CXX=no | 
|  | 16509 | ;; | 
|  | 16510 |  | 
|  | 16511 | freebsd* | dragonfly*) | 
|  | 16512 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
|  | 16513 | # conventions | 
|  | 16514 | ld_shlibs_CXX=yes | 
|  | 16515 | ;; | 
|  | 16516 |  | 
|  | 16517 | gnu*) | 
|  | 16518 | ;; | 
|  | 16519 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16520 | haiku*) | 
|  | 16521 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16522 | link_all_deplibs_CXX=yes | 
|  | 16523 | ;; | 
|  | 16524 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16525 | hpux9*) | 
|  | 16526 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 16527 | hardcode_libdir_separator_CXX=: | 
|  | 16528 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 16529 | hardcode_direct_CXX=yes | 
|  | 16530 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 16531 | # but as the default | 
|  | 16532 | # location of the library. | 
|  | 16533 |  | 
|  | 16534 | case $cc_basename in | 
|  | 16535 | CC*) | 
|  | 16536 | # FIXME: insert proper C++ library support | 
|  | 16537 | ld_shlibs_CXX=no | 
|  | 16538 | ;; | 
|  | 16539 | aCC*) | 
|  | 16540 | 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' | 
|  | 16541 | # Commands to make compiler produce verbose output that lists | 
|  | 16542 | # what "hidden" libraries, object files and flags are used when | 
|  | 16543 | # linking a shared library. | 
|  | 16544 | # | 
|  | 16545 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16546 | # explicitly linking system object files so we need to strip them | 
|  | 16547 | # from the output so that they don't get included in the library | 
|  | 16548 | # dependencies. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16549 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16550 | ;; | 
|  | 16551 | *) | 
|  | 16552 | if test "$GXX" = yes; then | 
|  | 16553 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
|  | 16554 | else | 
|  | 16555 | # FIXME: insert proper C++ library support | 
|  | 16556 | ld_shlibs_CXX=no | 
|  | 16557 | fi | 
|  | 16558 | ;; | 
|  | 16559 | esac | 
|  | 16560 | ;; | 
|  | 16561 |  | 
|  | 16562 | hpux10*|hpux11*) | 
|  | 16563 | if test $with_gnu_ld = no; then | 
|  | 16564 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 16565 | hardcode_libdir_separator_CXX=: | 
|  | 16566 |  | 
|  | 16567 | case $host_cpu in | 
|  | 16568 | hppa*64*|ia64*) | 
|  | 16569 | ;; | 
|  | 16570 | *) | 
|  | 16571 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 16572 | ;; | 
|  | 16573 | esac | 
|  | 16574 | fi | 
|  | 16575 | case $host_cpu in | 
|  | 16576 | hppa*64*|ia64*) | 
|  | 16577 | hardcode_direct_CXX=no | 
|  | 16578 | hardcode_shlibpath_var_CXX=no | 
|  | 16579 | ;; | 
|  | 16580 | *) | 
|  | 16581 | hardcode_direct_CXX=yes | 
|  | 16582 | hardcode_direct_absolute_CXX=yes | 
|  | 16583 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 16584 | # but as the default | 
|  | 16585 | # location of the library. | 
|  | 16586 | ;; | 
|  | 16587 | esac | 
|  | 16588 |  | 
|  | 16589 | case $cc_basename in | 
|  | 16590 | CC*) | 
|  | 16591 | # FIXME: insert proper C++ library support | 
|  | 16592 | ld_shlibs_CXX=no | 
|  | 16593 | ;; | 
|  | 16594 | aCC*) | 
|  | 16595 | case $host_cpu in | 
|  | 16596 | hppa*64*) | 
|  | 16597 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16598 | ;; | 
|  | 16599 | ia64*) | 
|  | 16600 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16601 | ;; | 
|  | 16602 | *) | 
|  | 16603 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16604 | ;; | 
|  | 16605 | esac | 
|  | 16606 | # Commands to make compiler produce verbose output that lists | 
|  | 16607 | # what "hidden" libraries, object files and flags are used when | 
|  | 16608 | # linking a shared library. | 
|  | 16609 | # | 
|  | 16610 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16611 | # explicitly linking system object files so we need to strip them | 
|  | 16612 | # from the output so that they don't get included in the library | 
|  | 16613 | # dependencies. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16614 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16615 | ;; | 
|  | 16616 | *) | 
|  | 16617 | if test "$GXX" = yes; then | 
|  | 16618 | if test $with_gnu_ld = no; then | 
|  | 16619 | case $host_cpu in | 
|  | 16620 | hppa*64*) | 
|  | 16621 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16622 | ;; | 
|  | 16623 | ia64*) | 
|  | 16624 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16625 | ;; | 
|  | 16626 | *) | 
|  | 16627 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16628 | ;; | 
|  | 16629 | esac | 
|  | 16630 | fi | 
|  | 16631 | else | 
|  | 16632 | # FIXME: insert proper C++ library support | 
|  | 16633 | ld_shlibs_CXX=no | 
|  | 16634 | fi | 
|  | 16635 | ;; | 
|  | 16636 | esac | 
|  | 16637 | ;; | 
|  | 16638 |  | 
|  | 16639 | interix[3-9]*) | 
|  | 16640 | hardcode_direct_CXX=no | 
|  | 16641 | hardcode_shlibpath_var_CXX=no | 
|  | 16642 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 16643 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 16644 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
|  | 16645 | # Instead, shared libraries are loaded at an image base (0x10000000 by | 
|  | 16646 | # default) and relocated if they conflict, which is a slow very memory | 
|  | 16647 | # consuming and fragmenting process.  To avoid this, we pick a random, | 
|  | 16648 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
|  | 16649 | # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
|  | 16650 | 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' | 
|  | 16651 | 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' | 
|  | 16652 | ;; | 
|  | 16653 | irix5* | irix6*) | 
|  | 16654 | case $cc_basename in | 
|  | 16655 | CC*) | 
|  | 16656 | # SGI C++ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16657 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16658 |  | 
|  | 16659 | # Archives containing C++ object files must be created using | 
|  | 16660 | # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
|  | 16661 | # necessary to make sure instantiated templates are included | 
|  | 16662 | # in the archive. | 
|  | 16663 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
|  | 16664 | ;; | 
|  | 16665 | *) | 
|  | 16666 | if test "$GXX" = yes; then | 
|  | 16667 | if test "$with_gnu_ld" = no; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16668 | archive_cmds_CXX='$CC -shared -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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16669 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16670 | archive_cmds_CXX='$CC -shared -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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16671 | fi | 
|  | 16672 | fi | 
|  | 16673 | link_all_deplibs_CXX=yes | 
|  | 16674 | ;; | 
|  | 16675 | esac | 
|  | 16676 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16677 | hardcode_libdir_separator_CXX=: | 
|  | 16678 | inherit_rpath_CXX=yes | 
|  | 16679 | ;; | 
|  | 16680 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16681 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16682 | case $cc_basename in | 
|  | 16683 | KCC*) | 
|  | 16684 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 16685 |  | 
|  | 16686 | # KCC will only create a shared library if the output file | 
|  | 16687 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 16688 | # to its proper name (with version) after linking. | 
|  | 16689 | 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' | 
|  | 16690 | 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' | 
|  | 16691 | # Commands to make compiler produce verbose output that lists | 
|  | 16692 | # what "hidden" libraries, object files and flags are used when | 
|  | 16693 | # linking a shared library. | 
|  | 16694 | # | 
|  | 16695 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16696 | # explicitly linking system object files so we need to strip them | 
|  | 16697 | # from the output so that they don't get included in the library | 
|  | 16698 | # dependencies. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16699 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16700 |  | 
|  | 16701 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 16702 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 16703 |  | 
|  | 16704 | # Archives containing C++ object files must be created using | 
|  | 16705 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 16706 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 16707 | ;; | 
|  | 16708 | icpc* | ecpc* ) | 
|  | 16709 | # Intel C++ | 
|  | 16710 | with_gnu_ld=yes | 
|  | 16711 | # version 8.0 and above of icpc choke on multiply defined symbols | 
|  | 16712 | # if we add $predep_objects and $postdep_objects, however 7.1 and | 
|  | 16713 | # earlier do not add the objects themselves. | 
|  | 16714 | case `$CC -V 2>&1` in | 
|  | 16715 | *"Version 7."*) | 
|  | 16716 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16717 | 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' | 
|  | 16718 | ;; | 
|  | 16719 | *)  # Version 8.0 or newer | 
|  | 16720 | tmp_idyn= | 
|  | 16721 | case $host_cpu in | 
|  | 16722 | ia64*) tmp_idyn=' -i_dynamic';; | 
|  | 16723 | esac | 
|  | 16724 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16725 | 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' | 
|  | 16726 | ;; | 
|  | 16727 | esac | 
|  | 16728 | archive_cmds_need_lc_CXX=no | 
|  | 16729 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 16730 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 16731 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 16732 | ;; | 
|  | 16733 | pgCC* | pgcpp*) | 
|  | 16734 | # Portland Group C++ compiler | 
|  | 16735 | case `$CC -V` in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16736 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16737 | prelink_cmds_CXX='tpldir=Template.dir~ | 
|  | 16738 | rm -rf $tpldir~ | 
|  | 16739 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16740 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16741 | old_archive_cmds_CXX='tpldir=Template.dir~ | 
|  | 16742 | rm -rf $tpldir~ | 
|  | 16743 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16744 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16745 | $RANLIB $oldlib' | 
|  | 16746 | archive_cmds_CXX='tpldir=Template.dir~ | 
|  | 16747 | rm -rf $tpldir~ | 
|  | 16748 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16749 | $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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16750 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | 
|  | 16751 | rm -rf $tpldir~ | 
|  | 16752 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16753 | $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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16754 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16755 | *) # Version 6 and above use weak symbols | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16756 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
|  | 16757 | 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' | 
|  | 16758 | ;; | 
|  | 16759 | esac | 
|  | 16760 |  | 
|  | 16761 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
|  | 16762 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16763 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16764 | ;; | 
|  | 16765 | cxx*) | 
|  | 16766 | # Compaq C++ | 
|  | 16767 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16768 | 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' | 
|  | 16769 |  | 
|  | 16770 | runpath_var=LD_RUN_PATH | 
|  | 16771 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 16772 | hardcode_libdir_separator_CXX=: | 
|  | 16773 |  | 
|  | 16774 | # Commands to make compiler produce verbose output that lists | 
|  | 16775 | # what "hidden" libraries, object files and flags are used when | 
|  | 16776 | # linking a shared library. | 
|  | 16777 | # | 
|  | 16778 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16779 | # explicitly linking system object files so we need to strip them | 
|  | 16780 | # from the output so that they don't get included in the library | 
|  | 16781 | # dependencies. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16782 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16783 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16784 | xl* | mpixl* | bgxl*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16785 | # IBM XL 8.0 on PPC, with GNU ld | 
|  | 16786 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16787 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 16788 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16789 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 16790 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 16791 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 16792 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
|  | 16793 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 16794 | fi | 
|  | 16795 | ;; | 
|  | 16796 | *) | 
|  | 16797 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 16798 | *Sun\ C*) | 
|  | 16799 | # Sun C++ 5.9 | 
|  | 16800 | no_undefined_flag_CXX=' -zdefs' | 
|  | 16801 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16802 | 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' | 
|  | 16803 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16804 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16805 | compiler_needs_object_CXX=yes | 
|  | 16806 |  | 
|  | 16807 | # Not sure whether something based on | 
|  | 16808 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 
|  | 16809 | # would be better. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16810 | output_verbose_link_cmd='func_echo_all' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16811 |  | 
|  | 16812 | # Archives containing C++ object files must be created using | 
|  | 16813 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 16814 | # necessary to make sure instantiated templates are included | 
|  | 16815 | # in the archive. | 
|  | 16816 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 16817 | ;; | 
|  | 16818 | esac | 
|  | 16819 | ;; | 
|  | 16820 | esac | 
|  | 16821 | ;; | 
|  | 16822 |  | 
|  | 16823 | lynxos*) | 
|  | 16824 | # FIXME: insert proper C++ library support | 
|  | 16825 | ld_shlibs_CXX=no | 
|  | 16826 | ;; | 
|  | 16827 |  | 
|  | 16828 | m88k*) | 
|  | 16829 | # FIXME: insert proper C++ library support | 
|  | 16830 | ld_shlibs_CXX=no | 
|  | 16831 | ;; | 
|  | 16832 |  | 
|  | 16833 | mvs*) | 
|  | 16834 | case $cc_basename in | 
|  | 16835 | cxx*) | 
|  | 16836 | # FIXME: insert proper C++ library support | 
|  | 16837 | ld_shlibs_CXX=no | 
|  | 16838 | ;; | 
|  | 16839 | *) | 
|  | 16840 | # FIXME: insert proper C++ library support | 
|  | 16841 | ld_shlibs_CXX=no | 
|  | 16842 | ;; | 
|  | 16843 | esac | 
|  | 16844 | ;; | 
|  | 16845 |  | 
|  | 16846 | netbsd*) | 
|  | 16847 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 16848 | archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
|  | 16849 | wlarc= | 
|  | 16850 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 16851 | hardcode_direct_CXX=yes | 
|  | 16852 | hardcode_shlibpath_var_CXX=no | 
|  | 16853 | fi | 
|  | 16854 | # Workaround some broken pre-1.5 toolchains | 
|  | 16855 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
|  | 16856 | ;; | 
|  | 16857 |  | 
|  | 16858 | *nto* | *qnx*) | 
|  | 16859 | ld_shlibs_CXX=yes | 
|  | 16860 | ;; | 
|  | 16861 |  | 
|  | 16862 | openbsd2*) | 
|  | 16863 | # C++ shared libraries are fairly broken | 
|  | 16864 | ld_shlibs_CXX=no | 
|  | 16865 | ;; | 
|  | 16866 |  | 
|  | 16867 | openbsd*) | 
|  | 16868 | if test -f /usr/libexec/ld.so; then | 
|  | 16869 | hardcode_direct_CXX=yes | 
|  | 16870 | hardcode_shlibpath_var_CXX=no | 
|  | 16871 | hardcode_direct_absolute_CXX=yes | 
|  | 16872 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 16873 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 16874 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 16875 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
|  | 16876 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 16877 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 16878 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16879 | output_verbose_link_cmd=func_echo_all | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16880 | else | 
|  | 16881 | ld_shlibs_CXX=no | 
|  | 16882 | fi | 
|  | 16883 | ;; | 
|  | 16884 |  | 
|  | 16885 | osf3* | osf4* | osf5*) | 
|  | 16886 | case $cc_basename in | 
|  | 16887 | KCC*) | 
|  | 16888 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 16889 |  | 
|  | 16890 | # KCC will only create a shared library if the output file | 
|  | 16891 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 16892 | # to its proper name (with version) after linking. | 
|  | 16893 | 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' | 
|  | 16894 |  | 
|  | 16895 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 16896 | hardcode_libdir_separator_CXX=: | 
|  | 16897 |  | 
|  | 16898 | # Archives containing C++ object files must be created using | 
|  | 16899 | # the KAI C++ compiler. | 
|  | 16900 | case $host in | 
|  | 16901 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | 
|  | 16902 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | 
|  | 16903 | esac | 
|  | 16904 | ;; | 
|  | 16905 | RCC*) | 
|  | 16906 | # Rational C++ 2.4.1 | 
|  | 16907 | # FIXME: insert proper C++ library support | 
|  | 16908 | ld_shlibs_CXX=no | 
|  | 16909 | ;; | 
|  | 16910 | cxx*) | 
|  | 16911 | case $host in | 
|  | 16912 | osf3*) | 
|  | 16913 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16914 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16915 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16916 | ;; | 
|  | 16917 | *) | 
|  | 16918 | allow_undefined_flag_CXX=' -expect_unresolved \*' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16919 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16920 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
|  | 16921 | echo "-hidden">> $lib.exp~ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16922 | $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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16923 | $RM $lib.exp' | 
|  | 16924 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 16925 | ;; | 
|  | 16926 | esac | 
|  | 16927 |  | 
|  | 16928 | hardcode_libdir_separator_CXX=: | 
|  | 16929 |  | 
|  | 16930 | # Commands to make compiler produce verbose output that lists | 
|  | 16931 | # what "hidden" libraries, object files and flags are used when | 
|  | 16932 | # linking a shared library. | 
|  | 16933 | # | 
|  | 16934 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 16935 | # explicitly linking system object files so we need to strip them | 
|  | 16936 | # from the output so that they don't get included in the library | 
|  | 16937 | # dependencies. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16938 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16939 | ;; | 
|  | 16940 | *) | 
|  | 16941 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 16942 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 16943 | case $host in | 
|  | 16944 | osf3*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16945 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16946 | ;; | 
|  | 16947 | *) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16948 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16949 | ;; | 
|  | 16950 | esac | 
|  | 16951 |  | 
|  | 16952 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16953 | hardcode_libdir_separator_CXX=: | 
|  | 16954 |  | 
|  | 16955 | # Commands to make compiler produce verbose output that lists | 
|  | 16956 | # what "hidden" libraries, object files and flags are used when | 
|  | 16957 | # linking a shared library. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16958 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16959 |  | 
|  | 16960 | else | 
|  | 16961 | # FIXME: insert proper C++ library support | 
|  | 16962 | ld_shlibs_CXX=no | 
|  | 16963 | fi | 
|  | 16964 | ;; | 
|  | 16965 | esac | 
|  | 16966 | ;; | 
|  | 16967 |  | 
|  | 16968 | psos*) | 
|  | 16969 | # FIXME: insert proper C++ library support | 
|  | 16970 | ld_shlibs_CXX=no | 
|  | 16971 | ;; | 
|  | 16972 |  | 
|  | 16973 | sunos4*) | 
|  | 16974 | case $cc_basename in | 
|  | 16975 | CC*) | 
|  | 16976 | # Sun C++ 4.x | 
|  | 16977 | # FIXME: insert proper C++ library support | 
|  | 16978 | ld_shlibs_CXX=no | 
|  | 16979 | ;; | 
|  | 16980 | lcc*) | 
|  | 16981 | # Lucid | 
|  | 16982 | # FIXME: insert proper C++ library support | 
|  | 16983 | ld_shlibs_CXX=no | 
|  | 16984 | ;; | 
|  | 16985 | *) | 
|  | 16986 | # FIXME: insert proper C++ library support | 
|  | 16987 | ld_shlibs_CXX=no | 
|  | 16988 | ;; | 
|  | 16989 | esac | 
|  | 16990 | ;; | 
|  | 16991 |  | 
|  | 16992 | solaris*) | 
|  | 16993 | case $cc_basename in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 16994 | CC* | sunCC*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16995 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 16996 | archive_cmds_need_lc_CXX=yes | 
|  | 16997 | no_undefined_flag_CXX=' -zdefs' | 
|  | 16998 | archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 16999 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 17000 | $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' | 
|  | 17001 |  | 
|  | 17002 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 17003 | hardcode_shlibpath_var_CXX=no | 
|  | 17004 | case $host_os in | 
|  | 17005 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 17006 | *) | 
|  | 17007 | # The compiler driver will combine and reorder linker options, | 
|  | 17008 | # but understands `-z linker_flag'. | 
|  | 17009 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 17010 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | 
|  | 17011 | ;; | 
|  | 17012 | esac | 
|  | 17013 | link_all_deplibs_CXX=yes | 
|  | 17014 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17015 | output_verbose_link_cmd='func_echo_all' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17016 |  | 
|  | 17017 | # Archives containing C++ object files must be created using | 
|  | 17018 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 17019 | # necessary to make sure instantiated templates are included | 
|  | 17020 | # in the archive. | 
|  | 17021 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 17022 | ;; | 
|  | 17023 | gcx*) | 
|  | 17024 | # Green Hills C++ Compiler | 
|  | 17025 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 17026 |  | 
|  | 17027 | # The C++ compiler must be used to create the archive. | 
|  | 17028 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
|  | 17029 | ;; | 
|  | 17030 | *) | 
|  | 17031 | # GNU C++ compiler with Solaris linker | 
|  | 17032 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 17033 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
|  | 17034 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 
|  | 17035 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 17036 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 17037 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
|  | 17038 |  | 
|  | 17039 | # Commands to make compiler produce verbose output that lists | 
|  | 17040 | # what "hidden" libraries, object files and flags are used when | 
|  | 17041 | # linking a shared library. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17042 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17043 | else | 
|  | 17044 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
|  | 17045 | # platform. | 
|  | 17046 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 17047 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 17048 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
|  | 17049 |  | 
|  | 17050 | # Commands to make compiler produce verbose output that lists | 
|  | 17051 | # what "hidden" libraries, object files and flags are used when | 
|  | 17052 | # linking a shared library. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17053 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17054 | fi | 
|  | 17055 |  | 
|  | 17056 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
|  | 17057 | case $host_os in | 
|  | 17058 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 17059 | *) | 
|  | 17060 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 17061 | ;; | 
|  | 17062 | esac | 
|  | 17063 | fi | 
|  | 17064 | ;; | 
|  | 17065 | esac | 
|  | 17066 | ;; | 
|  | 17067 |  | 
|  | 17068 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
|  | 17069 | no_undefined_flag_CXX='${wl}-z,text' | 
|  | 17070 | archive_cmds_need_lc_CXX=no | 
|  | 17071 | hardcode_shlibpath_var_CXX=no | 
|  | 17072 | runpath_var='LD_RUN_PATH' | 
|  | 17073 |  | 
|  | 17074 | case $cc_basename in | 
|  | 17075 | CC*) | 
|  | 17076 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17077 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17078 | ;; | 
|  | 17079 | *) | 
|  | 17080 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17081 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17082 | ;; | 
|  | 17083 | esac | 
|  | 17084 | ;; | 
|  | 17085 |  | 
|  | 17086 | sysv5* | sco3.2v5* | sco5v6*) | 
|  | 17087 | # Note: We can NOT use -z defs as we might desire, because we do not | 
|  | 17088 | # link with -lc, and that would cause any symbols used from libc to | 
|  | 17089 | # always be unresolved, which means just about no library would | 
|  | 17090 | # ever link correctly.  If we're not using GNU ld we use -z text | 
|  | 17091 | # though, which does catch some bad symbols but isn't as heavy-handed | 
|  | 17092 | # as -z defs. | 
|  | 17093 | no_undefined_flag_CXX='${wl}-z,text' | 
|  | 17094 | allow_undefined_flag_CXX='${wl}-z,nodefs' | 
|  | 17095 | archive_cmds_need_lc_CXX=no | 
|  | 17096 | hardcode_shlibpath_var_CXX=no | 
|  | 17097 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | 
|  | 17098 | hardcode_libdir_separator_CXX=':' | 
|  | 17099 | link_all_deplibs_CXX=yes | 
|  | 17100 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | 
|  | 17101 | runpath_var='LD_RUN_PATH' | 
|  | 17102 |  | 
|  | 17103 | case $cc_basename in | 
|  | 17104 | CC*) | 
|  | 17105 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17106 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17107 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | 
|  | 17108 | '"$old_archive_cmds_CXX" | 
|  | 17109 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | 
|  | 17110 | '"$reload_cmds_CXX" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17111 | ;; | 
|  | 17112 | *) | 
|  | 17113 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17114 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17115 | ;; | 
|  | 17116 | esac | 
|  | 17117 | ;; | 
|  | 17118 |  | 
|  | 17119 | tandem*) | 
|  | 17120 | case $cc_basename in | 
|  | 17121 | NCC*) | 
|  | 17122 | # NonStop-UX NCC 3.20 | 
|  | 17123 | # FIXME: insert proper C++ library support | 
|  | 17124 | ld_shlibs_CXX=no | 
|  | 17125 | ;; | 
|  | 17126 | *) | 
|  | 17127 | # FIXME: insert proper C++ library support | 
|  | 17128 | ld_shlibs_CXX=no | 
|  | 17129 | ;; | 
|  | 17130 | esac | 
|  | 17131 | ;; | 
|  | 17132 |  | 
|  | 17133 | vxworks*) | 
|  | 17134 | # FIXME: insert proper C++ library support | 
|  | 17135 | ld_shlibs_CXX=no | 
|  | 17136 | ;; | 
|  | 17137 |  | 
|  | 17138 | *) | 
|  | 17139 | # FIXME: insert proper C++ library support | 
|  | 17140 | ld_shlibs_CXX=no | 
|  | 17141 | ;; | 
|  | 17142 | esac | 
|  | 17143 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17145 | $as_echo "$ld_shlibs_CXX" >&6; } | 
|  | 17146 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 17147 |  | 
|  | 17148 | GCC_CXX="$GXX" | 
|  | 17149 | LD_CXX="$LD" | 
|  | 17150 |  | 
|  | 17151 | ## CAVEAT EMPTOR: | 
|  | 17152 | ## There is no encapsulation within the following macros, do not change | 
|  | 17153 | ## the running order or otherwise move them around unless you know exactly | 
|  | 17154 | ## what you are doing... | 
|  | 17155 | # Dependencies to place before and after the object being linked: | 
|  | 17156 | predep_objects_CXX= | 
|  | 17157 | postdep_objects_CXX= | 
|  | 17158 | predeps_CXX= | 
|  | 17159 | postdeps_CXX= | 
|  | 17160 | compiler_lib_search_path_CXX= | 
|  | 17161 |  | 
|  | 17162 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 17163 | class Foo | 
|  | 17164 | { | 
|  | 17165 | public: | 
|  | 17166 | Foo (void) { a = 0; } | 
|  | 17167 | private: | 
|  | 17168 | int a; | 
|  | 17169 | }; | 
|  | 17170 | _LT_EOF | 
|  | 17171 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17172 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17173 | (eval $ac_compile) 2>&5 | 
|  | 17174 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 17176 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17177 | # Parse the compiler output and extract the necessary | 
|  | 17178 | # objects, libraries and library flags. | 
|  | 17179 |  | 
|  | 17180 | # Sentinel used to keep track of whether or not we are before | 
|  | 17181 | # the conftest object file. | 
|  | 17182 | pre_test_object_deps_done=no | 
|  | 17183 |  | 
|  | 17184 | for p in `eval "$output_verbose_link_cmd"`; do | 
|  | 17185 | case $p in | 
|  | 17186 |  | 
|  | 17187 | -L* | -R* | -l*) | 
|  | 17188 | # Some compilers place space between "-{L,R}" and the path. | 
|  | 17189 | # Remove the space. | 
|  | 17190 | if test $p = "-L" || | 
|  | 17191 | test $p = "-R"; then | 
|  | 17192 | prev=$p | 
|  | 17193 | continue | 
|  | 17194 | else | 
|  | 17195 | prev= | 
|  | 17196 | fi | 
|  | 17197 |  | 
|  | 17198 | if test "$pre_test_object_deps_done" = no; then | 
|  | 17199 | case $p in | 
|  | 17200 | -L* | -R*) | 
|  | 17201 | # Internal compiler library paths should come after those | 
|  | 17202 | # provided the user.  The postdeps already come after the | 
|  | 17203 | # user supplied libs so there is no need to process them. | 
|  | 17204 | if test -z "$compiler_lib_search_path_CXX"; then | 
|  | 17205 | compiler_lib_search_path_CXX="${prev}${p}" | 
|  | 17206 | else | 
|  | 17207 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
|  | 17208 | fi | 
|  | 17209 | ;; | 
|  | 17210 | # The "-l" case would never come before the object being | 
|  | 17211 | # linked, so don't bother handling this case. | 
|  | 17212 | esac | 
|  | 17213 | else | 
|  | 17214 | if test -z "$postdeps_CXX"; then | 
|  | 17215 | postdeps_CXX="${prev}${p}" | 
|  | 17216 | else | 
|  | 17217 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
|  | 17218 | fi | 
|  | 17219 | fi | 
|  | 17220 | ;; | 
|  | 17221 |  | 
|  | 17222 | *.$objext) | 
|  | 17223 | # This assumes that the test object file only shows up | 
|  | 17224 | # once in the compiler output. | 
|  | 17225 | if test "$p" = "conftest.$objext"; then | 
|  | 17226 | pre_test_object_deps_done=yes | 
|  | 17227 | continue | 
|  | 17228 | fi | 
|  | 17229 |  | 
|  | 17230 | if test "$pre_test_object_deps_done" = no; then | 
|  | 17231 | if test -z "$predep_objects_CXX"; then | 
|  | 17232 | predep_objects_CXX="$p" | 
|  | 17233 | else | 
|  | 17234 | predep_objects_CXX="$predep_objects_CXX $p" | 
|  | 17235 | fi | 
|  | 17236 | else | 
|  | 17237 | if test -z "$postdep_objects_CXX"; then | 
|  | 17238 | postdep_objects_CXX="$p" | 
|  | 17239 | else | 
|  | 17240 | postdep_objects_CXX="$postdep_objects_CXX $p" | 
|  | 17241 | fi | 
|  | 17242 | fi | 
|  | 17243 | ;; | 
|  | 17244 |  | 
|  | 17245 | *) ;; # Ignore the rest. | 
|  | 17246 |  | 
|  | 17247 | esac | 
|  | 17248 | done | 
|  | 17249 |  | 
|  | 17250 | # Clean up. | 
|  | 17251 | rm -f a.out a.exe | 
|  | 17252 | else | 
|  | 17253 | echo "libtool.m4: error: problem compiling CXX test program" | 
|  | 17254 | fi | 
|  | 17255 |  | 
|  | 17256 | $RM -f confest.$objext | 
|  | 17257 |  | 
|  | 17258 | # PORTME: override above test on systems where it is broken | 
|  | 17259 | case $host_os in | 
|  | 17260 | interix[3-9]*) | 
|  | 17261 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | 
|  | 17262 | # hack all around it, let's just trust "g++" to DTRT. | 
|  | 17263 | predep_objects_CXX= | 
|  | 17264 | postdep_objects_CXX= | 
|  | 17265 | postdeps_CXX= | 
|  | 17266 | ;; | 
|  | 17267 |  | 
|  | 17268 | linux*) | 
|  | 17269 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 17270 | *Sun\ C*) | 
|  | 17271 | # Sun C++ 5.9 | 
|  | 17272 |  | 
|  | 17273 | # The more standards-conforming stlport4 library is | 
|  | 17274 | # incompatible with the Cstd library. Avoid specifying | 
|  | 17275 | # it if it's in CXXFLAGS. Ignore libCrun as | 
|  | 17276 | # -library=stlport4 depends on it. | 
|  | 17277 | case " $CXX $CXXFLAGS " in | 
|  | 17278 | *" -library=stlport4 "*) | 
|  | 17279 | solaris_use_stlport4=yes | 
|  | 17280 | ;; | 
|  | 17281 | esac | 
|  | 17282 |  | 
|  | 17283 | if test "$solaris_use_stlport4" != yes; then | 
|  | 17284 | postdeps_CXX='-library=Cstd -library=Crun' | 
|  | 17285 | fi | 
|  | 17286 | ;; | 
|  | 17287 | esac | 
|  | 17288 | ;; | 
|  | 17289 |  | 
|  | 17290 | solaris*) | 
|  | 17291 | case $cc_basename in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17292 | CC* | sunCC*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17293 | # The more standards-conforming stlport4 library is | 
|  | 17294 | # incompatible with the Cstd library. Avoid specifying | 
|  | 17295 | # it if it's in CXXFLAGS. Ignore libCrun as | 
|  | 17296 | # -library=stlport4 depends on it. | 
|  | 17297 | case " $CXX $CXXFLAGS " in | 
|  | 17298 | *" -library=stlport4 "*) | 
|  | 17299 | solaris_use_stlport4=yes | 
|  | 17300 | ;; | 
|  | 17301 | esac | 
|  | 17302 |  | 
|  | 17303 | # Adding this requires a known-good setup of shared libraries for | 
|  | 17304 | # Sun compiler versions before 5.6, else PIC objects from an old | 
|  | 17305 | # archive will be linked into the output, leading to subtle bugs. | 
|  | 17306 | if test "$solaris_use_stlport4" != yes; then | 
|  | 17307 | postdeps_CXX='-library=Cstd -library=Crun' | 
|  | 17308 | fi | 
|  | 17309 | ;; | 
|  | 17310 | esac | 
|  | 17311 | ;; | 
|  | 17312 | esac | 
|  | 17313 |  | 
|  | 17314 |  | 
|  | 17315 | case " $postdeps_CXX " in | 
|  | 17316 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
|  | 17317 | esac | 
|  | 17318 | compiler_lib_search_dirs_CXX= | 
|  | 17319 | if test -n "${compiler_lib_search_path_CXX}"; then | 
|  | 17320 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 
|  | 17321 | fi | 
|  | 17322 |  | 
|  | 17323 |  | 
|  | 17324 |  | 
|  | 17325 |  | 
|  | 17326 |  | 
|  | 17327 |  | 
|  | 17328 |  | 
|  | 17329 |  | 
|  | 17330 |  | 
|  | 17331 |  | 
|  | 17332 |  | 
|  | 17333 |  | 
|  | 17334 |  | 
|  | 17335 |  | 
|  | 17336 |  | 
|  | 17337 |  | 
|  | 17338 |  | 
|  | 17339 |  | 
|  | 17340 |  | 
|  | 17341 |  | 
|  | 17342 |  | 
|  | 17343 |  | 
|  | 17344 |  | 
|  | 17345 |  | 
|  | 17346 |  | 
|  | 17347 |  | 
|  | 17348 |  | 
|  | 17349 |  | 
|  | 17350 |  | 
|  | 17351 |  | 
|  | 17352 |  | 
|  | 17353 | lt_prog_compiler_wl_CXX= | 
|  | 17354 | lt_prog_compiler_pic_CXX= | 
|  | 17355 | lt_prog_compiler_static_CXX= | 
|  | 17356 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17358 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
|  | 17359 |  | 
|  | 17360 | # C++ specific cases for pic, static, wl, etc. | 
|  | 17361 | if test "$GXX" = yes; then | 
|  | 17362 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17363 | lt_prog_compiler_static_CXX='-static' | 
|  | 17364 |  | 
|  | 17365 | case $host_os in | 
|  | 17366 | aix*) | 
|  | 17367 | # All AIX code is PIC. | 
|  | 17368 | if test "$host_cpu" = ia64; then | 
|  | 17369 | # AIX 5 now supports IA64 processor | 
|  | 17370 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17371 | fi | 
|  | 17372 | ;; | 
|  | 17373 |  | 
|  | 17374 | amigaos*) | 
|  | 17375 | case $host_cpu in | 
|  | 17376 | powerpc) | 
|  | 17377 | # see comment about AmigaOS4 .so support | 
|  | 17378 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 17379 | ;; | 
|  | 17380 | m68k) | 
|  | 17381 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 17382 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 17383 | # like `-m68040'. | 
|  | 17384 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
|  | 17385 | ;; | 
|  | 17386 | esac | 
|  | 17387 | ;; | 
|  | 17388 |  | 
|  | 17389 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 17390 | # PIC is the default for these OSes. | 
|  | 17391 | ;; | 
|  | 17392 | mingw* | cygwin* | os2* | pw32* | cegcc*) | 
|  | 17393 | # This hack is so that the source file can tell whether it is being | 
|  | 17394 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 17395 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
|  | 17396 | # (--disable-auto-import) libraries | 
|  | 17397 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 17398 | ;; | 
|  | 17399 | darwin* | rhapsody*) | 
|  | 17400 | # PIC is the default on this platform | 
|  | 17401 | # Common symbols not allowed in MH_DYLIB files | 
|  | 17402 | lt_prog_compiler_pic_CXX='-fno-common' | 
|  | 17403 | ;; | 
|  | 17404 | *djgpp*) | 
|  | 17405 | # DJGPP does not support shared libraries at all | 
|  | 17406 | lt_prog_compiler_pic_CXX= | 
|  | 17407 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17408 | haiku*) | 
|  | 17409 | # PIC is the default for Haiku. | 
|  | 17410 | # The "-static" flag exists, but is broken. | 
|  | 17411 | lt_prog_compiler_static_CXX= | 
|  | 17412 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17413 | interix[3-9]*) | 
|  | 17414 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
|  | 17415 | # Instead, we relocate shared libraries at runtime. | 
|  | 17416 | ;; | 
|  | 17417 | sysv4*MP*) | 
|  | 17418 | if test -d /usr/nec; then | 
|  | 17419 | lt_prog_compiler_pic_CXX=-Kconform_pic | 
|  | 17420 | fi | 
|  | 17421 | ;; | 
|  | 17422 | hpux*) | 
|  | 17423 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
|  | 17424 | # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
|  | 17425 | # sets the default TLS model and affects inlining. | 
|  | 17426 | case $host_cpu in | 
|  | 17427 | hppa*64*) | 
|  | 17428 | ;; | 
|  | 17429 | *) | 
|  | 17430 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 17431 | ;; | 
|  | 17432 | esac | 
|  | 17433 | ;; | 
|  | 17434 | *qnx* | *nto*) | 
|  | 17435 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 17436 | # it will coredump. | 
|  | 17437 | lt_prog_compiler_pic_CXX='-fPIC -shared' | 
|  | 17438 | ;; | 
|  | 17439 | *) | 
|  | 17440 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 17441 | ;; | 
|  | 17442 | esac | 
|  | 17443 | else | 
|  | 17444 | case $host_os in | 
|  | 17445 | aix[4-9]*) | 
|  | 17446 | # All AIX code is PIC. | 
|  | 17447 | if test "$host_cpu" = ia64; then | 
|  | 17448 | # AIX 5 now supports IA64 processor | 
|  | 17449 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17450 | else | 
|  | 17451 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
|  | 17452 | fi | 
|  | 17453 | ;; | 
|  | 17454 | chorus*) | 
|  | 17455 | case $cc_basename in | 
|  | 17456 | cxch68*) | 
|  | 17457 | # Green Hills C++ Compiler | 
|  | 17458 | # _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" | 
|  | 17459 | ;; | 
|  | 17460 | esac | 
|  | 17461 | ;; | 
|  | 17462 | dgux*) | 
|  | 17463 | case $cc_basename in | 
|  | 17464 | ec++*) | 
|  | 17465 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17466 | ;; | 
|  | 17467 | ghcx*) | 
|  | 17468 | # Green Hills C++ Compiler | 
|  | 17469 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 17470 | ;; | 
|  | 17471 | *) | 
|  | 17472 | ;; | 
|  | 17473 | esac | 
|  | 17474 | ;; | 
|  | 17475 | freebsd* | dragonfly*) | 
|  | 17476 | # FreeBSD uses GNU C++ | 
|  | 17477 | ;; | 
|  | 17478 | hpux9* | hpux10* | hpux11*) | 
|  | 17479 | case $cc_basename in | 
|  | 17480 | CC*) | 
|  | 17481 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17482 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
|  | 17483 | if test "$host_cpu" != ia64; then | 
|  | 17484 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 17485 | fi | 
|  | 17486 | ;; | 
|  | 17487 | aCC*) | 
|  | 17488 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17489 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
|  | 17490 | case $host_cpu in | 
|  | 17491 | hppa*64*|ia64*) | 
|  | 17492 | # +Z the default | 
|  | 17493 | ;; | 
|  | 17494 | *) | 
|  | 17495 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 17496 | ;; | 
|  | 17497 | esac | 
|  | 17498 | ;; | 
|  | 17499 | *) | 
|  | 17500 | ;; | 
|  | 17501 | esac | 
|  | 17502 | ;; | 
|  | 17503 | interix*) | 
|  | 17504 | # This is c89, which is MS Visual C++ (no shared libs) | 
|  | 17505 | # Anyone wants to do a port? | 
|  | 17506 | ;; | 
|  | 17507 | irix5* | irix6* | nonstopux*) | 
|  | 17508 | case $cc_basename in | 
|  | 17509 | CC*) | 
|  | 17510 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17511 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 17512 | # CC pic flag -KPIC is the default. | 
|  | 17513 | ;; | 
|  | 17514 | *) | 
|  | 17515 | ;; | 
|  | 17516 | esac | 
|  | 17517 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17518 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17519 | case $cc_basename in | 
|  | 17520 | KCC*) | 
|  | 17521 | # KAI C++ Compiler | 
|  | 17522 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 17523 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 17524 | ;; | 
|  | 17525 | ecpc* ) | 
|  | 17526 | # old Intel C++ for x86_64 which still supported -KPIC. | 
|  | 17527 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17528 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17529 | lt_prog_compiler_static_CXX='-static' | 
|  | 17530 | ;; | 
|  | 17531 | icpc* ) | 
|  | 17532 | # Intel C++, used to be incompatible with GCC. | 
|  | 17533 | # ICC 10 doesn't accept -KPIC any more. | 
|  | 17534 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17535 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 17536 | lt_prog_compiler_static_CXX='-static' | 
|  | 17537 | ;; | 
|  | 17538 | pgCC* | pgcpp*) | 
|  | 17539 | # Portland Group C++ compiler | 
|  | 17540 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17541 | lt_prog_compiler_pic_CXX='-fpic' | 
|  | 17542 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17543 | ;; | 
|  | 17544 | cxx*) | 
|  | 17545 | # Compaq C++ | 
|  | 17546 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 17547 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 17548 | lt_prog_compiler_pic_CXX= | 
|  | 17549 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 17550 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17551 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | 
|  | 17552 | # IBM XL 8.0, 9.0 on PPC and BlueGene | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17553 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17554 | lt_prog_compiler_pic_CXX='-qpic' | 
|  | 17555 | lt_prog_compiler_static_CXX='-qstaticlink' | 
|  | 17556 | ;; | 
|  | 17557 | *) | 
|  | 17558 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 17559 | *Sun\ C*) | 
|  | 17560 | # Sun C++ 5.9 | 
|  | 17561 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17562 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17563 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 17564 | ;; | 
|  | 17565 | esac | 
|  | 17566 | ;; | 
|  | 17567 | esac | 
|  | 17568 | ;; | 
|  | 17569 | lynxos*) | 
|  | 17570 | ;; | 
|  | 17571 | m88k*) | 
|  | 17572 | ;; | 
|  | 17573 | mvs*) | 
|  | 17574 | case $cc_basename in | 
|  | 17575 | cxx*) | 
|  | 17576 | lt_prog_compiler_pic_CXX='-W c,exportall' | 
|  | 17577 | ;; | 
|  | 17578 | *) | 
|  | 17579 | ;; | 
|  | 17580 | esac | 
|  | 17581 | ;; | 
|  | 17582 | netbsd*) | 
|  | 17583 | ;; | 
|  | 17584 | *qnx* | *nto*) | 
|  | 17585 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 17586 | # it will coredump. | 
|  | 17587 | lt_prog_compiler_pic_CXX='-fPIC -shared' | 
|  | 17588 | ;; | 
|  | 17589 | osf3* | osf4* | osf5*) | 
|  | 17590 | case $cc_basename in | 
|  | 17591 | KCC*) | 
|  | 17592 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 17593 | ;; | 
|  | 17594 | RCC*) | 
|  | 17595 | # Rational C++ 2.4.1 | 
|  | 17596 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 17597 | ;; | 
|  | 17598 | cxx*) | 
|  | 17599 | # Digital/Compaq C++ | 
|  | 17600 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17601 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 17602 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 17603 | lt_prog_compiler_pic_CXX= | 
|  | 17604 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 17605 | ;; | 
|  | 17606 | *) | 
|  | 17607 | ;; | 
|  | 17608 | esac | 
|  | 17609 | ;; | 
|  | 17610 | psos*) | 
|  | 17611 | ;; | 
|  | 17612 | solaris*) | 
|  | 17613 | case $cc_basename in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17614 | CC* | sunCC*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17615 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 17616 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17617 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17618 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 17619 | ;; | 
|  | 17620 | gcx*) | 
|  | 17621 | # Green Hills C++ Compiler | 
|  | 17622 | lt_prog_compiler_pic_CXX='-PIC' | 
|  | 17623 | ;; | 
|  | 17624 | *) | 
|  | 17625 | ;; | 
|  | 17626 | esac | 
|  | 17627 | ;; | 
|  | 17628 | sunos4*) | 
|  | 17629 | case $cc_basename in | 
|  | 17630 | CC*) | 
|  | 17631 | # Sun C++ 4.x | 
|  | 17632 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 17633 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17634 | ;; | 
|  | 17635 | lcc*) | 
|  | 17636 | # Lucid | 
|  | 17637 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 17638 | ;; | 
|  | 17639 | *) | 
|  | 17640 | ;; | 
|  | 17641 | esac | 
|  | 17642 | ;; | 
|  | 17643 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
|  | 17644 | case $cc_basename in | 
|  | 17645 | CC*) | 
|  | 17646 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 17647 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17648 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 17649 | ;; | 
|  | 17650 | esac | 
|  | 17651 | ;; | 
|  | 17652 | tandem*) | 
|  | 17653 | case $cc_basename in | 
|  | 17654 | NCC*) | 
|  | 17655 | # NonStop-UX NCC 3.20 | 
|  | 17656 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 17657 | ;; | 
|  | 17658 | *) | 
|  | 17659 | ;; | 
|  | 17660 | esac | 
|  | 17661 | ;; | 
|  | 17662 | vxworks*) | 
|  | 17663 | ;; | 
|  | 17664 | *) | 
|  | 17665 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 17666 | ;; | 
|  | 17667 | esac | 
|  | 17668 | fi | 
|  | 17669 |  | 
|  | 17670 | case $host_os in | 
|  | 17671 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 17672 | *djgpp*) | 
|  | 17673 | lt_prog_compiler_pic_CXX= | 
|  | 17674 | ;; | 
|  | 17675 | *) | 
|  | 17676 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 17677 | ;; | 
|  | 17678 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17680 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | 
|  | 17681 |  | 
|  | 17682 |  | 
|  | 17683 |  | 
|  | 17684 | # | 
|  | 17685 | # Check to make sure the PIC flag actually works. | 
|  | 17686 | # | 
|  | 17687 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17689 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17690 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17691 | $as_echo_n "(cached) " >&6 | 
|  | 17692 | else | 
|  | 17693 | lt_cv_prog_compiler_pic_works_CXX=no | 
|  | 17694 | ac_outfile=conftest.$ac_objext | 
|  | 17695 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 17696 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 17697 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 17698 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 17699 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 17700 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 17701 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 17702 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 17703 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 17704 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 17705 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17706 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17707 | (eval "$lt_compile" 2>conftest.err) | 
|  | 17708 | ac_status=$? | 
|  | 17709 | cat conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17711 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 17712 | # The compiler can only warn and ignore the option if not recognized | 
|  | 17713 | # So say no if there are warnings other than the usual output. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17714 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17715 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 17716 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 17717 | lt_cv_prog_compiler_pic_works_CXX=yes | 
|  | 17718 | fi | 
|  | 17719 | fi | 
|  | 17720 | $RM conftest* | 
|  | 17721 |  | 
|  | 17722 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17724 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | 
|  | 17725 |  | 
|  | 17726 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | 
|  | 17727 | case $lt_prog_compiler_pic_CXX in | 
|  | 17728 | "" | " "*) ;; | 
|  | 17729 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
|  | 17730 | esac | 
|  | 17731 | else | 
|  | 17732 | lt_prog_compiler_pic_CXX= | 
|  | 17733 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 17734 | fi | 
|  | 17735 |  | 
|  | 17736 | fi | 
|  | 17737 |  | 
|  | 17738 |  | 
|  | 17739 |  | 
|  | 17740 | # | 
|  | 17741 | # Check to make sure the static flag actually works. | 
|  | 17742 | # | 
|  | 17743 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17745 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17746 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17747 | $as_echo_n "(cached) " >&6 | 
|  | 17748 | else | 
|  | 17749 | lt_cv_prog_compiler_static_works_CXX=no | 
|  | 17750 | save_LDFLAGS="$LDFLAGS" | 
|  | 17751 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
|  | 17752 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 17753 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 17754 | # The linker can only warn and ignore the option if not recognized | 
|  | 17755 | # So say no if there are warnings | 
|  | 17756 | if test -s conftest.err; then | 
|  | 17757 | # Append any errors to the config.log. | 
|  | 17758 | cat conftest.err 1>&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17759 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17760 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 17761 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 17762 | lt_cv_prog_compiler_static_works_CXX=yes | 
|  | 17763 | fi | 
|  | 17764 | else | 
|  | 17765 | lt_cv_prog_compiler_static_works_CXX=yes | 
|  | 17766 | fi | 
|  | 17767 | fi | 
|  | 17768 | $RM -r conftest* | 
|  | 17769 | LDFLAGS="$save_LDFLAGS" | 
|  | 17770 |  | 
|  | 17771 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17773 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | 
|  | 17774 |  | 
|  | 17775 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | 
|  | 17776 | : | 
|  | 17777 | else | 
|  | 17778 | lt_prog_compiler_static_CXX= | 
|  | 17779 | fi | 
|  | 17780 |  | 
|  | 17781 |  | 
|  | 17782 |  | 
|  | 17783 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17785 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17786 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17787 | $as_echo_n "(cached) " >&6 | 
|  | 17788 | else | 
|  | 17789 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 17790 | $RM -r conftest 2>/dev/null | 
|  | 17791 | mkdir conftest | 
|  | 17792 | cd conftest | 
|  | 17793 | mkdir out | 
|  | 17794 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 17795 |  | 
|  | 17796 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 17797 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 17798 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 17799 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 17800 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 17801 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 17802 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 17803 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 17804 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17805 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17806 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 17807 | ac_status=$? | 
|  | 17808 | cat out/conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17810 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 17811 | then | 
|  | 17812 | # The compiler can only warn and ignore the option if not recognized | 
|  | 17813 | # So say no if there are warnings | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17814 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17815 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 17816 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 17817 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 17818 | fi | 
|  | 17819 | fi | 
|  | 17820 | chmod u+w . 2>&5 | 
|  | 17821 | $RM conftest* | 
|  | 17822 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 17823 | # template instantiation | 
|  | 17824 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 17825 | $RM out/* && rmdir out | 
|  | 17826 | cd .. | 
|  | 17827 | $RM -r conftest | 
|  | 17828 | $RM conftest* | 
|  | 17829 |  | 
|  | 17830 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17832 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
|  | 17833 |  | 
|  | 17834 |  | 
|  | 17835 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17837 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17838 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17839 | $as_echo_n "(cached) " >&6 | 
|  | 17840 | else | 
|  | 17841 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 17842 | $RM -r conftest 2>/dev/null | 
|  | 17843 | mkdir conftest | 
|  | 17844 | cd conftest | 
|  | 17845 | mkdir out | 
|  | 17846 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 17847 |  | 
|  | 17848 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 17849 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 17850 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 17851 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 17852 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 17853 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 17854 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 17855 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 17856 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17857 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17858 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 17859 | ac_status=$? | 
|  | 17860 | cat out/conftest.err >&5 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17862 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 17863 | then | 
|  | 17864 | # The compiler can only warn and ignore the option if not recognized | 
|  | 17865 | # So say no if there are warnings | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17866 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17867 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 17868 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 17869 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 17870 | fi | 
|  | 17871 | fi | 
|  | 17872 | chmod u+w . 2>&5 | 
|  | 17873 | $RM conftest* | 
|  | 17874 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 17875 | # template instantiation | 
|  | 17876 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 17877 | $RM out/* && rmdir out | 
|  | 17878 | cd .. | 
|  | 17879 | $RM -r conftest | 
|  | 17880 | $RM conftest* | 
|  | 17881 |  | 
|  | 17882 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17884 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
|  | 17885 |  | 
|  | 17886 |  | 
|  | 17887 |  | 
|  | 17888 |  | 
|  | 17889 | hard_links="nottested" | 
|  | 17890 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
|  | 17891 | # do not overwrite the value of need_locks provided by the user | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17893 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
|  | 17894 | hard_links=yes | 
|  | 17895 | $RM conftest* | 
|  | 17896 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 17897 | touch conftest.a | 
|  | 17898 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 17899 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17901 | $as_echo "$hard_links" >&6; } | 
|  | 17902 | if test "$hard_links" = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17904 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 17905 | need_locks=warn | 
|  | 17906 | fi | 
|  | 17907 | else | 
|  | 17908 | need_locks=no | 
|  | 17909 | fi | 
|  | 17910 |  | 
|  | 17911 |  | 
|  | 17912 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17914 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 17915 |  | 
|  | 17916 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 17917 | case $host_os in | 
|  | 17918 | aix[4-9]*) | 
|  | 17919 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 17920 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17921 | # Also, AIX nm treats weak defined symbols like other global defined | 
|  | 17922 | # symbols, whereas GNU nm marks them as "W". | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17923 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17924 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17925 | else | 
|  | 17926 | 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' | 
|  | 17927 | fi | 
|  | 17928 | ;; | 
|  | 17929 | pw32*) | 
|  | 17930 | export_symbols_cmds_CXX="$ltdll_cmds" | 
|  | 17931 | ;; | 
|  | 17932 | cygwin* | mingw* | cegcc*) | 
|  | 17933 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 17934 | ;; | 
|  | 17935 | *) | 
|  | 17936 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 17937 | ;; | 
|  | 17938 | esac | 
|  | 17939 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
|  | 17940 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17942 | $as_echo "$ld_shlibs_CXX" >&6; } | 
|  | 17943 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 17944 |  | 
|  | 17945 | with_gnu_ld_CXX=$with_gnu_ld | 
|  | 17946 |  | 
|  | 17947 |  | 
|  | 17948 |  | 
|  | 17949 |  | 
|  | 17950 |  | 
|  | 17951 |  | 
|  | 17952 | # | 
|  | 17953 | # Do we need to explicitly link libc? | 
|  | 17954 | # | 
|  | 17955 | case "x$archive_cmds_need_lc_CXX" in | 
|  | 17956 | x|xyes) | 
|  | 17957 | # Assume -lc should be added | 
|  | 17958 | archive_cmds_need_lc_CXX=yes | 
|  | 17959 |  | 
|  | 17960 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 17961 | case $archive_cmds_CXX in | 
|  | 17962 | *'~'*) | 
|  | 17963 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 17964 | ;; | 
|  | 17965 | '$CC '*) | 
|  | 17966 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 17967 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 17968 | # to ld, don't add -lc before -lgcc. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17970 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17971 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | 
|  | 17972 | $as_echo_n "(cached) " >&6 | 
|  | 17973 | else | 
|  | 17974 | $RM conftest* | 
|  | 17975 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17976 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17978 | (eval $ac_compile) 2>&5 | 
|  | 17979 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 17981 | test $ac_status = 0; } 2>conftest.err; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 17982 | soname=conftest | 
|  | 17983 | lib=conftest | 
|  | 17984 | libobjs=conftest.$ac_objext | 
|  | 17985 | deplibs= | 
|  | 17986 | wl=$lt_prog_compiler_wl_CXX | 
|  | 17987 | pic_flag=$lt_prog_compiler_pic_CXX | 
|  | 17988 | compiler_flags=-v | 
|  | 17989 | linker_flags=-v | 
|  | 17990 | verstring= | 
|  | 17991 | output_objdir=. | 
|  | 17992 | libname=conftest | 
|  | 17993 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
|  | 17994 | allow_undefined_flag_CXX= | 
|  | 17995 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17996 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 17997 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 17999 | test $ac_status = 0; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18000 | then | 
|  | 18001 | lt_cv_archive_cmds_need_lc_CXX=no | 
|  | 18002 | else | 
|  | 18003 | lt_cv_archive_cmds_need_lc_CXX=yes | 
|  | 18004 | fi | 
|  | 18005 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
|  | 18006 | else | 
|  | 18007 | cat conftest.err 1>&5 | 
|  | 18008 | fi | 
|  | 18009 | $RM conftest* | 
|  | 18010 |  | 
|  | 18011 | fi | 
|  | 18012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | 
|  | 18013 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | 
|  | 18014 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18015 | ;; | 
|  | 18016 | esac | 
|  | 18017 | fi | 
|  | 18018 | ;; | 
|  | 18019 | esac | 
|  | 18020 |  | 
|  | 18021 |  | 
|  | 18022 |  | 
|  | 18023 |  | 
|  | 18024 |  | 
|  | 18025 |  | 
|  | 18026 |  | 
|  | 18027 |  | 
|  | 18028 |  | 
|  | 18029 |  | 
|  | 18030 |  | 
|  | 18031 |  | 
|  | 18032 |  | 
|  | 18033 |  | 
|  | 18034 |  | 
|  | 18035 |  | 
|  | 18036 |  | 
|  | 18037 |  | 
|  | 18038 |  | 
|  | 18039 |  | 
|  | 18040 |  | 
|  | 18041 |  | 
|  | 18042 |  | 
|  | 18043 |  | 
|  | 18044 |  | 
|  | 18045 |  | 
|  | 18046 |  | 
|  | 18047 |  | 
|  | 18048 |  | 
|  | 18049 |  | 
|  | 18050 |  | 
|  | 18051 |  | 
|  | 18052 |  | 
|  | 18053 |  | 
|  | 18054 |  | 
|  | 18055 |  | 
|  | 18056 |  | 
|  | 18057 |  | 
|  | 18058 |  | 
|  | 18059 |  | 
|  | 18060 |  | 
|  | 18061 |  | 
|  | 18062 |  | 
|  | 18063 |  | 
|  | 18064 |  | 
|  | 18065 |  | 
|  | 18066 |  | 
|  | 18067 |  | 
|  | 18068 |  | 
|  | 18069 |  | 
|  | 18070 |  | 
|  | 18071 |  | 
|  | 18072 |  | 
|  | 18073 |  | 
|  | 18074 |  | 
|  | 18075 |  | 
|  | 18076 |  | 
|  | 18077 |  | 
|  | 18078 |  | 
|  | 18079 |  | 
|  | 18080 |  | 
|  | 18081 |  | 
|  | 18082 |  | 
|  | 18083 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18085 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
|  | 18086 |  | 
|  | 18087 | library_names_spec= | 
|  | 18088 | libname_spec='lib$name' | 
|  | 18089 | soname_spec= | 
|  | 18090 | shrext_cmds=".so" | 
|  | 18091 | postinstall_cmds= | 
|  | 18092 | postuninstall_cmds= | 
|  | 18093 | finish_cmds= | 
|  | 18094 | finish_eval= | 
|  | 18095 | shlibpath_var= | 
|  | 18096 | shlibpath_overrides_runpath=unknown | 
|  | 18097 | version_type=none | 
|  | 18098 | dynamic_linker="$host_os ld.so" | 
|  | 18099 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 18100 | need_lib_prefix=unknown | 
|  | 18101 | hardcode_into_libs=no | 
|  | 18102 |  | 
|  | 18103 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 18104 | # flags to be left without arguments | 
|  | 18105 | need_version=unknown | 
|  | 18106 |  | 
|  | 18107 | case $host_os in | 
|  | 18108 | aix3*) | 
|  | 18109 | version_type=linux | 
|  | 18110 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 18111 | shlibpath_var=LIBPATH | 
|  | 18112 |  | 
|  | 18113 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 18114 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18115 | ;; | 
|  | 18116 |  | 
|  | 18117 | aix[4-9]*) | 
|  | 18118 | version_type=linux | 
|  | 18119 | need_lib_prefix=no | 
|  | 18120 | need_version=no | 
|  | 18121 | hardcode_into_libs=yes | 
|  | 18122 | if test "$host_cpu" = ia64; then | 
|  | 18123 | # AIX 5 supports IA64 | 
|  | 18124 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 18125 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18126 | else | 
|  | 18127 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 18128 | # for dependence libraries.  The import file would start with | 
|  | 18129 | # the line `#! .'.  This would cause the generated library to | 
|  | 18130 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 18131 | # development snapshots of GCC prior to 3.0. | 
|  | 18132 | case $host_os in | 
|  | 18133 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 18134 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 18135 | echo ' yes ' | 
|  | 18136 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
|  | 18137 | : | 
|  | 18138 | else | 
|  | 18139 | can_build_shared=no | 
|  | 18140 | fi | 
|  | 18141 | ;; | 
|  | 18142 | esac | 
|  | 18143 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 18144 | # soname into executable. Probably we can add versioning support to | 
|  | 18145 | # collect2, so additional links can be useful in future. | 
|  | 18146 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 18147 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 18148 | # instead of lib<name>.a to let people know that these are not | 
|  | 18149 | # typical AIX shared libraries. | 
|  | 18150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18151 | else | 
|  | 18152 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 18153 | # and later when we are not doing run time linking. | 
|  | 18154 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 18155 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18156 | fi | 
|  | 18157 | shlibpath_var=LIBPATH | 
|  | 18158 | fi | 
|  | 18159 | ;; | 
|  | 18160 |  | 
|  | 18161 | amigaos*) | 
|  | 18162 | case $host_cpu in | 
|  | 18163 | powerpc) | 
|  | 18164 | # Since July 2007 AmigaOS4 officially supports .so libraries. | 
|  | 18165 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
|  | 18166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18167 | ;; | 
|  | 18168 | m68k) | 
|  | 18169 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 18170 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18171 | 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 | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18172 | ;; | 
|  | 18173 | esac | 
|  | 18174 | ;; | 
|  | 18175 |  | 
|  | 18176 | beos*) | 
|  | 18177 | library_names_spec='${libname}${shared_ext}' | 
|  | 18178 | dynamic_linker="$host_os ld.so" | 
|  | 18179 | shlibpath_var=LIBRARY_PATH | 
|  | 18180 | ;; | 
|  | 18181 |  | 
|  | 18182 | bsdi[45]*) | 
|  | 18183 | version_type=linux | 
|  | 18184 | need_version=no | 
|  | 18185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18186 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18187 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 18188 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18189 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 18190 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 18191 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 18192 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 18193 | # libtool to hard-code these into programs | 
|  | 18194 | ;; | 
|  | 18195 |  | 
|  | 18196 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 18197 | version_type=windows | 
|  | 18198 | shrext_cmds=".dll" | 
|  | 18199 | need_version=no | 
|  | 18200 | need_lib_prefix=no | 
|  | 18201 |  | 
|  | 18202 | case $GCC,$host_os in | 
|  | 18203 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | 
|  | 18204 | library_names_spec='$libname.dll.a' | 
|  | 18205 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 18206 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 18207 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 18208 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 18209 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 18210 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 18211 | chmod a+x \$dldir/$dlname~ | 
|  | 18212 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
|  | 18213 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
|  | 18214 | fi' | 
|  | 18215 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 18216 | dlpath=$dir/\$dldll~ | 
|  | 18217 | $RM \$dlpath' | 
|  | 18218 | shlibpath_overrides_runpath=yes | 
|  | 18219 |  | 
|  | 18220 | case $host_os in | 
|  | 18221 | cygwin*) | 
|  | 18222 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 18223 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18224 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18225 | ;; | 
|  | 18226 | mingw* | cegcc*) | 
|  | 18227 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 18228 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18229 | ;; | 
|  | 18230 | pw32*) | 
|  | 18231 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 18232 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 18233 | ;; | 
|  | 18234 | esac | 
|  | 18235 | ;; | 
|  | 18236 |  | 
|  | 18237 | *) | 
|  | 18238 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
|  | 18239 | ;; | 
|  | 18240 | esac | 
|  | 18241 | dynamic_linker='Win32 ld.exe' | 
|  | 18242 | # FIXME: first we should search . and the directory the executable is in | 
|  | 18243 | shlibpath_var=PATH | 
|  | 18244 | ;; | 
|  | 18245 |  | 
|  | 18246 | darwin* | rhapsody*) | 
|  | 18247 | dynamic_linker="$host_os dyld" | 
|  | 18248 | version_type=darwin | 
|  | 18249 | need_lib_prefix=no | 
|  | 18250 | need_version=no | 
|  | 18251 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 18252 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 18253 | shlibpath_overrides_runpath=yes | 
|  | 18254 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 18255 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
|  | 18256 |  | 
|  | 18257 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 18258 | ;; | 
|  | 18259 |  | 
|  | 18260 | dgux*) | 
|  | 18261 | version_type=linux | 
|  | 18262 | need_lib_prefix=no | 
|  | 18263 | need_version=no | 
|  | 18264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 18265 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18266 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18267 | ;; | 
|  | 18268 |  | 
|  | 18269 | freebsd1*) | 
|  | 18270 | dynamic_linker=no | 
|  | 18271 | ;; | 
|  | 18272 |  | 
|  | 18273 | freebsd* | dragonfly*) | 
|  | 18274 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 18275 | # versioning mechanism, adjust this. | 
|  | 18276 | if test -x /usr/bin/objformat; then | 
|  | 18277 | objformat=`/usr/bin/objformat` | 
|  | 18278 | else | 
|  | 18279 | case $host_os in | 
|  | 18280 | freebsd[123]*) objformat=aout ;; | 
|  | 18281 | *) objformat=elf ;; | 
|  | 18282 | esac | 
|  | 18283 | fi | 
|  | 18284 | version_type=freebsd-$objformat | 
|  | 18285 | case $version_type in | 
|  | 18286 | freebsd-elf*) | 
|  | 18287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 18288 | need_version=no | 
|  | 18289 | need_lib_prefix=no | 
|  | 18290 | ;; | 
|  | 18291 | freebsd-*) | 
|  | 18292 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 18293 | need_version=yes | 
|  | 18294 | ;; | 
|  | 18295 | esac | 
|  | 18296 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18297 | case $host_os in | 
|  | 18298 | freebsd2*) | 
|  | 18299 | shlibpath_overrides_runpath=yes | 
|  | 18300 | ;; | 
|  | 18301 | freebsd3.[01]* | freebsdelf3.[01]*) | 
|  | 18302 | shlibpath_overrides_runpath=yes | 
|  | 18303 | hardcode_into_libs=yes | 
|  | 18304 | ;; | 
|  | 18305 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 18306 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
|  | 18307 | shlibpath_overrides_runpath=no | 
|  | 18308 | hardcode_into_libs=yes | 
|  | 18309 | ;; | 
|  | 18310 | *) # from 4.6 on, and DragonFly | 
|  | 18311 | shlibpath_overrides_runpath=yes | 
|  | 18312 | hardcode_into_libs=yes | 
|  | 18313 | ;; | 
|  | 18314 | esac | 
|  | 18315 | ;; | 
|  | 18316 |  | 
|  | 18317 | gnu*) | 
|  | 18318 | version_type=linux | 
|  | 18319 | need_lib_prefix=no | 
|  | 18320 | need_version=no | 
|  | 18321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 18322 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18323 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18324 | hardcode_into_libs=yes | 
|  | 18325 | ;; | 
|  | 18326 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18327 | haiku*) | 
|  | 18328 | version_type=linux | 
|  | 18329 | need_lib_prefix=no | 
|  | 18330 | need_version=no | 
|  | 18331 | dynamic_linker="$host_os runtime_loader" | 
|  | 18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 18333 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18334 | shlibpath_var=LIBRARY_PATH | 
|  | 18335 | shlibpath_overrides_runpath=yes | 
|  | 18336 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
|  | 18337 | hardcode_into_libs=yes | 
|  | 18338 | ;; | 
|  | 18339 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18340 | hpux9* | hpux10* | hpux11*) | 
|  | 18341 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 18342 | # link against other versions. | 
|  | 18343 | version_type=sunos | 
|  | 18344 | need_lib_prefix=no | 
|  | 18345 | need_version=no | 
|  | 18346 | case $host_cpu in | 
|  | 18347 | ia64*) | 
|  | 18348 | shrext_cmds='.so' | 
|  | 18349 | hardcode_into_libs=yes | 
|  | 18350 | dynamic_linker="$host_os dld.so" | 
|  | 18351 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18352 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 18353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18354 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18355 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 18356 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 18357 | else | 
|  | 18358 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 18359 | fi | 
|  | 18360 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 18361 | ;; | 
|  | 18362 | hppa*64*) | 
|  | 18363 | shrext_cmds='.sl' | 
|  | 18364 | hardcode_into_libs=yes | 
|  | 18365 | dynamic_linker="$host_os dld.sl" | 
|  | 18366 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 18367 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 18368 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18369 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18370 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 18371 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 18372 | ;; | 
|  | 18373 | *) | 
|  | 18374 | shrext_cmds='.sl' | 
|  | 18375 | dynamic_linker="$host_os dld.sl" | 
|  | 18376 | shlibpath_var=SHLIB_PATH | 
|  | 18377 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 18378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18379 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18380 | ;; | 
|  | 18381 | esac | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18382 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18383 | postinstall_cmds='chmod 555 $lib' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18384 | # or fails outright, so override atomically: | 
|  | 18385 | install_override_mode=555 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18386 | ;; | 
|  | 18387 |  | 
|  | 18388 | interix[3-9]*) | 
|  | 18389 | version_type=linux | 
|  | 18390 | need_lib_prefix=no | 
|  | 18391 | need_version=no | 
|  | 18392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 18393 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18394 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 18395 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18396 | shlibpath_overrides_runpath=no | 
|  | 18397 | hardcode_into_libs=yes | 
|  | 18398 | ;; | 
|  | 18399 |  | 
|  | 18400 | irix5* | irix6* | nonstopux*) | 
|  | 18401 | case $host_os in | 
|  | 18402 | nonstopux*) version_type=nonstopux ;; | 
|  | 18403 | *) | 
|  | 18404 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 18405 | version_type=linux | 
|  | 18406 | else | 
|  | 18407 | version_type=irix | 
|  | 18408 | fi ;; | 
|  | 18409 | esac | 
|  | 18410 | need_lib_prefix=no | 
|  | 18411 | need_version=no | 
|  | 18412 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 18414 | case $host_os in | 
|  | 18415 | irix5* | nonstopux*) | 
|  | 18416 | libsuff= shlibsuff= | 
|  | 18417 | ;; | 
|  | 18418 | *) | 
|  | 18419 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 18420 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 18421 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 18422 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 18423 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 18424 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 18425 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 18426 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 18427 | esac | 
|  | 18428 | ;; | 
|  | 18429 | esac | 
|  | 18430 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 18431 | shlibpath_overrides_runpath=no | 
|  | 18432 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 18433 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 18434 | hardcode_into_libs=yes | 
|  | 18435 | ;; | 
|  | 18436 |  | 
|  | 18437 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 18438 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 18439 | dynamic_linker=no | 
|  | 18440 | ;; | 
|  | 18441 |  | 
|  | 18442 | # This must be Linux ELF. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18443 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18444 | version_type=linux | 
|  | 18445 | need_lib_prefix=no | 
|  | 18446 | need_version=no | 
|  | 18447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18448 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18449 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 18450 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18451 | shlibpath_overrides_runpath=no | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18452 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18453 | # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18454 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | 
|  | 18455 | $as_echo_n "(cached) " >&6 | 
|  | 18456 | else | 
|  | 18457 | lt_cv_shlibpath_overrides_runpath=no | 
|  | 18458 | save_LDFLAGS=$LDFLAGS | 
|  | 18459 | save_libdir=$libdir | 
|  | 18460 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | 
|  | 18461 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | 
|  | 18462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18463 | /* end confdefs.h.  */ | 
|  | 18464 |  | 
|  | 18465 | int | 
|  | 18466 | main () | 
|  | 18467 | { | 
|  | 18468 |  | 
|  | 18469 | ; | 
|  | 18470 | return 0; | 
|  | 18471 | } | 
|  | 18472 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18473 | if ac_fn_cxx_try_link "$LINENO"; then : | 
|  | 18474 | if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18475 | lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18476 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18477 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18478 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18479 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18480 | LDFLAGS=$save_LDFLAGS | 
|  | 18481 | libdir=$save_libdir | 
|  | 18482 |  | 
|  | 18483 | fi | 
|  | 18484 |  | 
|  | 18485 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18486 |  | 
|  | 18487 | # This implies no fast_install, which is unacceptable. | 
|  | 18488 | # Some rework will be needed to allow for fast_install | 
|  | 18489 | # before this can be enabled. | 
|  | 18490 | hardcode_into_libs=yes | 
|  | 18491 |  | 
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 18492 | # Add ABI-specific directories to the system library path. | 
|  | 18493 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
|  | 18494 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18495 | # Append ld.so.conf contents to the search path | 
|  | 18496 | if test -f /etc/ld.so.conf; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18497 | 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 | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 18498 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18499 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18500 | fi | 
|  | 18501 |  | 
|  | 18502 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 18503 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 18504 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 18505 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 18506 | # people can always --disable-shared, the test was removed, and we | 
|  | 18507 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 18508 | dynamic_linker='GNU/Linux ld.so' | 
|  | 18509 | ;; | 
|  | 18510 |  | 
|  | 18511 | netbsd*) | 
|  | 18512 | version_type=sunos | 
|  | 18513 | need_lib_prefix=no | 
|  | 18514 | need_version=no | 
|  | 18515 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 18516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 18517 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 18518 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 18519 | else | 
|  | 18520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 18521 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18522 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 18523 | fi | 
|  | 18524 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18525 | shlibpath_overrides_runpath=yes | 
|  | 18526 | hardcode_into_libs=yes | 
|  | 18527 | ;; | 
|  | 18528 |  | 
|  | 18529 | newsos6) | 
|  | 18530 | version_type=linux | 
|  | 18531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18532 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18533 | shlibpath_overrides_runpath=yes | 
|  | 18534 | ;; | 
|  | 18535 |  | 
|  | 18536 | *nto* | *qnx*) | 
|  | 18537 | version_type=qnx | 
|  | 18538 | need_lib_prefix=no | 
|  | 18539 | need_version=no | 
|  | 18540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18541 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18542 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18543 | shlibpath_overrides_runpath=no | 
|  | 18544 | hardcode_into_libs=yes | 
|  | 18545 | dynamic_linker='ldqnx.so' | 
|  | 18546 | ;; | 
|  | 18547 |  | 
|  | 18548 | openbsd*) | 
|  | 18549 | version_type=sunos | 
|  | 18550 | sys_lib_dlsearch_path_spec="/usr/lib" | 
|  | 18551 | need_lib_prefix=no | 
|  | 18552 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 18553 | case $host_os in | 
|  | 18554 | openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
|  | 18555 | *)				need_version=no  ;; | 
|  | 18556 | esac | 
|  | 18557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 18558 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 18559 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18560 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 18561 | case $host_os in | 
|  | 18562 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 18563 | shlibpath_overrides_runpath=no | 
|  | 18564 | ;; | 
|  | 18565 | *) | 
|  | 18566 | shlibpath_overrides_runpath=yes | 
|  | 18567 | ;; | 
|  | 18568 | esac | 
|  | 18569 | else | 
|  | 18570 | shlibpath_overrides_runpath=yes | 
|  | 18571 | fi | 
|  | 18572 | ;; | 
|  | 18573 |  | 
|  | 18574 | os2*) | 
|  | 18575 | libname_spec='$name' | 
|  | 18576 | shrext_cmds=".dll" | 
|  | 18577 | need_lib_prefix=no | 
|  | 18578 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 18579 | dynamic_linker='OS/2 ld.exe' | 
|  | 18580 | shlibpath_var=LIBPATH | 
|  | 18581 | ;; | 
|  | 18582 |  | 
|  | 18583 | osf3* | osf4* | osf5*) | 
|  | 18584 | version_type=osf | 
|  | 18585 | need_lib_prefix=no | 
|  | 18586 | need_version=no | 
|  | 18587 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18589 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18590 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 18591 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 18592 | ;; | 
|  | 18593 |  | 
|  | 18594 | rdos*) | 
|  | 18595 | dynamic_linker=no | 
|  | 18596 | ;; | 
|  | 18597 |  | 
|  | 18598 | solaris*) | 
|  | 18599 | version_type=linux | 
|  | 18600 | need_lib_prefix=no | 
|  | 18601 | need_version=no | 
|  | 18602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18603 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18604 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18605 | shlibpath_overrides_runpath=yes | 
|  | 18606 | hardcode_into_libs=yes | 
|  | 18607 | # ldd complains unless libraries are executable | 
|  | 18608 | postinstall_cmds='chmod +x $lib' | 
|  | 18609 | ;; | 
|  | 18610 |  | 
|  | 18611 | sunos4*) | 
|  | 18612 | version_type=sunos | 
|  | 18613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 18614 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 18615 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18616 | shlibpath_overrides_runpath=yes | 
|  | 18617 | if test "$with_gnu_ld" = yes; then | 
|  | 18618 | need_lib_prefix=no | 
|  | 18619 | fi | 
|  | 18620 | need_version=yes | 
|  | 18621 | ;; | 
|  | 18622 |  | 
|  | 18623 | sysv4 | sysv4.3*) | 
|  | 18624 | version_type=linux | 
|  | 18625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18626 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18627 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18628 | case $host_vendor in | 
|  | 18629 | sni) | 
|  | 18630 | shlibpath_overrides_runpath=no | 
|  | 18631 | need_lib_prefix=no | 
|  | 18632 | runpath_var=LD_RUN_PATH | 
|  | 18633 | ;; | 
|  | 18634 | siemens) | 
|  | 18635 | need_lib_prefix=no | 
|  | 18636 | ;; | 
|  | 18637 | motorola) | 
|  | 18638 | need_lib_prefix=no | 
|  | 18639 | need_version=no | 
|  | 18640 | shlibpath_overrides_runpath=no | 
|  | 18641 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 18642 | ;; | 
|  | 18643 | esac | 
|  | 18644 | ;; | 
|  | 18645 |  | 
|  | 18646 | sysv4*MP*) | 
|  | 18647 | if test -d /usr/nec ;then | 
|  | 18648 | version_type=linux | 
|  | 18649 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 18650 | soname_spec='$libname${shared_ext}.$major' | 
|  | 18651 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18652 | fi | 
|  | 18653 | ;; | 
|  | 18654 |  | 
|  | 18655 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 18656 | version_type=freebsd-elf | 
|  | 18657 | need_lib_prefix=no | 
|  | 18658 | need_version=no | 
|  | 18659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 18660 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18661 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18662 | shlibpath_overrides_runpath=yes | 
|  | 18663 | hardcode_into_libs=yes | 
|  | 18664 | if test "$with_gnu_ld" = yes; then | 
|  | 18665 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 18666 | else | 
|  | 18667 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 18668 | case $host_os in | 
|  | 18669 | sco3.2v5*) | 
|  | 18670 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 18671 | ;; | 
|  | 18672 | esac | 
|  | 18673 | fi | 
|  | 18674 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 18675 | ;; | 
|  | 18676 |  | 
|  | 18677 | tpf*) | 
|  | 18678 | # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
|  | 18679 | version_type=linux | 
|  | 18680 | need_lib_prefix=no | 
|  | 18681 | need_version=no | 
|  | 18682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18683 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18684 | shlibpath_overrides_runpath=no | 
|  | 18685 | hardcode_into_libs=yes | 
|  | 18686 | ;; | 
|  | 18687 |  | 
|  | 18688 | uts4*) | 
|  | 18689 | version_type=linux | 
|  | 18690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18691 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18692 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18693 | ;; | 
|  | 18694 |  | 
|  | 18695 | *) | 
|  | 18696 | dynamic_linker=no | 
|  | 18697 | ;; | 
|  | 18698 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18700 | $as_echo "$dynamic_linker" >&6; } | 
|  | 18701 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 18702 |  | 
|  | 18703 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 18704 | if test "$GCC" = yes; then | 
|  | 18705 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 18706 | fi | 
|  | 18707 |  | 
|  | 18708 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
|  | 18709 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
|  | 18710 | fi | 
|  | 18711 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
|  | 18712 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
|  | 18713 | fi | 
|  | 18714 |  | 
|  | 18715 |  | 
|  | 18716 |  | 
|  | 18717 |  | 
|  | 18718 |  | 
|  | 18719 |  | 
|  | 18720 |  | 
|  | 18721 |  | 
|  | 18722 |  | 
|  | 18723 |  | 
|  | 18724 |  | 
|  | 18725 |  | 
|  | 18726 |  | 
|  | 18727 |  | 
|  | 18728 |  | 
|  | 18729 |  | 
|  | 18730 |  | 
|  | 18731 |  | 
|  | 18732 |  | 
|  | 18733 |  | 
|  | 18734 |  | 
|  | 18735 |  | 
|  | 18736 |  | 
|  | 18737 |  | 
|  | 18738 |  | 
|  | 18739 |  | 
|  | 18740 |  | 
|  | 18741 |  | 
|  | 18742 |  | 
|  | 18743 |  | 
|  | 18744 |  | 
|  | 18745 |  | 
|  | 18746 |  | 
|  | 18747 |  | 
|  | 18748 |  | 
|  | 18749 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 18750 |  | 
|  | 18751 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18753 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
|  | 18754 | hardcode_action_CXX= | 
|  | 18755 | if test -n "$hardcode_libdir_flag_spec_CXX" || | 
|  | 18756 | test -n "$runpath_var_CXX" || | 
|  | 18757 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
|  | 18758 |  | 
|  | 18759 | # We can hardcode non-existent directories. | 
|  | 18760 | if test "$hardcode_direct_CXX" != no && | 
|  | 18761 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 18762 | # have to relink, otherwise we might link with an installed library | 
|  | 18763 | # when we should be linking with a yet-to-be-installed one | 
|  | 18764 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
|  | 18765 | test "$hardcode_minus_L_CXX" != no; then | 
|  | 18766 | # Linking always hardcodes the temporary library directory. | 
|  | 18767 | hardcode_action_CXX=relink | 
|  | 18768 | else | 
|  | 18769 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 18770 | hardcode_action_CXX=immediate | 
|  | 18771 | fi | 
|  | 18772 | else | 
|  | 18773 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 18774 | # directories. | 
|  | 18775 | hardcode_action_CXX=unsupported | 
|  | 18776 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18778 | $as_echo "$hardcode_action_CXX" >&6; } | 
|  | 18779 |  | 
|  | 18780 | if test "$hardcode_action_CXX" = relink || | 
|  | 18781 | test "$inherit_rpath_CXX" = yes; then | 
|  | 18782 | # Fast installation is not supported | 
|  | 18783 | enable_fast_install=no | 
|  | 18784 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 18785 | test "$enable_shared" = no; then | 
|  | 18786 | # Fast installation is not necessary | 
|  | 18787 | enable_fast_install=needless | 
|  | 18788 | fi | 
|  | 18789 |  | 
|  | 18790 |  | 
|  | 18791 |  | 
|  | 18792 |  | 
|  | 18793 |  | 
|  | 18794 |  | 
|  | 18795 |  | 
|  | 18796 | fi # test -n "$compiler" | 
|  | 18797 |  | 
|  | 18798 | CC=$lt_save_CC | 
|  | 18799 | LDCXX=$LD | 
|  | 18800 | LD=$lt_save_LD | 
|  | 18801 | GCC=$lt_save_GCC | 
|  | 18802 | with_gnu_ld=$lt_save_with_gnu_ld | 
|  | 18803 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
|  | 18804 | lt_cv_path_LD=$lt_save_path_LD | 
|  | 18805 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
|  | 18806 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
|  | 18807 | fi # test "$_lt_caught_CXX_error" != yes | 
|  | 18808 |  | 
|  | 18809 | ac_ext=c | 
|  | 18810 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 18811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 18812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 18814 |  | 
|  | 18815 |  | 
|  | 18816 |  | 
|  | 18817 |  | 
|  | 18818 |  | 
|  | 18819 |  | 
|  | 18820 |  | 
|  | 18821 |  | 
|  | 18822 |  | 
|  | 18823 |  | 
|  | 18824 |  | 
|  | 18825 |  | 
|  | 18826 |  | 
|  | 18827 | ac_config_commands="$ac_config_commands libtool" | 
|  | 18828 |  | 
|  | 18829 |  | 
|  | 18830 |  | 
|  | 18831 |  | 
|  | 18832 | # Only expand once: | 
|  | 18833 |  | 
|  | 18834 |  | 
|  | 18835 |  | 
|  | 18836 |  | 
|  | 18837 |  | 
|  | 18838 | # Configure libltdl | 
|  | 18839 |  | 
|  | 18840 |  | 
|  | 18841 |  | 
|  | 18842 |  | 
|  | 18843 |  | 
|  | 18844 |  | 
|  | 18845 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18847 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18848 | if test "${libltdl_cv_shlibext+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18849 | $as_echo_n "(cached) " >&6 | 
|  | 18850 | else | 
|  | 18851 |  | 
|  | 18852 | module=yes | 
|  | 18853 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 18854 |  | 
|  | 18855 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18857 | $as_echo "$libltdl_cv_shlibext" >&6; } | 
|  | 18858 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 18859 |  | 
|  | 18860 | cat >>confdefs.h <<_ACEOF | 
|  | 18861 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | 
|  | 18862 | _ACEOF | 
|  | 18863 |  | 
|  | 18864 | fi | 
|  | 18865 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18867 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18868 | if test "${lt_cv_module_path_var+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18869 | $as_echo_n "(cached) " >&6 | 
|  | 18870 | else | 
|  | 18871 | lt_cv_module_path_var="$shlibpath_var" | 
|  | 18872 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18874 | $as_echo "$lt_cv_module_path_var" >&6; } | 
|  | 18875 | if test -n "$lt_cv_module_path_var"; then | 
|  | 18876 |  | 
|  | 18877 | cat >>confdefs.h <<_ACEOF | 
|  | 18878 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | 
|  | 18879 | _ACEOF | 
|  | 18880 |  | 
|  | 18881 | fi | 
|  | 18882 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18884 | $as_echo_n "checking for the default library search path... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18885 | if test "${lt_cv_sys_dlsearch_path+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18886 | $as_echo_n "(cached) " >&6 | 
|  | 18887 | else | 
|  | 18888 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | 
|  | 18889 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18891 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | 
|  | 18892 | if test -n "$lt_cv_sys_dlsearch_path"; then | 
|  | 18893 | sys_dlsearch_path= | 
|  | 18894 | for dir in $lt_cv_sys_dlsearch_path; do | 
|  | 18895 | if test -z "$sys_dlsearch_path"; then | 
|  | 18896 | sys_dlsearch_path="$dir" | 
|  | 18897 | else | 
|  | 18898 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | 
|  | 18899 | fi | 
|  | 18900 | done | 
|  | 18901 |  | 
|  | 18902 | cat >>confdefs.h <<_ACEOF | 
|  | 18903 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | 
|  | 18904 | _ACEOF | 
|  | 18905 |  | 
|  | 18906 | fi | 
|  | 18907 |  | 
|  | 18908 |  | 
|  | 18909 | LT_DLLOADERS= | 
|  | 18910 |  | 
|  | 18911 |  | 
|  | 18912 | ac_ext=c | 
|  | 18913 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 18914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 18915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 18916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 18917 |  | 
|  | 18918 |  | 
|  | 18919 | LIBADD_DLOPEN= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18921 | $as_echo_n "checking for library containing dlopen... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18922 | if test "${ac_cv_search_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18923 | $as_echo_n "(cached) " >&6 | 
|  | 18924 | else | 
|  | 18925 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18927 | /* end confdefs.h.  */ | 
|  | 18928 |  | 
|  | 18929 | /* Override any GCC internal prototype to avoid an error. | 
|  | 18930 | Use char because int might match the return type of a GCC | 
|  | 18931 | builtin and then its argument prototype would still apply.  */ | 
|  | 18932 | #ifdef __cplusplus | 
|  | 18933 | extern "C" | 
|  | 18934 | #endif | 
|  | 18935 | char dlopen (); | 
|  | 18936 | int | 
|  | 18937 | main () | 
|  | 18938 | { | 
|  | 18939 | return dlopen (); | 
|  | 18940 | ; | 
|  | 18941 | return 0; | 
|  | 18942 | } | 
|  | 18943 | _ACEOF | 
|  | 18944 | for ac_lib in '' dl; do | 
|  | 18945 | if test -z "$ac_lib"; then | 
|  | 18946 | ac_res="none required" | 
|  | 18947 | else | 
|  | 18948 | ac_res=-l$ac_lib | 
|  | 18949 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 18950 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18951 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18952 | ac_cv_search_dlopen=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18953 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18954 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 18955 | conftest$ac_exeext | 
|  | 18956 | if test "${ac_cv_search_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18957 | break | 
|  | 18958 | fi | 
|  | 18959 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18960 | if test "${ac_cv_search_dlopen+set}" = set; then : | 
|  | 18961 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18962 | else | 
|  | 18963 | ac_cv_search_dlopen=no | 
|  | 18964 | fi | 
|  | 18965 | rm conftest.$ac_ext | 
|  | 18966 | LIBS=$ac_func_search_save_LIBS | 
|  | 18967 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18969 | $as_echo "$ac_cv_search_dlopen" >&6; } | 
|  | 18970 | ac_res=$ac_cv_search_dlopen | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18971 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18972 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 18973 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18974 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18975 |  | 
|  | 18976 | if test "$ac_cv_search_dlopen" != "none required" ; then | 
|  | 18977 | LIBADD_DLOPEN="-ldl" | 
|  | 18978 | fi | 
|  | 18979 | libltdl_cv_lib_dl_dlopen="yes" | 
|  | 18980 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 18981 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18983 | /* end confdefs.h.  */ | 
|  | 18984 | #if HAVE_DLFCN_H | 
|  | 18985 | #  include <dlfcn.h> | 
|  | 18986 | #endif | 
|  | 18987 |  | 
|  | 18988 | int | 
|  | 18989 | main () | 
|  | 18990 | { | 
|  | 18991 | dlopen(0, 0); | 
|  | 18992 | ; | 
|  | 18993 | return 0; | 
|  | 18994 | } | 
|  | 18995 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18996 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18997 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18998 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18999 |  | 
|  | 19000 | libltdl_cv_func_dlopen="yes" | 
|  | 19001 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 19002 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19004 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19005 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19006 | $as_echo_n "(cached) " >&6 | 
|  | 19007 | else | 
|  | 19008 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19009 | LIBS="-lsvld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19011 | /* end confdefs.h.  */ | 
|  | 19012 |  | 
|  | 19013 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19014 | Use char because int might match the return type of a GCC | 
|  | 19015 | builtin and then its argument prototype would still apply.  */ | 
|  | 19016 | #ifdef __cplusplus | 
|  | 19017 | extern "C" | 
|  | 19018 | #endif | 
|  | 19019 | char dlopen (); | 
|  | 19020 | int | 
|  | 19021 | main () | 
|  | 19022 | { | 
|  | 19023 | return dlopen (); | 
|  | 19024 | ; | 
|  | 19025 | return 0; | 
|  | 19026 | } | 
|  | 19027 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19028 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19029 | ac_cv_lib_svld_dlopen=yes | 
|  | 19030 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19031 | ac_cv_lib_svld_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19032 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19033 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19034 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19035 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19036 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19038 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19039 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19040 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19041 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19042 |  | 
|  | 19043 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 19044 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 19045 | fi | 
|  | 19046 |  | 
|  | 19047 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19048 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19049 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19050 | fi | 
|  | 19051 |  | 
|  | 19052 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 19053 | then | 
|  | 19054 | lt_save_LIBS="$LIBS" | 
|  | 19055 | LIBS="$LIBS $LIBADD_DLOPEN" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19056 | for ac_func in dlerror | 
|  | 19057 | do : | 
|  | 19058 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | 
|  | 19059 | if test "x$ac_cv_func_dlerror" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19060 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19061 | #define HAVE_DLERROR 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19062 | _ACEOF | 
|  | 19063 |  | 
|  | 19064 | fi | 
|  | 19065 | done | 
|  | 19066 |  | 
|  | 19067 | LIBS="$lt_save_LIBS" | 
|  | 19068 | fi | 
|  | 19069 |  | 
|  | 19070 |  | 
|  | 19071 | LIBADD_SHL_LOAD= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19072 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
|  | 19073 | if test "x$ac_cv_func_shl_load" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19074 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19075 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19076 |  | 
|  | 19077 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
|  | 19078 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19080 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19081 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19082 | $as_echo_n "(cached) " >&6 | 
|  | 19083 | else | 
|  | 19084 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19085 | LIBS="-ldld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19087 | /* end confdefs.h.  */ | 
|  | 19088 |  | 
|  | 19089 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19090 | Use char because int might match the return type of a GCC | 
|  | 19091 | builtin and then its argument prototype would still apply.  */ | 
|  | 19092 | #ifdef __cplusplus | 
|  | 19093 | extern "C" | 
|  | 19094 | #endif | 
|  | 19095 | char shl_load (); | 
|  | 19096 | int | 
|  | 19097 | main () | 
|  | 19098 | { | 
|  | 19099 | return shl_load (); | 
|  | 19100 | ; | 
|  | 19101 | return 0; | 
|  | 19102 | } | 
|  | 19103 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19104 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19105 | ac_cv_lib_dld_shl_load=yes | 
|  | 19106 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19107 | ac_cv_lib_dld_shl_load=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19108 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19109 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19110 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19111 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19112 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19114 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19115 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19116 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19117 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19118 |  | 
|  | 19119 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
|  | 19120 | LIBADD_SHL_LOAD="-ldld" | 
|  | 19121 | fi | 
|  | 19122 |  | 
|  | 19123 | fi | 
|  | 19124 |  | 
|  | 19125 |  | 
|  | 19126 |  | 
|  | 19127 | case $host_os in | 
|  | 19128 | darwin[1567].*) | 
|  | 19129 | # We only want this for pre-Mac OS X 10.4. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19130 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | 
|  | 19131 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19132 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19133 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19134 |  | 
|  | 19135 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | 
|  | 19136 | fi | 
|  | 19137 |  | 
|  | 19138 | ;; | 
|  | 19139 | beos*) | 
|  | 19140 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | 
|  | 19141 | ;; | 
|  | 19142 | cygwin* | mingw* | os2* | pw32*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19143 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | 
|  | 19144 | " | 
|  | 19145 | if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then : | 
|  | 19146 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19147 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19148 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19149 | fi | 
|  | 19150 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19151 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19152 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19153 | _ACEOF | 
|  | 19154 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19155 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | 
|  | 19156 | ;; | 
|  | 19157 | esac | 
|  | 19158 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19160 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19161 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19162 | $as_echo_n "(cached) " >&6 | 
|  | 19163 | else | 
|  | 19164 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19165 | LIBS="-ldld  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19167 | /* end confdefs.h.  */ | 
|  | 19168 |  | 
|  | 19169 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19170 | Use char because int might match the return type of a GCC | 
|  | 19171 | builtin and then its argument prototype would still apply.  */ | 
|  | 19172 | #ifdef __cplusplus | 
|  | 19173 | extern "C" | 
|  | 19174 | #endif | 
|  | 19175 | char dld_link (); | 
|  | 19176 | int | 
|  | 19177 | main () | 
|  | 19178 | { | 
|  | 19179 | return dld_link (); | 
|  | 19180 | ; | 
|  | 19181 | return 0; | 
|  | 19182 | } | 
|  | 19183 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19184 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19185 | ac_cv_lib_dld_dld_link=yes | 
|  | 19186 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19187 | ac_cv_lib_dld_dld_link=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19188 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19189 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19190 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19191 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19192 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19194 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19195 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19196 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19197 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19198 |  | 
|  | 19199 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | 
|  | 19200 | fi | 
|  | 19201 |  | 
|  | 19202 |  | 
|  | 19203 |  | 
|  | 19204 |  | 
|  | 19205 | LT_DLPREOPEN= | 
|  | 19206 | if test -n "$LT_DLLOADERS" | 
|  | 19207 | then | 
|  | 19208 | for lt_loader in $LT_DLLOADERS; do | 
|  | 19209 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | 
|  | 19210 | done | 
|  | 19211 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19212 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19213 |  | 
|  | 19214 | fi | 
|  | 19215 |  | 
|  | 19216 |  | 
|  | 19217 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | 
|  | 19218 |  | 
|  | 19219 |  | 
|  | 19220 | ac_ext=c | 
|  | 19221 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19225 |  | 
|  | 19226 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19228 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19229 | if test "${lt_cv_sys_symbol_underscore+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19230 | $as_echo_n "(cached) " >&6 | 
|  | 19231 | else | 
|  | 19232 | lt_cv_sys_symbol_underscore=no | 
|  | 19233 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 19234 | void nm_test_func(){} | 
|  | 19235 | int main(){nm_test_func;return 0;} | 
|  | 19236 | _LT_EOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19237 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19238 | (eval $ac_compile) 2>&5 | 
|  | 19239 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 19241 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19242 | # Now try to grab the symbols. | 
|  | 19243 | ac_nlist=conftest.nm | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19244 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19245 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 19246 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 19248 | test $ac_status = 0; } && test -s "$ac_nlist"; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19249 | # See whether the symbols have a leading underscore. | 
|  | 19250 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 19251 | lt_cv_sys_symbol_underscore=yes | 
|  | 19252 | else | 
|  | 19253 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 19254 | : | 
|  | 19255 | else | 
|  | 19256 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 19257 | fi | 
|  | 19258 | fi | 
|  | 19259 | else | 
|  | 19260 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 19261 | fi | 
|  | 19262 | else | 
|  | 19263 | echo "configure: failed program was:" >&5 | 
|  | 19264 | cat conftest.c >&5 | 
|  | 19265 | fi | 
|  | 19266 | rm -rf conftest* | 
|  | 19267 |  | 
|  | 19268 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19270 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | 
|  | 19271 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | 
|  | 19272 |  | 
|  | 19273 |  | 
|  | 19274 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | 
|  | 19275 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 19276 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19278 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19279 | if test "${libltdl_cv_need_uscore+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19280 | $as_echo_n "(cached) " >&6 | 
|  | 19281 | else | 
|  | 19282 | libltdl_cv_need_uscore=unknown | 
|  | 19283 | save_LIBS="$LIBS" | 
|  | 19284 | LIBS="$LIBS $LIBADD_DLOPEN" | 
|  | 19285 | if test "$cross_compiling" = yes; then : | 
|  | 19286 | libltdl_cv_need_uscore=cross | 
|  | 19287 | else | 
|  | 19288 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 19289 | lt_status=$lt_dlunknown | 
|  | 19290 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19291 | #line $LINENO "configure" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19292 | #include "confdefs.h" | 
|  | 19293 |  | 
|  | 19294 | #if HAVE_DLFCN_H | 
|  | 19295 | #include <dlfcn.h> | 
|  | 19296 | #endif | 
|  | 19297 |  | 
|  | 19298 | #include <stdio.h> | 
|  | 19299 |  | 
|  | 19300 | #ifdef RTLD_GLOBAL | 
|  | 19301 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 19302 | #else | 
|  | 19303 | #  ifdef DL_GLOBAL | 
|  | 19304 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 19305 | #  else | 
|  | 19306 | #    define LT_DLGLOBAL		0 | 
|  | 19307 | #  endif | 
|  | 19308 | #endif | 
|  | 19309 |  | 
|  | 19310 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 19311 | find out it does not work in some platform. */ | 
|  | 19312 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 19313 | #  ifdef RTLD_LAZY | 
|  | 19314 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 19315 | #  else | 
|  | 19316 | #    ifdef DL_LAZY | 
|  | 19317 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 19318 | #    else | 
|  | 19319 | #      ifdef RTLD_NOW | 
|  | 19320 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 19321 | #      else | 
|  | 19322 | #        ifdef DL_NOW | 
|  | 19323 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 19324 | #        else | 
|  | 19325 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 19326 | #        endif | 
|  | 19327 | #      endif | 
|  | 19328 | #    endif | 
|  | 19329 | #  endif | 
|  | 19330 | #endif | 
|  | 19331 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19332 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 19333 | correspondingly for the symbols needed.  */ | 
|  | 19334 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
|  | 19335 | void fnord () __attribute__((visibility("default"))); | 
|  | 19336 | #endif | 
|  | 19337 |  | 
|  | 19338 | void fnord () { int i=42; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19339 | int main () | 
|  | 19340 | { | 
|  | 19341 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 19342 | int status = $lt_dlunknown; | 
|  | 19343 |  | 
|  | 19344 | if (self) | 
|  | 19345 | { | 
|  | 19346 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19347 | else | 
|  | 19348 | { | 
|  | 19349 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 19350 | else puts (dlerror ()); | 
|  | 19351 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19352 | /* dlclose (self); */ | 
|  | 19353 | } | 
|  | 19354 | else | 
|  | 19355 | puts (dlerror ()); | 
|  | 19356 |  | 
|  | 19357 | return status; | 
|  | 19358 | } | 
|  | 19359 | _LT_EOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19360 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19361 | (eval $ac_link) 2>&5 | 
|  | 19362 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 19364 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19365 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 19366 | lt_status=$? | 
|  | 19367 | case x$lt_status in | 
|  | 19368 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 19369 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
|  | 19370 | x$lt_dlunknown|x*)  ;; | 
|  | 19371 | esac | 
|  | 19372 | else : | 
|  | 19373 | # compilation failed | 
|  | 19374 |  | 
|  | 19375 | fi | 
|  | 19376 | fi | 
|  | 19377 | rm -fr conftest* | 
|  | 19378 |  | 
|  | 19379 | LIBS="$save_LIBS" | 
|  | 19380 |  | 
|  | 19381 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19383 | $as_echo "$libltdl_cv_need_uscore" >&6; } | 
|  | 19384 | fi | 
|  | 19385 | fi | 
|  | 19386 |  | 
|  | 19387 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 19388 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19389 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19390 |  | 
|  | 19391 | fi | 
|  | 19392 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19394 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19395 | if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19396 | $as_echo_n "(cached) " >&6 | 
|  | 19397 | else | 
|  | 19398 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 19399 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 19400 | # For now, we just catch OSes we know something about -- in the | 
|  | 19401 | # future, we'll try test this programmatically. | 
|  | 19402 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 19403 | case $host_os in | 
|  | 19404 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 19405 | # Unknown whether this is true for these versions of AIX, but | 
|  | 19406 | # we want this `case' here to explicitly catch those versions. | 
|  | 19407 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 19408 | ;; | 
|  | 19409 | aix[4-9]*) | 
|  | 19410 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19411 | ;; | 
|  | 19412 | amigaos*) | 
|  | 19413 | case $host_cpu in | 
|  | 19414 | powerpc) | 
|  | 19415 | lt_cv_sys_dlopen_deplibs=no | 
|  | 19416 | ;; | 
|  | 19417 | esac | 
|  | 19418 | ;; | 
|  | 19419 | darwin*) | 
|  | 19420 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 19421 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 19422 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19423 | ;; | 
|  | 19424 | freebsd* | dragonfly*) | 
|  | 19425 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19426 | ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19427 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19428 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 19429 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19430 | ;; | 
|  | 19431 | hpux10*|hpux11*) | 
|  | 19432 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19433 | ;; | 
|  | 19434 | interix*) | 
|  | 19435 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19436 | ;; | 
|  | 19437 | irix[12345]*|irix6.[01]*) | 
|  | 19438 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 19439 | # know how it worked for any of those versions. | 
|  | 19440 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 19441 | ;; | 
|  | 19442 | irix*) | 
|  | 19443 | # The case above catches anything before 6.2, and it's known that | 
|  | 19444 | # at 6.2 and later dlopen does load deplibs. | 
|  | 19445 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19446 | ;; | 
|  | 19447 | netbsd*) | 
|  | 19448 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19449 | ;; | 
|  | 19450 | openbsd*) | 
|  | 19451 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19452 | ;; | 
|  | 19453 | osf[1234]*) | 
|  | 19454 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 19455 | # it did *not* use an RPATH in a shared library to find objects the | 
|  | 19456 | # library depends on, so we explicitly say `no'. | 
|  | 19457 | lt_cv_sys_dlopen_deplibs=no | 
|  | 19458 | ;; | 
|  | 19459 | osf5.0|osf5.0a|osf5.1) | 
|  | 19460 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 19461 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 19462 | # that the library depends on, but there's no easy way to know if that | 
|  | 19463 | # patch is installed.  Since this is the case, all we can really | 
|  | 19464 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 19465 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 19466 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 19467 | ;; | 
|  | 19468 | osf*) | 
|  | 19469 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 19470 | # the comments above for what we know about them. | 
|  | 19471 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 19472 | # is used to find them so we can finally say `yes'. | 
|  | 19473 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19474 | ;; | 
|  | 19475 | qnx*) | 
|  | 19476 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19477 | ;; | 
|  | 19478 | solaris*) | 
|  | 19479 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 19480 | ;; | 
|  | 19481 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 19482 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 19483 | ;; | 
|  | 19484 | esac | 
|  | 19485 |  | 
|  | 19486 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19488 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | 
|  | 19489 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | 
|  | 19490 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19491 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19492 |  | 
|  | 19493 | fi | 
|  | 19494 |  | 
|  | 19495 | : | 
|  | 19496 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19497 | for ac_header in argz.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19498 | do : | 
|  | 19499 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | 
|  | 19500 | " | 
|  | 19501 | if test "x$ac_cv_header_argz_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19502 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19503 | #define HAVE_ARGZ_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19504 | _ACEOF | 
|  | 19505 |  | 
|  | 19506 | fi | 
|  | 19507 |  | 
|  | 19508 | done | 
|  | 19509 |  | 
|  | 19510 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19511 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19512 | #  include <argz.h> | 
|  | 19513 | #endif | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19514 | " | 
|  | 19515 | if test "x$ac_cv_type_error_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19516 |  | 
|  | 19517 | cat >>confdefs.h <<_ACEOF | 
|  | 19518 | #define HAVE_ERROR_T 1 | 
|  | 19519 | _ACEOF | 
|  | 19520 |  | 
|  | 19521 |  | 
|  | 19522 | else | 
|  | 19523 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19524 | $as_echo "#define error_t int" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19525 |  | 
|  | 19526 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19527 | $as_echo "#define __error_t_defined 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19528 |  | 
|  | 19529 | fi | 
|  | 19530 |  | 
|  | 19531 |  | 
|  | 19532 | ARGZ_H= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19533 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | 
|  | 19534 | argz_next argz_stringify | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19535 | do : | 
|  | 19536 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 19537 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19538 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19539 | cat >>confdefs.h <<_ACEOF | 
|  | 19540 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 19541 | _ACEOF | 
|  | 19542 |  | 
|  | 19543 | else | 
|  | 19544 | ARGZ_H=argz.h; | 
|  | 19545 |  | 
|  | 19546 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
|  | 19547 |  | 
|  | 19548 | fi | 
|  | 19549 | done | 
|  | 19550 |  | 
|  | 19551 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19552 | if test -z "$ARGZ_H"; then : | 
|  | 19553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19554 | $as_echo_n "checking if argz actually works... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19555 | if test "${lt_cv_sys_argz_works+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19556 | $as_echo_n "(cached) " >&6 | 
|  | 19557 | else | 
|  | 19558 | case $host_os in #( | 
|  | 19559 | *cygwin*) | 
|  | 19560 | lt_cv_sys_argz_works=no | 
|  | 19561 | if test "$cross_compiling" != no; then | 
|  | 19562 | lt_cv_sys_argz_works="guessing no" | 
|  | 19563 | else | 
|  | 19564 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | 
|  | 19565 | save_IFS=$IFS | 
|  | 19566 | IFS=-. | 
|  | 19567 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | 
|  | 19568 | IFS=$save_IFS | 
|  | 19569 | lt_os_major=${2-0} | 
|  | 19570 | lt_os_minor=${3-0} | 
|  | 19571 | lt_os_micro=${4-0} | 
|  | 19572 | if test "$lt_os_major" -gt 1 \ | 
|  | 19573 | || { test "$lt_os_major" -eq 1 \ | 
|  | 19574 | && { test "$lt_os_minor" -gt 5 \ | 
|  | 19575 | || { test "$lt_os_minor" -eq 5 \ | 
|  | 19576 | && test "$lt_os_micro" -gt 24; }; }; }; then | 
|  | 19577 | lt_cv_sys_argz_works=yes | 
|  | 19578 | fi | 
|  | 19579 | fi | 
|  | 19580 | ;; #( | 
|  | 19581 | *) lt_cv_sys_argz_works=yes ;; | 
|  | 19582 | esac | 
|  | 19583 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19585 | $as_echo "$lt_cv_sys_argz_works" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19586 | if test $lt_cv_sys_argz_works = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19587 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19588 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19589 |  | 
|  | 19590 | else | 
|  | 19591 | ARGZ_H=argz.h | 
|  | 19592 |  | 
|  | 19593 |  | 
|  | 19594 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
|  | 19595 |  | 
|  | 19596 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19597 | fi | 
|  | 19598 |  | 
|  | 19599 |  | 
|  | 19600 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19602 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19603 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19604 | $as_echo_n "(cached) " >&6 | 
|  | 19605 | else | 
|  | 19606 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 19607 | libltdl_cv_preloaded_symbols=yes | 
|  | 19608 | else | 
|  | 19609 | libltdl_cv_preloaded_symbols=no | 
|  | 19610 | fi | 
|  | 19611 |  | 
|  | 19612 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19614 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | 
|  | 19615 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 19616 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19617 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19618 |  | 
|  | 19619 | fi | 
|  | 19620 |  | 
|  | 19621 | # Set options | 
|  | 19622 |  | 
|  | 19623 |  | 
|  | 19624 |  | 
|  | 19625 |  | 
|  | 19626 |  | 
|  | 19627 |  | 
|  | 19628 |  | 
|  | 19629 |  | 
|  | 19630 |  | 
|  | 19631 |  | 
|  | 19632 |  | 
|  | 19633 | # Check whether --with-included_ltdl was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19634 | if test "${with_included_ltdl+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19635 | withval=$with_included_ltdl; | 
|  | 19636 | fi | 
|  | 19637 |  | 
|  | 19638 |  | 
|  | 19639 | if test "x$with_included_ltdl" != xyes; then | 
|  | 19640 | # We are not being forced to use the included libltdl sources, so | 
|  | 19641 | # decide whether there is a useful installed version we can use. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19642 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19643 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19644 | " | 
|  | 19645 | if test "x$ac_cv_header_ltdl_h" = x""yes; then : | 
|  | 19646 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19647 | #include <ltdl.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19648 | " | 
|  | 19649 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then : | 
|  | 19650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19651 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19652 | if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19653 | $as_echo_n "(cached) " >&6 | 
|  | 19654 | else | 
|  | 19655 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19656 | LIBS="-lltdl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19658 | /* end confdefs.h.  */ | 
|  | 19659 |  | 
|  | 19660 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19661 | Use char because int might match the return type of a GCC | 
|  | 19662 | builtin and then its argument prototype would still apply.  */ | 
|  | 19663 | #ifdef __cplusplus | 
|  | 19664 | extern "C" | 
|  | 19665 | #endif | 
|  | 19666 | char lt_dladvise_preload (); | 
|  | 19667 | int | 
|  | 19668 | main () | 
|  | 19669 | { | 
|  | 19670 | return lt_dladvise_preload (); | 
|  | 19671 | ; | 
|  | 19672 | return 0; | 
|  | 19673 | } | 
|  | 19674 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19675 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19676 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | 
|  | 19677 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19678 | ac_cv_lib_ltdl_lt_dladvise_preload=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19679 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19680 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19681 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19682 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19683 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19685 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19686 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19687 | with_included_ltdl=no | 
|  | 19688 | else | 
|  | 19689 | with_included_ltdl=yes | 
|  | 19690 | fi | 
|  | 19691 |  | 
|  | 19692 | else | 
|  | 19693 | with_included_ltdl=yes | 
|  | 19694 | fi | 
|  | 19695 |  | 
|  | 19696 | else | 
|  | 19697 | with_included_ltdl=yes | 
|  | 19698 | fi | 
|  | 19699 |  | 
|  | 19700 |  | 
|  | 19701 | fi | 
|  | 19702 |  | 
|  | 19703 |  | 
|  | 19704 |  | 
|  | 19705 |  | 
|  | 19706 | # Check whether --with-ltdl_include was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19707 | if test "${with_ltdl_include+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19708 | withval=$with_ltdl_include; | 
|  | 19709 | fi | 
|  | 19710 |  | 
|  | 19711 |  | 
|  | 19712 | if test -n "$with_ltdl_include"; then | 
|  | 19713 | if test -f "$with_ltdl_include/ltdl.h"; then : | 
|  | 19714 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19715 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19716 | fi | 
|  | 19717 | else | 
|  | 19718 | with_ltdl_include=no | 
|  | 19719 | fi | 
|  | 19720 |  | 
|  | 19721 |  | 
|  | 19722 | # Check whether --with-ltdl_lib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19723 | if test "${with_ltdl_lib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19724 | withval=$with_ltdl_lib; | 
|  | 19725 | fi | 
|  | 19726 |  | 
|  | 19727 |  | 
|  | 19728 | if test -n "$with_ltdl_lib"; then | 
|  | 19729 | if test -f "$with_ltdl_lib/libltdl.la"; then : | 
|  | 19730 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19731 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19732 | fi | 
|  | 19733 | else | 
|  | 19734 | with_ltdl_lib=no | 
|  | 19735 | fi | 
|  | 19736 |  | 
|  | 19737 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | 
|  | 19738 | ,yes,no,no,) | 
|  | 19739 | case $enable_ltdl_convenience in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19740 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19741 | "") enable_ltdl_convenience=yes | 
|  | 19742 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 
|  | 19743 | esac | 
|  | 19744 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | 
|  | 19745 | LTDLDEPS=$LIBLTDL | 
|  | 19746 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | 
|  | 19747 |  | 
|  | 19748 |  | 
|  | 19749 |  | 
|  | 19750 |  | 
|  | 19751 |  | 
|  | 19752 | # For backwards non-gettext consistent compatibility... | 
|  | 19753 | INCLTDL="$LTDLINCL" | 
|  | 19754 |  | 
|  | 19755 |  | 
|  | 19756 | ;; | 
|  | 19757 | ,no,no,no,) | 
|  | 19758 | # If the included ltdl is not to be used, then use the | 
|  | 19759 | # preinstalled libltdl we found. | 
|  | 19760 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19761 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19762 |  | 
|  | 19763 | LIBLTDL=-lltdl | 
|  | 19764 | LTDLDEPS= | 
|  | 19765 | LTDLINCL= | 
|  | 19766 | ;; | 
|  | 19767 | ,no*,no,*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19768 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19769 | ;; | 
|  | 19770 | *)	with_included_ltdl=no | 
|  | 19771 | LIBLTDL="-L$with_ltdl_lib -lltdl" | 
|  | 19772 | LTDLDEPS= | 
|  | 19773 | LTDLINCL="-I$with_ltdl_include" | 
|  | 19774 | ;; | 
|  | 19775 | esac | 
|  | 19776 | INCLTDL="$LTDLINCL" | 
|  | 19777 |  | 
|  | 19778 | # Report our decision... | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19780 | $as_echo_n "checking where to find libltdl headers... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19782 | $as_echo "$LTDLINCL" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19784 | $as_echo_n "checking where to find libltdl library... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19786 | $as_echo "$LIBLTDL" >&6; } | 
|  | 19787 |  | 
|  | 19788 |  | 
|  | 19789 |  | 
|  | 19790 | # Check whether --enable-ltdl-install was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19791 | if test "${enable_ltdl_install+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19792 | enableval=$enable_ltdl_install; | 
|  | 19793 | fi | 
|  | 19794 |  | 
|  | 19795 |  | 
|  | 19796 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | 
|  | 19797 | *yes*) ;; | 
|  | 19798 | *) enable_ltdl_convenience=yes ;; | 
|  | 19799 | esac | 
|  | 19800 |  | 
|  | 19801 | if test x"${enable_ltdl_install-no}" != xno; then | 
|  | 19802 | INSTALL_LTDL_TRUE= | 
|  | 19803 | INSTALL_LTDL_FALSE='#' | 
|  | 19804 | else | 
|  | 19805 | INSTALL_LTDL_TRUE='#' | 
|  | 19806 | INSTALL_LTDL_FALSE= | 
|  | 19807 | fi | 
|  | 19808 |  | 
|  | 19809 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
|  | 19810 | CONVENIENCE_LTDL_TRUE= | 
|  | 19811 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 19812 | else | 
|  | 19813 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 19814 | CONVENIENCE_LTDL_FALSE= | 
|  | 19815 | fi | 
|  | 19816 |  | 
|  | 19817 |  | 
|  | 19818 |  | 
|  | 19819 |  | 
|  | 19820 |  | 
|  | 19821 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19822 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | 
|  | 19823 | # the user used.  This is so that ltdl.h can pick up the parent projects | 
|  | 19824 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | 
|  | 19825 | # definitions required by ltdl.c. | 
|  | 19826 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | 
|  | 19827 |  | 
|  | 19828 |  | 
|  | 19829 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19830 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19831 | do : | 
|  | 19832 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 19833 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 19834 | " | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19835 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19836 | cat >>confdefs.h <<_ACEOF | 
|  | 19837 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 19838 | _ACEOF | 
|  | 19839 |  | 
|  | 19840 | fi | 
|  | 19841 |  | 
|  | 19842 | done | 
|  | 19843 |  | 
|  | 19844 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19845 | for ac_func in closedir opendir readdir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19846 | do : | 
|  | 19847 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 19848 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19849 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19850 | cat >>confdefs.h <<_ACEOF | 
|  | 19851 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 19852 | _ACEOF | 
|  | 19853 |  | 
|  | 19854 | else | 
|  | 19855 |  | 
|  | 19856 |  | 
|  | 19857 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | 
|  | 19858 |  | 
|  | 19859 | fi | 
|  | 19860 | done | 
|  | 19861 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19862 | for ac_func in strlcat strlcpy | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19863 | do : | 
|  | 19864 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 19865 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 19866 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19867 | cat >>confdefs.h <<_ACEOF | 
|  | 19868 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 19869 | _ACEOF | 
|  | 19870 |  | 
|  | 19871 | else | 
|  | 19872 |  | 
|  | 19873 |  | 
|  | 19874 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | 
|  | 19875 |  | 
|  | 19876 | fi | 
|  | 19877 | done | 
|  | 19878 |  | 
|  | 19879 |  | 
|  | 19880 |  | 
|  | 19881 | cat >>confdefs.h <<_ACEOF | 
|  | 19882 | #define LT_LIBEXT "$libext" | 
|  | 19883 | _ACEOF | 
|  | 19884 |  | 
|  | 19885 |  | 
|  | 19886 | name=ltdl | 
|  | 19887 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` | 
|  | 19888 |  | 
|  | 19889 |  | 
|  | 19890 |  | 
|  | 19891 |  | 
|  | 19892 |  | 
|  | 19893 |  | 
|  | 19894 |  | 
|  | 19895 |  | 
|  | 19896 | # Only expand once: | 
|  | 19897 |  | 
|  | 19898 |  | 
|  | 19899 |  | 
|  | 19900 | # Check to see if building shared libraries | 
|  | 19901 | libtool_build_shared_libs='no' | 
|  | 19902 | if test "$enable_shared" = 'yes'; then | 
|  | 19903 | libtool_build_shared_libs='yes' | 
|  | 19904 | fi | 
|  | 19905 |  | 
|  | 19906 | # Check to see if building static libraries | 
|  | 19907 | libtool_build_static_libs='no' | 
|  | 19908 | if test "$enable_static" = 'yes'; then | 
|  | 19909 | libtool_build_static_libs='yes' | 
|  | 19910 | fi | 
|  | 19911 |  | 
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame] | 19912 | if test "${libtool_build_shared_libs}" = 'yes'; then | 
|  | 19913 | WITH_SHARED_LIBS_TRUE= | 
|  | 19914 | WITH_SHARED_LIBS_FALSE='#' | 
|  | 19915 | else | 
|  | 19916 | WITH_SHARED_LIBS_TRUE='#' | 
|  | 19917 | WITH_SHARED_LIBS_FALSE= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19918 | fi | 
|  | 19919 |  | 
|  | 19920 | # | 
|  | 19921 | # Enable support for building loadable modules | 
|  | 19922 | # | 
|  | 19923 |  | 
|  | 19924 | # Check whether --with-modules was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19925 | if test "${with_modules+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19926 | withval=$with_modules; with_modules=$withval | 
|  | 19927 | else | 
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 19928 | with_modules='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19929 | fi | 
|  | 19930 |  | 
|  | 19931 |  | 
|  | 19932 | # Only allow building loadable modules if we are building shared libraries | 
|  | 19933 | if test "$with_modules" != 'no' ; then | 
|  | 19934 | if test "$libtool_build_shared_libs" = 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19935 | { $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] | 19936 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} | 
|  | 19937 | with_modules='no' | 
|  | 19938 | fi | 
|  | 19939 | fi | 
|  | 19940 | if test "$with_modules" != 'no'; then | 
|  | 19941 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19942 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19943 |  | 
|  | 19944 | fi | 
|  | 19945 | if test "$with_modules" != 'no'; then | 
|  | 19946 | WITH_MODULES_TRUE= | 
|  | 19947 | WITH_MODULES_FALSE='#' | 
|  | 19948 | else | 
|  | 19949 | WITH_MODULES_TRUE='#' | 
|  | 19950 | WITH_MODULES_FALSE= | 
|  | 19951 | fi | 
|  | 19952 |  | 
|  | 19953 |  | 
|  | 19954 | # Enable building/use of libltdl if we are building shared libraries regardless | 
|  | 19955 | # of whether modules are built or not. | 
|  | 19956 | with_ltdl='no' | 
|  | 19957 | if test "$libtool_build_shared_libs" != 'no'; then | 
|  | 19958 | with_ltdl='yes' | 
|  | 19959 | fi | 
|  | 19960 |  | 
|  | 19961 | if test "$with_ltdl" != 'no'; then | 
|  | 19962 | WITH_LTDL_TRUE= | 
|  | 19963 | WITH_LTDL_FALSE='#' | 
|  | 19964 | else | 
|  | 19965 | WITH_LTDL_TRUE='#' | 
|  | 19966 | WITH_LTDL_FALSE= | 
|  | 19967 | fi | 
|  | 19968 |  | 
|  | 19969 | if test "$with_ltdl" != 'no'; then | 
|  | 19970 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19971 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19972 |  | 
|  | 19973 |  | 
|  | 19974 | # Set DLLDFLAGS | 
|  | 19975 | if test X"$enable_shared" = Xyes; then | 
|  | 19976 | DLLDFLAGS=-export-dynamic | 
|  | 19977 |  | 
|  | 19978 | fi | 
|  | 19979 | fi | 
|  | 19980 |  | 
|  | 19981 | # Enable build using delegate libraries built in subdirectories rather than installed | 
| cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 19982 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19983 | # Check whether --enable-delegate-build was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19984 | if test "${enable_delegate_build+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19985 | enableval=$enable_delegate_build; enable_delegate_build=$enableval | 
|  | 19986 | else | 
|  | 19987 | enable_delegate_build='no' | 
|  | 19988 | fi | 
|  | 19989 |  | 
|  | 19990 |  | 
|  | 19991 | # Check whether --enable-deprecated was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19992 | if test "${enable_deprecated+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19993 | enableval=$enable_deprecated; enable_deprecated=$enableval | 
|  | 19994 | else | 
|  | 19995 | enable_deprecated='no' | 
|  | 19996 | fi | 
|  | 19997 |  | 
|  | 19998 |  | 
|  | 19999 | if test "$enable_deprecated" = 'yes'; then | 
|  | 20000 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20001 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20002 |  | 
|  | 20003 | else | 
|  | 20004 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " | 
|  | 20005 | fi | 
|  | 20006 |  | 
|  | 20007 | # Build a version of ImageMagick which operates uninstalled. | 
|  | 20008 | # Used to build distributions located via MAGICK_HOME / executable path | 
|  | 20009 | # Check whether --enable-installed was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20010 | if test "${enable_installed+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20011 | enableval=$enable_installed; enable_installed=$enableval | 
|  | 20012 | else | 
|  | 20013 | enable_installed='yes' | 
|  | 20014 | fi | 
|  | 20015 |  | 
|  | 20016 |  | 
|  | 20017 | if test "$enable_installed" = 'yes'; then | 
|  | 20018 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20019 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20020 |  | 
|  | 20021 | else | 
|  | 20022 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " | 
|  | 20023 | fi | 
|  | 20024 |  | 
|  | 20025 | # Permit enciphering and deciphering image pixels. | 
|  | 20026 | # Check whether --enable-cipher was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20027 | if test "${enable_cipher+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20028 | enableval=$enable_cipher; enable_cipher=$enableval | 
|  | 20029 | else | 
|  | 20030 | enable_cipher='yes' | 
|  | 20031 | fi | 
|  | 20032 |  | 
|  | 20033 |  | 
|  | 20034 | if test "$enable_cipher" = 'yes'; then | 
|  | 20035 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20036 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20037 |  | 
|  | 20038 | fi | 
|  | 20039 |  | 
|  | 20040 | # Build an embeddable version of ImageMagick. | 
|  | 20041 | # Check whether --enable-embeddable was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20042 | if test "${enable_embeddable+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20043 | enableval=$enable_embeddable; enable_embeddable=$enableval | 
|  | 20044 | else | 
|  | 20045 | enable_embeddable='no' | 
|  | 20046 | fi | 
|  | 20047 |  | 
|  | 20048 |  | 
|  | 20049 | if test "$enable_embeddable" = 'yes'; then | 
|  | 20050 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20051 | $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20052 |  | 
|  | 20053 | fi | 
|  | 20054 |  | 
|  | 20055 | # Build a high dynamic range version of ImageMagick. | 
|  | 20056 | # Check whether --enable-hdri was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20057 | if test "${enable_hdri+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20058 | enableval=$enable_hdri; enable_hdri=$enableval | 
|  | 20059 | else | 
|  | 20060 | enable_hdri='no' | 
|  | 20061 | fi | 
|  | 20062 |  | 
|  | 20063 |  | 
|  | 20064 | MAGICK_HDRI="" | 
|  | 20065 | if test "$enable_hdri" = 'yes'; then | 
|  | 20066 | MAGICK_HDRI="HDRI" | 
|  | 20067 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20068 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20069 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 20070 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20071 | fi | 
|  | 20072 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20073 | # Build a version of ImageMagick with assert statements. | 
|  | 20074 | # Check whether --enable-assert was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20075 | if test "${enable_assert+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20076 | enableval=$enable_assert; enable_assert=$enableval | 
|  | 20077 | else | 
|  | 20078 | enable_assert='yes' | 
|  | 20079 | fi | 
|  | 20080 |  | 
|  | 20081 |  | 
|  | 20082 | if test "$enable_assert" = 'no'; then | 
|  | 20083 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20084 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20085 |  | 
|  | 20086 | fi | 
|  | 20087 |  | 
|  | 20088 | # Add configure option --enable-maintainer-mode which enables dependency | 
|  | 20089 | # checking and generation useful to package maintainers.  This is made an | 
|  | 20090 | # option to avoid confusing end users. | 
|  | 20091 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20093 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | 
|  | 20094 | # Check whether --enable-maintainer-mode was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20095 | if test "${enable_maintainer_mode+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20096 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 
|  | 20097 | else | 
|  | 20098 | USE_MAINTAINER_MODE=no | 
|  | 20099 | fi | 
|  | 20100 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20102 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | 
|  | 20103 | if test $USE_MAINTAINER_MODE = yes; then | 
|  | 20104 | MAINTAINER_MODE_TRUE= | 
|  | 20105 | MAINTAINER_MODE_FALSE='#' | 
|  | 20106 | else | 
|  | 20107 | MAINTAINER_MODE_TRUE='#' | 
|  | 20108 | MAINTAINER_MODE_FALSE= | 
|  | 20109 | fi | 
|  | 20110 |  | 
|  | 20111 | MAINT=$MAINTAINER_MODE_TRUE | 
|  | 20112 |  | 
|  | 20113 |  | 
|  | 20114 |  | 
|  | 20115 |  | 
|  | 20116 | # Enable ccmalloc memory debugging support | 
|  | 20117 | # Check whether --enable-ccmalloc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20118 | if test "${enable_ccmalloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20119 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval | 
|  | 20120 | else | 
|  | 20121 | enable_ccmalloc='no' | 
|  | 20122 | fi | 
|  | 20123 |  | 
|  | 20124 |  | 
|  | 20125 | # Enable Electric Fence memory debugging support | 
|  | 20126 | # Check whether --enable-efence was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20127 | if test "${enable_efence+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20128 | enableval=$enable_efence; enable_efence=$enableval | 
|  | 20129 | else | 
|  | 20130 | enable_efence='no' | 
|  | 20131 | fi | 
|  | 20132 |  | 
|  | 20133 |  | 
|  | 20134 | # Enable prof-based profiling support | 
|  | 20135 | # Check whether --enable-prof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20136 | if test "${enable_prof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20137 | enableval=$enable_prof; enable_prof=$enableval | 
|  | 20138 | else | 
|  | 20139 | enable_prof='no' | 
|  | 20140 | fi | 
|  | 20141 |  | 
|  | 20142 |  | 
|  | 20143 | # Enable gprof-based profiling support | 
|  | 20144 | # Check whether --enable-gprof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20145 | if test "${enable_gprof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20146 | enableval=$enable_gprof; enable_gprof=$enableval | 
|  | 20147 | else | 
|  | 20148 | enable_gprof='no' | 
|  | 20149 | fi | 
|  | 20150 |  | 
|  | 20151 |  | 
|  | 20152 | # Enable gcov-based profiling support | 
|  | 20153 | # Check whether --enable-gcov was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20154 | if test "${enable_gcov+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20155 | enableval=$enable_gcov; enable_gcov=$enableval | 
|  | 20156 | else | 
|  | 20157 | enable_gcov='no' | 
|  | 20158 | fi | 
|  | 20159 |  | 
|  | 20160 |  | 
|  | 20161 | enable_profiling='no' | 
|  | 20162 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then | 
|  | 20163 | enable_profiling='yes' | 
|  | 20164 | if test "$libtool_build_shared_libs" = 'yes'; then | 
|  | 20165 | echo "Warning: Can not profile code using shared libraries" | 
|  | 20166 | fi | 
|  | 20167 | fi | 
|  | 20168 |  | 
|  | 20169 | # Magick API method prefix | 
|  | 20170 |  | 
|  | 20171 | # Check whether --with-method-prefix was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20172 | if test "${with_method_prefix+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20173 | withval=$with_method_prefix; with_method_prefix=$enableval | 
|  | 20174 | else | 
|  | 20175 | with_method_prefix='' | 
|  | 20176 | fi | 
|  | 20177 |  | 
|  | 20178 |  | 
|  | 20179 | if test "$with_method_prefix" != ''; then | 
|  | 20180 |  | 
|  | 20181 | cat >>confdefs.h <<_ACEOF | 
|  | 20182 | #define NAMESPACE_PREFIX $with_method_prefix | 
|  | 20183 | _ACEOF | 
|  | 20184 |  | 
|  | 20185 | fi | 
|  | 20186 |  | 
|  | 20187 | # Number of bits in a Quantum | 
|  | 20188 |  | 
|  | 20189 | # Check whether --with-quantum-depth was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20190 | if test "${with_quantum_depth+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20191 | withval=$with_quantum_depth; with_quantum_depth=$withval | 
|  | 20192 | else | 
|  | 20193 | with_quantum_depth=16 | 
|  | 20194 | fi | 
|  | 20195 |  | 
|  | 20196 |  | 
|  | 20197 | if test "$with_quantum_depth" != '8'; then | 
|  | 20198 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " | 
|  | 20199 | fi | 
|  | 20200 |  | 
|  | 20201 | case "${with_quantum_depth}" in | 
|  | 20202 | 8 ) ;; | 
|  | 20203 | 16 ) ;; | 
|  | 20204 | 32 ) ;; | 
|  | 20205 | 64 ) ;; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 20206 | * ) 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] | 20207 | esac | 
|  | 20208 | QUANTUM_DEPTH="$with_quantum_depth" | 
|  | 20209 |  | 
|  | 20210 | cat >>confdefs.h <<_ACEOF | 
|  | 20211 | #define QUANTUM_DEPTH $QUANTUM_DEPTH | 
|  | 20212 | _ACEOF | 
|  | 20213 |  | 
|  | 20214 |  | 
|  | 20215 | # Set pixel cache threshold | 
|  | 20216 |  | 
|  | 20217 | # Check whether --with-cache was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20218 | if test "${with_cache+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20219 | withval=$with_cache; with_cache=$withval | 
|  | 20220 | else | 
|  | 20221 | with_cache='' | 
|  | 20222 | fi | 
|  | 20223 |  | 
|  | 20224 |  | 
|  | 20225 | if test "$with_cache" != ''; then | 
|  | 20226 |  | 
|  | 20227 | cat >>confdefs.h <<_ACEOF | 
|  | 20228 | #define PixelCacheThreshold $with_cache | 
|  | 20229 | _ACEOF | 
|  | 20230 |  | 
|  | 20231 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " | 
|  | 20232 | fi | 
|  | 20233 |  | 
|  | 20234 | # Disable/Enable support for full delegate paths | 
|  | 20235 |  | 
|  | 20236 | # Check whether --with-frozenpaths was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20237 | if test "${with_frozenpaths+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20238 | withval=$with_frozenpaths; with_frozenpaths=$withval | 
|  | 20239 | else | 
|  | 20240 | with_frozenpaths='no' | 
|  | 20241 | fi | 
|  | 20242 |  | 
|  | 20243 |  | 
|  | 20244 | # Enable build/install of Magick++ | 
|  | 20245 |  | 
|  | 20246 | # Check whether --with-magick-plus-plus was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20247 | if test "${with_magick_plus_plus+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20248 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval | 
|  | 20249 | else | 
|  | 20250 | with_magick_plus_plus='yes' | 
|  | 20251 | fi | 
|  | 20252 |  | 
|  | 20253 |  | 
|  | 20254 | # Disable build/install of PerlMagick. | 
|  | 20255 |  | 
|  | 20256 | # Check whether --with-perl was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20257 | if test "${with_perl+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20258 | withval=$with_perl; with_perl=$withval | 
|  | 20259 | else | 
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 20260 | with_perl='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20261 | fi | 
|  | 20262 |  | 
|  | 20263 |  | 
|  | 20264 | # Options to pass when configuring PerlMagick | 
|  | 20265 |  | 
|  | 20266 | # Check whether --with-perl-options was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20267 | if test "${with_perl_options+set}" = set; then : | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 20268 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20269 | fi | 
|  | 20270 |  | 
|  | 20271 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20272 |  | 
|  | 20273 | # Enable umem, object-caching memory allocation library. | 
|  | 20274 |  | 
|  | 20275 | # Check whether --with-umem was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20276 | if test "${with_umem+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20277 | withval=$with_umem; with_umem=$withval | 
|  | 20278 | else | 
|  | 20279 | with_umem='no' | 
|  | 20280 | fi | 
|  | 20281 |  | 
|  | 20282 | if test "$with_umem" != 'yes' ; then | 
|  | 20283 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " | 
|  | 20284 | fi | 
|  | 20285 |  | 
|  | 20286 | # | 
|  | 20287 | # Specify path to shared libstdc++ if not in normal location | 
|  | 20288 | # | 
|  | 20289 |  | 
|  | 20290 | # Check whether --with-libstdc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20291 | if test "${with_libstdc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20292 | withval=$with_libstdc; with_libstdc=$withval | 
|  | 20293 | else | 
|  | 20294 | with_libstdc='' | 
|  | 20295 | fi | 
|  | 20296 |  | 
|  | 20297 |  | 
|  | 20298 | if test "$with_libstdc" != ''; then | 
|  | 20299 | if test -d "$with_libstdc"; then | 
|  | 20300 | LIBSTDCLDFLAGS="-L$with_libstdc" | 
|  | 20301 | fi | 
|  | 20302 | fi | 
|  | 20303 |  | 
|  | 20304 |  | 
|  | 20305 | # Does gcc required -traditional? | 
|  | 20306 | if test $ac_cv_c_compiler_gnu = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20308 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20309 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20310 | $as_echo_n "(cached) " >&6 | 
|  | 20311 | else | 
|  | 20312 | ac_pattern="Autoconf.*'x'" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20314 | /* end confdefs.h.  */ | 
|  | 20315 | #include <sgtty.h> | 
|  | 20316 | Autoconf TIOCGETP | 
|  | 20317 | _ACEOF | 
|  | 20318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20319 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20320 | ac_cv_prog_gcc_traditional=yes | 
|  | 20321 | else | 
|  | 20322 | ac_cv_prog_gcc_traditional=no | 
|  | 20323 | fi | 
|  | 20324 | rm -f conftest* | 
|  | 20325 |  | 
|  | 20326 |  | 
|  | 20327 | if test $ac_cv_prog_gcc_traditional = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20329 | /* end confdefs.h.  */ | 
|  | 20330 | #include <termio.h> | 
|  | 20331 | Autoconf TCGETA | 
|  | 20332 | _ACEOF | 
|  | 20333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20334 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20335 | ac_cv_prog_gcc_traditional=yes | 
|  | 20336 | fi | 
|  | 20337 | rm -f conftest* | 
|  | 20338 |  | 
|  | 20339 | fi | 
|  | 20340 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20341 | { $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] | 20342 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | 
|  | 20343 | if test $ac_cv_prog_gcc_traditional = yes; then | 
|  | 20344 | CC="$CC -traditional" | 
|  | 20345 | fi | 
|  | 20346 | fi | 
|  | 20347 |  | 
|  | 20348 |  | 
|  | 20349 | ######## | 
|  | 20350 | # | 
|  | 20351 | # Set defines required to build DLLs and modules using MinGW | 
|  | 20352 | # | 
|  | 20353 | ######## | 
|  | 20354 | # These options are set for multi-thread DLL module build | 
|  | 20355 | #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_ | 
|  | 20356 | #  module:              _DLL | 
|  | 20357 | #  executable/Magick++: _DLL _MAGICKMOD_ | 
|  | 20358 | MODULE_EXTRA_CPPFLAGS='' | 
|  | 20359 | LIBRARY_EXTRA_CPPFLAGS='' | 
|  | 20360 | if test "${native_win32_build}" = 'yes'; then | 
|  | 20361 | if test "${libtool_build_shared_libs}" = 'yes'; then | 
|  | 20362 | CPPFLAGS="$CPPFLAGS -D_DLL" | 
|  | 20363 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" | 
|  | 20364 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" | 
|  | 20365 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
|  | 20366 | if test "$with_modules" = 'yes'; then | 
|  | 20367 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" | 
|  | 20368 | else | 
|  | 20369 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
|  | 20370 | fi | 
|  | 20371 | else | 
|  | 20372 | CPPFLAGS="$CPPFLAGS -D_LIB" | 
|  | 20373 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" | 
|  | 20374 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" | 
|  | 20375 | fi | 
|  | 20376 | if test "$with_threads" = 'yes'; then | 
|  | 20377 | CPPFLAGS="$CPPFLAGS -D_MT" | 
|  | 20378 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" | 
|  | 20379 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" | 
|  | 20380 | fi | 
|  | 20381 | fi | 
|  | 20382 |  | 
|  | 20383 |  | 
|  | 20384 |  | 
|  | 20385 | # Check standard headers | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20386 | { $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] | 20387 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20388 | if test "${ac_cv_header_stdc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20389 | $as_echo_n "(cached) " >&6 | 
|  | 20390 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20392 | /* end confdefs.h.  */ | 
|  | 20393 | #include <stdlib.h> | 
|  | 20394 | #include <stdarg.h> | 
|  | 20395 | #include <string.h> | 
|  | 20396 | #include <float.h> | 
|  | 20397 |  | 
|  | 20398 | int | 
|  | 20399 | main () | 
|  | 20400 | { | 
|  | 20401 |  | 
|  | 20402 | ; | 
|  | 20403 | return 0; | 
|  | 20404 | } | 
|  | 20405 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20406 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20407 | ac_cv_header_stdc=yes | 
|  | 20408 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20409 | ac_cv_header_stdc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20410 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20412 |  | 
|  | 20413 | if test $ac_cv_header_stdc = yes; then | 
|  | 20414 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20416 | /* end confdefs.h.  */ | 
|  | 20417 | #include <string.h> | 
|  | 20418 |  | 
|  | 20419 | _ACEOF | 
|  | 20420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20421 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 20422 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20423 | else | 
|  | 20424 | ac_cv_header_stdc=no | 
|  | 20425 | fi | 
|  | 20426 | rm -f conftest* | 
|  | 20427 |  | 
|  | 20428 | fi | 
|  | 20429 |  | 
|  | 20430 | if test $ac_cv_header_stdc = yes; then | 
|  | 20431 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20433 | /* end confdefs.h.  */ | 
|  | 20434 | #include <stdlib.h> | 
|  | 20435 |  | 
|  | 20436 | _ACEOF | 
|  | 20437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20438 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 20439 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20440 | else | 
|  | 20441 | ac_cv_header_stdc=no | 
|  | 20442 | fi | 
|  | 20443 | rm -f conftest* | 
|  | 20444 |  | 
|  | 20445 | fi | 
|  | 20446 |  | 
|  | 20447 | if test $ac_cv_header_stdc = yes; then | 
|  | 20448 | # /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] | 20449 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20450 | : | 
|  | 20451 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20453 | /* end confdefs.h.  */ | 
|  | 20454 | #include <ctype.h> | 
|  | 20455 | #include <stdlib.h> | 
|  | 20456 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 20457 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 20458 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 20459 | #else | 
|  | 20460 | # define ISLOWER(c) \ | 
|  | 20461 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 20462 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 20463 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 20464 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 20465 | #endif | 
|  | 20466 |  | 
|  | 20467 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 20468 | int | 
|  | 20469 | main () | 
|  | 20470 | { | 
|  | 20471 | int i; | 
|  | 20472 | for (i = 0; i < 256; i++) | 
|  | 20473 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 20474 | || toupper (i) != TOUPPER (i)) | 
|  | 20475 | return 2; | 
|  | 20476 | return 0; | 
|  | 20477 | } | 
|  | 20478 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20479 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 20480 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20481 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20482 | ac_cv_header_stdc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20483 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20484 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 20485 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20486 | fi | 
|  | 20487 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20488 | fi | 
|  | 20489 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20491 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 20492 | if test $ac_cv_header_stdc = yes; then | 
|  | 20493 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20494 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20495 |  | 
|  | 20496 | fi | 
|  | 20497 |  | 
|  | 20498 | if ! test x"$ac_cv_header_stdc" = x"yes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20499 | { $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] | 20500 | header files.  Compilation cannot proceed.  Please install the ANSI C | 
|  | 20501 | headers and rerun this script." >&5 | 
|  | 20502 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C | 
|  | 20503 | header files.  Compilation cannot proceed.  Please install the ANSI C | 
|  | 20504 | headers and rerun this script." >&2;}; | 
|  | 20505 | fi | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 20506 |  | 
|  | 20507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 | 
|  | 20508 | $as_echo_n "checking whether to enable assertions... " >&6; } | 
|  | 20509 | # Check whether --enable-assert was given. | 
|  | 20510 | if test "${enable_assert+set}" = set; then : | 
|  | 20511 | enableval=$enable_assert; ac_enable_assert=$enableval | 
|  | 20512 | if       test "x$enableval" = xno; then : | 
|  | 20513 |  | 
|  | 20514 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
|  | 20515 |  | 
|  | 20516 | elif test "x$enableval" != xyes; then : | 
|  | 20517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 | 
|  | 20518 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} | 
|  | 20519 | ac_enable_assert=yes | 
|  | 20520 | fi | 
|  | 20521 | else | 
|  | 20522 | ac_enable_assert=yes | 
|  | 20523 | fi | 
|  | 20524 |  | 
|  | 20525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 | 
|  | 20526 | $as_echo "$ac_enable_assert" >&6; } | 
|  | 20527 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20528 | ac_header_dirent=no | 
|  | 20529 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
|  | 20530 | 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] | 20531 | { $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] | 20532 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 20533 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20534 | $as_echo_n "(cached) " >&6 | 
|  | 20535 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20537 | /* end confdefs.h.  */ | 
|  | 20538 | #include <sys/types.h> | 
|  | 20539 | #include <$ac_hdr> | 
|  | 20540 |  | 
|  | 20541 | int | 
|  | 20542 | main () | 
|  | 20543 | { | 
|  | 20544 | if ((DIR *) 0) | 
|  | 20545 | return 0; | 
|  | 20546 | ; | 
|  | 20547 | return 0; | 
|  | 20548 | } | 
|  | 20549 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20550 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20551 | eval "$as_ac_Header=yes" | 
|  | 20552 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20553 | eval "$as_ac_Header=no" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20554 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20556 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20557 | eval ac_res=\$$as_ac_Header | 
|  | 20558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20559 | $as_echo "$ac_res" >&6; } | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 20560 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20561 | cat >>confdefs.h <<_ACEOF | 
|  | 20562 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
|  | 20563 | _ACEOF | 
|  | 20564 |  | 
|  | 20565 | ac_header_dirent=$ac_hdr; break | 
|  | 20566 | fi | 
|  | 20567 |  | 
|  | 20568 | done | 
|  | 20569 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 20570 | if test $ac_header_dirent = dirent.h; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20572 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20573 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20574 | $as_echo_n "(cached) " >&6 | 
|  | 20575 | else | 
|  | 20576 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20578 | /* end confdefs.h.  */ | 
|  | 20579 |  | 
|  | 20580 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20581 | Use char because int might match the return type of a GCC | 
|  | 20582 | builtin and then its argument prototype would still apply.  */ | 
|  | 20583 | #ifdef __cplusplus | 
|  | 20584 | extern "C" | 
|  | 20585 | #endif | 
|  | 20586 | char opendir (); | 
|  | 20587 | int | 
|  | 20588 | main () | 
|  | 20589 | { | 
|  | 20590 | return opendir (); | 
|  | 20591 | ; | 
|  | 20592 | return 0; | 
|  | 20593 | } | 
|  | 20594 | _ACEOF | 
|  | 20595 | for ac_lib in '' dir; do | 
|  | 20596 | if test -z "$ac_lib"; then | 
|  | 20597 | ac_res="none required" | 
|  | 20598 | else | 
|  | 20599 | ac_res=-l$ac_lib | 
|  | 20600 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 20601 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20602 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20603 | ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20604 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20605 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20606 | conftest$ac_exeext | 
|  | 20607 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20608 | break | 
|  | 20609 | fi | 
|  | 20610 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20611 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 20612 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20613 | else | 
|  | 20614 | ac_cv_search_opendir=no | 
|  | 20615 | fi | 
|  | 20616 | rm conftest.$ac_ext | 
|  | 20617 | LIBS=$ac_func_search_save_LIBS | 
|  | 20618 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20620 | $as_echo "$ac_cv_search_opendir" >&6; } | 
|  | 20621 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20622 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20623 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 20624 |  | 
|  | 20625 | fi | 
|  | 20626 |  | 
|  | 20627 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20629 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20630 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20631 | $as_echo_n "(cached) " >&6 | 
|  | 20632 | else | 
|  | 20633 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20635 | /* end confdefs.h.  */ | 
|  | 20636 |  | 
|  | 20637 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20638 | Use char because int might match the return type of a GCC | 
|  | 20639 | builtin and then its argument prototype would still apply.  */ | 
|  | 20640 | #ifdef __cplusplus | 
|  | 20641 | extern "C" | 
|  | 20642 | #endif | 
|  | 20643 | char opendir (); | 
|  | 20644 | int | 
|  | 20645 | main () | 
|  | 20646 | { | 
|  | 20647 | return opendir (); | 
|  | 20648 | ; | 
|  | 20649 | return 0; | 
|  | 20650 | } | 
|  | 20651 | _ACEOF | 
|  | 20652 | for ac_lib in '' x; do | 
|  | 20653 | if test -z "$ac_lib"; then | 
|  | 20654 | ac_res="none required" | 
|  | 20655 | else | 
|  | 20656 | ac_res=-l$ac_lib | 
|  | 20657 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 20658 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20659 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20660 | ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20661 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20662 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20663 | conftest$ac_exeext | 
|  | 20664 | if test "${ac_cv_search_opendir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20665 | break | 
|  | 20666 | fi | 
|  | 20667 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20668 | if test "${ac_cv_search_opendir+set}" = set; then : | 
|  | 20669 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20670 | else | 
|  | 20671 | ac_cv_search_opendir=no | 
|  | 20672 | fi | 
|  | 20673 | rm conftest.$ac_ext | 
|  | 20674 | LIBS=$ac_func_search_save_LIBS | 
|  | 20675 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20677 | $as_echo "$ac_cv_search_opendir" >&6; } | 
|  | 20678 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20679 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 20681 |  | 
|  | 20682 | fi | 
|  | 20683 |  | 
|  | 20684 | fi | 
|  | 20685 |  | 
|  | 20686 |  | 
|  | 20687 | # Check additional headers | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 20688 | 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 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20689 | do : | 
|  | 20690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 20691 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 20692 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20693 | cat >>confdefs.h <<_ACEOF | 
|  | 20694 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 20695 | _ACEOF | 
|  | 20696 |  | 
|  | 20697 | fi | 
|  | 20698 |  | 
|  | 20699 | done | 
|  | 20700 |  | 
|  | 20701 |  | 
|  | 20702 | ######## | 
|  | 20703 | # | 
|  | 20704 | # Checks for typedefs, structures, and compiler characteristics. | 
|  | 20705 | # | 
|  | 20706 | ######## | 
|  | 20707 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20708 | { $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] | 20709 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20710 | if test "${ac_cv_header_stdbool_h+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20711 | $as_echo_n "(cached) " >&6 | 
|  | 20712 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20714 | /* end confdefs.h.  */ | 
|  | 20715 |  | 
|  | 20716 | #include <stdbool.h> | 
|  | 20717 | #ifndef bool | 
|  | 20718 | "error: bool is not defined" | 
|  | 20719 | #endif | 
|  | 20720 | #ifndef false | 
|  | 20721 | "error: false is not defined" | 
|  | 20722 | #endif | 
|  | 20723 | #if false | 
|  | 20724 | "error: false is not 0" | 
|  | 20725 | #endif | 
|  | 20726 | #ifndef true | 
|  | 20727 | "error: true is not defined" | 
|  | 20728 | #endif | 
|  | 20729 | #if true != 1 | 
|  | 20730 | "error: true is not 1" | 
|  | 20731 | #endif | 
|  | 20732 | #ifndef __bool_true_false_are_defined | 
|  | 20733 | "error: __bool_true_false_are_defined is not defined" | 
|  | 20734 | #endif | 
|  | 20735 |  | 
|  | 20736 | struct s { _Bool s: 1; _Bool t; } s; | 
|  | 20737 |  | 
|  | 20738 | char a[true == 1 ? 1 : -1]; | 
|  | 20739 | char b[false == 0 ? 1 : -1]; | 
|  | 20740 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | 
|  | 20741 | char d[(bool) 0.5 == true ? 1 : -1]; | 
|  | 20742 | bool e = &s; | 
|  | 20743 | char f[(_Bool) 0.0 == false ? 1 : -1]; | 
|  | 20744 | char g[true]; | 
|  | 20745 | char h[sizeof (_Bool)]; | 
|  | 20746 | char i[sizeof s.t]; | 
|  | 20747 | enum { j = false, k = true, l = false * true, m = true * 256 }; | 
|  | 20748 | /* The following fails for | 
|  | 20749 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | 
|  | 20750 | _Bool n[m]; | 
|  | 20751 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | 
|  | 20752 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | 
|  | 20753 | #	if defined __xlc__ || defined __GNUC__ | 
|  | 20754 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 | 
|  | 20755 | reported by James Lemley on 2005-10-05; see | 
|  | 20756 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | 
|  | 20757 | This test is not quite right, since xlc is allowed to | 
|  | 20758 | reject this program, as the initializer for xlcbug is | 
|  | 20759 | not one of the forms that C requires support for. | 
|  | 20760 | However, doing the test right would require a runtime | 
|  | 20761 | test, and that would make cross-compilation harder. | 
|  | 20762 | Let us hope that IBM fixes the xlc bug, and also adds | 
|  | 20763 | support for this kind of constant expression.  In the | 
|  | 20764 | meantime, this test will reject xlc, which is OK, since | 
|  | 20765 | our stdbool.h substitute should suffice.  We also test | 
|  | 20766 | this with GCC, where it should work, to detect more | 
|  | 20767 | quickly whether someone messes up the test in the | 
|  | 20768 | future.  */ | 
|  | 20769 | char digs[] = "0123456789"; | 
|  | 20770 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); | 
|  | 20771 | #	endif | 
|  | 20772 | /* Catch a bug in an HP-UX C compiler.  See | 
|  | 20773 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | 
|  | 20774 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | 
|  | 20775 | */ | 
|  | 20776 | _Bool q = true; | 
|  | 20777 | _Bool *pq = &q; | 
|  | 20778 |  | 
|  | 20779 | int | 
|  | 20780 | main () | 
|  | 20781 | { | 
|  | 20782 |  | 
|  | 20783 | *pq |= q; | 
|  | 20784 | *pq |= ! q; | 
|  | 20785 | /* Refer to every declared value, to avoid compiler optimizations.  */ | 
|  | 20786 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | 
|  | 20787 | + !m + !n + !o + !p + !q + !pq); | 
|  | 20788 |  | 
|  | 20789 | ; | 
|  | 20790 | return 0; | 
|  | 20791 | } | 
|  | 20792 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20793 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20794 | ac_cv_header_stdbool_h=yes | 
|  | 20795 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20796 | ac_cv_header_stdbool_h=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20797 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20799 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20800 | { $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] | 20801 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20802 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | 
|  | 20803 | if test "x$ac_cv_type__Bool" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20804 |  | 
|  | 20805 | cat >>confdefs.h <<_ACEOF | 
|  | 20806 | #define HAVE__BOOL 1 | 
|  | 20807 | _ACEOF | 
|  | 20808 |  | 
|  | 20809 |  | 
|  | 20810 | fi | 
|  | 20811 |  | 
|  | 20812 | if test $ac_cv_header_stdbool_h = yes; then | 
|  | 20813 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20814 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20815 |  | 
|  | 20816 | fi | 
|  | 20817 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20819 | $as_echo_n "checking for working volatile... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20820 | if test "${ac_cv_c_volatile+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20821 | $as_echo_n "(cached) " >&6 | 
|  | 20822 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20824 | /* end confdefs.h.  */ | 
|  | 20825 |  | 
|  | 20826 | int | 
|  | 20827 | main () | 
|  | 20828 | { | 
|  | 20829 |  | 
|  | 20830 | volatile int x; | 
|  | 20831 | int * volatile y = (int *) 0; | 
|  | 20832 | return !x && !y; | 
|  | 20833 | ; | 
|  | 20834 | return 0; | 
|  | 20835 | } | 
|  | 20836 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20837 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20838 | ac_cv_c_volatile=yes | 
|  | 20839 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20840 | ac_cv_c_volatile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20841 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20843 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20845 | $as_echo "$ac_cv_c_volatile" >&6; } | 
|  | 20846 | if test $ac_cv_c_volatile = no; then | 
|  | 20847 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20848 | $as_echo "#define volatile /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20849 |  | 
|  | 20850 | fi | 
|  | 20851 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20853 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20854 | if test "${ac_cv_c_stringize+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20855 | $as_echo_n "(cached) " >&6 | 
|  | 20856 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20858 | /* end confdefs.h.  */ | 
|  | 20859 | #define x(y) #y | 
|  | 20860 |  | 
|  | 20861 | char *s = x(teststring); | 
|  | 20862 | _ACEOF | 
|  | 20863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20864 | $EGREP "#teststring" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20865 | ac_cv_c_stringize=no | 
|  | 20866 | else | 
|  | 20867 | ac_cv_c_stringize=yes | 
|  | 20868 | fi | 
|  | 20869 | rm -f conftest* | 
|  | 20870 |  | 
|  | 20871 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20873 | $as_echo "$ac_cv_c_stringize" >&6; } | 
|  | 20874 | if test $ac_cv_c_stringize = yes; then | 
|  | 20875 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20876 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20877 |  | 
|  | 20878 | fi | 
|  | 20879 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20880 | { $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] | 20881 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20882 | if test "${ac_cv_header_stat_broken+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20883 | $as_echo_n "(cached) " >&6 | 
|  | 20884 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20886 | /* end confdefs.h.  */ | 
|  | 20887 | #include <sys/types.h> | 
|  | 20888 | #include <sys/stat.h> | 
|  | 20889 |  | 
|  | 20890 | #if defined S_ISBLK && defined S_IFDIR | 
|  | 20891 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | 
|  | 20892 | #endif | 
|  | 20893 |  | 
|  | 20894 | #if defined S_ISBLK && defined S_IFCHR | 
|  | 20895 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | 
|  | 20896 | #endif | 
|  | 20897 |  | 
|  | 20898 | #if defined S_ISLNK && defined S_IFREG | 
|  | 20899 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | 
|  | 20900 | #endif | 
|  | 20901 |  | 
|  | 20902 | #if defined S_ISSOCK && defined S_IFREG | 
|  | 20903 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | 
|  | 20904 | #endif | 
|  | 20905 |  | 
|  | 20906 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20907 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20908 | ac_cv_header_stat_broken=no | 
|  | 20909 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20910 | ac_cv_header_stat_broken=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20911 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20913 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20914 | { $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] | 20915 | $as_echo "$ac_cv_header_stat_broken" >&6; } | 
|  | 20916 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 20917 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20918 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20919 |  | 
|  | 20920 | fi | 
|  | 20921 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20922 | { $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] | 20923 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20924 | if test "${ac_cv_header_time+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20925 | $as_echo_n "(cached) " >&6 | 
|  | 20926 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20928 | /* end confdefs.h.  */ | 
|  | 20929 | #include <sys/types.h> | 
|  | 20930 | #include <sys/time.h> | 
|  | 20931 | #include <time.h> | 
|  | 20932 |  | 
|  | 20933 | int | 
|  | 20934 | main () | 
|  | 20935 | { | 
|  | 20936 | if ((struct tm *) 0) | 
|  | 20937 | return 0; | 
|  | 20938 | ; | 
|  | 20939 | return 0; | 
|  | 20940 | } | 
|  | 20941 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20942 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20943 | ac_cv_header_time=yes | 
|  | 20944 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20945 | ac_cv_header_time=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20946 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20948 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20950 | $as_echo "$ac_cv_header_time" >&6; } | 
|  | 20951 | if test $ac_cv_header_time = yes; then | 
|  | 20952 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20953 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20954 |  | 
|  | 20955 | fi | 
|  | 20956 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20957 | { $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] | 20958 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20959 | if test "${ac_cv_struct_tm+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20960 | $as_echo_n "(cached) " >&6 | 
|  | 20961 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20963 | /* end confdefs.h.  */ | 
|  | 20964 | #include <sys/types.h> | 
|  | 20965 | #include <time.h> | 
|  | 20966 |  | 
|  | 20967 | int | 
|  | 20968 | main () | 
|  | 20969 | { | 
|  | 20970 | struct tm tm; | 
|  | 20971 | int *p = &tm.tm_sec; | 
|  | 20972 | return !p; | 
|  | 20973 | ; | 
|  | 20974 | return 0; | 
|  | 20975 | } | 
|  | 20976 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20977 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20978 | ac_cv_struct_tm=time.h | 
|  | 20979 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20980 | ac_cv_struct_tm=sys/time.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20981 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 20983 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20985 | $as_echo "$ac_cv_struct_tm" >&6; } | 
|  | 20986 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 20987 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20988 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20989 |  | 
|  | 20990 | fi | 
|  | 20991 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 20992 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
|  | 20993 | #include <$ac_cv_struct_tm> | 
|  | 20994 |  | 
|  | 20995 | " | 
|  | 20996 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : | 
|  | 20997 |  | 
|  | 20998 | cat >>confdefs.h <<_ACEOF | 
|  | 20999 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 21000 | _ACEOF | 
|  | 21001 |  | 
|  | 21002 |  | 
|  | 21003 | fi | 
|  | 21004 |  | 
|  | 21005 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 21006 |  | 
|  | 21007 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
|  | 21008 |  | 
|  | 21009 | else | 
|  | 21010 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 21011 | " | 
|  | 21012 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | 
|  | 21013 | ac_have_decl=1 | 
|  | 21014 | else | 
|  | 21015 | ac_have_decl=0 | 
|  | 21016 | fi | 
|  | 21017 |  | 
|  | 21018 | cat >>confdefs.h <<_ACEOF | 
|  | 21019 | #define HAVE_DECL_TZNAME $ac_have_decl | 
|  | 21020 | _ACEOF | 
|  | 21021 |  | 
|  | 21022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 21023 | $as_echo_n "checking for tzname... " >&6; } | 
|  | 21024 | if test "${ac_cv_var_tzname+set}" = set; then : | 
|  | 21025 | $as_echo_n "(cached) " >&6 | 
|  | 21026 | else | 
|  | 21027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 21028 | /* end confdefs.h.  */ | 
|  | 21029 | #include <time.h> | 
|  | 21030 | #if !HAVE_DECL_TZNAME | 
|  | 21031 | extern char *tzname[]; | 
|  | 21032 | #endif | 
|  | 21033 |  | 
|  | 21034 | int | 
|  | 21035 | main () | 
|  | 21036 | { | 
|  | 21037 | return tzname[0][0]; | 
|  | 21038 | ; | 
|  | 21039 | return 0; | 
|  | 21040 | } | 
|  | 21041 | _ACEOF | 
|  | 21042 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 21043 | ac_cv_var_tzname=yes | 
|  | 21044 | else | 
|  | 21045 | ac_cv_var_tzname=no | 
|  | 21046 | fi | 
|  | 21047 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 21048 | conftest$ac_exeext conftest.$ac_ext | 
|  | 21049 | fi | 
|  | 21050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 21051 | $as_echo "$ac_cv_var_tzname" >&6; } | 
|  | 21052 | if test $ac_cv_var_tzname = yes; then | 
|  | 21053 |  | 
|  | 21054 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
|  | 21055 |  | 
|  | 21056 | fi | 
|  | 21057 | fi | 
|  | 21058 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21059 | { $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] | 21060 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21061 | if test "${ac_cv_sys_interpreter+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21062 | $as_echo_n "(cached) " >&6 | 
|  | 21063 | else | 
|  | 21064 | echo '#! /bin/cat | 
|  | 21065 | exit 69 | 
|  | 21066 | ' >conftest | 
|  | 21067 | chmod u+x conftest | 
|  | 21068 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) | 
|  | 21069 | if test $? -ne 69; then | 
|  | 21070 | ac_cv_sys_interpreter=yes | 
|  | 21071 | else | 
|  | 21072 | ac_cv_sys_interpreter=no | 
|  | 21073 | fi | 
|  | 21074 | rm -f conftest | 
|  | 21075 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21077 | $as_echo "$ac_cv_sys_interpreter" >&6; } | 
|  | 21078 | interpval=$ac_cv_sys_interpreter | 
|  | 21079 |  | 
|  | 21080 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21081 | # If the C compiler supports the keyword inline, do nothing. Otherwise | 
|  | 21082 | # define inline to __inline__ or __inline if it accepts one of those, | 
|  | 21083 | # otherwise define inline to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21085 | $as_echo_n "checking for inline... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21086 | if test "${ac_cv_c_inline+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21087 | $as_echo_n "(cached) " >&6 | 
|  | 21088 | else | 
|  | 21089 | ac_cv_c_inline=no | 
|  | 21090 | for ac_kw in inline __inline__ __inline; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21092 | /* end confdefs.h.  */ | 
|  | 21093 | #ifndef __cplusplus | 
|  | 21094 | typedef int foo_t; | 
|  | 21095 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 21096 | $ac_kw foo_t foo () {return 0; } | 
|  | 21097 | #endif | 
|  | 21098 |  | 
|  | 21099 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21100 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21101 | ac_cv_c_inline=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21102 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21104 | test "$ac_cv_c_inline" != no && break | 
|  | 21105 | done | 
|  | 21106 |  | 
|  | 21107 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21109 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 21110 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21111 | case $ac_cv_c_inline in | 
|  | 21112 | inline | yes) ;; | 
|  | 21113 | *) | 
|  | 21114 | case $ac_cv_c_inline in | 
|  | 21115 | no) ac_val=;; | 
|  | 21116 | *) ac_val=$ac_cv_c_inline;; | 
|  | 21117 | esac | 
|  | 21118 | cat >>confdefs.h <<_ACEOF | 
|  | 21119 | #ifndef __cplusplus | 
|  | 21120 | #define inline $ac_val | 
|  | 21121 | #endif | 
|  | 21122 | _ACEOF | 
|  | 21123 | ;; | 
|  | 21124 | esac | 
|  | 21125 |  | 
|  | 21126 |  | 
|  | 21127 | # If the C compiler supports the keyword restrict, do nothing. Otherwise | 
|  | 21128 | # define restrict to __restrict__ or __restrict if it accepts one of those, | 
|  | 21129 | # otherwise define restrict to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21130 | { $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] | 21131 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21132 | if test "${ac_cv_c_restrict+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21133 | $as_echo_n "(cached) " >&6 | 
|  | 21134 | else | 
|  | 21135 | ac_cv_c_restrict=no | 
|  | 21136 | # The order here caters to the fact that C++ does not require restrict. | 
|  | 21137 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21139 | /* end confdefs.h.  */ | 
|  | 21140 | typedef int * int_ptr; | 
|  | 21141 | int foo (int_ptr $ac_kw ip) { | 
|  | 21142 | return ip[0]; | 
|  | 21143 | } | 
|  | 21144 | int | 
|  | 21145 | main () | 
|  | 21146 | { | 
|  | 21147 | int s[1]; | 
|  | 21148 | int * $ac_kw t = s; | 
|  | 21149 | t[0] = 0; | 
|  | 21150 | return foo(t) | 
|  | 21151 | ; | 
|  | 21152 | return 0; | 
|  | 21153 | } | 
|  | 21154 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21155 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21156 | ac_cv_c_restrict=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21157 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21159 | test "$ac_cv_c_restrict" != no && break | 
|  | 21160 | done | 
|  | 21161 |  | 
|  | 21162 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21164 | $as_echo "$ac_cv_c_restrict" >&6; } | 
|  | 21165 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21166 | case $ac_cv_c_restrict in | 
|  | 21167 | restrict) ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21168 | no) $as_echo "#define restrict /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21169 | ;; | 
|  | 21170 | *)  cat >>confdefs.h <<_ACEOF | 
|  | 21171 | #define restrict $ac_cv_c_restrict | 
|  | 21172 | _ACEOF | 
|  | 21173 | ;; | 
|  | 21174 | esac | 
|  | 21175 |  | 
|  | 21176 |  | 
|  | 21177 | # If words are stored with the most significant byte first (like | 
|  | 21178 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21179 | { $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] | 21180 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21181 | if test "${ac_cv_c_bigendian+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21182 | $as_echo_n "(cached) " >&6 | 
|  | 21183 | else | 
|  | 21184 | ac_cv_c_bigendian=unknown | 
|  | 21185 | # See if we're dealing with a universal compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21187 | /* end confdefs.h.  */ | 
|  | 21188 | #ifndef __APPLE_CC__ | 
|  | 21189 | not a universal capable compiler | 
|  | 21190 | #endif | 
|  | 21191 | typedef int dummy; | 
|  | 21192 |  | 
|  | 21193 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21194 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21195 |  | 
|  | 21196 | # Check for potential -arch flags.  It is not universal unless | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21197 | # there are at least two -arch flags with different values. | 
|  | 21198 | ac_arch= | 
|  | 21199 | ac_prev= | 
|  | 21200 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 21201 | if test -n "$ac_prev"; then | 
|  | 21202 | case $ac_word in | 
|  | 21203 | i?86 | x86_64 | ppc | ppc64) | 
|  | 21204 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 21205 | ac_arch=$ac_word | 
|  | 21206 | else | 
|  | 21207 | ac_cv_c_bigendian=universal | 
|  | 21208 | break | 
|  | 21209 | fi | 
|  | 21210 | ;; | 
|  | 21211 | esac | 
|  | 21212 | ac_prev= | 
|  | 21213 | elif test "x$ac_word" = "x-arch"; then | 
|  | 21214 | ac_prev=arch | 
|  | 21215 | fi | 
|  | 21216 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21217 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21219 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 21220 | # See if sys/param.h defines the BYTE_ORDER macro. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21222 | /* end confdefs.h.  */ | 
|  | 21223 | #include <sys/types.h> | 
|  | 21224 | #include <sys/param.h> | 
|  | 21225 |  | 
|  | 21226 | int | 
|  | 21227 | main () | 
|  | 21228 | { | 
|  | 21229 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 21230 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 21231 | && LITTLE_ENDIAN) | 
|  | 21232 | bogus endian macros | 
|  | 21233 | #endif | 
|  | 21234 |  | 
|  | 21235 | ; | 
|  | 21236 | return 0; | 
|  | 21237 | } | 
|  | 21238 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21239 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21240 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21242 | /* end confdefs.h.  */ | 
|  | 21243 | #include <sys/types.h> | 
|  | 21244 | #include <sys/param.h> | 
|  | 21245 |  | 
|  | 21246 | int | 
|  | 21247 | main () | 
|  | 21248 | { | 
|  | 21249 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 21250 | not big endian | 
|  | 21251 | #endif | 
|  | 21252 |  | 
|  | 21253 | ; | 
|  | 21254 | return 0; | 
|  | 21255 | } | 
|  | 21256 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21257 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21258 | ac_cv_c_bigendian=yes | 
|  | 21259 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21260 | ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21261 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21263 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21265 | fi | 
|  | 21266 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 21267 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21269 | /* end confdefs.h.  */ | 
|  | 21270 | #include <limits.h> | 
|  | 21271 |  | 
|  | 21272 | int | 
|  | 21273 | main () | 
|  | 21274 | { | 
|  | 21275 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 21276 | bogus endian macros | 
|  | 21277 | #endif | 
|  | 21278 |  | 
|  | 21279 | ; | 
|  | 21280 | return 0; | 
|  | 21281 | } | 
|  | 21282 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21283 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21284 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21286 | /* end confdefs.h.  */ | 
|  | 21287 | #include <limits.h> | 
|  | 21288 |  | 
|  | 21289 | int | 
|  | 21290 | main () | 
|  | 21291 | { | 
|  | 21292 | #ifndef _BIG_ENDIAN | 
|  | 21293 | not big endian | 
|  | 21294 | #endif | 
|  | 21295 |  | 
|  | 21296 | ; | 
|  | 21297 | return 0; | 
|  | 21298 | } | 
|  | 21299 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21300 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21301 | ac_cv_c_bigendian=yes | 
|  | 21302 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21303 | ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21304 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21306 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21308 | fi | 
|  | 21309 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 21310 | # Compile a test program. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21311 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21312 | # Try to guess by grepping values from an object file. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21314 | /* end confdefs.h.  */ | 
|  | 21315 | short int ascii_mm[] = | 
|  | 21316 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 21317 | short int ascii_ii[] = | 
|  | 21318 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 21319 | int use_ascii (int i) { | 
|  | 21320 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 21321 | } | 
|  | 21322 | short int ebcdic_ii[] = | 
|  | 21323 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 21324 | short int ebcdic_mm[] = | 
|  | 21325 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 21326 | int use_ebcdic (int i) { | 
|  | 21327 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 21328 | } | 
|  | 21329 | extern int foo; | 
|  | 21330 |  | 
|  | 21331 | int | 
|  | 21332 | main () | 
|  | 21333 | { | 
|  | 21334 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 21335 | ; | 
|  | 21336 | return 0; | 
|  | 21337 | } | 
|  | 21338 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21339 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21340 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 21341 | ac_cv_c_bigendian=yes | 
|  | 21342 | fi | 
|  | 21343 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 21344 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 21345 | ac_cv_c_bigendian=no | 
|  | 21346 | else | 
|  | 21347 | # finding both strings is unlikely to happen, but who knows? | 
|  | 21348 | ac_cv_c_bigendian=unknown | 
|  | 21349 | fi | 
|  | 21350 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21351 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21353 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21355 | /* end confdefs.h.  */ | 
|  | 21356 | $ac_includes_default | 
|  | 21357 | int | 
|  | 21358 | main () | 
|  | 21359 | { | 
|  | 21360 |  | 
|  | 21361 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 21362 | union | 
|  | 21363 | { | 
|  | 21364 | long int l; | 
|  | 21365 | char c[sizeof (long int)]; | 
|  | 21366 | } u; | 
|  | 21367 | u.l = 1; | 
|  | 21368 | return u.c[sizeof (long int) - 1] == 1; | 
|  | 21369 |  | 
|  | 21370 | ; | 
|  | 21371 | return 0; | 
|  | 21372 | } | 
|  | 21373 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21374 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21375 | ac_cv_c_bigendian=no | 
|  | 21376 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21377 | ac_cv_c_bigendian=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21378 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21379 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 21380 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21381 | fi | 
|  | 21382 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21383 | fi | 
|  | 21384 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21386 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 21387 | case $ac_cv_c_bigendian in #( | 
|  | 21388 | yes) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21389 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21390 | ;; #( | 
|  | 21391 | no) | 
|  | 21392 | ;; #( | 
|  | 21393 | universal) | 
|  | 21394 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21395 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21396 |  | 
|  | 21397 | ;; #( | 
|  | 21398 | *) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21399 | as_fn_error $? "unknown endianness | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21400 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21401 | esac | 
|  | 21402 |  | 
|  | 21403 |  | 
|  | 21404 | # Define mode_t to a suitable type, if standard headers do not define it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21405 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
|  | 21406 | if test "x$ac_cv_type_mode_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21407 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21408 | else | 
|  | 21409 |  | 
|  | 21410 | cat >>confdefs.h <<_ACEOF | 
|  | 21411 | #define mode_t int | 
|  | 21412 | _ACEOF | 
|  | 21413 |  | 
|  | 21414 | fi | 
|  | 21415 |  | 
|  | 21416 |  | 
|  | 21417 | # Define off_t to a suitable type, if standard headers do not define it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21418 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
|  | 21419 | if test "x$ac_cv_type_off_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21420 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21421 | else | 
|  | 21422 |  | 
|  | 21423 | cat >>confdefs.h <<_ACEOF | 
|  | 21424 | #define off_t long int | 
|  | 21425 | _ACEOF | 
|  | 21426 |  | 
|  | 21427 | fi | 
|  | 21428 |  | 
|  | 21429 |  | 
|  | 21430 | # Define pid_t to a suitable type, if standard headers do not define it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21431 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
|  | 21432 | if test "x$ac_cv_type_pid_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21433 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21434 | else | 
|  | 21435 |  | 
|  | 21436 | cat >>confdefs.h <<_ACEOF | 
|  | 21437 | #define pid_t int | 
|  | 21438 | _ACEOF | 
|  | 21439 |  | 
|  | 21440 | fi | 
|  | 21441 |  | 
|  | 21442 |  | 
|  | 21443 | # Define size_t to a suitable type, if standard headers do not define it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21444 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
|  | 21445 | if test "x$ac_cv_type_size_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21446 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21447 | else | 
|  | 21448 |  | 
|  | 21449 | cat >>confdefs.h <<_ACEOF | 
|  | 21450 | #define size_t unsigned int | 
|  | 21451 | _ACEOF | 
|  | 21452 |  | 
|  | 21453 | fi | 
|  | 21454 |  | 
|  | 21455 |  | 
|  | 21456 | # Define ssize_t to a suitable type, if standard headers do not define it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21457 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
|  | 21458 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21459 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21460 | else | 
|  | 21461 |  | 
|  | 21462 | cat >>confdefs.h <<_ACEOF | 
|  | 21463 | #define ssize_t int | 
|  | 21464 | _ACEOF | 
|  | 21465 |  | 
|  | 21466 | fi | 
|  | 21467 |  | 
|  | 21468 |  | 
|  | 21469 | # If the C compiler supports a working long double type with more range | 
|  | 21470 | # or precision than the double type, define HAVE_LONG_DOUBLE. | 
|  | 21471 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21472 | { $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] | 21473 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21474 | if test "${ac_cv_type_long_double_wider+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21475 | $as_echo_n "(cached) " >&6 | 
|  | 21476 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21478 | /* end confdefs.h.  */ | 
|  | 21479 | #include <float.h> | 
|  | 21480 | long double const a[] = | 
|  | 21481 | { | 
|  | 21482 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | 
|  | 21483 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | 
|  | 21484 | }; | 
|  | 21485 | long double | 
|  | 21486 | f (long double x) | 
|  | 21487 | { | 
|  | 21488 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | 
|  | 21489 | + (x ? f (x) : 'c')); | 
|  | 21490 | } | 
|  | 21491 |  | 
|  | 21492 | int | 
|  | 21493 | main () | 
|  | 21494 | { | 
|  | 21495 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) | 
|  | 21496 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | 
|  | 21497 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | 
|  | 21498 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | 
|  | 21499 | && (int) LDBL_EPSILON == 0 | 
|  | 21500 | )]; | 
|  | 21501 | test_array [0] = 0 | 
|  | 21502 |  | 
|  | 21503 | ; | 
|  | 21504 | return 0; | 
|  | 21505 | } | 
|  | 21506 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21507 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21508 | ac_cv_type_long_double_wider=yes | 
|  | 21509 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21510 | ac_cv_type_long_double_wider=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21511 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21513 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21514 | { $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] | 21515 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | 
|  | 21516 | if test $ac_cv_type_long_double_wider = yes; then | 
|  | 21517 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21518 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21519 |  | 
|  | 21520 | fi | 
|  | 21521 |  | 
|  | 21522 |  | 
|  | 21523 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the | 
|  | 21524 | # C compiler predefines it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21526 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21527 | if test "${ac_cv_c_char_unsigned+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21528 | $as_echo_n "(cached) " >&6 | 
|  | 21529 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21531 | /* end confdefs.h.  */ | 
|  | 21532 | $ac_includes_default | 
|  | 21533 | int | 
|  | 21534 | main () | 
|  | 21535 | { | 
|  | 21536 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
|  | 21537 | test_array [0] = 0 | 
|  | 21538 |  | 
|  | 21539 | ; | 
|  | 21540 | return 0; | 
|  | 21541 | } | 
|  | 21542 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21543 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21544 | ac_cv_c_char_unsigned=no | 
|  | 21545 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21546 | ac_cv_c_char_unsigned=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21547 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21549 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21550 | { $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] | 21551 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
|  | 21552 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21553 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21554 |  | 
|  | 21555 | fi | 
|  | 21556 |  | 
|  | 21557 |  | 
|  | 21558 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT | 
|  | 21559 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21560 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21561 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21562 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21564 | $as_echo_n "checking size of signed short... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21565 | if test "${ac_cv_sizeof_signed_short+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21566 | $as_echo_n "(cached) " >&6 | 
|  | 21567 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21568 | 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] | 21569 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21570 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21571 | if test "$ac_cv_type_signed_short" = yes; then | 
|  | 21572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21574 | as_fn_error 77 "cannot compute sizeof (signed short) | 
|  | 21575 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21576 | else | 
|  | 21577 | ac_cv_sizeof_signed_short=0 | 
|  | 21578 | fi | 
|  | 21579 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21580 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21581 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21582 | { $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] | 21583 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } | 
|  | 21584 |  | 
|  | 21585 |  | 
|  | 21586 |  | 
|  | 21587 | cat >>confdefs.h <<_ACEOF | 
|  | 21588 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short | 
|  | 21589 | _ACEOF | 
|  | 21590 |  | 
|  | 21591 |  | 
|  | 21592 |  | 
|  | 21593 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT | 
|  | 21594 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21597 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21599 | $as_echo_n "checking size of unsigned short... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21600 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21601 | $as_echo_n "(cached) " >&6 | 
|  | 21602 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21603 | 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] | 21604 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21605 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21606 | if test "$ac_cv_type_unsigned_short" = yes; then | 
|  | 21607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21609 | as_fn_error 77 "cannot compute sizeof (unsigned short) | 
|  | 21610 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21611 | else | 
|  | 21612 | ac_cv_sizeof_unsigned_short=0 | 
|  | 21613 | fi | 
|  | 21614 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21615 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21616 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21617 | { $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] | 21618 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | 
|  | 21619 |  | 
|  | 21620 |  | 
|  | 21621 |  | 
|  | 21622 | cat >>confdefs.h <<_ACEOF | 
|  | 21623 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | 
|  | 21624 | _ACEOF | 
|  | 21625 |  | 
|  | 21626 |  | 
|  | 21627 |  | 
|  | 21628 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT | 
|  | 21629 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21630 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21631 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21632 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21634 | $as_echo_n "checking size of signed int... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21635 | if test "${ac_cv_sizeof_signed_int+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21636 | $as_echo_n "(cached) " >&6 | 
|  | 21637 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21638 | 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] | 21639 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21640 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21641 | if test "$ac_cv_type_signed_int" = yes; then | 
|  | 21642 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21644 | as_fn_error 77 "cannot compute sizeof (signed int) | 
|  | 21645 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21646 | else | 
|  | 21647 | ac_cv_sizeof_signed_int=0 | 
|  | 21648 | fi | 
|  | 21649 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21650 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21651 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21652 | { $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] | 21653 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } | 
|  | 21654 |  | 
|  | 21655 |  | 
|  | 21656 |  | 
|  | 21657 | cat >>confdefs.h <<_ACEOF | 
|  | 21658 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int | 
|  | 21659 | _ACEOF | 
|  | 21660 |  | 
|  | 21661 |  | 
|  | 21662 |  | 
|  | 21663 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT | 
|  | 21664 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21665 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21666 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21667 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21669 | $as_echo_n "checking size of unsigned int... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21670 | if test "${ac_cv_sizeof_unsigned_int+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21671 | $as_echo_n "(cached) " >&6 | 
|  | 21672 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21673 | 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] | 21674 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21675 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21676 | if test "$ac_cv_type_unsigned_int" = yes; then | 
|  | 21677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21679 | as_fn_error 77 "cannot compute sizeof (unsigned int) | 
|  | 21680 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21681 | else | 
|  | 21682 | ac_cv_sizeof_unsigned_int=0 | 
|  | 21683 | fi | 
|  | 21684 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21685 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21686 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21687 | { $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] | 21688 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | 
|  | 21689 |  | 
|  | 21690 |  | 
|  | 21691 |  | 
|  | 21692 | cat >>confdefs.h <<_ACEOF | 
|  | 21693 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | 
|  | 21694 | _ACEOF | 
|  | 21695 |  | 
|  | 21696 |  | 
|  | 21697 |  | 
|  | 21698 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG | 
|  | 21699 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21700 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21701 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21702 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21704 | $as_echo_n "checking size of signed long... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21705 | if test "${ac_cv_sizeof_signed_long+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21706 | $as_echo_n "(cached) " >&6 | 
|  | 21707 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21708 | 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] | 21709 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21710 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21711 | if test "$ac_cv_type_signed_long" = yes; then | 
|  | 21712 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21714 | as_fn_error 77 "cannot compute sizeof (signed long) | 
|  | 21715 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21716 | else | 
|  | 21717 | ac_cv_sizeof_signed_long=0 | 
|  | 21718 | fi | 
|  | 21719 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21720 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21721 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21722 | { $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] | 21723 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } | 
|  | 21724 |  | 
|  | 21725 |  | 
|  | 21726 |  | 
|  | 21727 | cat >>confdefs.h <<_ACEOF | 
|  | 21728 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long | 
|  | 21729 | _ACEOF | 
|  | 21730 |  | 
|  | 21731 |  | 
|  | 21732 |  | 
|  | 21733 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG | 
|  | 21734 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21735 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21736 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21737 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21739 | $as_echo_n "checking size of unsigned long... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21740 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21741 | $as_echo_n "(cached) " >&6 | 
|  | 21742 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21743 | 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] | 21744 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21745 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21746 | if test "$ac_cv_type_unsigned_long" = yes; then | 
|  | 21747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21749 | as_fn_error 77 "cannot compute sizeof (unsigned long) | 
|  | 21750 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21751 | else | 
|  | 21752 | ac_cv_sizeof_unsigned_long=0 | 
|  | 21753 | fi | 
|  | 21754 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21755 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21756 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21757 | { $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] | 21758 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | 
|  | 21759 |  | 
|  | 21760 |  | 
|  | 21761 |  | 
|  | 21762 | cat >>confdefs.h <<_ACEOF | 
|  | 21763 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | 
|  | 21764 | _ACEOF | 
|  | 21765 |  | 
|  | 21766 |  | 
|  | 21767 |  | 
|  | 21768 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If | 
|  | 21769 | # 'signed long long' is not supported then the value defined is zero. | 
|  | 21770 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21771 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21772 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21773 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21774 | { $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] | 21775 | $as_echo_n "checking size of signed long long... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21776 | if test "${ac_cv_sizeof_signed_long_long+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21777 | $as_echo_n "(cached) " >&6 | 
|  | 21778 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21779 | 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] | 21780 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21781 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21782 | if test "$ac_cv_type_signed_long_long" = yes; then | 
|  | 21783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21784 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21785 | as_fn_error 77 "cannot compute sizeof (signed long long) | 
|  | 21786 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21787 | else | 
|  | 21788 | ac_cv_sizeof_signed_long_long=0 | 
|  | 21789 | fi | 
|  | 21790 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21791 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21792 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21793 | { $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] | 21794 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } | 
|  | 21795 |  | 
|  | 21796 |  | 
|  | 21797 |  | 
|  | 21798 | cat >>confdefs.h <<_ACEOF | 
|  | 21799 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long | 
|  | 21800 | _ACEOF | 
|  | 21801 |  | 
|  | 21802 |  | 
|  | 21803 |  | 
|  | 21804 | # Obtain size of a 'unsigned long long' and define as | 
|  | 21805 | # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not | 
|  | 21806 | # supported then the value defined is zero. | 
|  | 21807 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21808 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21809 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21810 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21811 | { $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] | 21812 | $as_echo_n "checking size of unsigned long long... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21813 | if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21814 | $as_echo_n "(cached) " >&6 | 
|  | 21815 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21816 | 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] | 21817 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21818 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21819 | if test "$ac_cv_type_unsigned_long_long" = yes; then | 
|  | 21820 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21821 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21822 | as_fn_error 77 "cannot compute sizeof (unsigned long long) | 
|  | 21823 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21824 | else | 
|  | 21825 | ac_cv_sizeof_unsigned_long_long=0 | 
|  | 21826 | fi | 
|  | 21827 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21828 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21829 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21830 | { $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] | 21831 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | 
|  | 21832 |  | 
|  | 21833 |  | 
|  | 21834 |  | 
|  | 21835 | cat >>confdefs.h <<_ACEOF | 
|  | 21836 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | 
|  | 21837 | _ACEOF | 
|  | 21838 |  | 
|  | 21839 |  | 
|  | 21840 |  | 
|  | 21841 | # Obtain size of off_t and define as SIZEOF_OFF_T | 
|  | 21842 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21843 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21844 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21845 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21847 | $as_echo_n "checking size of off_t... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21848 | if test "${ac_cv_sizeof_off_t+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21849 | $as_echo_n "(cached) " >&6 | 
|  | 21850 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21851 | 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] | 21852 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21853 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21854 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 21855 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21856 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21857 | as_fn_error 77 "cannot compute sizeof (off_t) | 
|  | 21858 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21859 | else | 
|  | 21860 | ac_cv_sizeof_off_t=0 | 
|  | 21861 | fi | 
|  | 21862 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21863 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21864 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21865 | { $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] | 21866 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
|  | 21867 |  | 
|  | 21868 |  | 
|  | 21869 |  | 
|  | 21870 | cat >>confdefs.h <<_ACEOF | 
|  | 21871 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
|  | 21872 | _ACEOF | 
|  | 21873 |  | 
|  | 21874 |  | 
|  | 21875 |  | 
|  | 21876 | # Obtain size of size_t and define as SIZEOF_SIZE_T | 
|  | 21877 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21878 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21879 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21880 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21882 | $as_echo_n "checking size of size_t... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21883 | if test "${ac_cv_sizeof_size_t+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21884 | $as_echo_n "(cached) " >&6 | 
|  | 21885 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21886 | 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] | 21887 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21888 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21889 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 21890 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21891 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21892 | as_fn_error 77 "cannot compute sizeof (size_t) | 
|  | 21893 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21894 | else | 
|  | 21895 | ac_cv_sizeof_size_t=0 | 
|  | 21896 | fi | 
|  | 21897 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21898 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21899 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21900 | { $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] | 21901 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
|  | 21902 |  | 
|  | 21903 |  | 
|  | 21904 |  | 
|  | 21905 | cat >>confdefs.h <<_ACEOF | 
|  | 21906 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 21907 | _ACEOF | 
|  | 21908 |  | 
|  | 21909 |  | 
|  | 21910 |  | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 21911 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T | 
|  | 21912 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21913 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21914 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21915 | # This bug is HP SR number 8606223364. | 
|  | 21916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 | 
|  | 21917 | $as_echo_n "checking size of ssize_t... " >&6; } | 
|  | 21918 | if test "${ac_cv_sizeof_ssize_t+set}" = set; then : | 
|  | 21919 | $as_echo_n "(cached) " >&6 | 
|  | 21920 | else | 
|  | 21921 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then : | 
|  | 21922 |  | 
|  | 21923 | else | 
|  | 21924 | if test "$ac_cv_type_ssize_t" = yes; then | 
|  | 21925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 21926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21927 | as_fn_error 77 "cannot compute sizeof (ssize_t) | 
|  | 21928 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 21929 | else | 
|  | 21930 | ac_cv_sizeof_ssize_t=0 | 
|  | 21931 | fi | 
|  | 21932 | fi | 
|  | 21933 |  | 
|  | 21934 | fi | 
|  | 21935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 | 
|  | 21936 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } | 
|  | 21937 |  | 
|  | 21938 |  | 
|  | 21939 |  | 
|  | 21940 | cat >>confdefs.h <<_ACEOF | 
|  | 21941 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t | 
|  | 21942 | _ACEOF | 
|  | 21943 |  | 
|  | 21944 |  | 
|  | 21945 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21946 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP | 
|  | 21947 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 21948 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 21949 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 21950 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21952 | $as_echo_n "checking size of unsigned int*... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21953 | if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21954 | $as_echo_n "(cached) " >&6 | 
|  | 21955 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21956 | 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] | 21957 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21958 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21959 | if test "$ac_cv_type_unsigned_intp" = yes; then | 
|  | 21960 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21961 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 21962 | as_fn_error 77 "cannot compute sizeof (unsigned int*) | 
|  | 21963 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21964 | else | 
|  | 21965 | ac_cv_sizeof_unsigned_intp=0 | 
|  | 21966 | fi | 
|  | 21967 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21968 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21969 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21970 | { $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] | 21971 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } | 
|  | 21972 |  | 
|  | 21973 |  | 
|  | 21974 |  | 
|  | 21975 | cat >>confdefs.h <<_ACEOF | 
|  | 21976 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp | 
|  | 21977 | _ACEOF | 
|  | 21978 |  | 
|  | 21979 |  | 
|  | 21980 |  | 
|  | 21981 | # | 
|  | 21982 | # Compute sized types for current CPU and compiler options. | 
|  | 21983 | # | 
|  | 21984 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21985 | { $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] | 21986 | $as_echo_n "checking for signed 8-bit type... " >&6; } | 
|  | 21987 | INT8_T='signed char' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21989 | $as_echo "$INT8_T" >&6; } | 
|  | 21990 |  | 
|  | 21991 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21992 | { $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] | 21993 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } | 
|  | 21994 | UINT8_T='unsigned char' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21996 | $as_echo "$UINT8_T" >&6; } | 
|  | 21997 |  | 
|  | 21998 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21999 | { $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] | 22000 | $as_echo_n "checking for signed 16-bit type... " >&6; } | 
|  | 22001 | INT16_T='signed short' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22003 | $as_echo "$INT16_T" >&6; } | 
|  | 22004 |  | 
|  | 22005 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22006 | { $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] | 22007 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } | 
|  | 22008 | UINT16_T='unsigned short' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22010 | $as_echo "$UINT16_T" >&6; } | 
|  | 22011 |  | 
|  | 22012 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22013 | { $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] | 22014 | $as_echo_n "checking for signed 32-bit type... " >&6; } | 
|  | 22015 | INT32_T='none' | 
|  | 22016 | if test $ac_cv_sizeof_signed_int -eq 4; then | 
|  | 22017 | INT32_T='signed int' | 
|  | 22018 | elif test $ac_cv_sizeof_signed_long -eq 4; then | 
|  | 22019 | INT32_T='signed long' | 
|  | 22020 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22022 | $as_echo "$INT32_T" >&6; } | 
|  | 22023 |  | 
|  | 22024 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22025 | { $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] | 22026 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } | 
|  | 22027 | UINT32_T='none' | 
|  | 22028 | if test $ac_cv_sizeof_unsigned_int -eq 4; then | 
|  | 22029 | UINT32_T='unsigned int' | 
|  | 22030 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then | 
|  | 22031 | UINT32_T='unsigned long' | 
|  | 22032 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22034 | $as_echo "$UINT32_T" >&6; } | 
|  | 22035 |  | 
|  | 22036 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22037 | { $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] | 22038 | $as_echo_n "checking for signed 64-bit type... " >&6; } | 
|  | 22039 | INT64_T='none' | 
|  | 22040 | if test $ac_cv_sizeof_signed_long -eq 8; then | 
|  | 22041 | INT64_T='signed long' | 
|  | 22042 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then | 
|  | 22043 | INT64_T='signed long long' | 
|  | 22044 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22046 | $as_echo "$INT64_T" >&6; } | 
|  | 22047 |  | 
|  | 22048 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22049 | { $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] | 22050 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } | 
|  | 22051 | UINT64_T='none' | 
|  | 22052 | if test $ac_cv_sizeof_unsigned_long -eq 8; then | 
|  | 22053 | UINT64_T='unsigned long' | 
|  | 22054 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then | 
|  | 22055 | UINT64_T='unsigned long long' | 
|  | 22056 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22058 | $as_echo "$UINT64_T" >&6; } | 
|  | 22059 |  | 
|  | 22060 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22062 | $as_echo_n "checking for unsigned maximum type... " >&6; } | 
|  | 22063 | UINTMAX_T='none' | 
|  | 22064 | if test "$UINT64_T" != 'none'; then | 
|  | 22065 | UINTMAX_T=$UINT64_T | 
|  | 22066 | elif test "$UINT32_T" != 'none'; then | 
|  | 22067 | UINTMAX_T=$UINT32_T | 
|  | 22068 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22070 | $as_echo "$UINTMAX_T" >&6; } | 
|  | 22071 |  | 
|  | 22072 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22074 | $as_echo_n "checking for pointer difference type... " >&6; } | 
|  | 22075 | UINTPTR_T='none' | 
|  | 22076 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then | 
|  | 22077 | UINTPTR_T='unsigned long' | 
|  | 22078 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then | 
|  | 22079 | UINTPTR_T='unsigned long long' | 
|  | 22080 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22082 | $as_echo "$UINTPTR_T" >&6; } | 
|  | 22083 |  | 
|  | 22084 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22085 | { $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] | 22086 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22088 | /* end confdefs.h.  */ | 
|  | 22089 |  | 
|  | 22090 | int | 
|  | 22091 | main () | 
|  | 22092 | { | 
|  | 22093 | { const char *func = __func__; return(func != 0 ? 0 : 1); } | 
|  | 22094 | ; | 
|  | 22095 | return 0; | 
|  | 22096 | } | 
|  | 22097 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22098 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 22099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22100 | $as_echo "yes" >&6; } | 
|  | 22101 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22103 | $as_echo "no" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22104 | { $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] | 22105 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22107 | /* end confdefs.h.  */ | 
|  | 22108 |  | 
|  | 22109 | int | 
|  | 22110 | main () | 
|  | 22111 | { | 
|  | 22112 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } | 
|  | 22113 | ; | 
|  | 22114 | return 0; | 
|  | 22115 | } | 
|  | 22116 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22117 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 22118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22119 | $as_echo "yes" >&6; } | 
|  | 22120 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22121 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22122 |  | 
|  | 22123 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22125 | $as_echo "no" >&6; } | 
|  | 22126 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22127 | $as_echo "#define __func__ __FILE__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22128 |  | 
|  | 22129 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22131 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22133 |  | 
|  | 22134 | ######## | 
|  | 22135 | # | 
|  | 22136 | # Check for functions | 
|  | 22137 | # | 
|  | 22138 | ######## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22139 | for ac_header in stdlib.h unistd.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22140 | do : | 
|  | 22141 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 22142 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 22143 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22144 | cat >>confdefs.h <<_ACEOF | 
|  | 22145 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 22146 | _ACEOF | 
|  | 22147 |  | 
|  | 22148 | fi | 
|  | 22149 |  | 
|  | 22150 | done | 
|  | 22151 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22152 | for ac_func in getpagesize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22153 | do : | 
|  | 22154 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
|  | 22155 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22156 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22157 | #define HAVE_GETPAGESIZE 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22158 | _ACEOF | 
|  | 22159 |  | 
|  | 22160 | fi | 
|  | 22161 | done | 
|  | 22162 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22164 | $as_echo_n "checking for working mmap file i/o... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22165 | if test "${magick_cv_func_mmap_fileio+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22166 | $as_echo_n "(cached) " >&6 | 
|  | 22167 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22168 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22169 | magick_cv_func_mmap_fileio=no | 
|  | 22170 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22172 | /* end confdefs.h.  */ | 
|  | 22173 | $ac_includes_default | 
|  | 22174 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 22175 | #undef malloc | 
|  | 22176 |  | 
|  | 22177 | /* | 
|  | 22178 | This test is derived from GNU Autoconf's similar macro. | 
|  | 22179 | The purpose of this test is to verify that files may be memory | 
|  | 22180 | mapped, and that memory mapping and file I/O are coherent. | 
|  | 22181 |  | 
|  | 22182 | The test creates a test file, memory maps the file, updates | 
|  | 22183 | the file using the memory map, and then reads the file using | 
|  | 22184 | file I/O to verify that the file contains the updates. | 
|  | 22185 | */ | 
|  | 22186 |  | 
|  | 22187 | #include <fcntl.h> | 
|  | 22188 | #include <sys/mman.h> | 
|  | 22189 |  | 
|  | 22190 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
|  | 22191 | char *malloc (); | 
|  | 22192 | #endif | 
|  | 22193 |  | 
|  | 22194 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 22195 | #if !HAVE_GETPAGESIZE | 
|  | 22196 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 22197 | # if !HAVE_SYS_PARAM_H | 
|  | 22198 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 22199 | # endif | 
|  | 22200 |  | 
|  | 22201 | # ifdef _SC_PAGESIZE | 
|  | 22202 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 22203 | # else /* no _SC_PAGESIZE */ | 
|  | 22204 | #  if HAVE_SYS_PARAM_H | 
|  | 22205 | #   include <sys/param.h> | 
|  | 22206 | #   ifdef EXEC_PAGESIZE | 
|  | 22207 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 22208 | #   else /* no EXEC_PAGESIZE */ | 
|  | 22209 | #    ifdef NBPG | 
|  | 22210 | #     define getpagesize() NBPG * CLSIZE | 
|  | 22211 | #     ifndef CLSIZE | 
|  | 22212 | #      define CLSIZE 1 | 
|  | 22213 | #     endif /* no CLSIZE */ | 
|  | 22214 | #    else /* no NBPG */ | 
|  | 22215 | #     ifdef NBPC | 
|  | 22216 | #      define getpagesize() NBPC | 
|  | 22217 | #     else /* no NBPC */ | 
|  | 22218 | #      ifdef PAGESIZE | 
|  | 22219 | #       define getpagesize() PAGESIZE | 
|  | 22220 | #      endif /* PAGESIZE */ | 
|  | 22221 | #     endif /* no NBPC */ | 
|  | 22222 | #    endif /* no NBPG */ | 
|  | 22223 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 22224 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 22225 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 22226 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 22227 | # endif /* no _SC_PAGESIZE */ | 
|  | 22228 |  | 
|  | 22229 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 22230 |  | 
|  | 22231 | int | 
|  | 22232 | main () | 
|  | 22233 | { | 
|  | 22234 | char *data, *data2, *data3; | 
|  | 22235 | int i, pagesize; | 
|  | 22236 | int fd; | 
|  | 22237 |  | 
|  | 22238 | pagesize = getpagesize (); | 
|  | 22239 |  | 
|  | 22240 | /* First, make a file with some known garbage in it. */ | 
|  | 22241 | data = (char *) malloc (pagesize); | 
|  | 22242 | if (!data) | 
|  | 22243 | exit (1); | 
|  | 22244 | for (i = 0; i < pagesize; ++i) | 
|  | 22245 | *(data + i) = rand (); | 
|  | 22246 | umask (0); | 
|  | 22247 | fd = creat ("conftest.mmap", 0600); | 
|  | 22248 | if (fd < 0) | 
|  | 22249 | exit (1); | 
|  | 22250 | if (write (fd, data, pagesize) != pagesize) | 
|  | 22251 | exit (1); | 
|  | 22252 | close (fd); | 
|  | 22253 |  | 
|  | 22254 | /* Mmap the file as read/write/shared and verify that we see the | 
|  | 22255 | same garbage. */ | 
|  | 22256 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 22257 | if (fd < 0) | 
|  | 22258 | exit (1); | 
|  | 22259 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); | 
|  | 22260 | if (data2 == 0) | 
|  | 22261 | exit (1); | 
|  | 22262 | for (i = 0; i < pagesize; ++i) | 
|  | 22263 | if (*(data + i) != *(data2 + i)) | 
|  | 22264 | exit (1); | 
|  | 22265 |  | 
|  | 22266 | /* Finally, make sure that changes to the mapped area | 
|  | 22267 | percolate back to the file as seen by read().  */ | 
|  | 22268 | for (i = 0; i < pagesize; ++i) | 
|  | 22269 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 22270 | data3 = (char *) malloc (pagesize); | 
|  | 22271 | if (!data3) | 
|  | 22272 | exit (1); | 
|  | 22273 | if (read (fd, data3, pagesize) != pagesize) | 
|  | 22274 | exit (1); | 
|  | 22275 | for (i = 0; i < pagesize; ++i) | 
|  | 22276 | if (*(data2 + i) != *(data3 + i)) | 
|  | 22277 | exit (1); | 
|  | 22278 | close (fd); | 
|  | 22279 | exit (0); | 
|  | 22280 | } | 
|  | 22281 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22282 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22283 | magick_cv_func_mmap_fileio=yes | 
|  | 22284 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22285 | magick_cv_func_mmap_fileio=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22286 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22288 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22289 | fi | 
|  | 22290 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22291 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22293 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } | 
|  | 22294 | if test $magick_cv_func_mmap_fileio = yes; then | 
|  | 22295 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22296 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22297 |  | 
|  | 22298 | fi | 
|  | 22299 | rm -f conftest.mmap | 
|  | 22300 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22302 | $as_echo_n "checking whether closedir returns void... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22303 | if test "${ac_cv_func_closedir_void+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22304 | $as_echo_n "(cached) " >&6 | 
|  | 22305 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22306 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22307 | ac_cv_func_closedir_void=yes | 
|  | 22308 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22310 | /* end confdefs.h.  */ | 
|  | 22311 | $ac_includes_default | 
|  | 22312 | #include <$ac_header_dirent> | 
|  | 22313 | #ifndef __cplusplus | 
|  | 22314 | int closedir (); | 
|  | 22315 | #endif | 
|  | 22316 |  | 
|  | 22317 | int | 
|  | 22318 | main () | 
|  | 22319 | { | 
|  | 22320 | return closedir (opendir (".")) != 0; | 
|  | 22321 | ; | 
|  | 22322 | return 0; | 
|  | 22323 | } | 
|  | 22324 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22325 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22326 | ac_cv_func_closedir_void=no | 
|  | 22327 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22328 | ac_cv_func_closedir_void=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22329 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22330 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22331 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22332 | fi | 
|  | 22333 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22334 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22335 | { $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] | 22336 | $as_echo "$ac_cv_func_closedir_void" >&6; } | 
|  | 22337 | if test $ac_cv_func_closedir_void = yes; then | 
|  | 22338 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22339 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22340 |  | 
|  | 22341 | fi | 
|  | 22342 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22343 |  | 
|  | 22344 |  | 
|  | 22345 |  | 
|  | 22346 | for ac_header in $ac_header_list | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22347 | do : | 
|  | 22348 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22349 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 22350 | " | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 22351 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22352 | cat >>confdefs.h <<_ACEOF | 
|  | 22353 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 22354 | _ACEOF | 
|  | 22355 |  | 
|  | 22356 | fi | 
|  | 22357 |  | 
|  | 22358 | done | 
|  | 22359 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22360 |  | 
|  | 22361 |  | 
|  | 22362 |  | 
|  | 22363 |  | 
|  | 22364 |  | 
|  | 22365 |  | 
|  | 22366 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22367 | for ac_func in getpagesize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22368 | do : | 
|  | 22369 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
|  | 22370 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22371 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22372 | #define HAVE_GETPAGESIZE 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22373 | _ACEOF | 
|  | 22374 |  | 
|  | 22375 | fi | 
|  | 22376 | done | 
|  | 22377 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22379 | $as_echo_n "checking for working mmap... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22380 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22381 | $as_echo_n "(cached) " >&6 | 
|  | 22382 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22383 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22384 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 22385 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22387 | /* end confdefs.h.  */ | 
|  | 22388 | $ac_includes_default | 
|  | 22389 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 22390 | #undef malloc | 
|  | 22391 |  | 
|  | 22392 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 22393 | Here is a matrix of mmap possibilities: | 
|  | 22394 | mmap private not fixed | 
|  | 22395 | mmap private fixed at somewhere currently unmapped | 
|  | 22396 | mmap private fixed at somewhere already mapped | 
|  | 22397 | mmap shared not fixed | 
|  | 22398 | mmap shared fixed at somewhere currently unmapped | 
|  | 22399 | mmap shared fixed at somewhere already mapped | 
|  | 22400 | For private mappings, we should verify that changes cannot be read() | 
|  | 22401 | back from the file, nor mmap's back from the file at a different | 
|  | 22402 | address.  (There have been systems where private was not correctly | 
|  | 22403 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 22404 | VM page cache was not coherent with the file system buffer cache | 
|  | 22405 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 22406 | For shared mappings, we should conversely verify that changes get | 
|  | 22407 | propagated back to all the places they're supposed to be. | 
|  | 22408 |  | 
|  | 22409 | Grep wants private fixed already mapped. | 
|  | 22410 | The main things grep needs to know about mmap are: | 
|  | 22411 | * does it exist and is it safe to write into the mmap'd area | 
|  | 22412 | * how to use it (BSD variants)  */ | 
|  | 22413 |  | 
|  | 22414 | #include <fcntl.h> | 
|  | 22415 | #include <sys/mman.h> | 
|  | 22416 |  | 
|  | 22417 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | 
|  | 22418 | char *malloc (); | 
|  | 22419 | #endif | 
|  | 22420 |  | 
|  | 22421 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 22422 | #ifndef HAVE_GETPAGESIZE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22423 | # ifdef _SC_PAGESIZE | 
|  | 22424 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 22425 | # else /* no _SC_PAGESIZE */ | 
|  | 22426 | #  ifdef HAVE_SYS_PARAM_H | 
|  | 22427 | #   include <sys/param.h> | 
|  | 22428 | #   ifdef EXEC_PAGESIZE | 
|  | 22429 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 22430 | #   else /* no EXEC_PAGESIZE */ | 
|  | 22431 | #    ifdef NBPG | 
|  | 22432 | #     define getpagesize() NBPG * CLSIZE | 
|  | 22433 | #     ifndef CLSIZE | 
|  | 22434 | #      define CLSIZE 1 | 
|  | 22435 | #     endif /* no CLSIZE */ | 
|  | 22436 | #    else /* no NBPG */ | 
|  | 22437 | #     ifdef NBPC | 
|  | 22438 | #      define getpagesize() NBPC | 
|  | 22439 | #     else /* no NBPC */ | 
|  | 22440 | #      ifdef PAGESIZE | 
|  | 22441 | #       define getpagesize() PAGESIZE | 
|  | 22442 | #      endif /* PAGESIZE */ | 
|  | 22443 | #     endif /* no NBPC */ | 
|  | 22444 | #    endif /* no NBPG */ | 
|  | 22445 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 22446 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 22447 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 22448 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 22449 | # endif /* no _SC_PAGESIZE */ | 
|  | 22450 |  | 
|  | 22451 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 22452 |  | 
|  | 22453 | int | 
|  | 22454 | main () | 
|  | 22455 | { | 
|  | 22456 | char *data, *data2, *data3; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 22457 | const char *cdata2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22458 | int i, pagesize; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22459 | int fd, fd2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22460 |  | 
|  | 22461 | pagesize = getpagesize (); | 
|  | 22462 |  | 
|  | 22463 | /* First, make a file with some known garbage in it. */ | 
|  | 22464 | data = (char *) malloc (pagesize); | 
|  | 22465 | if (!data) | 
|  | 22466 | return 1; | 
|  | 22467 | for (i = 0; i < pagesize; ++i) | 
|  | 22468 | *(data + i) = rand (); | 
|  | 22469 | umask (0); | 
|  | 22470 | fd = creat ("conftest.mmap", 0600); | 
|  | 22471 | if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22472 | return 2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22473 | if (write (fd, data, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22474 | return 3; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22475 | close (fd); | 
|  | 22476 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22477 | /* Next, check that the tail of a page is zero-filled.  File must have | 
|  | 22478 | non-zero length, otherwise we risk SIGBUS for entire page.  */ | 
|  | 22479 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | 
|  | 22480 | if (fd2 < 0) | 
|  | 22481 | return 4; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 22482 | cdata2 = ""; | 
|  | 22483 | if (write (fd2, cdata2, 1) != 1) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22484 | return 5; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 22485 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22486 | if (data2 == MAP_FAILED) | 
|  | 22487 | return 6; | 
|  | 22488 | for (i = 0; i < pagesize; ++i) | 
|  | 22489 | if (*(data2 + i)) | 
|  | 22490 | return 7; | 
|  | 22491 | close (fd2); | 
|  | 22492 | if (munmap (data2, pagesize)) | 
|  | 22493 | return 8; | 
|  | 22494 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22495 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 22496 | something else allocated at it.  If we can, also make sure that | 
|  | 22497 | we see the same garbage.  */ | 
|  | 22498 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 22499 | if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22500 | return 9; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22501 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
|  | 22502 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22503 | return 10; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22504 | for (i = 0; i < pagesize; ++i) | 
|  | 22505 | if (*(data + i) != *(data2 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22506 | return 11; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22507 |  | 
|  | 22508 | /* Finally, make sure that changes to the mapped area do not | 
|  | 22509 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 22510 | some variants of i386 svr4.0.)  */ | 
|  | 22511 | for (i = 0; i < pagesize; ++i) | 
|  | 22512 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 22513 | data3 = (char *) malloc (pagesize); | 
|  | 22514 | if (!data3) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22515 | return 12; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22516 | if (read (fd, data3, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22517 | return 13; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22518 | for (i = 0; i < pagesize; ++i) | 
|  | 22519 | if (*(data + i) != *(data3 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22520 | return 14; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22521 | close (fd); | 
|  | 22522 | return 0; | 
|  | 22523 | } | 
|  | 22524 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22525 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22526 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 22527 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22528 | ac_cv_func_mmap_fixed_mapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22529 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22531 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22532 | fi | 
|  | 22533 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22534 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22535 | { $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] | 22536 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | 
|  | 22537 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 22538 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22539 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22540 |  | 
|  | 22541 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22542 | rm -f conftest.mmap conftest.txt | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22543 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22544 | for ac_header in vfork.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22545 | do : | 
|  | 22546 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | 
|  | 22547 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22548 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22549 | #define HAVE_VFORK_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22550 | _ACEOF | 
|  | 22551 |  | 
|  | 22552 | fi | 
|  | 22553 |  | 
|  | 22554 | done | 
|  | 22555 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22556 | for ac_func in fork vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22557 | do : | 
|  | 22558 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 22559 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 22560 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22561 | cat >>confdefs.h <<_ACEOF | 
|  | 22562 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 22563 | _ACEOF | 
|  | 22564 |  | 
|  | 22565 | fi | 
|  | 22566 | done | 
|  | 22567 |  | 
|  | 22568 | if test "x$ac_cv_func_fork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22570 | $as_echo_n "checking for working fork... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22571 | if test "${ac_cv_func_fork_works+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22572 | $as_echo_n "(cached) " >&6 | 
|  | 22573 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22574 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22575 | ac_cv_func_fork_works=cross | 
|  | 22576 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22578 | /* end confdefs.h.  */ | 
|  | 22579 | $ac_includes_default | 
|  | 22580 | int | 
|  | 22581 | main () | 
|  | 22582 | { | 
|  | 22583 |  | 
|  | 22584 | /* By Ruediger Kuhlmann. */ | 
|  | 22585 | return fork () < 0; | 
|  | 22586 |  | 
|  | 22587 | ; | 
|  | 22588 | return 0; | 
|  | 22589 | } | 
|  | 22590 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22591 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22592 | ac_cv_func_fork_works=yes | 
|  | 22593 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22594 | ac_cv_func_fork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22595 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22597 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22598 | fi | 
|  | 22599 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22600 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22601 | { $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] | 22602 | $as_echo "$ac_cv_func_fork_works" >&6; } | 
|  | 22603 |  | 
|  | 22604 | else | 
|  | 22605 | ac_cv_func_fork_works=$ac_cv_func_fork | 
|  | 22606 | fi | 
|  | 22607 | if test "x$ac_cv_func_fork_works" = xcross; then | 
|  | 22608 | case $host in | 
|  | 22609 | *-*-amigaos* | *-*-msdosdjgpp*) | 
|  | 22610 | # Override, as these systems have only a dummy fork() stub | 
|  | 22611 | ac_cv_func_fork_works=no | 
|  | 22612 | ;; | 
|  | 22613 | *) | 
|  | 22614 | ac_cv_func_fork_works=yes | 
|  | 22615 | ;; | 
|  | 22616 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22617 | { $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] | 22618 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | 
|  | 22619 | fi | 
|  | 22620 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 
|  | 22621 | if test "x$ac_cv_func_vfork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22623 | $as_echo_n "checking for working vfork... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22624 | if test "${ac_cv_func_vfork_works+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22625 | $as_echo_n "(cached) " >&6 | 
|  | 22626 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22627 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22628 | ac_cv_func_vfork_works=cross | 
|  | 22629 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22631 | /* end confdefs.h.  */ | 
|  | 22632 | /* Thanks to Paul Eggert for this test.  */ | 
|  | 22633 | $ac_includes_default | 
|  | 22634 | #include <sys/wait.h> | 
|  | 22635 | #ifdef HAVE_VFORK_H | 
|  | 22636 | # include <vfork.h> | 
|  | 22637 | #endif | 
|  | 22638 | /* On some sparc systems, changes by the child to local and incoming | 
|  | 22639 | argument registers are propagated back to the parent.  The compiler | 
|  | 22640 | is told about this with #include <vfork.h>, but some compilers | 
|  | 22641 | (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a | 
|  | 22642 | static variable whose address is put into a register that is | 
|  | 22643 | clobbered by the vfork.  */ | 
|  | 22644 | static void | 
|  | 22645 | #ifdef __cplusplus | 
|  | 22646 | sparc_address_test (int arg) | 
|  | 22647 | # else | 
|  | 22648 | sparc_address_test (arg) int arg; | 
|  | 22649 | #endif | 
|  | 22650 | { | 
|  | 22651 | static pid_t child; | 
|  | 22652 | if (!child) { | 
|  | 22653 | child = vfork (); | 
|  | 22654 | if (child < 0) { | 
|  | 22655 | perror ("vfork"); | 
|  | 22656 | _exit(2); | 
|  | 22657 | } | 
|  | 22658 | if (!child) { | 
|  | 22659 | arg = getpid(); | 
|  | 22660 | write(-1, "", 0); | 
|  | 22661 | _exit (arg); | 
|  | 22662 | } | 
|  | 22663 | } | 
|  | 22664 | } | 
|  | 22665 |  | 
|  | 22666 | int | 
|  | 22667 | main () | 
|  | 22668 | { | 
|  | 22669 | pid_t parent = getpid (); | 
|  | 22670 | pid_t child; | 
|  | 22671 |  | 
|  | 22672 | sparc_address_test (0); | 
|  | 22673 |  | 
|  | 22674 | child = vfork (); | 
|  | 22675 |  | 
|  | 22676 | if (child == 0) { | 
|  | 22677 | /* Here is another test for sparc vfork register problems.  This | 
|  | 22678 | test uses lots of local variables, at least as many local | 
|  | 22679 | variables as main has allocated so far including compiler | 
|  | 22680 | temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris | 
|  | 22681 | 4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should | 
|  | 22682 | reuse the register of parent for one of the local variables, | 
|  | 22683 | since it will think that parent can't possibly be used any more | 
|  | 22684 | in this routine.  Assigning to the local variable will thus | 
|  | 22685 | munge parent in the parent process.  */ | 
|  | 22686 | pid_t | 
|  | 22687 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | 
|  | 22688 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | 
|  | 22689 | /* Convince the compiler that p..p7 are live; otherwise, it might | 
|  | 22690 | use the same hardware register for all 8 local variables.  */ | 
|  | 22691 | if (p != p1 || p != p2 || p != p3 || p != p4 | 
|  | 22692 | || p != p5 || p != p6 || p != p7) | 
|  | 22693 | _exit(1); | 
|  | 22694 |  | 
|  | 22695 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | 
|  | 22696 | from child file descriptors.  If the child closes a descriptor | 
|  | 22697 | before it execs or exits, this munges the parent's descriptor | 
|  | 22698 | as well.  Test for this by closing stdout in the child.  */ | 
|  | 22699 | _exit(close(fileno(stdout)) != 0); | 
|  | 22700 | } else { | 
|  | 22701 | int status; | 
|  | 22702 | struct stat st; | 
|  | 22703 |  | 
|  | 22704 | while (wait(&status) != child) | 
|  | 22705 | ; | 
|  | 22706 | return ( | 
|  | 22707 | /* Was there some problem with vforking?  */ | 
|  | 22708 | child < 0 | 
|  | 22709 |  | 
|  | 22710 | /* Did the child fail?  (This shouldn't happen.)  */ | 
|  | 22711 | || status | 
|  | 22712 |  | 
|  | 22713 | /* Did the vfork/compiler bug occur?  */ | 
|  | 22714 | || parent != getpid() | 
|  | 22715 |  | 
|  | 22716 | /* Did the file descriptor bug occur?  */ | 
|  | 22717 | || fstat(fileno(stdout), &st) != 0 | 
|  | 22718 | ); | 
|  | 22719 | } | 
|  | 22720 | } | 
|  | 22721 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22722 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22723 | ac_cv_func_vfork_works=yes | 
|  | 22724 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22725 | ac_cv_func_vfork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22726 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22728 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22729 | fi | 
|  | 22730 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22731 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22732 | { $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] | 22733 | $as_echo "$ac_cv_func_vfork_works" >&6; } | 
|  | 22734 |  | 
|  | 22735 | fi; | 
|  | 22736 | if test "x$ac_cv_func_fork_works" = xcross; then | 
|  | 22737 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22738 | { $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] | 22739 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | 
|  | 22740 | fi | 
|  | 22741 |  | 
|  | 22742 | if test "x$ac_cv_func_vfork_works" = xyes; then | 
|  | 22743 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22744 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22745 |  | 
|  | 22746 | else | 
|  | 22747 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22748 | $as_echo "#define vfork fork" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22749 |  | 
|  | 22750 | fi | 
|  | 22751 | if test "x$ac_cv_func_fork_works" = xyes; then | 
|  | 22752 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22753 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22754 |  | 
|  | 22755 | fi | 
|  | 22756 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22758 | $as_echo_n "checking for working memcmp... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22759 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22760 | $as_echo_n "(cached) " >&6 | 
|  | 22761 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22762 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22763 | ac_cv_func_memcmp_working=no | 
|  | 22764 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22766 | /* end confdefs.h.  */ | 
|  | 22767 | $ac_includes_default | 
|  | 22768 | int | 
|  | 22769 | main () | 
|  | 22770 | { | 
|  | 22771 |  | 
|  | 22772 | /* Some versions of memcmp are not 8-bit clean.  */ | 
|  | 22773 | char c0 = '\100', c1 = '\200', c2 = '\201'; | 
|  | 22774 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | 
|  | 22775 | return 1; | 
|  | 22776 |  | 
|  | 22777 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | 
|  | 22778 | or more and with at least one buffer not starting on a 4-byte boundary. | 
|  | 22779 | William Lewis provided this test program.   */ | 
|  | 22780 | { | 
|  | 22781 | char foo[21]; | 
|  | 22782 | char bar[21]; | 
|  | 22783 | int i; | 
|  | 22784 | for (i = 0; i < 4; i++) | 
|  | 22785 | { | 
|  | 22786 | char *a = foo + i; | 
|  | 22787 | char *b = bar + i; | 
|  | 22788 | strcpy (a, "--------01111111"); | 
|  | 22789 | strcpy (b, "--------10000000"); | 
|  | 22790 | if (memcmp (a, b, 16) >= 0) | 
|  | 22791 | return 1; | 
|  | 22792 | } | 
|  | 22793 | return 0; | 
|  | 22794 | } | 
|  | 22795 |  | 
|  | 22796 | ; | 
|  | 22797 | return 0; | 
|  | 22798 | } | 
|  | 22799 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22800 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22801 | ac_cv_func_memcmp_working=yes | 
|  | 22802 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22803 | ac_cv_func_memcmp_working=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22804 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22805 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22806 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22807 | fi | 
|  | 22808 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22809 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22810 | { $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] | 22811 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | 
|  | 22812 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | 
|  | 22813 | *" memcmp.$ac_objext "* ) ;; | 
|  | 22814 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | 
|  | 22815 | ;; | 
|  | 22816 | esac | 
|  | 22817 |  | 
|  | 22818 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22819 | for ac_header in sys/select.h sys/socket.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22820 | do : | 
|  | 22821 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 22822 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 22823 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22824 | cat >>confdefs.h <<_ACEOF | 
|  | 22825 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 22826 | _ACEOF | 
|  | 22827 |  | 
|  | 22828 | fi | 
|  | 22829 |  | 
|  | 22830 | done | 
|  | 22831 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22832 | { $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] | 22833 | $as_echo_n "checking types of arguments for select... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22834 | if test "${ac_cv_func_select_args+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22835 | $as_echo_n "(cached) " >&6 | 
|  | 22836 | else | 
|  | 22837 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | 
|  | 22838 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | 
|  | 22839 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22841 | /* end confdefs.h.  */ | 
|  | 22842 | $ac_includes_default | 
|  | 22843 | #ifdef HAVE_SYS_SELECT_H | 
|  | 22844 | # include <sys/select.h> | 
|  | 22845 | #endif | 
|  | 22846 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 22847 | # include <sys/socket.h> | 
|  | 22848 | #endif | 
|  | 22849 |  | 
|  | 22850 | int | 
|  | 22851 | main () | 
|  | 22852 | { | 
|  | 22853 | extern int select ($ac_arg1, | 
|  | 22854 | $ac_arg234, $ac_arg234, $ac_arg234, | 
|  | 22855 | $ac_arg5); | 
|  | 22856 | ; | 
|  | 22857 | return 0; | 
|  | 22858 | } | 
|  | 22859 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22860 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22861 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22862 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22864 | done | 
|  | 22865 | done | 
|  | 22866 | done | 
|  | 22867 | # Provide a safe default value. | 
|  | 22868 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | 
|  | 22869 |  | 
|  | 22870 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22871 | { $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] | 22872 | $as_echo "$ac_cv_func_select_args" >&6; } | 
|  | 22873 | ac_save_IFS=$IFS; IFS=',' | 
|  | 22874 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | 
|  | 22875 | IFS=$ac_save_IFS | 
|  | 22876 | shift | 
|  | 22877 |  | 
|  | 22878 | cat >>confdefs.h <<_ACEOF | 
|  | 22879 | #define SELECT_TYPE_ARG1 $1 | 
|  | 22880 | _ACEOF | 
|  | 22881 |  | 
|  | 22882 |  | 
|  | 22883 | cat >>confdefs.h <<_ACEOF | 
|  | 22884 | #define SELECT_TYPE_ARG234 ($2) | 
|  | 22885 | _ACEOF | 
|  | 22886 |  | 
|  | 22887 |  | 
|  | 22888 | cat >>confdefs.h <<_ACEOF | 
|  | 22889 | #define SELECT_TYPE_ARG5 ($3) | 
|  | 22890 | _ACEOF | 
|  | 22891 |  | 
|  | 22892 | rm -f conftest* | 
|  | 22893 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22894 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22895 | $as_echo_n "(cached) " >&6 | 
|  | 22896 | else | 
|  | 22897 | ac_cv_func_setvbuf_reversed=no | 
|  | 22898 | fi | 
|  | 22899 |  | 
|  | 22900 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22901 | { $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] | 22902 | $as_echo_n "checking return type of signal handlers... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22903 | if test "${ac_cv_type_signal+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22904 | $as_echo_n "(cached) " >&6 | 
|  | 22905 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22907 | /* end confdefs.h.  */ | 
|  | 22908 | #include <sys/types.h> | 
|  | 22909 | #include <signal.h> | 
|  | 22910 |  | 
|  | 22911 | int | 
|  | 22912 | main () | 
|  | 22913 | { | 
|  | 22914 | return *(signal (0, 0)) (0) == 1; | 
|  | 22915 | ; | 
|  | 22916 | return 0; | 
|  | 22917 | } | 
|  | 22918 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22919 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22920 | ac_cv_type_signal=int | 
|  | 22921 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22922 | ac_cv_type_signal=void | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22923 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22925 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22927 | $as_echo "$ac_cv_type_signal" >&6; } | 
|  | 22928 |  | 
|  | 22929 | cat >>confdefs.h <<_ACEOF | 
|  | 22930 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 22931 | _ACEOF | 
|  | 22932 |  | 
|  | 22933 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22935 | $as_echo_n "checking for working strtod... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22936 | if test "${ac_cv_func_strtod+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22937 | $as_echo_n "(cached) " >&6 | 
|  | 22938 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22939 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22940 | ac_cv_func_strtod=no | 
|  | 22941 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22943 | /* end confdefs.h.  */ | 
|  | 22944 |  | 
|  | 22945 | $ac_includes_default | 
|  | 22946 | #ifndef strtod | 
|  | 22947 | double strtod (); | 
|  | 22948 | #endif | 
|  | 22949 | int | 
|  | 22950 | main() | 
|  | 22951 | { | 
|  | 22952 | { | 
|  | 22953 | /* Some versions of Linux strtod mis-parse strings with leading '+'.  */ | 
|  | 22954 | char *string = " +69"; | 
|  | 22955 | char *term; | 
|  | 22956 | double value; | 
|  | 22957 | value = strtod (string, &term); | 
|  | 22958 | if (value != 69 || term != (string + 4)) | 
|  | 22959 | return 1; | 
|  | 22960 | } | 
|  | 22961 |  | 
|  | 22962 | { | 
|  | 22963 | /* Under Solaris 2.4, strtod returns the wrong value for the | 
|  | 22964 | terminating character under some conditions.  */ | 
|  | 22965 | char *string = "NaN"; | 
|  | 22966 | char *term; | 
|  | 22967 | strtod (string, &term); | 
|  | 22968 | if (term != string && *(term - 1) == 0) | 
|  | 22969 | return 1; | 
|  | 22970 | } | 
|  | 22971 | return 0; | 
|  | 22972 | } | 
|  | 22973 |  | 
|  | 22974 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22975 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22976 | ac_cv_func_strtod=yes | 
|  | 22977 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22978 | ac_cv_func_strtod=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22979 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22980 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22981 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22982 | fi | 
|  | 22983 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22984 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22986 | $as_echo "$ac_cv_func_strtod" >&6; } | 
|  | 22987 | if test $ac_cv_func_strtod = no; then | 
|  | 22988 | case " $LIBOBJS " in | 
|  | 22989 | *" strtod.$ac_objext "* ) ;; | 
|  | 22990 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | 
|  | 22991 | ;; | 
|  | 22992 | esac | 
|  | 22993 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22994 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | 
|  | 22995 | if test "x$ac_cv_func_pow" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22996 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22997 | fi | 
|  | 22998 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22999 | if test $ac_cv_func_pow = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23001 | $as_echo_n "checking for pow in -lm... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23002 | if test "${ac_cv_lib_m_pow+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23003 | $as_echo_n "(cached) " >&6 | 
|  | 23004 | else | 
|  | 23005 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23006 | LIBS="-lm  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23008 | /* end confdefs.h.  */ | 
|  | 23009 |  | 
|  | 23010 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23011 | Use char because int might match the return type of a GCC | 
|  | 23012 | builtin and then its argument prototype would still apply.  */ | 
|  | 23013 | #ifdef __cplusplus | 
|  | 23014 | extern "C" | 
|  | 23015 | #endif | 
|  | 23016 | char pow (); | 
|  | 23017 | int | 
|  | 23018 | main () | 
|  | 23019 | { | 
|  | 23020 | return pow (); | 
|  | 23021 | ; | 
|  | 23022 | return 0; | 
|  | 23023 | } | 
|  | 23024 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23025 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23026 | ac_cv_lib_m_pow=yes | 
|  | 23027 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23028 | ac_cv_lib_m_pow=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23029 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23030 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23031 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23032 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23033 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23034 | { $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] | 23035 | $as_echo "$ac_cv_lib_m_pow" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23036 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23037 | POW_LIB=-lm | 
|  | 23038 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23039 | { $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] | 23040 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | 
|  | 23041 | fi | 
|  | 23042 |  | 
|  | 23043 | fi | 
|  | 23044 |  | 
|  | 23045 | fi | 
|  | 23046 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23047 | for ac_func in vprintf | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23048 | do : | 
|  | 23049 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | 
|  | 23050 | if test "x$ac_cv_func_vprintf" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23051 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23052 | #define HAVE_VPRINTF 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23053 | _ACEOF | 
|  | 23054 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23055 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | 
|  | 23056 | if test "x$ac_cv_func__doprnt" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23057 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23058 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23059 |  | 
|  | 23060 | fi | 
|  | 23061 |  | 
|  | 23062 | fi | 
|  | 23063 | done | 
|  | 23064 |  | 
|  | 23065 |  | 
|  | 23066 |  | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 23067 | # | 
|  | 23068 | # Find math library | 
|  | 23069 | # | 
|  | 23070 | MATH_LIBS='' | 
|  | 23071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | 
|  | 23072 | $as_echo_n "checking for sqrt in -lm... " >&6; } | 
|  | 23073 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : | 
|  | 23074 | $as_echo_n "(cached) " >&6 | 
|  | 23075 | else | 
|  | 23076 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23077 | LIBS="-lm  $LIBS" | 
|  | 23078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 23079 | /* end confdefs.h.  */ | 
|  | 23080 |  | 
|  | 23081 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23082 | Use char because int might match the return type of a GCC | 
|  | 23083 | builtin and then its argument prototype would still apply.  */ | 
|  | 23084 | #ifdef __cplusplus | 
|  | 23085 | extern "C" | 
|  | 23086 | #endif | 
|  | 23087 | char sqrt (); | 
|  | 23088 | int | 
|  | 23089 | main () | 
|  | 23090 | { | 
|  | 23091 | return sqrt (); | 
|  | 23092 | ; | 
|  | 23093 | return 0; | 
|  | 23094 | } | 
|  | 23095 | _ACEOF | 
|  | 23096 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 23097 | ac_cv_lib_m_sqrt=yes | 
|  | 23098 | else | 
|  | 23099 | ac_cv_lib_m_sqrt=no | 
|  | 23100 | fi | 
|  | 23101 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23102 | conftest$ac_exeext conftest.$ac_ext | 
|  | 23103 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23104 | fi | 
|  | 23105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | 
|  | 23106 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | 
|  | 23107 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : | 
|  | 23108 | MATH_LIBS="-lm" | 
|  | 23109 | fi | 
|  | 23110 |  | 
|  | 23111 | LIBS="$MATH_LIBS $LIBS" | 
|  | 23112 |  | 
|  | 23113 |  | 
| cristy | c6c08ab | 2010-07-24 23:50:09 +0000 | [diff] [blame] | 23114 | for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23115 | do : | 
|  | 23116 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 23117 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 23118 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23119 | cat >>confdefs.h <<_ACEOF | 
|  | 23120 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 23121 | _ACEOF | 
|  | 23122 |  | 
|  | 23123 | fi | 
|  | 23124 | done | 
|  | 23125 |  | 
|  | 23126 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23127 | # | 
|  | 23128 | # Check for clock_gettime(). | 
|  | 23129 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23130 | { $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] | 23131 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23132 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23133 | $as_echo_n "(cached) " >&6 | 
|  | 23134 | else | 
|  | 23135 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23137 | /* end confdefs.h.  */ | 
|  | 23138 |  | 
|  | 23139 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23140 | Use char because int might match the return type of a GCC | 
|  | 23141 | builtin and then its argument prototype would still apply.  */ | 
|  | 23142 | #ifdef __cplusplus | 
|  | 23143 | extern "C" | 
|  | 23144 | #endif | 
|  | 23145 | char clock_gettime (); | 
|  | 23146 | int | 
|  | 23147 | main () | 
|  | 23148 | { | 
|  | 23149 | return clock_gettime (); | 
|  | 23150 | ; | 
|  | 23151 | return 0; | 
|  | 23152 | } | 
|  | 23153 | _ACEOF | 
|  | 23154 | for ac_lib in '' rt; do | 
|  | 23155 | if test -z "$ac_lib"; then | 
|  | 23156 | ac_res="none required" | 
|  | 23157 | else | 
|  | 23158 | ac_res=-l$ac_lib | 
|  | 23159 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 23160 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23161 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23162 | ac_cv_search_clock_gettime=$ac_res | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23163 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23164 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23165 | conftest$ac_exeext | 
|  | 23166 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23167 | break | 
|  | 23168 | fi | 
|  | 23169 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23170 | if test "${ac_cv_search_clock_gettime+set}" = set; then : | 
|  | 23171 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23172 | else | 
|  | 23173 | ac_cv_search_clock_gettime=no | 
|  | 23174 | fi | 
|  | 23175 | rm conftest.$ac_ext | 
|  | 23176 | LIBS=$ac_func_search_save_LIBS | 
|  | 23177 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23178 | { $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] | 23179 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | 
|  | 23180 | ac_res=$ac_cv_search_clock_gettime | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23181 | if test "$ac_res" != no; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23182 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 23183 |  | 
|  | 23184 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23185 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23186 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23187 | { $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] | 23188 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23190 | /* end confdefs.h.  */ | 
|  | 23191 | #include <time.h> | 
|  | 23192 | int | 
|  | 23193 | main () | 
|  | 23194 | { | 
|  | 23195 | clockid_t clockType = CLOCK_REALTIME; | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23196 | ; | 
|  | 23197 | return 0; | 
|  | 23198 | } | 
|  | 23199 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23200 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23201 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23203 | $as_echo "yes" >&6; } | 
|  | 23204 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23205 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23206 |  | 
|  | 23207 |  | 
|  | 23208 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23210 | $as_echo "no" >&6; } | 
|  | 23211 |  | 
|  | 23212 | fi | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23214 |  | 
|  | 23215 | else | 
|  | 23216 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23217 | for ac_func in gettimeofday ftime | 
|  | 23218 | do : | 
|  | 23219 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 23220 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 23221 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23222 | cat >>confdefs.h <<_ACEOF | 
|  | 23223 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 23224 | _ACEOF | 
|  | 23225 | break | 
|  | 23226 | fi | 
|  | 23227 | done | 
|  | 23228 |  | 
|  | 23229 |  | 
|  | 23230 |  | 
|  | 23231 | fi | 
|  | 23232 |  | 
|  | 23233 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23234 | ######## | 
|  | 23235 | # | 
|  | 23236 | # Check for function prototypes | 
|  | 23237 | # | 
|  | 23238 | ######## | 
|  | 23239 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23240 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23241 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23242 | " | 
|  | 23243 | if test "x$ac_cv_have_decl_pread" = x""yes; then : | 
|  | 23244 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23245 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23246 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23247 | fi | 
|  | 23248 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23249 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23250 | #define HAVE_DECL_PREAD $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23251 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23252 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23253 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23254 | " | 
|  | 23255 | if test "x$ac_cv_have_decl_pwrite" = x""yes; then : | 
|  | 23256 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23257 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23258 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23259 | fi | 
|  | 23260 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23261 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23262 | #define HAVE_DECL_PWRITE $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23263 | _ACEOF | 
|  | 23264 |  | 
|  | 23265 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23266 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23267 | #include <strings.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23268 | " | 
|  | 23269 | if test "x$ac_cv_have_decl_strlcpy" = x""yes; then : | 
|  | 23270 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23271 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23272 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23273 | fi | 
|  | 23274 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23275 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23276 | #define HAVE_DECL_STRLCPY $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23277 | _ACEOF | 
|  | 23278 |  | 
|  | 23279 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23280 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23281 | #include <stdio.h> | 
|  | 23282 | #include <stdarg.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23283 | " | 
|  | 23284 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | 
|  | 23285 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23286 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23287 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23288 | fi | 
|  | 23289 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23290 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23291 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23292 | _ACEOF | 
|  | 23293 |  | 
|  | 23294 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23295 | ######## | 
|  | 23296 | # | 
|  | 23297 | # C++ Support Tests (For Magick++) | 
|  | 23298 | # | 
|  | 23299 | ######## | 
|  | 23300 | have_magick_plus_plus='no' | 
|  | 23301 | if test "$with_magick_plus_plus" = 'yes'; then | 
|  | 23302 | OLIBS="$LIBS" | 
|  | 23303 | LIBS='' | 
|  | 23304 | ac_ext=cpp | 
|  | 23305 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23309 |  | 
|  | 23310 |  | 
|  | 23311 | # Full set of headers used... | 
|  | 23312 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception | 
|  | 23313 | # functional iomanip iosfwd iostream iterator list string strstream utility | 
|  | 23314 | ac_ext=cpp | 
|  | 23315 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23316 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23317 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23318 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23319 |  | 
|  | 23320 | ac_ext=cpp | 
|  | 23321 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23322 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23323 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23324 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23325 | if test -z "$CXX"; then | 
|  | 23326 | if test -n "$CCC"; then | 
|  | 23327 | CXX=$CCC | 
|  | 23328 | else | 
|  | 23329 | if test -n "$ac_tool_prefix"; then | 
|  | 23330 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 23331 | do | 
|  | 23332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 23333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23335 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23336 | if test "${ac_cv_prog_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23337 | $as_echo_n "(cached) " >&6 | 
|  | 23338 | else | 
|  | 23339 | if test -n "$CXX"; then | 
|  | 23340 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 23341 | else | 
|  | 23342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 23343 | for as_dir in $PATH | 
|  | 23344 | do | 
|  | 23345 | IFS=$as_save_IFS | 
|  | 23346 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23347 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 23349 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23350 | $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] | 23351 | break 2 | 
|  | 23352 | fi | 
|  | 23353 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23354 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23355 | IFS=$as_save_IFS | 
|  | 23356 |  | 
|  | 23357 | fi | 
|  | 23358 | fi | 
|  | 23359 | CXX=$ac_cv_prog_CXX | 
|  | 23360 | if test -n "$CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23362 | $as_echo "$CXX" >&6; } | 
|  | 23363 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23365 | $as_echo "no" >&6; } | 
|  | 23366 | fi | 
|  | 23367 |  | 
|  | 23368 |  | 
|  | 23369 | test -n "$CXX" && break | 
|  | 23370 | done | 
|  | 23371 | fi | 
|  | 23372 | if test -z "$CXX"; then | 
|  | 23373 | ac_ct_CXX=$CXX | 
|  | 23374 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 23375 | do | 
|  | 23376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 23377 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23379 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23380 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23381 | $as_echo_n "(cached) " >&6 | 
|  | 23382 | else | 
|  | 23383 | if test -n "$ac_ct_CXX"; then | 
|  | 23384 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 23385 | else | 
|  | 23386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 23387 | for as_dir in $PATH | 
|  | 23388 | do | 
|  | 23389 | IFS=$as_save_IFS | 
|  | 23390 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23391 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 23393 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23394 | $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] | 23395 | break 2 | 
|  | 23396 | fi | 
|  | 23397 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23398 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23399 | IFS=$as_save_IFS | 
|  | 23400 |  | 
|  | 23401 | fi | 
|  | 23402 | fi | 
|  | 23403 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 23404 | if test -n "$ac_ct_CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23406 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 23407 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23409 | $as_echo "no" >&6; } | 
|  | 23410 | fi | 
|  | 23411 |  | 
|  | 23412 |  | 
|  | 23413 | test -n "$ac_ct_CXX" && break | 
|  | 23414 | done | 
|  | 23415 |  | 
|  | 23416 | if test "x$ac_ct_CXX" = x; then | 
|  | 23417 | CXX="g++" | 
|  | 23418 | else | 
|  | 23419 | case $cross_compiling:$ac_tool_warned in | 
|  | 23420 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23421 | { $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] | 23422 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 23423 | ac_tool_warned=yes ;; | 
|  | 23424 | esac | 
|  | 23425 | CXX=$ac_ct_CXX | 
|  | 23426 | fi | 
|  | 23427 | fi | 
|  | 23428 |  | 
|  | 23429 | fi | 
|  | 23430 | fi | 
|  | 23431 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23432 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23433 | set X $ac_compile | 
|  | 23434 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23435 | for ac_option in --version -v -V -qversion; do | 
|  | 23436 | { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23437 | case "(($ac_try" in | 
|  | 23438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 23439 | *) ac_try_echo=$ac_try;; | 
|  | 23440 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 23442 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 23443 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23444 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23445 | if test -s conftest.err; then | 
|  | 23446 | sed '10a\ | 
|  | 23447 | ... rest of stderr output deleted ... | 
|  | 23448 | 10q' conftest.err >conftest.er1 | 
|  | 23449 | cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23450 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23451 | rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 23453 | test $ac_status = 0; } | 
|  | 23454 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23455 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23456 | { $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] | 23457 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23458 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23459 | $as_echo_n "(cached) " >&6 | 
|  | 23460 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23462 | /* end confdefs.h.  */ | 
|  | 23463 |  | 
|  | 23464 | int | 
|  | 23465 | main () | 
|  | 23466 | { | 
|  | 23467 | #ifndef __GNUC__ | 
|  | 23468 | choke me | 
|  | 23469 | #endif | 
|  | 23470 |  | 
|  | 23471 | ; | 
|  | 23472 | return 0; | 
|  | 23473 | } | 
|  | 23474 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23475 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23476 | ac_compiler_gnu=yes | 
|  | 23477 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23478 | ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23479 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23481 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 23482 |  | 
|  | 23483 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23484 | { $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] | 23485 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 23486 | if test $ac_compiler_gnu = yes; then | 
|  | 23487 | GXX=yes | 
|  | 23488 | else | 
|  | 23489 | GXX= | 
|  | 23490 | fi | 
|  | 23491 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 23492 | ac_save_CXXFLAGS=$CXXFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23494 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23495 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23496 | $as_echo_n "(cached) " >&6 | 
|  | 23497 | else | 
|  | 23498 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 23499 | ac_cxx_werror_flag=yes | 
|  | 23500 | ac_cv_prog_cxx_g=no | 
|  | 23501 | CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23503 | /* end confdefs.h.  */ | 
|  | 23504 |  | 
|  | 23505 | int | 
|  | 23506 | main () | 
|  | 23507 | { | 
|  | 23508 |  | 
|  | 23509 | ; | 
|  | 23510 | return 0; | 
|  | 23511 | } | 
|  | 23512 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23513 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23514 | ac_cv_prog_cxx_g=yes | 
|  | 23515 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23516 | CXXFLAGS="" | 
|  | 23517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23518 | /* end confdefs.h.  */ | 
|  | 23519 |  | 
|  | 23520 | int | 
|  | 23521 | main () | 
|  | 23522 | { | 
|  | 23523 |  | 
|  | 23524 | ; | 
|  | 23525 | return 0; | 
|  | 23526 | } | 
|  | 23527 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23528 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23529 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23530 | else | 
|  | 23531 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23532 | CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23534 | /* end confdefs.h.  */ | 
|  | 23535 |  | 
|  | 23536 | int | 
|  | 23537 | main () | 
|  | 23538 | { | 
|  | 23539 |  | 
|  | 23540 | ; | 
|  | 23541 | return 0; | 
|  | 23542 | } | 
|  | 23543 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23544 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23545 | ac_cv_prog_cxx_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23546 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23548 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23550 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23552 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 23553 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23554 | { $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] | 23555 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
|  | 23556 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 23557 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 23558 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 23559 | if test "$GXX" = yes; then | 
|  | 23560 | CXXFLAGS="-g -O2" | 
|  | 23561 | else | 
|  | 23562 | CXXFLAGS="-g" | 
|  | 23563 | fi | 
|  | 23564 | else | 
|  | 23565 | if test "$GXX" = yes; then | 
|  | 23566 | CXXFLAGS="-O2" | 
|  | 23567 | else | 
|  | 23568 | CXXFLAGS= | 
|  | 23569 | fi | 
|  | 23570 | fi | 
|  | 23571 | ac_ext=cpp | 
|  | 23572 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23573 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23574 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23575 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23576 |  | 
|  | 23577 | depcc="$CXX"  am_compiler_list= | 
|  | 23578 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23580 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23581 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23582 | $as_echo_n "(cached) " >&6 | 
|  | 23583 | else | 
|  | 23584 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 23585 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 23586 | # making bogus files that we don't know about and never remove.  For | 
|  | 23587 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 23588 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 23589 | # in D'. | 
|  | 23590 | mkdir conftest.dir | 
|  | 23591 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 23592 | # using a relative directory. | 
|  | 23593 | cp "$am_depcomp" conftest.dir | 
|  | 23594 | cd conftest.dir | 
|  | 23595 | # We will build objects and dependencies in a subdirectory because | 
|  | 23596 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 23597 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 23598 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 23599 | # the current directory while Tru64 will put them in the object | 
|  | 23600 | # directory. | 
|  | 23601 | mkdir sub | 
|  | 23602 |  | 
|  | 23603 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 23604 | if test "$am_compiler_list" = ""; then | 
|  | 23605 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 23606 | fi | 
|  | 23607 | am__universal=false | 
|  | 23608 | case " $depcc " in #( | 
|  | 23609 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 23610 | esac | 
|  | 23611 |  | 
|  | 23612 | for depmode in $am_compiler_list; do | 
|  | 23613 | # Setup a source with many dependencies, because some compilers | 
|  | 23614 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 23615 | # we should not choose a depcomp mode which is confused by this. | 
|  | 23616 | # | 
|  | 23617 | # We need to recreate these files for each test, as the compiler may | 
|  | 23618 | # overwrite some of them when testing with obscure command lines. | 
|  | 23619 | # This happens at least with the AIX C compiler. | 
|  | 23620 | : > sub/conftest.c | 
|  | 23621 | for i in 1 2 3 4 5 6; do | 
|  | 23622 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 23623 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 23624 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 23625 | touch sub/conftst$i.h | 
|  | 23626 | done | 
|  | 23627 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 23628 |  | 
|  | 23629 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 23630 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 23631 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 23632 | # versions had trouble with output in subdirs | 
|  | 23633 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 23634 | am__minus_obj="-o $am__obj" | 
|  | 23635 | case $depmode in | 
|  | 23636 | gcc) | 
|  | 23637 | # This depmode causes a compiler race in universal mode. | 
|  | 23638 | test "$am__universal" = false || continue | 
|  | 23639 | ;; | 
|  | 23640 | nosideeffect) | 
|  | 23641 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 23642 | # only be used when explicitly requested | 
|  | 23643 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 23644 | continue | 
|  | 23645 | else | 
|  | 23646 | break | 
|  | 23647 | fi | 
|  | 23648 | ;; | 
|  | 23649 | msvisualcpp | msvcmsys) | 
|  | 23650 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 23651 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 23652 | # so weak that their functioning should not be impacted. | 
|  | 23653 | am__obj=conftest.${OBJEXT-o} | 
|  | 23654 | am__minus_obj= | 
|  | 23655 | ;; | 
|  | 23656 | none) break ;; | 
|  | 23657 | esac | 
|  | 23658 | if depmode=$depmode \ | 
|  | 23659 | source=sub/conftest.c object=$am__obj \ | 
|  | 23660 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 23661 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 23662 | >/dev/null 2>conftest.err && | 
|  | 23663 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 23664 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 23665 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 23666 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 23667 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 23668 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 23669 | # that says an option was ignored or not supported. | 
|  | 23670 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 23671 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 23672 | # The diagnosis changed in icc 8.0: | 
|  | 23673 | #   icc: Command line remark: option '-MP' not supported | 
|  | 23674 | if (grep 'ignoring option' conftest.err || | 
|  | 23675 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 23676 | am_cv_CXX_dependencies_compiler_type=$depmode | 
|  | 23677 | break | 
|  | 23678 | fi | 
|  | 23679 | fi | 
|  | 23680 | done | 
|  | 23681 |  | 
|  | 23682 | cd .. | 
|  | 23683 | rm -rf conftest.dir | 
|  | 23684 | else | 
|  | 23685 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 23686 | fi | 
|  | 23687 |  | 
|  | 23688 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23690 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
|  | 23691 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
|  | 23692 |  | 
|  | 23693 | if | 
|  | 23694 | test "x$enable_dependency_tracking" != xno \ | 
|  | 23695 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
|  | 23696 | am__fastdepCXX_TRUE= | 
|  | 23697 | am__fastdepCXX_FALSE='#' | 
|  | 23698 | else | 
|  | 23699 | am__fastdepCXX_TRUE='#' | 
|  | 23700 | am__fastdepCXX_FALSE= | 
|  | 23701 | fi | 
|  | 23702 |  | 
|  | 23703 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23705 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23706 | if test "${ax_cv_cxx_bool+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23707 | $as_echo_n "(cached) " >&6 | 
|  | 23708 | else | 
|  | 23709 |  | 
|  | 23710 | ac_ext=cpp | 
|  | 23711 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23712 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23713 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23714 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23715 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23717 | /* end confdefs.h.  */ | 
|  | 23718 |  | 
|  | 23719 | int f(int  x){return 1;} | 
|  | 23720 | int f(char x){return 1;} | 
|  | 23721 | int f(bool x){return 1;} | 
|  | 23722 |  | 
|  | 23723 | int | 
|  | 23724 | main () | 
|  | 23725 | { | 
|  | 23726 | bool b = true; return f(b); | 
|  | 23727 | ; | 
|  | 23728 | return 0; | 
|  | 23729 | } | 
|  | 23730 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23731 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23732 | ax_cv_cxx_bool=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23733 | else | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23734 | ax_cv_cxx_bool=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23735 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23737 | ac_ext=cpp | 
|  | 23738 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23739 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23740 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23741 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23742 |  | 
|  | 23743 |  | 
|  | 23744 | fi | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 | 
|  | 23746 | $as_echo "$ax_cv_cxx_bool" >&6; } | 
|  | 23747 | if test "$ax_cv_cxx_bool" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23748 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23749 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23750 |  | 
|  | 23751 | fi | 
|  | 23752 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23754 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23755 | if test "${ax_cv_cxx_namespaces+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23756 | $as_echo_n "(cached) " >&6 | 
|  | 23757 | else | 
|  | 23758 |  | 
|  | 23759 | ac_ext=cpp | 
|  | 23760 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23761 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23762 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23763 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23764 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23766 | /* end confdefs.h.  */ | 
|  | 23767 | namespace Outer { namespace Inner { int i = 0; }} | 
|  | 23768 | int | 
|  | 23769 | main () | 
|  | 23770 | { | 
|  | 23771 | using namespace Outer::Inner; return i; | 
|  | 23772 | ; | 
|  | 23773 | return 0; | 
|  | 23774 | } | 
|  | 23775 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23776 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23777 | ax_cv_cxx_namespaces=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23778 | else | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23779 | ax_cv_cxx_namespaces=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23780 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23782 | ac_ext=cpp | 
|  | 23783 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23784 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23785 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23786 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23787 |  | 
|  | 23788 |  | 
|  | 23789 | fi | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 | 
|  | 23791 | $as_echo "$ax_cv_cxx_namespaces" >&6; } | 
|  | 23792 | if test "$ax_cv_cxx_namespaces" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23793 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23794 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23795 |  | 
|  | 23796 | fi | 
|  | 23797 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23798 |  | 
|  | 23799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 | 
|  | 23800 | $as_echo_n "checking if g++ supports namespace std... " >&6; } | 
|  | 23801 | if test "${ax_cv_cxx_have_std_namespace+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23802 | $as_echo_n "(cached) " >&6 | 
|  | 23803 | else | 
|  | 23804 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23805 | ac_ext=cpp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23806 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23807 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23808 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23809 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23810 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23812 | /* end confdefs.h.  */ | 
|  | 23813 | #include <iostream> | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23814 | std::istream& is = std::cin; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23815 | int | 
|  | 23816 | main () | 
|  | 23817 | { | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23818 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23819 | ; | 
|  | 23820 | return 0; | 
|  | 23821 | } | 
|  | 23822 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23823 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23824 | ax_cv_cxx_have_std_namespace=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23825 | else | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23826 | ax_cv_cxx_have_std_namespace=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23827 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23829 | ac_ext=cpp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23830 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23831 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23832 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23833 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23834 |  | 
|  | 23835 |  | 
|  | 23836 | fi | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 | 
|  | 23838 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } | 
|  | 23839 | if test "$ax_cv_cxx_have_std_namespace" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23840 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23841 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23842 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 23843 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23844 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23846 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23847 | if test "${ac_cv_cxx_have_std_libs+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23848 | $as_echo_n "(cached) " >&6 | 
|  | 23849 | else | 
|  | 23850 |  | 
|  | 23851 |  | 
|  | 23852 | ac_ext=cpp | 
|  | 23853 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23857 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23859 | /* end confdefs.h.  */ | 
|  | 23860 | #include <iostream> | 
|  | 23861 | #include <map> | 
|  | 23862 | #include <iomanip> | 
|  | 23863 | #include <cmath> | 
|  | 23864 | #ifdef HAVE_NAMESPACES | 
|  | 23865 | using namespace std; | 
|  | 23866 | #endif | 
|  | 23867 | int | 
|  | 23868 | main () | 
|  | 23869 | { | 
|  | 23870 | return 0; | 
|  | 23871 | ; | 
|  | 23872 | return 0; | 
|  | 23873 | } | 
|  | 23874 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23875 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23876 | ac_cv_cxx_have_std_libs=yes | 
|  | 23877 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23878 | ac_cv_cxx_have_std_libs=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23879 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23881 | ac_ext=cpp | 
|  | 23882 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23886 |  | 
|  | 23887 |  | 
|  | 23888 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23890 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } | 
|  | 23891 | if test "$ac_cv_cxx_have_std_libs" = yes; then | 
|  | 23892 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23893 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23894 |  | 
|  | 23895 | fi | 
|  | 23896 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23898 | $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23899 | if test "${ac_cv_cxx_have_lstring+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23900 | $as_echo_n "(cached) " >&6 | 
|  | 23901 | else | 
|  | 23902 |  | 
|  | 23903 | ac_ext=cpp | 
|  | 23904 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23908 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23910 | /* end confdefs.h.  */ | 
|  | 23911 | const wchar_t* s=L"wide string"; | 
|  | 23912 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23913 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23914 | ac_cv_cxx_have_lstring=yes | 
|  | 23915 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23916 | ac_cv_cxx_have_lstring=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23917 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23919 | ac_ext=cpp | 
|  | 23920 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 23921 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 23922 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 23923 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 23924 |  | 
|  | 23925 |  | 
|  | 23926 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23928 | $as_echo "$ac_cv_cxx_have_lstring" >&6; } | 
|  | 23929 | if test "$ac_cv_cxx_have_lstring" = yes; then | 
|  | 23930 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23931 | $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23932 |  | 
|  | 23933 | fi | 
|  | 23934 |  | 
|  | 23935 |  | 
|  | 23936 | OPENMP_CXXFLAGS= | 
|  | 23937 | # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23938 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23939 | enableval=$enable_openmp; | 
|  | 23940 | fi | 
|  | 23941 |  | 
|  | 23942 | if test "$enable_openmp" != no; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 | 
|  | 23944 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23945 | if test "${ac_cv_prog_cxx_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23946 | $as_echo_n "(cached) " >&6 | 
|  | 23947 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 23949 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23950 |  | 
|  | 23951 | #ifndef _OPENMP | 
|  | 23952 | choke me | 
|  | 23953 | #endif | 
|  | 23954 | #include <omp.h> | 
|  | 23955 | int main () { return omp_get_num_threads (); } | 
|  | 23956 |  | 
|  | 23957 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23958 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23959 | ac_cv_prog_cxx_openmp='none needed' | 
|  | 23960 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23961 | ac_cv_prog_cxx_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23962 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
|  | 23963 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 23964 | CXXFLAGS="$CXXFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 23966 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23967 |  | 
|  | 23968 | #ifndef _OPENMP | 
|  | 23969 | choke me | 
|  | 23970 | #endif | 
|  | 23971 | #include <omp.h> | 
|  | 23972 | int main () { return omp_get_num_threads (); } | 
|  | 23973 |  | 
|  | 23974 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23975 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23976 | ac_cv_prog_cxx_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23977 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23978 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23979 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23980 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 23981 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then | 
|  | 23982 | break | 
|  | 23983 | fi | 
|  | 23984 | done | 
|  | 23985 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23986 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23987 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23988 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23989 | { $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] | 23990 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } | 
|  | 23991 | case $ac_cv_prog_cxx_openmp in #( | 
|  | 23992 | "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23993 | ;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23994 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23995 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23996 | esac | 
|  | 23997 | fi | 
|  | 23998 |  | 
|  | 23999 |  | 
|  | 24000 | ac_ext=c | 
|  | 24001 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24005 |  | 
|  | 24006 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24007 | { $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] | 24008 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } | 
|  | 24009 | if \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24010 | test $ax_cv_cxx_bool = 'yes' && \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24011 | test $ac_cv_cxx_have_lstring = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24012 | test $ax_cv_cxx_namespaces = 'yes' && \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24013 | test $ac_cv_cxx_have_std_libs = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24014 | test $ax_cv_cxx_have_std_namespace = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24015 | have_magick_plus_plus='yes' | 
|  | 24016 | else | 
|  | 24017 | have_magick_plus_plus='no (failed tests)' | 
|  | 24018 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24020 | $as_echo "$have_magick_plus_plus" >&6; } | 
|  | 24021 | LIBS="$OLIBS" | 
|  | 24022 | fi | 
|  | 24023 | if test "$have_magick_plus_plus" = 'yes'; then | 
|  | 24024 | WITH_MAGICK_PLUS_PLUS_TRUE= | 
|  | 24025 | WITH_MAGICK_PLUS_PLUS_FALSE='#' | 
|  | 24026 | else | 
|  | 24027 | WITH_MAGICK_PLUS_PLUS_TRUE='#' | 
|  | 24028 | WITH_MAGICK_PLUS_PLUS_FALSE= | 
|  | 24029 | fi | 
|  | 24030 |  | 
|  | 24031 |  | 
|  | 24032 | # Only check for delegate libraries in subdirectories if requested. | 
|  | 24033 | if test "$enable_delegate_build" != 'no'; then | 
|  | 24034 | # Check for delegate sub-directories and add -I & -L options as required. | 
|  | 24035 | # This presumes that delegates are installed as detailed in the ImageMagick | 
|  | 24036 | # README. If delegates are installed in a standard location where the | 
|  | 24037 | # compiler will automatically find them then these options should not be | 
|  | 24038 | # required. | 
|  | 24039 |  | 
|  | 24040 | # | 
|  | 24041 | # Most delegates have includes in the same directory as the library, but not all... | 
|  | 24042 | # | 
|  | 24043 | # Includes | 
| cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 24044 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24045 | if test -d "$builddir/$dir"; then | 
|  | 24046 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" | 
|  | 24047 | else | 
|  | 24048 | if test -d "$srcdirfull/$dir"; then | 
|  | 24049 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" | 
|  | 24050 | fi | 
|  | 24051 | fi | 
|  | 24052 | done | 
|  | 24053 |  | 
|  | 24054 | # Libraries | 
| cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 24055 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24056 | if test -d "$builddir/$dir/.libs"; then | 
|  | 24057 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" | 
|  | 24058 | else | 
|  | 24059 | if test -d "$srcdirfull/$dir/.libs"; then | 
|  | 24060 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" | 
|  | 24061 | fi | 
|  | 24062 | fi | 
|  | 24063 | if test -d "$builddir/$dir"; then | 
|  | 24064 | LDFLAGS="$LDFLAGS -L$builddir/$dir" | 
|  | 24065 | else | 
|  | 24066 | if test -d "$srcdirfull/$dir"; then | 
|  | 24067 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" | 
|  | 24068 | fi | 
|  | 24069 | fi | 
|  | 24070 | done | 
|  | 24071 | fi | 
|  | 24072 |  | 
|  | 24073 | # Assume that delegate headers reside under same directory as ImageMagick | 
|  | 24074 | # installation prefix. | 
|  | 24075 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" | 
|  | 24076 |  | 
|  | 24077 | # | 
|  | 24078 | # Find the X11 RGB database | 
|  | 24079 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24081 | $as_echo_n "checking for X11 configure files... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24082 | if test "${im_cv_x_configure+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24083 | $as_echo_n "(cached) " >&6 | 
|  | 24084 | else | 
|  | 24085 | # Look for the header file in a standard set of common directories. | 
|  | 24086 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|  | 24087 | for ac_dir in          \ | 
|  | 24088 | /lib/usr/lib/X11       \ | 
|  | 24089 | /usr/X11/lib           \ | 
|  | 24090 | /usr/X11R4/lib         \ | 
|  | 24091 | /usr/X11R5/lib         \ | 
|  | 24092 | /usr/X11R6/lib         \ | 
|  | 24093 | /usr/X11R7/lib         \ | 
|  | 24094 | /usr/X386/lib          \ | 
|  | 24095 | /usr/XFree86/lib/X11   \ | 
|  | 24096 | /usr/athena/lib        \ | 
|  | 24097 | /usr/lib               \ | 
|  | 24098 | /usr/lib/X11           \ | 
|  | 24099 | /usr/lib/X11R4         \ | 
|  | 24100 | /usr/lib/X11R5         \ | 
|  | 24101 | /usr/lib/X11R6         \ | 
|  | 24102 | /usr/lib/X11R7         \ | 
|  | 24103 | /usr/local/X11/lib     \ | 
|  | 24104 | /usr/local/X11R4/lib   \ | 
|  | 24105 | /usr/local/X11R5/lib   \ | 
|  | 24106 | /usr/local/X11R6/lib   \ | 
|  | 24107 | /usr/local/lib         \ | 
|  | 24108 | /usr/local/lib/X11     \ | 
|  | 24109 | /usr/local/lib/X11R4   \ | 
|  | 24110 | /usr/local/lib/X11R5   \ | 
|  | 24111 | /usr/local/lib/X11R6   \ | 
|  | 24112 | /usr/local/lib/X11R7   \ | 
|  | 24113 | /usr/local/x11r5/lib   \ | 
|  | 24114 | /usr/lpp/Xamples/lib   \ | 
|  | 24115 | /usr/openwin/lib       \ | 
|  | 24116 | /usr/openwin/share/lib \ | 
|  | 24117 | /usr/unsupported/lib   \ | 
|  | 24118 | /usr/x386/lib          \ | 
|  | 24119 | ; do | 
|  | 24120 | if test -f "$ac_dir/X11/rgb.txt"; then | 
|  | 24121 | im_cv_x_configure="$ac_dir/X11/" | 
|  | 24122 | break | 
|  | 24123 | elif test -f "$ac_dir/rgb.txt"; then | 
|  | 24124 | im_cv_x_configure="$ac_dir/" | 
|  | 24125 | break | 
|  | 24126 | fi | 
|  | 24127 |  | 
|  | 24128 | done | 
|  | 24129 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24131 | $as_echo "$im_cv_x_configure" >&6; } | 
|  | 24132 | X11_CONFIGURE_PATH="$im_cv_x_configure" | 
|  | 24133 | case "${build_os}" in | 
|  | 24134 | mingw* ) | 
|  | 24135 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` | 
|  | 24136 | ;; | 
|  | 24137 | esac | 
|  | 24138 |  | 
|  | 24139 | cat >>confdefs.h <<_ACEOF | 
|  | 24140 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" | 
|  | 24141 | _ACEOF | 
|  | 24142 |  | 
|  | 24143 |  | 
|  | 24144 | # | 
|  | 24145 | # Find OpenMP library | 
|  | 24146 | # | 
|  | 24147 | GOMP_LIBS='' | 
|  | 24148 | if test "$enable_openmp" != 'no'; then | 
|  | 24149 | if test "${GCC}" = "yes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24150 | { $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] | 24151 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24152 | if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24153 | $as_echo_n "(cached) " >&6 | 
|  | 24154 | else | 
|  | 24155 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24156 | LIBS="-lgomp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24158 | /* end confdefs.h.  */ | 
|  | 24159 |  | 
|  | 24160 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24161 | Use char because int might match the return type of a GCC | 
|  | 24162 | builtin and then its argument prototype would still apply.  */ | 
|  | 24163 | #ifdef __cplusplus | 
|  | 24164 | extern "C" | 
|  | 24165 | #endif | 
|  | 24166 | char GOMP_parallel_start (); | 
|  | 24167 | int | 
|  | 24168 | main () | 
|  | 24169 | { | 
|  | 24170 | return GOMP_parallel_start (); | 
|  | 24171 | ; | 
|  | 24172 | return 0; | 
|  | 24173 | } | 
|  | 24174 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24175 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24176 | ac_cv_lib_gomp_GOMP_parallel_start=yes | 
|  | 24177 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24178 | ac_cv_lib_gomp_GOMP_parallel_start=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24179 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24180 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24181 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24182 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24183 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24184 | { $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] | 24185 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24186 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24187 | GOMP_LIBS="-lgomp" | 
|  | 24188 | fi | 
|  | 24189 | # gcc | 
|  | 24190 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24191 | { $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] | 24192 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24193 | if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24194 | $as_echo_n "(cached) " >&6 | 
|  | 24195 | else | 
|  | 24196 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24197 | LIBS="-lmtsk  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24199 | /* end confdefs.h.  */ | 
|  | 24200 |  | 
|  | 24201 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24202 | Use char because int might match the return type of a GCC | 
|  | 24203 | builtin and then its argument prototype would still apply.  */ | 
|  | 24204 | #ifdef __cplusplus | 
|  | 24205 | extern "C" | 
|  | 24206 | #endif | 
|  | 24207 | char sunw_mp_register_warn (); | 
|  | 24208 | int | 
|  | 24209 | main () | 
|  | 24210 | { | 
|  | 24211 | return sunw_mp_register_warn (); | 
|  | 24212 | ; | 
|  | 24213 | return 0; | 
|  | 24214 | } | 
|  | 24215 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24216 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24217 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes | 
|  | 24218 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24219 | ac_cv_lib_mtsk_sunw_mp_register_warn=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24220 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24221 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24222 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24223 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24224 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24225 | { $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] | 24226 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24227 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24228 | GOMP_LIBS="-lmtsk" | 
|  | 24229 | fi | 
|  | 24230 | # solaris cc | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24232 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24233 | if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24234 | $as_echo_n "(cached) " >&6 | 
|  | 24235 | else | 
|  | 24236 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24237 | LIBS="-lxlsmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24239 | /* end confdefs.h.  */ | 
|  | 24240 |  | 
|  | 24241 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24242 | Use char because int might match the return type of a GCC | 
|  | 24243 | builtin and then its argument prototype would still apply.  */ | 
|  | 24244 | #ifdef __cplusplus | 
|  | 24245 | extern "C" | 
|  | 24246 | #endif | 
|  | 24247 | char _xlsmpFlush (); | 
|  | 24248 | int | 
|  | 24249 | main () | 
|  | 24250 | { | 
|  | 24251 | return _xlsmpFlush (); | 
|  | 24252 | ; | 
|  | 24253 | return 0; | 
|  | 24254 | } | 
|  | 24255 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24256 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24257 | ac_cv_lib_xlsmp__xlsmpFlush=yes | 
|  | 24258 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24259 | ac_cv_lib_xlsmp__xlsmpFlush=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24260 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24261 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24262 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24263 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24264 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24265 | { $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] | 24266 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24267 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24268 | GOMP_LIBS="-lxlsmp" | 
|  | 24269 | fi | 
|  | 24270 | # AIX xlc | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24271 | { $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] | 24272 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24273 | if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24274 | $as_echo_n "(cached) " >&6 | 
|  | 24275 | else | 
|  | 24276 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24277 | LIBS="-lmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24279 | /* end confdefs.h.  */ | 
|  | 24280 |  | 
|  | 24281 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24282 | Use char because int might match the return type of a GCC | 
|  | 24283 | builtin and then its argument prototype would still apply.  */ | 
|  | 24284 | #ifdef __cplusplus | 
|  | 24285 | extern "C" | 
|  | 24286 | #endif | 
|  | 24287 | char mp_destroy (); | 
|  | 24288 | int | 
|  | 24289 | main () | 
|  | 24290 | { | 
|  | 24291 | return mp_destroy (); | 
|  | 24292 | ; | 
|  | 24293 | return 0; | 
|  | 24294 | } | 
|  | 24295 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24296 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24297 | ac_cv_lib_mp_mp_destroy=yes | 
|  | 24298 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24299 | ac_cv_lib_mp_mp_destroy=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24300 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24301 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24302 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24303 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24304 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24305 | { $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] | 24306 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24307 | if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24308 | GOMP_LIBS="-lmp" | 
|  | 24309 | fi | 
|  | 24310 | # SGI IRIX 6.5 MIPSpro C/C++ | 
|  | 24311 | fi | 
|  | 24312 | LIBS="$GOMP_LIBS $LIBS" | 
|  | 24313 | fi | 
|  | 24314 |  | 
|  | 24315 |  | 
|  | 24316 | # | 
|  | 24317 | # Find Posix threads library | 
|  | 24318 | # | 
|  | 24319 | THREAD_LIBS='' | 
|  | 24320 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then | 
|  | 24321 |  | 
|  | 24322 | if test "x$PTHREAD_LIBS" = "x"; then | 
|  | 24323 | case "${host_cpu}-${host_os}" in | 
|  | 24324 | *-freebsd*) | 
|  | 24325 |  | 
|  | 24326 |  | 
|  | 24327 |  | 
|  | 24328 | ac_ext=c | 
|  | 24329 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24333 |  | 
|  | 24334 | magick_pthread_lib_ok=no | 
|  | 24335 |  | 
|  | 24336 | LIB=-lc_r | 
|  | 24337 | save_LIBS="$LIBS" | 
|  | 24338 | LIBS="$LIBS $LIB" | 
|  | 24339 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24341 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24343 | /* end confdefs.h.  */ | 
|  | 24344 | #include <pthread.h> | 
|  | 24345 | int | 
|  | 24346 | main () | 
|  | 24347 | { | 
|  | 24348 | pthread_t th; | 
|  | 24349 | pthread_join(th, 0); | 
|  | 24350 | pthread_attr_init(0); | 
|  | 24351 | pthread_cleanup_push(0, 0); | 
|  | 24352 | pthread_create(0,0,0,0); | 
|  | 24353 | pthread_cleanup_pop(0); | 
|  | 24354 | ; | 
|  | 24355 | return 0; | 
|  | 24356 | } | 
|  | 24357 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24358 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24359 | magick_pthread_lib_ok=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24360 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24361 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24362 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24363 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24365 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
|  | 24366 | if test "$magick_pthread_lib_ok" = yes | 
|  | 24367 | then | 
|  | 24368 | PTHREAD_LIBS=-lc_r | 
|  | 24369 | : | 
|  | 24370 | else | 
|  | 24371 |  | 
|  | 24372 | : | 
|  | 24373 | fi | 
|  | 24374 |  | 
|  | 24375 | LIBS="$save_LIBS" | 
|  | 24376 |  | 
|  | 24377 | ac_ext=c | 
|  | 24378 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24382 |  | 
|  | 24383 | ;; | 
|  | 24384 | esac | 
|  | 24385 | fi | 
|  | 24386 |  | 
|  | 24387 | for lib in pthread pthreads; do | 
|  | 24388 | if test "x$PTHREAD_LIBS" = "x"; then | 
|  | 24389 |  | 
|  | 24390 |  | 
|  | 24391 |  | 
|  | 24392 | ac_ext=c | 
|  | 24393 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24397 |  | 
|  | 24398 | magick_pthread_lib_ok=no | 
|  | 24399 |  | 
|  | 24400 | LIB=-l$lib | 
|  | 24401 | save_LIBS="$LIBS" | 
|  | 24402 | LIBS="$LIBS $LIB" | 
|  | 24403 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24405 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24407 | /* end confdefs.h.  */ | 
|  | 24408 | #include <pthread.h> | 
|  | 24409 | int | 
|  | 24410 | main () | 
|  | 24411 | { | 
|  | 24412 | pthread_t th; | 
|  | 24413 | pthread_join(th, 0); | 
|  | 24414 | pthread_attr_init(0); | 
|  | 24415 | pthread_cleanup_push(0, 0); | 
|  | 24416 | pthread_create(0,0,0,0); | 
|  | 24417 | pthread_cleanup_pop(0); | 
|  | 24418 | ; | 
|  | 24419 | return 0; | 
|  | 24420 | } | 
|  | 24421 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24422 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24423 | magick_pthread_lib_ok=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24424 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24425 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24426 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24427 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24429 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
|  | 24430 | if test "$magick_pthread_lib_ok" = yes | 
|  | 24431 | then | 
|  | 24432 | PTHREAD_LIBS=-l$lib | 
|  | 24433 | : | 
|  | 24434 | else | 
|  | 24435 |  | 
|  | 24436 | : | 
|  | 24437 | fi | 
|  | 24438 |  | 
|  | 24439 | LIBS="$save_LIBS" | 
|  | 24440 |  | 
|  | 24441 | ac_ext=c | 
|  | 24442 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24446 |  | 
|  | 24447 |  | 
|  | 24448 | fi | 
|  | 24449 | done | 
|  | 24450 |  | 
|  | 24451 | THREAD_LIBS="$PTHREAD_LIBS" | 
|  | 24452 | LIBS="$LIBS $THREAD_LIBS" | 
|  | 24453 | fi | 
|  | 24454 |  | 
|  | 24455 |  | 
|  | 24456 | # | 
|  | 24457 | # Check for umem. | 
|  | 24458 | # | 
|  | 24459 | have_umem='no' | 
|  | 24460 | UMEM_LIBS='' | 
|  | 24461 | if test "$with_umem" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24463 | $as_echo_n "checking for UMEM support ... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24465 | $as_echo "" >&6; } | 
|  | 24466 | failed=0 | 
|  | 24467 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24468 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" | 
|  | 24469 | if test "x$ac_cv_header_umem_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24470 | passed=`expr $passed + 1` | 
|  | 24471 | else | 
|  | 24472 | failed=`expr $failed + 1` | 
|  | 24473 | fi | 
|  | 24474 |  | 
|  | 24475 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24476 | { $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] | 24477 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24478 | if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24479 | $as_echo_n "(cached) " >&6 | 
|  | 24480 | else | 
|  | 24481 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24482 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24484 | /* end confdefs.h.  */ | 
|  | 24485 |  | 
|  | 24486 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24487 | Use char because int might match the return type of a GCC | 
|  | 24488 | builtin and then its argument prototype would still apply.  */ | 
|  | 24489 | #ifdef __cplusplus | 
|  | 24490 | extern "C" | 
|  | 24491 | #endif | 
|  | 24492 | char umem_alloc (); | 
|  | 24493 | int | 
|  | 24494 | main () | 
|  | 24495 | { | 
|  | 24496 | return umem_alloc (); | 
|  | 24497 | ; | 
|  | 24498 | return 0; | 
|  | 24499 | } | 
|  | 24500 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24501 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24502 | ac_cv_lib_umem_umem_alloc=yes | 
|  | 24503 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24504 | ac_cv_lib_umem_umem_alloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24505 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24506 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24507 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24508 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24509 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24510 | { $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] | 24511 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24512 | if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24513 | passed=`expr $passed + 1` | 
|  | 24514 | else | 
|  | 24515 | failed=`expr $failed + 1` | 
|  | 24516 | fi | 
|  | 24517 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24518 | { $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] | 24519 | $as_echo_n "checking for umem_free in -lumem... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24520 | if test "${ac_cv_lib_umem_umem_free+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24521 | $as_echo_n "(cached) " >&6 | 
|  | 24522 | else | 
|  | 24523 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24524 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24526 | /* end confdefs.h.  */ | 
|  | 24527 |  | 
|  | 24528 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24529 | Use char because int might match the return type of a GCC | 
|  | 24530 | builtin and then its argument prototype would still apply.  */ | 
|  | 24531 | #ifdef __cplusplus | 
|  | 24532 | extern "C" | 
|  | 24533 | #endif | 
|  | 24534 | char umem_free (); | 
|  | 24535 | int | 
|  | 24536 | main () | 
|  | 24537 | { | 
|  | 24538 | return umem_free (); | 
|  | 24539 | ; | 
|  | 24540 | return 0; | 
|  | 24541 | } | 
|  | 24542 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24543 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24544 | ac_cv_lib_umem_umem_free=yes | 
|  | 24545 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24546 | ac_cv_lib_umem_umem_free=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24547 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24548 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24549 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24550 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24551 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24552 | { $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] | 24553 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24554 | if test "x$ac_cv_lib_umem_umem_free" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24555 | passed=`expr $passed + 1` | 
|  | 24556 | else | 
|  | 24557 | failed=`expr $failed + 1` | 
|  | 24558 | fi | 
|  | 24559 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24560 | { $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] | 24561 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } | 
|  | 24562 | if test $passed -gt 0; then | 
|  | 24563 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24565 | $as_echo "no -- some components failed test" >&6; } | 
|  | 24566 | have_umem='no (failed tests)' | 
|  | 24567 | else | 
|  | 24568 | UMEM_LIBS='-lumem' | 
|  | 24569 | LIBS="$UMEM_LIBS $LIBS" | 
|  | 24570 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24571 | $as_echo "#define HasUMEM 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24572 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24574 | $as_echo "yes" >&6; } | 
|  | 24575 | have_umem='yes' | 
|  | 24576 | fi | 
|  | 24577 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24579 | $as_echo "no" >&6; } | 
|  | 24580 | fi | 
|  | 24581 | fi | 
|  | 24582 | if test "$have_umem" = 'yes'; then | 
|  | 24583 | HasUMEM_TRUE= | 
|  | 24584 | HasUMEM_FALSE='#' | 
|  | 24585 | else | 
|  | 24586 | HasUMEM_TRUE='#' | 
|  | 24587 | HasUMEM_FALSE= | 
|  | 24588 | fi | 
|  | 24589 |  | 
|  | 24590 |  | 
|  | 24591 |  | 
|  | 24592 | # | 
|  | 24593 | # Add support for ccmalloc memory debugging library if requested | 
|  | 24594 | # | 
|  | 24595 | have_ccmalloc='no' | 
|  | 24596 | CCMALLOC_LIBS='' | 
|  | 24597 | if test "$enable_ccmalloc" = 'yes'; then | 
|  | 24598 | # Extract the first word of "ccmalloc", so it can be a program name with args. | 
|  | 24599 | set dummy ccmalloc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24601 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24602 | if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24603 | $as_echo_n "(cached) " >&6 | 
|  | 24604 | else | 
|  | 24605 | case $CCMALLOCDelegate in | 
|  | 24606 | [\\/]* | ?:[\\/]*) | 
|  | 24607 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. | 
|  | 24608 | ;; | 
|  | 24609 | *) | 
|  | 24610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 24611 | for as_dir in $PATH | 
|  | 24612 | do | 
|  | 24613 | IFS=$as_save_IFS | 
|  | 24614 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24615 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 24617 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24618 | $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] | 24619 | break 2 | 
|  | 24620 | fi | 
|  | 24621 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24622 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24623 | IFS=$as_save_IFS | 
|  | 24624 |  | 
|  | 24625 | ;; | 
|  | 24626 | esac | 
|  | 24627 | fi | 
|  | 24628 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate | 
|  | 24629 | if test -n "$CCMALLOCDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24631 | $as_echo "$CCMALLOCDelegate" >&6; } | 
|  | 24632 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24634 | $as_echo "no" >&6; } | 
|  | 24635 | fi | 
|  | 24636 |  | 
|  | 24637 |  | 
|  | 24638 | if test -n "$CCMALLOCDelegate"; then | 
|  | 24639 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` | 
|  | 24640 | OLIBS="$LIBS" | 
|  | 24641 | # Assume that gcc is used with ccmalloc. | 
|  | 24642 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24643 | { $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] | 24644 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24645 | if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24646 | $as_echo_n "(cached) " >&6 | 
|  | 24647 | else | 
|  | 24648 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24649 | LIBS="-lccmalloc -ldl $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24651 | /* end confdefs.h.  */ | 
|  | 24652 |  | 
|  | 24653 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24654 | Use char because int might match the return type of a GCC | 
|  | 24655 | builtin and then its argument prototype would still apply.  */ | 
|  | 24656 | #ifdef __cplusplus | 
|  | 24657 | extern "C" | 
|  | 24658 | #endif | 
|  | 24659 | char ccmalloc_malloc (); | 
|  | 24660 | int | 
|  | 24661 | main () | 
|  | 24662 | { | 
|  | 24663 | return ccmalloc_malloc (); | 
|  | 24664 | ; | 
|  | 24665 | return 0; | 
|  | 24666 | } | 
|  | 24667 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24668 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24669 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes | 
|  | 24670 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24671 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24672 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24673 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24674 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24675 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24676 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24677 | { $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] | 24678 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24679 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24680 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" | 
|  | 24681 | fi | 
|  | 24682 |  | 
|  | 24683 | if test -n "$CCMALLOC_LIBS"; then | 
|  | 24684 | LIBS="$OLIBS" | 
|  | 24685 | LIBS="$LIBS $CCMALLOC_LIBS" | 
|  | 24686 | have_ccmalloc='yes' | 
|  | 24687 | else | 
|  | 24688 | LIBS="$OLIBS" | 
|  | 24689 | fi | 
|  | 24690 | fi | 
|  | 24691 | fi | 
|  | 24692 |  | 
|  | 24693 | # | 
|  | 24694 | # Add support for efence memory debugging library if requested | 
|  | 24695 | # | 
|  | 24696 | if test "$enable_efence" = 'yes'; then | 
|  | 24697 | EFENCE_LIBS='-lefence' | 
|  | 24698 | LIBS="$EFENCE_LIBS $LIBS" | 
|  | 24699 | fi | 
|  | 24700 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24701 |  | 
|  | 24702 | # | 
|  | 24703 | # Check for BZLIB | 
|  | 24704 | # | 
|  | 24705 |  | 
|  | 24706 |  | 
|  | 24707 | # Check whether --with-bzlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24708 | if test "${with_bzlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24709 | withval=$with_bzlib; with_bzlib=$withval | 
|  | 24710 | else | 
|  | 24711 | with_bzlib='yes' | 
|  | 24712 | fi | 
|  | 24713 |  | 
|  | 24714 |  | 
|  | 24715 | if test "$with_bzlib" != 'yes'; then | 
|  | 24716 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " | 
|  | 24717 | fi | 
|  | 24718 |  | 
|  | 24719 | have_bzlib='no' | 
|  | 24720 | if test "$with_bzlib" != 'no'; then | 
|  | 24721 | BZLIB_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24723 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24725 | $as_echo_n "checking for BZLIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24727 | $as_echo "" >&6; } | 
|  | 24728 | failed=0 | 
|  | 24729 | passed=0 | 
|  | 24730 | found_libbz=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24731 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" | 
|  | 24732 | if test "x$ac_cv_header_bzlib_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24733 | passed=`expr $passed + 1` | 
|  | 24734 | else | 
|  | 24735 | failed=`expr $failed + 1` | 
|  | 24736 | fi | 
|  | 24737 |  | 
|  | 24738 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24739 | { $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] | 24740 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24741 | if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24742 | $as_echo_n "(cached) " >&6 | 
|  | 24743 | else | 
|  | 24744 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24745 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24747 | /* end confdefs.h.  */ | 
|  | 24748 |  | 
|  | 24749 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24750 | Use char because int might match the return type of a GCC | 
|  | 24751 | builtin and then its argument prototype would still apply.  */ | 
|  | 24752 | #ifdef __cplusplus | 
|  | 24753 | extern "C" | 
|  | 24754 | #endif | 
|  | 24755 | char BZ2_bzDecompress (); | 
|  | 24756 | int | 
|  | 24757 | main () | 
|  | 24758 | { | 
|  | 24759 | return BZ2_bzDecompress (); | 
|  | 24760 | ; | 
|  | 24761 | return 0; | 
|  | 24762 | } | 
|  | 24763 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24764 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24765 | ac_cv_lib_bz2_BZ2_bzDecompress=yes | 
|  | 24766 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24767 | ac_cv_lib_bz2_BZ2_bzDecompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24768 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24769 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24770 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24771 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24772 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24773 | { $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] | 24774 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24775 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24776 | found_libbz=`expr $found_libbz + 1` | 
|  | 24777 | fi | 
|  | 24778 |  | 
|  | 24779 | if test "$native_win32_build" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24780 | { $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] | 24781 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24782 | if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24783 | $as_echo_n "(cached) " >&6 | 
|  | 24784 | else | 
|  | 24785 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24786 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24788 | /* end confdefs.h.  */ | 
|  | 24789 |  | 
|  | 24790 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24791 | Use char because int might match the return type of a GCC | 
|  | 24792 | builtin and then its argument prototype would still apply.  */ | 
|  | 24793 | #ifdef __cplusplus | 
|  | 24794 | extern "C" | 
|  | 24795 | #endif | 
|  | 24796 | char _imp__BZ2_decompress (); | 
|  | 24797 | int | 
|  | 24798 | main () | 
|  | 24799 | { | 
|  | 24800 | return _imp__BZ2_decompress (); | 
|  | 24801 | ; | 
|  | 24802 | return 0; | 
|  | 24803 | } | 
|  | 24804 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24805 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24806 | ac_cv_lib_bz2__imp__BZ2_decompress=yes | 
|  | 24807 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24808 | ac_cv_lib_bz2__imp__BZ2_decompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24809 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24810 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24811 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24812 | LIBS=$ac_check_lib_save_LIBS | 
|  | 24813 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24814 | { $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] | 24815 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24816 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24817 | found_libbz=`expr $found_libbz + 1` | 
|  | 24818 | fi | 
|  | 24819 |  | 
|  | 24820 | fi | 
|  | 24821 | if test $found_libbz -gt 0; then | 
|  | 24822 | passed=`expr $passed + 1` | 
|  | 24823 | else | 
|  | 24824 | failed=`expr $failed + 1` | 
|  | 24825 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24826 | { $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] | 24827 | $as_echo_n "checking if BZLIB package is complete... " >&6; } | 
|  | 24828 | if test $passed -gt 0; then | 
|  | 24829 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24831 | $as_echo "no -- some components failed test" >&6; } | 
|  | 24832 | have_bzlib='no (failed tests)' | 
|  | 24833 | else | 
|  | 24834 | BZLIB_LIBS='-lbz2' | 
|  | 24835 | LIBS="$BZLIB_LIBS $LIBS" | 
|  | 24836 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24837 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24838 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24840 | $as_echo "yes" >&6; } | 
|  | 24841 | have_bzlib='yes' | 
|  | 24842 | fi | 
|  | 24843 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24845 | $as_echo "no" >&6; } | 
|  | 24846 | fi | 
|  | 24847 | fi | 
|  | 24848 | if test "$have_bzlib" = 'yes'; then | 
|  | 24849 | BZLIB_DELEGATE_TRUE= | 
|  | 24850 | BZLIB_DELEGATE_FALSE='#' | 
|  | 24851 | else | 
|  | 24852 | BZLIB_DELEGATE_TRUE='#' | 
|  | 24853 | BZLIB_DELEGATE_FALSE= | 
|  | 24854 | fi | 
|  | 24855 |  | 
|  | 24856 |  | 
|  | 24857 |  | 
|  | 24858 | # | 
|  | 24859 | # Find the X11 include and library directories. | 
|  | 24860 | # | 
|  | 24861 | IPC_LIBS='' | 
|  | 24862 | X11_LIBS='' | 
|  | 24863 | XEXT_LIBS='' | 
|  | 24864 | XT_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24866 | $as_echo_n "checking for X... " >&6; } | 
|  | 24867 |  | 
|  | 24868 |  | 
|  | 24869 | # Check whether --with-x was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24870 | if test "${with_x+set}" = set; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24871 | withval=$with_x; | 
|  | 24872 | fi | 
|  | 24873 |  | 
|  | 24874 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 
|  | 24875 | if test "x$with_x" = xno; then | 
|  | 24876 | # The user explicitly disabled X. | 
|  | 24877 | have_x=disabled | 
|  | 24878 | else | 
|  | 24879 | case $x_includes,$x_libraries in #( | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 24880 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24881 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24882 | $as_echo_n "(cached) " >&6 | 
|  | 24883 | else | 
|  | 24884 | # One or both of the vars are not set, and there is no cached value. | 
|  | 24885 | ac_x_includes=no ac_x_libraries=no | 
|  | 24886 | rm -f -r conftest.dir | 
|  | 24887 | if mkdir conftest.dir; then | 
|  | 24888 | cd conftest.dir | 
|  | 24889 | cat >Imakefile <<'_ACEOF' | 
|  | 24890 | incroot: | 
|  | 24891 | @echo incroot='${INCROOT}' | 
|  | 24892 | usrlibdir: | 
|  | 24893 | @echo usrlibdir='${USRLIBDIR}' | 
|  | 24894 | libdir: | 
|  | 24895 | @echo libdir='${LIBDIR}' | 
|  | 24896 | _ACEOF | 
|  | 24897 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 24898 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24899 | for ac_var in incroot usrlibdir libdir; do | 
|  | 24900 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | 
|  | 24901 | done | 
|  | 24902 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 
|  | 24903 | for ac_extension in a so sl dylib la dll; do | 
|  | 24904 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | 
|  | 24905 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | 
|  | 24906 | ac_im_usrlibdir=$ac_im_libdir; break | 
|  | 24907 | fi | 
|  | 24908 | done | 
|  | 24909 | # Screen out bogus values from the imake configuration.  They are | 
|  | 24910 | # bogus both because they are the default anyway, and because | 
|  | 24911 | # using them would break gcc on systems where it needs fixed includes. | 
|  | 24912 | case $ac_im_incroot in | 
|  | 24913 | /usr/include) ac_x_includes= ;; | 
|  | 24914 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 
|  | 24915 | esac | 
|  | 24916 | case $ac_im_usrlibdir in | 
|  | 24917 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | 
|  | 24918 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 
|  | 24919 | esac | 
|  | 24920 | fi | 
|  | 24921 | cd .. | 
|  | 24922 | rm -f -r conftest.dir | 
|  | 24923 | fi | 
|  | 24924 |  | 
|  | 24925 | # Standard set of common directories for X headers. | 
|  | 24926 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|  | 24927 | ac_x_header_dirs=' | 
|  | 24928 | /usr/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24929 | /usr/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24930 | /usr/X11R6/include | 
|  | 24931 | /usr/X11R5/include | 
|  | 24932 | /usr/X11R4/include | 
|  | 24933 |  | 
|  | 24934 | /usr/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24935 | /usr/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24936 | /usr/include/X11R6 | 
|  | 24937 | /usr/include/X11R5 | 
|  | 24938 | /usr/include/X11R4 | 
|  | 24939 |  | 
|  | 24940 | /usr/local/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24941 | /usr/local/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24942 | /usr/local/X11R6/include | 
|  | 24943 | /usr/local/X11R5/include | 
|  | 24944 | /usr/local/X11R4/include | 
|  | 24945 |  | 
|  | 24946 | /usr/local/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24947 | /usr/local/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24948 | /usr/local/include/X11R6 | 
|  | 24949 | /usr/local/include/X11R5 | 
|  | 24950 | /usr/local/include/X11R4 | 
|  | 24951 |  | 
|  | 24952 | /usr/X386/include | 
|  | 24953 | /usr/x386/include | 
|  | 24954 | /usr/XFree86/include/X11 | 
|  | 24955 |  | 
|  | 24956 | /usr/include | 
|  | 24957 | /usr/local/include | 
|  | 24958 | /usr/unsupported/include | 
|  | 24959 | /usr/athena/include | 
|  | 24960 | /usr/local/x11r5/include | 
|  | 24961 | /usr/lpp/Xamples/include | 
|  | 24962 |  | 
|  | 24963 | /usr/openwin/include | 
|  | 24964 | /usr/openwin/share/include' | 
|  | 24965 |  | 
|  | 24966 | if test "$ac_x_includes" = no; then | 
|  | 24967 | # Guess where to find include files, by looking for Xlib.h. | 
|  | 24968 | # First, try using that file with no special directory specified. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24970 | /* end confdefs.h.  */ | 
|  | 24971 | #include <X11/Xlib.h> | 
|  | 24972 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24973 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24974 | # We can compile using X headers with no special include directory. | 
|  | 24975 | ac_x_includes= | 
|  | 24976 | else | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24977 | for ac_dir in $ac_x_header_dirs; do | 
|  | 24978 | if test -r "$ac_dir/X11/Xlib.h"; then | 
|  | 24979 | ac_x_includes=$ac_dir | 
|  | 24980 | break | 
|  | 24981 | fi | 
|  | 24982 | done | 
|  | 24983 | fi | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24984 | rm -f conftest.err conftest.$ac_ext | 
|  | 24985 | fi # $ac_x_includes = no | 
|  | 24986 |  | 
|  | 24987 | if test "$ac_x_libraries" = no; then | 
|  | 24988 | # Check for the libraries. | 
|  | 24989 | # See if we find them without any special options. | 
|  | 24990 | # Don't add to $LIBS permanently. | 
|  | 24991 | ac_save_LIBS=$LIBS | 
|  | 24992 | LIBS="-lX11 $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 24994 | /* end confdefs.h.  */ | 
|  | 24995 | #include <X11/Xlib.h> | 
|  | 24996 | int | 
|  | 24997 | main () | 
|  | 24998 | { | 
|  | 24999 | XrmInitialize () | 
|  | 25000 | ; | 
|  | 25001 | return 0; | 
|  | 25002 | } | 
|  | 25003 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25004 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25005 | LIBS=$ac_save_LIBS | 
|  | 25006 | # We can link X programs with no special library path. | 
|  | 25007 | ac_x_libraries= | 
|  | 25008 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25009 | LIBS=$ac_save_LIBS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25010 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | 
|  | 25011 | do | 
|  | 25012 | # Don't even attempt the hair of trying to link an X program! | 
|  | 25013 | for ac_extension in a so sl dylib la dll; do | 
|  | 25014 | if test -r "$ac_dir/libX11.$ac_extension"; then | 
|  | 25015 | ac_x_libraries=$ac_dir | 
|  | 25016 | break 2 | 
|  | 25017 | fi | 
|  | 25018 | done | 
|  | 25019 | done | 
|  | 25020 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25021 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25022 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25023 | fi # $ac_x_libraries = no | 
|  | 25024 |  | 
|  | 25025 | case $ac_x_includes,$ac_x_libraries in #( | 
|  | 25026 | no,* | *,no | *\'*) | 
|  | 25027 | # Didn't find X, or a directory has "'" in its name. | 
|  | 25028 | ac_cv_have_x="have_x=no";; #( | 
|  | 25029 | *) | 
|  | 25030 | # Record where we found X for the cache. | 
|  | 25031 | ac_cv_have_x="have_x=yes\ | 
|  | 25032 | ac_x_includes='$ac_x_includes'\ | 
|  | 25033 | ac_x_libraries='$ac_x_libraries'" | 
|  | 25034 | esac | 
|  | 25035 | fi | 
|  | 25036 | ;; #( | 
|  | 25037 | *) have_x=yes;; | 
|  | 25038 | esac | 
|  | 25039 | eval "$ac_cv_have_x" | 
|  | 25040 | fi # $with_x != no | 
|  | 25041 |  | 
|  | 25042 | if test "$have_x" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25044 | $as_echo "$have_x" >&6; } | 
|  | 25045 | no_x=yes | 
|  | 25046 | else | 
|  | 25047 | # If each of the values was on the command line, it overrides each guess. | 
|  | 25048 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 
|  | 25049 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 
|  | 25050 | # Update the cache value to reflect the command line values. | 
|  | 25051 | ac_cv_have_x="have_x=yes\ | 
|  | 25052 | ac_x_includes='$x_includes'\ | 
|  | 25053 | ac_x_libraries='$x_libraries'" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25054 | { $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] | 25055 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 
|  | 25056 | fi | 
|  | 25057 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25058 | if test "$no_x" = yes; then | 
|  | 25059 | # Not all programs may use this symbol, but it does not hurt to define it. | 
|  | 25060 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25061 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25062 |  | 
|  | 25063 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | 
|  | 25064 | else | 
|  | 25065 | if test -n "$x_includes"; then | 
|  | 25066 | X_CFLAGS="$X_CFLAGS -I$x_includes" | 
|  | 25067 | fi | 
|  | 25068 |  | 
|  | 25069 | # It would also be nice to do this for all -L options, not just this one. | 
|  | 25070 | if test -n "$x_libraries"; then | 
|  | 25071 | X_LIBS="$X_LIBS -L$x_libraries" | 
|  | 25072 | # For Solaris; some versions of Sun CC require a space after -R and | 
|  | 25073 | # others require no space.  Words are not sufficient . . . . | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25074 | { $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] | 25075 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | 
|  | 25076 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | 
|  | 25077 | ac_xsave_c_werror_flag=$ac_c_werror_flag | 
|  | 25078 | ac_c_werror_flag=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25080 | /* end confdefs.h.  */ | 
|  | 25081 |  | 
|  | 25082 | int | 
|  | 25083 | main () | 
|  | 25084 | { | 
|  | 25085 |  | 
|  | 25086 | ; | 
|  | 25087 | return 0; | 
|  | 25088 | } | 
|  | 25089 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25090 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25092 | $as_echo "no" >&6; } | 
|  | 25093 | X_LIBS="$X_LIBS -R$x_libraries" | 
|  | 25094 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25095 | LIBS="$ac_xsave_LIBS -R $x_libraries" | 
|  | 25096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25097 | /* end confdefs.h.  */ | 
|  | 25098 |  | 
|  | 25099 | int | 
|  | 25100 | main () | 
|  | 25101 | { | 
|  | 25102 |  | 
|  | 25103 | ; | 
|  | 25104 | return 0; | 
|  | 25105 | } | 
|  | 25106 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25107 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25109 | $as_echo "yes" >&6; } | 
|  | 25110 | X_LIBS="$X_LIBS -R $x_libraries" | 
|  | 25111 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25113 | $as_echo "neither works" >&6; } | 
|  | 25114 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25115 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25116 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25117 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25118 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25119 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25120 | ac_c_werror_flag=$ac_xsave_c_werror_flag | 
|  | 25121 | LIBS=$ac_xsave_LIBS | 
|  | 25122 | fi | 
|  | 25123 |  | 
|  | 25124 | # Check for system-dependent libraries X programs must link with. | 
|  | 25125 | # Do this before checking for the system-independent R6 libraries | 
|  | 25126 | # (-lICE), since we may need -lsocket or whatever for X linking. | 
|  | 25127 |  | 
|  | 25128 | if test "$ISC" = yes; then | 
|  | 25129 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 
|  | 25130 | else | 
|  | 25131 | # Martyn Johnson says this is needed for Ultrix, if the X | 
|  | 25132 | # libraries were built with DECnet support.  And Karl Berry says | 
|  | 25133 | # the Alpha needs dnet_stub (dnet does not exist). | 
|  | 25134 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25136 | /* end confdefs.h.  */ | 
|  | 25137 |  | 
|  | 25138 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25139 | Use char because int might match the return type of a GCC | 
|  | 25140 | builtin and then its argument prototype would still apply.  */ | 
|  | 25141 | #ifdef __cplusplus | 
|  | 25142 | extern "C" | 
|  | 25143 | #endif | 
|  | 25144 | char XOpenDisplay (); | 
|  | 25145 | int | 
|  | 25146 | main () | 
|  | 25147 | { | 
|  | 25148 | return XOpenDisplay (); | 
|  | 25149 | ; | 
|  | 25150 | return 0; | 
|  | 25151 | } | 
|  | 25152 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25153 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25154 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25155 | else | 
|  | 25156 | { $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] | 25157 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25158 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25159 | $as_echo_n "(cached) " >&6 | 
|  | 25160 | else | 
|  | 25161 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25162 | LIBS="-ldnet  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25164 | /* end confdefs.h.  */ | 
|  | 25165 |  | 
|  | 25166 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25167 | Use char because int might match the return type of a GCC | 
|  | 25168 | builtin and then its argument prototype would still apply.  */ | 
|  | 25169 | #ifdef __cplusplus | 
|  | 25170 | extern "C" | 
|  | 25171 | #endif | 
|  | 25172 | char dnet_ntoa (); | 
|  | 25173 | int | 
|  | 25174 | main () | 
|  | 25175 | { | 
|  | 25176 | return dnet_ntoa (); | 
|  | 25177 | ; | 
|  | 25178 | return 0; | 
|  | 25179 | } | 
|  | 25180 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25181 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25182 | ac_cv_lib_dnet_dnet_ntoa=yes | 
|  | 25183 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25184 | ac_cv_lib_dnet_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25185 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25186 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25187 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25188 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25189 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25190 | { $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] | 25191 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25192 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25193 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 
|  | 25194 | fi | 
|  | 25195 |  | 
|  | 25196 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25197 | { $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] | 25198 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25199 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25200 | $as_echo_n "(cached) " >&6 | 
|  | 25201 | else | 
|  | 25202 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25203 | LIBS="-ldnet_stub  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25205 | /* end confdefs.h.  */ | 
|  | 25206 |  | 
|  | 25207 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25208 | Use char because int might match the return type of a GCC | 
|  | 25209 | builtin and then its argument prototype would still apply.  */ | 
|  | 25210 | #ifdef __cplusplus | 
|  | 25211 | extern "C" | 
|  | 25212 | #endif | 
|  | 25213 | char dnet_ntoa (); | 
|  | 25214 | int | 
|  | 25215 | main () | 
|  | 25216 | { | 
|  | 25217 | return dnet_ntoa (); | 
|  | 25218 | ; | 
|  | 25219 | return 0; | 
|  | 25220 | } | 
|  | 25221 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25222 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25223 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | 
|  | 25224 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25225 | ac_cv_lib_dnet_stub_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25226 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25227 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25228 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25229 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25230 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25231 | { $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] | 25232 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25233 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25234 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 
|  | 25235 | fi | 
|  | 25236 |  | 
|  | 25237 | fi | 
|  | 25238 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25239 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25240 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25241 | LIBS="$ac_xsave_LIBS" | 
|  | 25242 |  | 
|  | 25243 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | 
|  | 25244 | # to get the SysV transport functions. | 
|  | 25245 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | 
|  | 25246 | # needs -lnsl. | 
|  | 25247 | # The nsl library prevents programs from opening the X display | 
|  | 25248 | # on Irix 5.2, according to T.E. Dickey. | 
|  | 25249 | # The functions gethostbyname, getservbyname, and inet_addr are | 
|  | 25250 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25251 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
|  | 25252 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25253 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25254 | fi | 
|  | 25255 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25256 | if test $ac_cv_func_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25258 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25259 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25260 | $as_echo_n "(cached) " >&6 | 
|  | 25261 | else | 
|  | 25262 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25263 | LIBS="-lnsl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25265 | /* end confdefs.h.  */ | 
|  | 25266 |  | 
|  | 25267 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25268 | Use char because int might match the return type of a GCC | 
|  | 25269 | builtin and then its argument prototype would still apply.  */ | 
|  | 25270 | #ifdef __cplusplus | 
|  | 25271 | extern "C" | 
|  | 25272 | #endif | 
|  | 25273 | char gethostbyname (); | 
|  | 25274 | int | 
|  | 25275 | main () | 
|  | 25276 | { | 
|  | 25277 | return gethostbyname (); | 
|  | 25278 | ; | 
|  | 25279 | return 0; | 
|  | 25280 | } | 
|  | 25281 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25282 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25283 | ac_cv_lib_nsl_gethostbyname=yes | 
|  | 25284 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25285 | ac_cv_lib_nsl_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25286 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25287 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25288 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25289 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25290 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25291 | { $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] | 25292 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25293 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25294 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 
|  | 25295 | fi | 
|  | 25296 |  | 
|  | 25297 | if test $ac_cv_lib_nsl_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25299 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25300 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25301 | $as_echo_n "(cached) " >&6 | 
|  | 25302 | else | 
|  | 25303 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25304 | LIBS="-lbsd  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25306 | /* end confdefs.h.  */ | 
|  | 25307 |  | 
|  | 25308 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25309 | Use char because int might match the return type of a GCC | 
|  | 25310 | builtin and then its argument prototype would still apply.  */ | 
|  | 25311 | #ifdef __cplusplus | 
|  | 25312 | extern "C" | 
|  | 25313 | #endif | 
|  | 25314 | char gethostbyname (); | 
|  | 25315 | int | 
|  | 25316 | main () | 
|  | 25317 | { | 
|  | 25318 | return gethostbyname (); | 
|  | 25319 | ; | 
|  | 25320 | return 0; | 
|  | 25321 | } | 
|  | 25322 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25323 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25324 | ac_cv_lib_bsd_gethostbyname=yes | 
|  | 25325 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25326 | ac_cv_lib_bsd_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25327 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25328 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25329 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25330 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25331 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25332 | { $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] | 25333 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25334 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | 
|  | 25336 | fi | 
|  | 25337 |  | 
|  | 25338 | fi | 
|  | 25339 | fi | 
|  | 25340 |  | 
|  | 25341 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | 
|  | 25342 | # socket/setsockopt and other routines are undefined under SCO ODT | 
|  | 25343 | # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary | 
|  | 25344 | # on later versions), says Simon Leinen: it contains gethostby* | 
|  | 25345 | # variants that don't use the name server (or something).  -lsocket | 
|  | 25346 | # must be given before -lnsl if both are needed.  We assume that | 
|  | 25347 | # if connect needs -lnsl, so does gethostbyname. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25348 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | 
|  | 25349 | if test "x$ac_cv_func_connect" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25350 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25351 | fi | 
|  | 25352 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25353 | if test $ac_cv_func_connect = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25355 | $as_echo_n "checking for connect in -lsocket... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25356 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25357 | $as_echo_n "(cached) " >&6 | 
|  | 25358 | else | 
|  | 25359 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25360 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25362 | /* end confdefs.h.  */ | 
|  | 25363 |  | 
|  | 25364 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25365 | Use char because int might match the return type of a GCC | 
|  | 25366 | builtin and then its argument prototype would still apply.  */ | 
|  | 25367 | #ifdef __cplusplus | 
|  | 25368 | extern "C" | 
|  | 25369 | #endif | 
|  | 25370 | char connect (); | 
|  | 25371 | int | 
|  | 25372 | main () | 
|  | 25373 | { | 
|  | 25374 | return connect (); | 
|  | 25375 | ; | 
|  | 25376 | return 0; | 
|  | 25377 | } | 
|  | 25378 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25379 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25380 | ac_cv_lib_socket_connect=yes | 
|  | 25381 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25382 | ac_cv_lib_socket_connect=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25383 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25384 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25385 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25386 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25387 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25388 | { $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] | 25389 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25390 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25391 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 
|  | 25392 | fi | 
|  | 25393 |  | 
|  | 25394 | fi | 
|  | 25395 |  | 
|  | 25396 | # Guillermo Gomez says -lposix is necessary on A/UX. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25397 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | 
|  | 25398 | if test "x$ac_cv_func_remove" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25399 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25400 | fi | 
|  | 25401 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25402 | if test $ac_cv_func_remove = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25404 | $as_echo_n "checking for remove in -lposix... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25405 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25406 | $as_echo_n "(cached) " >&6 | 
|  | 25407 | else | 
|  | 25408 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25409 | LIBS="-lposix  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25411 | /* end confdefs.h.  */ | 
|  | 25412 |  | 
|  | 25413 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25414 | Use char because int might match the return type of a GCC | 
|  | 25415 | builtin and then its argument prototype would still apply.  */ | 
|  | 25416 | #ifdef __cplusplus | 
|  | 25417 | extern "C" | 
|  | 25418 | #endif | 
|  | 25419 | char remove (); | 
|  | 25420 | int | 
|  | 25421 | main () | 
|  | 25422 | { | 
|  | 25423 | return remove (); | 
|  | 25424 | ; | 
|  | 25425 | return 0; | 
|  | 25426 | } | 
|  | 25427 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25428 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25429 | ac_cv_lib_posix_remove=yes | 
|  | 25430 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25431 | ac_cv_lib_posix_remove=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25432 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25433 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25434 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25435 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25436 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25437 | { $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] | 25438 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25439 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25440 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 
|  | 25441 | fi | 
|  | 25442 |  | 
|  | 25443 | fi | 
|  | 25444 |  | 
|  | 25445 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25446 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | 
|  | 25447 | if test "x$ac_cv_func_shmat" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25448 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25449 | fi | 
|  | 25450 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25451 | if test $ac_cv_func_shmat = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25453 | $as_echo_n "checking for shmat in -lipc... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25454 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25455 | $as_echo_n "(cached) " >&6 | 
|  | 25456 | else | 
|  | 25457 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25458 | LIBS="-lipc  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25460 | /* end confdefs.h.  */ | 
|  | 25461 |  | 
|  | 25462 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25463 | Use char because int might match the return type of a GCC | 
|  | 25464 | builtin and then its argument prototype would still apply.  */ | 
|  | 25465 | #ifdef __cplusplus | 
|  | 25466 | extern "C" | 
|  | 25467 | #endif | 
|  | 25468 | char shmat (); | 
|  | 25469 | int | 
|  | 25470 | main () | 
|  | 25471 | { | 
|  | 25472 | return shmat (); | 
|  | 25473 | ; | 
|  | 25474 | return 0; | 
|  | 25475 | } | 
|  | 25476 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25477 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25478 | ac_cv_lib_ipc_shmat=yes | 
|  | 25479 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25480 | ac_cv_lib_ipc_shmat=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25481 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25482 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25483 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25484 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25485 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25486 | { $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] | 25487 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25488 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25489 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 
|  | 25490 | fi | 
|  | 25491 |  | 
|  | 25492 | fi | 
|  | 25493 | fi | 
|  | 25494 |  | 
|  | 25495 | # Check for libraries that X11R6 Xt/Xaw programs need. | 
|  | 25496 | ac_save_LDFLAGS=$LDFLAGS | 
|  | 25497 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | 
|  | 25498 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | 
|  | 25499 | # check for ICE first), but we must link in the order -lSM -lICE or | 
|  | 25500 | # we get undefined symbols.  So assume we have SM if we have ICE. | 
|  | 25501 | # These have to be linked with before -lX11, unlike the other | 
|  | 25502 | # libraries we check for below, so use a different variable. | 
|  | 25503 | # John Interrante, Karl Berry | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25505 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25506 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25507 | $as_echo_n "(cached) " >&6 | 
|  | 25508 | else | 
|  | 25509 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25510 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25512 | /* end confdefs.h.  */ | 
|  | 25513 |  | 
|  | 25514 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25515 | Use char because int might match the return type of a GCC | 
|  | 25516 | builtin and then its argument prototype would still apply.  */ | 
|  | 25517 | #ifdef __cplusplus | 
|  | 25518 | extern "C" | 
|  | 25519 | #endif | 
|  | 25520 | char IceConnectionNumber (); | 
|  | 25521 | int | 
|  | 25522 | main () | 
|  | 25523 | { | 
|  | 25524 | return IceConnectionNumber (); | 
|  | 25525 | ; | 
|  | 25526 | return 0; | 
|  | 25527 | } | 
|  | 25528 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25529 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25530 | ac_cv_lib_ICE_IceConnectionNumber=yes | 
|  | 25531 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25532 | ac_cv_lib_ICE_IceConnectionNumber=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25533 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25534 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25535 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25536 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25537 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25538 | { $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] | 25539 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25540 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25541 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 
|  | 25542 | fi | 
|  | 25543 |  | 
|  | 25544 | LDFLAGS=$ac_save_LDFLAGS | 
|  | 25545 |  | 
|  | 25546 | fi | 
|  | 25547 |  | 
|  | 25548 | if test "$no_x" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25550 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25552 | $as_echo_n "checking for X11... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25554 | $as_echo "" >&6; } | 
|  | 25555 | LDFLAGS="$LDFLAGS $X_LIBS" | 
|  | 25556 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" | 
|  | 25557 | LIBS="$X11_LIBS $LIBS" | 
|  | 25558 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 
|  | 25559 |  | 
|  | 25560 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25561 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25562 |  | 
|  | 25563 | # | 
|  | 25564 | # Check for X11 shared memory extension | 
|  | 25565 | # | 
|  | 25566 | # shmctl is required to support the shared memory extension | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25567 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" | 
|  | 25568 | if test "x$ac_cv_func_shmctl" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25569 | have_shmctl='yes' | 
|  | 25570 | fi | 
|  | 25571 |  | 
|  | 25572 | if test "$have_shmctl" != 'yes'; then | 
|  | 25573 | PERSIST_LIBS=$LIBS | 
|  | 25574 | LIBS="$LIBS -lcygipc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25576 | /* end confdefs.h.  */ | 
|  | 25577 |  | 
|  | 25578 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25579 | Use char because int might match the return type of a GCC | 
|  | 25580 | builtin and then its argument prototype would still apply.  */ | 
|  | 25581 | #ifdef __cplusplus | 
|  | 25582 | extern "C" | 
|  | 25583 | #endif | 
|  | 25584 | char shmctl (); | 
|  | 25585 | int | 
|  | 25586 | main () | 
|  | 25587 | { | 
|  | 25588 | return shmctl (); | 
|  | 25589 | ; | 
|  | 25590 | return 0; | 
|  | 25591 | } | 
|  | 25592 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25593 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25594 | have_shmctl='yes'; IPC_LIBS='-lcygipc' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25595 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25596 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25597 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25598 | LIBS=$PERSIST_LIBS | 
|  | 25599 | fi | 
|  | 25600 |  | 
|  | 25601 | if test "$have_shmctl" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25603 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25604 | if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25605 | $as_echo_n "(cached) " >&6 | 
|  | 25606 | else | 
|  | 25607 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25608 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25610 | /* end confdefs.h.  */ | 
|  | 25611 |  | 
|  | 25612 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25613 | Use char because int might match the return type of a GCC | 
|  | 25614 | builtin and then its argument prototype would still apply.  */ | 
|  | 25615 | #ifdef __cplusplus | 
|  | 25616 | extern "C" | 
|  | 25617 | #endif | 
|  | 25618 | char XShmAttach (); | 
|  | 25619 | int | 
|  | 25620 | main () | 
|  | 25621 | { | 
|  | 25622 | return XShmAttach (); | 
|  | 25623 | ; | 
|  | 25624 | return 0; | 
|  | 25625 | } | 
|  | 25626 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25627 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25628 | ac_cv_lib_Xext_XShmAttach=yes | 
|  | 25629 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25630 | ac_cv_lib_Xext_XShmAttach=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25631 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25632 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25633 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25634 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25635 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25636 | { $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] | 25637 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25638 | if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25639 | XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25640 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25641 |  | 
|  | 25642 | fi | 
|  | 25643 |  | 
|  | 25644 | fi | 
|  | 25645 |  | 
|  | 25646 | # | 
|  | 25647 | # Check for X11 shape extension | 
|  | 25648 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25650 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25651 | if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25652 | $as_echo_n "(cached) " >&6 | 
|  | 25653 | else | 
|  | 25654 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25655 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25657 | /* end confdefs.h.  */ | 
|  | 25658 |  | 
|  | 25659 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25660 | Use char because int might match the return type of a GCC | 
|  | 25661 | builtin and then its argument prototype would still apply.  */ | 
|  | 25662 | #ifdef __cplusplus | 
|  | 25663 | extern "C" | 
|  | 25664 | #endif | 
|  | 25665 | char XShapeCombineMask (); | 
|  | 25666 | int | 
|  | 25667 | main () | 
|  | 25668 | { | 
|  | 25669 | return XShapeCombineMask (); | 
|  | 25670 | ; | 
|  | 25671 | return 0; | 
|  | 25672 | } | 
|  | 25673 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25674 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25675 | ac_cv_lib_Xext_XShapeCombineMask=yes | 
|  | 25676 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25677 | ac_cv_lib_Xext_XShapeCombineMask=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25678 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25679 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25680 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25681 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25682 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25683 | { $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] | 25684 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25685 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25686 | XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25687 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25688 |  | 
|  | 25689 | fi | 
|  | 25690 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25692 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25693 | if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25694 | $as_echo_n "(cached) " >&6 | 
|  | 25695 | else | 
|  | 25696 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25697 | LIBS="-lXt  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25699 | /* end confdefs.h.  */ | 
|  | 25700 |  | 
|  | 25701 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25702 | Use char because int might match the return type of a GCC | 
|  | 25703 | builtin and then its argument prototype would still apply.  */ | 
|  | 25704 | #ifdef __cplusplus | 
|  | 25705 | extern "C" | 
|  | 25706 | #endif | 
|  | 25707 | char XtSetEventDispatcher (); | 
|  | 25708 | int | 
|  | 25709 | main () | 
|  | 25710 | { | 
|  | 25711 | return XtSetEventDispatcher (); | 
|  | 25712 | ; | 
|  | 25713 | return 0; | 
|  | 25714 | } | 
|  | 25715 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25716 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25717 | ac_cv_lib_Xt_XtSetEventDispatcher=yes | 
|  | 25718 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25719 | ac_cv_lib_Xt_XtSetEventDispatcher=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25720 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25721 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25722 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25723 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25724 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25725 | { $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] | 25726 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25727 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25728 | XT_LIBS='-lXt' | 
|  | 25729 | fi | 
|  | 25730 |  | 
|  | 25731 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" | 
|  | 25732 | fi | 
|  | 25733 | if test "$no_x" != 'yes'; then | 
|  | 25734 | have_x='yes' | 
|  | 25735 | else | 
|  | 25736 | have_x='no' | 
|  | 25737 | fi | 
|  | 25738 | if test "$have_x" = 'yes'; then | 
|  | 25739 | X11_DELEGATE_TRUE= | 
|  | 25740 | X11_DELEGATE_FALSE='#' | 
|  | 25741 | else | 
|  | 25742 | X11_DELEGATE_TRUE='#' | 
|  | 25743 | X11_DELEGATE_FALSE= | 
|  | 25744 | fi | 
|  | 25745 |  | 
|  | 25746 |  | 
|  | 25747 |  | 
|  | 25748 |  | 
|  | 25749 |  | 
|  | 25750 | # | 
|  | 25751 | # Check for ZLIB | 
|  | 25752 | # | 
|  | 25753 |  | 
|  | 25754 | # Check whether --with-zlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25755 | if test "${with_zlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25756 | withval=$with_zlib; with_zlib=$withval | 
|  | 25757 | else | 
|  | 25758 | with_zlib='yes' | 
|  | 25759 | fi | 
|  | 25760 |  | 
|  | 25761 |  | 
|  | 25762 | if test "$with_zlib" != 'yes'; then | 
|  | 25763 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " | 
|  | 25764 | fi | 
|  | 25765 |  | 
|  | 25766 | have_zlib='no' | 
|  | 25767 | ZLIB_LIBS='' | 
|  | 25768 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25770 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25772 | $as_echo_n "checking for ZLIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25774 | $as_echo "" >&6; } | 
|  | 25775 | ZLIB_LIBS='' | 
|  | 25776 | failed=0 | 
|  | 25777 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25778 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" | 
|  | 25779 | if test "x$ac_cv_header_zconf_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25780 | passed=`expr $passed + 1` | 
|  | 25781 | else | 
|  | 25782 | failed=`expr $failed + 1` | 
|  | 25783 | fi | 
|  | 25784 |  | 
|  | 25785 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25786 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | 
|  | 25787 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25788 | passed=`expr $passed + 1` | 
|  | 25789 | else | 
|  | 25790 | failed=`expr $failed + 1` | 
|  | 25791 | fi | 
|  | 25792 |  | 
|  | 25793 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25795 | $as_echo_n "checking for compress in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25796 | if test "${ac_cv_lib_z_compress+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25797 | $as_echo_n "(cached) " >&6 | 
|  | 25798 | else | 
|  | 25799 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25800 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25802 | /* end confdefs.h.  */ | 
|  | 25803 |  | 
|  | 25804 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25805 | Use char because int might match the return type of a GCC | 
|  | 25806 | builtin and then its argument prototype would still apply.  */ | 
|  | 25807 | #ifdef __cplusplus | 
|  | 25808 | extern "C" | 
|  | 25809 | #endif | 
|  | 25810 | char compress (); | 
|  | 25811 | int | 
|  | 25812 | main () | 
|  | 25813 | { | 
|  | 25814 | return compress (); | 
|  | 25815 | ; | 
|  | 25816 | return 0; | 
|  | 25817 | } | 
|  | 25818 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25819 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25820 | ac_cv_lib_z_compress=yes | 
|  | 25821 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25822 | ac_cv_lib_z_compress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25823 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25824 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25825 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25826 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25827 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25828 | { $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] | 25829 | $as_echo "$ac_cv_lib_z_compress" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25830 | if test "x$ac_cv_lib_z_compress" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25831 | passed=`expr $passed + 1` | 
|  | 25832 | else | 
|  | 25833 | failed=`expr $failed + 1` | 
|  | 25834 | fi | 
|  | 25835 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25837 | $as_echo_n "checking for uncompress in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25838 | if test "${ac_cv_lib_z_uncompress+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25839 | $as_echo_n "(cached) " >&6 | 
|  | 25840 | else | 
|  | 25841 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25842 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25844 | /* end confdefs.h.  */ | 
|  | 25845 |  | 
|  | 25846 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25847 | Use char because int might match the return type of a GCC | 
|  | 25848 | builtin and then its argument prototype would still apply.  */ | 
|  | 25849 | #ifdef __cplusplus | 
|  | 25850 | extern "C" | 
|  | 25851 | #endif | 
|  | 25852 | char uncompress (); | 
|  | 25853 | int | 
|  | 25854 | main () | 
|  | 25855 | { | 
|  | 25856 | return uncompress (); | 
|  | 25857 | ; | 
|  | 25858 | return 0; | 
|  | 25859 | } | 
|  | 25860 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25861 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25862 | ac_cv_lib_z_uncompress=yes | 
|  | 25863 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25864 | ac_cv_lib_z_uncompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25865 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25866 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25867 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25868 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25869 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25871 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25872 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25873 | passed=`expr $passed + 1` | 
|  | 25874 | else | 
|  | 25875 | failed=`expr $failed + 1` | 
|  | 25876 | fi | 
|  | 25877 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25879 | $as_echo_n "checking for deflate in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25880 | if test "${ac_cv_lib_z_deflate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25881 | $as_echo_n "(cached) " >&6 | 
|  | 25882 | else | 
|  | 25883 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25884 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25886 | /* end confdefs.h.  */ | 
|  | 25887 |  | 
|  | 25888 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25889 | Use char because int might match the return type of a GCC | 
|  | 25890 | builtin and then its argument prototype would still apply.  */ | 
|  | 25891 | #ifdef __cplusplus | 
|  | 25892 | extern "C" | 
|  | 25893 | #endif | 
|  | 25894 | char deflate (); | 
|  | 25895 | int | 
|  | 25896 | main () | 
|  | 25897 | { | 
|  | 25898 | return deflate (); | 
|  | 25899 | ; | 
|  | 25900 | return 0; | 
|  | 25901 | } | 
|  | 25902 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25903 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25904 | ac_cv_lib_z_deflate=yes | 
|  | 25905 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25906 | ac_cv_lib_z_deflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25907 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25908 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25909 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25910 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25911 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25912 | { $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] | 25913 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25914 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25915 | passed=`expr $passed + 1` | 
|  | 25916 | else | 
|  | 25917 | failed=`expr $failed + 1` | 
|  | 25918 | fi | 
|  | 25919 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25921 | $as_echo_n "checking for inflate in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25922 | if test "${ac_cv_lib_z_inflate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25923 | $as_echo_n "(cached) " >&6 | 
|  | 25924 | else | 
|  | 25925 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25926 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25928 | /* end confdefs.h.  */ | 
|  | 25929 |  | 
|  | 25930 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25931 | Use char because int might match the return type of a GCC | 
|  | 25932 | builtin and then its argument prototype would still apply.  */ | 
|  | 25933 | #ifdef __cplusplus | 
|  | 25934 | extern "C" | 
|  | 25935 | #endif | 
|  | 25936 | char inflate (); | 
|  | 25937 | int | 
|  | 25938 | main () | 
|  | 25939 | { | 
|  | 25940 | return inflate (); | 
|  | 25941 | ; | 
|  | 25942 | return 0; | 
|  | 25943 | } | 
|  | 25944 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25945 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25946 | ac_cv_lib_z_inflate=yes | 
|  | 25947 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25948 | ac_cv_lib_z_inflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25949 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25950 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25951 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25952 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25953 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25954 | { $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] | 25955 | $as_echo "$ac_cv_lib_z_inflate" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25956 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25957 | passed=`expr $passed + 1` | 
|  | 25958 | else | 
|  | 25959 | failed=`expr $failed + 1` | 
|  | 25960 | fi | 
|  | 25961 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25963 | $as_echo_n "checking for gzseek in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25964 | if test "${ac_cv_lib_z_gzseek+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25965 | $as_echo_n "(cached) " >&6 | 
|  | 25966 | else | 
|  | 25967 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25968 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25970 | /* end confdefs.h.  */ | 
|  | 25971 |  | 
|  | 25972 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25973 | Use char because int might match the return type of a GCC | 
|  | 25974 | builtin and then its argument prototype would still apply.  */ | 
|  | 25975 | #ifdef __cplusplus | 
|  | 25976 | extern "C" | 
|  | 25977 | #endif | 
|  | 25978 | char gzseek (); | 
|  | 25979 | int | 
|  | 25980 | main () | 
|  | 25981 | { | 
|  | 25982 | return gzseek (); | 
|  | 25983 | ; | 
|  | 25984 | return 0; | 
|  | 25985 | } | 
|  | 25986 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25987 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25988 | ac_cv_lib_z_gzseek=yes | 
|  | 25989 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25990 | ac_cv_lib_z_gzseek=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25991 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25992 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25993 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25994 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25995 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25996 | { $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] | 25997 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25998 | if test "x$ac_cv_lib_z_gzseek" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25999 | passed=`expr $passed + 1` | 
|  | 26000 | else | 
|  | 26001 | failed=`expr $failed + 1` | 
|  | 26002 | fi | 
|  | 26003 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26005 | $as_echo_n "checking for gztell in -lz... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26006 | if test "${ac_cv_lib_z_gztell+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26007 | $as_echo_n "(cached) " >&6 | 
|  | 26008 | else | 
|  | 26009 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26010 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26012 | /* end confdefs.h.  */ | 
|  | 26013 |  | 
|  | 26014 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26015 | Use char because int might match the return type of a GCC | 
|  | 26016 | builtin and then its argument prototype would still apply.  */ | 
|  | 26017 | #ifdef __cplusplus | 
|  | 26018 | extern "C" | 
|  | 26019 | #endif | 
|  | 26020 | char gztell (); | 
|  | 26021 | int | 
|  | 26022 | main () | 
|  | 26023 | { | 
|  | 26024 | return gztell (); | 
|  | 26025 | ; | 
|  | 26026 | return 0; | 
|  | 26027 | } | 
|  | 26028 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26029 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26030 | ac_cv_lib_z_gztell=yes | 
|  | 26031 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26032 | ac_cv_lib_z_gztell=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26033 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26034 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26035 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26036 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26037 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26038 | { $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] | 26039 | $as_echo "$ac_cv_lib_z_gztell" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26040 | if test "x$ac_cv_lib_z_gztell" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26041 | passed=`expr $passed + 1` | 
|  | 26042 | else | 
|  | 26043 | failed=`expr $failed + 1` | 
|  | 26044 | fi | 
|  | 26045 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26046 | { $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] | 26047 | $as_echo_n "checking if ZLIB package is complete... " >&6; } | 
|  | 26048 | if test $passed -gt 0; then | 
|  | 26049 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26051 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26052 | have_zlib='no (failed tests)' | 
|  | 26053 | else | 
|  | 26054 | ZLIB_LIBS='-lz' | 
|  | 26055 | LIBS="$ZLIB_LIBS $LIBS" | 
|  | 26056 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26057 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26058 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26060 | $as_echo "yes" >&6; } | 
|  | 26061 | have_zlib='yes' | 
|  | 26062 | fi | 
|  | 26063 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26065 | $as_echo "no" >&6; } | 
|  | 26066 | fi | 
|  | 26067 | fi | 
|  | 26068 | if test "$have_zlib" = 'yes'; then | 
|  | 26069 | ZLIB_DELEGATE_TRUE= | 
|  | 26070 | ZLIB_DELEGATE_FALSE='#' | 
|  | 26071 | else | 
|  | 26072 | ZLIB_DELEGATE_TRUE='#' | 
|  | 26073 | ZLIB_DELEGATE_FALSE= | 
|  | 26074 | fi | 
|  | 26075 |  | 
|  | 26076 |  | 
|  | 26077 |  | 
|  | 26078 | # | 
|  | 26079 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) | 
|  | 26080 | # | 
|  | 26081 | LIB_DL='' | 
|  | 26082 | if test "$enable_profiling" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26084 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26085 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26086 | $as_echo_n "(cached) " >&6 | 
|  | 26087 | else | 
|  | 26088 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26089 | LIBS="-ldl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26091 | /* end confdefs.h.  */ | 
|  | 26092 |  | 
|  | 26093 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26094 | Use char because int might match the return type of a GCC | 
|  | 26095 | builtin and then its argument prototype would still apply.  */ | 
|  | 26096 | #ifdef __cplusplus | 
|  | 26097 | extern "C" | 
|  | 26098 | #endif | 
|  | 26099 | char dlopen (); | 
|  | 26100 | int | 
|  | 26101 | main () | 
|  | 26102 | { | 
|  | 26103 | return dlopen (); | 
|  | 26104 | ; | 
|  | 26105 | return 0; | 
|  | 26106 | } | 
|  | 26107 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26108 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26109 | ac_cv_lib_dl_dlopen=yes | 
|  | 26110 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26111 | ac_cv_lib_dl_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26112 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26113 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26114 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26115 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26116 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26117 | { $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] | 26118 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26119 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26120 | LIB_DL='-ldl' | 
|  | 26121 | fi | 
|  | 26122 |  | 
|  | 26123 | LIBS="$LIB_DL $LIBS" | 
|  | 26124 | fi | 
|  | 26125 |  | 
|  | 26126 |  | 
|  | 26127 |  | 
|  | 26128 | # | 
|  | 26129 | # Check for Autotrace delegate library. | 
|  | 26130 | # | 
|  | 26131 |  | 
|  | 26132 | # Check whether --with-autotrace was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26133 | if test "${with_autotrace+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26134 | withval=$with_autotrace; with_autotrace=$withval | 
|  | 26135 | else | 
|  | 26136 | with_autotrace='no' | 
|  | 26137 | fi | 
|  | 26138 |  | 
|  | 26139 |  | 
|  | 26140 | if test "$with_autotrace" != 'yes'; then | 
|  | 26141 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " | 
|  | 26142 | fi | 
|  | 26143 |  | 
|  | 26144 | have_autotrace='no' | 
|  | 26145 | AUTOTRACE_CFLAGS="" | 
|  | 26146 | AUTOTRACE_LIBS="" | 
|  | 26147 | AUTOTRACE_PKG="" | 
|  | 26148 | if test "x$with_autotrace" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26150 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 26151 |  | 
|  | 26152 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26154 | $as_echo_n "checking for AUTOTRACE... " >&6; } | 
|  | 26155 |  | 
|  | 26156 | if test -n "$AUTOTRACE_CFLAGS"; then | 
|  | 26157 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" | 
|  | 26158 | elif test -n "$PKG_CONFIG"; then | 
|  | 26159 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26161 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
|  | 26162 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26164 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26165 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` | 
|  | 26166 | else | 
|  | 26167 | pkg_failed=yes | 
|  | 26168 | fi | 
|  | 26169 | else | 
|  | 26170 | pkg_failed=untried | 
|  | 26171 | fi | 
|  | 26172 | if test -n "$AUTOTRACE_LIBS"; then | 
|  | 26173 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" | 
|  | 26174 | elif test -n "$PKG_CONFIG"; then | 
|  | 26175 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26176 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26177 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
|  | 26178 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26180 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26181 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` | 
|  | 26182 | else | 
|  | 26183 | pkg_failed=yes | 
|  | 26184 | fi | 
|  | 26185 | else | 
|  | 26186 | pkg_failed=untried | 
|  | 26187 | fi | 
|  | 26188 |  | 
|  | 26189 |  | 
|  | 26190 |  | 
|  | 26191 | if test $pkg_failed = yes; then | 
|  | 26192 |  | 
|  | 26193 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 26194 | _pkg_short_errors_supported=yes | 
|  | 26195 | else | 
|  | 26196 | _pkg_short_errors_supported=no | 
|  | 26197 | fi | 
|  | 26198 | if test $_pkg_short_errors_supported = yes; then | 
|  | 26199 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` | 
|  | 26200 | else | 
|  | 26201 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` | 
|  | 26202 | fi | 
|  | 26203 | # Put the nasty error message in config.log where it belongs | 
|  | 26204 | echo "$AUTOTRACE_PKG_ERRORS" >&5 | 
|  | 26205 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26207 | $as_echo "no" >&6; } | 
|  | 26208 | have_autotrace=no | 
|  | 26209 | elif test $pkg_failed = untried; then | 
|  | 26210 | have_autotrace=no | 
|  | 26211 | else | 
|  | 26212 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS | 
|  | 26213 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26215 | $as_echo "yes" >&6; } | 
|  | 26216 | have_autotrace=yes | 
|  | 26217 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26219 | $as_echo "" >&6; } | 
|  | 26220 | fi | 
|  | 26221 |  | 
|  | 26222 | if test "$have_autotrace" = 'yes'; then | 
|  | 26223 | failed=0 | 
|  | 26224 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26225 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26226 |  | 
|  | 26227 | if test "$with_modules" = 'no'; then | 
|  | 26228 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" | 
|  | 26229 | fi | 
|  | 26230 | fi | 
|  | 26231 |  | 
|  | 26232 | if test "$have_autotrace" = 'yes'; then | 
|  | 26233 | AUTOTRACE_DELEGATE_TRUE= | 
|  | 26234 | AUTOTRACE_DELEGATE_FALSE='#' | 
|  | 26235 | else | 
|  | 26236 | AUTOTRACE_DELEGATE_TRUE='#' | 
|  | 26237 | AUTOTRACE_DELEGATE_FALSE= | 
|  | 26238 | fi | 
|  | 26239 |  | 
|  | 26240 |  | 
|  | 26241 |  | 
|  | 26242 |  | 
|  | 26243 |  | 
|  | 26244 | # | 
|  | 26245 | # Check for Display Postscript delegate library. | 
|  | 26246 | # | 
|  | 26247 |  | 
|  | 26248 | # Check whether --with-dps was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26249 | if test "${with_dps+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26250 | withval=$with_dps; with_dps=$withval | 
|  | 26251 | else | 
|  | 26252 | with_dps='yes' | 
|  | 26253 | fi | 
|  | 26254 |  | 
|  | 26255 |  | 
|  | 26256 | if test "$with_dps" != 'yes'; then | 
|  | 26257 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " | 
|  | 26258 | fi | 
|  | 26259 |  | 
|  | 26260 | have_dps='no' | 
|  | 26261 | DPS_LIBS='' | 
|  | 26262 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26264 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26266 | $as_echo_n "checking for DPS... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26268 | $as_echo "" >&6; } | 
|  | 26269 | failed=0 | 
|  | 26270 | passed=0 | 
|  | 26271 | PERSIST_CPPFLAGS="$CPPFLAGS" | 
|  | 26272 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26273 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" | 
|  | 26274 | if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26275 | passed=`expr $passed + 1` | 
|  | 26276 | else | 
|  | 26277 | failed=`expr $failed + 1` | 
|  | 26278 | fi | 
|  | 26279 |  | 
|  | 26280 |  | 
|  | 26281 | # DPS issues: | 
|  | 26282 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. | 
|  | 26283 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. | 
|  | 26284 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. | 
|  | 26285 | # ImageMagick itself doesn't use -lXt. | 
|  | 26286 | have_libdps='no' | 
|  | 26287 | LIBDPS_XT='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26289 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26290 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26291 | $as_echo_n "(cached) " >&6 | 
|  | 26292 | else | 
|  | 26293 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26294 | LIBS="-ldps  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26296 | /* end confdefs.h.  */ | 
|  | 26297 |  | 
|  | 26298 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26299 | Use char because int might match the return type of a GCC | 
|  | 26300 | builtin and then its argument prototype would still apply.  */ | 
|  | 26301 | #ifdef __cplusplus | 
|  | 26302 | extern "C" | 
|  | 26303 | #endif | 
|  | 26304 | char DPSInitialize (); | 
|  | 26305 | int | 
|  | 26306 | main () | 
|  | 26307 | { | 
|  | 26308 | return DPSInitialize (); | 
|  | 26309 | ; | 
|  | 26310 | return 0; | 
|  | 26311 | } | 
|  | 26312 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26313 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26314 | ac_cv_lib_dps_DPSInitialize=yes | 
|  | 26315 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26316 | ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26317 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26318 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26319 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26320 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26321 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26322 | { $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] | 26323 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26324 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26325 | have_libdps='yes' | 
|  | 26326 | else | 
|  | 26327 | have_libdps='no' | 
|  | 26328 | fi | 
|  | 26329 |  | 
|  | 26330 | if test "$have_libdps" != 'yes'; then | 
|  | 26331 | # Unset cache variable so we can try again. | 
|  | 26332 | unset ac_cv_lib_dps_DPSInitialize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26334 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26335 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26336 | $as_echo_n "(cached) " >&6 | 
|  | 26337 | else | 
|  | 26338 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26339 | LIBS="-ldps -lXt $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26341 | /* end confdefs.h.  */ | 
|  | 26342 |  | 
|  | 26343 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26344 | Use char because int might match the return type of a GCC | 
|  | 26345 | builtin and then its argument prototype would still apply.  */ | 
|  | 26346 | #ifdef __cplusplus | 
|  | 26347 | extern "C" | 
|  | 26348 | #endif | 
|  | 26349 | char DPSInitialize (); | 
|  | 26350 | int | 
|  | 26351 | main () | 
|  | 26352 | { | 
|  | 26353 | return DPSInitialize (); | 
|  | 26354 | ; | 
|  | 26355 | return 0; | 
|  | 26356 | } | 
|  | 26357 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26358 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26359 | ac_cv_lib_dps_DPSInitialize=yes | 
|  | 26360 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26361 | ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26362 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26363 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26364 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26365 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26366 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26367 | { $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] | 26368 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26369 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26370 | have_libdps='yes' | 
|  | 26371 | else | 
|  | 26372 | have_libdps='no' | 
|  | 26373 | fi | 
|  | 26374 |  | 
|  | 26375 | if test "$have_libdps" = 'yes'; then | 
|  | 26376 | LIBDPS_XT='-lXt' | 
|  | 26377 | fi | 
|  | 26378 | fi | 
|  | 26379 | if test "$have_libdps" = 'yes'; then | 
|  | 26380 | passed=`expr $passed + 1` | 
|  | 26381 | else | 
|  | 26382 | failed=`expr $failed + 1` | 
|  | 26383 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26385 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26386 | if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26387 | $as_echo_n "(cached) " >&6 | 
|  | 26388 | else | 
|  | 26389 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26390 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26392 | /* end confdefs.h.  */ | 
|  | 26393 |  | 
|  | 26394 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26395 | Use char because int might match the return type of a GCC | 
|  | 26396 | builtin and then its argument prototype would still apply.  */ | 
|  | 26397 | #ifdef __cplusplus | 
|  | 26398 | extern "C" | 
|  | 26399 | #endif | 
|  | 26400 | char XDPSPixelsPerPoint (); | 
|  | 26401 | int | 
|  | 26402 | main () | 
|  | 26403 | { | 
|  | 26404 | return XDPSPixelsPerPoint (); | 
|  | 26405 | ; | 
|  | 26406 | return 0; | 
|  | 26407 | } | 
|  | 26408 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26409 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26410 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes | 
|  | 26411 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26412 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26413 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26414 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26415 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26416 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26417 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26418 | { $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] | 26419 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26420 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26421 | passed=`expr $passed + 1` | 
|  | 26422 | else | 
|  | 26423 | failed=`expr $failed + 1` | 
|  | 26424 | fi | 
|  | 26425 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26426 | { $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] | 26427 | $as_echo_n "checking if DPS package is complete... " >&6; } | 
|  | 26428 | if test $passed -gt 0; then | 
|  | 26429 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26431 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26432 | have_dps='no (failed tests)' | 
|  | 26433 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 26434 | else | 
|  | 26435 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" | 
|  | 26436 | LIBS="$DPS_LIBS $LIBS" | 
|  | 26437 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26438 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26439 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26441 | $as_echo "yes" >&6; } | 
|  | 26442 | have_dps='yes' | 
|  | 26443 | fi | 
|  | 26444 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26446 | $as_echo "no" >&6; } | 
|  | 26447 | CPPFLAGS=$PERSIST_CPPFLAGS | 
|  | 26448 | fi | 
|  | 26449 | fi | 
|  | 26450 | if test "$have_dps" = 'yes'; then | 
|  | 26451 | DPS_DELEGATE_TRUE= | 
|  | 26452 | DPS_DELEGATE_FALSE='#' | 
|  | 26453 | else | 
|  | 26454 | DPS_DELEGATE_TRUE='#' | 
|  | 26455 | DPS_DELEGATE_FALSE= | 
|  | 26456 | fi | 
|  | 26457 |  | 
|  | 26458 |  | 
|  | 26459 |  | 
|  | 26460 |  | 
|  | 26461 | # | 
|  | 26462 | # Check for DJVU delegate library. | 
|  | 26463 | # | 
|  | 26464 |  | 
|  | 26465 | # Check whether --with-djvu was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26466 | if test "${with_djvu+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26467 | withval=$with_djvu; with_djvu=$withval | 
|  | 26468 | else | 
|  | 26469 | with_djvu='yes' | 
|  | 26470 | fi | 
|  | 26471 |  | 
|  | 26472 |  | 
|  | 26473 | if test "$with_djvu" != 'yes'; then | 
|  | 26474 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " | 
|  | 26475 | fi | 
|  | 26476 |  | 
|  | 26477 | have_djvu='no' | 
|  | 26478 | DJVU_LIBS='' | 
|  | 26479 | if test "$with_djvu" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26481 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26483 | $as_echo_n "checking for DJVU... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26485 | $as_echo "" >&6; } | 
|  | 26486 | failed=0 | 
|  | 26487 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26488 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" | 
|  | 26489 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26490 | passed=`expr $passed + 1` | 
|  | 26491 | else | 
|  | 26492 | failed=`expr $failed + 1` | 
|  | 26493 | fi | 
|  | 26494 |  | 
|  | 26495 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26496 | { $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] | 26497 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26498 | if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26499 | $as_echo_n "(cached) " >&6 | 
|  | 26500 | else | 
|  | 26501 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26502 | LIBS="-ldjvulibre  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26504 | /* end confdefs.h.  */ | 
|  | 26505 |  | 
|  | 26506 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26507 | Use char because int might match the return type of a GCC | 
|  | 26508 | builtin and then its argument prototype would still apply.  */ | 
|  | 26509 | #ifdef __cplusplus | 
|  | 26510 | extern "C" | 
|  | 26511 | #endif | 
|  | 26512 | char ddjvu_context_create (); | 
|  | 26513 | int | 
|  | 26514 | main () | 
|  | 26515 | { | 
|  | 26516 | return ddjvu_context_create (); | 
|  | 26517 | ; | 
|  | 26518 | return 0; | 
|  | 26519 | } | 
|  | 26520 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26521 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26522 | ac_cv_lib_djvulibre_ddjvu_context_create=yes | 
|  | 26523 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26524 | ac_cv_lib_djvulibre_ddjvu_context_create=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26525 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26526 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26527 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26528 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26529 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26530 | { $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] | 26531 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26532 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26533 | passed=`expr $passed + 1` | 
|  | 26534 | else | 
|  | 26535 | failed=`expr $failed + 1` | 
|  | 26536 | fi | 
|  | 26537 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26538 | { $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] | 26539 | $as_echo_n "checking if DJVU package is complete... " >&6; } | 
|  | 26540 | if test $passed -gt 0; then | 
|  | 26541 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26543 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26544 | have_djvu='no (failed tests)' | 
|  | 26545 | else | 
|  | 26546 | DJVU_LIBS='-ldjvulibre' | 
|  | 26547 | LIBS="$DJVU_LIBS $LIBS" | 
|  | 26548 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26549 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26550 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26552 | $as_echo "yes" >&6; } | 
|  | 26553 | have_djvu='yes' | 
|  | 26554 | fi | 
|  | 26555 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26557 | $as_echo "no" >&6; } | 
|  | 26558 | fi | 
|  | 26559 | fi | 
|  | 26560 | if test "$have_djvu" = 'yes'; then | 
|  | 26561 | DJVU_DELEGATE_TRUE= | 
|  | 26562 | DJVU_DELEGATE_FALSE='#' | 
|  | 26563 | else | 
|  | 26564 | DJVU_DELEGATE_TRUE='#' | 
|  | 26565 | DJVU_DELEGATE_FALSE= | 
|  | 26566 | fi | 
|  | 26567 |  | 
|  | 26568 |  | 
|  | 26569 |  | 
|  | 26570 |  | 
|  | 26571 | # | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 26572 | # Set DejaVu font directory. | 
|  | 26573 | # | 
|  | 26574 |  | 
|  | 26575 | # Check whether --with-dejavu-font-dir was given. | 
|  | 26576 | if test "${with_dejavu_font_dir+set}" = set; then : | 
|  | 26577 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval | 
|  | 26578 | else | 
|  | 26579 | with_dejavu_font_dir='default' | 
|  | 26580 | fi | 
|  | 26581 |  | 
|  | 26582 |  | 
|  | 26583 | if test "$with_dejavu_font_dir" != 'default'; then | 
|  | 26584 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " | 
|  | 26585 | fi | 
|  | 26586 |  | 
|  | 26587 |  | 
|  | 26588 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26589 | # Check for FFTW delegate library. | 
|  | 26590 | # | 
|  | 26591 |  | 
|  | 26592 | # Check whether --with-fftw was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26593 | if test "${with_fftw+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26594 | withval=$with_fftw; with_fftw=$withval | 
|  | 26595 | else | 
|  | 26596 | with_fftw='yes' | 
|  | 26597 | fi | 
|  | 26598 |  | 
|  | 26599 |  | 
|  | 26600 | if test "$with_fftw" != 'yes'; then | 
|  | 26601 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " | 
|  | 26602 | fi | 
|  | 26603 |  | 
|  | 26604 | have_fftw='no' | 
|  | 26605 | FFTW_LIBS='' | 
|  | 26606 | if test "$with_fftw" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26608 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26610 | $as_echo_n "checking for FFTW... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26612 | $as_echo "" >&6; } | 
|  | 26613 | failed=0 | 
|  | 26614 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26615 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" | 
|  | 26616 | if test "x$ac_cv_header_fftw3_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26617 | passed=`expr $passed + 1` | 
|  | 26618 | else | 
|  | 26619 | failed=`expr $failed + 1` | 
|  | 26620 | fi | 
|  | 26621 |  | 
|  | 26622 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26624 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26625 | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26626 | $as_echo_n "(cached) " >&6 | 
|  | 26627 | else | 
|  | 26628 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26629 | LIBS="-lfftw3  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26631 | /* end confdefs.h.  */ | 
|  | 26632 |  | 
|  | 26633 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26634 | Use char because int might match the return type of a GCC | 
|  | 26635 | builtin and then its argument prototype would still apply.  */ | 
|  | 26636 | #ifdef __cplusplus | 
|  | 26637 | extern "C" | 
|  | 26638 | #endif | 
|  | 26639 | char fftw_execute (); | 
|  | 26640 | int | 
|  | 26641 | main () | 
|  | 26642 | { | 
|  | 26643 | return fftw_execute (); | 
|  | 26644 | ; | 
|  | 26645 | return 0; | 
|  | 26646 | } | 
|  | 26647 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26648 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26649 | ac_cv_lib_fftw3_fftw_execute=yes | 
|  | 26650 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26651 | ac_cv_lib_fftw3_fftw_execute=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26652 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26653 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26654 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26655 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26656 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26658 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26659 | if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26660 | passed=`expr $passed + 1` | 
|  | 26661 | else | 
|  | 26662 | failed=`expr $failed + 1` | 
|  | 26663 | fi | 
|  | 26664 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26666 | $as_echo_n "checking if FFTW package is complete... " >&6; } | 
|  | 26667 | if test $passed -gt 0; then | 
|  | 26668 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26670 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26671 | have_fftw='no (failed tests)' | 
|  | 26672 | else | 
|  | 26673 | FFTW_LIBS='-lfftw3' | 
|  | 26674 | LIBS="$FFTW_LIBS $LIBS" | 
|  | 26675 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26676 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26677 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26679 | $as_echo "yes" >&6; } | 
|  | 26680 | have_fftw='yes' | 
|  | 26681 | fi | 
|  | 26682 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26684 | $as_echo "no" >&6; } | 
|  | 26685 | fi | 
|  | 26686 | fi | 
|  | 26687 | if test "$have_fftw" = 'yes'; then | 
|  | 26688 | FFTW_DELEGATE_TRUE= | 
|  | 26689 | FFTW_DELEGATE_FALSE='#' | 
|  | 26690 | else | 
|  | 26691 | FFTW_DELEGATE_TRUE='#' | 
|  | 26692 | FFTW_DELEGATE_FALSE= | 
|  | 26693 | fi | 
|  | 26694 |  | 
|  | 26695 |  | 
|  | 26696 |  | 
|  | 26697 |  | 
|  | 26698 | # | 
|  | 26699 | # Check for FlashPIX delegate library. | 
|  | 26700 | # | 
|  | 26701 |  | 
|  | 26702 | # Check whether --with-fpx was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26703 | if test "${with_fpx+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26704 | withval=$with_fpx; with_fpx=$withval | 
|  | 26705 | else | 
|  | 26706 | with_fpx='yes' | 
|  | 26707 | fi | 
|  | 26708 |  | 
|  | 26709 |  | 
|  | 26710 | if test "$with_fpx" != 'yes'; then | 
|  | 26711 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " | 
|  | 26712 | fi | 
|  | 26713 |  | 
|  | 26714 | have_fpx='no' | 
|  | 26715 | FPX_LIBS='' | 
|  | 26716 | if test "$with_fpx" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26718 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26720 | $as_echo_n "checking for FlashPIX... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26722 | $as_echo "" >&6; } | 
|  | 26723 | failed=0 | 
|  | 26724 | passed=0 | 
|  | 26725 | ac_ext=cpp | 
|  | 26726 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 26727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 26728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 26729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 26730 |  | 
|  | 26731 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26732 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" | 
|  | 26733 | if test "x$ac_cv_header_fpxlib_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26734 | passed=`expr $passed + 1` | 
|  | 26735 | else | 
|  | 26736 | failed=`expr $failed + 1` | 
|  | 26737 | fi | 
|  | 26738 |  | 
|  | 26739 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26740 | { $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] | 26741 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26742 | if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26743 | $as_echo_n "(cached) " >&6 | 
|  | 26744 | else | 
|  | 26745 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26746 | LIBS="-lfpx  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26748 | /* end confdefs.h.  */ | 
|  | 26749 |  | 
|  | 26750 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26751 | Use char because int might match the return type of a GCC | 
|  | 26752 | builtin and then its argument prototype would still apply.  */ | 
|  | 26753 | #ifdef __cplusplus | 
|  | 26754 | extern "C" | 
|  | 26755 | #endif | 
|  | 26756 | char FPX_OpenImageByFilename (); | 
|  | 26757 | int | 
|  | 26758 | main () | 
|  | 26759 | { | 
|  | 26760 | return FPX_OpenImageByFilename (); | 
|  | 26761 | ; | 
|  | 26762 | return 0; | 
|  | 26763 | } | 
|  | 26764 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26765 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26766 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes | 
|  | 26767 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26768 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26769 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26770 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26771 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26772 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26773 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26774 | { $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] | 26775 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26776 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26777 | passed=`expr $passed + 1` | 
|  | 26778 | else | 
|  | 26779 | failed=`expr $failed + 1` | 
|  | 26780 | fi | 
|  | 26781 |  | 
|  | 26782 | ac_ext=c | 
|  | 26783 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 26784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 26785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 26786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 26787 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26788 | { $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] | 26789 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } | 
|  | 26790 | if test $passed -gt 0; then | 
|  | 26791 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26793 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26794 | have_fpx='no (failed tests)' | 
|  | 26795 | else | 
|  | 26796 | FPX_LIBS='-lfpx' | 
|  | 26797 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26798 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26799 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26801 | $as_echo "yes" >&6; } | 
|  | 26802 | have_fpx='yes' | 
|  | 26803 | PERLMAINCC="$CXX" | 
|  | 26804 | fi | 
|  | 26805 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26807 | $as_echo "no" >&6; } | 
|  | 26808 | fi | 
|  | 26809 | fi | 
|  | 26810 | if test "$have_fpx" = 'yes'; then | 
|  | 26811 | FPX_DELEGATE_TRUE= | 
|  | 26812 | FPX_DELEGATE_FALSE='#' | 
|  | 26813 | else | 
|  | 26814 | FPX_DELEGATE_TRUE='#' | 
|  | 26815 | FPX_DELEGATE_FALSE= | 
|  | 26816 | fi | 
|  | 26817 |  | 
|  | 26818 |  | 
|  | 26819 |  | 
|  | 26820 |  | 
|  | 26821 | # | 
|  | 26822 | # Check for fontconfig delegate library. | 
|  | 26823 | # | 
|  | 26824 |  | 
|  | 26825 | # Check whether --with-fontconfig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26826 | if test "${with_fontconfig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26827 | withval=$with_fontconfig; with_fontconfig=$withval | 
|  | 26828 | else | 
|  | 26829 | with_fontconfig=$have_x | 
|  | 26830 | fi | 
|  | 26831 |  | 
|  | 26832 |  | 
|  | 26833 | if test "$with_fontconfig" != 'yes'; then | 
|  | 26834 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " | 
|  | 26835 | fi | 
|  | 26836 |  | 
|  | 26837 | have_fontconfig='no' | 
|  | 26838 | FONTCONFIG_CFLAGS="" | 
|  | 26839 | FONTCONFIG_LIBS="" | 
|  | 26840 | FONTCONFIG_PKG="" | 
|  | 26841 | if test "x$with_fontconfig" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26843 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 26844 |  | 
|  | 26845 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26847 | $as_echo_n "checking for FONTCONFIG... " >&6; } | 
|  | 26848 |  | 
|  | 26849 | if test -n "$FONTCONFIG_CFLAGS"; then | 
|  | 26850 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" | 
|  | 26851 | elif test -n "$PKG_CONFIG"; then | 
|  | 26852 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26854 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
|  | 26855 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26857 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26858 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` | 
|  | 26859 | else | 
|  | 26860 | pkg_failed=yes | 
|  | 26861 | fi | 
|  | 26862 | else | 
|  | 26863 | pkg_failed=untried | 
|  | 26864 | fi | 
|  | 26865 | if test -n "$FONTCONFIG_LIBS"; then | 
|  | 26866 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" | 
|  | 26867 | elif test -n "$PKG_CONFIG"; then | 
|  | 26868 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26870 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
|  | 26871 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26873 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26874 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` | 
|  | 26875 | else | 
|  | 26876 | pkg_failed=yes | 
|  | 26877 | fi | 
|  | 26878 | else | 
|  | 26879 | pkg_failed=untried | 
|  | 26880 | fi | 
|  | 26881 |  | 
|  | 26882 |  | 
|  | 26883 |  | 
|  | 26884 | if test $pkg_failed = yes; then | 
|  | 26885 |  | 
|  | 26886 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 26887 | _pkg_short_errors_supported=yes | 
|  | 26888 | else | 
|  | 26889 | _pkg_short_errors_supported=no | 
|  | 26890 | fi | 
|  | 26891 | if test $_pkg_short_errors_supported = yes; then | 
|  | 26892 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` | 
|  | 26893 | else | 
|  | 26894 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` | 
|  | 26895 | fi | 
|  | 26896 | # Put the nasty error message in config.log where it belongs | 
|  | 26897 | echo "$FONTCONFIG_PKG_ERRORS" >&5 | 
|  | 26898 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 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 | have_fontconfig=no | 
|  | 26902 | elif test $pkg_failed = untried; then | 
|  | 26903 | have_fontconfig=no | 
|  | 26904 | else | 
|  | 26905 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS | 
|  | 26906 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26908 | $as_echo "yes" >&6; } | 
|  | 26909 | have_fontconfig=yes | 
|  | 26910 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26912 | $as_echo "" >&6; } | 
|  | 26913 | fi | 
|  | 26914 |  | 
|  | 26915 | if test "$have_fontconfig" = 'yes'; then | 
|  | 26916 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26917 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26918 |  | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 26919 | if test "$with_modules" = 'no'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26920 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 26921 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26922 | fi | 
|  | 26923 |  | 
|  | 26924 | if test "$have_fontconfig" = 'yes'; then | 
|  | 26925 | FONTCONFIG_DELEGATE_TRUE= | 
|  | 26926 | FONTCONFIG_DELEGATE_FALSE='#' | 
|  | 26927 | else | 
|  | 26928 | FONTCONFIG_DELEGATE_TRUE='#' | 
|  | 26929 | FONTCONFIG_DELEGATE_FALSE= | 
|  | 26930 | fi | 
|  | 26931 |  | 
|  | 26932 |  | 
|  | 26933 |  | 
|  | 26934 |  | 
|  | 26935 |  | 
|  | 26936 | # | 
|  | 26937 | # Check for freetype delegate library. | 
|  | 26938 | # | 
|  | 26939 |  | 
|  | 26940 | # Check whether --with-freetype was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26941 | if test "${with_freetype+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26942 | withval=$with_freetype; with_freetype=$withval | 
|  | 26943 | else | 
|  | 26944 | with_freetype='yes' | 
|  | 26945 | fi | 
|  | 26946 |  | 
|  | 26947 |  | 
|  | 26948 |  | 
|  | 26949 | if test "$with_freetype" != 'yes'; then | 
|  | 26950 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " | 
|  | 26951 | fi | 
|  | 26952 |  | 
|  | 26953 | have_freetype='no' | 
|  | 26954 | FREETYPE_LIBS='' | 
|  | 26955 | if test "$with_freetype" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26957 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26959 | $as_echo_n "checking for FreeType 2.0... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26961 | $as_echo "" >&6; } | 
|  | 26962 | failed=0 | 
|  | 26963 | passed=0 | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 26964 | PERSIST_LIBS="$LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26965 | PERSIST_CPPFLAGS="$CPPFLAGS" | 
|  | 26966 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then | 
|  | 26967 | : | 
|  | 26968 | else | 
|  | 26969 | freetype_config='' | 
|  | 26970 | for ac_prog in freetype-config | 
|  | 26971 | do | 
|  | 26972 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 26973 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26975 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26976 | if test "${ac_cv_prog_freetype_config+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26977 | $as_echo_n "(cached) " >&6 | 
|  | 26978 | else | 
|  | 26979 | if test -n "$freetype_config"; then | 
|  | 26980 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. | 
|  | 26981 | else | 
|  | 26982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 26983 | for as_dir in $PATH | 
|  | 26984 | do | 
|  | 26985 | IFS=$as_save_IFS | 
|  | 26986 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26987 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 26989 | ac_cv_prog_freetype_config="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26990 | $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] | 26991 | break 2 | 
|  | 26992 | fi | 
|  | 26993 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26994 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26995 | IFS=$as_save_IFS | 
|  | 26996 |  | 
|  | 26997 | fi | 
|  | 26998 | fi | 
|  | 26999 | freetype_config=$ac_cv_prog_freetype_config | 
|  | 27000 | if test -n "$freetype_config"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27002 | $as_echo "$freetype_config" >&6; } | 
|  | 27003 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27005 | $as_echo "no" >&6; } | 
|  | 27006 | fi | 
|  | 27007 |  | 
|  | 27008 |  | 
|  | 27009 | test -n "$freetype_config" && break | 
|  | 27010 | done | 
|  | 27011 | if test -n "$freetype_config"; then | 
|  | 27012 | freetype_cflags=`$freetype_config --cflags` | 
|  | 27013 | freetype_libs=`$freetype_config --libs` | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 27014 | LIBS="$LIBS $freetype_libs" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27015 | CPPFLAGS="$freetype_cflags $CPPFLAGS" | 
|  | 27016 | fi | 
|  | 27017 | fi | 
|  | 27018 |  | 
|  | 27019 | if test "$FREETYPE_LIBS" = ''; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27021 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27022 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27023 | $as_echo_n "(cached) " >&6 | 
|  | 27024 | else | 
|  | 27025 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27026 | LIBS="-lfreetype  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27028 | /* end confdefs.h.  */ | 
|  | 27029 |  | 
|  | 27030 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27031 | Use char because int might match the return type of a GCC | 
|  | 27032 | builtin and then its argument prototype would still apply.  */ | 
|  | 27033 | #ifdef __cplusplus | 
|  | 27034 | extern "C" | 
|  | 27035 | #endif | 
|  | 27036 | char FT_Init_FreeType (); | 
|  | 27037 | int | 
|  | 27038 | main () | 
|  | 27039 | { | 
|  | 27040 | return FT_Init_FreeType (); | 
|  | 27041 | ; | 
|  | 27042 | return 0; | 
|  | 27043 | } | 
|  | 27044 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27045 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27046 | ac_cv_lib_freetype_FT_Init_FreeType=yes | 
|  | 27047 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27048 | ac_cv_lib_freetype_FT_Init_FreeType=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27049 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27050 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27051 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27052 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27053 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27055 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27056 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27057 | FREETYPE_LIBS='-lfreetype' | 
|  | 27058 | fi | 
|  | 27059 |  | 
|  | 27060 | if test "$FREETYPE_LIBS" != ''; then | 
|  | 27061 | passed=`expr $passed + 1` | 
|  | 27062 | else | 
|  | 27063 | failed=`expr $failed + 1` | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 27064 | LIBS="$PERSIST_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27065 | fi | 
|  | 27066 | fi | 
|  | 27067 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27068 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" | 
|  | 27069 | if test "x$ac_cv_header_ft2build_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27070 | FT2BUILD_H='#include <ft2build.h>' | 
|  | 27071 | else | 
|  | 27072 | ft2build='' | 
|  | 27073 | fi | 
|  | 27074 |  | 
|  | 27075 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27076 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H | 
|  | 27077 | " | 
|  | 27078 | if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27079 | have_freetype_h='yes' | 
|  | 27080 | else | 
|  | 27081 | have_freetype_h='no' | 
|  | 27082 | fi | 
|  | 27083 |  | 
|  | 27084 |  | 
|  | 27085 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then | 
|  | 27086 | passed=`expr $passed + 1` | 
|  | 27087 | else | 
|  | 27088 | failed=`expr $failed + 1` | 
|  | 27089 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 27090 | fi | 
|  | 27091 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27093 | $as_echo_n "checking if FreeType package is complete... " >&6; } | 
|  | 27094 | if test $passed -gt 0; then | 
|  | 27095 | if test $failed -gt 0; then | 
|  | 27096 | FREETYPE_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27098 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27099 | have_freetype='no (failed tests)' | 
|  | 27100 | else | 
|  | 27101 | LIBS="$FREETYPE_LIBS $LIBS" | 
|  | 27102 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27103 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27104 |  | 
|  | 27105 | if test "$ac_cv_header_ft2build_h" = 'yes'; then | 
|  | 27106 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27107 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27108 |  | 
|  | 27109 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27111 | $as_echo "yes" >&6; } | 
|  | 27112 | have_freetype='yes' | 
|  | 27113 | fi | 
|  | 27114 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27116 | $as_echo "no" >&6; } | 
|  | 27117 | fi | 
|  | 27118 | fi | 
|  | 27119 | if test "$have_freetype" = 'yes'; then | 
|  | 27120 | FREETYPE_DELEGATE_TRUE= | 
|  | 27121 | FREETYPE_DELEGATE_FALSE='#' | 
|  | 27122 | else | 
|  | 27123 | FREETYPE_DELEGATE_TRUE='#' | 
|  | 27124 | FREETYPE_DELEGATE_FALSE= | 
|  | 27125 | fi | 
|  | 27126 |  | 
|  | 27127 |  | 
|  | 27128 |  | 
|  | 27129 |  | 
|  | 27130 |  | 
|  | 27131 | # | 
|  | 27132 | # Check for Ghostscript library or framework. | 
|  | 27133 | # | 
|  | 27134 | # Test for iapi.h & test for gsapi_new_instance in -lgs | 
|  | 27135 | # or -framework Ghostscript | 
|  | 27136 |  | 
|  | 27137 |  | 
|  | 27138 | # Check whether --with-gslib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27139 | if test "${with_gslib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27140 | withval=$with_gslib; with_gslib=$withval | 
|  | 27141 | else | 
|  | 27142 | with_gslib='no' | 
|  | 27143 | fi | 
|  | 27144 |  | 
|  | 27145 |  | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 27146 | gslib_framework='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27147 | if test "$with_gslib" != 'yes'; then | 
|  | 27148 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " | 
|  | 27149 | fi | 
|  | 27150 |  | 
|  | 27151 | have_gslib='no' | 
|  | 27152 | GS_LIBS='' | 
|  | 27153 | if test "$with_gslib" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27155 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27157 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27159 | $as_echo "" >&6; } | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 27160 | framework=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27161 | failed=0 | 
|  | 27162 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27163 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" | 
|  | 27164 | if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27165 | passed=`expr $passed + 1` | 
|  | 27166 | else | 
|  | 27167 | failed=`expr $failed + 1` | 
|  | 27168 | fi | 
|  | 27169 |  | 
|  | 27170 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27171 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" | 
|  | 27172 | if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27173 | passed=`expr $passed + 1` | 
|  | 27174 | else | 
|  | 27175 | failed=`expr $failed + 1` | 
|  | 27176 | fi | 
|  | 27177 |  | 
|  | 27178 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27180 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27181 | if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27182 | $as_echo_n "(cached) " >&6 | 
|  | 27183 | else | 
|  | 27184 | ac_check_framework_save_LIBS=$LIBS | 
|  | 27185 | LIBS="-framework Ghostscript  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27187 | /* end confdefs.h.  */ | 
|  | 27188 |  | 
|  | 27189 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27190 | Use char because int might match the return type of a GCC | 
|  | 27191 | builtin and then its argument prototype would still apply.  */ | 
|  | 27192 | #ifdef __cplusplus | 
|  | 27193 | extern "C" | 
|  | 27194 | #endif | 
|  | 27195 | char gsapi_new_instance (); | 
|  | 27196 | int | 
|  | 27197 | main () | 
|  | 27198 | { | 
|  | 27199 | return gsapi_new_instance (); | 
|  | 27200 | ; | 
|  | 27201 | return 0; | 
|  | 27202 | } | 
|  | 27203 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27204 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27205 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes | 
|  | 27206 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27207 | ac_cv_framework_Ghostscript_gsapi_new_instance=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27208 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27209 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27210 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27211 | LIBS=$ac_check_framework_save_LIBS | 
|  | 27212 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27214 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27215 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27216 | framework=`expr $framework + 1` | 
|  | 27217 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27218 | { $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] | 27219 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27220 | if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27221 | $as_echo_n "(cached) " >&6 | 
|  | 27222 | else | 
|  | 27223 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27224 | LIBS="-lgs  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27226 | /* end confdefs.h.  */ | 
|  | 27227 |  | 
|  | 27228 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27229 | Use char because int might match the return type of a GCC | 
|  | 27230 | builtin and then its argument prototype would still apply.  */ | 
|  | 27231 | #ifdef __cplusplus | 
|  | 27232 | extern "C" | 
|  | 27233 | #endif | 
|  | 27234 | char gsapi_new_instance (); | 
|  | 27235 | int | 
|  | 27236 | main () | 
|  | 27237 | { | 
|  | 27238 | return gsapi_new_instance (); | 
|  | 27239 | ; | 
|  | 27240 | return 0; | 
|  | 27241 | } | 
|  | 27242 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27243 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27244 | ac_cv_lib_gs_gsapi_new_instance=yes | 
|  | 27245 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27246 | ac_cv_lib_gs_gsapi_new_instance=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27247 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27248 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27249 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27250 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27251 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27252 | { $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] | 27253 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27254 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27255 | passed=`expr $passed + 1` | 
|  | 27256 | else | 
|  | 27257 | failed=`expr $failed + 1` | 
|  | 27258 | fi | 
|  | 27259 |  | 
|  | 27260 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27261 | { $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] | 27262 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } | 
|  | 27263 | if test $passed -gt 0; then | 
|  | 27264 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27266 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27267 | have_gslib='no (failed tests)' | 
|  | 27268 | else | 
|  | 27269 | if test $framework -gt 0; then | 
|  | 27270 | GS_LIBS='-framework Ghostscript' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 27271 | gslib_framework='yes' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27273 | $as_echo "yes, using framework." >&6; } | 
|  | 27274 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27276 | $as_echo "yes, using library." >&6; } | 
|  | 27277 | GS_LIBS='-lgs' | 
|  | 27278 | fi | 
|  | 27279 | LIBS="$GS_LIBS $LIBS" | 
|  | 27280 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27281 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27282 |  | 
|  | 27283 | have_gslib='yes' | 
|  | 27284 | fi | 
|  | 27285 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27287 | $as_echo "no" >&6; } | 
|  | 27288 | fi | 
|  | 27289 | fi | 
|  | 27290 | if test "$have_gslib" = 'yes'; then | 
|  | 27291 | GS_DELEGATE_TRUE= | 
|  | 27292 | GS_DELEGATE_FALSE='#' | 
|  | 27293 | else | 
|  | 27294 | GS_DELEGATE_TRUE='#' | 
|  | 27295 | GS_DELEGATE_FALSE= | 
|  | 27296 | fi | 
|  | 27297 |  | 
|  | 27298 |  | 
|  | 27299 |  | 
|  | 27300 | # Set default font search path | 
|  | 27301 |  | 
|  | 27302 | # Check whether --with-fontpath was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27303 | if test "${with_fontpath+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27304 | withval=$with_fontpath; with_fontpath=$withval | 
|  | 27305 | else | 
|  | 27306 | with_fontpath='' | 
|  | 27307 | fi | 
|  | 27308 |  | 
|  | 27309 |  | 
|  | 27310 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then | 
|  | 27311 | with_fontpath='' | 
|  | 27312 | else | 
|  | 27313 |  | 
|  | 27314 | cat >>confdefs.h <<_ACEOF | 
|  | 27315 | #define MAGICK_FONT_PATH "$with_fontpath" | 
|  | 27316 | _ACEOF | 
|  | 27317 |  | 
|  | 27318 | fi | 
|  | 27319 | if test "$with_fontpath=" != ''; then | 
|  | 27320 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " | 
|  | 27321 | fi | 
|  | 27322 |  | 
|  | 27323 | # Set Ghostscript font directory | 
|  | 27324 |  | 
|  | 27325 | # Check whether --with-gs-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27326 | if test "${with_gs_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27327 | withval=$with_gs_font_dir; with_gs_font_dir=$withval | 
|  | 27328 | else | 
|  | 27329 | with_gs_font_dir='default' | 
|  | 27330 | fi | 
|  | 27331 |  | 
|  | 27332 |  | 
|  | 27333 | if test "$with_gs_font_dir" != 'default'; then | 
|  | 27334 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " | 
|  | 27335 | fi | 
|  | 27336 |  | 
|  | 27337 |  | 
|  | 27338 | # | 
|  | 27339 | # Check for GVC delegate library. | 
|  | 27340 | # | 
|  | 27341 |  | 
|  | 27342 | # Check whether --with-gvc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27343 | if test "${with_gvc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27344 | withval=$with_gvc; with_gvc=$withval | 
|  | 27345 | else | 
|  | 27346 | with_gvc='yes' | 
|  | 27347 | fi | 
|  | 27348 |  | 
|  | 27349 |  | 
|  | 27350 | if test "$with_gvc" != 'yes'; then | 
|  | 27351 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " | 
|  | 27352 | fi | 
|  | 27353 |  | 
|  | 27354 | GVC_PKG="" | 
|  | 27355 | if test "x$with_gvc" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27357 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 27358 |  | 
|  | 27359 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27361 | $as_echo_n "checking for GVC... " >&6; } | 
|  | 27362 |  | 
|  | 27363 | if test -n "$GVC_CFLAGS"; then | 
|  | 27364 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" | 
|  | 27365 | elif test -n "$PKG_CONFIG"; then | 
|  | 27366 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27368 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
|  | 27369 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 27371 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27372 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` | 
|  | 27373 | else | 
|  | 27374 | pkg_failed=yes | 
|  | 27375 | fi | 
|  | 27376 | else | 
|  | 27377 | pkg_failed=untried | 
|  | 27378 | fi | 
|  | 27379 | if test -n "$GVC_LIBS"; then | 
|  | 27380 | pkg_cv_GVC_LIBS="$GVC_LIBS" | 
|  | 27381 | elif test -n "$PKG_CONFIG"; then | 
|  | 27382 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27383 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27384 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
|  | 27385 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 27387 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27388 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` | 
|  | 27389 | else | 
|  | 27390 | pkg_failed=yes | 
|  | 27391 | fi | 
|  | 27392 | else | 
|  | 27393 | pkg_failed=untried | 
|  | 27394 | fi | 
|  | 27395 |  | 
|  | 27396 |  | 
|  | 27397 |  | 
|  | 27398 | if test $pkg_failed = yes; then | 
|  | 27399 |  | 
|  | 27400 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 27401 | _pkg_short_errors_supported=yes | 
|  | 27402 | else | 
|  | 27403 | _pkg_short_errors_supported=no | 
|  | 27404 | fi | 
|  | 27405 | if test $_pkg_short_errors_supported = yes; then | 
|  | 27406 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` | 
|  | 27407 | else | 
|  | 27408 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` | 
|  | 27409 | fi | 
|  | 27410 | # Put the nasty error message in config.log where it belongs | 
|  | 27411 | echo "$GVC_PKG_ERRORS" >&5 | 
|  | 27412 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27414 | $as_echo "no" >&6; } | 
|  | 27415 | have_gvc=no | 
|  | 27416 | elif test $pkg_failed = untried; then | 
|  | 27417 | have_gvc=no | 
|  | 27418 | else | 
|  | 27419 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS | 
|  | 27420 | GVC_LIBS=$pkg_cv_GVC_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27422 | $as_echo "yes" >&6; } | 
|  | 27423 | have_gvc=yes | 
|  | 27424 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27426 | $as_echo "" >&6; } | 
|  | 27427 | fi | 
|  | 27428 |  | 
|  | 27429 | if test "$have_gvc" = 'yes'; then | 
|  | 27430 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27431 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27432 |  | 
|  | 27433 | if test "$with_modules" = 'no'; then | 
|  | 27434 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" | 
|  | 27435 | fi | 
|  | 27436 | fi | 
|  | 27437 |  | 
|  | 27438 | if test "$have_gvc" = 'yes'; then | 
|  | 27439 | GVC_DELEGATE_TRUE= | 
|  | 27440 | GVC_DELEGATE_FALSE='#' | 
|  | 27441 | else | 
|  | 27442 | GVC_DELEGATE_TRUE='#' | 
|  | 27443 | GVC_DELEGATE_FALSE= | 
|  | 27444 | fi | 
|  | 27445 |  | 
|  | 27446 |  | 
|  | 27447 |  | 
|  | 27448 |  | 
|  | 27449 |  | 
|  | 27450 | # | 
|  | 27451 | # Check for JBIG delegate library. | 
|  | 27452 | # | 
|  | 27453 |  | 
|  | 27454 |  | 
|  | 27455 | # Check whether --with-jbig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27456 | if test "${with_jbig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27457 | withval=$with_jbig; with_jbig=$withval | 
|  | 27458 | else | 
|  | 27459 | with_jbig='yes' | 
|  | 27460 | fi | 
|  | 27461 |  | 
|  | 27462 |  | 
|  | 27463 | have_jbig='no' | 
|  | 27464 | JBIG_LIBS='' | 
|  | 27465 | if test "$with_jbig" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27467 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27469 | $as_echo_n "checking for JBIG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27471 | $as_echo "" >&6; } | 
|  | 27472 | failed=0 | 
|  | 27473 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27474 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" | 
|  | 27475 | if test "x$ac_cv_header_jbig_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27476 | passed=`expr $passed + 1` | 
|  | 27477 | else | 
|  | 27478 | failed=`expr $failed + 1` | 
|  | 27479 | fi | 
|  | 27480 |  | 
|  | 27481 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27482 | { $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] | 27483 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27484 | if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27485 | $as_echo_n "(cached) " >&6 | 
|  | 27486 | else | 
|  | 27487 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27488 | LIBS="-ljbig  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27490 | /* end confdefs.h.  */ | 
|  | 27491 |  | 
|  | 27492 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27493 | Use char because int might match the return type of a GCC | 
|  | 27494 | builtin and then its argument prototype would still apply.  */ | 
|  | 27495 | #ifdef __cplusplus | 
|  | 27496 | extern "C" | 
|  | 27497 | #endif | 
|  | 27498 | char jbg_dec_init (); | 
|  | 27499 | int | 
|  | 27500 | main () | 
|  | 27501 | { | 
|  | 27502 | return jbg_dec_init (); | 
|  | 27503 | ; | 
|  | 27504 | return 0; | 
|  | 27505 | } | 
|  | 27506 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27507 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27508 | ac_cv_lib_jbig_jbg_dec_init=yes | 
|  | 27509 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27510 | ac_cv_lib_jbig_jbg_dec_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27511 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27512 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27513 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27514 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27515 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27516 | { $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] | 27517 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27518 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27519 | passed=`expr $passed + 1` | 
|  | 27520 | else | 
|  | 27521 | failed=`expr $failed + 1` | 
|  | 27522 | fi | 
|  | 27523 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27524 | { $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] | 27525 | $as_echo_n "checking if JBIG package is complete... " >&6; } | 
|  | 27526 | if test $passed -gt 0; then | 
|  | 27527 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27529 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27530 | have_jbig='no (failed tests)' | 
|  | 27531 | else | 
|  | 27532 | JBIG_LIBS='-ljbig' | 
|  | 27533 | LIBS="$JBIG_LIBS $LIBS" | 
|  | 27534 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27535 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27536 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27538 | $as_echo "yes" >&6; } | 
|  | 27539 | have_jbig='yes' | 
|  | 27540 | fi | 
|  | 27541 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27543 | $as_echo "no" >&6; } | 
|  | 27544 | fi | 
|  | 27545 | fi | 
|  | 27546 | if test "$have_jbig" = 'yes'; then | 
|  | 27547 | JBIG_DELEGATE_TRUE= | 
|  | 27548 | JBIG_DELEGATE_FALSE='#' | 
|  | 27549 | else | 
|  | 27550 | JBIG_DELEGATE_TRUE='#' | 
|  | 27551 | JBIG_DELEGATE_FALSE= | 
|  | 27552 | fi | 
|  | 27553 |  | 
|  | 27554 |  | 
|  | 27555 |  | 
|  | 27556 |  | 
|  | 27557 | # | 
|  | 27558 | # Check for JPEG delegate library. | 
|  | 27559 | # | 
|  | 27560 |  | 
|  | 27561 | # Check whether --with-jpeg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27562 | if test "${with_jpeg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27563 | withval=$with_jpeg; with_jpeg=$withval | 
|  | 27564 | else | 
|  | 27565 | with_jpeg='yes' | 
|  | 27566 | fi | 
|  | 27567 |  | 
|  | 27568 |  | 
|  | 27569 | if test "$with_jpeg" != 'yes'; then | 
|  | 27570 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " | 
|  | 27571 | fi | 
|  | 27572 |  | 
|  | 27573 | have_jpeg='no' | 
|  | 27574 | JPEG_LIBS='' | 
|  | 27575 | if test "$with_jpeg" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27577 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27579 | $as_echo_n "checking for JPEG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27581 | $as_echo "" >&6; } | 
|  | 27582 | failed=0 | 
|  | 27583 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27584 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" | 
|  | 27585 | if test "x$ac_cv_header_jconfig_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27586 | passed=`expr $passed + 1` | 
|  | 27587 | else | 
|  | 27588 | failed=`expr $failed + 1` | 
|  | 27589 | fi | 
|  | 27590 |  | 
|  | 27591 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27592 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" | 
|  | 27593 | if test "x$ac_cv_header_jerror_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27594 | passed=`expr $passed + 1` | 
|  | 27595 | else | 
|  | 27596 | failed=`expr $failed + 1` | 
|  | 27597 | fi | 
|  | 27598 |  | 
|  | 27599 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27600 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" | 
|  | 27601 | if test "x$ac_cv_header_jmorecfg_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27602 | passed=`expr $passed + 1` | 
|  | 27603 | else | 
|  | 27604 | failed=`expr $failed + 1` | 
|  | 27605 | fi | 
|  | 27606 |  | 
|  | 27607 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27608 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | 
|  | 27609 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27610 | passed=`expr $passed + 1` | 
|  | 27611 | else | 
|  | 27612 | failed=`expr $failed + 1` | 
|  | 27613 | fi | 
|  | 27614 |  | 
|  | 27615 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27616 | { $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] | 27617 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27618 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27619 | $as_echo_n "(cached) " >&6 | 
|  | 27620 | else | 
|  | 27621 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27622 | LIBS="-ljpeg  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27624 | /* end confdefs.h.  */ | 
|  | 27625 |  | 
|  | 27626 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27627 | Use char because int might match the return type of a GCC | 
|  | 27628 | builtin and then its argument prototype would still apply.  */ | 
|  | 27629 | #ifdef __cplusplus | 
|  | 27630 | extern "C" | 
|  | 27631 | #endif | 
|  | 27632 | char jpeg_read_header (); | 
|  | 27633 | int | 
|  | 27634 | main () | 
|  | 27635 | { | 
|  | 27636 | return jpeg_read_header (); | 
|  | 27637 | ; | 
|  | 27638 | return 0; | 
|  | 27639 | } | 
|  | 27640 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27641 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27642 | ac_cv_lib_jpeg_jpeg_read_header=yes | 
|  | 27643 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27644 | ac_cv_lib_jpeg_jpeg_read_header=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27645 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27646 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27647 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27648 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27649 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27650 | { $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] | 27651 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27652 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27653 | passed=`expr $passed + 1` | 
|  | 27654 | else | 
|  | 27655 | failed=`expr $failed + 1` | 
|  | 27656 | fi | 
|  | 27657 |  | 
|  | 27658 |  | 
|  | 27659 | # Test for compatible JPEG library | 
|  | 27660 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27661 | { $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] | 27662 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27663 | if test "${ac_cv_jpeg_version_ok+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27664 | $as_echo_n "(cached) " >&6 | 
|  | 27665 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27667 | /* end confdefs.h.  */ | 
|  | 27668 | #include <stdio.h> | 
|  | 27669 | #include <stdlib.h> | 
|  | 27670 | #include <jpeglib.h> | 
|  | 27671 |  | 
|  | 27672 | int | 
|  | 27673 | main () | 
|  | 27674 | { | 
|  | 27675 |  | 
|  | 27676 | #if JPEG_LIB_VERSION < 62 | 
|  | 27677 | #error IJG JPEG library must be version 6b or newer! | 
|  | 27678 | #endif | 
|  | 27679 | return 0; | 
|  | 27680 |  | 
|  | 27681 | ; | 
|  | 27682 | return 0; | 
|  | 27683 | } | 
|  | 27684 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27685 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27686 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` | 
|  | 27687 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27688 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27689 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 27691 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27692 | { $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] | 27693 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } | 
|  | 27694 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27695 | { $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] | 27696 | $as_echo_n "checking if JPEG package is complete... " >&6; } | 
|  | 27697 | if test $passed -gt 0; then | 
|  | 27698 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27700 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27701 | have_jpeg='no (failed tests)' | 
|  | 27702 | else | 
|  | 27703 | JPEG_LIBS='-ljpeg' | 
|  | 27704 | LIBS="$JPEG_LIBS $LIBS" | 
|  | 27705 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27706 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27707 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27709 | $as_echo "yes" >&6; } | 
|  | 27710 | have_jpeg='yes' | 
|  | 27711 | fi | 
|  | 27712 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27714 | $as_echo "no" >&6; } | 
|  | 27715 | fi | 
|  | 27716 | fi | 
|  | 27717 | if test "$have_jpeg" = 'yes'; then | 
|  | 27718 | JPEG_DELEGATE_TRUE= | 
|  | 27719 | JPEG_DELEGATE_FALSE='#' | 
|  | 27720 | else | 
|  | 27721 | JPEG_DELEGATE_TRUE='#' | 
|  | 27722 | JPEG_DELEGATE_FALSE= | 
|  | 27723 | fi | 
|  | 27724 |  | 
|  | 27725 |  | 
|  | 27726 |  | 
|  | 27727 |  | 
|  | 27728 | # | 
|  | 27729 | # Check for JPEG Version 2 delegate library. | 
|  | 27730 | # | 
|  | 27731 |  | 
|  | 27732 | # Check whether --with-jp2 was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27733 | if test "${with_jp2+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27734 | withval=$with_jp2; with_jp2=$withval | 
|  | 27735 | else | 
|  | 27736 | with_jp2='yes' | 
|  | 27737 | fi | 
|  | 27738 |  | 
|  | 27739 |  | 
|  | 27740 | if test "$with_jp2" != 'yes'; then | 
|  | 27741 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " | 
|  | 27742 | fi | 
|  | 27743 |  | 
|  | 27744 | have_jp2='no' | 
|  | 27745 | JP2_LIBS='' | 
|  | 27746 | if test "$with_jp2" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27748 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27750 | $as_echo_n "checking for JPEG Version 2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27752 | $as_echo "" >&6; } | 
|  | 27753 | failed=0 | 
|  | 27754 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27755 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" | 
|  | 27756 | if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27757 | passed=`expr $passed + 1` | 
|  | 27758 | else | 
|  | 27759 | failed=`expr $failed + 1` | 
|  | 27760 | fi | 
|  | 27761 |  | 
|  | 27762 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27763 | { $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] | 27764 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27765 | if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27766 | $as_echo_n "(cached) " >&6 | 
|  | 27767 | else | 
|  | 27768 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27769 | LIBS="-ljasper  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27771 | /* end confdefs.h.  */ | 
|  | 27772 |  | 
|  | 27773 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27774 | Use char because int might match the return type of a GCC | 
|  | 27775 | builtin and then its argument prototype would still apply.  */ | 
|  | 27776 | #ifdef __cplusplus | 
|  | 27777 | extern "C" | 
|  | 27778 | #endif | 
|  | 27779 | char jas_stream_fopen (); | 
|  | 27780 | int | 
|  | 27781 | main () | 
|  | 27782 | { | 
|  | 27783 | return jas_stream_fopen (); | 
|  | 27784 | ; | 
|  | 27785 | return 0; | 
|  | 27786 | } | 
|  | 27787 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27788 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27789 | ac_cv_lib_jasper_jas_stream_fopen=yes | 
|  | 27790 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27791 | ac_cv_lib_jasper_jas_stream_fopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27792 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27793 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27794 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27795 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27796 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27797 | { $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] | 27798 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27799 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27800 | passed=`expr $passed + 1` | 
|  | 27801 | else | 
|  | 27802 | failed=`expr $failed + 1` | 
|  | 27803 | fi | 
|  | 27804 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27805 | { $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] | 27806 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } | 
|  | 27807 | if test $passed -gt 0; then | 
|  | 27808 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27810 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27811 | have_jp2='no (failed tests)' | 
|  | 27812 | else | 
|  | 27813 | JP2_LIBS='-ljasper' | 
|  | 27814 | LIBS="$JP2_LIBS $LIBS" | 
|  | 27815 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27816 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27817 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27819 | $as_echo "yes" >&6; } | 
|  | 27820 | have_jp2='yes' | 
|  | 27821 | fi | 
|  | 27822 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27824 | $as_echo "no" >&6; } | 
|  | 27825 | fi | 
|  | 27826 | fi | 
|  | 27827 | if test "$have_jp2" = 'yes'; then | 
|  | 27828 | JP2_DELEGATE_TRUE= | 
|  | 27829 | JP2_DELEGATE_FALSE='#' | 
|  | 27830 | else | 
|  | 27831 | JP2_DELEGATE_TRUE='#' | 
|  | 27832 | JP2_DELEGATE_FALSE= | 
|  | 27833 | fi | 
|  | 27834 |  | 
|  | 27835 |  | 
|  | 27836 |  | 
|  | 27837 |  | 
|  | 27838 | # | 
|  | 27839 | # Check for LCMS delegate library. | 
|  | 27840 | # | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27841 | # Disable LCMS. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27842 |  | 
|  | 27843 | # Check whether --with-lcms was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27844 | if test "${with_lcms+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27845 | withval=$with_lcms; with_lcms=$withval | 
|  | 27846 | else | 
|  | 27847 | with_lcms='yes' | 
|  | 27848 | fi | 
|  | 27849 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27850 | if test "$with_lcms" != 'yes' ; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27851 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " | 
|  | 27852 | fi | 
|  | 27853 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27854 | # Disable LCMS2. | 
|  | 27855 |  | 
|  | 27856 | # Check whether --with-lcms2 was given. | 
|  | 27857 | if test "${with_lcms2+set}" = set; then : | 
|  | 27858 | withval=$with_lcms2; with_lcms2=$withval | 
|  | 27859 | else | 
|  | 27860 | with_lcms2='yes' | 
|  | 27861 | fi | 
|  | 27862 |  | 
|  | 27863 | if test "$with_lcms2" != 'yes' ; then | 
|  | 27864 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " | 
|  | 27865 | fi | 
|  | 27866 |  | 
|  | 27867 | have_lcms2='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27868 | LCMS_LIBS='' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27869 | if test "$with_lcms2" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27871 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 | 
|  | 27873 | $as_echo_n "checking for LCMS v2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27875 | $as_echo "" >&6; } | 
|  | 27876 | failed=0 | 
|  | 27877 | passed=0 | 
|  | 27878 | have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27879 |  | 
|  | 27880 | # Check for <lcms2.h> | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27881 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" | 
|  | 27882 | if test "x$ac_cv_header_lcms2_h" = x""yes; then : | 
|  | 27883 | have_lcms_header='yes' | 
|  | 27884 | fi | 
|  | 27885 |  | 
|  | 27886 |  | 
|  | 27887 | if test "$have_lcms_header" = 'yes'; then | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27888 |  | 
|  | 27889 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h | 
|  | 27890 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27891 | passed=`expr $passed + 1` | 
|  | 27892 | fi | 
|  | 27893 |  | 
|  | 27894 | # Check for <lcms2/lcms2.h) | 
|  | 27895 | if test "$have_lcms_header" != 'yes'; then | 
|  | 27896 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" | 
|  | 27897 | if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27898 | have_lcms_header='yes' | 
|  | 27899 | fi | 
|  | 27900 |  | 
|  | 27901 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27902 | if test "$have_lcms_header" = 'yes'; then | 
|  | 27903 | passed=`expr $passed + 1` | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27904 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27905 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27906 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27907 | fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27908 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27909 |  | 
|  | 27910 | # Failed to find lcms header? | 
|  | 27911 | if test "$have_lcms_header" != 'yes'; then | 
|  | 27912 | failed=`expr $failed + 1` | 
|  | 27913 | fi | 
|  | 27914 |  | 
|  | 27915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 | 
|  | 27916 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } | 
|  | 27917 | if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27918 | $as_echo_n "(cached) " >&6 | 
|  | 27919 | else | 
|  | 27920 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27921 | LIBS="-llcms2  $LIBS" | 
|  | 27922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 27923 | /* end confdefs.h.  */ | 
|  | 27924 |  | 
|  | 27925 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27926 | Use char because int might match the return type of a GCC | 
|  | 27927 | builtin and then its argument prototype would still apply.  */ | 
|  | 27928 | #ifdef __cplusplus | 
|  | 27929 | extern "C" | 
|  | 27930 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27931 | char cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27932 | int | 
|  | 27933 | main () | 
|  | 27934 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27935 | return cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27936 | ; | 
|  | 27937 | return 0; | 
|  | 27938 | } | 
|  | 27939 | _ACEOF | 
|  | 27940 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27941 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27942 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27943 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27944 | fi | 
|  | 27945 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27946 | conftest$ac_exeext conftest.$ac_ext | 
|  | 27947 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27948 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 | 
|  | 27950 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } | 
|  | 27951 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27952 | passed=`expr $passed + 1` | 
|  | 27953 | else | 
|  | 27954 | failed=`expr $failed + 1` | 
|  | 27955 | fi | 
|  | 27956 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 | 
|  | 27958 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27959 | if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27960 | if test $failed -gt 0; then | 
|  | 27961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27962 | $as_echo "no -- some components failed test" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27963 | have_lcms2='no (failed tests)' | 
|  | 27964 | else | 
|  | 27965 | LCMS_LIBS='-llcms2' | 
|  | 27966 | LIBS="$LCMS_LIBS $LIBS" | 
|  | 27967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27968 | $as_echo "yes" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27969 | have_lcms2='yes' | 
|  | 27970 | fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27971 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27973 | $as_echo "no" >&6; } | 
|  | 27974 | fi | 
|  | 27975 | fi | 
|  | 27976 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27977 | # | 
|  | 27978 | # Check for LCMS v1 (1.11 or later) | 
|  | 27979 | # | 
|  | 27980 | if test $have_lcms2 = 'yes'; then | 
|  | 27981 | with_lcms='no' | 
|  | 27982 | fi | 
|  | 27983 |  | 
|  | 27984 | have_lcms='no' | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27985 | if test "$with_lcms" != 'no'; then | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
|  | 27987 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 | 
|  | 27989 | $as_echo_n "checking for LCMS v1.1X... " >&6; } | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
|  | 27991 | $as_echo "" >&6; } | 
|  | 27992 | failed=0 | 
|  | 27993 | passed=0 | 
|  | 27994 | have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 27995 |  | 
|  | 27996 | # Check for <lcms.h> | 
|  | 27997 | if test "$have_lcms_header" != 'yes'; then | 
|  | 27998 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27999 | if test "x$ac_cv_header_lcms_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28000 | have_lcms_header='yes' | 
|  | 28001 | fi | 
|  | 28002 |  | 
|  | 28003 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28004 | if test "$have_lcms_header" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28005 | passed=`expr $passed + 1` | 
|  | 28006 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28007 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28008 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28009 | fi | 
|  | 28010 | fi | 
|  | 28011 |  | 
|  | 28012 | # Check for <lcms/lcms.h> | 
|  | 28013 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28014 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28015 | if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28016 | have_lcms_header='yes' | 
|  | 28017 | fi | 
|  | 28018 |  | 
|  | 28019 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28020 | if test "$have_lcms_header" = 'yes'; then | 
|  | 28021 | passed=`expr $passed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28022 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28023 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28024 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28025 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28026 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28027 |  | 
|  | 28028 | # Failed to find lcms header? | 
|  | 28029 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28030 | failed=`expr $failed + 1` | 
|  | 28031 | fi | 
|  | 28032 |  | 
|  | 28033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 | 
|  | 28034 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } | 
|  | 28035 | if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28036 | $as_echo_n "(cached) " >&6 | 
|  | 28037 | else | 
|  | 28038 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28039 | LIBS="-llcms  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28041 | /* end confdefs.h.  */ | 
|  | 28042 |  | 
|  | 28043 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28044 | Use char because int might match the return type of a GCC | 
|  | 28045 | builtin and then its argument prototype would still apply.  */ | 
|  | 28046 | #ifdef __cplusplus | 
|  | 28047 | extern "C" | 
|  | 28048 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28049 | char cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28050 | int | 
|  | 28051 | main () | 
|  | 28052 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28053 | return cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28054 | ; | 
|  | 28055 | return 0; | 
|  | 28056 | } | 
|  | 28057 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28058 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28059 | ac_cv_lib_lcms_cmsSetErrorHandler=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28060 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28061 | ac_cv_lib_lcms_cmsSetErrorHandler=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28062 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28063 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28064 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28065 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28066 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 | 
|  | 28068 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } | 
|  | 28069 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28070 | passed=`expr $passed + 1` | 
|  | 28071 | else | 
|  | 28072 | failed=`expr $failed + 1` | 
|  | 28073 | fi | 
|  | 28074 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28075 | { $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] | 28076 | $as_echo_n "checking if LCMS package is complete... " >&6; } | 
|  | 28077 | if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28078 | if test $failed -gt 0; then | 
|  | 28079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28080 | $as_echo "no -- some components failed test" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28081 | have_lcms='no (failed tests)' | 
|  | 28082 | else | 
|  | 28083 | LCMS_LIBS='-llcms' | 
|  | 28084 | LIBS="$LCMS_LIBS $LIBS" | 
|  | 28085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28086 | $as_echo "yes" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28087 | have_lcms='yes' | 
|  | 28088 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28089 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28091 | $as_echo "no" >&6; } | 
|  | 28092 | fi | 
|  | 28093 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28094 |  | 
|  | 28095 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28096 | LCMS_DELEGATE_TRUE= | 
|  | 28097 | LCMS_DELEGATE_FALSE='#' | 
|  | 28098 | else | 
|  | 28099 | LCMS_DELEGATE_TRUE='#' | 
|  | 28100 | LCMS_DELEGATE_FALSE= | 
|  | 28101 | fi | 
|  | 28102 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28103 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
|  | 28104 |  | 
|  | 28105 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h | 
|  | 28106 |  | 
|  | 28107 | fi | 
|  | 28108 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28109 |  | 
|  | 28110 |  | 
|  | 28111 |  | 
|  | 28112 | # | 
|  | 28113 | # Check for the LQR (Liquid Rescale) delegate library. | 
|  | 28114 | # | 
|  | 28115 |  | 
|  | 28116 | # Check whether --with-lqr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28117 | if test "${with_lqr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28118 | withval=$with_lqr; with_lqr=$withval | 
|  | 28119 | else | 
|  | 28120 | with_lqr='yes' | 
|  | 28121 | fi | 
|  | 28122 |  | 
|  | 28123 |  | 
|  | 28124 | if test "$with_lqr" != 'yes'; then | 
|  | 28125 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " | 
|  | 28126 | fi | 
|  | 28127 |  | 
|  | 28128 | have_lqr='no' | 
|  | 28129 | LQR_CFLAGS="" | 
|  | 28130 | LQR_LIBS="" | 
|  | 28131 | LQR_PKG="" | 
|  | 28132 | if test "x$with_lqr" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28134 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 28135 |  | 
|  | 28136 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28138 | $as_echo_n "checking for LQR... " >&6; } | 
|  | 28139 |  | 
|  | 28140 | if test -n "$LQR_CFLAGS"; then | 
|  | 28141 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" | 
|  | 28142 | elif test -n "$PKG_CONFIG"; then | 
|  | 28143 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28144 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28145 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
|  | 28146 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28148 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28149 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` | 
|  | 28150 | else | 
|  | 28151 | pkg_failed=yes | 
|  | 28152 | fi | 
|  | 28153 | else | 
|  | 28154 | pkg_failed=untried | 
|  | 28155 | fi | 
|  | 28156 | if test -n "$LQR_LIBS"; then | 
|  | 28157 | pkg_cv_LQR_LIBS="$LQR_LIBS" | 
|  | 28158 | elif test -n "$PKG_CONFIG"; then | 
|  | 28159 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28161 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
|  | 28162 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28164 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28165 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` | 
|  | 28166 | else | 
|  | 28167 | pkg_failed=yes | 
|  | 28168 | fi | 
|  | 28169 | else | 
|  | 28170 | pkg_failed=untried | 
|  | 28171 | fi | 
|  | 28172 |  | 
|  | 28173 |  | 
|  | 28174 |  | 
|  | 28175 | if test $pkg_failed = yes; then | 
|  | 28176 |  | 
|  | 28177 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28178 | _pkg_short_errors_supported=yes | 
|  | 28179 | else | 
|  | 28180 | _pkg_short_errors_supported=no | 
|  | 28181 | fi | 
|  | 28182 | if test $_pkg_short_errors_supported = yes; then | 
|  | 28183 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
|  | 28184 | else | 
|  | 28185 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
|  | 28186 | fi | 
|  | 28187 | # Put the nasty error message in config.log where it belongs | 
|  | 28188 | echo "$LQR_PKG_ERRORS" >&5 | 
|  | 28189 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28191 | $as_echo "no" >&6; } | 
|  | 28192 | have_lqr=no | 
|  | 28193 | elif test $pkg_failed = untried; then | 
|  | 28194 | have_lqr=no | 
|  | 28195 | else | 
|  | 28196 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS | 
|  | 28197 | LQR_LIBS=$pkg_cv_LQR_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28199 | $as_echo "yes" >&6; } | 
|  | 28200 | have_lqr=yes | 
|  | 28201 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28203 | $as_echo "" >&6; } | 
|  | 28204 | fi | 
|  | 28205 |  | 
|  | 28206 | if test "$have_lqr" = 'yes'; then | 
|  | 28207 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28208 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28209 |  | 
|  | 28210 | CFLAGS="$LQR_CFLAGS $CFLAGS" | 
|  | 28211 | fi | 
|  | 28212 |  | 
|  | 28213 | if test "$have_lqr" = 'yes'; then | 
|  | 28214 | LQR_DELEGATE_TRUE= | 
|  | 28215 | LQR_DELEGATE_FALSE='#' | 
|  | 28216 | else | 
|  | 28217 | LQR_DELEGATE_TRUE='#' | 
|  | 28218 | LQR_DELEGATE_FALSE= | 
|  | 28219 | fi | 
|  | 28220 |  | 
|  | 28221 |  | 
|  | 28222 |  | 
|  | 28223 |  | 
|  | 28224 |  | 
|  | 28225 | # | 
|  | 28226 | # Check for the OpenEXR delegate library. | 
|  | 28227 | # | 
|  | 28228 |  | 
|  | 28229 | # Check whether --with-openexr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28230 | if test "${with_openexr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28231 | withval=$with_openexr; with_openexr=$withval | 
|  | 28232 | else | 
|  | 28233 | with_openexr='yes' | 
|  | 28234 | fi | 
|  | 28235 |  | 
|  | 28236 |  | 
|  | 28237 | if test "$with_openexr" != 'yes'; then | 
|  | 28238 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " | 
|  | 28239 | fi | 
|  | 28240 |  | 
|  | 28241 | have_openexr='no' | 
|  | 28242 | OPENEXR_CFLAGS="" | 
|  | 28243 | OPENEXR_LIBS="" | 
|  | 28244 | OPENEXR_PKG="" | 
|  | 28245 | if test "x$with_openexr" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28247 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 28248 |  | 
|  | 28249 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28251 | $as_echo_n "checking for OPENEXR... " >&6; } | 
|  | 28252 |  | 
|  | 28253 | if test -n "$OPENEXR_CFLAGS"; then | 
|  | 28254 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" | 
|  | 28255 | elif test -n "$PKG_CONFIG"; then | 
|  | 28256 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28257 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28258 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
|  | 28259 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28261 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28262 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` | 
|  | 28263 | else | 
|  | 28264 | pkg_failed=yes | 
|  | 28265 | fi | 
|  | 28266 | else | 
|  | 28267 | pkg_failed=untried | 
|  | 28268 | fi | 
|  | 28269 | if test -n "$OPENEXR_LIBS"; then | 
|  | 28270 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" | 
|  | 28271 | elif test -n "$PKG_CONFIG"; then | 
|  | 28272 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28273 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28274 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
|  | 28275 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28277 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28278 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` | 
|  | 28279 | else | 
|  | 28280 | pkg_failed=yes | 
|  | 28281 | fi | 
|  | 28282 | else | 
|  | 28283 | pkg_failed=untried | 
|  | 28284 | fi | 
|  | 28285 |  | 
|  | 28286 |  | 
|  | 28287 |  | 
|  | 28288 | if test $pkg_failed = yes; then | 
|  | 28289 |  | 
|  | 28290 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28291 | _pkg_short_errors_supported=yes | 
|  | 28292 | else | 
|  | 28293 | _pkg_short_errors_supported=no | 
|  | 28294 | fi | 
|  | 28295 | if test $_pkg_short_errors_supported = yes; then | 
|  | 28296 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
|  | 28297 | else | 
|  | 28298 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
|  | 28299 | fi | 
|  | 28300 | # Put the nasty error message in config.log where it belongs | 
|  | 28301 | echo "$OPENEXR_PKG_ERRORS" >&5 | 
|  | 28302 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28304 | $as_echo "no" >&6; } | 
|  | 28305 | have_openexr=no | 
|  | 28306 | elif test $pkg_failed = untried; then | 
|  | 28307 | have_openexr=no | 
|  | 28308 | else | 
|  | 28309 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS | 
|  | 28310 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28312 | $as_echo "yes" >&6; } | 
|  | 28313 | have_openexr=yes | 
|  | 28314 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28316 | $as_echo "" >&6; } | 
|  | 28317 | fi | 
|  | 28318 |  | 
|  | 28319 | if test "$have_openexr" = 'yes'; then | 
|  | 28320 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28321 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28322 |  | 
|  | 28323 | if test "$with_modules" = 'no'; then | 
|  | 28324 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" | 
|  | 28325 | fi | 
|  | 28326 | fi | 
|  | 28327 |  | 
|  | 28328 | if test "$have_openexr" = 'yes'; then | 
|  | 28329 | OPENEXR_DELEGATE_TRUE= | 
|  | 28330 | OPENEXR_DELEGATE_FALSE='#' | 
|  | 28331 | else | 
|  | 28332 | OPENEXR_DELEGATE_TRUE='#' | 
|  | 28333 | OPENEXR_DELEGATE_FALSE= | 
|  | 28334 | fi | 
|  | 28335 |  | 
|  | 28336 |  | 
|  | 28337 |  | 
|  | 28338 |  | 
|  | 28339 |  | 
|  | 28340 | # | 
|  | 28341 | # Check for PNG delegate library. | 
|  | 28342 | # | 
|  | 28343 |  | 
|  | 28344 | # Check whether --with-png was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28345 | if test "${with_png+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28346 | withval=$with_png; with_png=$withval | 
|  | 28347 | else | 
|  | 28348 | with_png='yes' | 
|  | 28349 | fi | 
|  | 28350 |  | 
|  | 28351 |  | 
|  | 28352 | if test "$with_png" != 'yes'; then | 
|  | 28353 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " | 
|  | 28354 | fi | 
|  | 28355 |  | 
|  | 28356 | have_png='no' | 
|  | 28357 | PNG_LIBS='' | 
|  | 28358 | if test "$with_png" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28360 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28362 | $as_echo_n "checking for PNG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28364 | $as_echo "" >&6; } | 
|  | 28365 | failed=0 | 
|  | 28366 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28367 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" | 
|  | 28368 | if test "x$ac_cv_header_png_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28369 | passed=`expr $passed + 1` | 
|  | 28370 | else | 
|  | 28371 | failed=`expr $failed + 1` | 
|  | 28372 | fi | 
|  | 28373 |  | 
|  | 28374 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28376 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28377 | if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28378 | $as_echo_n "(cached) " >&6 | 
|  | 28379 | else | 
|  | 28380 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28381 | LIBS="-lpng  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28383 | /* end confdefs.h.  */ | 
|  | 28384 |  | 
|  | 28385 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28386 | Use char because int might match the return type of a GCC | 
|  | 28387 | builtin and then its argument prototype would still apply.  */ | 
|  | 28388 | #ifdef __cplusplus | 
|  | 28389 | extern "C" | 
|  | 28390 | #endif | 
|  | 28391 | char png_get_io_ptr (); | 
|  | 28392 | int | 
|  | 28393 | main () | 
|  | 28394 | { | 
|  | 28395 | return png_get_io_ptr (); | 
|  | 28396 | ; | 
|  | 28397 | return 0; | 
|  | 28398 | } | 
|  | 28399 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28400 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28401 | ac_cv_lib_png_png_get_io_ptr=yes | 
|  | 28402 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28403 | ac_cv_lib_png_png_get_io_ptr=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28404 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28405 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28406 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28407 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28408 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28410 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28411 | if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28412 | passed=`expr $passed + 1` | 
|  | 28413 | else | 
|  | 28414 | failed=`expr $failed + 1` | 
|  | 28415 | fi | 
|  | 28416 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28418 | $as_echo_n "checking if PNG package is complete... " >&6; } | 
|  | 28419 | if test $passed -gt 0; then | 
|  | 28420 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28422 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28423 | have_png='no (failed tests)' | 
|  | 28424 | else | 
|  | 28425 | PNG_LIBS='-lpng' | 
|  | 28426 | LIBS="$PNG_LIBS $LIBS" | 
|  | 28427 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28428 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28429 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28431 | $as_echo "yes" >&6; } | 
|  | 28432 | have_png='yes' | 
|  | 28433 | fi | 
|  | 28434 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28436 | $as_echo "no" >&6; } | 
|  | 28437 | fi | 
|  | 28438 | fi | 
|  | 28439 | if test "$have_png" = 'yes'; then | 
|  | 28440 | PNG_DELEGATE_TRUE= | 
|  | 28441 | PNG_DELEGATE_FALSE='#' | 
|  | 28442 | else | 
|  | 28443 | PNG_DELEGATE_TRUE='#' | 
|  | 28444 | PNG_DELEGATE_FALSE= | 
|  | 28445 | fi | 
|  | 28446 |  | 
|  | 28447 |  | 
|  | 28448 |  | 
|  | 28449 |  | 
|  | 28450 | # | 
|  | 28451 | # Check for RSVG delegate library. | 
|  | 28452 | # | 
|  | 28453 |  | 
|  | 28454 | # Check whether --with-rsvg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28455 | if test "${with_rsvg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28456 | withval=$with_rsvg; with_rsvg=$withval | 
|  | 28457 | else | 
|  | 28458 | with_rsvg=$have_x | 
|  | 28459 | fi | 
|  | 28460 |  | 
|  | 28461 |  | 
|  | 28462 | if test "$with_rsvg" != 'yes'; then | 
|  | 28463 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " | 
|  | 28464 | fi | 
|  | 28465 |  | 
|  | 28466 | have_rsvg='no' | 
|  | 28467 | have_cairo='no' | 
|  | 28468 | RSVG_CFLAGS="" | 
|  | 28469 | RSVG_LIBS="" | 
|  | 28470 | RSVG_PKG="" | 
|  | 28471 | if test "x$with_rsvg" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28473 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 28474 |  | 
|  | 28475 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28477 | $as_echo_n "checking for RSVG... " >&6; } | 
|  | 28478 |  | 
|  | 28479 | if test -n "$RSVG_CFLAGS"; then | 
|  | 28480 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" | 
|  | 28481 | elif test -n "$PKG_CONFIG"; then | 
|  | 28482 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28484 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
|  | 28485 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28487 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28488 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
|  | 28489 | else | 
|  | 28490 | pkg_failed=yes | 
|  | 28491 | fi | 
|  | 28492 | else | 
|  | 28493 | pkg_failed=untried | 
|  | 28494 | fi | 
|  | 28495 | if test -n "$RSVG_LIBS"; then | 
|  | 28496 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" | 
|  | 28497 | elif test -n "$PKG_CONFIG"; then | 
|  | 28498 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28499 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28500 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
|  | 28501 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28503 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28504 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
|  | 28505 | else | 
|  | 28506 | pkg_failed=yes | 
|  | 28507 | fi | 
|  | 28508 | else | 
|  | 28509 | pkg_failed=untried | 
|  | 28510 | fi | 
|  | 28511 |  | 
|  | 28512 |  | 
|  | 28513 |  | 
|  | 28514 | if test $pkg_failed = yes; then | 
|  | 28515 |  | 
|  | 28516 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28517 | _pkg_short_errors_supported=yes | 
|  | 28518 | else | 
|  | 28519 | _pkg_short_errors_supported=no | 
|  | 28520 | fi | 
|  | 28521 | if test $_pkg_short_errors_supported = yes; then | 
|  | 28522 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
|  | 28523 | else | 
|  | 28524 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
|  | 28525 | fi | 
|  | 28526 | # Put the nasty error message in config.log where it belongs | 
|  | 28527 | echo "$RSVG_PKG_ERRORS" >&5 | 
|  | 28528 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28530 | $as_echo "no" >&6; } | 
|  | 28531 | have_rsvg=no | 
|  | 28532 | elif test $pkg_failed = untried; then | 
|  | 28533 | have_rsvg=no | 
|  | 28534 | else | 
|  | 28535 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS | 
|  | 28536 | RSVG_LIBS=$pkg_cv_RSVG_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28538 | $as_echo "yes" >&6; } | 
|  | 28539 | have_rsvg=yes | 
|  | 28540 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28542 | $as_echo "" >&6; } | 
|  | 28543 |  | 
|  | 28544 | pkg_failed=no | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28546 | $as_echo_n "checking for CAIRO_SVG... " >&6; } | 
|  | 28547 |  | 
|  | 28548 | if test -n "$CAIRO_SVG_CFLAGS"; then | 
|  | 28549 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" | 
|  | 28550 | elif test -n "$PKG_CONFIG"; then | 
|  | 28551 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28552 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28553 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
|  | 28554 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28556 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28557 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` | 
|  | 28558 | else | 
|  | 28559 | pkg_failed=yes | 
|  | 28560 | fi | 
|  | 28561 | else | 
|  | 28562 | pkg_failed=untried | 
|  | 28563 | fi | 
|  | 28564 | if test -n "$CAIRO_SVG_LIBS"; then | 
|  | 28565 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" | 
|  | 28566 | elif test -n "$PKG_CONFIG"; then | 
|  | 28567 | if test -n "$PKG_CONFIG" && \ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28569 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
|  | 28570 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28572 | test $ac_status = 0; }; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28573 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` | 
|  | 28574 | else | 
|  | 28575 | pkg_failed=yes | 
|  | 28576 | fi | 
|  | 28577 | else | 
|  | 28578 | pkg_failed=untried | 
|  | 28579 | fi | 
|  | 28580 |  | 
|  | 28581 |  | 
|  | 28582 |  | 
|  | 28583 | if test $pkg_failed = yes; then | 
|  | 28584 |  | 
|  | 28585 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28586 | _pkg_short_errors_supported=yes | 
|  | 28587 | else | 
|  | 28588 | _pkg_short_errors_supported=no | 
|  | 28589 | fi | 
|  | 28590 | if test $_pkg_short_errors_supported = yes; then | 
|  | 28591 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` | 
|  | 28592 | else | 
|  | 28593 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` | 
|  | 28594 | fi | 
|  | 28595 | # Put the nasty error message in config.log where it belongs | 
|  | 28596 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 | 
|  | 28597 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28599 | $as_echo "no" >&6; } | 
|  | 28600 | have_cairo=no | 
|  | 28601 | elif test $pkg_failed = untried; then | 
|  | 28602 | have_cairo=no | 
|  | 28603 | else | 
|  | 28604 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS | 
|  | 28605 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28607 | $as_echo "yes" >&6; } | 
|  | 28608 | have_cairo=yes | 
|  | 28609 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28611 | $as_echo "" >&6; } | 
|  | 28612 | fi | 
|  | 28613 |  | 
|  | 28614 | if test "$have_rsvg" = 'yes'; then | 
|  | 28615 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28616 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28617 |  | 
|  | 28618 | if test "$with_modules" = 'no'; then | 
|  | 28619 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" | 
|  | 28620 | fi | 
|  | 28621 | fi | 
|  | 28622 |  | 
|  | 28623 | if test "$have_cairo" = 'yes'; then | 
|  | 28624 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28625 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28626 |  | 
|  | 28627 | if test "$with_modules" = 'no'; then | 
|  | 28628 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" | 
|  | 28629 | fi | 
|  | 28630 | fi | 
|  | 28631 |  | 
|  | 28632 | if test "$have_rsvg" = 'yes'; then | 
|  | 28633 | RSVG_DELEGATE_TRUE= | 
|  | 28634 | RSVG_DELEGATE_FALSE='#' | 
|  | 28635 | else | 
|  | 28636 | RSVG_DELEGATE_TRUE='#' | 
|  | 28637 | RSVG_DELEGATE_FALSE= | 
|  | 28638 | fi | 
|  | 28639 |  | 
|  | 28640 | if test "$have_cairo" = 'yes'; then | 
|  | 28641 | CAIRO_DELEGATE_TRUE= | 
|  | 28642 | CAIRO_DELEGATE_FALSE='#' | 
|  | 28643 | else | 
|  | 28644 | CAIRO_DELEGATE_TRUE='#' | 
|  | 28645 | CAIRO_DELEGATE_FALSE= | 
|  | 28646 | fi | 
|  | 28647 |  | 
|  | 28648 |  | 
|  | 28649 |  | 
|  | 28650 |  | 
|  | 28651 |  | 
|  | 28652 | # | 
|  | 28653 | # Check for TIFF delegate library. | 
|  | 28654 | # | 
|  | 28655 |  | 
|  | 28656 | # Check whether --with-tiff was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28657 | if test "${with_tiff+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28658 | withval=$with_tiff; with_tiff=$withval | 
|  | 28659 | else | 
|  | 28660 | with_tiff='yes' | 
|  | 28661 | fi | 
|  | 28662 |  | 
|  | 28663 |  | 
|  | 28664 | if test "$with_tiff" != 'yes'; then | 
|  | 28665 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " | 
|  | 28666 | fi | 
|  | 28667 |  | 
|  | 28668 | have_tiff='no' | 
|  | 28669 | TIFF_LIBS='' | 
|  | 28670 | if test "$with_tiff" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28672 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28674 | $as_echo_n "checking for TIFF... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28676 | $as_echo "" >&6; } | 
|  | 28677 | failed=0 | 
|  | 28678 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28679 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" | 
|  | 28680 | if test "x$ac_cv_header_tiff_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28681 | passed=`expr $passed + 1` | 
|  | 28682 | else | 
|  | 28683 | failed=`expr $failed + 1` | 
|  | 28684 | fi | 
|  | 28685 |  | 
|  | 28686 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28687 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | 
|  | 28688 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28689 | passed=`expr $passed + 1` | 
|  | 28690 | else | 
|  | 28691 | failed=`expr $failed + 1` | 
|  | 28692 | fi | 
|  | 28693 |  | 
|  | 28694 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28696 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28697 | if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28698 | $as_echo_n "(cached) " >&6 | 
|  | 28699 | else | 
|  | 28700 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28701 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28703 | /* end confdefs.h.  */ | 
|  | 28704 |  | 
|  | 28705 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28706 | Use char because int might match the return type of a GCC | 
|  | 28707 | builtin and then its argument prototype would still apply.  */ | 
|  | 28708 | #ifdef __cplusplus | 
|  | 28709 | extern "C" | 
|  | 28710 | #endif | 
|  | 28711 | char TIFFOpen (); | 
|  | 28712 | int | 
|  | 28713 | main () | 
|  | 28714 | { | 
|  | 28715 | return TIFFOpen (); | 
|  | 28716 | ; | 
|  | 28717 | return 0; | 
|  | 28718 | } | 
|  | 28719 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28720 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28721 | ac_cv_lib_tiff_TIFFOpen=yes | 
|  | 28722 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28723 | ac_cv_lib_tiff_TIFFOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28724 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28725 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28726 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28727 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28728 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28729 | { $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] | 28730 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28731 | if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28732 | passed=`expr $passed + 1` | 
|  | 28733 | else | 
|  | 28734 | failed=`expr $failed + 1` | 
|  | 28735 | fi | 
|  | 28736 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28738 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28739 | if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28740 | $as_echo_n "(cached) " >&6 | 
|  | 28741 | else | 
|  | 28742 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28743 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28745 | /* end confdefs.h.  */ | 
|  | 28746 |  | 
|  | 28747 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28748 | Use char because int might match the return type of a GCC | 
|  | 28749 | builtin and then its argument prototype would still apply.  */ | 
|  | 28750 | #ifdef __cplusplus | 
|  | 28751 | extern "C" | 
|  | 28752 | #endif | 
|  | 28753 | char TIFFClientOpen (); | 
|  | 28754 | int | 
|  | 28755 | main () | 
|  | 28756 | { | 
|  | 28757 | return TIFFClientOpen (); | 
|  | 28758 | ; | 
|  | 28759 | return 0; | 
|  | 28760 | } | 
|  | 28761 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28762 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28763 | ac_cv_lib_tiff_TIFFClientOpen=yes | 
|  | 28764 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28765 | ac_cv_lib_tiff_TIFFClientOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28766 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28767 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28768 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28769 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28770 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28771 | { $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] | 28772 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28773 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28774 | passed=`expr $passed + 1` | 
|  | 28775 | else | 
|  | 28776 | failed=`expr $failed + 1` | 
|  | 28777 | fi | 
|  | 28778 |  | 
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 28779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5 | 
|  | 28780 | $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; } | 
|  | 28781 | if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then : | 
|  | 28782 | $as_echo_n "(cached) " >&6 | 
|  | 28783 | else | 
|  | 28784 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28785 | LIBS="-ltiff  $LIBS" | 
|  | 28786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 28787 | /* end confdefs.h.  */ | 
|  | 28788 |  | 
|  | 28789 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28790 | Use char because int might match the return type of a GCC | 
|  | 28791 | builtin and then its argument prototype would still apply.  */ | 
|  | 28792 | #ifdef __cplusplus | 
|  | 28793 | extern "C" | 
|  | 28794 | #endif | 
|  | 28795 | char TIFFIsBigEndian (); | 
|  | 28796 | int | 
|  | 28797 | main () | 
|  | 28798 | { | 
|  | 28799 | return TIFFIsBigEndian (); | 
|  | 28800 | ; | 
|  | 28801 | return 0; | 
|  | 28802 | } | 
|  | 28803 | _ACEOF | 
|  | 28804 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 28805 | ac_cv_lib_tiff_TIFFIsBigEndian=yes | 
|  | 28806 | else | 
|  | 28807 | ac_cv_lib_tiff_TIFFIsBigEndian=no | 
|  | 28808 | fi | 
|  | 28809 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28810 | conftest$ac_exeext conftest.$ac_ext | 
|  | 28811 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28812 | fi | 
|  | 28813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5 | 
|  | 28814 | $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; } | 
|  | 28815 | if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then : | 
|  | 28816 | passed=`expr $passed + 1` | 
|  | 28817 | else | 
|  | 28818 | failed=`expr $failed + 1` | 
|  | 28819 | fi | 
|  | 28820 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28822 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28823 | if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28824 | $as_echo_n "(cached) " >&6 | 
|  | 28825 | else | 
|  | 28826 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28827 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28829 | /* end confdefs.h.  */ | 
|  | 28830 |  | 
|  | 28831 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28832 | Use char because int might match the return type of a GCC | 
|  | 28833 | builtin and then its argument prototype would still apply.  */ | 
|  | 28834 | #ifdef __cplusplus | 
|  | 28835 | extern "C" | 
|  | 28836 | #endif | 
|  | 28837 | char TIFFIsByteSwapped (); | 
|  | 28838 | int | 
|  | 28839 | main () | 
|  | 28840 | { | 
|  | 28841 | return TIFFIsByteSwapped (); | 
|  | 28842 | ; | 
|  | 28843 | return 0; | 
|  | 28844 | } | 
|  | 28845 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28846 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28847 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes | 
|  | 28848 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28849 | ac_cv_lib_tiff_TIFFIsByteSwapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28850 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28851 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28852 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28853 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28854 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28855 | { $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] | 28856 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28857 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28858 | passed=`expr $passed + 1` | 
|  | 28859 | else | 
|  | 28860 | failed=`expr $failed + 1` | 
|  | 28861 | fi | 
|  | 28862 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28864 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28865 | if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28866 | $as_echo_n "(cached) " >&6 | 
|  | 28867 | else | 
|  | 28868 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28869 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28871 | /* end confdefs.h.  */ | 
|  | 28872 |  | 
|  | 28873 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28874 | Use char because int might match the return type of a GCC | 
|  | 28875 | builtin and then its argument prototype would still apply.  */ | 
|  | 28876 | #ifdef __cplusplus | 
|  | 28877 | extern "C" | 
|  | 28878 | #endif | 
|  | 28879 | char TIFFReadRGBATile (); | 
|  | 28880 | int | 
|  | 28881 | main () | 
|  | 28882 | { | 
|  | 28883 | return TIFFReadRGBATile (); | 
|  | 28884 | ; | 
|  | 28885 | return 0; | 
|  | 28886 | } | 
|  | 28887 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28888 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28889 | ac_cv_lib_tiff_TIFFReadRGBATile=yes | 
|  | 28890 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28891 | ac_cv_lib_tiff_TIFFReadRGBATile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28892 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28893 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28894 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28895 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28896 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28897 | { $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] | 28898 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28899 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28900 | passed=`expr $passed + 1` | 
|  | 28901 | else | 
|  | 28902 | failed=`expr $failed + 1` | 
|  | 28903 | fi | 
|  | 28904 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28906 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28907 | if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28908 | $as_echo_n "(cached) " >&6 | 
|  | 28909 | else | 
|  | 28910 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28911 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28913 | /* end confdefs.h.  */ | 
|  | 28914 |  | 
|  | 28915 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28916 | Use char because int might match the return type of a GCC | 
|  | 28917 | builtin and then its argument prototype would still apply.  */ | 
|  | 28918 | #ifdef __cplusplus | 
|  | 28919 | extern "C" | 
|  | 28920 | #endif | 
|  | 28921 | char TIFFReadRGBAStrip (); | 
|  | 28922 | int | 
|  | 28923 | main () | 
|  | 28924 | { | 
|  | 28925 | return TIFFReadRGBAStrip (); | 
|  | 28926 | ; | 
|  | 28927 | return 0; | 
|  | 28928 | } | 
|  | 28929 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28930 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28931 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes | 
|  | 28932 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28933 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28934 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28935 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28936 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28937 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28938 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28939 | { $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] | 28940 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28941 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | passed=`expr $passed + 1` | 
|  | 28943 | else | 
|  | 28944 | failed=`expr $failed + 1` | 
|  | 28945 | fi | 
|  | 28946 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28947 | { $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] | 28948 | $as_echo_n "checking if TIFF package is complete... " >&6; } | 
|  | 28949 | if test $passed -gt 0; then | 
|  | 28950 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28952 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28953 | have_tiff='no (failed tests)' | 
|  | 28954 | else | 
|  | 28955 | TIFF_LIBS='-ltiff' | 
|  | 28956 | LIBS="$TIFF_LIBS $LIBS" | 
|  | 28957 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28958 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28959 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28961 | $as_echo "yes" >&6; } | 
|  | 28962 | have_tiff='yes' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28963 | for ac_header in tiffconf.h | 
|  | 28964 | do : | 
|  | 28965 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" | 
|  | 28966 | if test "x$ac_cv_header_tiffconf_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28967 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28968 | #define HAVE_TIFFCONF_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28969 | _ACEOF | 
|  | 28970 |  | 
|  | 28971 | fi | 
|  | 28972 |  | 
|  | 28973 | done | 
|  | 28974 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28975 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28976 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ | 
|  | 28977 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28978 | do : | 
|  | 28979 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 28980 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 28981 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28982 | cat >>confdefs.h <<_ACEOF | 
|  | 28983 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 28984 | _ACEOF | 
|  | 28985 |  | 
|  | 28986 | fi | 
|  | 28987 | done | 
|  | 28988 |  | 
|  | 28989 | fi | 
|  | 28990 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28992 | $as_echo "no" >&6; } | 
|  | 28993 | fi | 
|  | 28994 | fi | 
|  | 28995 | if test "$have_tiff" = 'yes'; then | 
|  | 28996 | TIFF_DELEGATE_TRUE= | 
|  | 28997 | TIFF_DELEGATE_FALSE='#' | 
|  | 28998 | else | 
|  | 28999 | TIFF_DELEGATE_TRUE='#' | 
|  | 29000 | TIFF_DELEGATE_FALSE= | 
|  | 29001 | fi | 
|  | 29002 |  | 
|  | 29003 |  | 
|  | 29004 |  | 
|  | 29005 |  | 
|  | 29006 | # | 
|  | 29007 | # Set Windows font directory. | 
|  | 29008 | # | 
|  | 29009 |  | 
|  | 29010 | # Check whether --with-windows-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29011 | if test "${with_windows_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29012 | withval=$with_windows_font_dir; with_windows_font_dir=$withval | 
|  | 29013 | else | 
|  | 29014 | with_windows_font_dir='' | 
|  | 29015 | fi | 
|  | 29016 |  | 
|  | 29017 | if test "$with_windows_font_dir" != '' ; then | 
|  | 29018 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " | 
|  | 29019 | fi | 
|  | 29020 |  | 
|  | 29021 |  | 
|  | 29022 | # | 
|  | 29023 | # Check for WMF delegate library. | 
|  | 29024 | # | 
|  | 29025 |  | 
|  | 29026 | # Check whether --with-wmf was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29027 | if test "${with_wmf+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29028 | withval=$with_wmf; with_wmf=$withval | 
|  | 29029 | else | 
| cristy | 8d63d1d | 2010-01-06 20:38:37 +0000 | [diff] [blame] | 29030 | with_wmf='yes' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29031 | fi | 
|  | 29032 |  | 
|  | 29033 |  | 
|  | 29034 | if test "$with_wmf" != 'yes'; then | 
|  | 29035 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " | 
|  | 29036 | fi | 
|  | 29037 |  | 
|  | 29038 | have_wmf='no' | 
|  | 29039 | WMF_LIBS='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29040 | if test "$with_wmf" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29042 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29044 | $as_echo_n "checking for WMF... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29046 | $as_echo "" >&6; } | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29047 | failed=0 | 
|  | 29048 | passed=0 | 
|  | 29049 | ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default" | 
|  | 29050 | if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then : | 
|  | 29051 | passed=`expr $passed + 1` | 
|  | 29052 | else | 
|  | 29053 | failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29054 | fi | 
|  | 29055 |  | 
|  | 29056 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5 | 
|  | 29058 | $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; } | 
|  | 29059 | if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29060 | $as_echo_n "(cached) " >&6 | 
|  | 29061 | else | 
|  | 29062 | ac_check_lib_save_LIBS=$LIBS | 
| cristy | 2265236 | 2010-04-02 23:22:31 +0000 | [diff] [blame] | 29063 | LIBS="-lwmf "-lwmflite" $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29065 | /* end confdefs.h.  */ | 
|  | 29066 |  | 
|  | 29067 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29068 | Use char because int might match the return type of a GCC | 
|  | 29069 | builtin and then its argument prototype would still apply.  */ | 
|  | 29070 | #ifdef __cplusplus | 
|  | 29071 | extern "C" | 
|  | 29072 | #endif | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29073 | char wmf_eps_function (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29074 | int | 
|  | 29075 | main () | 
|  | 29076 | { | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29077 | return wmf_eps_function (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29078 | ; | 
|  | 29079 | return 0; | 
|  | 29080 | } | 
|  | 29081 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29082 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29083 | ac_cv_lib_wmf_wmf_eps_function=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29084 | else | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29085 | ac_cv_lib_wmf_wmf_eps_function=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29086 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29087 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29088 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29089 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29090 | fi | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5 | 
|  | 29092 | $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; } | 
|  | 29093 | if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then : | 
|  | 29094 | passed=`expr $passed + 1` | 
|  | 29095 | else | 
|  | 29096 | failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29097 | fi | 
|  | 29098 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 | 
|  | 29100 | $as_echo_n "checking if WMF package is complete... " >&6; } | 
|  | 29101 | if test $passed -gt 0; then | 
|  | 29102 | if test $failed -gt 0; then | 
|  | 29103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
|  | 29104 | $as_echo "no -- some components failed test" >&6; } | 
|  | 29105 | have_wmf='no (failed tests)' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29106 | else | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29107 | WMF_LIBS='-lwmf -lwmflite' | 
|  | 29108 | LIBS="$WMF_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29109 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29110 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29111 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29113 | $as_echo "yes" >&6; } | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29114 | have_wmf='yes' | 
|  | 29115 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29116 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29118 | $as_echo "no" >&6; } | 
|  | 29119 | fi | 
|  | 29120 | fi | 
|  | 29121 | if test "$have_wmf" = 'yes'; then | 
|  | 29122 | WMF_DELEGATE_TRUE= | 
|  | 29123 | WMF_DELEGATE_FALSE='#' | 
|  | 29124 | else | 
|  | 29125 | WMF_DELEGATE_TRUE='#' | 
|  | 29126 | WMF_DELEGATE_FALSE= | 
|  | 29127 | fi | 
|  | 29128 |  | 
|  | 29129 |  | 
|  | 29130 |  | 
|  | 29131 |  | 
|  | 29132 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 29133 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29134 | # | 
|  | 29135 | # Check for XML delegate library. | 
|  | 29136 | # | 
|  | 29137 |  | 
|  | 29138 | # Check whether --with-xml was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29139 | if test "${with_xml+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29140 | withval=$with_xml; with_xml=$withval | 
|  | 29141 | else | 
|  | 29142 | with_xml=$have_x | 
|  | 29143 | fi | 
|  | 29144 |  | 
|  | 29145 |  | 
|  | 29146 | if test "$with_xml" != 'yes' ; then | 
|  | 29147 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " | 
|  | 29148 | fi | 
|  | 29149 |  | 
|  | 29150 | have_xml='no' | 
|  | 29151 | XML_LIBS='' | 
|  | 29152 | if test "$with_xml" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29154 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29156 | $as_echo_n "checking for XML... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29158 | $as_echo "" >&6; } | 
|  | 29159 | PERSIST_LDFLAGS=$LDFLAGS | 
|  | 29160 | PERSIST_CPPFLAGS=$CPPFLAGS | 
|  | 29161 | xml2_config='' | 
|  | 29162 | for ac_prog in xml2-config | 
|  | 29163 | do | 
|  | 29164 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 29165 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29167 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29168 | if test "${ac_cv_prog_xml2_config+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29169 | $as_echo_n "(cached) " >&6 | 
|  | 29170 | else | 
|  | 29171 | if test -n "$xml2_config"; then | 
|  | 29172 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. | 
|  | 29173 | else | 
|  | 29174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29175 | for as_dir in $PATH | 
|  | 29176 | do | 
|  | 29177 | IFS=$as_save_IFS | 
|  | 29178 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29179 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29181 | ac_cv_prog_xml2_config="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29182 | $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] | 29183 | break 2 | 
|  | 29184 | fi | 
|  | 29185 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29186 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29187 | IFS=$as_save_IFS | 
|  | 29188 |  | 
|  | 29189 | fi | 
|  | 29190 | fi | 
|  | 29191 | xml2_config=$ac_cv_prog_xml2_config | 
|  | 29192 | if test -n "$xml2_config"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29194 | $as_echo "$xml2_config" >&6; } | 
|  | 29195 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29197 | $as_echo "no" >&6; } | 
|  | 29198 | fi | 
|  | 29199 |  | 
|  | 29200 |  | 
|  | 29201 | test -n "$xml2_config" && break | 
|  | 29202 | done | 
|  | 29203 | if test -n "$xml2_config"; then | 
|  | 29204 | # Debian installs libxml headers under /usr/include/libxml2/libxml with | 
|  | 29205 | # the shared library installed under /usr/lib, whereas the package | 
|  | 29206 | # installs itself under $prefix/libxml and $prefix/lib. | 
|  | 29207 | xml2_prefix=`xml2-config --prefix` | 
|  | 29208 | if test -d "${xml2_prefix}/include/libxml2"; then | 
|  | 29209 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" | 
|  | 29210 | fi | 
|  | 29211 | if test "${xml2_prefix}" != '/usr'; then | 
|  | 29212 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" | 
|  | 29213 | fi | 
|  | 29214 | fi | 
|  | 29215 | failed=0 | 
|  | 29216 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29217 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" | 
|  | 29218 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29219 | passed=`expr $passed + 1` | 
|  | 29220 | else | 
|  | 29221 | failed=`expr $failed + 1` | 
|  | 29222 | fi | 
|  | 29223 |  | 
|  | 29224 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29226 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29227 | if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29228 | $as_echo_n "(cached) " >&6 | 
|  | 29229 | else | 
|  | 29230 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29231 | LIBS="-lxml2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29233 | /* end confdefs.h.  */ | 
|  | 29234 |  | 
|  | 29235 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29236 | Use char because int might match the return type of a GCC | 
|  | 29237 | builtin and then its argument prototype would still apply.  */ | 
|  | 29238 | #ifdef __cplusplus | 
|  | 29239 | extern "C" | 
|  | 29240 | #endif | 
|  | 29241 | char xmlParseExternalEntity (); | 
|  | 29242 | int | 
|  | 29243 | main () | 
|  | 29244 | { | 
|  | 29245 | return xmlParseExternalEntity (); | 
|  | 29246 | ; | 
|  | 29247 | return 0; | 
|  | 29248 | } | 
|  | 29249 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29250 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29251 | ac_cv_lib_xml2_xmlParseExternalEntity=yes | 
|  | 29252 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29253 | ac_cv_lib_xml2_xmlParseExternalEntity=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29254 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29255 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29256 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29257 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29258 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29260 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29261 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29262 | passed=`expr $passed + 1` | 
|  | 29263 | else | 
|  | 29264 | failed=`expr $failed + 1` | 
|  | 29265 | fi | 
|  | 29266 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29268 | $as_echo_n "checking if XML package is complete... " >&6; } | 
|  | 29269 | if test $passed -gt 0; then | 
|  | 29270 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29272 | $as_echo "no -- some components failed test" >&6; } | 
|  | 29273 | have_xml='no (failed tests)' | 
|  | 29274 | LDFLAGS="$PERSIST_LDFLAGS" | 
|  | 29275 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 29276 | else | 
|  | 29277 | XML_LIBS='-lxml2' | 
|  | 29278 | LIBS="$XML_LIBS $LIBS" | 
|  | 29279 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29280 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29281 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29283 | $as_echo "yes" >&6; } | 
|  | 29284 | have_xml='yes' | 
|  | 29285 | fi | 
|  | 29286 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29288 | $as_echo "no" >&6; } | 
|  | 29289 | fi | 
|  | 29290 | fi | 
|  | 29291 | if test "$have_xml" = 'yes'; then | 
|  | 29292 | XML_DELEGATE_TRUE= | 
|  | 29293 | XML_DELEGATE_FALSE='#' | 
|  | 29294 | else | 
|  | 29295 | XML_DELEGATE_TRUE='#' | 
|  | 29296 | XML_DELEGATE_FALSE= | 
|  | 29297 | fi | 
|  | 29298 |  | 
|  | 29299 |  | 
|  | 29300 |  | 
|  | 29301 |  | 
|  | 29302 | # Substitute compiler name to build/link PerlMagick | 
|  | 29303 | # | 
|  | 29304 |  | 
|  | 29305 |  | 
|  | 29306 | # | 
|  | 29307 | # Configure install Paths | 
|  | 29308 | # | 
|  | 29309 |  | 
|  | 29310 | # Subdirectory under lib to place ImageMagick lib files | 
|  | 29311 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" | 
|  | 29312 |  | 
|  | 29313 | cat >>confdefs.h <<_ACEOF | 
|  | 29314 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" | 
|  | 29315 | _ACEOF | 
|  | 29316 |  | 
|  | 29317 |  | 
|  | 29318 | # Path to ImageMagick bin directory | 
|  | 29319 | EXECUTABLE_PATH="${BIN_DIR}" | 
|  | 29320 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" | 
|  | 29321 | case "${build_os}" in | 
|  | 29322 | mingw* ) | 
|  | 29323 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` | 
|  | 29324 | ;; | 
|  | 29325 | esac | 
|  | 29326 |  | 
|  | 29327 | cat >>confdefs.h <<_ACEOF | 
|  | 29328 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" | 
|  | 29329 | _ACEOF | 
|  | 29330 |  | 
|  | 29331 |  | 
|  | 29332 |  | 
|  | 29333 | # Path to ImageMagick lib | 
|  | 29334 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" | 
|  | 29335 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" | 
|  | 29336 | case "${build_os}" in | 
|  | 29337 | mingw* ) | 
|  | 29338 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` | 
|  | 29339 | ;; | 
|  | 29340 | esac | 
|  | 29341 |  | 
|  | 29342 | cat >>confdefs.h <<_ACEOF | 
|  | 29343 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" | 
|  | 29344 | _ACEOF | 
|  | 29345 |  | 
|  | 29346 |  | 
|  | 29347 |  | 
|  | 29348 | # Subdirectory under lib to place ImageMagick configuration files | 
|  | 29349 | CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" | 
|  | 29350 |  | 
|  | 29351 | cat >>confdefs.h <<_ACEOF | 
|  | 29352 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" | 
|  | 29353 | _ACEOF | 
|  | 29354 |  | 
|  | 29355 | CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
|  | 29356 | DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
|  | 29357 | case "${build_os}" in | 
|  | 29358 | mingw* ) | 
|  | 29359 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` | 
|  | 29360 | ;; | 
|  | 29361 | esac | 
|  | 29362 |  | 
|  | 29363 | cat >>confdefs.h <<_ACEOF | 
|  | 29364 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" | 
|  | 29365 | _ACEOF | 
|  | 29366 |  | 
|  | 29367 |  | 
|  | 29368 |  | 
|  | 29369 | # | 
|  | 29370 | # Subdirectory under lib to place ImageMagick coder module files | 
|  | 29371 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" | 
|  | 29372 |  | 
|  | 29373 | cat >>confdefs.h <<_ACEOF | 
|  | 29374 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" | 
|  | 29375 | _ACEOF | 
|  | 29376 |  | 
|  | 29377 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" | 
|  | 29378 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" | 
|  | 29379 | case "${build_os}" in | 
|  | 29380 | mingw* ) | 
|  | 29381 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` | 
|  | 29382 | ;; | 
|  | 29383 | esac | 
|  | 29384 |  | 
|  | 29385 | cat >>confdefs.h <<_ACEOF | 
|  | 29386 | #define CODER_PATH "$DEFINE_CODER_PATH" | 
|  | 29387 | _ACEOF | 
|  | 29388 |  | 
|  | 29389 |  | 
|  | 29390 |  | 
|  | 29391 | # | 
|  | 29392 | # Subdirectory under lib to place ImageMagick filter module files | 
|  | 29393 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" | 
|  | 29394 |  | 
|  | 29395 | cat >>confdefs.h <<_ACEOF | 
|  | 29396 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" | 
|  | 29397 | _ACEOF | 
|  | 29398 |  | 
|  | 29399 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" | 
|  | 29400 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" | 
|  | 29401 | case "${build_os}" in | 
|  | 29402 | mingw* ) | 
|  | 29403 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` | 
|  | 29404 | ;; | 
|  | 29405 | esac | 
|  | 29406 |  | 
|  | 29407 | cat >>confdefs.h <<_ACEOF | 
|  | 29408 | #define FILTER_PATH "$DEFINE_FILTER_PATH" | 
|  | 29409 | _ACEOF | 
|  | 29410 |  | 
|  | 29411 |  | 
|  | 29412 |  | 
|  | 29413 | # | 
|  | 29414 | # Path to ImageMagick documentation files | 
|  | 29415 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" | 
|  | 29416 | DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" | 
|  | 29417 | DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" | 
|  | 29418 | case "${build_os}" in | 
|  | 29419 | mingw* ) | 
|  | 29420 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` | 
|  | 29421 | ;; | 
|  | 29422 | esac | 
|  | 29423 |  | 
|  | 29424 | cat >>confdefs.h <<_ACEOF | 
|  | 29425 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" | 
|  | 29426 | _ACEOF | 
|  | 29427 |  | 
|  | 29428 |  | 
|  | 29429 |  | 
|  | 29430 | # | 
|  | 29431 | # Path to ImageMagick share files | 
|  | 29432 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" | 
|  | 29433 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" | 
|  | 29434 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" | 
|  | 29435 | case "${build_os}" in | 
|  | 29436 | mingw* ) | 
|  | 29437 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` | 
|  | 29438 | ;; | 
|  | 29439 | esac | 
|  | 29440 |  | 
|  | 29441 | cat >>confdefs.h <<_ACEOF | 
|  | 29442 | #define SHARE_PATH "$DEFINE_SHARE_PATH" | 
|  | 29443 | _ACEOF | 
|  | 29444 |  | 
|  | 29445 |  | 
|  | 29446 |  | 
|  | 29447 | # Subdirectory under share to place ImageMagick configuration files | 
|  | 29448 | SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" | 
|  | 29449 |  | 
|  | 29450 | cat >>confdefs.h <<_ACEOF | 
|  | 29451 | #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH" | 
|  | 29452 | _ACEOF | 
|  | 29453 |  | 
|  | 29454 | SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" | 
|  | 29455 | DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" | 
|  | 29456 | case "${build_os}" in | 
|  | 29457 | mingw* ) | 
|  | 29458 | DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` | 
|  | 29459 | ;; | 
|  | 29460 | esac | 
|  | 29461 |  | 
|  | 29462 | cat >>confdefs.h <<_ACEOF | 
|  | 29463 | #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH" | 
|  | 29464 | _ACEOF | 
|  | 29465 |  | 
|  | 29466 |  | 
|  | 29467 |  | 
|  | 29468 | # | 
|  | 29469 | # program_transform_name is formed for use in a Makefile, so create a | 
|  | 29470 | # modified version for use in a shell script. | 
|  | 29471 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` | 
|  | 29472 |  | 
|  | 29473 | # Default delegate definitions | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29475 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29477 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29479 | $as_echo "" >&6; } | 
|  | 29480 | AutotraceDecodeDelegateDefault='autotrace' | 
|  | 29481 | AVIDecodeDelegateDefault='mplayer' | 
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 29482 | BlenderDecodeDelegateDefault='blender' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29483 | BZIPDelegateDefault='bzip2' | 
|  | 29484 | BrowseDelegateDefault='xdg-open' | 
|  | 29485 | CGMDecodeDelegateDefault='ralcgm' | 
|  | 29486 | CatDelegateDefault='cat' | 
|  | 29487 | DNGDecodeDelegateDefault='ufraw-batch' | 
|  | 29488 | GVCDecodeDelegateDefault='dot' | 
|  | 29489 | DVIDecodeDelegateDefault='dvips' | 
|  | 29490 | EchoDelegateDefault='echo' | 
|  | 29491 | EditorDelegateDefault='xterm' | 
|  | 29492 | FIGDecodeDelegateDefault='fig2dev' | 
|  | 29493 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` | 
|  | 29494 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` | 
|  | 29495 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` | 
|  | 29496 | GnuplotDecodeDelegateDefault='gnuplot' | 
|  | 29497 | HDRDecodeDelegateDefault='ra_pfm' | 
|  | 29498 | HPGLDecodeDelegateDefault='hp2xx' | 
|  | 29499 | HTMLDecodeDelegateDefault='html2ps' | 
|  | 29500 | ILBMDecodeDelegateDefault='ilbmtoppm' | 
|  | 29501 | ILBMEncodeDelegateDefault='ppmtoilbm' | 
|  | 29502 | LPDelegateDefault='lp' | 
|  | 29503 | LPRDelegateDefault='lpr' | 
|  | 29504 | LZWDecodeDelegateDefault='uncompress' | 
|  | 29505 | LZWEncodeDelegateDefault='compress' | 
|  | 29506 | LaunchDelegateDefault='gimp' | 
|  | 29507 | MANDelegateDefault='groff' | 
|  | 29508 | MPEGDecodeDelegateDefault='ffmpeg' | 
|  | 29509 | MPEGEncodeDelegateDefault='ffmpeg' | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 29510 | MrSIDDecodeDelegateDefault='mrsidgeodecode' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29511 | MVDelegateDefault='mv' | 
|  | 29512 | PCLDelegateDefault='pcl6' | 
|  | 29513 | PGPDecodeDelegateDefault='pgpv' | 
|  | 29514 | POVDelegateDefault='povray' | 
|  | 29515 | if test "$native_win32_build" = 'yes'; then | 
|  | 29516 | PSDelegateDefault='gswin32c' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29517 | elif test "$gslib_framework" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29518 | PSDelegateDefault='gsc' | 
|  | 29519 | else | 
|  | 29520 | PSDelegateDefault='gs' | 
|  | 29521 | fi | 
|  | 29522 | RLEEncodeDelegateDefault='rawtorle' | 
|  | 29523 | RMDelegateDefault='rm' | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 29524 | RSVGDecodeDelegateDefault='rsvg' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29525 | SCANDecodeDelegateDefault='scanimage' | 
|  | 29526 | TXTDelegateDefault='enscript' | 
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 29527 | UniconvertorDelegateDefault='uniconvertor' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29528 | WMFDecodeDelegateDefault='wmf2eps' | 
|  | 29529 | WWWDecodeDelegateDefault='curl' | 
|  | 29530 | XPSDelegateDefault='gxps' | 
|  | 29531 | ZipDelegateDefault='gzip' | 
|  | 29532 |  | 
|  | 29533 | # Search for delegates | 
|  | 29534 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29535 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29537 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29538 | if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29539 | $as_echo_n "(cached) " >&6 | 
|  | 29540 | else | 
|  | 29541 | case $AutotraceDecodeDelegate in | 
|  | 29542 | [\\/]* | ?:[\\/]*) | 
|  | 29543 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. | 
|  | 29544 | ;; | 
|  | 29545 | *) | 
|  | 29546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29547 | for as_dir in $PATH | 
|  | 29548 | do | 
|  | 29549 | IFS=$as_save_IFS | 
|  | 29550 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29551 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29553 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29554 | $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] | 29555 | break 2 | 
|  | 29556 | fi | 
|  | 29557 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29558 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29559 | IFS=$as_save_IFS | 
|  | 29560 |  | 
|  | 29561 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" | 
|  | 29562 | ;; | 
|  | 29563 | esac | 
|  | 29564 | fi | 
|  | 29565 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate | 
|  | 29566 | if test -n "$AutotraceDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29568 | $as_echo "$AutotraceDecodeDelegate" >&6; } | 
|  | 29569 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29571 | $as_echo "no" >&6; } | 
|  | 29572 | fi | 
|  | 29573 |  | 
|  | 29574 |  | 
|  | 29575 | # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29576 | set dummy "$AVIDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29578 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29579 | if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29580 | $as_echo_n "(cached) " >&6 | 
|  | 29581 | else | 
|  | 29582 | case $AVIDecodeDelegate in | 
|  | 29583 | [\\/]* | ?:[\\/]*) | 
|  | 29584 | ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path. | 
|  | 29585 | ;; | 
|  | 29586 | *) | 
|  | 29587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29588 | for as_dir in $PATH | 
|  | 29589 | do | 
|  | 29590 | IFS=$as_save_IFS | 
|  | 29591 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29592 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29594 | ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29595 | $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] | 29596 | break 2 | 
|  | 29597 | fi | 
|  | 29598 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29599 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29600 | IFS=$as_save_IFS | 
|  | 29601 |  | 
|  | 29602 | test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault"" | 
|  | 29603 | ;; | 
|  | 29604 | esac | 
|  | 29605 | fi | 
|  | 29606 | AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate | 
|  | 29607 | if test -n "$AVIDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29609 | $as_echo "$AVIDecodeDelegate" >&6; } | 
|  | 29610 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29612 | $as_echo "no" >&6; } | 
|  | 29613 | fi | 
|  | 29614 |  | 
|  | 29615 |  | 
|  | 29616 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29617 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29619 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29620 | if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29621 | $as_echo_n "(cached) " >&6 | 
|  | 29622 | else | 
|  | 29623 | case $BlenderDecodeDelegate in | 
|  | 29624 | [\\/]* | ?:[\\/]*) | 
|  | 29625 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. | 
|  | 29626 | ;; | 
|  | 29627 | *) | 
|  | 29628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29629 | for as_dir in $PATH | 
|  | 29630 | do | 
|  | 29631 | IFS=$as_save_IFS | 
|  | 29632 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29633 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29635 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29636 | $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] | 29637 | break 2 | 
|  | 29638 | fi | 
|  | 29639 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29640 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29641 | IFS=$as_save_IFS | 
|  | 29642 |  | 
|  | 29643 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" | 
|  | 29644 | ;; | 
|  | 29645 | esac | 
|  | 29646 | fi | 
|  | 29647 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate | 
|  | 29648 | if test -n "$BlenderDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29650 | $as_echo "$BlenderDecodeDelegate" >&6; } | 
|  | 29651 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29653 | $as_echo "no" >&6; } | 
|  | 29654 | fi | 
|  | 29655 |  | 
|  | 29656 |  | 
|  | 29657 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. | 
|  | 29658 | set dummy "$BZIPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29660 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29661 | if test "${ac_cv_path_BZIPDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29662 | $as_echo_n "(cached) " >&6 | 
|  | 29663 | else | 
|  | 29664 | case $BZIPDelegate in | 
|  | 29665 | [\\/]* | ?:[\\/]*) | 
|  | 29666 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. | 
|  | 29667 | ;; | 
|  | 29668 | *) | 
|  | 29669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29670 | for as_dir in $PATH | 
|  | 29671 | do | 
|  | 29672 | IFS=$as_save_IFS | 
|  | 29673 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29674 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29676 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29677 | $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] | 29678 | break 2 | 
|  | 29679 | fi | 
|  | 29680 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29681 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29682 | IFS=$as_save_IFS | 
|  | 29683 |  | 
|  | 29684 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" | 
|  | 29685 | ;; | 
|  | 29686 | esac | 
|  | 29687 | fi | 
|  | 29688 | BZIPDelegate=$ac_cv_path_BZIPDelegate | 
|  | 29689 | if test -n "$BZIPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29691 | $as_echo "$BZIPDelegate" >&6; } | 
|  | 29692 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29694 | $as_echo "no" >&6; } | 
|  | 29695 | fi | 
|  | 29696 |  | 
|  | 29697 |  | 
|  | 29698 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. | 
|  | 29699 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29701 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29702 | if test "${ac_cv_path_BrowseDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29703 | $as_echo_n "(cached) " >&6 | 
|  | 29704 | else | 
|  | 29705 | case $BrowseDelegate in | 
|  | 29706 | [\\/]* | ?:[\\/]*) | 
|  | 29707 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. | 
|  | 29708 | ;; | 
|  | 29709 | *) | 
|  | 29710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29711 | for as_dir in $PATH | 
|  | 29712 | do | 
|  | 29713 | IFS=$as_save_IFS | 
|  | 29714 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29715 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29717 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29718 | $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] | 29719 | break 2 | 
|  | 29720 | fi | 
|  | 29721 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29722 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29723 | IFS=$as_save_IFS | 
|  | 29724 |  | 
|  | 29725 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" | 
|  | 29726 | ;; | 
|  | 29727 | esac | 
|  | 29728 | fi | 
|  | 29729 | BrowseDelegate=$ac_cv_path_BrowseDelegate | 
|  | 29730 | if test -n "$BrowseDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29732 | $as_echo "$BrowseDelegate" >&6; } | 
|  | 29733 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29735 | $as_echo "no" >&6; } | 
|  | 29736 | fi | 
|  | 29737 |  | 
|  | 29738 |  | 
|  | 29739 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29740 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29742 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29743 | if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29744 | $as_echo_n "(cached) " >&6 | 
|  | 29745 | else | 
|  | 29746 | case $CGMDecodeDelegate in | 
|  | 29747 | [\\/]* | ?:[\\/]*) | 
|  | 29748 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. | 
|  | 29749 | ;; | 
|  | 29750 | *) | 
|  | 29751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29752 | for as_dir in $PATH | 
|  | 29753 | do | 
|  | 29754 | IFS=$as_save_IFS | 
|  | 29755 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29756 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29758 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29759 | $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] | 29760 | break 2 | 
|  | 29761 | fi | 
|  | 29762 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29763 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29764 | IFS=$as_save_IFS | 
|  | 29765 |  | 
|  | 29766 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" | 
|  | 29767 | ;; | 
|  | 29768 | esac | 
|  | 29769 | fi | 
|  | 29770 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate | 
|  | 29771 | if test -n "$CGMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29773 | $as_echo "$CGMDecodeDelegate" >&6; } | 
|  | 29774 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29776 | $as_echo "no" >&6; } | 
|  | 29777 | fi | 
|  | 29778 |  | 
|  | 29779 |  | 
|  | 29780 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. | 
|  | 29781 | set dummy "$CatDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29783 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29784 | if test "${ac_cv_path_CatDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29785 | $as_echo_n "(cached) " >&6 | 
|  | 29786 | else | 
|  | 29787 | case $CatDelegate in | 
|  | 29788 | [\\/]* | ?:[\\/]*) | 
|  | 29789 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. | 
|  | 29790 | ;; | 
|  | 29791 | *) | 
|  | 29792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29793 | for as_dir in $PATH | 
|  | 29794 | do | 
|  | 29795 | IFS=$as_save_IFS | 
|  | 29796 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29797 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29799 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29800 | $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] | 29801 | break 2 | 
|  | 29802 | fi | 
|  | 29803 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29804 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29805 | IFS=$as_save_IFS | 
|  | 29806 |  | 
|  | 29807 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" | 
|  | 29808 | ;; | 
|  | 29809 | esac | 
|  | 29810 | fi | 
|  | 29811 | CatDelegate=$ac_cv_path_CatDelegate | 
|  | 29812 | if test -n "$CatDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29814 | $as_echo "$CatDelegate" >&6; } | 
|  | 29815 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29817 | $as_echo "no" >&6; } | 
|  | 29818 | fi | 
|  | 29819 |  | 
|  | 29820 |  | 
|  | 29821 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29822 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29824 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29825 | if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29826 | $as_echo_n "(cached) " >&6 | 
|  | 29827 | else | 
|  | 29828 | case $DNGDecodeDelegate in | 
|  | 29829 | [\\/]* | ?:[\\/]*) | 
|  | 29830 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. | 
|  | 29831 | ;; | 
|  | 29832 | *) | 
|  | 29833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29834 | for as_dir in $PATH | 
|  | 29835 | do | 
|  | 29836 | IFS=$as_save_IFS | 
|  | 29837 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29838 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29840 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29841 | $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] | 29842 | break 2 | 
|  | 29843 | fi | 
|  | 29844 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29845 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29846 | IFS=$as_save_IFS | 
|  | 29847 |  | 
|  | 29848 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" | 
|  | 29849 | ;; | 
|  | 29850 | esac | 
|  | 29851 | fi | 
|  | 29852 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate | 
|  | 29853 | if test -n "$DNGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29855 | $as_echo "$DNGDecodeDelegate" >&6; } | 
|  | 29856 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29858 | $as_echo "no" >&6; } | 
|  | 29859 | fi | 
|  | 29860 |  | 
|  | 29861 |  | 
|  | 29862 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29863 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29865 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29866 | if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29867 | $as_echo_n "(cached) " >&6 | 
|  | 29868 | else | 
|  | 29869 | case $GVCDecodeDelegate in | 
|  | 29870 | [\\/]* | ?:[\\/]*) | 
|  | 29871 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. | 
|  | 29872 | ;; | 
|  | 29873 | *) | 
|  | 29874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29875 | for as_dir in $PATH | 
|  | 29876 | do | 
|  | 29877 | IFS=$as_save_IFS | 
|  | 29878 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29879 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29881 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29882 | $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] | 29883 | break 2 | 
|  | 29884 | fi | 
|  | 29885 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29886 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29887 | IFS=$as_save_IFS | 
|  | 29888 |  | 
|  | 29889 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" | 
|  | 29890 | ;; | 
|  | 29891 | esac | 
|  | 29892 | fi | 
|  | 29893 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate | 
|  | 29894 | if test -n "$GVCDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29896 | $as_echo "$GVCDecodeDelegate" >&6; } | 
|  | 29897 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29899 | $as_echo "no" >&6; } | 
|  | 29900 | fi | 
|  | 29901 |  | 
|  | 29902 |  | 
|  | 29903 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 29904 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29906 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29907 | if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29908 | $as_echo_n "(cached) " >&6 | 
|  | 29909 | else | 
|  | 29910 | case $DVIDecodeDelegate in | 
|  | 29911 | [\\/]* | ?:[\\/]*) | 
|  | 29912 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. | 
|  | 29913 | ;; | 
|  | 29914 | *) | 
|  | 29915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29916 | for as_dir in $PATH | 
|  | 29917 | do | 
|  | 29918 | IFS=$as_save_IFS | 
|  | 29919 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29920 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29922 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29923 | $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] | 29924 | break 2 | 
|  | 29925 | fi | 
|  | 29926 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29927 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29928 | IFS=$as_save_IFS | 
|  | 29929 |  | 
|  | 29930 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" | 
|  | 29931 | ;; | 
|  | 29932 | esac | 
|  | 29933 | fi | 
|  | 29934 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate | 
|  | 29935 | if test -n "$DVIDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29937 | $as_echo "$DVIDecodeDelegate" >&6; } | 
|  | 29938 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29940 | $as_echo "no" >&6; } | 
|  | 29941 | fi | 
|  | 29942 |  | 
|  | 29943 |  | 
|  | 29944 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. | 
|  | 29945 | set dummy "$EchoDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29947 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29948 | if test "${ac_cv_path_EchoDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29949 | $as_echo_n "(cached) " >&6 | 
|  | 29950 | else | 
|  | 29951 | case $EchoDelegate in | 
|  | 29952 | [\\/]* | ?:[\\/]*) | 
|  | 29953 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. | 
|  | 29954 | ;; | 
|  | 29955 | *) | 
|  | 29956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29957 | for as_dir in $PATH | 
|  | 29958 | do | 
|  | 29959 | IFS=$as_save_IFS | 
|  | 29960 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29961 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 29963 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29964 | $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] | 29965 | break 2 | 
|  | 29966 | fi | 
|  | 29967 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29968 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29969 | IFS=$as_save_IFS | 
|  | 29970 |  | 
|  | 29971 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" | 
|  | 29972 | ;; | 
|  | 29973 | esac | 
|  | 29974 | fi | 
|  | 29975 | EchoDelegate=$ac_cv_path_EchoDelegate | 
|  | 29976 | if test -n "$EchoDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29978 | $as_echo "$EchoDelegate" >&6; } | 
|  | 29979 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29981 | $as_echo "no" >&6; } | 
|  | 29982 | fi | 
|  | 29983 |  | 
|  | 29984 |  | 
|  | 29985 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. | 
|  | 29986 | set dummy "$EditorDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29988 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29989 | if test "${ac_cv_path_EditorDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29990 | $as_echo_n "(cached) " >&6 | 
|  | 29991 | else | 
|  | 29992 | case $EditorDelegate in | 
|  | 29993 | [\\/]* | ?:[\\/]*) | 
|  | 29994 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. | 
|  | 29995 | ;; | 
|  | 29996 | *) | 
|  | 29997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 29998 | for as_dir in $PATH | 
|  | 29999 | do | 
|  | 30000 | IFS=$as_save_IFS | 
|  | 30001 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30002 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30004 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30005 | $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] | 30006 | break 2 | 
|  | 30007 | fi | 
|  | 30008 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30009 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30010 | IFS=$as_save_IFS | 
|  | 30011 |  | 
|  | 30012 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" | 
|  | 30013 | ;; | 
|  | 30014 | esac | 
|  | 30015 | fi | 
|  | 30016 | EditorDelegate=$ac_cv_path_EditorDelegate | 
|  | 30017 | if test -n "$EditorDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30019 | $as_echo "$EditorDelegate" >&6; } | 
|  | 30020 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30022 | $as_echo "no" >&6; } | 
|  | 30023 | fi | 
|  | 30024 |  | 
|  | 30025 |  | 
|  | 30026 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30027 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30029 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30030 | if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30031 | $as_echo_n "(cached) " >&6 | 
|  | 30032 | else | 
|  | 30033 | case $FIGDecodeDelegate in | 
|  | 30034 | [\\/]* | ?:[\\/]*) | 
|  | 30035 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. | 
|  | 30036 | ;; | 
|  | 30037 | *) | 
|  | 30038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30039 | for as_dir in $PATH | 
|  | 30040 | do | 
|  | 30041 | IFS=$as_save_IFS | 
|  | 30042 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30043 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30045 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30046 | $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] | 30047 | break 2 | 
|  | 30048 | fi | 
|  | 30049 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30050 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30051 | IFS=$as_save_IFS | 
|  | 30052 |  | 
|  | 30053 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" | 
|  | 30054 | ;; | 
|  | 30055 | esac | 
|  | 30056 | fi | 
|  | 30057 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate | 
|  | 30058 | if test -n "$FIGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30060 | $as_echo "$FIGDecodeDelegate" >&6; } | 
|  | 30061 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30063 | $as_echo "no" >&6; } | 
|  | 30064 | fi | 
|  | 30065 |  | 
|  | 30066 |  | 
|  | 30067 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. | 
|  | 30068 | set dummy "$ConvertDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30070 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30071 | if test "${ac_cv_path_ConvertDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30072 | $as_echo_n "(cached) " >&6 | 
|  | 30073 | else | 
|  | 30074 | case $ConvertDelegate in | 
|  | 30075 | [\\/]* | ?:[\\/]*) | 
|  | 30076 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. | 
|  | 30077 | ;; | 
|  | 30078 | *) | 
|  | 30079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30080 | for as_dir in $PATH | 
|  | 30081 | do | 
|  | 30082 | IFS=$as_save_IFS | 
|  | 30083 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30084 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30086 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30087 | $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] | 30088 | break 2 | 
|  | 30089 | fi | 
|  | 30090 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30091 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30092 | IFS=$as_save_IFS | 
|  | 30093 |  | 
|  | 30094 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" | 
|  | 30095 | ;; | 
|  | 30096 | esac | 
|  | 30097 | fi | 
|  | 30098 | ConvertDelegate=$ac_cv_path_ConvertDelegate | 
|  | 30099 | if test -n "$ConvertDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30101 | $as_echo "$ConvertDelegate" >&6; } | 
|  | 30102 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30104 | $as_echo "no" >&6; } | 
|  | 30105 | fi | 
|  | 30106 |  | 
|  | 30107 |  | 
|  | 30108 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. | 
|  | 30109 | set dummy "$DisplayDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30111 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30112 | if test "${ac_cv_path_DisplayDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30113 | $as_echo_n "(cached) " >&6 | 
|  | 30114 | else | 
|  | 30115 | case $DisplayDelegate in | 
|  | 30116 | [\\/]* | ?:[\\/]*) | 
|  | 30117 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. | 
|  | 30118 | ;; | 
|  | 30119 | *) | 
|  | 30120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30121 | for as_dir in $PATH | 
|  | 30122 | do | 
|  | 30123 | IFS=$as_save_IFS | 
|  | 30124 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30125 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30127 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30128 | $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] | 30129 | break 2 | 
|  | 30130 | fi | 
|  | 30131 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30132 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30133 | IFS=$as_save_IFS | 
|  | 30134 |  | 
|  | 30135 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" | 
|  | 30136 | ;; | 
|  | 30137 | esac | 
|  | 30138 | fi | 
|  | 30139 | DisplayDelegate=$ac_cv_path_DisplayDelegate | 
|  | 30140 | if test -n "$DisplayDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30142 | $as_echo "$DisplayDelegate" >&6; } | 
|  | 30143 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30145 | $as_echo "no" >&6; } | 
|  | 30146 | fi | 
|  | 30147 |  | 
|  | 30148 |  | 
|  | 30149 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. | 
|  | 30150 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30152 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30153 | if test "${ac_cv_path_MogrifyDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30154 | $as_echo_n "(cached) " >&6 | 
|  | 30155 | else | 
|  | 30156 | case $MogrifyDelegate in | 
|  | 30157 | [\\/]* | ?:[\\/]*) | 
|  | 30158 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. | 
|  | 30159 | ;; | 
|  | 30160 | *) | 
|  | 30161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30162 | for as_dir in $PATH | 
|  | 30163 | do | 
|  | 30164 | IFS=$as_save_IFS | 
|  | 30165 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30166 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30168 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30169 | $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] | 30170 | break 2 | 
|  | 30171 | fi | 
|  | 30172 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30173 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30174 | IFS=$as_save_IFS | 
|  | 30175 |  | 
|  | 30176 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" | 
|  | 30177 | ;; | 
|  | 30178 | esac | 
|  | 30179 | fi | 
|  | 30180 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate | 
|  | 30181 | if test -n "$MogrifyDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30183 | $as_echo "$MogrifyDelegate" >&6; } | 
|  | 30184 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30186 | $as_echo "no" >&6; } | 
|  | 30187 | fi | 
|  | 30188 |  | 
|  | 30189 |  | 
|  | 30190 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30191 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30193 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30194 | if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30195 | $as_echo_n "(cached) " >&6 | 
|  | 30196 | else | 
|  | 30197 | case $GnuplotDecodeDelegate in | 
|  | 30198 | [\\/]* | ?:[\\/]*) | 
|  | 30199 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. | 
|  | 30200 | ;; | 
|  | 30201 | *) | 
|  | 30202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30203 | for as_dir in $PATH | 
|  | 30204 | do | 
|  | 30205 | IFS=$as_save_IFS | 
|  | 30206 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30207 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30209 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30210 | $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] | 30211 | break 2 | 
|  | 30212 | fi | 
|  | 30213 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30214 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30215 | IFS=$as_save_IFS | 
|  | 30216 |  | 
|  | 30217 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" | 
|  | 30218 | ;; | 
|  | 30219 | esac | 
|  | 30220 | fi | 
|  | 30221 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate | 
|  | 30222 | if test -n "$GnuplotDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30224 | $as_echo "$GnuplotDecodeDelegate" >&6; } | 
|  | 30225 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30227 | $as_echo "no" >&6; } | 
|  | 30228 | fi | 
|  | 30229 |  | 
|  | 30230 |  | 
|  | 30231 | # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30232 | set dummy "$HDRDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30234 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30235 | if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30236 | $as_echo_n "(cached) " >&6 | 
|  | 30237 | else | 
|  | 30238 | case $HDRDecodeDelegate in | 
|  | 30239 | [\\/]* | ?:[\\/]*) | 
|  | 30240 | ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path. | 
|  | 30241 | ;; | 
|  | 30242 | *) | 
|  | 30243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30244 | for as_dir in $PATH | 
|  | 30245 | do | 
|  | 30246 | IFS=$as_save_IFS | 
|  | 30247 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30248 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30250 | ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30251 | $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] | 30252 | break 2 | 
|  | 30253 | fi | 
|  | 30254 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30255 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30256 | IFS=$as_save_IFS | 
|  | 30257 |  | 
|  | 30258 | test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault"" | 
|  | 30259 | ;; | 
|  | 30260 | esac | 
|  | 30261 | fi | 
|  | 30262 | HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate | 
|  | 30263 | if test -n "$HDRDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30265 | $as_echo "$HDRDecodeDelegate" >&6; } | 
|  | 30266 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30268 | $as_echo "no" >&6; } | 
|  | 30269 | fi | 
|  | 30270 |  | 
|  | 30271 |  | 
|  | 30272 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30273 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30275 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30276 | if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30277 | $as_echo_n "(cached) " >&6 | 
|  | 30278 | else | 
|  | 30279 | case $HPGLDecodeDelegate in | 
|  | 30280 | [\\/]* | ?:[\\/]*) | 
|  | 30281 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. | 
|  | 30282 | ;; | 
|  | 30283 | *) | 
|  | 30284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30285 | for as_dir in $PATH | 
|  | 30286 | do | 
|  | 30287 | IFS=$as_save_IFS | 
|  | 30288 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30289 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30291 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30292 | $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] | 30293 | break 2 | 
|  | 30294 | fi | 
|  | 30295 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30296 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30297 | IFS=$as_save_IFS | 
|  | 30298 |  | 
|  | 30299 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" | 
|  | 30300 | ;; | 
|  | 30301 | esac | 
|  | 30302 | fi | 
|  | 30303 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate | 
|  | 30304 | if test -n "$HPGLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30306 | $as_echo "$HPGLDecodeDelegate" >&6; } | 
|  | 30307 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30309 | $as_echo "no" >&6; } | 
|  | 30310 | fi | 
|  | 30311 |  | 
|  | 30312 |  | 
|  | 30313 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30314 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30316 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30317 | if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30318 | $as_echo_n "(cached) " >&6 | 
|  | 30319 | else | 
|  | 30320 | case $HTMLDecodeDelegate in | 
|  | 30321 | [\\/]* | ?:[\\/]*) | 
|  | 30322 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. | 
|  | 30323 | ;; | 
|  | 30324 | *) | 
|  | 30325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30326 | for as_dir in $PATH | 
|  | 30327 | do | 
|  | 30328 | IFS=$as_save_IFS | 
|  | 30329 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30330 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30332 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30333 | $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] | 30334 | break 2 | 
|  | 30335 | fi | 
|  | 30336 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30337 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30338 | IFS=$as_save_IFS | 
|  | 30339 |  | 
|  | 30340 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" | 
|  | 30341 | ;; | 
|  | 30342 | esac | 
|  | 30343 | fi | 
|  | 30344 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate | 
|  | 30345 | if test -n "$HTMLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30347 | $as_echo "$HTMLDecodeDelegate" >&6; } | 
|  | 30348 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30350 | $as_echo "no" >&6; } | 
|  | 30351 | fi | 
|  | 30352 |  | 
|  | 30353 |  | 
|  | 30354 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30355 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30357 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30358 | if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30359 | $as_echo_n "(cached) " >&6 | 
|  | 30360 | else | 
|  | 30361 | case $ILBMDecodeDelegate in | 
|  | 30362 | [\\/]* | ?:[\\/]*) | 
|  | 30363 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. | 
|  | 30364 | ;; | 
|  | 30365 | *) | 
|  | 30366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30367 | for as_dir in $PATH | 
|  | 30368 | do | 
|  | 30369 | IFS=$as_save_IFS | 
|  | 30370 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30371 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30373 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30374 | $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] | 30375 | break 2 | 
|  | 30376 | fi | 
|  | 30377 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30378 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30379 | IFS=$as_save_IFS | 
|  | 30380 |  | 
|  | 30381 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" | 
|  | 30382 | ;; | 
|  | 30383 | esac | 
|  | 30384 | fi | 
|  | 30385 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate | 
|  | 30386 | if test -n "$ILBMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30388 | $as_echo "$ILBMDecodeDelegate" >&6; } | 
|  | 30389 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30391 | $as_echo "no" >&6; } | 
|  | 30392 | fi | 
|  | 30393 |  | 
|  | 30394 |  | 
|  | 30395 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 30396 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30398 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30399 | if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30400 | $as_echo_n "(cached) " >&6 | 
|  | 30401 | else | 
|  | 30402 | case $ILBMEncodeDelegate in | 
|  | 30403 | [\\/]* | ?:[\\/]*) | 
|  | 30404 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. | 
|  | 30405 | ;; | 
|  | 30406 | *) | 
|  | 30407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30408 | for as_dir in $PATH | 
|  | 30409 | do | 
|  | 30410 | IFS=$as_save_IFS | 
|  | 30411 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30412 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30414 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30415 | $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] | 30416 | break 2 | 
|  | 30417 | fi | 
|  | 30418 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30419 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30420 | IFS=$as_save_IFS | 
|  | 30421 |  | 
|  | 30422 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" | 
|  | 30423 | ;; | 
|  | 30424 | esac | 
|  | 30425 | fi | 
|  | 30426 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate | 
|  | 30427 | if test -n "$ILBMEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30429 | $as_echo "$ILBMEncodeDelegate" >&6; } | 
|  | 30430 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30432 | $as_echo "no" >&6; } | 
|  | 30433 | fi | 
|  | 30434 |  | 
|  | 30435 |  | 
|  | 30436 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. | 
|  | 30437 | set dummy "$LPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30439 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30440 | if test "${ac_cv_path_LPDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30441 | $as_echo_n "(cached) " >&6 | 
|  | 30442 | else | 
|  | 30443 | case $LPDelegate in | 
|  | 30444 | [\\/]* | ?:[\\/]*) | 
|  | 30445 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. | 
|  | 30446 | ;; | 
|  | 30447 | *) | 
|  | 30448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30449 | for as_dir in $PATH | 
|  | 30450 | do | 
|  | 30451 | IFS=$as_save_IFS | 
|  | 30452 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30453 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30455 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30456 | $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] | 30457 | break 2 | 
|  | 30458 | fi | 
|  | 30459 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30460 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30461 | IFS=$as_save_IFS | 
|  | 30462 |  | 
|  | 30463 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" | 
|  | 30464 | ;; | 
|  | 30465 | esac | 
|  | 30466 | fi | 
|  | 30467 | LPDelegate=$ac_cv_path_LPDelegate | 
|  | 30468 | if test -n "$LPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30470 | $as_echo "$LPDelegate" >&6; } | 
|  | 30471 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30473 | $as_echo "no" >&6; } | 
|  | 30474 | fi | 
|  | 30475 |  | 
|  | 30476 |  | 
|  | 30477 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. | 
|  | 30478 | set dummy "$LPRDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30480 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30481 | if test "${ac_cv_path_LPRDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30482 | $as_echo_n "(cached) " >&6 | 
|  | 30483 | else | 
|  | 30484 | case $LPRDelegate in | 
|  | 30485 | [\\/]* | ?:[\\/]*) | 
|  | 30486 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. | 
|  | 30487 | ;; | 
|  | 30488 | *) | 
|  | 30489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30490 | for as_dir in $PATH | 
|  | 30491 | do | 
|  | 30492 | IFS=$as_save_IFS | 
|  | 30493 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30494 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30496 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30497 | $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] | 30498 | break 2 | 
|  | 30499 | fi | 
|  | 30500 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30501 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30502 | IFS=$as_save_IFS | 
|  | 30503 |  | 
|  | 30504 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" | 
|  | 30505 | ;; | 
|  | 30506 | esac | 
|  | 30507 | fi | 
|  | 30508 | LPRDelegate=$ac_cv_path_LPRDelegate | 
|  | 30509 | if test -n "$LPRDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30511 | $as_echo "$LPRDelegate" >&6; } | 
|  | 30512 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30514 | $as_echo "no" >&6; } | 
|  | 30515 | fi | 
|  | 30516 |  | 
|  | 30517 |  | 
|  | 30518 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30519 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30521 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30522 | if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30523 | $as_echo_n "(cached) " >&6 | 
|  | 30524 | else | 
|  | 30525 | case $LZWDecodeDelegate in | 
|  | 30526 | [\\/]* | ?:[\\/]*) | 
|  | 30527 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. | 
|  | 30528 | ;; | 
|  | 30529 | *) | 
|  | 30530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30531 | for as_dir in $PATH | 
|  | 30532 | do | 
|  | 30533 | IFS=$as_save_IFS | 
|  | 30534 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30535 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30537 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30538 | $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] | 30539 | break 2 | 
|  | 30540 | fi | 
|  | 30541 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30542 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30543 | IFS=$as_save_IFS | 
|  | 30544 |  | 
|  | 30545 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" | 
|  | 30546 | ;; | 
|  | 30547 | esac | 
|  | 30548 | fi | 
|  | 30549 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate | 
|  | 30550 | if test -n "$LZWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30552 | $as_echo "$LZWDecodeDelegate" >&6; } | 
|  | 30553 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30555 | $as_echo "no" >&6; } | 
|  | 30556 | fi | 
|  | 30557 |  | 
|  | 30558 |  | 
|  | 30559 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 30560 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30562 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30563 | if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30564 | $as_echo_n "(cached) " >&6 | 
|  | 30565 | else | 
|  | 30566 | case $LZWEncodeDelegate in | 
|  | 30567 | [\\/]* | ?:[\\/]*) | 
|  | 30568 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. | 
|  | 30569 | ;; | 
|  | 30570 | *) | 
|  | 30571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30572 | for as_dir in $PATH | 
|  | 30573 | do | 
|  | 30574 | IFS=$as_save_IFS | 
|  | 30575 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30576 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30578 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30579 | $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] | 30580 | break 2 | 
|  | 30581 | fi | 
|  | 30582 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30583 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30584 | IFS=$as_save_IFS | 
|  | 30585 |  | 
|  | 30586 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" | 
|  | 30587 | ;; | 
|  | 30588 | esac | 
|  | 30589 | fi | 
|  | 30590 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate | 
|  | 30591 | if test -n "$LZWEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30593 | $as_echo "$LZWEncodeDelegate" >&6; } | 
|  | 30594 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30596 | $as_echo "no" >&6; } | 
|  | 30597 | fi | 
|  | 30598 |  | 
|  | 30599 |  | 
|  | 30600 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. | 
|  | 30601 | set dummy "$LaunchDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30603 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30604 | if test "${ac_cv_path_LaunchDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30605 | $as_echo_n "(cached) " >&6 | 
|  | 30606 | else | 
|  | 30607 | case $LaunchDelegate in | 
|  | 30608 | [\\/]* | ?:[\\/]*) | 
|  | 30609 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. | 
|  | 30610 | ;; | 
|  | 30611 | *) | 
|  | 30612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30613 | for as_dir in $PATH | 
|  | 30614 | do | 
|  | 30615 | IFS=$as_save_IFS | 
|  | 30616 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30617 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30619 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30620 | $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] | 30621 | break 2 | 
|  | 30622 | fi | 
|  | 30623 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30624 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30625 | IFS=$as_save_IFS | 
|  | 30626 |  | 
|  | 30627 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" | 
|  | 30628 | ;; | 
|  | 30629 | esac | 
|  | 30630 | fi | 
|  | 30631 | LaunchDelegate=$ac_cv_path_LaunchDelegate | 
|  | 30632 | if test -n "$LaunchDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30634 | $as_echo "$LaunchDelegate" >&6; } | 
|  | 30635 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30637 | $as_echo "no" >&6; } | 
|  | 30638 | fi | 
|  | 30639 |  | 
|  | 30640 |  | 
|  | 30641 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. | 
|  | 30642 | set dummy "$MANDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30644 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30645 | if test "${ac_cv_path_MANDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30646 | $as_echo_n "(cached) " >&6 | 
|  | 30647 | else | 
|  | 30648 | case $MANDelegate in | 
|  | 30649 | [\\/]* | ?:[\\/]*) | 
|  | 30650 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. | 
|  | 30651 | ;; | 
|  | 30652 | *) | 
|  | 30653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30654 | for as_dir in $PATH | 
|  | 30655 | do | 
|  | 30656 | IFS=$as_save_IFS | 
|  | 30657 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30658 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30660 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30661 | $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] | 30662 | break 2 | 
|  | 30663 | fi | 
|  | 30664 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30665 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30666 | IFS=$as_save_IFS | 
|  | 30667 |  | 
|  | 30668 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" | 
|  | 30669 | ;; | 
|  | 30670 | esac | 
|  | 30671 | fi | 
|  | 30672 | MANDelegate=$ac_cv_path_MANDelegate | 
|  | 30673 | if test -n "$MANDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30675 | $as_echo "$MANDelegate" >&6; } | 
|  | 30676 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30678 | $as_echo "no" >&6; } | 
|  | 30679 | fi | 
|  | 30680 |  | 
|  | 30681 |  | 
|  | 30682 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30683 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30685 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30686 | if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30687 | $as_echo_n "(cached) " >&6 | 
|  | 30688 | else | 
|  | 30689 | case $MPEGDecodeDelegate in | 
|  | 30690 | [\\/]* | ?:[\\/]*) | 
|  | 30691 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. | 
|  | 30692 | ;; | 
|  | 30693 | *) | 
|  | 30694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30695 | for as_dir in $PATH | 
|  | 30696 | do | 
|  | 30697 | IFS=$as_save_IFS | 
|  | 30698 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30699 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30701 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30702 | $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] | 30703 | break 2 | 
|  | 30704 | fi | 
|  | 30705 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30706 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30707 | IFS=$as_save_IFS | 
|  | 30708 |  | 
|  | 30709 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" | 
|  | 30710 | ;; | 
|  | 30711 | esac | 
|  | 30712 | fi | 
|  | 30713 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate | 
|  | 30714 | if test -n "$MPEGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30716 | $as_echo "$MPEGDecodeDelegate" >&6; } | 
|  | 30717 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30719 | $as_echo "no" >&6; } | 
|  | 30720 | fi | 
|  | 30721 |  | 
|  | 30722 |  | 
|  | 30723 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 30724 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30726 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30727 | if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30728 | $as_echo_n "(cached) " >&6 | 
|  | 30729 | else | 
|  | 30730 | case $MPEGEncodeDelegate in | 
|  | 30731 | [\\/]* | ?:[\\/]*) | 
|  | 30732 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. | 
|  | 30733 | ;; | 
|  | 30734 | *) | 
|  | 30735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30736 | for as_dir in $PATH | 
|  | 30737 | do | 
|  | 30738 | IFS=$as_save_IFS | 
|  | 30739 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30740 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30742 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30743 | $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] | 30744 | break 2 | 
|  | 30745 | fi | 
|  | 30746 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30747 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30748 | IFS=$as_save_IFS | 
|  | 30749 |  | 
|  | 30750 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" | 
|  | 30751 | ;; | 
|  | 30752 | esac | 
|  | 30753 | fi | 
|  | 30754 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate | 
|  | 30755 | if test -n "$MPEGEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30757 | $as_echo "$MPEGEncodeDelegate" >&6; } | 
|  | 30758 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30760 | $as_echo "no" >&6; } | 
|  | 30761 | fi | 
|  | 30762 |  | 
|  | 30763 |  | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 30764 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30765 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 | 
|  | 30766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 30767 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 30768 | if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then : | 
|  | 30769 | $as_echo_n "(cached) " >&6 | 
|  | 30770 | else | 
|  | 30771 | case $MrSIDDecodeDelegate in | 
|  | 30772 | [\\/]* | ?:[\\/]*) | 
|  | 30773 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. | 
|  | 30774 | ;; | 
|  | 30775 | *) | 
|  | 30776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30777 | for as_dir in $PATH | 
|  | 30778 | do | 
|  | 30779 | IFS=$as_save_IFS | 
|  | 30780 | test -z "$as_dir" && as_dir=. | 
|  | 30781 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 30782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30783 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 30784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 30785 | break 2 | 
|  | 30786 | fi | 
|  | 30787 | done | 
|  | 30788 | done | 
|  | 30789 | IFS=$as_save_IFS | 
|  | 30790 |  | 
|  | 30791 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" | 
|  | 30792 | ;; | 
|  | 30793 | esac | 
|  | 30794 | fi | 
|  | 30795 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate | 
|  | 30796 | if test -n "$MrSIDDecodeDelegate"; then | 
|  | 30797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 | 
|  | 30798 | $as_echo "$MrSIDDecodeDelegate" >&6; } | 
|  | 30799 | else | 
|  | 30800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 30801 | $as_echo "no" >&6; } | 
|  | 30802 | fi | 
|  | 30803 |  | 
|  | 30804 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30805 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. | 
|  | 30806 | set dummy "$MVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30808 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30809 | if test "${ac_cv_path_MVDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30810 | $as_echo_n "(cached) " >&6 | 
|  | 30811 | else | 
|  | 30812 | case $MVDelegate in | 
|  | 30813 | [\\/]* | ?:[\\/]*) | 
|  | 30814 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. | 
|  | 30815 | ;; | 
|  | 30816 | *) | 
|  | 30817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30818 | for as_dir in $PATH | 
|  | 30819 | do | 
|  | 30820 | IFS=$as_save_IFS | 
|  | 30821 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30822 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30824 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30825 | $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] | 30826 | break 2 | 
|  | 30827 | fi | 
|  | 30828 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30829 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30830 | IFS=$as_save_IFS | 
|  | 30831 |  | 
|  | 30832 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" | 
|  | 30833 | ;; | 
|  | 30834 | esac | 
|  | 30835 | fi | 
|  | 30836 | MVDelegate=$ac_cv_path_MVDelegate | 
|  | 30837 | if test -n "$MVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30839 | $as_echo "$MVDelegate" >&6; } | 
|  | 30840 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30842 | $as_echo "no" >&6; } | 
|  | 30843 | fi | 
|  | 30844 |  | 
|  | 30845 |  | 
|  | 30846 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. | 
|  | 30847 | set dummy "$PCLDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30849 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30850 | if test "${ac_cv_path_PCLDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30851 | $as_echo_n "(cached) " >&6 | 
|  | 30852 | else | 
|  | 30853 | case $PCLDelegate in | 
|  | 30854 | [\\/]* | ?:[\\/]*) | 
|  | 30855 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. | 
|  | 30856 | ;; | 
|  | 30857 | *) | 
|  | 30858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30859 | for as_dir in $PATH | 
|  | 30860 | do | 
|  | 30861 | IFS=$as_save_IFS | 
|  | 30862 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30863 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30865 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30866 | $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] | 30867 | break 2 | 
|  | 30868 | fi | 
|  | 30869 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30870 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30871 | IFS=$as_save_IFS | 
|  | 30872 |  | 
|  | 30873 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" | 
|  | 30874 | ;; | 
|  | 30875 | esac | 
|  | 30876 | fi | 
|  | 30877 | PCLDelegate=$ac_cv_path_PCLDelegate | 
|  | 30878 | if test -n "$PCLDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30880 | $as_echo "$PCLDelegate" >&6; } | 
|  | 30881 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30883 | $as_echo "no" >&6; } | 
|  | 30884 | fi | 
|  | 30885 |  | 
|  | 30886 |  | 
|  | 30887 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30888 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30890 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30891 | if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30892 | $as_echo_n "(cached) " >&6 | 
|  | 30893 | else | 
|  | 30894 | case $PGPDecodeDelegate in | 
|  | 30895 | [\\/]* | ?:[\\/]*) | 
|  | 30896 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. | 
|  | 30897 | ;; | 
|  | 30898 | *) | 
|  | 30899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30900 | for as_dir in $PATH | 
|  | 30901 | do | 
|  | 30902 | IFS=$as_save_IFS | 
|  | 30903 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30904 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30906 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30907 | $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] | 30908 | break 2 | 
|  | 30909 | fi | 
|  | 30910 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30911 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30912 | IFS=$as_save_IFS | 
|  | 30913 |  | 
|  | 30914 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" | 
|  | 30915 | ;; | 
|  | 30916 | esac | 
|  | 30917 | fi | 
|  | 30918 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate | 
|  | 30919 | if test -n "$PGPDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30921 | $as_echo "$PGPDecodeDelegate" >&6; } | 
|  | 30922 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30924 | $as_echo "no" >&6; } | 
|  | 30925 | fi | 
|  | 30926 |  | 
|  | 30927 |  | 
|  | 30928 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. | 
|  | 30929 | set dummy "$POVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30931 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30932 | if test "${ac_cv_path_POVDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30933 | $as_echo_n "(cached) " >&6 | 
|  | 30934 | else | 
|  | 30935 | case $POVDelegate in | 
|  | 30936 | [\\/]* | ?:[\\/]*) | 
|  | 30937 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. | 
|  | 30938 | ;; | 
|  | 30939 | *) | 
|  | 30940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30941 | for as_dir in $PATH | 
|  | 30942 | do | 
|  | 30943 | IFS=$as_save_IFS | 
|  | 30944 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30945 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30947 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30948 | $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] | 30949 | break 2 | 
|  | 30950 | fi | 
|  | 30951 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30952 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30953 | IFS=$as_save_IFS | 
|  | 30954 |  | 
|  | 30955 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" | 
|  | 30956 | ;; | 
|  | 30957 | esac | 
|  | 30958 | fi | 
|  | 30959 | POVDelegate=$ac_cv_path_POVDelegate | 
|  | 30960 | if test -n "$POVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30962 | $as_echo "$POVDelegate" >&6; } | 
|  | 30963 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30965 | $as_echo "no" >&6; } | 
|  | 30966 | fi | 
|  | 30967 |  | 
|  | 30968 |  | 
|  | 30969 | for ac_prog in gsx gsc "$PSDelegateDefault" | 
|  | 30970 | do | 
|  | 30971 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 30972 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30974 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30975 | if test "${ac_cv_path_PSDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30976 | $as_echo_n "(cached) " >&6 | 
|  | 30977 | else | 
|  | 30978 | case $PSDelegate in | 
|  | 30979 | [\\/]* | ?:[\\/]*) | 
|  | 30980 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. | 
|  | 30981 | ;; | 
|  | 30982 | *) | 
|  | 30983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30984 | for as_dir in $PATH | 
|  | 30985 | do | 
|  | 30986 | IFS=$as_save_IFS | 
|  | 30987 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30988 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30990 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30991 | $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] | 30992 | break 2 | 
|  | 30993 | fi | 
|  | 30994 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30995 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30996 | IFS=$as_save_IFS | 
|  | 30997 |  | 
|  | 30998 | ;; | 
|  | 30999 | esac | 
|  | 31000 | fi | 
|  | 31001 | PSDelegate=$ac_cv_path_PSDelegate | 
|  | 31002 | if test -n "$PSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31004 | $as_echo "$PSDelegate" >&6; } | 
|  | 31005 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31007 | $as_echo "no" >&6; } | 
|  | 31008 | fi | 
|  | 31009 |  | 
|  | 31010 |  | 
|  | 31011 | test -n "$PSDelegate" && break | 
|  | 31012 | done | 
|  | 31013 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" | 
|  | 31014 |  | 
|  | 31015 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 31016 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31018 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31019 | if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31020 | $as_echo_n "(cached) " >&6 | 
|  | 31021 | else | 
|  | 31022 | case $RLEEncodeDelegate in | 
|  | 31023 | [\\/]* | ?:[\\/]*) | 
|  | 31024 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. | 
|  | 31025 | ;; | 
|  | 31026 | *) | 
|  | 31027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31028 | for as_dir in $PATH | 
|  | 31029 | do | 
|  | 31030 | IFS=$as_save_IFS | 
|  | 31031 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31032 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31034 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31035 | $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] | 31036 | break 2 | 
|  | 31037 | fi | 
|  | 31038 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31039 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31040 | IFS=$as_save_IFS | 
|  | 31041 |  | 
|  | 31042 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" | 
|  | 31043 | ;; | 
|  | 31044 | esac | 
|  | 31045 | fi | 
|  | 31046 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate | 
|  | 31047 | if test -n "$RLEEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31049 | $as_echo "$RLEEncodeDelegate" >&6; } | 
|  | 31050 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31052 | $as_echo "no" >&6; } | 
|  | 31053 | fi | 
|  | 31054 |  | 
|  | 31055 |  | 
|  | 31056 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. | 
|  | 31057 | set dummy "$RMDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31059 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31060 | if test "${ac_cv_path_RMDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31061 | $as_echo_n "(cached) " >&6 | 
|  | 31062 | else | 
|  | 31063 | case $RMDelegate in | 
|  | 31064 | [\\/]* | ?:[\\/]*) | 
|  | 31065 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. | 
|  | 31066 | ;; | 
|  | 31067 | *) | 
|  | 31068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31069 | for as_dir in $PATH | 
|  | 31070 | do | 
|  | 31071 | IFS=$as_save_IFS | 
|  | 31072 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31073 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31075 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31076 | $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] | 31077 | break 2 | 
|  | 31078 | fi | 
|  | 31079 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31080 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31081 | IFS=$as_save_IFS | 
|  | 31082 |  | 
|  | 31083 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" | 
|  | 31084 | ;; | 
|  | 31085 | esac | 
|  | 31086 | fi | 
|  | 31087 | RMDelegate=$ac_cv_path_RMDelegate | 
|  | 31088 | if test -n "$RMDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31090 | $as_echo "$RMDelegate" >&6; } | 
|  | 31091 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31093 | $as_echo "no" >&6; } | 
|  | 31094 | fi | 
|  | 31095 |  | 
|  | 31096 |  | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 31097 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31098 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 | 
|  | 31099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 31100 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 31101 | if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then : | 
|  | 31102 | $as_echo_n "(cached) " >&6 | 
|  | 31103 | else | 
|  | 31104 | case $RSVGDecodeDelegate in | 
|  | 31105 | [\\/]* | ?:[\\/]*) | 
|  | 31106 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. | 
|  | 31107 | ;; | 
|  | 31108 | *) | 
|  | 31109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31110 | for as_dir in $PATH | 
|  | 31111 | do | 
|  | 31112 | IFS=$as_save_IFS | 
|  | 31113 | test -z "$as_dir" && as_dir=. | 
|  | 31114 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 31115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31116 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 31117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 31118 | break 2 | 
|  | 31119 | fi | 
|  | 31120 | done | 
|  | 31121 | done | 
|  | 31122 | IFS=$as_save_IFS | 
|  | 31123 |  | 
|  | 31124 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" | 
|  | 31125 | ;; | 
|  | 31126 | esac | 
|  | 31127 | fi | 
|  | 31128 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate | 
|  | 31129 | if test -n "$RSVGDecodeDelegate"; then | 
|  | 31130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 | 
|  | 31131 | $as_echo "$RSVGDecodeDelegate" >&6; } | 
|  | 31132 | else | 
|  | 31133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 31134 | $as_echo "no" >&6; } | 
|  | 31135 | fi | 
|  | 31136 |  | 
|  | 31137 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31138 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31139 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31141 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31142 | if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31143 | $as_echo_n "(cached) " >&6 | 
|  | 31144 | else | 
|  | 31145 | case $SCANDecodeDelegate in | 
|  | 31146 | [\\/]* | ?:[\\/]*) | 
|  | 31147 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. | 
|  | 31148 | ;; | 
|  | 31149 | *) | 
|  | 31150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31151 | for as_dir in $PATH | 
|  | 31152 | do | 
|  | 31153 | IFS=$as_save_IFS | 
|  | 31154 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31155 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31157 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31158 | $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] | 31159 | break 2 | 
|  | 31160 | fi | 
|  | 31161 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31162 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31163 | IFS=$as_save_IFS | 
|  | 31164 |  | 
|  | 31165 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" | 
|  | 31166 | ;; | 
|  | 31167 | esac | 
|  | 31168 | fi | 
|  | 31169 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate | 
|  | 31170 | if test -n "$SCANDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31172 | $as_echo "$SCANDecodeDelegate" >&6; } | 
|  | 31173 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31175 | $as_echo "no" >&6; } | 
|  | 31176 | fi | 
|  | 31177 |  | 
|  | 31178 |  | 
|  | 31179 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. | 
|  | 31180 | set dummy "$TXTDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31182 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31183 | if test "${ac_cv_path_TXTDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31184 | $as_echo_n "(cached) " >&6 | 
|  | 31185 | else | 
|  | 31186 | case $TXTDelegate in | 
|  | 31187 | [\\/]* | ?:[\\/]*) | 
|  | 31188 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. | 
|  | 31189 | ;; | 
|  | 31190 | *) | 
|  | 31191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31192 | for as_dir in $PATH | 
|  | 31193 | do | 
|  | 31194 | IFS=$as_save_IFS | 
|  | 31195 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31196 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31198 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31199 | $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] | 31200 | break 2 | 
|  | 31201 | fi | 
|  | 31202 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31203 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31204 | IFS=$as_save_IFS | 
|  | 31205 |  | 
|  | 31206 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" | 
|  | 31207 | ;; | 
|  | 31208 | esac | 
|  | 31209 | fi | 
|  | 31210 | TXTDelegate=$ac_cv_path_TXTDelegate | 
|  | 31211 | if test -n "$TXTDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31213 | $as_echo "$TXTDelegate" >&6; } | 
|  | 31214 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31216 | $as_echo "no" >&6; } | 
|  | 31217 | fi | 
|  | 31218 |  | 
|  | 31219 |  | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 31220 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. | 
|  | 31221 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 | 
|  | 31222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 31223 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 31224 | if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then : | 
|  | 31225 | $as_echo_n "(cached) " >&6 | 
|  | 31226 | else | 
|  | 31227 | case $UniconvertorDelegate in | 
|  | 31228 | [\\/]* | ?:[\\/]*) | 
|  | 31229 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. | 
|  | 31230 | ;; | 
|  | 31231 | *) | 
|  | 31232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31233 | for as_dir in $PATH | 
|  | 31234 | do | 
|  | 31235 | IFS=$as_save_IFS | 
|  | 31236 | test -z "$as_dir" && as_dir=. | 
|  | 31237 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 31238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31239 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 31240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 31241 | break 2 | 
|  | 31242 | fi | 
|  | 31243 | done | 
|  | 31244 | done | 
|  | 31245 | IFS=$as_save_IFS | 
|  | 31246 |  | 
|  | 31247 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" | 
|  | 31248 | ;; | 
|  | 31249 | esac | 
|  | 31250 | fi | 
|  | 31251 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate | 
|  | 31252 | if test -n "$UniconvertorDelegate"; then | 
|  | 31253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 | 
|  | 31254 | $as_echo "$UniconvertorDelegate" >&6; } | 
|  | 31255 | else | 
|  | 31256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 31257 | $as_echo "no" >&6; } | 
|  | 31258 | fi | 
|  | 31259 |  | 
|  | 31260 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31261 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31262 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31264 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31265 | if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31266 | $as_echo_n "(cached) " >&6 | 
|  | 31267 | else | 
|  | 31268 | case $WMFDecodeDelegate in | 
|  | 31269 | [\\/]* | ?:[\\/]*) | 
|  | 31270 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. | 
|  | 31271 | ;; | 
|  | 31272 | *) | 
|  | 31273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31274 | for as_dir in $PATH | 
|  | 31275 | do | 
|  | 31276 | IFS=$as_save_IFS | 
|  | 31277 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31278 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31280 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31281 | $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] | 31282 | break 2 | 
|  | 31283 | fi | 
|  | 31284 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31285 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31286 | IFS=$as_save_IFS | 
|  | 31287 |  | 
|  | 31288 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" | 
|  | 31289 | ;; | 
|  | 31290 | esac | 
|  | 31291 | fi | 
|  | 31292 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate | 
|  | 31293 | if test -n "$WMFDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31295 | $as_echo "$WMFDecodeDelegate" >&6; } | 
|  | 31296 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31298 | $as_echo "no" >&6; } | 
|  | 31299 | fi | 
|  | 31300 |  | 
|  | 31301 |  | 
|  | 31302 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31303 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31305 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31306 | if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31307 | $as_echo_n "(cached) " >&6 | 
|  | 31308 | else | 
|  | 31309 | case $WWWDecodeDelegate in | 
|  | 31310 | [\\/]* | ?:[\\/]*) | 
|  | 31311 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. | 
|  | 31312 | ;; | 
|  | 31313 | *) | 
|  | 31314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31315 | for as_dir in $PATH | 
|  | 31316 | do | 
|  | 31317 | IFS=$as_save_IFS | 
|  | 31318 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31319 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31321 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31322 | $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] | 31323 | break 2 | 
|  | 31324 | fi | 
|  | 31325 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31326 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31327 | IFS=$as_save_IFS | 
|  | 31328 |  | 
|  | 31329 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" | 
|  | 31330 | ;; | 
|  | 31331 | esac | 
|  | 31332 | fi | 
|  | 31333 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate | 
|  | 31334 | if test -n "$WWWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31336 | $as_echo "$WWWDecodeDelegate" >&6; } | 
|  | 31337 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31339 | $as_echo "no" >&6; } | 
|  | 31340 | fi | 
|  | 31341 |  | 
|  | 31342 |  | 
|  | 31343 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. | 
|  | 31344 | set dummy "$XPSDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31346 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31347 | if test "${ac_cv_path_XPSDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31348 | $as_echo_n "(cached) " >&6 | 
|  | 31349 | else | 
|  | 31350 | case $XPSDelegate in | 
|  | 31351 | [\\/]* | ?:[\\/]*) | 
|  | 31352 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. | 
|  | 31353 | ;; | 
|  | 31354 | *) | 
|  | 31355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31356 | for as_dir in $PATH | 
|  | 31357 | do | 
|  | 31358 | IFS=$as_save_IFS | 
|  | 31359 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31360 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31362 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31363 | $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] | 31364 | break 2 | 
|  | 31365 | fi | 
|  | 31366 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31367 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31368 | IFS=$as_save_IFS | 
|  | 31369 |  | 
|  | 31370 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" | 
|  | 31371 | ;; | 
|  | 31372 | esac | 
|  | 31373 | fi | 
|  | 31374 | XPSDelegate=$ac_cv_path_XPSDelegate | 
|  | 31375 | if test -n "$XPSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31377 | $as_echo "$XPSDelegate" >&6; } | 
|  | 31378 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31380 | $as_echo "no" >&6; } | 
|  | 31381 | fi | 
|  | 31382 |  | 
|  | 31383 |  | 
|  | 31384 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. | 
|  | 31385 | set dummy "$ZipDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31387 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31388 | if test "${ac_cv_path_ZipDelegate+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31389 | $as_echo_n "(cached) " >&6 | 
|  | 31390 | else | 
|  | 31391 | case $ZipDelegate in | 
|  | 31392 | [\\/]* | ?:[\\/]*) | 
|  | 31393 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. | 
|  | 31394 | ;; | 
|  | 31395 | *) | 
|  | 31396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31397 | for as_dir in $PATH | 
|  | 31398 | do | 
|  | 31399 | IFS=$as_save_IFS | 
|  | 31400 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31401 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31403 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31404 | $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] | 31405 | break 2 | 
|  | 31406 | fi | 
|  | 31407 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31408 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31409 | IFS=$as_save_IFS | 
|  | 31410 |  | 
|  | 31411 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" | 
|  | 31412 | ;; | 
|  | 31413 | esac | 
|  | 31414 | fi | 
|  | 31415 | ZipDelegate=$ac_cv_path_ZipDelegate | 
|  | 31416 | if test -n "$ZipDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31418 | $as_echo "$ZipDelegate" >&6; } | 
|  | 31419 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31421 | $as_echo "no" >&6; } | 
|  | 31422 | fi | 
|  | 31423 |  | 
|  | 31424 |  | 
|  | 31425 |  | 
|  | 31426 | # Prefer lpr to lp; lp needs options tacked on. | 
|  | 31427 | if test "$LPRDelegate" != no; then | 
|  | 31428 | PrintDelegate="$LPRDelegate" | 
|  | 31429 | else | 
|  | 31430 | PrintDelegate="$LPDelegate -c -s" | 
|  | 31431 | fi | 
|  | 31432 |  | 
|  | 31433 |  | 
|  | 31434 | # Installed ImageMagick utiltity paths | 
|  | 31435 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" | 
|  | 31436 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" | 
|  | 31437 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" | 
|  | 31438 |  | 
|  | 31439 | # Set delegate booleans | 
|  | 31440 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi | 
|  | 31441 | have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi | 
|  | 31442 | have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi | 
|  | 31443 | have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi | 
|  | 31444 | have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi | 
|  | 31445 | have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31446 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31447 | have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi | 
|  | 31448 | have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi | 
|  | 31449 | have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi | 
|  | 31450 | have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi | 
|  | 31451 | have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi | 
|  | 31452 |  | 
|  | 31453 | # | 
|  | 31454 | # Test for font directories | 
|  | 31455 | # | 
|  | 31456 | type_include_files='' | 
|  | 31457 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 31458 | # Dejavu fonts. | 
|  | 31459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 | 
|  | 31460 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } | 
|  | 31461 | dejavu_font_dir='' | 
|  | 31462 | if test "${with_dejavu_font_dir}" != 'default'; then | 
|  | 31463 | dejavu_font_dir="${with_dejavu_font_dir}/" | 
|  | 31464 | else | 
|  | 31465 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do | 
|  | 31466 | if test -f "${font_dir}DejaVuSerif.ttf"; then | 
|  | 31467 | dejavu_font_dir="${font_dir}" | 
|  | 31468 | break 1 | 
|  | 31469 | fi | 
|  | 31470 | done | 
|  | 31471 | fi | 
|  | 31472 | if test "${dejavu_font_dir}x" != 'x'; then | 
|  | 31473 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' | 
|  | 31474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 | 
|  | 31475 | $as_echo "$dejavu_font_dir" >&6; } | 
|  | 31476 | else | 
|  | 31477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 | 
|  | 31478 | $as_echo "not found!" >&6; }; | 
|  | 31479 | fi | 
|  | 31480 |  | 
|  | 31481 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31482 | # Windows | 
|  | 31483 | windows_font_dir='' | 
|  | 31484 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then | 
|  | 31485 | windows_font_dir="${with_windows_font_dir}/" | 
|  | 31486 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 31487 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31488 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then | 
|  | 31489 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' | 
|  | 31490 | fi | 
|  | 31491 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then | 
|  | 31492 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' | 
|  | 31493 | fi | 
|  | 31494 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then | 
|  | 31495 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' | 
|  | 31496 | fi | 
|  | 31497 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 31498 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31499 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' | 
|  | 31500 | fi | 
|  | 31501 |  | 
|  | 31502 |  | 
|  | 31503 | # Ghostscript | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31505 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } | 
|  | 31506 | ghostscript_font_dir='' | 
|  | 31507 | if test "${with_gs_font_dir}" != 'default'; then | 
|  | 31508 | ghostscript_font_dir="${with_gs_font_dir}/" | 
|  | 31509 | else | 
|  | 31510 | if test "${native_win32_build}" = 'yes'; then | 
|  | 31511 | # Native Windows Build | 
|  | 31512 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do | 
|  | 31513 | if test -f "${font_dir}a010013l.pfb"; then | 
|  | 31514 | ghostscript_font_dir="$font_dir" | 
|  | 31515 | break 1 | 
|  | 31516 | fi | 
|  | 31517 | done | 
|  | 31518 | if test "${PSDelegate}" != 'gswin32c'; then | 
|  | 31519 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" | 
|  | 31520 | fi | 
|  | 31521 | else | 
|  | 31522 | # Linux / Mac OS X / Unix Build | 
|  | 31523 | 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 | 
|  | 31524 | if test -f "${font_dir}a010013l.pfb"; then | 
|  | 31525 | ghostscript_font_dir="${font_dir}" | 
|  | 31526 | break 1 | 
|  | 31527 | fi | 
|  | 31528 | done | 
|  | 31529 | if test "${ghostscript_font_dir}x" = 'x'; then | 
|  | 31530 | if test "$PSDelegate" != 'gs'; then | 
|  | 31531 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" | 
|  | 31532 | fi | 
|  | 31533 | fi | 
|  | 31534 | fi | 
|  | 31535 | fi | 
|  | 31536 | if test "${ghostscript_font_dir}x" != 'x'; then | 
|  | 31537 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31539 | $as_echo "$ghostscript_font_dir" >&6; } | 
|  | 31540 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31542 | $as_echo "not found!" >&6; }; | 
|  | 31543 | fi | 
|  | 31544 |  | 
|  | 31545 | case "${build_os}" in | 
|  | 31546 | mingw* ) | 
|  | 31547 | PSDelegate=`$WinPathScript "$PSDelegate" 1` | 
|  | 31548 | ;; | 
|  | 31549 | esac | 
|  | 31550 |  | 
|  | 31551 |  | 
|  | 31552 |  | 
|  | 31553 | # | 
|  | 31554 | # Handle case where user doesn't want frozen paths | 
|  | 31555 | # | 
|  | 31556 | if test "$with_frozenpaths" != 'yes'; then | 
|  | 31557 | # Re-set delegate definitions to default (no paths) | 
|  | 31558 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" | 
|  | 31559 | AVIDecodeDelegate="$AVIDecodeDelegateDefault" | 
|  | 31560 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" | 
|  | 31561 | BZIPDelegate="$BZIPDelegateDefault" | 
|  | 31562 | BrowseDelegate="$BrowseDelegateDefault" | 
|  | 31563 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" | 
|  | 31564 | CatDelegate="$CatDelegateDefault" | 
|  | 31565 | ConvertDelegate="$ConvertDelegateDefault" | 
|  | 31566 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" | 
|  | 31567 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" | 
|  | 31568 | EchoDelegate="$EchoDelegateDefault" | 
|  | 31569 | EditorDelegate="$EditorDelegateDefault" | 
|  | 31570 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" | 
|  | 31571 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" | 
|  | 31572 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" | 
|  | 31573 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" | 
|  | 31574 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" | 
|  | 31575 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" | 
|  | 31576 | LPDelegate="$LPDelegateDefault" | 
|  | 31577 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" | 
|  | 31578 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" | 
|  | 31579 | LaunchDelegate="$LaunchDelegateDefault" | 
|  | 31580 | MANDelegate="$MANDelegateDefault" | 
|  | 31581 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" | 
|  | 31582 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31583 | MogrifyDelegate="$MogrifyDelegateDefault" | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31584 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" | 
|  | 31585 | MVDelegate="$MVDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31586 | PCLDelegate="$PCLDelegateDefault" | 
|  | 31587 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" | 
|  | 31588 | POVDelegate="$POVDelegateDefault" | 
|  | 31589 | PSDelegate="$PSDelegateDefault" | 
|  | 31590 | HDRDecodeDelegate="$HDRDecodeDelegateDefault" | 
|  | 31591 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" | 
|  | 31592 | RMDelegate="$RMDelegateDefault" | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 31593 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31594 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" | 
|  | 31595 | ShowImageDelegate="$ShowImageDelegateDefault" | 
|  | 31596 | TXTDelegate="$TXTDelegateDefault" | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 31597 | UniconvertorDelegate="$UniconvertorDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31598 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" | 
|  | 31599 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" | 
|  | 31600 | XPSDelegate="$XPSDelegateDefault" | 
|  | 31601 | ZipDelegate="$ZipDelegateDefault" | 
|  | 31602 | fi | 
|  | 31603 |  | 
|  | 31604 | # Delegate substitutions | 
|  | 31605 |  | 
|  | 31606 |  | 
|  | 31607 |  | 
|  | 31608 |  | 
|  | 31609 |  | 
|  | 31610 |  | 
|  | 31611 |  | 
|  | 31612 |  | 
|  | 31613 |  | 
|  | 31614 |  | 
|  | 31615 |  | 
|  | 31616 |  | 
|  | 31617 |  | 
|  | 31618 |  | 
|  | 31619 |  | 
|  | 31620 |  | 
|  | 31621 |  | 
|  | 31622 |  | 
|  | 31623 |  | 
|  | 31624 |  | 
|  | 31625 |  | 
|  | 31626 |  | 
|  | 31627 |  | 
|  | 31628 |  | 
|  | 31629 |  | 
|  | 31630 |  | 
|  | 31631 |  | 
|  | 31632 |  | 
|  | 31633 |  | 
|  | 31634 |  | 
|  | 31635 |  | 
|  | 31636 |  | 
|  | 31637 |  | 
|  | 31638 |  | 
|  | 31639 |  | 
|  | 31640 |  | 
|  | 31641 |  | 
|  | 31642 |  | 
|  | 31643 |  | 
|  | 31644 |  | 
|  | 31645 |  | 
|  | 31646 |  | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31647 |  | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 31648 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31649 | # | 
|  | 31650 | # RPM support. | 
|  | 31651 | # | 
|  | 31652 | RPM='' | 
|  | 31653 | for ac_prog in gnutar gtar tar | 
|  | 31654 | do | 
|  | 31655 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31656 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31658 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31659 | if test "${ac_cv_prog_TAR+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31660 | $as_echo_n "(cached) " >&6 | 
|  | 31661 | else | 
|  | 31662 | if test -n "$TAR"; then | 
|  | 31663 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | 
|  | 31664 | else | 
|  | 31665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31666 | for as_dir in $PATH | 
|  | 31667 | do | 
|  | 31668 | IFS=$as_save_IFS | 
|  | 31669 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31670 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31672 | ac_cv_prog_TAR="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31673 | $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] | 31674 | break 2 | 
|  | 31675 | fi | 
|  | 31676 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31677 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31678 | IFS=$as_save_IFS | 
|  | 31679 |  | 
|  | 31680 | fi | 
|  | 31681 | fi | 
|  | 31682 | TAR=$ac_cv_prog_TAR | 
|  | 31683 | if test -n "$TAR"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31685 | $as_echo "$TAR" >&6; } | 
|  | 31686 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31688 | $as_echo "no" >&6; } | 
|  | 31689 | fi | 
|  | 31690 |  | 
|  | 31691 |  | 
|  | 31692 | test -n "$TAR" && break | 
|  | 31693 | done | 
|  | 31694 |  | 
|  | 31695 | for ac_prog in perl | 
|  | 31696 | do | 
|  | 31697 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31698 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31700 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31701 | if test "${ac_cv_prog_PERL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31702 | $as_echo_n "(cached) " >&6 | 
|  | 31703 | else | 
|  | 31704 | if test -n "$PERL"; then | 
|  | 31705 | ac_cv_prog_PERL="$PERL" # Let the user override the test. | 
|  | 31706 | else | 
|  | 31707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31708 | for as_dir in $PATH | 
|  | 31709 | do | 
|  | 31710 | IFS=$as_save_IFS | 
|  | 31711 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31712 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31714 | ac_cv_prog_PERL="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31715 | $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] | 31716 | break 2 | 
|  | 31717 | fi | 
|  | 31718 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31719 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31720 | IFS=$as_save_IFS | 
|  | 31721 |  | 
|  | 31722 | fi | 
|  | 31723 | fi | 
|  | 31724 | PERL=$ac_cv_prog_PERL | 
|  | 31725 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31727 | $as_echo "$PERL" >&6; } | 
|  | 31728 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31730 | $as_echo "no" >&6; } | 
|  | 31731 | fi | 
|  | 31732 |  | 
|  | 31733 |  | 
|  | 31734 | test -n "$PERL" && break | 
|  | 31735 | done | 
|  | 31736 |  | 
|  | 31737 | for ac_prog in rpmbuild rpm | 
|  | 31738 | do | 
|  | 31739 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31740 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31742 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31743 | if test "${ac_cv_prog_RPM+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31744 | $as_echo_n "(cached) " >&6 | 
|  | 31745 | else | 
|  | 31746 | if test -n "$RPM"; then | 
|  | 31747 | ac_cv_prog_RPM="$RPM" # Let the user override the test. | 
|  | 31748 | else | 
|  | 31749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31750 | for as_dir in $PATH | 
|  | 31751 | do | 
|  | 31752 | IFS=$as_save_IFS | 
|  | 31753 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31754 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31756 | ac_cv_prog_RPM="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31757 | $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] | 31758 | break 2 | 
|  | 31759 | fi | 
|  | 31760 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31761 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31762 | IFS=$as_save_IFS | 
|  | 31763 |  | 
|  | 31764 | fi | 
|  | 31765 | fi | 
|  | 31766 | RPM=$ac_cv_prog_RPM | 
|  | 31767 | if test -n "$RPM"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31769 | $as_echo "$RPM" >&6; } | 
|  | 31770 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31772 | $as_echo "no" >&6; } | 
|  | 31773 | fi | 
|  | 31774 |  | 
|  | 31775 |  | 
|  | 31776 | test -n "$RPM" && break | 
|  | 31777 | done | 
|  | 31778 |  | 
|  | 31779 |  | 
|  | 31780 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | 
|  | 31781 |  | 
|  | 31782 |  | 
|  | 31783 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
|  | 31784 |  | 
|  | 31785 |  | 
|  | 31786 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | 
|  | 31787 |  | 
|  | 31788 |  | 
|  | 31789 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
|  | 31790 |  | 
|  | 31791 |  | 
|  | 31792 | if test "x$RPM" != "x" ; then | 
|  | 31793 | RPM_DELEGATE_TRUE= | 
|  | 31794 | RPM_DELEGATE_FALSE='#' | 
|  | 31795 | else | 
|  | 31796 | RPM_DELEGATE_TRUE='#' | 
|  | 31797 | RPM_DELEGATE_FALSE= | 
|  | 31798 | fi | 
|  | 31799 |  | 
|  | 31800 |  | 
|  | 31801 | # | 
|  | 31802 | # 7ZIP support (http://p7zip.sourceforge.net/) | 
|  | 31803 | # | 
|  | 31804 | P7ZIP='' | 
|  | 31805 | for ac_prog in 7za | 
|  | 31806 | do | 
|  | 31807 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31808 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31810 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31811 | if test "${ac_cv_prog_P7ZIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31812 | $as_echo_n "(cached) " >&6 | 
|  | 31813 | else | 
|  | 31814 | if test -n "$P7ZIP"; then | 
|  | 31815 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. | 
|  | 31816 | else | 
|  | 31817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31818 | for as_dir in $PATH | 
|  | 31819 | do | 
|  | 31820 | IFS=$as_save_IFS | 
|  | 31821 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31822 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31824 | ac_cv_prog_P7ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31825 | $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] | 31826 | break 2 | 
|  | 31827 | fi | 
|  | 31828 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31829 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31830 | IFS=$as_save_IFS | 
|  | 31831 |  | 
|  | 31832 | fi | 
|  | 31833 | fi | 
|  | 31834 | P7ZIP=$ac_cv_prog_P7ZIP | 
|  | 31835 | if test -n "$P7ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31837 | $as_echo "$P7ZIP" >&6; } | 
|  | 31838 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31840 | $as_echo "no" >&6; } | 
|  | 31841 | fi | 
|  | 31842 |  | 
|  | 31843 |  | 
|  | 31844 | test -n "$P7ZIP" && break | 
|  | 31845 | done | 
|  | 31846 |  | 
|  | 31847 |  | 
|  | 31848 | if test "x$P7ZIP" != "x" ; then | 
|  | 31849 | P7ZIP_DELEGATE_TRUE= | 
|  | 31850 | P7ZIP_DELEGATE_FALSE='#' | 
|  | 31851 | else | 
|  | 31852 | P7ZIP_DELEGATE_TRUE='#' | 
|  | 31853 | P7ZIP_DELEGATE_FALSE= | 
|  | 31854 | fi | 
|  | 31855 |  | 
|  | 31856 |  | 
|  | 31857 | # | 
|  | 31858 | # ZIP support (http://www.info-zip.org/Zip.html) | 
|  | 31859 | # | 
|  | 31860 | ZIP='' | 
|  | 31861 | for ac_prog in zip | 
|  | 31862 | do | 
|  | 31863 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31864 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31866 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31867 | if test "${ac_cv_prog_ZIP+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31868 | $as_echo_n "(cached) " >&6 | 
|  | 31869 | else | 
|  | 31870 | if test -n "$ZIP"; then | 
|  | 31871 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. | 
|  | 31872 | else | 
|  | 31873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31874 | for as_dir in $PATH | 
|  | 31875 | do | 
|  | 31876 | IFS=$as_save_IFS | 
|  | 31877 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31878 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31880 | ac_cv_prog_ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31881 | $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] | 31882 | break 2 | 
|  | 31883 | fi | 
|  | 31884 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31885 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31886 | IFS=$as_save_IFS | 
|  | 31887 |  | 
|  | 31888 | fi | 
|  | 31889 | fi | 
|  | 31890 | ZIP=$ac_cv_prog_ZIP | 
|  | 31891 | if test -n "$ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31893 | $as_echo "$ZIP" >&6; } | 
|  | 31894 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31896 | $as_echo "no" >&6; } | 
|  | 31897 | fi | 
|  | 31898 |  | 
|  | 31899 |  | 
|  | 31900 | test -n "$ZIP" && break | 
|  | 31901 | done | 
|  | 31902 |  | 
|  | 31903 |  | 
|  | 31904 | if test "x$ZIP" != "x" ; then | 
|  | 31905 | ZIP_DELEGATE_TRUE= | 
|  | 31906 | ZIP_DELEGATE_FALSE='#' | 
|  | 31907 | else | 
|  | 31908 | ZIP_DELEGATE_TRUE='#' | 
|  | 31909 | ZIP_DELEGATE_FALSE= | 
|  | 31910 | fi | 
|  | 31911 |  | 
|  | 31912 |  | 
|  | 31913 | # | 
|  | 31914 | # GhostPCL related configuration. | 
|  | 31915 | # | 
|  | 31916 | PCLColorDevice=ppmraw | 
|  | 31917 | PCLCMYKDevice=bmpsep8 | 
|  | 31918 | PCLMonoDevice=pbmraw | 
|  | 31919 | if test -z "$PCLVersion"; then | 
|  | 31920 | PCLVersion='unknown' | 
|  | 31921 | fi | 
|  | 31922 | if test $have_pcl = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31924 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31926 | $as_echo_n "checking for PCL... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31928 | $as_echo "" >&6; } | 
|  | 31929 | # PCLColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31931 | $as_echo_n "checking for pcl color device... " >&6; } | 
|  | 31932 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 31933 | : | 
|  | 31934 | else | 
|  | 31935 | PCLColorDevice=ppmraw | 
|  | 31936 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31938 | $as_echo "$PCLColorDevice" >&6; } | 
|  | 31939 |  | 
|  | 31940 | # PCLCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31942 | $as_echo_n "checking for pcl CMYK device... " >&6; } | 
|  | 31943 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 31944 | : | 
|  | 31945 | else | 
|  | 31946 | PCLCMYKDevice=$PCLColorDevice | 
|  | 31947 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31949 | $as_echo "$PCLCMYKDevice" >&6; } | 
|  | 31950 |  | 
|  | 31951 | # PCLMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31953 | $as_echo_n "checking for pcl mono device... " >&6; } | 
|  | 31954 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 31955 | : | 
|  | 31956 | else | 
|  | 31957 | PCLMonoDevice=$PCLColorDevice | 
|  | 31958 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31960 | $as_echo "$PCLMonoDevice" >&6; } | 
|  | 31961 | fi | 
|  | 31962 |  | 
|  | 31963 |  | 
|  | 31964 |  | 
|  | 31965 |  | 
|  | 31966 |  | 
|  | 31967 |  | 
|  | 31968 | # | 
|  | 31969 | # GhostXPS related configuration. | 
|  | 31970 | # | 
|  | 31971 | XPSColorDevice=ppmraw | 
|  | 31972 | XPSCMYKDevice=bmpsep8 | 
|  | 31973 | XPSMonoDevice=pbmraw | 
|  | 31974 | if test -z "$XPSVersion"; then | 
|  | 31975 | XPSVersion='unknown' | 
|  | 31976 | fi | 
|  | 31977 | if test $have_xps = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31979 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31981 | $as_echo_n "checking for XPS... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31983 | $as_echo "" >&6; } | 
|  | 31984 | # XPSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31986 | $as_echo_n "checking for xps color device... " >&6; } | 
|  | 31987 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 31988 | : | 
|  | 31989 | else | 
|  | 31990 | XPSColorDevice=ppmraw | 
|  | 31991 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31993 | $as_echo "$XPSColorDevice" >&6; } | 
|  | 31994 |  | 
|  | 31995 | # XPSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31997 | $as_echo_n "checking for xps CMYK device... " >&6; } | 
|  | 31998 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 31999 | : | 
|  | 32000 | else | 
|  | 32001 | XPSCMYKDevice=$XPSColorDevice | 
|  | 32002 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32004 | $as_echo "$XPSCMYKDevice" >&6; } | 
|  | 32005 |  | 
|  | 32006 | # XPSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32008 | $as_echo_n "checking for xps mono device... " >&6; } | 
|  | 32009 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32010 | : | 
|  | 32011 | else | 
|  | 32012 | XPSMonoDevice=$XPSColorDevice | 
|  | 32013 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32015 | $as_echo "$XPSMonoDevice" >&6; } | 
|  | 32016 | fi | 
|  | 32017 |  | 
|  | 32018 |  | 
|  | 32019 |  | 
|  | 32020 |  | 
|  | 32021 |  | 
|  | 32022 |  | 
|  | 32023 | # | 
|  | 32024 | # Ghostscript related configuration. | 
|  | 32025 | # | 
|  | 32026 | if test "$have_png" = 'yes'; then | 
|  | 32027 | GSAlphaDevice=pngalpha | 
|  | 32028 | else | 
|  | 32029 | GSAlphaDevice=pnmraw | 
|  | 32030 | fi | 
|  | 32031 | GSColorDevice=pnmraw | 
|  | 32032 | GSCMYKDevice=pam | 
|  | 32033 | GSMonoDevice=pbmraw | 
|  | 32034 | GSPDFDevice=pdfwrite | 
|  | 32035 | GSPSDevice=pswrite | 
|  | 32036 | GSEPSDevice=epswrite | 
|  | 32037 | GSVersion='unknown' | 
|  | 32038 | if test $have_gs = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32040 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32042 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32044 | $as_echo "" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32046 | $as_echo_n "checking for Ghostscript version... " >&6; } | 
|  | 32047 | if GSVersion=`$PSDelegate --version`; then | 
|  | 32048 | : | 
|  | 32049 | else | 
|  | 32050 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` | 
|  | 32051 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32053 | $as_echo "$GSVersion" >&6; } | 
|  | 32054 |  | 
|  | 32055 | # GSAlphaDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32057 | $as_echo_n "checking for gs alpha device... " >&6; } | 
|  | 32058 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32059 | : | 
|  | 32060 | else | 
|  | 32061 | GSAlphaDevice=pnmraw | 
|  | 32062 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32064 | $as_echo "$GSAlphaDevice" >&6; } | 
|  | 32065 |  | 
|  | 32066 | # GSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32068 | $as_echo_n "checking for gs color device... " >&6; } | 
|  | 32069 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32070 | : | 
|  | 32071 | else | 
|  | 32072 | GSColorDevice=pnmraw | 
|  | 32073 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32075 | $as_echo "$GSColorDevice" >&6; } | 
|  | 32076 |  | 
|  | 32077 | # GSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32079 | $as_echo_n "checking for gs CMYK device... " >&6; } | 
|  | 32080 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32081 | : | 
|  | 32082 | else | 
|  | 32083 | GSCMYKDevice=bmpsep8 | 
|  | 32084 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32086 | $as_echo "$GSCMYKDevice" >&6; } | 
|  | 32087 |  | 
|  | 32088 | # GSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32090 | $as_echo_n "checking for gs mono device... " >&6; } | 
|  | 32091 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32092 | : | 
|  | 32093 | else | 
|  | 32094 | GSMonoDevice=$GSColorDevice | 
|  | 32095 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32097 | $as_echo "$GSMonoDevice" >&6; } | 
|  | 32098 |  | 
|  | 32099 | # GSPDFDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32100 | { $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] | 32101 | $as_echo_n "checking for gs PDF writing device... " >&6; } | 
|  | 32102 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32103 | : | 
|  | 32104 | else | 
|  | 32105 | GSPDFDevice=nodevice | 
|  | 32106 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32108 | $as_echo "$GSPDFDevice" >&6; } | 
|  | 32109 |  | 
|  | 32110 | # GSPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32111 | { $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] | 32112 | $as_echo_n "checking for gs PS writing device... " >&6; } | 
|  | 32113 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32114 | : | 
|  | 32115 | else | 
|  | 32116 | GSPSDevice=nodevice | 
|  | 32117 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32119 | $as_echo "$GSPSDevice" >&6; } | 
|  | 32120 |  | 
|  | 32121 | # GSEPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32122 | { $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] | 32123 | $as_echo_n "checking for gs EPS writing device... " >&6; } | 
|  | 32124 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32125 | : | 
|  | 32126 | else | 
|  | 32127 | GSEPSDevice=nodevice | 
|  | 32128 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32130 | $as_echo "$GSEPSDevice" >&6; } | 
|  | 32131 | fi | 
|  | 32132 |  | 
|  | 32133 |  | 
|  | 32134 |  | 
|  | 32135 |  | 
|  | 32136 |  | 
|  | 32137 |  | 
|  | 32138 |  | 
|  | 32139 |  | 
|  | 32140 |  | 
|  | 32141 |  | 
|  | 32142 | # | 
|  | 32143 | # PerlMagick-related configuration | 
|  | 32144 | # | 
|  | 32145 |  | 
|  | 32146 | # Look for PERL if PerlMagick requested | 
|  | 32147 | # If name/path of desired PERL interpreter is specified, look for that one first | 
|  | 32148 | have_perl='no' | 
|  | 32149 | if test "$with_perl" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32151 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32153 | $as_echo_n "checking for Perl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32155 | $as_echo "" >&6; } | 
|  | 32156 | if test "$with_perl" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32158 | $as_echo_n "checking for perl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32159 | if test "${ac_cv_path_PERL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32160 | $as_echo_n "(cached) " >&6 | 
|  | 32161 | else | 
|  | 32162 | ac_cv_path_PERL="$with_perl" | 
|  | 32163 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32165 | $as_echo "$ac_cv_path_PERL" >&6; }; | 
|  | 32166 | PERL=$ac_cv_path_PERL | 
|  | 32167 | have_perl="$ac_cv_path_PERL" | 
|  | 32168 | else | 
|  | 32169 | for ac_prog in perl perl5 | 
|  | 32170 | do | 
|  | 32171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32172 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32174 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32175 | if test "${ac_cv_path_PERL+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32176 | $as_echo_n "(cached) " >&6 | 
|  | 32177 | else | 
|  | 32178 | case $PERL in | 
|  | 32179 | [\\/]* | ?:[\\/]*) | 
|  | 32180 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
|  | 32181 | ;; | 
|  | 32182 | *) | 
|  | 32183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32184 | for as_dir in $PATH | 
|  | 32185 | do | 
|  | 32186 | IFS=$as_save_IFS | 
|  | 32187 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32188 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32190 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32191 | $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] | 32192 | break 2 | 
|  | 32193 | fi | 
|  | 32194 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32195 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32196 | IFS=$as_save_IFS | 
|  | 32197 |  | 
|  | 32198 | ;; | 
|  | 32199 | esac | 
|  | 32200 | fi | 
|  | 32201 | PERL=$ac_cv_path_PERL | 
|  | 32202 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32204 | $as_echo "$PERL" >&6; } | 
|  | 32205 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32207 | $as_echo "no" >&6; } | 
|  | 32208 | fi | 
|  | 32209 |  | 
|  | 32210 |  | 
|  | 32211 | test -n "$PERL" && break | 
|  | 32212 | done | 
|  | 32213 | if test "$ac_cv_path_PERL"; then | 
|  | 32214 | have_perl="$ac_cv_path_PERL" | 
|  | 32215 | fi | 
|  | 32216 | fi | 
|  | 32217 | fi | 
|  | 32218 |  | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 32219 | if test "$with_perl" != 'yes' ; then | 
|  | 32220 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " | 
|  | 32221 | fi | 
|  | 32222 |  | 
|  | 32223 | PERL_SUPPORTS_DESTDIR='no' | 
|  | 32224 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32225 | with_perl_static='no' | 
|  | 32226 | with_perl_dynamic='no' | 
|  | 32227 | if test "$have_perl" != 'no'; then | 
|  | 32228 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then | 
|  | 32229 | with_perl_static='yes' | 
|  | 32230 | fi | 
|  | 32231 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then | 
|  | 32232 | with_perl_dynamic='yes' | 
|  | 32233 | fi | 
|  | 32234 | # Is PERL's MakeMaker new enough to support DESTDIR? | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 32235 |  | 
|  | 32236 |  | 
|  | 32237 |  | 
|  | 32238 |  | 
|  | 32239 | if test -n "$PERL"; then : | 
|  | 32240 |  | 
|  | 32241 | ax_perl_version="5.8.1" | 
|  | 32242 |  | 
|  | 32243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 | 
|  | 32244 | $as_echo_n "checking for perl version... " >&6; } | 
|  | 32245 |  | 
|  | 32246 | perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` | 
|  | 32247 |  | 
|  | 32248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 | 
|  | 32249 | $as_echo "$perl_version" >&6; } | 
|  | 32250 |  | 
|  | 32251 | PERL_VERSION=$perl_version | 
|  | 32252 |  | 
|  | 32253 |  | 
|  | 32254 |  | 
|  | 32255 |  | 
|  | 32256 |  | 
|  | 32257 | # Used to indicate true or false condition | 
|  | 32258 | ax_compare_version=false | 
|  | 32259 |  | 
|  | 32260 | # Convert the two version strings to be compared into a format that | 
|  | 32261 | # allows a simple string comparison.  The end result is that a version | 
|  | 32262 | # string of the form 1.12.5-r617 will be converted to the form | 
|  | 32263 | # 0001001200050617.  In other words, each number is zero padded to four | 
|  | 32264 | # digits, and non digits are removed. | 
|  | 32265 |  | 
|  | 32266 | ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
|  | 32267 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
|  | 32268 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 32269 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 32270 | -e 's/[^0-9]//g'` | 
|  | 32271 |  | 
|  | 32272 |  | 
|  | 32273 | ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
|  | 32274 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
|  | 32275 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 32276 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 32277 | -e 's/[^0-9]//g'` | 
|  | 32278 |  | 
|  | 32279 |  | 
|  | 32280 | ax_compare_version=`echo "x$ax_compare_version_A | 
|  | 32281 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | 
|  | 32282 |  | 
|  | 32283 |  | 
|  | 32284 |  | 
|  | 32285 | if test "$ax_compare_version" = "true" ; then | 
|  | 32286 |  | 
|  | 32287 | : | 
|  | 32288 | PERL_SUPPORTS_DESTDIR='yes' | 
|  | 32289 |  | 
|  | 32290 | else | 
|  | 32291 | : | 
|  | 32292 | PERL_SUPPORTS_DESTDIR='no' | 
|  | 32293 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32294 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32295 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 32296 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32297 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32298 |  | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 32299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 | 
|  | 32300 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} | 
|  | 32301 | PERL_SUPPORTS_DESTDIR='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32302 |  | 
|  | 32303 | fi | 
|  | 32304 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32305 | fi | 
|  | 32306 | if test "$have_perl" != 'no'; then | 
|  | 32307 | WITH_PERL_TRUE= | 
|  | 32308 | WITH_PERL_FALSE='#' | 
|  | 32309 | else | 
|  | 32310 | WITH_PERL_TRUE='#' | 
|  | 32311 | WITH_PERL_FALSE= | 
|  | 32312 | fi | 
|  | 32313 |  | 
|  | 32314 | if test $with_perl_static = 'yes'; then | 
|  | 32315 | WITH_PERL_STATIC_TRUE= | 
|  | 32316 | WITH_PERL_STATIC_FALSE='#' | 
|  | 32317 | else | 
|  | 32318 | WITH_PERL_STATIC_TRUE='#' | 
|  | 32319 | WITH_PERL_STATIC_FALSE= | 
|  | 32320 | fi | 
|  | 32321 |  | 
|  | 32322 | if test $with_perl_dynamic = 'yes'; then | 
|  | 32323 | WITH_PERL_DYNAMIC_TRUE= | 
|  | 32324 | WITH_PERL_DYNAMIC_FALSE='#' | 
|  | 32325 | else | 
|  | 32326 | WITH_PERL_DYNAMIC_TRUE='#' | 
|  | 32327 | WITH_PERL_DYNAMIC_FALSE= | 
|  | 32328 | fi | 
|  | 32329 |  | 
|  | 32330 |  | 
|  | 32331 |  | 
|  | 32332 | # Determine path to pick up MagickCore library from for use with building PerlMagick | 
|  | 32333 | MAGICKCORE_PATH="${LIB_DIR}" | 
|  | 32334 | if test $with_perl_static = 'yes'; then | 
|  | 32335 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) | 
|  | 32336 | libtool_objdir=$objdir | 
|  | 32337 |  | 
|  | 32338 | # Linker search path to library, followed by -lMagickCore | 
|  | 32339 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" | 
|  | 32340 | fi | 
|  | 32341 |  | 
|  | 32342 |  | 
|  | 32343 | # Create a simple string containing format names for all delegate libraries | 
|  | 32344 | DELEGATES='' | 
|  | 32345 | if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi | 
|  | 32346 | if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi | 
|  | 32347 | if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi | 
|  | 32348 | if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi | 
|  | 32349 | if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi | 
|  | 32350 | if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi | 
|  | 32351 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi | 
|  | 32352 | if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi | 
|  | 32353 | if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi | 
|  | 32354 | if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi | 
|  | 32355 | if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi | 
|  | 32356 | if test "$have_jpeg"       = 'yes'; then | 
|  | 32357 | DELEGATES="$DELEGATES jpeg"; | 
|  | 32358 | if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi | 
|  | 32359 | fi | 
|  | 32360 | if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 32361 | if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32362 | if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi | 
|  | 32363 | if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi | 
|  | 32364 | if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi | 
|  | 32365 | if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi | 
|  | 32366 | if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi | 
|  | 32367 | if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi | 
|  | 32368 | if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi | 
|  | 32369 | if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi | 
|  | 32370 | if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi | 
|  | 32371 | if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi | 
|  | 32372 | if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi | 
|  | 32373 |  | 
|  | 32374 |  | 
|  | 32375 |  | 
|  | 32376 | # | 
|  | 32377 | # Handle special compiler flags | 
|  | 32378 | # | 
|  | 32379 |  | 
|  | 32380 | # Add '-p' if prof source profiling support enabled | 
|  | 32381 | if test "$enable_prof" = 'yes'; then | 
|  | 32382 | CFLAGS="-p $CFLAGS" | 
|  | 32383 | CXXFLAGS="-p $CXXFLAGS" | 
|  | 32384 | LDFLAGS="-p $LDFLAGS" | 
|  | 32385 | fi | 
|  | 32386 |  | 
|  | 32387 | # Add '-pg' if gprof source profiling support enabled | 
|  | 32388 | if test "$enable_gprof" = 'yes'; then | 
|  | 32389 | CFLAGS="-pg $CFLAGS" | 
|  | 32390 | CXXFLAGS="-pg $CXXFLAGS" | 
|  | 32391 | LDFLAGS="-pg $LDFLAGS" | 
|  | 32392 | fi | 
|  | 32393 |  | 
|  | 32394 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled | 
|  | 32395 | # This is a gcc-specific feature | 
|  | 32396 | if test "$enable_gcov" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32397 | { $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] | 32398 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32399 | if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32400 | $as_echo_n "(cached) " >&6 | 
|  | 32401 | else | 
|  | 32402 | ac_check_lib_save_LIBS=$LIBS | 
|  | 32403 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32405 | /* end confdefs.h.  */ | 
|  | 32406 |  | 
|  | 32407 | /* Override any GCC internal prototype to avoid an error. | 
|  | 32408 | Use char because int might match the return type of a GCC | 
|  | 32409 | builtin and then its argument prototype would still apply.  */ | 
|  | 32410 | #ifdef __cplusplus | 
|  | 32411 | extern "C" | 
|  | 32412 | #endif | 
|  | 32413 | char _gcov_init (); | 
|  | 32414 | int | 
|  | 32415 | main () | 
|  | 32416 | { | 
|  | 32417 | return _gcov_init (); | 
|  | 32418 | ; | 
|  | 32419 | return 0; | 
|  | 32420 | } | 
|  | 32421 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32422 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32423 | ac_cv_lib_gcov__gcov_init=yes | 
|  | 32424 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32425 | ac_cv_lib_gcov__gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32426 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32427 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 32428 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32429 | LIBS=$ac_check_lib_save_LIBS | 
|  | 32430 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32431 | { $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] | 32432 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32433 | if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32434 | cat >>confdefs.h <<_ACEOF | 
|  | 32435 | #define HAVE_LIBGCOV 1 | 
|  | 32436 | _ACEOF | 
|  | 32437 |  | 
|  | 32438 | LIBS="-lgcov $LIBS" | 
|  | 32439 |  | 
|  | 32440 | fi | 
|  | 32441 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32442 | { $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] | 32443 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32444 | if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32445 | $as_echo_n "(cached) " >&6 | 
|  | 32446 | else | 
|  | 32447 | ac_check_lib_save_LIBS=$LIBS | 
|  | 32448 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32450 | /* end confdefs.h.  */ | 
|  | 32451 |  | 
|  | 32452 | /* Override any GCC internal prototype to avoid an error. | 
|  | 32453 | Use char because int might match the return type of a GCC | 
|  | 32454 | builtin and then its argument prototype would still apply.  */ | 
|  | 32455 | #ifdef __cplusplus | 
|  | 32456 | extern "C" | 
|  | 32457 | #endif | 
|  | 32458 | char __gcov_init (); | 
|  | 32459 | int | 
|  | 32460 | main () | 
|  | 32461 | { | 
|  | 32462 | return __gcov_init (); | 
|  | 32463 | ; | 
|  | 32464 | return 0; | 
|  | 32465 | } | 
|  | 32466 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32467 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32468 | ac_cv_lib_gcov___gcov_init=yes | 
|  | 32469 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32470 | ac_cv_lib_gcov___gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32471 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32472 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 32473 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32474 | LIBS=$ac_check_lib_save_LIBS | 
|  | 32475 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32476 | { $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] | 32477 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32478 | if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32479 | cat >>confdefs.h <<_ACEOF | 
|  | 32480 | #define HAVE_LIBGCOV 1 | 
|  | 32481 | _ACEOF | 
|  | 32482 |  | 
|  | 32483 | LIBS="-lgcov $LIBS" | 
|  | 32484 |  | 
|  | 32485 | fi | 
|  | 32486 |  | 
|  | 32487 | case "$target_os" in | 
|  | 32488 | darwin*) | 
|  | 32489 | OSX_GCOV_LDFLAG="-Wl,-single_module" | 
|  | 32490 | ;; | 
|  | 32491 | *) | 
|  | 32492 | OSX_GCOV_LDFLAG="" | 
|  | 32493 | ;; | 
|  | 32494 | esac | 
|  | 32495 |  | 
|  | 32496 | CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS" | 
|  | 32497 | CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS" | 
|  | 32498 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" | 
|  | 32499 | fi | 
|  | 32500 |  | 
|  | 32501 | # | 
|  | 32502 | # Build library dependency list for libMagickCore | 
|  | 32503 | # | 
|  | 32504 |  | 
|  | 32505 | MAGICK_LIBLTDL='' # Libltdl for build | 
|  | 32506 | MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build | 
|  | 32507 | MAGICK_LTDLDEPS=''      # extra libltdl dependencies | 
|  | 32508 | if test "$with_ltdl" != 'no' | 
|  | 32509 | then | 
|  | 32510 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then | 
|  | 32511 | MAGICK_API_LIBLTDL='-lltdl' | 
|  | 32512 | fi | 
|  | 32513 | MAGICK_LIBLTDL=${LIBLTDL} | 
|  | 32514 | MAGICK_LTDLDEPS=${LTDLDEPS} | 
|  | 32515 | fi | 
|  | 32516 |  | 
|  | 32517 |  | 
|  | 32518 |  | 
|  | 32519 | if test "$with_modules" != 'no'; then | 
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 32520 | MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32521 | else | 
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 32522 | MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32523 | fi | 
|  | 32524 |  | 
|  | 32525 |  | 
|  | 32526 | # | 
|  | 32527 | # Remove extraneous spaces from output variables (asthetic) | 
|  | 32528 | # | 
|  | 32529 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'` | 
|  | 32530 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'` | 
|  | 32531 | X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'` | 
|  | 32532 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'` | 
|  | 32533 |  | 
|  | 32534 | CC=`echo $CC | sed -e 's/  */ /g'` | 
|  | 32535 | CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'` | 
|  | 32536 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'` | 
|  | 32537 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'` | 
|  | 32538 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` | 
|  | 32539 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'` | 
|  | 32540 | LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'` | 
|  | 32541 | TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
|  | 32542 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'` | 
|  | 32543 | #LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
|  | 32544 |  | 
|  | 32545 | # Pass only user-provided LIBS as "global" libraries | 
|  | 32546 | LIBS=$USER_LIBS | 
|  | 32547 |  | 
|  | 32548 | #AC_SUBST(CPPFLAGS) | 
|  | 32549 |  | 
|  | 32550 | #AC_SUBST(LDFLAGS) | 
|  | 32551 | #AC_SUBST(X_PRE_LIBS) | 
|  | 32552 | #AC_SUBST(X_LIBS) | 
|  | 32553 | #AC_SUBST(X_EXTRA_LIBS) | 
|  | 32554 |  | 
|  | 32555 | MAGICK_CFLAGS=$CFLAGS | 
|  | 32556 | MAGICK_CXXFLAGS="$CXXFLAGS" | 
|  | 32557 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'` | 
|  | 32558 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'` | 
|  | 32559 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" | 
|  | 32560 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" | 
|  | 32561 |  | 
|  | 32562 |  | 
|  | 32563 |  | 
|  | 32564 |  | 
|  | 32565 |  | 
|  | 32566 |  | 
|  | 32567 |  | 
|  | 32568 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32569 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32570 | # Set configured scripts to executable. | 
|  | 32571 | ac_config_commands="$ac_config_commands default" | 
|  | 32572 |  | 
|  | 32573 | ac_config_commands="$ac_config_commands MagickCore-config.in" | 
|  | 32574 |  | 
|  | 32575 | ac_config_commands="$ac_config_commands Magick-config.in" | 
|  | 32576 |  | 
|  | 32577 | ac_config_commands="$ac_config_commands MagickWand-config.in" | 
|  | 32578 |  | 
|  | 32579 | ac_config_commands="$ac_config_commands Wand-config.in" | 
|  | 32580 |  | 
|  | 32581 | ac_config_commands="$ac_config_commands Magick++-config.in" | 
|  | 32582 |  | 
|  | 32583 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" | 
|  | 32584 |  | 
|  | 32585 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32587 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32589 | $as_echo "Update ImageMagick configuration" >&6; } | 
|  | 32590 | cat >confcache <<\_ACEOF | 
|  | 32591 | # This file is a shell script that caches the results of configure | 
|  | 32592 | # tests run on this system so they can be shared between configure | 
|  | 32593 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 32594 | # It is not useful on other systems.  If it contains results you don't | 
|  | 32595 | # want to keep, you may remove or edit it. | 
|  | 32596 | # | 
|  | 32597 | # config.status only pays attention to the cache file if you give it | 
|  | 32598 | # the --recheck option to rerun configure. | 
|  | 32599 | # | 
|  | 32600 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
|  | 32601 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 32602 | # following values. | 
|  | 32603 |  | 
|  | 32604 | _ACEOF | 
|  | 32605 |  | 
|  | 32606 | # The following way of writing the cache mishandles newlines in values, | 
|  | 32607 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 32608 | # So, we kill variables containing newlines. | 
|  | 32609 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 32610 | # and sets the high bit in the cache file unless we assign to the vars. | 
|  | 32611 | ( | 
|  | 32612 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 32613 | eval ac_val=\$$ac_var | 
|  | 32614 | case $ac_val in #( | 
|  | 32615 | *${as_nl}*) | 
|  | 32616 | case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32617 | *_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] | 32618 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
|  | 32619 | esac | 
|  | 32620 | case $ac_var in #( | 
|  | 32621 | _ | IFS | as_nl) ;; #( | 
|  | 32622 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32623 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32624 | esac ;; | 
|  | 32625 | esac | 
|  | 32626 | done | 
|  | 32627 |  | 
|  | 32628 | (set) 2>&1 | | 
|  | 32629 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 32630 | *${as_nl}ac_space=\ *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32631 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 32632 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32633 | sed -n \ | 
|  | 32634 | "s/'/'\\\\''/g; | 
|  | 32635 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
|  | 32636 | ;; #( | 
|  | 32637 | *) | 
|  | 32638 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 32639 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
|  | 32640 | ;; | 
|  | 32641 | esac | | 
|  | 32642 | sort | 
|  | 32643 | ) | | 
|  | 32644 | sed ' | 
|  | 32645 | /^ac_cv_env_/b end | 
|  | 32646 | t clear | 
|  | 32647 | :clear | 
|  | 32648 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 32649 | t end | 
|  | 32650 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 32651 | :end' >>confcache | 
|  | 32652 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 32653 | if test -w "$cache_file"; then | 
|  | 32654 | test "x$cache_file" != "x/dev/null" && | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32655 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32656 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
|  | 32657 | cat confcache >$cache_file | 
|  | 32658 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32659 | { $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] | 32660 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
|  | 32661 | fi | 
|  | 32662 | fi | 
|  | 32663 | rm -f confcache | 
|  | 32664 |  | 
|  | 32665 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 32666 | # Let make expand exec_prefix. | 
|  | 32667 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 32668 |  | 
|  | 32669 | DEFS=-DHAVE_CONFIG_H | 
|  | 32670 |  | 
|  | 32671 | ac_libobjs= | 
|  | 32672 | ac_ltlibobjs= | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32673 | U= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32674 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 32675 | # 1. Remove the extension, and $U if already installed. | 
|  | 32676 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
|  | 32677 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
|  | 32678 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 32679 | #    will be set to the directory where LIBOBJS objects are built. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32680 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 32681 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32682 | done | 
|  | 32683 | LIBOBJS=$ac_libobjs | 
|  | 32684 |  | 
|  | 32685 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 32686 |  | 
|  | 32687 |  | 
|  | 32688 | if test -n "$EXEEXT"; then | 
|  | 32689 | am__EXEEXT_TRUE= | 
|  | 32690 | am__EXEEXT_FALSE='#' | 
|  | 32691 | else | 
|  | 32692 | am__EXEEXT_TRUE='#' | 
|  | 32693 | am__EXEEXT_FALSE= | 
|  | 32694 | fi | 
|  | 32695 |  | 
|  | 32696 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32697 | as_fn_error $? "conditional \"AMDEP\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32698 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32699 | fi | 
|  | 32700 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32701 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32702 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32703 | fi | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 32704 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32705 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 32706 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 32707 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32708 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32709 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32710 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32711 | fi | 
|  | 32712 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32713 | as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32714 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32715 | fi | 
|  | 32716 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32717 | as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32718 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32719 | fi | 
|  | 32720 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32721 | as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32722 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32723 | fi | 
|  | 32724 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32725 | as_fn_error $? "conditional \"USING_CL\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32726 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32727 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32728 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32729 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32730 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32731 | fi | 
|  | 32732 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32733 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32734 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32735 | fi | 
|  | 32736 | LT_CONFIG_H=config/config.h | 
|  | 32737 |  | 
|  | 32738 | _ltdl_libobjs= | 
|  | 32739 | _ltdl_ltlibobjs= | 
|  | 32740 | if test -n "$_LT_LIBOBJS"; then | 
|  | 32741 | # Remove the extension. | 
|  | 32742 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | 
|  | 32743 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | 
|  | 32744 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | 
|  | 32745 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | 
|  | 32746 | done | 
|  | 32747 | fi | 
|  | 32748 | ltdl_LIBOBJS=$_ltdl_libobjs | 
|  | 32749 |  | 
|  | 32750 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | 
|  | 32751 |  | 
|  | 32752 |  | 
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame] | 32753 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32754 | as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. | 
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame] | 32755 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 32756 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32757 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32758 | as_fn_error $? "conditional \"WITH_MODULES\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32759 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32760 | fi | 
|  | 32761 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32762 | as_fn_error $? "conditional \"WITH_LTDL\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32763 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32764 | fi | 
|  | 32765 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32766 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32767 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32768 | fi | 
|  | 32769 |  | 
|  | 32770 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32771 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32772 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32773 | fi | 
|  | 32774 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32775 | as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32776 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32777 | fi | 
|  | 32778 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32779 | as_fn_error $? "conditional \"HasUMEM\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32780 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32781 | fi | 
|  | 32782 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32783 | as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32784 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32785 | fi | 
|  | 32786 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32787 | as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32788 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32789 | fi | 
|  | 32790 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32791 | as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32792 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32793 | fi | 
|  | 32794 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32795 | as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32796 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32797 | fi | 
|  | 32798 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32799 | as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32800 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32801 | fi | 
|  | 32802 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32803 | as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32804 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32805 | fi | 
|  | 32806 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32807 | as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32808 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32809 | fi | 
|  | 32810 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32811 | as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32812 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32813 | fi | 
|  | 32814 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32815 | as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32816 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32817 | fi | 
|  | 32818 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32819 | as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32820 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32821 | fi | 
|  | 32822 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32823 | as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32824 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32825 | fi | 
|  | 32826 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32827 | as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32828 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32829 | fi | 
|  | 32830 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32831 | as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32832 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32833 | fi | 
|  | 32834 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32835 | as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32836 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32837 | fi | 
|  | 32838 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32839 | as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32840 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32841 | fi | 
|  | 32842 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32843 | as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32844 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32845 | fi | 
|  | 32846 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32847 | as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32848 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32849 | fi | 
|  | 32850 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32851 | as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32852 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32853 | fi | 
|  | 32854 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32855 | as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32856 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32857 | fi | 
|  | 32858 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32859 | as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32860 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32861 | fi | 
|  | 32862 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32863 | as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32864 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32865 | fi | 
|  | 32866 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32867 | as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32868 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32869 | fi | 
|  | 32870 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32871 | as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32872 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32873 | fi | 
|  | 32874 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32875 | as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32876 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32877 | fi | 
|  | 32878 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32879 | as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32880 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32881 | fi | 
|  | 32882 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32883 | as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32884 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32885 | fi | 
|  | 32886 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32887 | as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32888 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32889 | fi | 
|  | 32890 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32891 | as_fn_error $? "conditional \"WITH_PERL\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32892 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32893 | fi | 
|  | 32894 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32895 | as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32896 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32897 | fi | 
|  | 32898 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 32899 | as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32900 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32901 | fi | 
|  | 32902 |  | 
|  | 32903 | : ${CONFIG_STATUS=./config.status} | 
|  | 32904 | ac_write_fail=0 | 
|  | 32905 | ac_clean_files_save=$ac_clean_files | 
|  | 32906 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32907 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32908 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32909 | as_write_fail=0 | 
|  | 32910 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32911 | #! $SHELL | 
|  | 32912 | # Generated by $as_me. | 
|  | 32913 | # Run this file to recreate the current configuration. | 
|  | 32914 | # Compiler output produced by configure, useful for debugging | 
|  | 32915 | # configure, is in config.log if it exists. | 
|  | 32916 |  | 
|  | 32917 | debug=false | 
|  | 32918 | ac_cs_recheck=false | 
|  | 32919 | ac_cs_silent=false | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32920 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32921 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 32922 | export SHELL | 
|  | 32923 | _ASEOF | 
|  | 32924 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 32925 | ## -------------------- ## | 
|  | 32926 | ## M4sh Initialization. ## | 
|  | 32927 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32928 |  | 
|  | 32929 | # Be more Bourne compatible | 
|  | 32930 | DUALCASE=1; export DUALCASE # for MKS sh | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32931 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32932 | emulate sh | 
|  | 32933 | NULLCMD=: | 
|  | 32934 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
|  | 32935 | # is contrary to our usage.  Disable this feature. | 
|  | 32936 | alias -g '${1+"$@"}'='"$@"' | 
|  | 32937 | setopt NO_GLOB_SUBST | 
|  | 32938 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32939 | case `(set -o) 2>/dev/null` in #( | 
|  | 32940 | *posix*) : | 
|  | 32941 | set -o posix ;; #( | 
|  | 32942 | *) : | 
|  | 32943 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32944 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32945 | fi | 
|  | 32946 |  | 
|  | 32947 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32948 | as_nl=' | 
|  | 32949 | ' | 
|  | 32950 | export as_nl | 
|  | 32951 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 32952 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 32953 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 32954 | 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] | 32955 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 32956 | # but without wasting forks for bash or zsh. | 
|  | 32957 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 32958 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 32959 | as_echo='print -r --' | 
|  | 32960 | as_echo_n='print -rn --' | 
|  | 32961 | 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] | 32962 | as_echo='printf %s\n' | 
|  | 32963 | as_echo_n='printf %s' | 
|  | 32964 | else | 
|  | 32965 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 32966 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 32967 | as_echo_n='/usr/ucb/echo -n' | 
|  | 32968 | else | 
|  | 32969 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 32970 | as_echo_n_body='eval | 
|  | 32971 | arg=$1; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32972 | case $arg in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32973 | *"$as_nl"*) | 
|  | 32974 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 32975 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 32976 | esac; | 
|  | 32977 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 32978 | ' | 
|  | 32979 | export as_echo_n_body | 
|  | 32980 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 32981 | fi | 
|  | 32982 | export as_echo_body | 
|  | 32983 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 32984 | fi | 
|  | 32985 |  | 
|  | 32986 | # The user is always right. | 
|  | 32987 | if test "${PATH_SEPARATOR+set}" != set; then | 
|  | 32988 | PATH_SEPARATOR=: | 
|  | 32989 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 32990 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 32991 | PATH_SEPARATOR=';' | 
|  | 32992 | } | 
|  | 32993 | fi | 
|  | 32994 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32995 |  | 
|  | 32996 | # IFS | 
|  | 32997 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 32998 | # there to prevent editors from complaining about space-tab. | 
|  | 32999 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 33000 | # splitting by setting IFS to empty value.) | 
|  | 33001 | IFS=" ""	$as_nl" | 
|  | 33002 |  | 
|  | 33003 | # Find who we are.  Look in the path if we contain no directory separator. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33004 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33005 | *[\\/]* ) as_myself=$0 ;; | 
|  | 33006 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 33007 | for as_dir in $PATH | 
|  | 33008 | do | 
|  | 33009 | IFS=$as_save_IFS | 
|  | 33010 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33011 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 33012 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33013 | IFS=$as_save_IFS | 
|  | 33014 |  | 
|  | 33015 | ;; | 
|  | 33016 | esac | 
|  | 33017 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 33018 | # in which case we are not to be found in the path. | 
|  | 33019 | if test "x$as_myself" = x; then | 
|  | 33020 | as_myself=$0 | 
|  | 33021 | fi | 
|  | 33022 | if test ! -f "$as_myself"; then | 
|  | 33023 | $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] | 33024 | exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33025 | fi | 
|  | 33026 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33027 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 33028 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 33029 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 33030 | # trigger a bug in pdksh 5.2.14. | 
|  | 33031 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 33032 | do eval test x\${$as_var+set} = xset \ | 
|  | 33033 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33034 | done | 
|  | 33035 | PS1='$ ' | 
|  | 33036 | PS2='> ' | 
|  | 33037 | PS4='+ ' | 
|  | 33038 |  | 
|  | 33039 | # NLS nuisances. | 
|  | 33040 | LC_ALL=C | 
|  | 33041 | export LC_ALL | 
|  | 33042 | LANGUAGE=C | 
|  | 33043 | export LANGUAGE | 
|  | 33044 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33045 | # CDPATH. | 
|  | 33046 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 33047 |  | 
|  | 33048 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33049 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 33050 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33051 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 33052 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33053 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33054 | as_fn_error () | 
|  | 33055 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33056 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 33057 | if test "$4"; then | 
|  | 33058 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 33059 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33060 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33061 | $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33062 | as_fn_exit $as_status | 
|  | 33063 | } # as_fn_error | 
|  | 33064 |  | 
|  | 33065 |  | 
|  | 33066 | # as_fn_set_status STATUS | 
|  | 33067 | # ----------------------- | 
|  | 33068 | # Set $? to STATUS, without forking. | 
|  | 33069 | as_fn_set_status () | 
|  | 33070 | { | 
|  | 33071 | return $1 | 
|  | 33072 | } # as_fn_set_status | 
|  | 33073 |  | 
|  | 33074 | # as_fn_exit STATUS | 
|  | 33075 | # ----------------- | 
|  | 33076 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 33077 | as_fn_exit () | 
|  | 33078 | { | 
|  | 33079 | set +e | 
|  | 33080 | as_fn_set_status $1 | 
|  | 33081 | exit $1 | 
|  | 33082 | } # as_fn_exit | 
|  | 33083 |  | 
|  | 33084 | # as_fn_unset VAR | 
|  | 33085 | # --------------- | 
|  | 33086 | # Portably unset VAR. | 
|  | 33087 | as_fn_unset () | 
|  | 33088 | { | 
|  | 33089 | { eval $1=; unset $1;} | 
|  | 33090 | } | 
|  | 33091 | as_unset=as_fn_unset | 
|  | 33092 | # as_fn_append VAR VALUE | 
|  | 33093 | # ---------------------- | 
|  | 33094 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 33095 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 33096 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 33097 | # implementations. | 
|  | 33098 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 33099 | eval 'as_fn_append () | 
|  | 33100 | { | 
|  | 33101 | eval $1+=\$2 | 
|  | 33102 | }' | 
|  | 33103 | else | 
|  | 33104 | as_fn_append () | 
|  | 33105 | { | 
|  | 33106 | eval $1=\$$1\$2 | 
|  | 33107 | } | 
|  | 33108 | fi # as_fn_append | 
|  | 33109 |  | 
|  | 33110 | # as_fn_arith ARG... | 
|  | 33111 | # ------------------ | 
|  | 33112 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 33113 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 33114 | # must be portable across $(()) and expr. | 
|  | 33115 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 33116 | eval 'as_fn_arith () | 
|  | 33117 | { | 
|  | 33118 | as_val=$(( $* )) | 
|  | 33119 | }' | 
|  | 33120 | else | 
|  | 33121 | as_fn_arith () | 
|  | 33122 | { | 
|  | 33123 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 33124 | } | 
|  | 33125 | fi # as_fn_arith | 
|  | 33126 |  | 
|  | 33127 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33128 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 33129 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 33130 | as_expr=expr | 
|  | 33131 | else | 
|  | 33132 | as_expr=false | 
|  | 33133 | fi | 
|  | 33134 |  | 
|  | 33135 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 33136 | as_basename=basename | 
|  | 33137 | else | 
|  | 33138 | as_basename=false | 
|  | 33139 | fi | 
|  | 33140 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33141 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 33142 | as_dirname=dirname | 
|  | 33143 | else | 
|  | 33144 | as_dirname=false | 
|  | 33145 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33146 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33147 | as_me=`$as_basename -- "$0" || | 
|  | 33148 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 33149 | X"$0" : 'X\(//\)$' \| \ | 
|  | 33150 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 33151 | $as_echo X/"$0" | | 
|  | 33152 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 33153 | s//\1/ | 
|  | 33154 | q | 
|  | 33155 | } | 
|  | 33156 | /^X\/\(\/\/\)$/{ | 
|  | 33157 | s//\1/ | 
|  | 33158 | q | 
|  | 33159 | } | 
|  | 33160 | /^X\/\(\/\).*/{ | 
|  | 33161 | s//\1/ | 
|  | 33162 | q | 
|  | 33163 | } | 
|  | 33164 | s/.*/./; q'` | 
|  | 33165 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33166 | # Avoid depending upon Character Ranges. | 
|  | 33167 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 33168 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 33169 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 33170 | as_cr_digits='0123456789' | 
|  | 33171 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33172 |  | 
|  | 33173 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33174 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33175 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33176 | case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33177 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33178 | xy)  ECHO_C='\c';; | 
|  | 33179 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 33180 | ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33181 | esac;; | 
|  | 33182 | *) | 
|  | 33183 | ECHO_N='-n';; | 
|  | 33184 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33185 |  | 
|  | 33186 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 33187 | if test -d conf$$.dir; then | 
|  | 33188 | rm -f conf$$.dir/conf$$.file | 
|  | 33189 | else | 
|  | 33190 | rm -f conf$$.dir | 
|  | 33191 | mkdir conf$$.dir 2>/dev/null | 
|  | 33192 | fi | 
|  | 33193 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 33194 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 33195 | as_ln_s='ln -s' | 
|  | 33196 | # ... but there are two gotchas: | 
|  | 33197 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 33198 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 33199 | # In both cases, we have to default to `cp -p'. | 
|  | 33200 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 33201 | as_ln_s='cp -p' | 
|  | 33202 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 33203 | as_ln_s=ln | 
|  | 33204 | else | 
|  | 33205 | as_ln_s='cp -p' | 
|  | 33206 | fi | 
|  | 33207 | else | 
|  | 33208 | as_ln_s='cp -p' | 
|  | 33209 | fi | 
|  | 33210 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 33211 | rmdir conf$$.dir 2>/dev/null | 
|  | 33212 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33213 |  | 
|  | 33214 | # as_fn_mkdir_p | 
|  | 33215 | # ------------- | 
|  | 33216 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 33217 | as_fn_mkdir_p () | 
|  | 33218 | { | 
|  | 33219 |  | 
|  | 33220 | case $as_dir in #( | 
|  | 33221 | -*) as_dir=./$as_dir;; | 
|  | 33222 | esac | 
|  | 33223 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 33224 | as_dirs= | 
|  | 33225 | while :; do | 
|  | 33226 | case $as_dir in #( | 
|  | 33227 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 33228 | *) as_qdir=$as_dir;; | 
|  | 33229 | esac | 
|  | 33230 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 33231 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 33232 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 33233 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 33234 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 33235 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 33236 | $as_echo X"$as_dir" | | 
|  | 33237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 33238 | s//\1/ | 
|  | 33239 | q | 
|  | 33240 | } | 
|  | 33241 | /^X\(\/\/\)[^/].*/{ | 
|  | 33242 | s//\1/ | 
|  | 33243 | q | 
|  | 33244 | } | 
|  | 33245 | /^X\(\/\/\)$/{ | 
|  | 33246 | s//\1/ | 
|  | 33247 | q | 
|  | 33248 | } | 
|  | 33249 | /^X\(\/\).*/{ | 
|  | 33250 | s//\1/ | 
|  | 33251 | q | 
|  | 33252 | } | 
|  | 33253 | s/.*/./; q'` | 
|  | 33254 | test -d "$as_dir" && break | 
|  | 33255 | done | 
|  | 33256 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33257 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33258 |  | 
|  | 33259 |  | 
|  | 33260 | } # as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33261 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33262 | as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33263 | else | 
|  | 33264 | test -d ./-p && rmdir ./-p | 
|  | 33265 | as_mkdir_p=false | 
|  | 33266 | fi | 
|  | 33267 |  | 
|  | 33268 | if test -x / >/dev/null 2>&1; then | 
|  | 33269 | as_test_x='test -x' | 
|  | 33270 | else | 
|  | 33271 | if ls -dL / >/dev/null 2>&1; then | 
|  | 33272 | as_ls_L_option=L | 
|  | 33273 | else | 
|  | 33274 | as_ls_L_option= | 
|  | 33275 | fi | 
|  | 33276 | as_test_x=' | 
|  | 33277 | eval sh -c '\'' | 
|  | 33278 | if test -d "$1"; then | 
|  | 33279 | test -d "$1/."; | 
|  | 33280 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33281 | case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33282 | -*)set "./$1";; | 
|  | 33283 | esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33284 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33285 | ???[sx]*):;;*)false;;esac;fi | 
|  | 33286 | '\'' sh | 
|  | 33287 | ' | 
|  | 33288 | fi | 
|  | 33289 | as_executable_p=$as_test_x | 
|  | 33290 |  | 
|  | 33291 | # Sed expression to map a string onto a valid CPP name. | 
|  | 33292 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 33293 |  | 
|  | 33294 | # Sed expression to map a string onto a valid variable name. | 
|  | 33295 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 33296 |  | 
|  | 33297 |  | 
|  | 33298 | exec 6>&1 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33299 | ## ----------------------------------- ## | 
|  | 33300 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 33301 | ## ----------------------------------- ## | 
|  | 33302 | _ASEOF | 
|  | 33303 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33304 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 33306 | # Save the log message, to keep $0 and so on meaningful, and to | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33307 | # report actual input values of CONFIG_FILES etc. instead of their | 
|  | 33308 | # values after options handling. | 
|  | 33309 | ac_log=" | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 33310 | This file was extended by ImageMagick $as_me 6.6.3, which was | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33311 | generated by GNU Autoconf 2.66.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33312 |  | 
|  | 33313 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 33314 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 33315 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 33316 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 33317 | $ $0 $@ | 
|  | 33318 |  | 
|  | 33319 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 33320 | " | 
|  | 33321 |  | 
|  | 33322 | _ACEOF | 
|  | 33323 |  | 
|  | 33324 | case $ac_config_files in *" | 
|  | 33325 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 33326 | esac | 
|  | 33327 |  | 
|  | 33328 | case $ac_config_headers in *" | 
|  | 33329 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 33330 | esac | 
|  | 33331 |  | 
|  | 33332 |  | 
|  | 33333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 33334 | # Files that config.status was made for. | 
|  | 33335 | config_files="$ac_config_files" | 
|  | 33336 | config_headers="$ac_config_headers" | 
|  | 33337 | config_commands="$ac_config_commands" | 
|  | 33338 |  | 
|  | 33339 | _ACEOF | 
|  | 33340 |  | 
|  | 33341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 33342 | ac_cs_usage="\ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33343 | \`$as_me' instantiates files and other configuration actions | 
|  | 33344 | from templates according to the current configuration.  Unless the files | 
|  | 33345 | and actions are specified as TAGs, all are instantiated by default. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33346 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33347 | Usage: $0 [OPTION]... [TAG]... | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33348 |  | 
|  | 33349 | -h, --help       print this help, then exit | 
|  | 33350 | -V, --version    print version number and configuration settings, then exit | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 33351 | --config     print configuration, then exit | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33352 | -q, --quiet, --silent | 
|  | 33353 | do not print progress messages | 
|  | 33354 | -d, --debug      don't remove temporary files | 
|  | 33355 | --recheck    update $as_me by reconfiguring in the same conditions | 
|  | 33356 | --file=FILE[:TEMPLATE] | 
|  | 33357 | instantiate the configuration file FILE | 
|  | 33358 | --header=FILE[:TEMPLATE] | 
|  | 33359 | instantiate the configuration header FILE | 
|  | 33360 |  | 
|  | 33361 | Configuration files: | 
|  | 33362 | $config_files | 
|  | 33363 |  | 
|  | 33364 | Configuration headers: | 
|  | 33365 | $config_headers | 
|  | 33366 |  | 
|  | 33367 | Configuration commands: | 
|  | 33368 | $config_commands | 
|  | 33369 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33370 | Report bugs to <http://www.imagemagick.org>." | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33371 |  | 
|  | 33372 | _ACEOF | 
|  | 33373 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 33374 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33375 | ac_cs_version="\\ | 
| cristy | fbb4a97 | 2010-06-30 17:42:22 +0000 | [diff] [blame] | 33376 | ImageMagick config.status 6.6.3 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33377 | configured by $0, generated by GNU Autoconf 2.66, | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 33378 | with options \\"\$ac_cs_config\\" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33379 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33380 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33381 | This config.status script is free software; the Free Software Foundation | 
|  | 33382 | gives unlimited permission to copy, distribute and modify it." | 
|  | 33383 |  | 
|  | 33384 | ac_pwd='$ac_pwd' | 
|  | 33385 | srcdir='$srcdir' | 
|  | 33386 | INSTALL='$INSTALL' | 
|  | 33387 | MKDIR_P='$MKDIR_P' | 
|  | 33388 | AWK='$AWK' | 
|  | 33389 | test -n "\$AWK" || AWK=awk | 
|  | 33390 | _ACEOF | 
|  | 33391 |  | 
|  | 33392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 33393 | # The default lists apply if the user does not specify any file. | 
|  | 33394 | ac_need_defaults=: | 
|  | 33395 | while test $# != 0 | 
|  | 33396 | do | 
|  | 33397 | case $1 in | 
|  | 33398 | --*=*) | 
|  | 33399 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 33400 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
|  | 33401 | ac_shift=: | 
|  | 33402 | ;; | 
|  | 33403 | *) | 
|  | 33404 | ac_option=$1 | 
|  | 33405 | ac_optarg=$2 | 
|  | 33406 | ac_shift=shift | 
|  | 33407 | ;; | 
|  | 33408 | esac | 
|  | 33409 |  | 
|  | 33410 | case $ac_option in | 
|  | 33411 | # Handling of the options. | 
|  | 33412 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 33413 | ac_cs_recheck=: ;; | 
|  | 33414 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
|  | 33415 | $as_echo "$ac_cs_version"; exit ;; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 33416 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 33417 | $as_echo "$ac_cs_config"; exit ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33418 | --debug | --debu | --deb | --de | --d | -d ) | 
|  | 33419 | debug=: ;; | 
|  | 33420 | --file | --fil | --fi | --f ) | 
|  | 33421 | $ac_shift | 
|  | 33422 | case $ac_optarg in | 
|  | 33423 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 33424 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33425 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33426 | ac_need_defaults=false;; | 
|  | 33427 | --header | --heade | --head | --hea ) | 
|  | 33428 | $ac_shift | 
|  | 33429 | case $ac_optarg in | 
|  | 33430 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 33431 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33432 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33433 | ac_need_defaults=false;; | 
|  | 33434 | --he | --h) | 
|  | 33435 | # Conflict between --help and --header | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33436 | as_fn_error $? "ambiguous option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33437 | Try \`$0 --help' for more information.";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33438 | --help | --hel | -h ) | 
|  | 33439 | $as_echo "$ac_cs_usage"; exit ;; | 
|  | 33440 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 33441 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 33442 | ac_cs_silent=: ;; | 
|  | 33443 |  | 
|  | 33444 | # This is an error. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33445 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33446 | Try \`$0 --help' for more information." ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33447 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33448 | *) as_fn_append ac_config_targets " $1" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33449 | ac_need_defaults=false ;; | 
|  | 33450 |  | 
|  | 33451 | esac | 
|  | 33452 | shift | 
|  | 33453 | done | 
|  | 33454 |  | 
|  | 33455 | ac_configure_extra_args= | 
|  | 33456 |  | 
|  | 33457 | if $ac_cs_silent; then | 
|  | 33458 | exec 6>/dev/null | 
|  | 33459 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 33460 | fi | 
|  | 33461 |  | 
|  | 33462 | _ACEOF | 
|  | 33463 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 33464 | if \$ac_cs_recheck; then | 
|  | 33465 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 33466 | shift | 
|  | 33467 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 33468 | CONFIG_SHELL='$SHELL' | 
|  | 33469 | export CONFIG_SHELL | 
|  | 33470 | exec "\$@" | 
|  | 33471 | fi | 
|  | 33472 |  | 
|  | 33473 | _ACEOF | 
|  | 33474 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 33475 | exec 5>>config.log | 
|  | 33476 | { | 
|  | 33477 | echo | 
|  | 33478 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 33479 | ## Running $as_me. ## | 
|  | 33480 | _ASBOX | 
|  | 33481 | $as_echo "$ac_log" | 
|  | 33482 | } >&5 | 
|  | 33483 |  | 
|  | 33484 | _ACEOF | 
|  | 33485 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 33486 | # | 
|  | 33487 | # INIT-COMMANDS | 
|  | 33488 | # | 
|  | 33489 | PACKAGE="$PACKAGE" | 
|  | 33490 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 
|  | 33491 |  | 
|  | 33492 |  | 
|  | 33493 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 33494 | # if CDPATH is set. | 
|  | 33495 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 33496 |  | 
|  | 33497 | sed_quote_subst='$sed_quote_subst' | 
|  | 33498 | double_quote_subst='$double_quote_subst' | 
|  | 33499 | delay_variable_subst='$delay_variable_subst' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33500 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | 
|  | 33501 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | 
|  | 33502 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | 
|  | 33503 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | 
|  | 33504 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | 
|  | 33505 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | 
|  | 33506 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | 
|  | 33507 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | 
|  | 33508 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | 
|  | 33509 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | 
|  | 33510 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | 
|  | 33511 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | 
|  | 33512 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | 
|  | 33513 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | 
|  | 33514 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | 
|  | 33515 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | 
|  | 33516 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | 
|  | 33517 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | 
|  | 33518 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | 
|  | 33519 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | 
|  | 33520 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | 
|  | 33521 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | 
|  | 33522 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | 
|  | 33523 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | 
|  | 33524 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | 
|  | 33525 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | 
|  | 33526 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | 
|  | 33527 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | 
|  | 33528 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | 
|  | 33529 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | 
|  | 33530 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | 
|  | 33531 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 33532 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33533 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | 
|  | 33534 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | 
|  | 33535 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | 
|  | 33536 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | 
|  | 33537 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | 
|  | 33538 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | 
|  | 33539 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33540 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33541 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33542 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | 
|  | 33543 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | 
|  | 33544 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | 
|  | 33545 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | 
|  | 33546 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | 
|  | 33547 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | 
|  | 33548 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | 
|  | 33549 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | 
|  | 33550 | 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"`' | 
|  | 33551 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | 
|  | 33552 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | 
|  | 33553 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 33554 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | 
|  | 33555 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | 
|  | 33556 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | 
|  | 33557 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | 
|  | 33558 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | 
|  | 33559 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | 
|  | 33560 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | 
|  | 33561 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | 
|  | 33562 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | 
|  | 33563 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | 
|  | 33564 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | 
|  | 33565 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33566 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33567 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | 
|  | 33568 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | 
|  | 33569 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33570 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33571 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | 
|  | 33572 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33573 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33574 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33575 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33576 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33577 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33578 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | 
|  | 33579 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 33580 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 33581 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33582 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | 
|  | 33583 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | 
|  | 33584 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | 
|  | 33585 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | 
|  | 33586 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | 
|  | 33587 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 33588 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | 
|  | 33589 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | 
|  | 33590 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | 
|  | 33591 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | 
|  | 33592 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | 
|  | 33593 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33594 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | 
|  | 33595 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | 
|  | 33596 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33597 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33598 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | 
|  | 33599 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | 
|  | 33600 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | 
|  | 33601 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | 
|  | 33602 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 33603 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 33604 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | 
|  | 33605 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33606 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33607 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33608 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | 
|  | 33609 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33610 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33611 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 33612 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | 
|  | 33613 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | 
|  | 33614 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33615 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 33616 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | 
|  | 33617 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | 
|  | 33618 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | 
|  | 33619 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | 
|  | 33620 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | 
|  | 33621 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | 
|  | 33622 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | 
|  | 33623 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | 
|  | 33624 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | 
|  | 33625 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | 
|  | 33626 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | 
|  | 33627 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | 
|  | 33628 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33629 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33630 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33631 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33632 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33633 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33634 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33635 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33636 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33637 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33638 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33639 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33640 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33641 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33642 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33643 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33644 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33645 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33646 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33647 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33648 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33649 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33650 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33651 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33652 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33653 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33654 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33655 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33656 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33657 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33658 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33659 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33660 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33661 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33662 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33663 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33664 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33665 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33666 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33667 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33668 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33669 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33670 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33671 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33672 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33673 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33674 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33675 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 33676 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33677 |  | 
|  | 33678 | LTCC='$LTCC' | 
|  | 33679 | LTCFLAGS='$LTCFLAGS' | 
|  | 33680 | compiler='$compiler_DEFAULT' | 
|  | 33681 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33682 | # A function that is used when there is no print builtin or printf. | 
|  | 33683 | func_fallback_echo () | 
|  | 33684 | { | 
|  | 33685 | eval 'cat <<_LTECHO_EOF | 
|  | 33686 | \$1 | 
|  | 33687 | _LTECHO_EOF' | 
|  | 33688 | } | 
|  | 33689 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33690 | # Quote evaled strings. | 
|  | 33691 | for var in SED \ | 
|  | 33692 | GREP \ | 
|  | 33693 | EGREP \ | 
|  | 33694 | FGREP \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33695 | SHELL \ | 
|  | 33696 | ECHO \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33697 | LD \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33698 | AS \ | 
|  | 33699 | DLLTOOL \ | 
|  | 33700 | OBJDUMP \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33701 | NM \ | 
|  | 33702 | LN_S \ | 
|  | 33703 | lt_SP2NL \ | 
|  | 33704 | lt_NL2SP \ | 
|  | 33705 | reload_flag \ | 
|  | 33706 | deplibs_check_method \ | 
|  | 33707 | file_magic_cmd \ | 
|  | 33708 | AR \ | 
|  | 33709 | AR_FLAGS \ | 
|  | 33710 | STRIP \ | 
|  | 33711 | RANLIB \ | 
|  | 33712 | CC \ | 
|  | 33713 | CFLAGS \ | 
|  | 33714 | compiler \ | 
|  | 33715 | lt_cv_sys_global_symbol_pipe \ | 
|  | 33716 | lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 33717 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 33718 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33719 | lt_prog_compiler_no_builtin_flag \ | 
|  | 33720 | lt_prog_compiler_wl \ | 
|  | 33721 | lt_prog_compiler_pic \ | 
|  | 33722 | lt_prog_compiler_static \ | 
|  | 33723 | lt_cv_prog_compiler_c_o \ | 
|  | 33724 | need_locks \ | 
|  | 33725 | DSYMUTIL \ | 
|  | 33726 | NMEDIT \ | 
|  | 33727 | LIPO \ | 
|  | 33728 | OTOOL \ | 
|  | 33729 | OTOOL64 \ | 
|  | 33730 | shrext_cmds \ | 
|  | 33731 | export_dynamic_flag_spec \ | 
|  | 33732 | whole_archive_flag_spec \ | 
|  | 33733 | compiler_needs_object \ | 
|  | 33734 | with_gnu_ld \ | 
|  | 33735 | allow_undefined_flag \ | 
|  | 33736 | no_undefined_flag \ | 
|  | 33737 | hardcode_libdir_flag_spec \ | 
|  | 33738 | hardcode_libdir_flag_spec_ld \ | 
|  | 33739 | hardcode_libdir_separator \ | 
|  | 33740 | fix_srcfile_path \ | 
|  | 33741 | exclude_expsyms \ | 
|  | 33742 | include_expsyms \ | 
|  | 33743 | file_list_spec \ | 
|  | 33744 | variables_saved_for_relink \ | 
|  | 33745 | libname_spec \ | 
|  | 33746 | library_names_spec \ | 
|  | 33747 | soname_spec \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33748 | install_override_mode \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33749 | finish_eval \ | 
|  | 33750 | old_striplib \ | 
|  | 33751 | striplib \ | 
|  | 33752 | compiler_lib_search_dirs \ | 
|  | 33753 | predep_objects \ | 
|  | 33754 | postdep_objects \ | 
|  | 33755 | predeps \ | 
|  | 33756 | postdeps \ | 
|  | 33757 | compiler_lib_search_path \ | 
|  | 33758 | LD_CXX \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33759 | reload_flag_CXX \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33760 | compiler_CXX \ | 
|  | 33761 | lt_prog_compiler_no_builtin_flag_CXX \ | 
|  | 33762 | lt_prog_compiler_wl_CXX \ | 
|  | 33763 | lt_prog_compiler_pic_CXX \ | 
|  | 33764 | lt_prog_compiler_static_CXX \ | 
|  | 33765 | lt_cv_prog_compiler_c_o_CXX \ | 
|  | 33766 | export_dynamic_flag_spec_CXX \ | 
|  | 33767 | whole_archive_flag_spec_CXX \ | 
|  | 33768 | compiler_needs_object_CXX \ | 
|  | 33769 | with_gnu_ld_CXX \ | 
|  | 33770 | allow_undefined_flag_CXX \ | 
|  | 33771 | no_undefined_flag_CXX \ | 
|  | 33772 | hardcode_libdir_flag_spec_CXX \ | 
|  | 33773 | hardcode_libdir_flag_spec_ld_CXX \ | 
|  | 33774 | hardcode_libdir_separator_CXX \ | 
|  | 33775 | fix_srcfile_path_CXX \ | 
|  | 33776 | exclude_expsyms_CXX \ | 
|  | 33777 | include_expsyms_CXX \ | 
|  | 33778 | file_list_spec_CXX \ | 
|  | 33779 | compiler_lib_search_dirs_CXX \ | 
|  | 33780 | predep_objects_CXX \ | 
|  | 33781 | postdep_objects_CXX \ | 
|  | 33782 | predeps_CXX \ | 
|  | 33783 | postdeps_CXX \ | 
|  | 33784 | compiler_lib_search_path_CXX; do | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33785 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33786 | *[\\\\\\\`\\"\\\$]*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33787 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33788 | ;; | 
|  | 33789 | *) | 
|  | 33790 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
|  | 33791 | ;; | 
|  | 33792 | esac | 
|  | 33793 | done | 
|  | 33794 |  | 
|  | 33795 | # Double-quote double-evaled strings. | 
|  | 33796 | for var in reload_cmds \ | 
|  | 33797 | old_postinstall_cmds \ | 
|  | 33798 | old_postuninstall_cmds \ | 
|  | 33799 | old_archive_cmds \ | 
|  | 33800 | extract_expsyms_cmds \ | 
|  | 33801 | old_archive_from_new_cmds \ | 
|  | 33802 | old_archive_from_expsyms_cmds \ | 
|  | 33803 | archive_cmds \ | 
|  | 33804 | archive_expsym_cmds \ | 
|  | 33805 | module_cmds \ | 
|  | 33806 | module_expsym_cmds \ | 
|  | 33807 | export_symbols_cmds \ | 
|  | 33808 | prelink_cmds \ | 
|  | 33809 | postinstall_cmds \ | 
|  | 33810 | postuninstall_cmds \ | 
|  | 33811 | finish_cmds \ | 
|  | 33812 | sys_lib_search_path_spec \ | 
|  | 33813 | sys_lib_dlsearch_path_spec \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33814 | reload_cmds_CXX \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33815 | old_archive_cmds_CXX \ | 
|  | 33816 | old_archive_from_new_cmds_CXX \ | 
|  | 33817 | old_archive_from_expsyms_cmds_CXX \ | 
|  | 33818 | archive_cmds_CXX \ | 
|  | 33819 | archive_expsym_cmds_CXX \ | 
|  | 33820 | module_cmds_CXX \ | 
|  | 33821 | module_expsym_cmds_CXX \ | 
|  | 33822 | export_symbols_cmds_CXX \ | 
|  | 33823 | prelink_cmds_CXX; do | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33824 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33825 | *[\\\\\\\`\\"\\\$]*) | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33826 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33827 | ;; | 
|  | 33828 | *) | 
|  | 33829 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
|  | 33830 | ;; | 
|  | 33831 | esac | 
|  | 33832 | done | 
|  | 33833 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33834 | ac_aux_dir='$ac_aux_dir' | 
|  | 33835 | xsi_shell='$xsi_shell' | 
|  | 33836 | lt_shell_append='$lt_shell_append' | 
|  | 33837 |  | 
|  | 33838 | # See if we are running on zsh, and set the options which allow our | 
|  | 33839 | # commands through without removal of \ escapes INIT. | 
|  | 33840 | if test -n "\${ZSH_VERSION+set}" ; then | 
|  | 33841 | setopt NO_GLOB_SUBST | 
|  | 33842 | fi | 
|  | 33843 |  | 
|  | 33844 |  | 
|  | 33845 | PACKAGE='$PACKAGE' | 
|  | 33846 | VERSION='$VERSION' | 
|  | 33847 | TIMESTAMP='$TIMESTAMP' | 
|  | 33848 | RM='$RM' | 
|  | 33849 | ofile='$ofile' | 
|  | 33850 |  | 
|  | 33851 |  | 
|  | 33852 |  | 
|  | 33853 |  | 
|  | 33854 |  | 
|  | 33855 |  | 
|  | 33856 | _ACEOF | 
|  | 33857 |  | 
|  | 33858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 33859 |  | 
|  | 33860 | # Handling of arguments. | 
|  | 33861 | for ac_config_target in $ac_config_targets | 
|  | 33862 | do | 
|  | 33863 | case $ac_config_target in | 
|  | 33864 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; | 
|  | 33865 | "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;; | 
|  | 33866 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; | 
|  | 33867 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; | 
|  | 33868 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; | 
|  | 33869 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; | 
|  | 33870 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 33871 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33872 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; | 
|  | 33873 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; | 
|  | 33874 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; | 
|  | 33875 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; | 
|  | 33876 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; | 
|  | 33877 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; | 
|  | 33878 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; | 
|  | 33879 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; | 
|  | 33880 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; | 
|  | 33881 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; | 
|  | 33882 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; | 
|  | 33883 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; | 
|  | 33884 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 
|  | 33885 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; | 
|  | 33886 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; | 
|  | 33887 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; | 
|  | 33888 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; | 
|  | 33889 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; | 
|  | 33890 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; | 
|  | 33891 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; | 
|  | 33892 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; | 
|  | 33893 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; | 
|  | 33894 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; | 
|  | 33895 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; | 
|  | 33896 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; | 
|  | 33897 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; | 
|  | 33898 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; | 
|  | 33899 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; | 
|  | 33900 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; | 
|  | 33901 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; | 
|  | 33902 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; | 
|  | 33903 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; | 
|  | 33904 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; | 
|  | 33905 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | 
|  | 33906 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | 
|  | 33907 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 
|  | 33908 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; | 
|  | 33909 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; | 
|  | 33910 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; | 
|  | 33911 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; | 
|  | 33912 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; | 
|  | 33913 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; | 
|  | 33914 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33915 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33916 | esac | 
|  | 33917 | done | 
|  | 33918 |  | 
|  | 33919 |  | 
|  | 33920 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 33921 | # then the envvar interface is used.  Set only those that are not. | 
|  | 33922 | # We use the long form for the default assignment because of an extremely | 
|  | 33923 | # bizarre bug on SunOS 4.1.3. | 
|  | 33924 | if $ac_need_defaults; then | 
|  | 33925 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 33926 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 33927 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
|  | 33928 | fi | 
|  | 33929 |  | 
|  | 33930 | # Have a temporary directory for convenience.  Make it in the build tree | 
|  | 33931 | # simply because there is no reason against having it here, and in addition, | 
|  | 33932 | # creating and moving files from /tmp can sometimes cause problems. | 
|  | 33933 | # Hook for its removal unless debugging. | 
|  | 33934 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 33935 | # after its creation but before its name has been assigned to `$tmp'. | 
|  | 33936 | $debug || | 
|  | 33937 | { | 
|  | 33938 | tmp= | 
|  | 33939 | trap 'exit_status=$? | 
|  | 33940 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 
|  | 33941 | ' 0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33942 | trap 'as_fn_exit 1' 1 2 13 15 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33943 | } | 
|  | 33944 | # Create a (secure) tmp directory for tmp files. | 
|  | 33945 |  | 
|  | 33946 | { | 
|  | 33947 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
|  | 33948 | test -n "$tmp" && test -d "$tmp" | 
|  | 33949 | }  || | 
|  | 33950 | { | 
|  | 33951 | tmp=./conf$$-$RANDOM | 
|  | 33952 | (umask 077 && mkdir "$tmp") | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33953 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33954 |  | 
|  | 33955 | # Set up the scripts for CONFIG_FILES section. | 
|  | 33956 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 33957 | # This happens for instance with `./config.status config.h'. | 
|  | 33958 | if test -n "$CONFIG_FILES"; then | 
|  | 33959 |  | 
|  | 33960 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33961 | ac_cr=`echo X | tr X '\015'` | 
|  | 33962 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 33963 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 33964 | # point, so we can use a bashism as a fallback. | 
|  | 33965 | if test "x$ac_cr" = x; then | 
|  | 33966 | eval ac_cr=\$\'\\r\' | 
|  | 33967 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33968 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 33969 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33970 | ac_cs_awk_cr='\\r' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33971 | else | 
|  | 33972 | ac_cs_awk_cr=$ac_cr | 
|  | 33973 | fi | 
|  | 33974 |  | 
|  | 33975 | echo 'BEGIN {' >"$tmp/subs1.awk" && | 
|  | 33976 | _ACEOF | 
|  | 33977 |  | 
|  | 33978 |  | 
|  | 33979 | { | 
|  | 33980 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 33981 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 33982 | echo "_ACEOF" | 
|  | 33983 | } >conf$$subs.sh || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33984 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 33985 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33986 | ac_delim='%!_!# ' | 
|  | 33987 | for ac_last_try in false false false false false :; do | 
|  | 33988 | . ./conf$$subs.sh || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33989 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33990 |  | 
|  | 33991 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 33992 | if test $ac_delim_n = $ac_delim_num; then | 
|  | 33993 | break | 
|  | 33994 | elif $ac_last_try; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 33995 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33996 | else | 
|  | 33997 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 33998 | fi | 
|  | 33999 | done | 
|  | 34000 | rm -f conf$$subs.sh | 
|  | 34001 |  | 
|  | 34002 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34003 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | 
|  | 34004 | _ACEOF | 
|  | 34005 | sed -n ' | 
|  | 34006 | h | 
|  | 34007 | s/^/S["/; s/!.*/"]=/ | 
|  | 34008 | p | 
|  | 34009 | g | 
|  | 34010 | s/^[^!]*!// | 
|  | 34011 | :repl | 
|  | 34012 | t repl | 
|  | 34013 | s/'"$ac_delim"'$// | 
|  | 34014 | t delim | 
|  | 34015 | :nl | 
|  | 34016 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34017 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34018 | t more1 | 
|  | 34019 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 34020 | p | 
|  | 34021 | n | 
|  | 34022 | b repl | 
|  | 34023 | :more1 | 
|  | 34024 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 34025 | p | 
|  | 34026 | g | 
|  | 34027 | s/.\{148\}// | 
|  | 34028 | t nl | 
|  | 34029 | :delim | 
|  | 34030 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34031 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34032 | t more2 | 
|  | 34033 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 34034 | p | 
|  | 34035 | b | 
|  | 34036 | :more2 | 
|  | 34037 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 34038 | p | 
|  | 34039 | g | 
|  | 34040 | s/.\{148\}// | 
|  | 34041 | t delim | 
|  | 34042 | ' <conf$$subs.awk | sed ' | 
|  | 34043 | /^[^""]/{ | 
|  | 34044 | N | 
|  | 34045 | s/\n// | 
|  | 34046 | } | 
|  | 34047 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 34048 | rm -f conf$$subs.awk | 
|  | 34049 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34050 | _ACAWK | 
|  | 34051 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | 
|  | 34052 | for (key in S) S_is_set[key] = 1 | 
|  | 34053 | FS = "" | 
|  | 34054 |  | 
|  | 34055 | } | 
|  | 34056 | { | 
|  | 34057 | line = $ 0 | 
|  | 34058 | nfields = split(line, field, "@") | 
|  | 34059 | substed = 0 | 
|  | 34060 | len = length(field[1]) | 
|  | 34061 | for (i = 2; i < nfields; i++) { | 
|  | 34062 | key = field[i] | 
|  | 34063 | keylen = length(key) | 
|  | 34064 | if (S_is_set[key]) { | 
|  | 34065 | value = S[key] | 
|  | 34066 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 34067 | len += length(value) + length(field[++i]) | 
|  | 34068 | substed = 1 | 
|  | 34069 | } else | 
|  | 34070 | len += 1 + keylen | 
|  | 34071 | } | 
|  | 34072 |  | 
|  | 34073 | print line | 
|  | 34074 | } | 
|  | 34075 |  | 
|  | 34076 | _ACAWK | 
|  | 34077 | _ACEOF | 
|  | 34078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34079 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 34080 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 34081 | else | 
|  | 34082 | cat | 
|  | 34083 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34084 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34085 | _ACEOF | 
|  | 34086 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34087 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 34088 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34089 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 34090 | # (actually we leave an empty line to preserve line numbers). | 
|  | 34091 | if test "x$srcdir" = x.; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34092 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 34093 | h | 
|  | 34094 | s/// | 
|  | 34095 | s/^/:/ | 
|  | 34096 | s/[	 ]*$/:/ | 
|  | 34097 | s/:\$(srcdir):/:/g | 
|  | 34098 | s/:\${srcdir}:/:/g | 
|  | 34099 | s/:@srcdir@:/:/g | 
|  | 34100 | s/^:*// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34101 | s/:*$// | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34102 | x | 
|  | 34103 | s/\(=[	 ]*\).*/\1/ | 
|  | 34104 | G | 
|  | 34105 | s/\n// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34106 | s/^[^=]*=[	 ]*$// | 
|  | 34107 | }' | 
|  | 34108 | fi | 
|  | 34109 |  | 
|  | 34110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34111 | fi # test -n "$CONFIG_FILES" | 
|  | 34112 |  | 
|  | 34113 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 34114 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 34115 | # This happens for instance with `./config.status Makefile'. | 
|  | 34116 | if test -n "$CONFIG_HEADERS"; then | 
|  | 34117 | cat >"$tmp/defines.awk" <<\_ACAWK || | 
|  | 34118 | BEGIN { | 
|  | 34119 | _ACEOF | 
|  | 34120 |  | 
|  | 34121 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 34122 | # here-document in config.status, that substitutes the proper values into | 
|  | 34123 | # config.h.in to produce config.h. | 
|  | 34124 |  | 
|  | 34125 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 34126 | # handling of long lines. | 
|  | 34127 | ac_delim='%!_!# ' | 
|  | 34128 | for ac_last_try in false false :; do | 
|  | 34129 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 34130 | if test -z "$ac_t"; then | 
|  | 34131 | break | 
|  | 34132 | elif $ac_last_try; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34133 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34134 | else | 
|  | 34135 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 34136 | fi | 
|  | 34137 | done | 
|  | 34138 |  | 
|  | 34139 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 34140 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 34141 | # newline sequences. | 
|  | 34142 |  | 
|  | 34143 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 34144 | sed -n ' | 
|  | 34145 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 34146 | t rset | 
|  | 34147 | :rset | 
|  | 34148 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 34149 | t def | 
|  | 34150 | d | 
|  | 34151 | :def | 
|  | 34152 | s/\\$// | 
|  | 34153 | t bsnl | 
|  | 34154 | s/["\\]/\\&/g | 
|  | 34155 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 34156 | D["\1"]=" \3"/p | 
|  | 34157 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 34158 | d | 
|  | 34159 | :bsnl | 
|  | 34160 | s/["\\]/\\&/g | 
|  | 34161 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 34162 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 34163 | t cont | 
|  | 34164 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 34165 | t cont | 
|  | 34166 | d | 
|  | 34167 | :cont | 
|  | 34168 | n | 
|  | 34169 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 34170 | t clear | 
|  | 34171 | :clear | 
|  | 34172 | s/\\$// | 
|  | 34173 | t bsnlc | 
|  | 34174 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 34175 | d | 
|  | 34176 | :bsnlc | 
|  | 34177 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 34178 | b cont | 
|  | 34179 | ' <confdefs.h | sed ' | 
|  | 34180 | s/'"$ac_delim"'/"\\\ | 
|  | 34181 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 34182 |  | 
|  | 34183 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34184 | for (key in D) D_is_set[key] = 1 | 
|  | 34185 | FS = "" | 
|  | 34186 | } | 
|  | 34187 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 34188 | line = \$ 0 | 
|  | 34189 | split(line, arg, " ") | 
|  | 34190 | if (arg[1] == "#") { | 
|  | 34191 | defundef = arg[2] | 
|  | 34192 | mac1 = arg[3] | 
|  | 34193 | } else { | 
|  | 34194 | defundef = substr(arg[1], 2) | 
|  | 34195 | mac1 = arg[2] | 
|  | 34196 | } | 
|  | 34197 | split(mac1, mac2, "(") #) | 
|  | 34198 | macro = mac2[1] | 
|  | 34199 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 34200 | if (D_is_set[macro]) { | 
|  | 34201 | # Preserve the white space surrounding the "#". | 
|  | 34202 | print prefix "define", macro P[macro] D[macro] | 
|  | 34203 | next | 
|  | 34204 | } else { | 
|  | 34205 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 34206 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 34207 | # on some systems where configure will not decide to define it. | 
|  | 34208 | if (defundef == "undef") { | 
|  | 34209 | print "/*", prefix defundef, macro, "*/" | 
|  | 34210 | next | 
|  | 34211 | } | 
|  | 34212 | } | 
|  | 34213 | } | 
|  | 34214 | { print } | 
|  | 34215 | _ACAWK | 
|  | 34216 | _ACEOF | 
|  | 34217 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34218 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34219 | fi # test -n "$CONFIG_HEADERS" | 
|  | 34220 |  | 
|  | 34221 |  | 
|  | 34222 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS" | 
|  | 34223 | shift | 
|  | 34224 | for ac_tag | 
|  | 34225 | do | 
|  | 34226 | case $ac_tag in | 
|  | 34227 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 34228 | esac | 
|  | 34229 | case $ac_mode$ac_tag in | 
|  | 34230 | :[FHL]*:*);; | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34231 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34232 | :[FH]-) ac_tag=-:-;; | 
|  | 34233 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 34234 | esac | 
|  | 34235 | ac_save_IFS=$IFS | 
|  | 34236 | IFS=: | 
|  | 34237 | set x $ac_tag | 
|  | 34238 | IFS=$ac_save_IFS | 
|  | 34239 | shift | 
|  | 34240 | ac_file=$1 | 
|  | 34241 | shift | 
|  | 34242 |  | 
|  | 34243 | case $ac_mode in | 
|  | 34244 | :L) ac_source=$1;; | 
|  | 34245 | :[FH]) | 
|  | 34246 | ac_file_inputs= | 
|  | 34247 | for ac_f | 
|  | 34248 | do | 
|  | 34249 | case $ac_f in | 
|  | 34250 | -) ac_f="$tmp/stdin";; | 
|  | 34251 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 34252 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 34253 | # because $ac_f cannot contain `:'. | 
|  | 34254 | test -f "$ac_f" || | 
|  | 34255 | case $ac_f in | 
|  | 34256 | [\\/$]*) false;; | 
|  | 34257 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 34258 | esac || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34259 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34260 | esac | 
|  | 34261 | 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] | 34262 | as_fn_append ac_file_inputs " '$ac_f'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34263 | done | 
|  | 34264 |  | 
|  | 34265 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 34266 | # use $as_me), people would be surprised to read: | 
|  | 34267 | #    /* config.h.  Generated by config.status.  */ | 
|  | 34268 | configure_input='Generated from '` | 
|  | 34269 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 34270 | `' by configure.' | 
|  | 34271 | if test x"$ac_file" != x-; then | 
|  | 34272 | configure_input="$ac_file.  $configure_input" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34273 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34274 | $as_echo "$as_me: creating $ac_file" >&6;} | 
|  | 34275 | fi | 
|  | 34276 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 34277 | case $configure_input in #( | 
|  | 34278 | *\&* | *\|* | *\\* ) | 
|  | 34279 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 34280 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 34281 | *) ac_sed_conf_input=$configure_input;; | 
|  | 34282 | esac | 
|  | 34283 |  | 
|  | 34284 | case $ac_tag in | 
|  | 34285 | *:-:* | *:-) cat >"$tmp/stdin" \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34286 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34287 | esac | 
|  | 34288 | ;; | 
|  | 34289 | esac | 
|  | 34290 |  | 
|  | 34291 | ac_dir=`$as_dirname -- "$ac_file" || | 
|  | 34292 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34293 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 34294 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 34295 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34296 | $as_echo X"$ac_file" | | 
|  | 34297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34298 | s//\1/ | 
|  | 34299 | q | 
|  | 34300 | } | 
|  | 34301 | /^X\(\/\/\)[^/].*/{ | 
|  | 34302 | s//\1/ | 
|  | 34303 | q | 
|  | 34304 | } | 
|  | 34305 | /^X\(\/\/\)$/{ | 
|  | 34306 | s//\1/ | 
|  | 34307 | q | 
|  | 34308 | } | 
|  | 34309 | /^X\(\/\).*/{ | 
|  | 34310 | s//\1/ | 
|  | 34311 | q | 
|  | 34312 | } | 
|  | 34313 | s/.*/./; q'` | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34314 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34315 | ac_builddir=. | 
|  | 34316 |  | 
|  | 34317 | case "$ac_dir" in | 
|  | 34318 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 34319 | *) | 
|  | 34320 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
|  | 34321 | # A ".." for each directory in $ac_dir_suffix. | 
|  | 34322 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
|  | 34323 | case $ac_top_builddir_sub in | 
|  | 34324 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 34325 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 34326 | esac ;; | 
|  | 34327 | esac | 
|  | 34328 | ac_abs_top_builddir=$ac_pwd | 
|  | 34329 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 34330 | # for backward compatibility: | 
|  | 34331 | ac_top_builddir=$ac_top_build_prefix | 
|  | 34332 |  | 
|  | 34333 | case $srcdir in | 
|  | 34334 | .)  # We are building in place. | 
|  | 34335 | ac_srcdir=. | 
|  | 34336 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 34337 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 34338 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
|  | 34339 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 34340 | ac_top_srcdir=$srcdir | 
|  | 34341 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 34342 | *) # Relative name. | 
|  | 34343 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 34344 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 34345 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
|  | 34346 | esac | 
|  | 34347 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
|  | 34348 |  | 
|  | 34349 |  | 
|  | 34350 | case $ac_mode in | 
|  | 34351 | :F) | 
|  | 34352 | # | 
|  | 34353 | # CONFIG_FILE | 
|  | 34354 | # | 
|  | 34355 |  | 
|  | 34356 | case $INSTALL in | 
|  | 34357 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
|  | 34358 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
|  | 34359 | esac | 
|  | 34360 | ac_MKDIR_P=$MKDIR_P | 
|  | 34361 | case $MKDIR_P in | 
|  | 34362 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 34363 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 34364 | esac | 
|  | 34365 | _ACEOF | 
|  | 34366 |  | 
|  | 34367 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34368 | # If the template does not know about datarootdir, expand it. | 
|  | 34369 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 34370 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34371 | ac_sed_dataroot=' | 
|  | 34372 | /datarootdir/ { | 
|  | 34373 | p | 
|  | 34374 | q | 
|  | 34375 | } | 
|  | 34376 | /@datadir@/p | 
|  | 34377 | /@docdir@/p | 
|  | 34378 | /@infodir@/p | 
|  | 34379 | /@localedir@/p | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34380 | /@mandir@/p' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34381 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
|  | 34382 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 34383 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34384 | { $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] | 34385 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
|  | 34386 | _ACEOF | 
|  | 34387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34388 | ac_datarootdir_hack=' | 
|  | 34389 | s&@datadir@&$datadir&g | 
|  | 34390 | s&@docdir@&$docdir&g | 
|  | 34391 | s&@infodir@&$infodir&g | 
|  | 34392 | s&@localedir@&$localedir&g | 
|  | 34393 | s&@mandir@&$mandir&g | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34394 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34395 | esac | 
|  | 34396 | _ACEOF | 
|  | 34397 |  | 
|  | 34398 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 34399 | # Shell code in configure.ac might set extrasub. | 
|  | 34400 | # FIXME: do we really want to maintain this feature? | 
|  | 34401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34402 | ac_sed_extra="$ac_vpsub | 
|  | 34403 | $extrasub | 
|  | 34404 | _ACEOF | 
|  | 34405 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34406 | :t | 
|  | 34407 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
|  | 34408 | s|@configure_input@|$ac_sed_conf_input|;t t | 
|  | 34409 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
|  | 34410 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
|  | 34411 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 34412 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 34413 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 34414 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 34415 | s&@builddir@&$ac_builddir&;t t | 
|  | 34416 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 34417 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 34418 | s&@INSTALL@&$ac_INSTALL&;t t | 
|  | 34419 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
|  | 34420 | $ac_datarootdir_hack | 
|  | 34421 | " | 
|  | 34422 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34423 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34424 |  | 
|  | 34425 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
|  | 34426 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 
|  | 34427 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34428 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34429 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34430 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34431 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34432 |  | 
|  | 34433 | rm -f "$tmp/stdin" | 
|  | 34434 | case $ac_file in | 
|  | 34435 | -) cat "$tmp/out" && rm -f "$tmp/out";; | 
|  | 34436 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 
|  | 34437 | esac \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34438 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34439 | ;; | 
|  | 34440 | :H) | 
|  | 34441 | # | 
|  | 34442 | # CONFIG_HEADER | 
|  | 34443 | # | 
|  | 34444 | if test x"$ac_file" != x-; then | 
|  | 34445 | { | 
|  | 34446 | $as_echo "/* $configure_input  */" \ | 
|  | 34447 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 
|  | 34448 | } >"$tmp/config.h" \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34449 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34450 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34451 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34452 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
|  | 34453 | else | 
|  | 34454 | rm -f "$ac_file" | 
|  | 34455 | mv "$tmp/config.h" "$ac_file" \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34456 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34457 | fi | 
|  | 34458 | else | 
|  | 34459 | $as_echo "/* $configure_input  */" \ | 
|  | 34460 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34461 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34462 | fi | 
|  | 34463 | # Compute "$ac_file"'s index in $config_headers. | 
|  | 34464 | _am_arg="$ac_file" | 
|  | 34465 | _am_stamp_count=1 | 
|  | 34466 | for _am_header in $config_headers :; do | 
|  | 34467 | case $_am_header in | 
|  | 34468 | $_am_arg | $_am_arg:* ) | 
|  | 34469 | break ;; | 
|  | 34470 | * ) | 
|  | 34471 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 
|  | 34472 | esac | 
|  | 34473 | done | 
|  | 34474 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | 
|  | 34475 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34476 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | 
|  | 34477 | X"$_am_arg" : 'X\(//\)$' \| \ | 
|  | 34478 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34479 | $as_echo X"$_am_arg" | | 
|  | 34480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34481 | s//\1/ | 
|  | 34482 | q | 
|  | 34483 | } | 
|  | 34484 | /^X\(\/\/\)[^/].*/{ | 
|  | 34485 | s//\1/ | 
|  | 34486 | q | 
|  | 34487 | } | 
|  | 34488 | /^X\(\/\/\)$/{ | 
|  | 34489 | s//\1/ | 
|  | 34490 | q | 
|  | 34491 | } | 
|  | 34492 | /^X\(\/\).*/{ | 
|  | 34493 | s//\1/ | 
|  | 34494 | q | 
|  | 34495 | } | 
|  | 34496 | s/.*/./; q'`/stamp-h$_am_stamp_count | 
|  | 34497 | ;; | 
|  | 34498 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34499 | :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34500 | $as_echo "$as_me: executing $ac_file commands" >&6;} | 
|  | 34501 | ;; | 
|  | 34502 | esac | 
|  | 34503 |  | 
|  | 34504 |  | 
|  | 34505 | case $ac_file$ac_mode in | 
|  | 34506 | "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h` | 
|  | 34507 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` | 
|  | 34508 | ac_prefix_conf_PKG=`echo MagickCore` | 
|  | 34509 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` | 
|  | 34510 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"` | 
|  | 34511 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` | 
|  | 34512 | if test ".$ac_prefix_conf_INP" = "."; then | 
|  | 34513 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue | 
|  | 34514 | case "$ac_file" in | 
|  | 34515 | *.h) ac_prefix_conf_INP=$ac_file ;; | 
|  | 34516 | *) | 
|  | 34517 | esac | 
|  | 34518 | test ".$ac_prefix_conf_INP" != "." && break | 
|  | 34519 | done | 
|  | 34520 | fi | 
|  | 34521 | if test ".$ac_prefix_conf_INP" = "."; then | 
|  | 34522 | case "$ac_prefix_conf_OUT" in | 
|  | 34523 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` | 
|  | 34524 | ;; | 
|  | 34525 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` | 
|  | 34526 | ;; | 
|  | 34527 | *) ac_prefix_conf_INP=config.h | 
|  | 34528 | ;; | 
|  | 34529 | esac | 
|  | 34530 | fi | 
|  | 34531 | if test -z "$ac_prefix_conf_PKG" ; then | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34532 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34533 | else | 
|  | 34534 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then | 
|  | 34535 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" | 
|  | 34536 | fi fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34537 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34538 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} | 
|  | 34539 | if test -f $ac_prefix_conf_INP ; then | 
|  | 34540 | echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix | 
|  | 34541 | echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 34542 | echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix | 
|  | 34543 | echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34544 | echo "#endif/" >>conftest.prefix | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 34545 | echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix | 
|  | 34546 | echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34547 | echo "#endif/" >> conftest.prefix | 
|  | 34548 | # now executing _script on _DEF input to create _OUT output file | 
|  | 34549 | echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h | 
|  | 34550 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h | 
|  | 34551 | echo ' ' >>$tmp/pconfig.h | 
|  | 34552 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h | 
|  | 34553 |  | 
|  | 34554 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h | 
|  | 34555 | echo ' ' >>$tmp/pconfig.h | 
|  | 34556 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h | 
|  | 34557 | echo "#endif" >>$tmp/pconfig.h | 
|  | 34558 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34559 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34560 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} | 
|  | 34561 | else | 
|  | 34562 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || | 
|  | 34563 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34564 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ | 
|  | 34565 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ | 
|  | 34566 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34567 | $as_echo X"$ac_prefix_conf_OUT" | | 
|  | 34568 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34569 | s//\1/ | 
|  | 34570 | q | 
|  | 34571 | } | 
|  | 34572 | /^X\(\/\/\)[^/].*/{ | 
|  | 34573 | s//\1/ | 
|  | 34574 | q | 
|  | 34575 | } | 
|  | 34576 | /^X\(\/\/\)$/{ | 
|  | 34577 | s//\1/ | 
|  | 34578 | q | 
|  | 34579 | } | 
|  | 34580 | /^X\(\/\).*/{ | 
|  | 34581 | s//\1/ | 
|  | 34582 | q | 
|  | 34583 | } | 
|  | 34584 | s/.*/./; q'` | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34585 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34586 | rm -f "$ac_prefix_conf_OUT" | 
|  | 34587 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" | 
|  | 34588 | fi | 
|  | 34589 | cp conftest.prefix _configs.sed | 
|  | 34590 | else | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34591 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34592 | fi | 
|  | 34593 | rm -f conftest.* | 
|  | 34594 | fi | 
|  | 34595 | ;; | 
|  | 34596 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | 
|  | 34597 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | 
|  | 34598 | # are listed without --file.  Let's play safe and only enable the eval | 
|  | 34599 | # if we detect the quoting. | 
|  | 34600 | case $CONFIG_FILES in | 
|  | 34601 | *\'*) eval set x "$CONFIG_FILES" ;; | 
|  | 34602 | *)   set x $CONFIG_FILES ;; | 
|  | 34603 | esac | 
|  | 34604 | shift | 
|  | 34605 | for mf | 
|  | 34606 | do | 
|  | 34607 | # Strip MF so we end up with the name of the file. | 
|  | 34608 | mf=`echo "$mf" | sed -e 's/:.*$//'` | 
|  | 34609 | # Check whether this is an Automake generated Makefile or not. | 
|  | 34610 | # We used to match only the files named `Makefile.in', but | 
|  | 34611 | # some people rename them; so instead we look at the file content. | 
|  | 34612 | # Grep'ing the first line is not enough: some people post-process | 
|  | 34613 | # each Makefile.in and add a new line on top of each file to say so. | 
|  | 34614 | # Grep'ing the whole file is not good either: AIX grep has a line | 
|  | 34615 | # limit of 2048, but all sed's we know have understand at least 4000. | 
|  | 34616 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | 
|  | 34617 | dirpart=`$as_dirname -- "$mf" || | 
|  | 34618 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34619 | X"$mf" : 'X\(//\)[^/]' \| \ | 
|  | 34620 | X"$mf" : 'X\(//\)$' \| \ | 
|  | 34621 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34622 | $as_echo X"$mf" | | 
|  | 34623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34624 | s//\1/ | 
|  | 34625 | q | 
|  | 34626 | } | 
|  | 34627 | /^X\(\/\/\)[^/].*/{ | 
|  | 34628 | s//\1/ | 
|  | 34629 | q | 
|  | 34630 | } | 
|  | 34631 | /^X\(\/\/\)$/{ | 
|  | 34632 | s//\1/ | 
|  | 34633 | q | 
|  | 34634 | } | 
|  | 34635 | /^X\(\/\).*/{ | 
|  | 34636 | s//\1/ | 
|  | 34637 | q | 
|  | 34638 | } | 
|  | 34639 | s/.*/./; q'` | 
|  | 34640 | else | 
|  | 34641 | continue | 
|  | 34642 | fi | 
|  | 34643 | # Extract the definition of DEPDIR, am__include, and am__quote | 
|  | 34644 | # from the Makefile without running `make'. | 
|  | 34645 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 
|  | 34646 | test -z "$DEPDIR" && continue | 
|  | 34647 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | 
|  | 34648 | test -z "am__include" && continue | 
|  | 34649 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | 
|  | 34650 | # When using ansi2knr, U may be empty or an underscore; expand it | 
|  | 34651 | U=`sed -n 's/^U = //p' < "$mf"` | 
|  | 34652 | # Find all dependency output files, they are included files with | 
|  | 34653 | # $(DEPDIR) in their names.  We invoke sed twice because it is the | 
|  | 34654 | # simplest approach to changing $(DEPDIR) to its actual value in the | 
|  | 34655 | # expansion. | 
|  | 34656 | for file in `sed -n " | 
|  | 34657 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | 
|  | 34658 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 
|  | 34659 | # Make sure the directory exists. | 
|  | 34660 | test -f "$dirpart/$file" && continue | 
|  | 34661 | fdir=`$as_dirname -- "$file" || | 
|  | 34662 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34663 | X"$file" : 'X\(//\)[^/]' \| \ | 
|  | 34664 | X"$file" : 'X\(//\)$' \| \ | 
|  | 34665 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34666 | $as_echo X"$file" | | 
|  | 34667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34668 | s//\1/ | 
|  | 34669 | q | 
|  | 34670 | } | 
|  | 34671 | /^X\(\/\/\)[^/].*/{ | 
|  | 34672 | s//\1/ | 
|  | 34673 | q | 
|  | 34674 | } | 
|  | 34675 | /^X\(\/\/\)$/{ | 
|  | 34676 | s//\1/ | 
|  | 34677 | q | 
|  | 34678 | } | 
|  | 34679 | /^X\(\/\).*/{ | 
|  | 34680 | s//\1/ | 
|  | 34681 | q | 
|  | 34682 | } | 
|  | 34683 | s/.*/./; q'` | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34684 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34685 | # echo "creating $dirpart/$file" | 
|  | 34686 | echo '# dummy' > "$dirpart/$file" | 
|  | 34687 | done | 
|  | 34688 | done | 
|  | 34689 | } | 
|  | 34690 | ;; | 
|  | 34691 | "libtool":C) | 
|  | 34692 |  | 
|  | 34693 | # See if we are running on zsh, and set the options which allow our | 
|  | 34694 | # commands through without removal of \ escapes. | 
|  | 34695 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 34696 | setopt NO_GLOB_SUBST | 
|  | 34697 | fi | 
|  | 34698 |  | 
|  | 34699 | cfgfile="${ofile}T" | 
|  | 34700 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | 
|  | 34701 | $RM "$cfgfile" | 
|  | 34702 |  | 
|  | 34703 | cat <<_LT_EOF >> "$cfgfile" | 
|  | 34704 | #! $SHELL | 
|  | 34705 |  | 
|  | 34706 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
|  | 34707 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | 
|  | 34708 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 34709 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|  | 34710 | # | 
|  | 34711 | #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34712 | #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 
|  | 34713 | #                 Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34714 | #   Written by Gordon Matzigkeit, 1996 | 
|  | 34715 | # | 
|  | 34716 | #   This file is part of GNU Libtool. | 
|  | 34717 | # | 
|  | 34718 | # GNU Libtool is free software; you can redistribute it and/or | 
|  | 34719 | # modify it under the terms of the GNU General Public License as | 
|  | 34720 | # published by the Free Software Foundation; either version 2 of | 
|  | 34721 | # the License, or (at your option) any later version. | 
|  | 34722 | # | 
|  | 34723 | # As a special exception to the GNU General Public License, | 
|  | 34724 | # if you distribute this file as part of a program or library that | 
|  | 34725 | # is built using GNU Libtool, you may include this file under the | 
|  | 34726 | # same distribution terms that you use for the rest of that program. | 
|  | 34727 | # | 
|  | 34728 | # GNU Libtool is distributed in the hope that it will be useful, | 
|  | 34729 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 34730 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|  | 34731 | # GNU General Public License for more details. | 
|  | 34732 | # | 
|  | 34733 | # You should have received a copy of the GNU General Public License | 
|  | 34734 | # along with GNU Libtool; see the file COPYING.  If not, a copy | 
|  | 34735 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | 
|  | 34736 | # obtained by writing to the Free Software Foundation, Inc., | 
|  | 34737 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
|  | 34738 |  | 
|  | 34739 |  | 
|  | 34740 | # The names of the tagged configurations supported by this script. | 
|  | 34741 | available_tags="CXX " | 
|  | 34742 |  | 
|  | 34743 | # ### BEGIN LIBTOOL CONFIG | 
|  | 34744 |  | 
|  | 34745 | # A sed program that does not truncate output. | 
|  | 34746 | SED=$lt_SED | 
|  | 34747 |  | 
|  | 34748 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
|  | 34749 | Xsed="\$SED -e 1s/^X//" | 
|  | 34750 |  | 
|  | 34751 | # A grep program that handles long lines. | 
|  | 34752 | GREP=$lt_GREP | 
|  | 34753 |  | 
|  | 34754 | # An ERE matcher. | 
|  | 34755 | EGREP=$lt_EGREP | 
|  | 34756 |  | 
|  | 34757 | # A literal string matcher. | 
|  | 34758 | FGREP=$lt_FGREP | 
|  | 34759 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34760 | # Shell to use when invoking shell scripts. | 
|  | 34761 | SHELL=$lt_SHELL | 
|  | 34762 |  | 
|  | 34763 | # An echo program that protects backslashes. | 
|  | 34764 | ECHO=$lt_ECHO | 
|  | 34765 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34766 | # Which release of libtool.m4 was used? | 
|  | 34767 | macro_version=$macro_version | 
|  | 34768 | macro_revision=$macro_revision | 
|  | 34769 |  | 
|  | 34770 | # Assembler program. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34771 | AS=$lt_AS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34772 |  | 
|  | 34773 | # DLL creation program. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34774 | DLLTOOL=$lt_DLLTOOL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34775 |  | 
|  | 34776 | # Object dumper program. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34777 | OBJDUMP=$lt_OBJDUMP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34778 |  | 
|  | 34779 | # Whether or not to build shared libraries. | 
|  | 34780 | build_libtool_libs=$enable_shared | 
|  | 34781 |  | 
|  | 34782 | # Whether or not to build static libraries. | 
|  | 34783 | build_old_libs=$enable_static | 
|  | 34784 |  | 
|  | 34785 | # What type of objects to build. | 
|  | 34786 | pic_mode=$pic_mode | 
|  | 34787 |  | 
|  | 34788 | # Whether or not to optimize for fast installation. | 
|  | 34789 | fast_install=$enable_fast_install | 
|  | 34790 |  | 
|  | 34791 | # The host system. | 
|  | 34792 | host_alias=$host_alias | 
|  | 34793 | host=$host | 
|  | 34794 | host_os=$host_os | 
|  | 34795 |  | 
|  | 34796 | # The build system. | 
|  | 34797 | build_alias=$build_alias | 
|  | 34798 | build=$build | 
|  | 34799 | build_os=$build_os | 
|  | 34800 |  | 
|  | 34801 | # A BSD- or MS-compatible name lister. | 
|  | 34802 | NM=$lt_NM | 
|  | 34803 |  | 
|  | 34804 | # Whether we need soft or hard links. | 
|  | 34805 | LN_S=$lt_LN_S | 
|  | 34806 |  | 
|  | 34807 | # What is the maximum length of a command? | 
|  | 34808 | max_cmd_len=$max_cmd_len | 
|  | 34809 |  | 
|  | 34810 | # Object file suffix (normally "o"). | 
|  | 34811 | objext=$ac_objext | 
|  | 34812 |  | 
|  | 34813 | # Executable file suffix (normally ""). | 
|  | 34814 | exeext=$exeext | 
|  | 34815 |  | 
|  | 34816 | # whether the shell understands "unset". | 
|  | 34817 | lt_unset=$lt_unset | 
|  | 34818 |  | 
|  | 34819 | # turn spaces into newlines. | 
|  | 34820 | SP2NL=$lt_lt_SP2NL | 
|  | 34821 |  | 
|  | 34822 | # turn newlines into spaces. | 
|  | 34823 | NL2SP=$lt_lt_NL2SP | 
|  | 34824 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34825 | # Method to check whether dependent libraries are shared objects. | 
|  | 34826 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 34827 |  | 
|  | 34828 | # Command to use when deplibs_check_method == "file_magic". | 
|  | 34829 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 34830 |  | 
|  | 34831 | # The archiver. | 
|  | 34832 | AR=$lt_AR | 
|  | 34833 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 34834 |  | 
|  | 34835 | # A symbol stripping program. | 
|  | 34836 | STRIP=$lt_STRIP | 
|  | 34837 |  | 
|  | 34838 | # Commands used to install an old-style archive. | 
|  | 34839 | RANLIB=$lt_RANLIB | 
|  | 34840 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 34841 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 34842 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34843 | # Whether to use a lock for old archive extraction. | 
|  | 34844 | lock_old_archive_extraction=$lock_old_archive_extraction | 
|  | 34845 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34846 | # A C compiler. | 
|  | 34847 | LTCC=$lt_CC | 
|  | 34848 |  | 
|  | 34849 | # LTCC compiler flags. | 
|  | 34850 | LTCFLAGS=$lt_CFLAGS | 
|  | 34851 |  | 
|  | 34852 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 34853 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 34854 |  | 
|  | 34855 | # Transform the output of nm in a proper C declaration. | 
|  | 34856 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 34857 |  | 
|  | 34858 | # Transform the output of nm in a C name address pair. | 
|  | 34859 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 34860 |  | 
|  | 34861 | # Transform the output of nm in a C name address pair when lib prefix is needed. | 
|  | 34862 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | 
|  | 34863 |  | 
|  | 34864 | # The name of the directory that contains temporary libtool files. | 
|  | 34865 | objdir=$objdir | 
|  | 34866 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34867 | # Used to examine libraries when file_magic_cmd begins with "file". | 
|  | 34868 | MAGIC_CMD=$MAGIC_CMD | 
|  | 34869 |  | 
|  | 34870 | # Must we lock files when doing compilation? | 
|  | 34871 | need_locks=$lt_need_locks | 
|  | 34872 |  | 
|  | 34873 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | 
|  | 34874 | DSYMUTIL=$lt_DSYMUTIL | 
|  | 34875 |  | 
|  | 34876 | # Tool to change global to local symbols on Mac OS X. | 
|  | 34877 | NMEDIT=$lt_NMEDIT | 
|  | 34878 |  | 
|  | 34879 | # Tool to manipulate fat objects and archives on Mac OS X. | 
|  | 34880 | LIPO=$lt_LIPO | 
|  | 34881 |  | 
|  | 34882 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | 
|  | 34883 | OTOOL=$lt_OTOOL | 
|  | 34884 |  | 
|  | 34885 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | 
|  | 34886 | OTOOL64=$lt_OTOOL64 | 
|  | 34887 |  | 
|  | 34888 | # Old archive suffix (normally "a"). | 
|  | 34889 | libext=$libext | 
|  | 34890 |  | 
|  | 34891 | # Shared library suffix (normally ".so"). | 
|  | 34892 | shrext_cmds=$lt_shrext_cmds | 
|  | 34893 |  | 
|  | 34894 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 34895 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 34896 |  | 
|  | 34897 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 34898 | # restored at link time. | 
|  | 34899 | variables_saved_for_relink=$lt_variables_saved_for_relink | 
|  | 34900 |  | 
|  | 34901 | # Do we need the "lib" prefix for modules? | 
|  | 34902 | need_lib_prefix=$need_lib_prefix | 
|  | 34903 |  | 
|  | 34904 | # Do we need a version for libraries? | 
|  | 34905 | need_version=$need_version | 
|  | 34906 |  | 
|  | 34907 | # Library versioning type. | 
|  | 34908 | version_type=$version_type | 
|  | 34909 |  | 
|  | 34910 | # Shared library runtime path variable. | 
|  | 34911 | runpath_var=$runpath_var | 
|  | 34912 |  | 
|  | 34913 | # Shared library path variable. | 
|  | 34914 | shlibpath_var=$shlibpath_var | 
|  | 34915 |  | 
|  | 34916 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 34917 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 34918 |  | 
|  | 34919 | # Format of library name prefix. | 
|  | 34920 | libname_spec=$lt_libname_spec | 
|  | 34921 |  | 
|  | 34922 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 34923 | # The last name is the one that the linker finds with -lNAME | 
|  | 34924 | library_names_spec=$lt_library_names_spec | 
|  | 34925 |  | 
|  | 34926 | # The coded name of the library, if different from the real name. | 
|  | 34927 | soname_spec=$lt_soname_spec | 
|  | 34928 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34929 | # Permission mode override for installation of shared libraries. | 
|  | 34930 | install_override_mode=$lt_install_override_mode | 
|  | 34931 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34932 | # Command to use after installation of a shared archive. | 
|  | 34933 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 34934 |  | 
|  | 34935 | # Command to use after uninstallation of a shared archive. | 
|  | 34936 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 34937 |  | 
|  | 34938 | # Commands used to finish a libtool library installation in a directory. | 
|  | 34939 | finish_cmds=$lt_finish_cmds | 
|  | 34940 |  | 
|  | 34941 | # As "finish_cmds", except a single script fragment to be evaled but | 
|  | 34942 | # not shown. | 
|  | 34943 | finish_eval=$lt_finish_eval | 
|  | 34944 |  | 
|  | 34945 | # Whether we should hardcode library paths into libraries. | 
|  | 34946 | hardcode_into_libs=$hardcode_into_libs | 
|  | 34947 |  | 
|  | 34948 | # Compile-time system search path for libraries. | 
|  | 34949 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 34950 |  | 
|  | 34951 | # Run-time system search path for libraries. | 
|  | 34952 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 34953 |  | 
|  | 34954 | # Whether dlopen is supported. | 
|  | 34955 | dlopen_support=$enable_dlopen | 
|  | 34956 |  | 
|  | 34957 | # Whether dlopen of programs is supported. | 
|  | 34958 | dlopen_self=$enable_dlopen_self | 
|  | 34959 |  | 
|  | 34960 | # Whether dlopen of statically linked programs is supported. | 
|  | 34961 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 34962 |  | 
|  | 34963 | # Commands to strip libraries. | 
|  | 34964 | old_striplib=$lt_old_striplib | 
|  | 34965 | striplib=$lt_striplib | 
|  | 34966 |  | 
|  | 34967 |  | 
|  | 34968 | # The linker used to build libraries. | 
|  | 34969 | LD=$lt_LD | 
|  | 34970 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 34971 | # How to create reloadable object files. | 
|  | 34972 | reload_flag=$lt_reload_flag | 
|  | 34973 | reload_cmds=$lt_reload_cmds | 
|  | 34974 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34975 | # Commands used to build an old-style archive. | 
|  | 34976 | old_archive_cmds=$lt_old_archive_cmds | 
|  | 34977 |  | 
|  | 34978 | # A language specific compiler. | 
|  | 34979 | CC=$lt_compiler | 
|  | 34980 |  | 
|  | 34981 | # Is the compiler the GNU compiler? | 
|  | 34982 | with_gcc=$GCC | 
|  | 34983 |  | 
|  | 34984 | # Compiler flag to turn off builtin functions. | 
|  | 34985 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
|  | 34986 |  | 
|  | 34987 | # How to pass a linker flag through the compiler. | 
|  | 34988 | wl=$lt_lt_prog_compiler_wl | 
|  | 34989 |  | 
|  | 34990 | # Additional compiler flags for building library objects. | 
|  | 34991 | pic_flag=$lt_lt_prog_compiler_pic | 
|  | 34992 |  | 
|  | 34993 | # Compiler flag to prevent dynamic linking. | 
|  | 34994 | link_static_flag=$lt_lt_prog_compiler_static | 
|  | 34995 |  | 
|  | 34996 | # Does compiler simultaneously support -c and -o options? | 
|  | 34997 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
|  | 34998 |  | 
|  | 34999 | # Whether or not to add -lc for building shared libraries. | 
|  | 35000 | build_libtool_need_lc=$archive_cmds_need_lc | 
|  | 35001 |  | 
|  | 35002 | # Whether or not to disallow shared libs when runtime libs are static. | 
|  | 35003 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
|  | 35004 |  | 
|  | 35005 | # Compiler flag to allow reflexive dlopens. | 
|  | 35006 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|  | 35007 |  | 
|  | 35008 | # Compiler flag to generate shared objects directly from archives. | 
|  | 35009 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|  | 35010 |  | 
|  | 35011 | # Whether the compiler copes with passing no objects directly. | 
|  | 35012 | compiler_needs_object=$lt_compiler_needs_object | 
|  | 35013 |  | 
|  | 35014 | # Create an old-style archive from a shared archive. | 
|  | 35015 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|  | 35016 |  | 
|  | 35017 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 35018 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|  | 35019 |  | 
|  | 35020 | # Commands used to build a shared archive. | 
|  | 35021 | archive_cmds=$lt_archive_cmds | 
|  | 35022 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|  | 35023 |  | 
|  | 35024 | # Commands used to build a loadable module if different from building | 
|  | 35025 | # a shared archive. | 
|  | 35026 | module_cmds=$lt_module_cmds | 
|  | 35027 | module_expsym_cmds=$lt_module_expsym_cmds | 
|  | 35028 |  | 
|  | 35029 | # Whether we are building with GNU ld or not. | 
|  | 35030 | with_gnu_ld=$lt_with_gnu_ld | 
|  | 35031 |  | 
|  | 35032 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 35033 | allow_undefined_flag=$lt_allow_undefined_flag | 
|  | 35034 |  | 
|  | 35035 | # Flag that enforces no undefined symbols. | 
|  | 35036 | no_undefined_flag=$lt_no_undefined_flag | 
|  | 35037 |  | 
|  | 35038 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 35039 | # This must work even if \$libdir does not exist | 
|  | 35040 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|  | 35041 |  | 
|  | 35042 | # If ld is used when linking, flag to hardcode \$libdir into a binary | 
|  | 35043 | # during linking.  This must work even if \$libdir does not exist. | 
|  | 35044 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
|  | 35045 |  | 
|  | 35046 | # Whether we need a single "-rpath" flag with a separated argument. | 
|  | 35047 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|  | 35048 |  | 
|  | 35049 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 35050 | # DIR into the resulting binary. | 
|  | 35051 | hardcode_direct=$hardcode_direct | 
|  | 35052 |  | 
|  | 35053 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 35054 | # DIR into the resulting binary and the resulting library dependency is | 
|  | 35055 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
|  | 35056 | # library is relocated. | 
|  | 35057 | hardcode_direct_absolute=$hardcode_direct_absolute | 
|  | 35058 |  | 
|  | 35059 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
|  | 35060 | # into the resulting binary. | 
|  | 35061 | hardcode_minus_L=$hardcode_minus_L | 
|  | 35062 |  | 
|  | 35063 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
|  | 35064 | # into the resulting binary. | 
|  | 35065 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|  | 35066 |  | 
|  | 35067 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
|  | 35068 | # into the library and all subsequent libraries and executables linked | 
|  | 35069 | # against it. | 
|  | 35070 | hardcode_automatic=$hardcode_automatic | 
|  | 35071 |  | 
|  | 35072 | # Set to yes if linker adds runtime paths of dependent libraries | 
|  | 35073 | # to runtime path list. | 
|  | 35074 | inherit_rpath=$inherit_rpath | 
|  | 35075 |  | 
|  | 35076 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 35077 | link_all_deplibs=$link_all_deplibs | 
|  | 35078 |  | 
|  | 35079 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 35080 | fix_srcfile_path=$lt_fix_srcfile_path | 
|  | 35081 |  | 
|  | 35082 | # Set to "yes" if exported symbols are required. | 
|  | 35083 | always_export_symbols=$always_export_symbols | 
|  | 35084 |  | 
|  | 35085 | # The commands to list exported symbols. | 
|  | 35086 | export_symbols_cmds=$lt_export_symbols_cmds | 
|  | 35087 |  | 
|  | 35088 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 35089 | exclude_expsyms=$lt_exclude_expsyms | 
|  | 35090 |  | 
|  | 35091 | # Symbols that must always be exported. | 
|  | 35092 | include_expsyms=$lt_include_expsyms | 
|  | 35093 |  | 
|  | 35094 | # Commands necessary for linking programs (against libraries) with templates. | 
|  | 35095 | prelink_cmds=$lt_prelink_cmds | 
|  | 35096 |  | 
|  | 35097 | # Specify filename containing input files. | 
|  | 35098 | file_list_spec=$lt_file_list_spec | 
|  | 35099 |  | 
|  | 35100 | # How to hardcode a shared library path into an executable. | 
|  | 35101 | hardcode_action=$hardcode_action | 
|  | 35102 |  | 
|  | 35103 | # The directories searched by this compiler when creating a shared library. | 
|  | 35104 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | 
|  | 35105 |  | 
|  | 35106 | # Dependencies to place before and after the objects being linked to | 
|  | 35107 | # create a shared library. | 
|  | 35108 | predep_objects=$lt_predep_objects | 
|  | 35109 | postdep_objects=$lt_postdep_objects | 
|  | 35110 | predeps=$lt_predeps | 
|  | 35111 | postdeps=$lt_postdeps | 
|  | 35112 |  | 
|  | 35113 | # The library search path used internally by the compiler when linking | 
|  | 35114 | # a shared library. | 
|  | 35115 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
|  | 35116 |  | 
|  | 35117 | # ### END LIBTOOL CONFIG | 
|  | 35118 |  | 
|  | 35119 | _LT_EOF | 
|  | 35120 |  | 
|  | 35121 | case $host_os in | 
|  | 35122 | aix3*) | 
|  | 35123 | cat <<\_LT_EOF >> "$cfgfile" | 
|  | 35124 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 35125 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 35126 | # vanish in a puff of smoke. | 
|  | 35127 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 35128 | COLLECT_NAMES= | 
|  | 35129 | export COLLECT_NAMES | 
|  | 35130 | fi | 
|  | 35131 | _LT_EOF | 
|  | 35132 | ;; | 
|  | 35133 | esac | 
|  | 35134 |  | 
|  | 35135 |  | 
|  | 35136 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 35137 |  | 
|  | 35138 |  | 
|  | 35139 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|  | 35140 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|  | 35141 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|  | 35142 | # is reportedly fixed, but why not run on old versions too? | 
|  | 35143 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | 
|  | 35144 | || (rm -f "$cfgfile"; exit 1) | 
|  | 35145 |  | 
|  | 35146 | case $xsi_shell in | 
|  | 35147 | yes) | 
|  | 35148 | cat << \_LT_EOF >> "$cfgfile" | 
|  | 35149 |  | 
|  | 35150 | # func_dirname file append nondir_replacement | 
|  | 35151 | # Compute the dirname of FILE.  If nonempty, add APPEND to the result, | 
|  | 35152 | # otherwise set result to NONDIR_REPLACEMENT. | 
|  | 35153 | func_dirname () | 
|  | 35154 | { | 
|  | 35155 | case ${1} in | 
|  | 35156 | */*) func_dirname_result="${1%/*}${2}" ;; | 
|  | 35157 | *  ) func_dirname_result="${3}" ;; | 
|  | 35158 | esac | 
|  | 35159 | } | 
|  | 35160 |  | 
|  | 35161 | # func_basename file | 
|  | 35162 | func_basename () | 
|  | 35163 | { | 
|  | 35164 | func_basename_result="${1##*/}" | 
|  | 35165 | } | 
|  | 35166 |  | 
|  | 35167 | # func_dirname_and_basename file append nondir_replacement | 
|  | 35168 | # perform func_basename and func_dirname in a single function | 
|  | 35169 | # call: | 
|  | 35170 | #   dirname:  Compute the dirname of FILE.  If nonempty, | 
|  | 35171 | #             add APPEND to the result, otherwise set result | 
|  | 35172 | #             to NONDIR_REPLACEMENT. | 
|  | 35173 | #             value returned in "$func_dirname_result" | 
|  | 35174 | #   basename: Compute filename of FILE. | 
|  | 35175 | #             value retuned in "$func_basename_result" | 
|  | 35176 | # Implementation must be kept synchronized with func_dirname | 
|  | 35177 | # and func_basename. For efficiency, we do not delegate to | 
|  | 35178 | # those functions but instead duplicate the functionality here. | 
|  | 35179 | func_dirname_and_basename () | 
|  | 35180 | { | 
|  | 35181 | case ${1} in | 
|  | 35182 | */*) func_dirname_result="${1%/*}${2}" ;; | 
|  | 35183 | *  ) func_dirname_result="${3}" ;; | 
|  | 35184 | esac | 
|  | 35185 | func_basename_result="${1##*/}" | 
|  | 35186 | } | 
|  | 35187 |  | 
|  | 35188 | # func_stripname prefix suffix name | 
|  | 35189 | # strip PREFIX and SUFFIX off of NAME. | 
|  | 35190 | # PREFIX and SUFFIX must not contain globbing or regex special | 
|  | 35191 | # characters, hashes, percent signs, but SUFFIX may contain a leading | 
|  | 35192 | # dot (in which case that matches only a dot). | 
|  | 35193 | func_stripname () | 
|  | 35194 | { | 
|  | 35195 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | 
|  | 35196 | # positional parameters, so assign one to ordinary parameter first. | 
|  | 35197 | func_stripname_result=${3} | 
|  | 35198 | func_stripname_result=${func_stripname_result#"${1}"} | 
|  | 35199 | func_stripname_result=${func_stripname_result%"${2}"} | 
|  | 35200 | } | 
|  | 35201 |  | 
|  | 35202 | # func_opt_split | 
|  | 35203 | func_opt_split () | 
|  | 35204 | { | 
|  | 35205 | func_opt_split_opt=${1%%=*} | 
|  | 35206 | func_opt_split_arg=${1#*=} | 
|  | 35207 | } | 
|  | 35208 |  | 
|  | 35209 | # func_lo2o object | 
|  | 35210 | func_lo2o () | 
|  | 35211 | { | 
|  | 35212 | case ${1} in | 
|  | 35213 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | 
|  | 35214 | *)    func_lo2o_result=${1} ;; | 
|  | 35215 | esac | 
|  | 35216 | } | 
|  | 35217 |  | 
|  | 35218 | # func_xform libobj-or-source | 
|  | 35219 | func_xform () | 
|  | 35220 | { | 
|  | 35221 | func_xform_result=${1%.*}.lo | 
|  | 35222 | } | 
|  | 35223 |  | 
|  | 35224 | # func_arith arithmetic-term... | 
|  | 35225 | func_arith () | 
|  | 35226 | { | 
|  | 35227 | func_arith_result=$(( $* )) | 
|  | 35228 | } | 
|  | 35229 |  | 
|  | 35230 | # func_len string | 
|  | 35231 | # STRING may not start with a hyphen. | 
|  | 35232 | func_len () | 
|  | 35233 | { | 
|  | 35234 | func_len_result=${#1} | 
|  | 35235 | } | 
|  | 35236 |  | 
|  | 35237 | _LT_EOF | 
|  | 35238 | ;; | 
|  | 35239 | *) # Bourne compatible functions. | 
|  | 35240 | cat << \_LT_EOF >> "$cfgfile" | 
|  | 35241 |  | 
|  | 35242 | # func_dirname file append nondir_replacement | 
|  | 35243 | # Compute the dirname of FILE.  If nonempty, add APPEND to the result, | 
|  | 35244 | # otherwise set result to NONDIR_REPLACEMENT. | 
|  | 35245 | func_dirname () | 
|  | 35246 | { | 
|  | 35247 | # Extract subdirectory from the argument. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35248 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35249 | if test "X$func_dirname_result" = "X${1}"; then | 
|  | 35250 | func_dirname_result="${3}" | 
|  | 35251 | else | 
|  | 35252 | func_dirname_result="$func_dirname_result${2}" | 
|  | 35253 | fi | 
|  | 35254 | } | 
|  | 35255 |  | 
|  | 35256 | # func_basename file | 
|  | 35257 | func_basename () | 
|  | 35258 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35259 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35260 | } | 
|  | 35261 |  | 
|  | 35262 |  | 
|  | 35263 | # func_stripname prefix suffix name | 
|  | 35264 | # strip PREFIX and SUFFIX off of NAME. | 
|  | 35265 | # PREFIX and SUFFIX must not contain globbing or regex special | 
|  | 35266 | # characters, hashes, percent signs, but SUFFIX may contain a leading | 
|  | 35267 | # dot (in which case that matches only a dot). | 
|  | 35268 | # func_strip_suffix prefix name | 
|  | 35269 | func_stripname () | 
|  | 35270 | { | 
|  | 35271 | case ${2} in | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35272 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | 
|  | 35273 | *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35274 | esac | 
|  | 35275 | } | 
|  | 35276 |  | 
|  | 35277 | # sed scripts: | 
|  | 35278 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | 
|  | 35279 | my_sed_long_arg='1s/^-[^=]*=//' | 
|  | 35280 |  | 
|  | 35281 | # func_opt_split | 
|  | 35282 | func_opt_split () | 
|  | 35283 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35284 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | 
|  | 35285 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35286 | } | 
|  | 35287 |  | 
|  | 35288 | # func_lo2o object | 
|  | 35289 | func_lo2o () | 
|  | 35290 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35291 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35292 | } | 
|  | 35293 |  | 
|  | 35294 | # func_xform libobj-or-source | 
|  | 35295 | func_xform () | 
|  | 35296 | { | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35297 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35298 | } | 
|  | 35299 |  | 
|  | 35300 | # func_arith arithmetic-term... | 
|  | 35301 | func_arith () | 
|  | 35302 | { | 
|  | 35303 | func_arith_result=`expr "$@"` | 
|  | 35304 | } | 
|  | 35305 |  | 
|  | 35306 | # func_len string | 
|  | 35307 | # STRING may not start with a hyphen. | 
|  | 35308 | func_len () | 
|  | 35309 | { | 
|  | 35310 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | 
|  | 35311 | } | 
|  | 35312 |  | 
|  | 35313 | _LT_EOF | 
|  | 35314 | esac | 
|  | 35315 |  | 
|  | 35316 | case $lt_shell_append in | 
|  | 35317 | yes) | 
|  | 35318 | cat << \_LT_EOF >> "$cfgfile" | 
|  | 35319 |  | 
|  | 35320 | # func_append var value | 
|  | 35321 | # Append VALUE to the end of shell variable VAR. | 
|  | 35322 | func_append () | 
|  | 35323 | { | 
|  | 35324 | eval "$1+=\$2" | 
|  | 35325 | } | 
|  | 35326 | _LT_EOF | 
|  | 35327 | ;; | 
|  | 35328 | *) | 
|  | 35329 | cat << \_LT_EOF >> "$cfgfile" | 
|  | 35330 |  | 
|  | 35331 | # func_append var value | 
|  | 35332 | # Append VALUE to the end of shell variable VAR. | 
|  | 35333 | func_append () | 
|  | 35334 | { | 
|  | 35335 | eval "$1=\$$1\$2" | 
|  | 35336 | } | 
|  | 35337 |  | 
|  | 35338 | _LT_EOF | 
|  | 35339 | ;; | 
|  | 35340 | esac | 
|  | 35341 |  | 
|  | 35342 |  | 
|  | 35343 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | 
|  | 35344 | || (rm -f "$cfgfile"; exit 1) | 
|  | 35345 |  | 
|  | 35346 | mv -f "$cfgfile" "$ofile" || | 
|  | 35347 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
|  | 35348 | chmod +x "$ofile" | 
|  | 35349 |  | 
|  | 35350 |  | 
|  | 35351 | cat <<_LT_EOF >> "$ofile" | 
|  | 35352 |  | 
|  | 35353 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | 
|  | 35354 |  | 
|  | 35355 | # The linker used to build libraries. | 
|  | 35356 | LD=$lt_LD_CXX | 
|  | 35357 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35358 | # How to create reloadable object files. | 
|  | 35359 | reload_flag=$lt_reload_flag_CXX | 
|  | 35360 | reload_cmds=$lt_reload_cmds_CXX | 
|  | 35361 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35362 | # Commands used to build an old-style archive. | 
|  | 35363 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
|  | 35364 |  | 
|  | 35365 | # A language specific compiler. | 
|  | 35366 | CC=$lt_compiler_CXX | 
|  | 35367 |  | 
|  | 35368 | # Is the compiler the GNU compiler? | 
|  | 35369 | with_gcc=$GCC_CXX | 
|  | 35370 |  | 
|  | 35371 | # Compiler flag to turn off builtin functions. | 
|  | 35372 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
|  | 35373 |  | 
|  | 35374 | # How to pass a linker flag through the compiler. | 
|  | 35375 | wl=$lt_lt_prog_compiler_wl_CXX | 
|  | 35376 |  | 
|  | 35377 | # Additional compiler flags for building library objects. | 
|  | 35378 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
|  | 35379 |  | 
|  | 35380 | # Compiler flag to prevent dynamic linking. | 
|  | 35381 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
|  | 35382 |  | 
|  | 35383 | # Does compiler simultaneously support -c and -o options? | 
|  | 35384 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
|  | 35385 |  | 
|  | 35386 | # Whether or not to add -lc for building shared libraries. | 
|  | 35387 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
|  | 35388 |  | 
|  | 35389 | # Whether or not to disallow shared libs when runtime libs are static. | 
|  | 35390 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
|  | 35391 |  | 
|  | 35392 | # Compiler flag to allow reflexive dlopens. | 
|  | 35393 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
|  | 35394 |  | 
|  | 35395 | # Compiler flag to generate shared objects directly from archives. | 
|  | 35396 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
|  | 35397 |  | 
|  | 35398 | # Whether the compiler copes with passing no objects directly. | 
|  | 35399 | compiler_needs_object=$lt_compiler_needs_object_CXX | 
|  | 35400 |  | 
|  | 35401 | # Create an old-style archive from a shared archive. | 
|  | 35402 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
|  | 35403 |  | 
|  | 35404 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 35405 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
|  | 35406 |  | 
|  | 35407 | # Commands used to build a shared archive. | 
|  | 35408 | archive_cmds=$lt_archive_cmds_CXX | 
|  | 35409 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
|  | 35410 |  | 
|  | 35411 | # Commands used to build a loadable module if different from building | 
|  | 35412 | # a shared archive. | 
|  | 35413 | module_cmds=$lt_module_cmds_CXX | 
|  | 35414 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
|  | 35415 |  | 
|  | 35416 | # Whether we are building with GNU ld or not. | 
|  | 35417 | with_gnu_ld=$lt_with_gnu_ld_CXX | 
|  | 35418 |  | 
|  | 35419 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 35420 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
|  | 35421 |  | 
|  | 35422 | # Flag that enforces no undefined symbols. | 
|  | 35423 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
|  | 35424 |  | 
|  | 35425 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 35426 | # This must work even if \$libdir does not exist | 
|  | 35427 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
|  | 35428 |  | 
|  | 35429 | # If ld is used when linking, flag to hardcode \$libdir into a binary | 
|  | 35430 | # during linking.  This must work even if \$libdir does not exist. | 
|  | 35431 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
|  | 35432 |  | 
|  | 35433 | # Whether we need a single "-rpath" flag with a separated argument. | 
|  | 35434 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
|  | 35435 |  | 
|  | 35436 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 35437 | # DIR into the resulting binary. | 
|  | 35438 | hardcode_direct=$hardcode_direct_CXX | 
|  | 35439 |  | 
|  | 35440 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 35441 | # DIR into the resulting binary and the resulting library dependency is | 
|  | 35442 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
|  | 35443 | # library is relocated. | 
|  | 35444 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | 
|  | 35445 |  | 
|  | 35446 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
|  | 35447 | # into the resulting binary. | 
|  | 35448 | hardcode_minus_L=$hardcode_minus_L_CXX | 
|  | 35449 |  | 
|  | 35450 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
|  | 35451 | # into the resulting binary. | 
|  | 35452 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
|  | 35453 |  | 
|  | 35454 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
|  | 35455 | # into the library and all subsequent libraries and executables linked | 
|  | 35456 | # against it. | 
|  | 35457 | hardcode_automatic=$hardcode_automatic_CXX | 
|  | 35458 |  | 
|  | 35459 | # Set to yes if linker adds runtime paths of dependent libraries | 
|  | 35460 | # to runtime path list. | 
|  | 35461 | inherit_rpath=$inherit_rpath_CXX | 
|  | 35462 |  | 
|  | 35463 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 35464 | link_all_deplibs=$link_all_deplibs_CXX | 
|  | 35465 |  | 
|  | 35466 | # Fix the shell variable \$srcfile for the compiler. | 
|  | 35467 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | 
|  | 35468 |  | 
|  | 35469 | # Set to "yes" if exported symbols are required. | 
|  | 35470 | always_export_symbols=$always_export_symbols_CXX | 
|  | 35471 |  | 
|  | 35472 | # The commands to list exported symbols. | 
|  | 35473 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
|  | 35474 |  | 
|  | 35475 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 35476 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
|  | 35477 |  | 
|  | 35478 | # Symbols that must always be exported. | 
|  | 35479 | include_expsyms=$lt_include_expsyms_CXX | 
|  | 35480 |  | 
|  | 35481 | # Commands necessary for linking programs (against libraries) with templates. | 
|  | 35482 | prelink_cmds=$lt_prelink_cmds_CXX | 
|  | 35483 |  | 
|  | 35484 | # Specify filename containing input files. | 
|  | 35485 | file_list_spec=$lt_file_list_spec_CXX | 
|  | 35486 |  | 
|  | 35487 | # How to hardcode a shared library path into an executable. | 
|  | 35488 | hardcode_action=$hardcode_action_CXX | 
|  | 35489 |  | 
|  | 35490 | # The directories searched by this compiler when creating a shared library. | 
|  | 35491 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | 
|  | 35492 |  | 
|  | 35493 | # Dependencies to place before and after the objects being linked to | 
|  | 35494 | # create a shared library. | 
|  | 35495 | predep_objects=$lt_predep_objects_CXX | 
|  | 35496 | postdep_objects=$lt_postdep_objects_CXX | 
|  | 35497 | predeps=$lt_predeps_CXX | 
|  | 35498 | postdeps=$lt_postdeps_CXX | 
|  | 35499 |  | 
|  | 35500 | # The library search path used internally by the compiler when linking | 
|  | 35501 | # a shared library. | 
|  | 35502 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
|  | 35503 |  | 
|  | 35504 | # ### END LIBTOOL TAG CONFIG: CXX | 
|  | 35505 | _LT_EOF | 
|  | 35506 |  | 
|  | 35507 | ;; | 
|  | 35508 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; | 
|  | 35509 | "Magick-config.in":C) chmod +x magick/Magick-config ;; | 
|  | 35510 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; | 
|  | 35511 | "Wand-config.in":C) chmod +x wand/Wand-config ;; | 
|  | 35512 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; | 
|  | 35513 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; | 
|  | 35514 |  | 
|  | 35515 | esac | 
|  | 35516 | done # for ac_tag | 
|  | 35517 |  | 
|  | 35518 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35519 | as_fn_exit 0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35520 | _ACEOF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35521 | ac_clean_files=$ac_clean_files_save | 
|  | 35522 |  | 
|  | 35523 | test $ac_write_fail = 0 || | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35524 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35525 |  | 
|  | 35526 |  | 
|  | 35527 | # configure is writing to config.log, and then calls config.status. | 
|  | 35528 | # config.status does its own redirection, appending to config.log. | 
|  | 35529 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 35530 | # by configure, so config.status won't be able to write to it; its | 
|  | 35531 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 35532 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 35533 | # appended to by config.status.  When coming back to configure, we | 
|  | 35534 | # need to make the FD available again. | 
|  | 35535 | if test "$no_create" != yes; then | 
|  | 35536 | ac_cs_success=: | 
|  | 35537 | ac_config_status_args= | 
|  | 35538 | test "$silent" = yes && | 
|  | 35539 | ac_config_status_args="$ac_config_status_args --quiet" | 
|  | 35540 | exec 5>/dev/null | 
|  | 35541 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
|  | 35542 | exec 5>>config.log | 
|  | 35543 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 35544 | # would make configure fail if this is the last instruction. | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35545 | $ac_cs_success || as_fn_exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35546 | fi | 
|  | 35547 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35548 | { $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] | 35549 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
|  | 35550 | fi | 
|  | 35551 |  | 
|  | 35552 |  | 
|  | 35553 | rm -f magick-version | 
|  | 35554 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 35555 | result_dejavu_font_dir='none' | 
|  | 35556 | if test "${dejavu_font_dir}x" != 'x'; then | 
|  | 35557 | result_dejavu_font_dir=$dejavu_font_dir | 
|  | 35558 | fi | 
|  | 35559 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35560 | result_ghostscript_font_dir='none' | 
|  | 35561 | if test "${ghostscript_font_dir}x" != 'x'; then | 
|  | 35562 | result_ghostscript_font_dir=$ghostscript_font_dir | 
|  | 35563 | fi | 
|  | 35564 |  | 
|  | 35565 | result_windows_font_dir='none' | 
|  | 35566 | if test "${windows_font_dir}x" != 'x'; then | 
|  | 35567 | result_windows_font_dir=${windows_font_dir} | 
|  | 35568 | fi | 
|  | 35569 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35571 | ImageMagick is configured as follows. Please verify that this configuration | 
|  | 35572 | matches your expectations. | 
|  | 35573 |  | 
|  | 35574 | Host system type: $host | 
|  | 35575 | Build system type: $build | 
|  | 35576 |  | 
|  | 35577 | Option                        Value | 
|  | 35578 | ------------------------------------------------------------------------------- | 
|  | 35579 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
|  | 35580 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
|  | 35581 | Module support    --with-modules=$with_modules		$with_modules | 
|  | 35582 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
|  | 35583 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
|  | 35584 | High Dynamic Range Imagery | 
|  | 35585 | --enable-hdri=$enable_hdri		$enable_hdri | 
|  | 35586 |  | 
|  | 35587 | Delegate Configuration: | 
|  | 35588 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
|  | 35589 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 35590 | 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] | 35591 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
|  | 35592 | DPS               --with-dps=$with_dps		$have_dps | 
|  | 35593 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
|  | 35594 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
|  | 35595 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
|  | 35596 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
|  | 35597 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
|  | 35598 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
|  | 35599 | Ghostscript       None				$PSDelegate ($GSVersion) | 
|  | 35600 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
|  | 35601 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
|  | 35602 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
|  | 35603 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
|  | 35604 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
|  | 35605 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 35606 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
|  | 35607 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35608 | LQR               --with-lqr=$with_lqr		$have_lqr | 
|  | 35609 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
|  | 35610 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
|  | 35611 | PERL              --with-perl=$with_perl		$have_perl | 
|  | 35612 | PNG               --with-png=$with_png		$have_png | 
|  | 35613 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
|  | 35614 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
|  | 35615 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
|  | 35616 | WMF               --with-wmf=$with_wmf		$have_wmf | 
|  | 35617 | X11               --with-x=$with_x			$have_x | 
|  | 35618 | XML               --with-xml=$with_xml		$have_xml | 
|  | 35619 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
|  | 35620 |  | 
|  | 35621 | X11 Configuration: | 
|  | 35622 | X_CFLAGS        = $X_CFLAGS | 
|  | 35623 | X_PRE_LIBS      = $X_PRE_LIBS | 
|  | 35624 | X_LIBS          = $X_LIBS | 
|  | 35625 | X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
|  | 35626 |  | 
|  | 35627 | Options used to compile and link: | 
|  | 35628 | PREFIX          = $PREFIX_DIR | 
|  | 35629 | EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
|  | 35630 | VERSION         = $PACKAGE_VERSION | 
|  | 35631 | CC              = $CC | 
|  | 35632 | CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35633 | CPPFLAGS        = $MAGICK_CPPFLAGS | 
|  | 35634 | PCFLAGS         = $MAGICK_PCFLAGS | 
|  | 35635 | DEFS            = $DEFS | 
|  | 35636 | LDFLAGS         = $LDFLAGS | 
|  | 35637 | MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
|  | 35638 | LIBS            = $MAGICK_LIBS | 
|  | 35639 | CXX             = $CXX | 
|  | 35640 | CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35641 | FEATURES        = $MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35642 | " >&5 | 
|  | 35643 | $as_echo " | 
|  | 35644 | ImageMagick is configured as follows. Please verify that this configuration | 
|  | 35645 | matches your expectations. | 
|  | 35646 |  | 
|  | 35647 | Host system type: $host | 
|  | 35648 | Build system type: $build | 
|  | 35649 |  | 
|  | 35650 | Option                        Value | 
|  | 35651 | ------------------------------------------------------------------------------- | 
|  | 35652 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
|  | 35653 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
|  | 35654 | Module support    --with-modules=$with_modules		$with_modules | 
|  | 35655 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
|  | 35656 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
|  | 35657 | High Dynamic Range Imagery | 
|  | 35658 | --enable-hdri=$enable_hdri		$enable_hdri | 
|  | 35659 |  | 
|  | 35660 | Delegate Configuration: | 
|  | 35661 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
|  | 35662 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 35663 | 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] | 35664 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
|  | 35665 | DPS               --with-dps=$with_dps		$have_dps | 
|  | 35666 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
|  | 35667 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
|  | 35668 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
|  | 35669 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
|  | 35670 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
|  | 35671 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
|  | 35672 | Ghostscript       None				$PSDelegate ($GSVersion) | 
|  | 35673 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
|  | 35674 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
|  | 35675 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
|  | 35676 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
|  | 35677 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
|  | 35678 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 35679 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
|  | 35680 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35681 | LQR               --with-lqr=$with_lqr		$have_lqr | 
|  | 35682 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
|  | 35683 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
|  | 35684 | PERL              --with-perl=$with_perl		$have_perl | 
|  | 35685 | PNG               --with-png=$with_png		$have_png | 
|  | 35686 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
|  | 35687 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
|  | 35688 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
|  | 35689 | WMF               --with-wmf=$with_wmf		$have_wmf | 
|  | 35690 | X11               --with-x=$with_x			$have_x | 
|  | 35691 | XML               --with-xml=$with_xml		$have_xml | 
|  | 35692 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
|  | 35693 |  | 
|  | 35694 | X11 Configuration: | 
|  | 35695 | X_CFLAGS        = $X_CFLAGS | 
|  | 35696 | X_PRE_LIBS      = $X_PRE_LIBS | 
|  | 35697 | X_LIBS          = $X_LIBS | 
|  | 35698 | X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
|  | 35699 |  | 
|  | 35700 | Options used to compile and link: | 
|  | 35701 | PREFIX          = $PREFIX_DIR | 
|  | 35702 | EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
|  | 35703 | VERSION         = $PACKAGE_VERSION | 
|  | 35704 | CC              = $CC | 
|  | 35705 | CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35706 | CPPFLAGS        = $MAGICK_CPPFLAGS | 
|  | 35707 | PCFLAGS         = $MAGICK_PCFLAGS | 
|  | 35708 | DEFS            = $DEFS | 
|  | 35709 | LDFLAGS         = $LDFLAGS | 
|  | 35710 | MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
|  | 35711 | LIBS            = $MAGICK_LIBS | 
|  | 35712 | CXX             = $CXX | 
|  | 35713 | CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame^] | 35714 | FEATURES        = $MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35715 | " >&6; } |