| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
 | 2 | # Guess values for system-dependent variables and create Makefiles. | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # | 
 | 5 | # Report bugs to <http://www.imagemagick.org>. | 
 | 6 | # | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 7 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
 | 10 | # Foundation, Inc. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 11 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation | 
 | 14 | # gives unlimited permission to copy, distribute and modify it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15 | ## -------------------- ## | 
 | 16 | ## M4sh Initialization. ## | 
 | 17 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18 |  | 
 | 19 | # Be more Bourne compatible | 
 | 20 | DUALCASE=1; export DUALCASE # for MKS sh | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22 |   emulate sh | 
 | 23 |   NULLCMD=: | 
 | 24 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
 | 25 |   # is contrary to our usage.  Disable this feature. | 
 | 26 |   alias -g '${1+"$@"}'='"$@"' | 
 | 27 |   setopt NO_GLOB_SUBST | 
 | 28 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29 |   case `(set -o) 2>/dev/null` in #( | 
 | 30 |   *posix*) : | 
 | 31 |     set -o posix ;; #( | 
 | 32 |   *) : | 
 | 33 |      ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35 | fi | 
 | 36 |  | 
 | 37 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | as_nl=' | 
 | 39 | ' | 
 | 40 | export as_nl | 
 | 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 46 | # but without wasting forks for bash or zsh. | 
 | 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 48 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 49 |   as_echo='print -r --' | 
 | 50 |   as_echo_n='print -rn --' | 
 | 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 52 |   as_echo='printf %s\n' | 
 | 53 |   as_echo_n='printf %s' | 
 | 54 | else | 
 | 55 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 56 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 57 |     as_echo_n='/usr/ucb/echo -n' | 
 | 58 |   else | 
 | 59 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 60 |     as_echo_n_body='eval | 
 | 61 |       arg=$1; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 62 |       case $arg in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 63 |       *"$as_nl"*) | 
 | 64 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 65 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 66 |       esac; | 
 | 67 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 68 |     ' | 
 | 69 |     export as_echo_n_body | 
 | 70 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 71 |   fi | 
 | 72 |   export as_echo_body | 
 | 73 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 74 | fi | 
 | 75 |  | 
 | 76 | # The user is always right. | 
 | 77 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 78 |   PATH_SEPARATOR=: | 
 | 79 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 80 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 81 |       PATH_SEPARATOR=';' | 
 | 82 |   } | 
 | 83 | fi | 
 | 84 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 |  | 
 | 86 | # IFS | 
 | 87 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 88 | # there to prevent editors from complaining about space-tab. | 
 | 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 90 | # splitting by setting IFS to empty value.) | 
 | 91 | IFS=" ""	$as_nl" | 
 | 92 |  | 
 | 93 | # Find who we are.  Look in the path if we contain no directory separator. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 94 | as_myself= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 95 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 |   *[\\/]* ) as_myself=$0 ;; | 
 | 97 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 98 | for as_dir in $PATH | 
 | 99 | do | 
 | 100 |   IFS=$as_save_IFS | 
 | 101 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 102 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 103 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS | 
 | 105 |  | 
 | 106 |      ;; | 
 | 107 | esac | 
 | 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 109 | # in which case we are not to be found in the path. | 
 | 110 | if test "x$as_myself" = x; then | 
 | 111 |   as_myself=$0 | 
 | 112 | fi | 
 | 113 | if test ! -f "$as_myself"; then | 
 | 114 |   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 115 |   exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | fi | 
 | 117 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 119 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 120 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 121 | # trigger a bug in pdksh 5.2.14. | 
 | 122 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 123 | do eval test x\${$as_var+set} = xset \ | 
 | 124 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | done | 
 | 126 | PS1='$ ' | 
 | 127 | PS2='> ' | 
 | 128 | PS4='+ ' | 
 | 129 |  | 
 | 130 | # NLS nuisances. | 
 | 131 | LC_ALL=C | 
 | 132 | export LC_ALL | 
 | 133 | LANGUAGE=C | 
 | 134 | export LANGUAGE | 
 | 135 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 136 | # CDPATH. | 
 | 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 138 |  | 
 | 139 | if test "x$CONFIG_SHELL" = x; then | 
 | 140 |   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
 | 141 |   emulate sh | 
 | 142 |   NULLCMD=: | 
 | 143 |   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
 | 144 |   # is contrary to our usage.  Disable this feature. | 
 | 145 |   alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
 | 146 |   setopt NO_GLOB_SUBST | 
 | 147 | else | 
 | 148 |   case \`(set -o) 2>/dev/null\` in #( | 
 | 149 |   *posix*) : | 
 | 150 |     set -o posix ;; #( | 
 | 151 |   *) : | 
 | 152 |      ;; | 
 | 153 | esac | 
 | 154 | fi | 
 | 155 | " | 
 | 156 |   as_required="as_fn_return () { (exit \$1); } | 
 | 157 | as_fn_success () { as_fn_return 0; } | 
 | 158 | as_fn_failure () { as_fn_return 1; } | 
 | 159 | as_fn_ret_success () { return 0; } | 
 | 160 | as_fn_ret_failure () { return 1; } | 
 | 161 |  | 
 | 162 | exitcode=0 | 
 | 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
 | 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
 | 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
 | 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
 | 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
 | 168 |  | 
 | 169 | else | 
 | 170 |   exitcode=1; echo positional parameters were not saved. | 
 | 171 | fi | 
 | 172 | test x\$exitcode = x0 || exit 1" | 
 | 173 |   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
 | 174 |   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
 | 175 |   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
 | 176 |   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 177 | test \$(( 1 + 1 )) = 2 || exit 1 | 
 | 178 |  | 
 | 179 |   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | 
 | 180 |     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 181 |     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
 | 182 |     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
 | 183 |     PATH=/empty FPATH=/empty; export PATH FPATH | 
 | 184 |     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | 
 | 185 |       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 186 |   if (eval "$as_required") 2>/dev/null; then : | 
 | 187 |   as_have_required=yes | 
 | 188 | else | 
 | 189 |   as_have_required=no | 
 | 190 | fi | 
 | 191 |   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
 | 192 |  | 
 | 193 | else | 
 | 194 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 195 | as_found=false | 
 | 196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
 | 197 | do | 
 | 198 |   IFS=$as_save_IFS | 
 | 199 |   test -z "$as_dir" && as_dir=. | 
 | 200 |   as_found=: | 
 | 201 |   case $as_dir in #( | 
 | 202 | 	 /*) | 
 | 203 | 	   for as_base in sh bash ksh sh5; do | 
 | 204 | 	     # Try only shells that exist, to save several forks. | 
 | 205 | 	     as_shell=$as_dir/$as_base | 
 | 206 | 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
 | 207 | 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 208 |   CONFIG_SHELL=$as_shell as_have_required=yes | 
 | 209 | 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
 | 210 |   break 2 | 
 | 211 | fi | 
 | 212 | fi | 
 | 213 | 	   done;; | 
 | 214 |        esac | 
 | 215 |   as_found=false | 
 | 216 | done | 
 | 217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
 | 218 | 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
 | 219 |   CONFIG_SHELL=$SHELL as_have_required=yes | 
 | 220 | fi; } | 
 | 221 | IFS=$as_save_IFS | 
 | 222 |  | 
 | 223 |  | 
 | 224 |       if test "x$CONFIG_SHELL" != x; then : | 
 | 225 |   # We cannot yet assume a decent shell, so we have to provide a | 
 | 226 | 	# neutralization value for shells without unset; and this also | 
 | 227 | 	# works around shells that cannot unset nonexistent variables. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 228 | 	# Preserve -v and -x to the replacement shell. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 229 | 	BASH_ENV=/dev/null | 
 | 230 | 	ENV=/dev/null | 
 | 231 | 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
 | 232 | 	export CONFIG_SHELL | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 233 | 	case $- in # (((( | 
 | 234 | 	  *v*x* | *x*v* ) as_opts=-vx ;; | 
 | 235 | 	  *v* ) as_opts=-v ;; | 
 | 236 | 	  *x* ) as_opts=-x ;; | 
 | 237 | 	  * ) as_opts= ;; | 
 | 238 | 	esac | 
 | 239 | 	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 240 | fi | 
 | 241 |  | 
 | 242 |     if test x$as_have_required = xno; then : | 
 | 243 |   $as_echo "$0: This script requires a shell more modern than all" | 
 | 244 |   $as_echo "$0: the shells that I found on your system." | 
 | 245 |   if test x${ZSH_VERSION+set} = xset ; then | 
 | 246 |     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
 | 247 |     $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
 | 248 |   else | 
 | 249 |     $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
 | 250 | $0: http://www.imagemagick.org about your system, including | 
 | 251 | $0: any error possibly output before this message. Then | 
 | 252 | $0: install a modern shell, or manually run the script | 
 | 253 | $0: under such a shell if you do have one." | 
 | 254 |   fi | 
 | 255 |   exit 1 | 
 | 256 | fi | 
 | 257 | fi | 
 | 258 | fi | 
 | 259 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 260 | export SHELL | 
 | 261 | # Unset more variables known to interfere with behavior of common tools. | 
 | 262 | CLICOLOR_FORCE= GREP_OPTIONS= | 
 | 263 | unset CLICOLOR_FORCE GREP_OPTIONS | 
 | 264 |  | 
 | 265 | ## --------------------- ## | 
 | 266 | ## M4sh Shell Functions. ## | 
 | 267 | ## --------------------- ## | 
 | 268 | # as_fn_unset VAR | 
 | 269 | # --------------- | 
 | 270 | # Portably unset VAR. | 
 | 271 | as_fn_unset () | 
 | 272 | { | 
 | 273 |   { eval $1=; unset $1;} | 
 | 274 | } | 
 | 275 | as_unset=as_fn_unset | 
 | 276 |  | 
 | 277 | # as_fn_set_status STATUS | 
 | 278 | # ----------------------- | 
 | 279 | # Set $? to STATUS, without forking. | 
 | 280 | as_fn_set_status () | 
 | 281 | { | 
 | 282 |   return $1 | 
 | 283 | } # as_fn_set_status | 
 | 284 |  | 
 | 285 | # as_fn_exit STATUS | 
 | 286 | # ----------------- | 
 | 287 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 288 | as_fn_exit () | 
 | 289 | { | 
 | 290 |   set +e | 
 | 291 |   as_fn_set_status $1 | 
 | 292 |   exit $1 | 
 | 293 | } # as_fn_exit | 
 | 294 |  | 
 | 295 | # as_fn_mkdir_p | 
 | 296 | # ------------- | 
 | 297 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 298 | as_fn_mkdir_p () | 
 | 299 | { | 
 | 300 |  | 
 | 301 |   case $as_dir in #( | 
 | 302 |   -*) as_dir=./$as_dir;; | 
 | 303 |   esac | 
 | 304 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 305 |     as_dirs= | 
 | 306 |     while :; do | 
 | 307 |       case $as_dir in #( | 
 | 308 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 309 |       *) as_qdir=$as_dir;; | 
 | 310 |       esac | 
 | 311 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 312 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 314 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 315 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 316 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 317 | $as_echo X"$as_dir" | | 
 | 318 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 319 | 	    s//\1/ | 
 | 320 | 	    q | 
 | 321 | 	  } | 
 | 322 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 323 | 	    s//\1/ | 
 | 324 | 	    q | 
 | 325 | 	  } | 
 | 326 | 	  /^X\(\/\/\)$/{ | 
 | 327 | 	    s//\1/ | 
 | 328 | 	    q | 
 | 329 | 	  } | 
 | 330 | 	  /^X\(\/\).*/{ | 
 | 331 | 	    s//\1/ | 
 | 332 | 	    q | 
 | 333 | 	  } | 
 | 334 | 	  s/.*/./; q'` | 
 | 335 |       test -d "$as_dir" && break | 
 | 336 |     done | 
 | 337 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 338 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 339 |  | 
 | 340 |  | 
 | 341 | } # as_fn_mkdir_p | 
 | 342 | # as_fn_append VAR VALUE | 
 | 343 | # ---------------------- | 
 | 344 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 345 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 346 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 347 | # implementations. | 
 | 348 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 349 |   eval 'as_fn_append () | 
 | 350 |   { | 
 | 351 |     eval $1+=\$2 | 
 | 352 |   }' | 
 | 353 | else | 
 | 354 |   as_fn_append () | 
 | 355 |   { | 
 | 356 |     eval $1=\$$1\$2 | 
 | 357 |   } | 
 | 358 | fi # as_fn_append | 
 | 359 |  | 
 | 360 | # as_fn_arith ARG... | 
 | 361 | # ------------------ | 
 | 362 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 363 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 364 | # must be portable across $(()) and expr. | 
 | 365 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 366 |   eval 'as_fn_arith () | 
 | 367 |   { | 
 | 368 |     as_val=$(( $* )) | 
 | 369 |   }' | 
 | 370 | else | 
 | 371 |   as_fn_arith () | 
 | 372 |   { | 
 | 373 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 374 |   } | 
 | 375 | fi # as_fn_arith | 
 | 376 |  | 
 | 377 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 378 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 379 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 380 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 381 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 382 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 383 | as_fn_error () | 
 | 384 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 385 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 386 |   if test "$4"; then | 
 | 387 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 388 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 389 |   fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 390 |   $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 391 |   as_fn_exit $as_status | 
 | 392 | } # as_fn_error | 
 | 393 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 394 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 395 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 396 |   as_expr=expr | 
 | 397 | else | 
 | 398 |   as_expr=false | 
 | 399 | fi | 
 | 400 |  | 
 | 401 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 402 |   as_basename=basename | 
 | 403 | else | 
 | 404 |   as_basename=false | 
 | 405 | fi | 
 | 406 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 407 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 408 |   as_dirname=dirname | 
 | 409 | else | 
 | 410 |   as_dirname=false | 
 | 411 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 412 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 413 | as_me=`$as_basename -- "$0" || | 
 | 414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 415 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 416 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
 | 417 | $as_echo X/"$0" | | 
 | 418 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 419 | 	    s//\1/ | 
 | 420 | 	    q | 
 | 421 | 	  } | 
 | 422 | 	  /^X\/\(\/\/\)$/{ | 
 | 423 | 	    s//\1/ | 
 | 424 | 	    q | 
 | 425 | 	  } | 
 | 426 | 	  /^X\/\(\/\).*/{ | 
 | 427 | 	    s//\1/ | 
 | 428 | 	    q | 
 | 429 | 	  } | 
 | 430 | 	  s/.*/./; q'` | 
 | 431 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 432 | # Avoid depending upon Character Ranges. | 
 | 433 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 434 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 435 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 436 | as_cr_digits='0123456789' | 
 | 437 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 438 |  | 
 | 439 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 440 |   as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
 | 441 |   as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
 | 442 |   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
 | 443 |   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
 | 444 |   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 445 |   sed -n ' | 
 | 446 |     p | 
 | 447 |     /[$]LINENO/= | 
 | 448 |   ' <$as_myself | | 
 | 449 |     sed ' | 
 | 450 |       s/[$]LINENO.*/&-/ | 
 | 451 |       t lineno | 
 | 452 |       b | 
 | 453 |       :lineno | 
 | 454 |       N | 
 | 455 |       :loop | 
 | 456 |       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
 | 457 |       t loop | 
 | 458 |       s/-\n.*// | 
 | 459 |     ' >$as_me.lineno && | 
 | 460 |   chmod +x "$as_me.lineno" || | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 461 |     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 462 |  | 
 | 463 |   # Don't try to exec as it changes $[0], causing all sort of problems | 
 | 464 |   # (the dirname of $[0] is not the place where we might find the | 
 | 465 |   # original and so on.  Autoconf is especially sensitive to this). | 
 | 466 |   . "./$as_me.lineno" | 
 | 467 |   # Exit status is that of the last command. | 
 | 468 |   exit | 
 | 469 | } | 
 | 470 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 471 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 472 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 473 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 474 |   case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 475 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 476 |   xy)  ECHO_C='\c';; | 
 | 477 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 478 |        ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 479 |   esac;; | 
 | 480 | *) | 
 | 481 |   ECHO_N='-n';; | 
 | 482 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 483 |  | 
 | 484 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 485 | if test -d conf$$.dir; then | 
 | 486 |   rm -f conf$$.dir/conf$$.file | 
 | 487 | else | 
 | 488 |   rm -f conf$$.dir | 
 | 489 |   mkdir conf$$.dir 2>/dev/null | 
 | 490 | fi | 
 | 491 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 492 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 493 |     as_ln_s='ln -s' | 
 | 494 |     # ... but there are two gotchas: | 
 | 495 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 496 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 497 |     # In both cases, we have to default to `cp -p'. | 
 | 498 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 499 |       as_ln_s='cp -p' | 
 | 500 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 501 |     as_ln_s=ln | 
 | 502 |   else | 
 | 503 |     as_ln_s='cp -p' | 
 | 504 |   fi | 
 | 505 | else | 
 | 506 |   as_ln_s='cp -p' | 
 | 507 | fi | 
 | 508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 509 | rmdir conf$$.dir 2>/dev/null | 
 | 510 |  | 
 | 511 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 512 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 513 | else | 
 | 514 |   test -d ./-p && rmdir ./-p | 
 | 515 |   as_mkdir_p=false | 
 | 516 | fi | 
 | 517 |  | 
 | 518 | if test -x / >/dev/null 2>&1; then | 
 | 519 |   as_test_x='test -x' | 
 | 520 | else | 
 | 521 |   if ls -dL / >/dev/null 2>&1; then | 
 | 522 |     as_ls_L_option=L | 
 | 523 |   else | 
 | 524 |     as_ls_L_option= | 
 | 525 |   fi | 
 | 526 |   as_test_x=' | 
 | 527 |     eval sh -c '\'' | 
 | 528 |       if test -d "$1"; then | 
 | 529 | 	test -d "$1/."; | 
 | 530 |       else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 531 | 	case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 532 | 	-*)set "./$1";; | 
 | 533 | 	esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 534 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 535 | 	???[sx]*):;;*)false;;esac;fi | 
 | 536 |     '\'' sh | 
 | 537 |   ' | 
 | 538 | fi | 
 | 539 | as_executable_p=$as_test_x | 
 | 540 |  | 
 | 541 | # Sed expression to map a string onto a valid CPP name. | 
 | 542 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
 | 543 |  | 
 | 544 | # Sed expression to map a string onto a valid variable name. | 
 | 545 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
 | 546 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 547 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 548 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 549 | lt_ltdl_dir='ltdl' | 
 | 550 |  | 
 | 551 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" | 
 | 552 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 553 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 554 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
 | 555 | exec 6>&1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 556 |  | 
 | 557 | # Name of the host. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 558 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 559 | # so uname gets run too. | 
 | 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 561 |  | 
 | 562 | # | 
 | 563 | # Initializations. | 
 | 564 | # | 
 | 565 | ac_default_prefix=/usr/local | 
 | 566 | ac_clean_files= | 
 | 567 | ac_config_libobj_dir=. | 
 | 568 | LIBOBJS= | 
 | 569 | cross_compiling=no | 
 | 570 | subdirs= | 
 | 571 | MFLAGS= | 
 | 572 | MAKEFLAGS= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 573 |  | 
 | 574 | # Identity of this package. | 
 | 575 | PACKAGE_NAME='ImageMagick' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 576 | PACKAGE_TARNAME='ImageMagick' | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 577 | PACKAGE_VERSION='7.0.0-0' | 
 | 578 | PACKAGE_STRING='ImageMagick 7.0.0-0' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 579 | PACKAGE_BUGREPORT='http://www.imagemagick.org' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 580 | PACKAGE_URL='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 581 |  | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 582 | ac_unique_file="MagickCore/MagickCore.h" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 583 | ac_config_libobj_dir=ltdl | 
 | 584 | # Factoring default headers for most tests. | 
 | 585 | ac_includes_default="\ | 
 | 586 | #include <stdio.h> | 
 | 587 | #ifdef HAVE_SYS_TYPES_H | 
 | 588 | # include <sys/types.h> | 
 | 589 | #endif | 
 | 590 | #ifdef HAVE_SYS_STAT_H | 
 | 591 | # include <sys/stat.h> | 
 | 592 | #endif | 
 | 593 | #ifdef STDC_HEADERS | 
 | 594 | # include <stdlib.h> | 
 | 595 | # include <stddef.h> | 
 | 596 | #else | 
 | 597 | # ifdef HAVE_STDLIB_H | 
 | 598 | #  include <stdlib.h> | 
 | 599 | # endif | 
 | 600 | #endif | 
 | 601 | #ifdef HAVE_STRING_H | 
 | 602 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
 | 603 | #  include <memory.h> | 
 | 604 | # endif | 
 | 605 | # include <string.h> | 
 | 606 | #endif | 
 | 607 | #ifdef HAVE_STRINGS_H | 
 | 608 | # include <strings.h> | 
 | 609 | #endif | 
 | 610 | #ifdef HAVE_INTTYPES_H | 
 | 611 | # include <inttypes.h> | 
 | 612 | #endif | 
 | 613 | #ifdef HAVE_STDINT_H | 
 | 614 | # include <stdint.h> | 
 | 615 | #endif | 
 | 616 | #ifdef HAVE_UNISTD_H | 
 | 617 | # include <unistd.h> | 
 | 618 | #endif" | 
 | 619 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 620 | ac_header_list= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 621 | ac_subst_vars='ltdl_LTLIBOBJS | 
 | 622 | ltdl_LIBOBJS | 
 | 623 | am__EXEEXT_FALSE | 
 | 624 | am__EXEEXT_TRUE | 
 | 625 | LTLIBOBJS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 626 | MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 627 | MAGICK_LIBS | 
 | 628 | MAGICK_LDFLAGS | 
 | 629 | MAGICK_PCFLAGS | 
 | 630 | MAGICK_CPPFLAGS | 
 | 631 | MAGICK_CXXFLAGS | 
 | 632 | MAGICK_CFLAGS | 
 | 633 | MAGICK_DEP_LIBS | 
 | 634 | MAGICK_LTDLDEPS | 
 | 635 | MAGICK_LIBLTDL | 
 | 636 | OSX_GCOV_LDFLAG | 
 | 637 | DELEGATES | 
 | 638 | MAGICKCORE_PATH | 
 | 639 | PERL_SUPPORTS_DESTDIR | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 640 | WITH_PERL_DYNAMIC_FALSE | 
 | 641 | WITH_PERL_DYNAMIC_TRUE | 
 | 642 | WITH_PERL_STATIC_FALSE | 
 | 643 | WITH_PERL_STATIC_TRUE | 
 | 644 | WITH_PERL_FALSE | 
 | 645 | WITH_PERL_TRUE | 
 | 646 | PERL_VERSION | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 647 | GSVersion | 
 | 648 | GSPSDevice | 
 | 649 | GSPDFDevice | 
 | 650 | GSMonoDevice | 
 | 651 | GSEPSDevice | 
 | 652 | GSColorDevice | 
 | 653 | GSCMYKDevice | 
 | 654 | GSAlphaDevice | 
 | 655 | XPSVersion | 
 | 656 | XPSCMYKDevice | 
 | 657 | XPSColorDevice | 
 | 658 | XPSMonoDevice | 
 | 659 | PCLVersion | 
 | 660 | PCLCMYKDevice | 
 | 661 | PCLColorDevice | 
 | 662 | PCLMonoDevice | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 663 | ZIP_DELEGATE_FALSE | 
 | 664 | ZIP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 665 | ZIP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 666 | P7ZIP_DELEGATE_FALSE | 
 | 667 | P7ZIP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 668 | P7ZIP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 669 | RPM_DELEGATE_FALSE | 
 | 670 | RPM_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 671 | RPM | 
 | 672 | PERL | 
 | 673 | TAR | 
 | 674 | ShowImageDelegate | 
 | 675 | type_include_files | 
 | 676 | ghostscript_font_dir | 
 | 677 | windows_font_dir | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 678 | dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 679 | PrintDelegate | 
 | 680 | ZipDelegate | 
 | 681 | XPSDelegate | 
 | 682 | WWWDecodeDelegate | 
 | 683 | WMFDecodeDelegate | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 684 | UniconvertorDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 685 | TXTDelegate | 
 | 686 | SCANDecodeDelegate | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 687 | RSVGDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 688 | RMDelegate | 
 | 689 | RLEEncodeDelegate | 
 | 690 | PSDelegate | 
 | 691 | POVDelegate | 
 | 692 | PGPDecodeDelegate | 
 | 693 | PCLDelegate | 
 | 694 | MVDelegate | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 695 | MrSIDDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 696 | MPEGEncodeDelegate | 
 | 697 | MPEGDecodeDelegate | 
 | 698 | MANDelegate | 
 | 699 | LaunchDelegate | 
 | 700 | LZWEncodeDelegate | 
 | 701 | LZWDecodeDelegate | 
 | 702 | LPRDelegate | 
 | 703 | LPDelegate | 
 | 704 | ILBMEncodeDelegate | 
 | 705 | ILBMDecodeDelegate | 
 | 706 | HTMLDecodeDelegate | 
 | 707 | HPGLDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | GnuplotDecodeDelegate | 
 | 709 | MogrifyDelegate | 
 | 710 | DisplayDelegate | 
 | 711 | ConvertDelegate | 
 | 712 | FIGDecodeDelegate | 
 | 713 | EditorDelegate | 
 | 714 | EchoDelegate | 
 | 715 | DVIDecodeDelegate | 
 | 716 | GVCDecodeDelegate | 
 | 717 | DNGDecodeDelegate | 
 | 718 | CatDelegate | 
 | 719 | CGMDecodeDelegate | 
 | 720 | BrowseDelegate | 
 | 721 | BZIPDelegate | 
 | 722 | BlenderDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 723 | AutotraceDecodeDelegate | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 724 | SHAREARCH_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 725 | SHARE_PATH | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 726 | CONFIGURE_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 727 | DOCUMENTATION_PATH | 
 | 728 | FILTER_PATH | 
 | 729 | CODER_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 730 | LIBRARY_PATH | 
 | 731 | EXECUTABLE_PATH | 
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 732 | INCLUDE_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 733 | PERLMAINCC | 
 | 734 | XML_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 735 | XML_DELEGATE_FALSE | 
 | 736 | XML_DELEGATE_TRUE | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 737 | xml2_config | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 738 | WMF_LIBS_DEPS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 739 | WMF_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 740 | WMF_DELEGATE_FALSE | 
 | 741 | WMF_DELEGATE_TRUE | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 742 | WEBP_LIBS | 
 | 743 | WEBP_DELEGATE_FALSE | 
 | 744 | WEBP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 745 | TIFF_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 746 | TIFF_DELEGATE_FALSE | 
 | 747 | TIFF_DELEGATE_TRUE | 
 | 748 | CAIRO_DELEGATE_FALSE | 
 | 749 | CAIRO_DELEGATE_TRUE | 
 | 750 | RSVG_DELEGATE_FALSE | 
 | 751 | RSVG_DELEGATE_TRUE | 
 | 752 | CAIRO_SVG_LIBS | 
 | 753 | CAIRO_SVG_CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 754 | RSVG_LIBS | 
 | 755 | RSVG_CFLAGS | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 756 | PNG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 757 | PNG_DELEGATE_FALSE | 
 | 758 | PNG_DELEGATE_TRUE | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 759 | PANGOFT2_DELEGATE_FALSE | 
 | 760 | PANGOFT2_DELEGATE_TRUE | 
 | 761 | PANGO_DELEGATE_FALSE | 
 | 762 | PANGO_DELEGATE_TRUE | 
 | 763 | PANGO_LIBS | 
 | 764 | PANGO_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 765 | OPENEXR_DELEGATE_FALSE | 
 | 766 | OPENEXR_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 767 | OPENEXR_LIBS | 
 | 768 | OPENEXR_CFLAGS | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 769 | LZMA_DELEGATE_FALSE | 
 | 770 | LZMA_DELEGATE_TRUE | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 771 | LZMA_LIBS | 
 | 772 | LZMA_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 773 | LQR_DELEGATE_FALSE | 
 | 774 | LQR_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 775 | LQR_LIBS | 
 | 776 | LQR_CFLAGS | 
 | 777 | LCMS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 778 | LCMS_DELEGATE_FALSE | 
 | 779 | LCMS_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 780 | JP2_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 781 | JP2_DELEGATE_FALSE | 
 | 782 | JP2_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 783 | JPEG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 784 | JPEG_DELEGATE_FALSE | 
 | 785 | JPEG_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 786 | JBIG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 787 | JBIG_DELEGATE_FALSE | 
 | 788 | JBIG_DELEGATE_TRUE | 
 | 789 | GVC_DELEGATE_FALSE | 
 | 790 | GVC_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 791 | GVC_LIBS | 
 | 792 | GVC_CFLAGS | 
 | 793 | GS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 794 | GS_DELEGATE_FALSE | 
 | 795 | GS_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 796 | FREETYPE_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 797 | FREETYPE_DELEGATE_FALSE | 
 | 798 | FREETYPE_DELEGATE_TRUE | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 799 | freetype_config | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 800 | FONTCONFIG_DELEGATE_FALSE | 
 | 801 | FONTCONFIG_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 802 | FONTCONFIG_LIBS | 
 | 803 | FONTCONFIG_CFLAGS | 
 | 804 | FPX_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 805 | FPX_DELEGATE_FALSE | 
 | 806 | FPX_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 807 | FFTW_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 808 | FFTW_DELEGATE_FALSE | 
 | 809 | FFTW_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 810 | DJVU_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 811 | DJVU_DELEGATE_FALSE | 
 | 812 | DJVU_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 813 | DPS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 814 | DPS_DELEGATE_FALSE | 
 | 815 | DPS_DELEGATE_TRUE | 
 | 816 | AUTOTRACE_DELEGATE_FALSE | 
 | 817 | AUTOTRACE_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 818 | AUTOTRACE_LIBS | 
 | 819 | AUTOTRACE_CFLAGS | 
 | 820 | LIB_DL | 
 | 821 | ZLIB_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 822 | ZLIB_DELEGATE_FALSE | 
 | 823 | ZLIB_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 824 | XEXT_LIBS | 
 | 825 | X11_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 826 | X11_DELEGATE_FALSE | 
 | 827 | X11_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 828 | X_EXTRA_LIBS | 
 | 829 | X_LIBS | 
 | 830 | X_PRE_LIBS | 
 | 831 | X_CFLAGS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 832 | XMKMF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 833 | BZLIB_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 834 | BZLIB_DELEGATE_FALSE | 
 | 835 | BZLIB_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 836 | CCMALLOCDelegate | 
 | 837 | UMEM_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 838 | HasUMEM_FALSE | 
 | 839 | HasUMEM_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 840 | THREAD_LIBS | 
 | 841 | GOMP_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 842 | WITH_MAGICK_PLUS_PLUS_FALSE | 
 | 843 | WITH_MAGICK_PLUS_PLUS_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 844 | OPENMP_CXXFLAGS | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 845 | MATH_LIBS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 846 | POW_LIB | 
 | 847 | LIBOBJS | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 848 | UINTPTR_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 849 | UINTPTR_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 850 | UINTMAX_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 851 | UINTMAX_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 852 | UINT64_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 853 | UINT64_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 854 | INT64_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 855 | INT64_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 856 | UINT32_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 857 | UINT32_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 858 | INT32_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 859 | INT32_T | 
 | 860 | UINT16_T | 
 | 861 | INT16_T | 
 | 862 | UINT8_T | 
 | 863 | INT8_T | 
 | 864 | LIBRARY_EXTRA_CPPFLAGS | 
 | 865 | MODULE_EXTRA_CPPFLAGS | 
 | 866 | LIBSTDCLDFLAGS | 
 | 867 | PERL_MAKE_OPTIONS | 
 | 868 | QUANTUM_DEPTH | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 869 | MAINT | 
 | 870 | MAINTAINER_MODE_FALSE | 
 | 871 | MAINTAINER_MODE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 872 | MAGICK_HDRI | 
 | 873 | DLLDFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 874 | WITH_LTDL_FALSE | 
 | 875 | WITH_LTDL_TRUE | 
 | 876 | WITH_MODULES_FALSE | 
 | 877 | WITH_MODULES_TRUE | 
 | 878 | WITH_SHARED_LIBS_FALSE | 
 | 879 | WITH_SHARED_LIBS_TRUE | 
 | 880 | LTDLOPEN | 
 | 881 | LT_CONFIG_H | 
 | 882 | CONVENIENCE_LTDL_FALSE | 
 | 883 | CONVENIENCE_LTDL_TRUE | 
 | 884 | INSTALL_LTDL_FALSE | 
 | 885 | INSTALL_LTDL_TRUE | 
 | 886 | ARGZ_H | 
 | 887 | sys_symbol_underscore | 
 | 888 | LIBADD_DL | 
 | 889 | LT_DLPREOPEN | 
 | 890 | LIBADD_DLD_LINK | 
 | 891 | LIBADD_SHL_LOAD | 
 | 892 | LIBADD_DLOPEN | 
 | 893 | LT_DLLOADERS | 
 | 894 | INCLTDL | 
 | 895 | LTDLINCL | 
 | 896 | LTDLDEPS | 
 | 897 | LIBLTDL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 898 | LIBTOOL_DEPS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 899 | CXXCPP | 
 | 900 | OTOOL64 | 
 | 901 | OTOOL | 
 | 902 | LIPO | 
 | 903 | NMEDIT | 
 | 904 | DSYMUTIL | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 905 | MANIFEST_TOOL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 906 | RANLIB | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 907 | ac_ct_AR | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 908 | AR | 
 | 909 | NM | 
 | 910 | ac_ct_DUMPBIN | 
 | 911 | DUMPBIN | 
 | 912 | LIBTOOL | 
 | 913 | OBJDUMP | 
 | 914 | DLLTOOL | 
 | 915 | AS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 916 | LFS_CPPFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 917 | CL_LIBS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 918 | CL_CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 919 | OPENMP_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 920 | PTHREAD_CFLAGS | 
 | 921 | PTHREAD_LIBS | 
 | 922 | PTHREAD_CC | 
 | 923 | ax_pthread_config | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 924 | SHAREARCH_DIR | 
 | 925 | INCLUDEARCH_DIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 926 | WinPathScript | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 927 | USING_CL_FALSE | 
 | 928 | USING_CL_TRUE | 
 | 929 | CYGWIN_BUILD_FALSE | 
 | 930 | CYGWIN_BUILD_TRUE | 
 | 931 | WIN32_NATIVE_BUILD_FALSE | 
 | 932 | WIN32_NATIVE_BUILD_TRUE | 
 | 933 | WINGDI32_DELEGATE_FALSE | 
 | 934 | WINGDI32_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 935 | GDI32_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 936 | PKG_CONFIG | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 937 | LN_S | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 938 | LD | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 939 | FGREP | 
 | 940 | SED | 
 | 941 | am__fastdepCXX_FALSE | 
 | 942 | am__fastdepCXX_TRUE | 
 | 943 | CXXDEPMODE | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 944 | ac_ct_CXX | 
 | 945 | CXXFLAGS | 
 | 946 | CXX | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 947 | EGREP | 
 | 948 | GREP | 
 | 949 | CPP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 950 | am__fastdepCC_FALSE | 
 | 951 | am__fastdepCC_TRUE | 
 | 952 | CCDEPMODE | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 953 | am__nodep | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 954 | AMDEPBACKSLASH | 
 | 955 | AMDEP_FALSE | 
 | 956 | AMDEP_TRUE | 
 | 957 | am__quote | 
 | 958 | am__include | 
 | 959 | DEPDIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 960 | OBJEXT | 
 | 961 | EXEEXT | 
 | 962 | ac_ct_CC | 
 | 963 | CPPFLAGS | 
 | 964 | LDFLAGS | 
 | 965 | CFLAGS | 
 | 966 | CC | 
 | 967 | DIRSEP | 
 | 968 | MAGICK_FILTER_MODULE_PATH | 
 | 969 | MAGICK_CONFIGURE_BUILD_PATH | 
 | 970 | MAGICK_CONFIGURE_SRC_PATH | 
 | 971 | MAGICK_CODER_MODULE_PATH | 
 | 972 | MAN_DIR | 
 | 973 | INFO_DIR | 
 | 974 | PERSISTINCLUDE_DIR | 
 | 975 | INCLUDE_DIR | 
 | 976 | LIB_DIR | 
 | 977 | LOCALSTATE_DIR | 
 | 978 | SHAREDSTATE_DIR | 
 | 979 | SYSCONF_DIR | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 980 | DOC_DIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 981 | DATA_DIR | 
 | 982 | LIBEXEC_DIR | 
 | 983 | SBIN_DIR | 
 | 984 | BIN_DIR | 
 | 985 | EXEC_PREFIX_DIR | 
 | 986 | PREFIX_DIR | 
 | 987 | CONFIG_STATUS_DEPENDENCIES | 
 | 988 | MAGICK_LIB_VERSION_NUMBER | 
 | 989 | MAGICK_LIB_VERSION_TEXT | 
 | 990 | MAGICK_LIB_VERSION | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 991 | AM_BACKSLASH | 
 | 992 | AM_DEFAULT_VERBOSITY | 
 | 993 | am__untar | 
 | 994 | am__tar | 
 | 995 | AMTAR | 
 | 996 | am__leading_dot | 
 | 997 | SET_MAKE | 
 | 998 | AWK | 
 | 999 | mkdir_p | 
 | 1000 | MKDIR_P | 
 | 1001 | INSTALL_STRIP_PROGRAM | 
 | 1002 | STRIP | 
 | 1003 | install_sh | 
 | 1004 | MAKEINFO | 
 | 1005 | AUTOHEADER | 
 | 1006 | AUTOMAKE | 
 | 1007 | AUTOCONF | 
 | 1008 | ACLOCAL | 
 | 1009 | VERSION | 
 | 1010 | PACKAGE | 
 | 1011 | CYGPATH_W | 
 | 1012 | am__isrc | 
 | 1013 | INSTALL_DATA | 
 | 1014 | INSTALL_SCRIPT | 
 | 1015 | INSTALL_PROGRAM | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 1016 | PACKAGE_VERSION_ADDENDUM | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1017 | PACKAGE_RELEASE_DATE | 
 | 1018 | PACKAGE_LIB_VERSION_NUMBER | 
 | 1019 | PACKAGE_LIB_VERSION | 
 | 1020 | PACKAGE_CHANGE_DATE | 
 | 1021 | PACKAGE_RELEASE | 
| cristy | 878c2f1 | 2011-08-19 00:25:19 +0000 | [diff] [blame] | 1022 | PACKAGE_PERL_VERSION | 
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 1023 | MAGICK_SVN_REVISION | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 1024 | MAGICK_LIBRARY_VERSION_INFO | 
 | 1025 | MAGICK_LIBRARY_CURRENT_MIN | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1026 | MAGICK_LIBRARY_AGE | 
 | 1027 | MAGICK_LIBRARY_REVISION | 
 | 1028 | MAGICK_LIBRARY_CURRENT | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 1029 | MAGICK_TARGET_OS | 
 | 1030 | MAGICK_TARGET_VENDOR | 
 | 1031 | MAGICK_TARGET_CPU | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1032 | target_os | 
 | 1033 | target_vendor | 
 | 1034 | target_cpu | 
 | 1035 | target | 
 | 1036 | host_os | 
 | 1037 | host_vendor | 
 | 1038 | host_cpu | 
 | 1039 | host | 
 | 1040 | build_os | 
 | 1041 | build_vendor | 
 | 1042 | build_cpu | 
 | 1043 | build | 
 | 1044 | CONFIGURE_ARGS | 
 | 1045 | DISTCHECK_CONFIG_FLAGS | 
 | 1046 | target_alias | 
 | 1047 | host_alias | 
 | 1048 | build_alias | 
 | 1049 | LIBS | 
 | 1050 | ECHO_T | 
 | 1051 | ECHO_N | 
 | 1052 | ECHO_C | 
 | 1053 | DEFS | 
 | 1054 | mandir | 
 | 1055 | localedir | 
 | 1056 | libdir | 
 | 1057 | psdir | 
 | 1058 | pdfdir | 
 | 1059 | dvidir | 
 | 1060 | htmldir | 
 | 1061 | infodir | 
 | 1062 | docdir | 
 | 1063 | oldincludedir | 
 | 1064 | includedir | 
 | 1065 | localstatedir | 
 | 1066 | sharedstatedir | 
 | 1067 | sysconfdir | 
 | 1068 | datadir | 
 | 1069 | datarootdir | 
 | 1070 | libexecdir | 
 | 1071 | sbindir | 
 | 1072 | bindir | 
 | 1073 | program_transform_name | 
 | 1074 | prefix | 
 | 1075 | exec_prefix | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1076 | PACKAGE_URL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1077 | PACKAGE_BUGREPORT | 
 | 1078 | PACKAGE_STRING | 
 | 1079 | PACKAGE_VERSION | 
 | 1080 | PACKAGE_TARNAME | 
 | 1081 | PACKAGE_NAME | 
 | 1082 | PATH_SEPARATOR | 
 | 1083 | SHELL' | 
 | 1084 | ac_subst_files='' | 
 | 1085 | ac_user_opts=' | 
 | 1086 | enable_option_checking | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1087 | enable_silent_rules | 
 | 1088 | enable_dependency_tracking | 
 | 1089 | with_gnu_ld | 
 | 1090 | with_dmalloc | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1091 | enable_bounds_checking | 
 | 1092 | enable_osx_universal_binary | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 1093 | with_includearch_dir | 
 | 1094 | with_sharearch_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1095 | with_threads | 
 | 1096 | enable_openmp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1097 | enable_opencl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1098 | enable_largefile | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1099 | enable_shared | 
 | 1100 | enable_static | 
 | 1101 | with_pic | 
 | 1102 | enable_fast_install | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1103 | with_sysroot | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1104 | enable_libtool_lock | 
 | 1105 | with_included_ltdl | 
 | 1106 | with_ltdl_include | 
 | 1107 | with_ltdl_lib | 
 | 1108 | enable_ltdl_install | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1109 | with_modules | 
 | 1110 | enable_delegate_build | 
 | 1111 | enable_deprecated | 
 | 1112 | enable_installed | 
 | 1113 | enable_cipher | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1114 | enable_zero_configuration | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1115 | enable_hdri | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1116 | enable_assert | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1117 | enable_maintainer_mode | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1118 | enable_ccmalloc | 
 | 1119 | enable_efence | 
 | 1120 | enable_prof | 
 | 1121 | enable_gprof | 
 | 1122 | enable_gcov | 
 | 1123 | with_method_prefix | 
 | 1124 | with_quantum_depth | 
 | 1125 | with_cache | 
 | 1126 | with_frozenpaths | 
 | 1127 | with_magick_plus_plus | 
 | 1128 | with_perl | 
 | 1129 | with_perl_options | 
 | 1130 | with_umem | 
 | 1131 | with_libstdc | 
 | 1132 | with_bzlib | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1133 | with_x | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1134 | with_zlib | 
 | 1135 | with_autotrace | 
 | 1136 | with_dps | 
 | 1137 | with_djvu | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1138 | with_dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1139 | with_fftw | 
 | 1140 | with_fpx | 
 | 1141 | with_fontconfig | 
 | 1142 | with_freetype | 
 | 1143 | with_gslib | 
 | 1144 | with_fontpath | 
 | 1145 | with_gs_font_dir | 
 | 1146 | with_gvc | 
 | 1147 | with_jbig | 
 | 1148 | with_jpeg | 
 | 1149 | with_jp2 | 
 | 1150 | with_lcms | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1151 | with_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1152 | with_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1153 | with_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1154 | with_openexr | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1155 | with_pango | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1156 | with_png | 
 | 1157 | with_rsvg | 
 | 1158 | with_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1159 | with_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1160 | with_windows_font_dir | 
 | 1161 | with_wmf | 
 | 1162 | with_xml | 
 | 1163 | ' | 
 | 1164 |       ac_precious_vars='build_alias | 
 | 1165 | host_alias | 
 | 1166 | target_alias | 
 | 1167 | CC | 
 | 1168 | CFLAGS | 
 | 1169 | LDFLAGS | 
 | 1170 | LIBS | 
 | 1171 | CPPFLAGS | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1172 | CPP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1173 | CXX | 
 | 1174 | CXXFLAGS | 
 | 1175 | CCC | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1176 | PKG_CONFIG | 
 | 1177 | CXXCPP | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1178 | XMKMF | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1179 | AUTOTRACE_CFLAGS | 
 | 1180 | AUTOTRACE_LIBS | 
 | 1181 | FONTCONFIG_CFLAGS | 
 | 1182 | FONTCONFIG_LIBS | 
 | 1183 | GVC_CFLAGS | 
 | 1184 | GVC_LIBS | 
 | 1185 | LQR_CFLAGS | 
 | 1186 | LQR_LIBS | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 1187 | LZMA_CFLAGS | 
 | 1188 | LZMA_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1189 | OPENEXR_CFLAGS | 
 | 1190 | OPENEXR_LIBS | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1191 | PANGO_CFLAGS | 
 | 1192 | PANGO_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1193 | RSVG_CFLAGS | 
 | 1194 | RSVG_LIBS | 
 | 1195 | CAIRO_SVG_CFLAGS | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1196 | CAIRO_SVG_LIBS' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1197 |  | 
 | 1198 |  | 
 | 1199 | # Initialize some variables set by options. | 
 | 1200 | ac_init_help= | 
 | 1201 | ac_init_version=false | 
 | 1202 | ac_unrecognized_opts= | 
 | 1203 | ac_unrecognized_sep= | 
 | 1204 | # The variables have the same names as the options, with | 
 | 1205 | # dashes changed to underlines. | 
 | 1206 | cache_file=/dev/null | 
 | 1207 | exec_prefix=NONE | 
 | 1208 | no_create= | 
 | 1209 | no_recursion= | 
 | 1210 | prefix=NONE | 
 | 1211 | program_prefix=NONE | 
 | 1212 | program_suffix=NONE | 
 | 1213 | program_transform_name=s,x,x, | 
 | 1214 | silent= | 
 | 1215 | site= | 
 | 1216 | srcdir= | 
 | 1217 | verbose= | 
 | 1218 | x_includes=NONE | 
 | 1219 | x_libraries=NONE | 
 | 1220 |  | 
 | 1221 | # Installation directory options. | 
 | 1222 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
 | 1223 | # and all the variables that are supposed to be based on exec_prefix | 
 | 1224 | # by default will actually change. | 
 | 1225 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
 | 1226 | # (The list follows the same order as the GNU Coding Standards.) | 
 | 1227 | bindir='${exec_prefix}/bin' | 
 | 1228 | sbindir='${exec_prefix}/sbin' | 
 | 1229 | libexecdir='${exec_prefix}/libexec' | 
 | 1230 | datarootdir='${prefix}/share' | 
 | 1231 | datadir='${datarootdir}' | 
 | 1232 | sysconfdir='${prefix}/etc' | 
 | 1233 | sharedstatedir='${prefix}/com' | 
 | 1234 | localstatedir='${prefix}/var' | 
 | 1235 | includedir='${prefix}/include' | 
 | 1236 | oldincludedir='/usr/include' | 
 | 1237 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
 | 1238 | infodir='${datarootdir}/info' | 
 | 1239 | htmldir='${docdir}' | 
 | 1240 | dvidir='${docdir}' | 
 | 1241 | pdfdir='${docdir}' | 
 | 1242 | psdir='${docdir}' | 
 | 1243 | libdir='${exec_prefix}/lib' | 
 | 1244 | localedir='${datarootdir}/locale' | 
 | 1245 | mandir='${datarootdir}/man' | 
 | 1246 |  | 
 | 1247 | ac_prev= | 
 | 1248 | ac_dashdash= | 
 | 1249 | for ac_option | 
 | 1250 | do | 
 | 1251 |   # If the previous option needs an argument, assign it. | 
 | 1252 |   if test -n "$ac_prev"; then | 
 | 1253 |     eval $ac_prev=\$ac_option | 
 | 1254 |     ac_prev= | 
 | 1255 |     continue | 
 | 1256 |   fi | 
 | 1257 |  | 
 | 1258 |   case $ac_option in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1259 |   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
 | 1260 |   *=)   ac_optarg= ;; | 
 | 1261 |   *)    ac_optarg=yes ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1262 |   esac | 
 | 1263 |  | 
 | 1264 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 1265 |  | 
 | 1266 |   case $ac_dashdash$ac_option in | 
 | 1267 |   --) | 
 | 1268 |     ac_dashdash=yes ;; | 
 | 1269 |  | 
 | 1270 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 1271 |     ac_prev=bindir ;; | 
 | 1272 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 1273 |     bindir=$ac_optarg ;; | 
 | 1274 |  | 
 | 1275 |   -build | --build | --buil | --bui | --bu) | 
 | 1276 |     ac_prev=build_alias ;; | 
 | 1277 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
 | 1278 |     build_alias=$ac_optarg ;; | 
 | 1279 |  | 
 | 1280 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 1281 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 1282 |     ac_prev=cache_file ;; | 
 | 1283 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 1284 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 1285 |     cache_file=$ac_optarg ;; | 
 | 1286 |  | 
 | 1287 |   --config-cache | -C) | 
 | 1288 |     cache_file=config.cache ;; | 
 | 1289 |  | 
 | 1290 |   -datadir | --datadir | --datadi | --datad) | 
 | 1291 |     ac_prev=datadir ;; | 
 | 1292 |   -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
 | 1293 |     datadir=$ac_optarg ;; | 
 | 1294 |  | 
 | 1295 |   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
 | 1296 |   | --dataroo | --dataro | --datar) | 
 | 1297 |     ac_prev=datarootdir ;; | 
 | 1298 |   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
 | 1299 |   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
 | 1300 |     datarootdir=$ac_optarg ;; | 
 | 1301 |  | 
 | 1302 |   -disable-* | --disable-*) | 
 | 1303 |     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
 | 1304 |     # Reject names that are not valid shell variable names. | 
 | 1305 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1306 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1307 |     ac_useropt_orig=$ac_useropt | 
 | 1308 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1309 |     case $ac_user_opts in | 
 | 1310 |       *" | 
 | 1311 | "enable_$ac_useropt" | 
 | 1312 | "*) ;; | 
 | 1313 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
 | 1314 | 	 ac_unrecognized_sep=', ';; | 
 | 1315 |     esac | 
 | 1316 |     eval enable_$ac_useropt=no ;; | 
 | 1317 |  | 
 | 1318 |   -docdir | --docdir | --docdi | --doc | --do) | 
 | 1319 |     ac_prev=docdir ;; | 
 | 1320 |   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
 | 1321 |     docdir=$ac_optarg ;; | 
 | 1322 |  | 
 | 1323 |   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
 | 1324 |     ac_prev=dvidir ;; | 
 | 1325 |   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
 | 1326 |     dvidir=$ac_optarg ;; | 
 | 1327 |  | 
 | 1328 |   -enable-* | --enable-*) | 
 | 1329 |     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
 | 1330 |     # Reject names that are not valid shell variable names. | 
 | 1331 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1332 |       as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1333 |     ac_useropt_orig=$ac_useropt | 
 | 1334 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1335 |     case $ac_user_opts in | 
 | 1336 |       *" | 
 | 1337 | "enable_$ac_useropt" | 
 | 1338 | "*) ;; | 
 | 1339 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
 | 1340 | 	 ac_unrecognized_sep=', ';; | 
 | 1341 |     esac | 
 | 1342 |     eval enable_$ac_useropt=\$ac_optarg ;; | 
 | 1343 |  | 
 | 1344 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 1345 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 1346 |   | --exec | --exe | --ex) | 
 | 1347 |     ac_prev=exec_prefix ;; | 
 | 1348 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 1349 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 1350 |   | --exec=* | --exe=* | --ex=*) | 
 | 1351 |     exec_prefix=$ac_optarg ;; | 
 | 1352 |  | 
 | 1353 |   -gas | --gas | --ga | --g) | 
 | 1354 |     # Obsolete; use --with-gas. | 
 | 1355 |     with_gas=yes ;; | 
 | 1356 |  | 
 | 1357 |   -help | --help | --hel | --he | -h) | 
 | 1358 |     ac_init_help=long ;; | 
 | 1359 |   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
 | 1360 |     ac_init_help=recursive ;; | 
 | 1361 |   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
 | 1362 |     ac_init_help=short ;; | 
 | 1363 |  | 
 | 1364 |   -host | --host | --hos | --ho) | 
 | 1365 |     ac_prev=host_alias ;; | 
 | 1366 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 1367 |     host_alias=$ac_optarg ;; | 
 | 1368 |  | 
 | 1369 |   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
 | 1370 |     ac_prev=htmldir ;; | 
 | 1371 |   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
 | 1372 |   | --ht=*) | 
 | 1373 |     htmldir=$ac_optarg ;; | 
 | 1374 |  | 
 | 1375 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 1376 |   | --includ | --inclu | --incl | --inc) | 
 | 1377 |     ac_prev=includedir ;; | 
 | 1378 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 1379 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 1380 |     includedir=$ac_optarg ;; | 
 | 1381 |  | 
 | 1382 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 1383 |     ac_prev=infodir ;; | 
 | 1384 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 1385 |     infodir=$ac_optarg ;; | 
 | 1386 |  | 
 | 1387 |   -libdir | --libdir | --libdi | --libd) | 
 | 1388 |     ac_prev=libdir ;; | 
 | 1389 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 1390 |     libdir=$ac_optarg ;; | 
 | 1391 |  | 
 | 1392 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 1393 |   | --libexe | --libex | --libe) | 
 | 1394 |     ac_prev=libexecdir ;; | 
 | 1395 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 1396 |   | --libexe=* | --libex=* | --libe=*) | 
 | 1397 |     libexecdir=$ac_optarg ;; | 
 | 1398 |  | 
 | 1399 |   -localedir | --localedir | --localedi | --localed | --locale) | 
 | 1400 |     ac_prev=localedir ;; | 
 | 1401 |   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
 | 1402 |     localedir=$ac_optarg ;; | 
 | 1403 |  | 
 | 1404 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 1405 |   | --localstate | --localstat | --localsta | --localst | --locals) | 
 | 1406 |     ac_prev=localstatedir ;; | 
 | 1407 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 1408 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
 | 1409 |     localstatedir=$ac_optarg ;; | 
 | 1410 |  | 
 | 1411 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 1412 |     ac_prev=mandir ;; | 
 | 1413 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 1414 |     mandir=$ac_optarg ;; | 
 | 1415 |  | 
 | 1416 |   -nfp | --nfp | --nf) | 
 | 1417 |     # Obsolete; use --without-fp. | 
 | 1418 |     with_fp=no ;; | 
 | 1419 |  | 
 | 1420 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 1421 |   | --no-cr | --no-c | -n) | 
 | 1422 |     no_create=yes ;; | 
 | 1423 |  | 
 | 1424 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 1425 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 1426 |     no_recursion=yes ;; | 
 | 1427 |  | 
 | 1428 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 1429 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 1430 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 1431 |     ac_prev=oldincludedir ;; | 
 | 1432 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 1433 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 1434 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 1435 |     oldincludedir=$ac_optarg ;; | 
 | 1436 |  | 
 | 1437 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 1438 |     ac_prev=prefix ;; | 
 | 1439 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 1440 |     prefix=$ac_optarg ;; | 
 | 1441 |  | 
 | 1442 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 1443 |   | --program-pre | --program-pr | --program-p) | 
 | 1444 |     ac_prev=program_prefix ;; | 
 | 1445 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 1446 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 1447 |     program_prefix=$ac_optarg ;; | 
 | 1448 |  | 
 | 1449 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 1450 |   | --program-suf | --program-su | --program-s) | 
 | 1451 |     ac_prev=program_suffix ;; | 
 | 1452 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 1453 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 1454 |     program_suffix=$ac_optarg ;; | 
 | 1455 |  | 
 | 1456 |   -program-transform-name | --program-transform-name \ | 
 | 1457 |   | --program-transform-nam | --program-transform-na \ | 
 | 1458 |   | --program-transform-n | --program-transform- \ | 
 | 1459 |   | --program-transform | --program-transfor \ | 
 | 1460 |   | --program-transfo | --program-transf \ | 
 | 1461 |   | --program-trans | --program-tran \ | 
 | 1462 |   | --progr-tra | --program-tr | --program-t) | 
 | 1463 |     ac_prev=program_transform_name ;; | 
 | 1464 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 1465 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 1466 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 1467 |   | --program-transform=* | --program-transfor=* \ | 
 | 1468 |   | --program-transfo=* | --program-transf=* \ | 
 | 1469 |   | --program-trans=* | --program-tran=* \ | 
 | 1470 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 1471 |     program_transform_name=$ac_optarg ;; | 
 | 1472 |  | 
 | 1473 |   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
 | 1474 |     ac_prev=pdfdir ;; | 
 | 1475 |   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
 | 1476 |     pdfdir=$ac_optarg ;; | 
 | 1477 |  | 
 | 1478 |   -psdir | --psdir | --psdi | --psd | --ps) | 
 | 1479 |     ac_prev=psdir ;; | 
 | 1480 |   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
 | 1481 |     psdir=$ac_optarg ;; | 
 | 1482 |  | 
 | 1483 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 1484 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 1485 |     silent=yes ;; | 
 | 1486 |  | 
 | 1487 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 1488 |     ac_prev=sbindir ;; | 
 | 1489 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 1490 |   | --sbi=* | --sb=*) | 
 | 1491 |     sbindir=$ac_optarg ;; | 
 | 1492 |  | 
 | 1493 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 1494 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 1495 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 1496 |   | --sha | --sh) | 
 | 1497 |     ac_prev=sharedstatedir ;; | 
 | 1498 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 1499 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 1500 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 1501 |   | --sha=* | --sh=*) | 
 | 1502 |     sharedstatedir=$ac_optarg ;; | 
 | 1503 |  | 
 | 1504 |   -site | --site | --sit) | 
 | 1505 |     ac_prev=site ;; | 
 | 1506 |   -site=* | --site=* | --sit=*) | 
 | 1507 |     site=$ac_optarg ;; | 
 | 1508 |  | 
 | 1509 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 1510 |     ac_prev=srcdir ;; | 
 | 1511 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 1512 |     srcdir=$ac_optarg ;; | 
 | 1513 |  | 
 | 1514 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 1515 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 1516 |     ac_prev=sysconfdir ;; | 
 | 1517 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 1518 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 1519 |     sysconfdir=$ac_optarg ;; | 
 | 1520 |  | 
 | 1521 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 1522 |     ac_prev=target_alias ;; | 
 | 1523 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 1524 |     target_alias=$ac_optarg ;; | 
 | 1525 |  | 
 | 1526 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 1527 |     verbose=yes ;; | 
 | 1528 |  | 
 | 1529 |   -version | --version | --versio | --versi | --vers | -V) | 
 | 1530 |     ac_init_version=: ;; | 
 | 1531 |  | 
 | 1532 |   -with-* | --with-*) | 
 | 1533 |     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
 | 1534 |     # Reject names that are not valid shell variable names. | 
 | 1535 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1536 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1537 |     ac_useropt_orig=$ac_useropt | 
 | 1538 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1539 |     case $ac_user_opts in | 
 | 1540 |       *" | 
 | 1541 | "with_$ac_useropt" | 
 | 1542 | "*) ;; | 
 | 1543 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
 | 1544 | 	 ac_unrecognized_sep=', ';; | 
 | 1545 |     esac | 
 | 1546 |     eval with_$ac_useropt=\$ac_optarg ;; | 
 | 1547 |  | 
 | 1548 |   -without-* | --without-*) | 
 | 1549 |     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
 | 1550 |     # Reject names that are not valid shell variable names. | 
 | 1551 |     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1552 |       as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1553 |     ac_useropt_orig=$ac_useropt | 
 | 1554 |     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
 | 1555 |     case $ac_user_opts in | 
 | 1556 |       *" | 
 | 1557 | "with_$ac_useropt" | 
 | 1558 | "*) ;; | 
 | 1559 |       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
 | 1560 | 	 ac_unrecognized_sep=', ';; | 
 | 1561 |     esac | 
 | 1562 |     eval with_$ac_useropt=no ;; | 
 | 1563 |  | 
 | 1564 |   --x) | 
 | 1565 |     # Obsolete; use --with-x. | 
 | 1566 |     with_x=yes ;; | 
 | 1567 |  | 
 | 1568 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 1569 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 1570 |     ac_prev=x_includes ;; | 
 | 1571 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 1572 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 1573 |     x_includes=$ac_optarg ;; | 
 | 1574 |  | 
 | 1575 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 1576 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 1577 |     ac_prev=x_libraries ;; | 
 | 1578 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 1579 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 1580 |     x_libraries=$ac_optarg ;; | 
 | 1581 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1582 |   -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
 | 1583 | Try \`$0 --help' for more information" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1584 |     ;; | 
 | 1585 |  | 
 | 1586 |   *=*) | 
 | 1587 |     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
 | 1588 |     # Reject names that are not valid shell variable names. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1589 |     case $ac_envvar in #( | 
 | 1590 |       '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1591 |       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1592 |     esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1593 |     eval $ac_envvar=\$ac_optarg | 
 | 1594 |     export $ac_envvar ;; | 
 | 1595 |  | 
 | 1596 |   *) | 
 | 1597 |     # FIXME: should be removed in autoconf 3.0. | 
 | 1598 |     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
 | 1599 |     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
 | 1600 |       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1601 |     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1602 |     ;; | 
 | 1603 |  | 
 | 1604 |   esac | 
 | 1605 | done | 
 | 1606 |  | 
 | 1607 | if test -n "$ac_prev"; then | 
 | 1608 |   ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1609 |   as_fn_error $? "missing argument to $ac_option" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1610 | fi | 
 | 1611 |  | 
 | 1612 | if test -n "$ac_unrecognized_opts"; then | 
 | 1613 |   case $enable_option_checking in | 
 | 1614 |     no) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1615 |     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1616 |     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
 | 1617 |   esac | 
 | 1618 | fi | 
 | 1619 |  | 
 | 1620 | # Check all directory arguments for consistency. | 
 | 1621 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
 | 1622 | 		datadir sysconfdir sharedstatedir localstatedir includedir \ | 
 | 1623 | 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
 | 1624 | 		libdir localedir mandir | 
 | 1625 | do | 
 | 1626 |   eval ac_val=\$$ac_var | 
 | 1627 |   # Remove trailing slashes. | 
 | 1628 |   case $ac_val in | 
 | 1629 |     */ ) | 
 | 1630 |       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
 | 1631 |       eval $ac_var=\$ac_val;; | 
 | 1632 |   esac | 
 | 1633 |   # Be sure to have absolute directory names. | 
 | 1634 |   case $ac_val in | 
 | 1635 |     [\\/$]* | ?:[\\/]* )  continue;; | 
 | 1636 |     NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
 | 1637 |   esac | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1638 |   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1639 | done | 
 | 1640 |  | 
 | 1641 | # There might be people who depend on the old broken behavior: `$host' | 
 | 1642 | # used to hold the argument of --host etc. | 
 | 1643 | # FIXME: To remove some day. | 
 | 1644 | build=$build_alias | 
 | 1645 | host=$host_alias | 
 | 1646 | target=$target_alias | 
 | 1647 |  | 
 | 1648 | # FIXME: To remove some day. | 
 | 1649 | if test "x$host_alias" != x; then | 
 | 1650 |   if test "x$build_alias" = x; then | 
 | 1651 |     cross_compiling=maybe | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1652 |     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
 | 1653 |     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] | 1654 |   elif test "x$build_alias" != "x$host_alias"; then | 
 | 1655 |     cross_compiling=yes | 
 | 1656 |   fi | 
 | 1657 | fi | 
 | 1658 |  | 
 | 1659 | ac_tool_prefix= | 
 | 1660 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
 | 1661 |  | 
 | 1662 | test "$silent" = yes && exec 6>/dev/null | 
 | 1663 |  | 
 | 1664 |  | 
 | 1665 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
 | 1666 | ac_ls_di=`ls -di .` && | 
 | 1667 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1668 |   as_fn_error $? "working directory cannot be determined" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1669 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1670 |   as_fn_error $? "pwd does not report name of working directory" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1671 |  | 
 | 1672 |  | 
 | 1673 | # Find the source files, if location was not specified. | 
 | 1674 | if test -z "$srcdir"; then | 
 | 1675 |   ac_srcdir_defaulted=yes | 
 | 1676 |   # Try the directory containing this script, then the parent directory. | 
 | 1677 |   ac_confdir=`$as_dirname -- "$as_myself" || | 
 | 1678 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 1679 | 	 X"$as_myself" : 'X\(//\)[^/]' \| \ | 
 | 1680 | 	 X"$as_myself" : 'X\(//\)$' \| \ | 
 | 1681 | 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
 | 1682 | $as_echo X"$as_myself" | | 
 | 1683 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 1684 | 	    s//\1/ | 
 | 1685 | 	    q | 
 | 1686 | 	  } | 
 | 1687 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 1688 | 	    s//\1/ | 
 | 1689 | 	    q | 
 | 1690 | 	  } | 
 | 1691 | 	  /^X\(\/\/\)$/{ | 
 | 1692 | 	    s//\1/ | 
 | 1693 | 	    q | 
 | 1694 | 	  } | 
 | 1695 | 	  /^X\(\/\).*/{ | 
 | 1696 | 	    s//\1/ | 
 | 1697 | 	    q | 
 | 1698 | 	  } | 
 | 1699 | 	  s/.*/./; q'` | 
 | 1700 |   srcdir=$ac_confdir | 
 | 1701 |   if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1702 |     srcdir=.. | 
 | 1703 |   fi | 
 | 1704 | else | 
 | 1705 |   ac_srcdir_defaulted=no | 
 | 1706 | fi | 
 | 1707 | if test ! -r "$srcdir/$ac_unique_file"; then | 
 | 1708 |   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1709 |   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1710 | fi | 
 | 1711 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
 | 1712 | ac_abs_confdir=`( | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1713 | 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1714 | 	pwd)` | 
 | 1715 | # When building in place, set srcdir=. | 
 | 1716 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
 | 1717 |   srcdir=. | 
 | 1718 | fi | 
 | 1719 | # Remove unnecessary trailing slashes from srcdir. | 
 | 1720 | # Double slashes in file names in object file debugging info | 
 | 1721 | # mess up M-x gdb in Emacs. | 
 | 1722 | case $srcdir in | 
 | 1723 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
 | 1724 | esac | 
 | 1725 | for ac_var in $ac_precious_vars; do | 
 | 1726 |   eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1727 |   eval ac_env_${ac_var}_value=\$${ac_var} | 
 | 1728 |   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
 | 1729 |   eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
 | 1730 | done | 
 | 1731 |  | 
 | 1732 | # | 
 | 1733 | # Report the --help message. | 
 | 1734 | # | 
 | 1735 | if test "$ac_init_help" = "long"; then | 
 | 1736 |   # Omit some internal or obsolete options to make the list less imposing. | 
 | 1737 |   # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 1738 |   cat <<_ACEOF | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1739 | \`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1740 |  | 
 | 1741 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
 | 1742 |  | 
 | 1743 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
 | 1744 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
 | 1745 |  | 
 | 1746 | Defaults for the options are specified in brackets. | 
 | 1747 |  | 
 | 1748 | Configuration: | 
 | 1749 |   -h, --help              display this help and exit | 
 | 1750 |       --help=short        display options specific to this package | 
 | 1751 |       --help=recursive    display the short help of all the included packages | 
 | 1752 |   -V, --version           display version information and exit | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1753 |   -q, --quiet, --silent   do not print \`checking ...' messages | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1754 |       --cache-file=FILE   cache test results in FILE [disabled] | 
 | 1755 |   -C, --config-cache      alias for \`--cache-file=config.cache' | 
 | 1756 |   -n, --no-create         do not create output files | 
 | 1757 |       --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
 | 1758 |  | 
 | 1759 | Installation directories: | 
 | 1760 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 1761 |                           [$ac_default_prefix] | 
 | 1762 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
 | 1763 |                           [PREFIX] | 
 | 1764 |  | 
 | 1765 | By default, \`make install' will install all the files in | 
 | 1766 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
 | 1767 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
 | 1768 | for instance \`--prefix=\$HOME'. | 
 | 1769 |  | 
 | 1770 | For better control, use the options below. | 
 | 1771 |  | 
 | 1772 | Fine tuning of the installation directories: | 
 | 1773 |   --bindir=DIR            user executables [EPREFIX/bin] | 
 | 1774 |   --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
 | 1775 |   --libexecdir=DIR        program executables [EPREFIX/libexec] | 
 | 1776 |   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
 | 1777 |   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
 | 1778 |   --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
 | 1779 |   --libdir=DIR            object code libraries [EPREFIX/lib] | 
 | 1780 |   --includedir=DIR        C header files [PREFIX/include] | 
 | 1781 |   --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
 | 1782 |   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
 | 1783 |   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
 | 1784 |   --infodir=DIR           info documentation [DATAROOTDIR/info] | 
 | 1785 |   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
 | 1786 |   --mandir=DIR            man documentation [DATAROOTDIR/man] | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 1787 |   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1788 |   --htmldir=DIR           html documentation [DOCDIR] | 
 | 1789 |   --dvidir=DIR            dvi documentation [DOCDIR] | 
 | 1790 |   --pdfdir=DIR            pdf documentation [DOCDIR] | 
 | 1791 |   --psdir=DIR             ps documentation [DOCDIR] | 
 | 1792 | _ACEOF | 
 | 1793 |  | 
 | 1794 |   cat <<\_ACEOF | 
 | 1795 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1796 | Program names: | 
 | 1797 |   --program-prefix=PREFIX            prepend PREFIX to installed program names | 
 | 1798 |   --program-suffix=SUFFIX            append SUFFIX to installed program names | 
 | 1799 |   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names | 
 | 1800 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1801 | X features: | 
 | 1802 |   --x-includes=DIR    X include files are in DIR | 
 | 1803 |   --x-libraries=DIR   X library files are in DIR | 
 | 1804 |  | 
 | 1805 | System types: | 
 | 1806 |   --build=BUILD     configure for building on BUILD [guessed] | 
 | 1807 |   --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
 | 1808 |   --target=TARGET   configure for building compilers for TARGET [HOST] | 
 | 1809 | _ACEOF | 
 | 1810 | fi | 
 | 1811 |  | 
 | 1812 | if test -n "$ac_init_help"; then | 
 | 1813 |   case $ac_init_help in | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1814 |      short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1815 |    esac | 
 | 1816 |   cat <<\_ACEOF | 
 | 1817 |  | 
 | 1818 | Optional Features: | 
 | 1819 |   --disable-option-checking  ignore unrecognized --enable/--with options | 
 | 1820 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 1821 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1822 |   --enable-silent-rules          less verbose build output (undo: `make V=1') | 
 | 1823 |   --disable-silent-rules         verbose build output (undo: `make V=0') | 
 | 1824 |   --disable-dependency-tracking  speeds up one-time build | 
 | 1825 |   --enable-dependency-tracking   do not reject slow dependency extractors | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1826 |   --bounds-checking       enable run-time bounds-checking | 
 | 1827 |   --enable-osx-universal-binary | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1828 |                           build universal binary on OS X [[default=no]] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1829 |   --disable-openmp        do not use OpenMP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1830 |   --disable-opencl        do not use OpenCL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1831 |   --disable-largefile     omit support for large files | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1832 |   --enable-shared[=PKGS]  build shared libraries [default=yes] | 
 | 1833 |   --enable-static[=PKGS]  build static libraries [default=yes] | 
 | 1834 |   --enable-fast-install[=PKGS] | 
 | 1835 |                           optimize for fast installation [default=yes] | 
 | 1836 |   --disable-libtool-lock  avoid locking (might break parallel builds) | 
 | 1837 |   --enable-ltdl-install   install libltdl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1838 |   --enable-delegate-build look for delegate libraries in build directory | 
 | 1839 |   --disable-deprecated    exclude deprecated methods in MagickCore and | 
 | 1840 |                           MagickWand API's | 
 | 1841 |   --disable-installed     Formally install ImageMagick under PREFIX | 
 | 1842 |   --disable-cipher        disable enciphering and deciphering image pixels | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1843 |   --enable-zero-configuration | 
 | 1844 |                           enable self-contained, embeddable, | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1845 |                           zero-configuration ImageMagick | 
 | 1846 |   --enable-hdri           accurately represent the wide range of intensity | 
 | 1847 |                           levels found in real scenes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1848 |   --disable-assert        disable assert() statements in build | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1849 |   --enable-maintainer-mode  enable make rules and dependencies not useful | 
 | 1850 | 			  (and sometimes confusing) to the casual installer | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1851 |   --enable-ccmalloc       enable 'ccmalloc' memory debug support | 
 | 1852 |   --enable-efence         enable 'efence' memory debug support | 
 | 1853 |   --enable-prof           enable 'prof' profiling support | 
 | 1854 |   --enable-gprof          enable 'gprof' profiling support | 
 | 1855 |   --enable-gcov           enable 'gcov' profiling support | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1856 |   --disable-assert        turn off assertions | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1857 |  | 
 | 1858 | Optional Packages: | 
 | 1859 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 1860 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1861 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 1862 |   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 1863 |   --includearch-dir=DIR   ARCH specific include directory | 
 | 1864 |   --sharearch-dir=DIR     ARCH specific config directory | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1865 |   --without-threads       disable threads support | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 1866 |   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1867 |                           both] | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1868 |   --with-sysroot=DIR Search for dependent libraries within DIR | 
 | 1869 |                         (or the compiler's sysroot if not specified). | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1870 |   --with-included-ltdl    use the GNU ltdl sources included here | 
 | 1871 |   --with-ltdl-include=DIR use the ltdl headers installed in DIR | 
 | 1872 |   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1873 |   --with-modules          enable building dynamically loadable modules | 
 | 1874 |   --with-method-prefix=PREFIX | 
 | 1875 |                           prefix MagickCore API methods | 
 | 1876 |   --with-quantum-depth=DEPTH | 
 | 1877 |                           number of bits in a pixel quantum (default 16) | 
 | 1878 |   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available | 
 | 1879 |                           memory) | 
 | 1880 |   --with-frozenpaths      freeze delegate paths | 
 | 1881 |   --without-magick-plus-plus | 
 | 1882 |                           disable build/install of Magick++ | 
 | 1883 |   --with-perl             enable build/install of PerlMagick | 
 | 1884 |   --with-perl-options=OPTIONS | 
 | 1885 |                           options to pass on command-line when generating | 
 | 1886 |                           PerlMagick's build file | 
 | 1887 |   --with-umem             enable umem memory allocation library support | 
 | 1888 |   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++) | 
 | 1889 |   --without-bzlib         disable BZLIB support | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1890 |   --with-x                use the X Window System | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1891 |   --without-zlib          disable ZLIB support | 
 | 1892 |   --with-autotrace        enable autotrace support | 
 | 1893 |   --without-dps           disable Display Postscript support | 
 | 1894 |   --without-djvu          disable DjVu support | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1895 |   --with-dejavu-font-dir=DIR | 
 | 1896 |                           DejaVu font directory | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1897 |   --without-fftw          disable FFTW support | 
 | 1898 |   --without-fpx           disable FlashPIX support | 
 | 1899 |   --without-fontconfig    disable fontconfig support | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1900 |   --without-freetype      disable Freetype support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1901 |   --without-gslib         enable Ghostscript library support | 
 | 1902 |   --with-fontpath=DIR     prepend to default font search path | 
 | 1903 |   --with-gs-font-dir=DIR  Ghostscript font directory | 
 | 1904 |   --without-gvc           disable GVC support | 
 | 1905 |   --without-jbig          disable JBIG support | 
 | 1906 |   --without-jpeg          disable JPEG support | 
 | 1907 |   --without-jp2           disable JPEG-2000 support | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1908 |   --without-lcms          disable lcms (v1.1X) support | 
 | 1909 |   --without-lcms2         disable lcms (v2.X) support | 
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1910 |   --without-lqr           disable Liquid Rescale support | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1911 |   --without-lzma          disable LZMA support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1912 |   --without-openexr       disable OpenEXR support | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1913 |   --without-pango         disable PANGO support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1914 |   --without-png           disable PNG support | 
 | 1915 |   --without-rsvg          disable RSVG support | 
 | 1916 |   --without-tiff          disable TIFF support | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1917 |   --without-webp          disable WEBP support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1918 |   --with-windows-font-dir=DIR | 
 | 1919 |                           directory containing MS-Windows fonts | 
| cristy | 38eaa7e | 2012-02-05 23:24:01 +0000 | [diff] [blame^] | 1920 |   --with-wmf              enable WMF support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1921 |   --without-xml           disable XML support | 
 | 1922 |  | 
 | 1923 | Some influential environment variables: | 
 | 1924 |   CC          C compiler command | 
 | 1925 |   CFLAGS      C compiler flags | 
 | 1926 |   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
 | 1927 |               nonstandard directory <lib dir> | 
 | 1928 |   LIBS        libraries to pass to the linker, e.g. -l<library> | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1929 |   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1930 |               you have headers in a nonstandard directory <include dir> | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1931 |   CPP         C preprocessor | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1932 |   CXX         C++ compiler command | 
 | 1933 |   CXXFLAGS    C++ compiler flags | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1934 |   PKG_CONFIG  path to pkg-config utility | 
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1935 |   CXXCPP      C++ preprocessor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1936 |   XMKMF       Path to xmkmf, Makefile generator for X Window System | 
 | 1937 |   AUTOTRACE_CFLAGS | 
 | 1938 |               C compiler flags for AUTOTRACE, overriding pkg-config | 
 | 1939 |   AUTOTRACE_LIBS | 
 | 1940 |               linker flags for AUTOTRACE, overriding pkg-config | 
 | 1941 |   FONTCONFIG_CFLAGS | 
 | 1942 |               C compiler flags for FONTCONFIG, overriding pkg-config | 
 | 1943 |   FONTCONFIG_LIBS | 
 | 1944 |               linker flags for FONTCONFIG, overriding pkg-config | 
 | 1945 |   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config | 
 | 1946 |   GVC_LIBS    linker flags for GVC, overriding pkg-config | 
 | 1947 |   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config | 
 | 1948 |   LQR_LIBS    linker flags for LQR, overriding pkg-config | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 1949 |   LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config | 
 | 1950 |   LZMA_LIBS   linker flags for LZMA, overriding pkg-config | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1951 |   OPENEXR_CFLAGS | 
 | 1952 |               C compiler flags for OPENEXR, overriding pkg-config | 
 | 1953 |   OPENEXR_LIBS | 
 | 1954 |               linker flags for OPENEXR, overriding pkg-config | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1955 |   PANGO_CFLAGS | 
 | 1956 |               C compiler flags for PANGO, overriding pkg-config | 
 | 1957 |   PANGO_LIBS  linker flags for PANGO, overriding pkg-config | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1958 |   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config | 
 | 1959 |   RSVG_LIBS   linker flags for RSVG, overriding pkg-config | 
 | 1960 |   CAIRO_SVG_CFLAGS | 
 | 1961 |               C compiler flags for CAIRO_SVG, overriding pkg-config | 
 | 1962 |   CAIRO_SVG_LIBS | 
 | 1963 |               linker flags for CAIRO_SVG, overriding pkg-config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1964 |  | 
 | 1965 | Use these variables to override the choices made by `configure' or to help | 
 | 1966 | it to find libraries and programs with nonstandard names/locations. | 
 | 1967 |  | 
 | 1968 | Report bugs to <http://www.imagemagick.org>. | 
 | 1969 | _ACEOF | 
 | 1970 | ac_status=$? | 
 | 1971 | fi | 
 | 1972 |  | 
 | 1973 | if test "$ac_init_help" = "recursive"; then | 
 | 1974 |   # If there are subdirs, report their specific --help. | 
 | 1975 |   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
 | 1976 |     test -d "$ac_dir" || | 
 | 1977 |       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
 | 1978 |       continue | 
 | 1979 |     ac_builddir=. | 
 | 1980 |  | 
 | 1981 | case "$ac_dir" in | 
 | 1982 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1983 | *) | 
 | 1984 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
 | 1985 |   # A ".." for each directory in $ac_dir_suffix. | 
 | 1986 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
 | 1987 |   case $ac_top_builddir_sub in | 
 | 1988 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 1989 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 1990 |   esac ;; | 
 | 1991 | esac | 
 | 1992 | ac_abs_top_builddir=$ac_pwd | 
 | 1993 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 1994 | # for backward compatibility: | 
 | 1995 | ac_top_builddir=$ac_top_build_prefix | 
 | 1996 |  | 
 | 1997 | case $srcdir in | 
 | 1998 |   .)  # We are building in place. | 
 | 1999 |     ac_srcdir=. | 
 | 2000 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 2001 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 2002 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
 | 2003 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 2004 |     ac_top_srcdir=$srcdir | 
 | 2005 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 2006 |   *) # Relative name. | 
 | 2007 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 2008 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 2009 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
 | 2010 | esac | 
 | 2011 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
 | 2012 |  | 
 | 2013 |     cd "$ac_dir" || { ac_status=$?; continue; } | 
 | 2014 |     # Check for guested configure. | 
 | 2015 |     if test -f "$ac_srcdir/configure.gnu"; then | 
 | 2016 |       echo && | 
 | 2017 |       $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
 | 2018 |     elif test -f "$ac_srcdir/configure"; then | 
 | 2019 |       echo && | 
 | 2020 |       $SHELL "$ac_srcdir/configure" --help=recursive | 
 | 2021 |     else | 
 | 2022 |       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
 | 2023 |     fi || ac_status=$? | 
 | 2024 |     cd "$ac_pwd" || { ac_status=$?; break; } | 
 | 2025 |   done | 
 | 2026 | fi | 
 | 2027 |  | 
 | 2028 | test -n "$ac_init_help" && exit $ac_status | 
 | 2029 | if $ac_init_version; then | 
 | 2030 |   cat <<\_ACEOF | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 2031 | ImageMagick configure 7.0.0-0 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2032 | generated by GNU Autoconf 2.68 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2033 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2034 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2035 | This configure script is free software; the Free Software Foundation | 
 | 2036 | gives unlimited permission to copy, distribute and modify it. | 
 | 2037 | _ACEOF | 
 | 2038 |   exit | 
 | 2039 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2040 |  | 
 | 2041 | ## ------------------------ ## | 
 | 2042 | ## Autoconf initialization. ## | 
 | 2043 | ## ------------------------ ## | 
 | 2044 |  | 
 | 2045 | # ac_fn_c_try_compile LINENO | 
 | 2046 | # -------------------------- | 
 | 2047 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 2048 | ac_fn_c_try_compile () | 
 | 2049 | { | 
 | 2050 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2051 |   rm -f conftest.$ac_objext | 
 | 2052 |   if { { ac_try="$ac_compile" | 
 | 2053 | case "(($ac_try" in | 
 | 2054 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2055 |   *) ac_try_echo=$ac_try;; | 
 | 2056 | esac | 
 | 2057 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2058 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2059 |   (eval "$ac_compile") 2>conftest.err | 
 | 2060 |   ac_status=$? | 
 | 2061 |   if test -s conftest.err; then | 
 | 2062 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2063 |     cat conftest.er1 >&5 | 
 | 2064 |     mv -f conftest.er1 conftest.err | 
 | 2065 |   fi | 
 | 2066 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2067 |   test $ac_status = 0; } && { | 
 | 2068 | 	 test -z "$ac_c_werror_flag" || | 
 | 2069 | 	 test ! -s conftest.err | 
 | 2070 |        } && test -s conftest.$ac_objext; then : | 
 | 2071 |   ac_retval=0 | 
 | 2072 | else | 
 | 2073 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2074 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2075 |  | 
 | 2076 | 	ac_retval=1 | 
 | 2077 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2078 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2079 |   as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2080 |  | 
 | 2081 | } # ac_fn_c_try_compile | 
 | 2082 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2083 | # ac_fn_c_try_cpp LINENO | 
 | 2084 | # ---------------------- | 
 | 2085 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 2086 | ac_fn_c_try_cpp () | 
 | 2087 | { | 
 | 2088 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2089 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 2090 | case "(($ac_try" in | 
 | 2091 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2092 |   *) ac_try_echo=$ac_try;; | 
 | 2093 | esac | 
 | 2094 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2095 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2096 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 2097 |   ac_status=$? | 
 | 2098 |   if test -s conftest.err; then | 
 | 2099 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2100 |     cat conftest.er1 >&5 | 
 | 2101 |     mv -f conftest.er1 conftest.err | 
 | 2102 |   fi | 
 | 2103 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2104 |   test $ac_status = 0; } > conftest.i && { | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2105 | 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
 | 2106 | 	 test ! -s conftest.err | 
 | 2107 |        }; then : | 
 | 2108 |   ac_retval=0 | 
 | 2109 | else | 
 | 2110 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2111 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2112 |  | 
 | 2113 |     ac_retval=1 | 
 | 2114 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2115 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2116 |   as_fn_set_status $ac_retval | 
 | 2117 |  | 
 | 2118 | } # ac_fn_c_try_cpp | 
 | 2119 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2120 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 2121 | # ------------------------------------------------------- | 
 | 2122 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 2123 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 2124 | # accordingly. | 
 | 2125 | ac_fn_c_check_header_mongrel () | 
 | 2126 | { | 
 | 2127 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2128 |   if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2129 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2130 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2131 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2132 |   $as_echo_n "(cached) " >&6 | 
 | 2133 | fi | 
 | 2134 | eval ac_res=\$$3 | 
 | 2135 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2136 | $as_echo "$ac_res" >&6; } | 
 | 2137 | else | 
 | 2138 |   # Is the header compilable? | 
 | 2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 2140 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 2141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2142 | /* end confdefs.h.  */ | 
 | 2143 | $4 | 
 | 2144 | #include <$2> | 
 | 2145 | _ACEOF | 
 | 2146 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2147 |   ac_header_compiler=yes | 
 | 2148 | else | 
 | 2149 |   ac_header_compiler=no | 
 | 2150 | fi | 
 | 2151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 2153 | $as_echo "$ac_header_compiler" >&6; } | 
 | 2154 |  | 
 | 2155 | # Is the header present? | 
 | 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 2157 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 2158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2159 | /* end confdefs.h.  */ | 
 | 2160 | #include <$2> | 
 | 2161 | _ACEOF | 
 | 2162 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 2163 |   ac_header_preproc=yes | 
 | 2164 | else | 
 | 2165 |   ac_header_preproc=no | 
 | 2166 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2167 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 2169 | $as_echo "$ac_header_preproc" >&6; } | 
 | 2170 |  | 
 | 2171 | # So?  What about this header? | 
 | 2172 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
 | 2173 |   yes:no: ) | 
 | 2174 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 2175 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 2176 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 2177 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 2178 |     ;; | 
 | 2179 |   no:yes:* ) | 
 | 2180 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 2181 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 2182 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 2183 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 2184 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 2185 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 2186 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 2187 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 2188 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 2189 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2190 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2191 | ## Report this to http://www.imagemagick.org ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2192 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2193 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 2194 |     ;; | 
 | 2195 | esac | 
 | 2196 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2197 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2198 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2199 |   $as_echo_n "(cached) " >&6 | 
 | 2200 | else | 
 | 2201 |   eval "$3=\$ac_header_compiler" | 
 | 2202 | fi | 
 | 2203 | eval ac_res=\$$3 | 
 | 2204 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2205 | $as_echo "$ac_res" >&6; } | 
 | 2206 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2207 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2208 |  | 
 | 2209 | } # ac_fn_c_check_header_mongrel | 
 | 2210 |  | 
 | 2211 | # ac_fn_c_try_run LINENO | 
 | 2212 | # ---------------------- | 
 | 2213 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
 | 2214 | # that executables *can* be run. | 
 | 2215 | ac_fn_c_try_run () | 
 | 2216 | { | 
 | 2217 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2218 |   if { { ac_try="$ac_link" | 
 | 2219 | case "(($ac_try" in | 
 | 2220 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2221 |   *) ac_try_echo=$ac_try;; | 
 | 2222 | esac | 
 | 2223 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2224 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2225 |   (eval "$ac_link") 2>&5 | 
 | 2226 |   ac_status=$? | 
 | 2227 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2228 |   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
 | 2229 |   { { case "(($ac_try" in | 
 | 2230 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2231 |   *) ac_try_echo=$ac_try;; | 
 | 2232 | esac | 
 | 2233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2234 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2235 |   (eval "$ac_try") 2>&5 | 
 | 2236 |   ac_status=$? | 
 | 2237 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2238 |   test $ac_status = 0; }; }; then : | 
 | 2239 |   ac_retval=0 | 
 | 2240 | else | 
 | 2241 |   $as_echo "$as_me: program exited with status $ac_status" >&5 | 
 | 2242 |        $as_echo "$as_me: failed program was:" >&5 | 
 | 2243 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2244 |  | 
 | 2245 |        ac_retval=$ac_status | 
 | 2246 | fi | 
 | 2247 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2248 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2249 |   as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2250 |  | 
 | 2251 | } # ac_fn_c_try_run | 
 | 2252 |  | 
 | 2253 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
 | 2254 | # ------------------------------------------------------- | 
 | 2255 | # Tests whether HEADER exists and can be compiled using the include files in | 
 | 2256 | # INCLUDES, setting the cache variable VAR accordingly. | 
 | 2257 | ac_fn_c_check_header_compile () | 
 | 2258 | { | 
 | 2259 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2260 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2261 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2262 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2263 |   $as_echo_n "(cached) " >&6 | 
 | 2264 | else | 
 | 2265 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2266 | /* end confdefs.h.  */ | 
 | 2267 | $4 | 
 | 2268 | #include <$2> | 
 | 2269 | _ACEOF | 
 | 2270 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2271 |   eval "$3=yes" | 
 | 2272 | else | 
 | 2273 |   eval "$3=no" | 
 | 2274 | fi | 
 | 2275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2276 | fi | 
 | 2277 | eval ac_res=\$$3 | 
 | 2278 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2279 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2280 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2281 |  | 
 | 2282 | } # ac_fn_c_check_header_compile | 
 | 2283 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2284 | # ac_fn_cxx_try_compile LINENO | 
 | 2285 | # ---------------------------- | 
 | 2286 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
 | 2287 | ac_fn_cxx_try_compile () | 
 | 2288 | { | 
 | 2289 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2290 |   rm -f conftest.$ac_objext | 
 | 2291 |   if { { ac_try="$ac_compile" | 
 | 2292 | case "(($ac_try" in | 
 | 2293 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2294 |   *) ac_try_echo=$ac_try;; | 
 | 2295 | esac | 
 | 2296 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2297 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2298 |   (eval "$ac_compile") 2>conftest.err | 
 | 2299 |   ac_status=$? | 
 | 2300 |   if test -s conftest.err; then | 
 | 2301 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2302 |     cat conftest.er1 >&5 | 
 | 2303 |     mv -f conftest.er1 conftest.err | 
 | 2304 |   fi | 
 | 2305 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2306 |   test $ac_status = 0; } && { | 
 | 2307 | 	 test -z "$ac_cxx_werror_flag" || | 
 | 2308 | 	 test ! -s conftest.err | 
 | 2309 |        } && test -s conftest.$ac_objext; then : | 
 | 2310 |   ac_retval=0 | 
 | 2311 | else | 
 | 2312 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2313 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2314 |  | 
 | 2315 | 	ac_retval=1 | 
 | 2316 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2317 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2318 |   as_fn_set_status $ac_retval | 
 | 2319 |  | 
 | 2320 | } # ac_fn_cxx_try_compile | 
 | 2321 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2322 | # ac_fn_c_try_link LINENO | 
 | 2323 | # ----------------------- | 
 | 2324 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 2325 | ac_fn_c_try_link () | 
 | 2326 | { | 
 | 2327 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2328 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 2329 |   if { { ac_try="$ac_link" | 
 | 2330 | case "(($ac_try" in | 
 | 2331 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2332 |   *) ac_try_echo=$ac_try;; | 
 | 2333 | esac | 
 | 2334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2335 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2336 |   (eval "$ac_link") 2>conftest.err | 
 | 2337 |   ac_status=$? | 
 | 2338 |   if test -s conftest.err; then | 
 | 2339 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2340 |     cat conftest.er1 >&5 | 
 | 2341 |     mv -f conftest.er1 conftest.err | 
 | 2342 |   fi | 
 | 2343 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2344 |   test $ac_status = 0; } && { | 
 | 2345 | 	 test -z "$ac_c_werror_flag" || | 
 | 2346 | 	 test ! -s conftest.err | 
 | 2347 |        } && test -s conftest$ac_exeext && { | 
 | 2348 | 	 test "$cross_compiling" = yes || | 
 | 2349 | 	 $as_test_x conftest$ac_exeext | 
 | 2350 |        }; then : | 
 | 2351 |   ac_retval=0 | 
 | 2352 | else | 
 | 2353 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2354 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2355 |  | 
 | 2356 | 	ac_retval=1 | 
 | 2357 | fi | 
 | 2358 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 2359 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 2360 |   # interfere with the next link command; also delete a directory that is | 
 | 2361 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 2362 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2363 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2364 |   as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2365 |  | 
 | 2366 | } # ac_fn_c_try_link | 
 | 2367 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2368 | # ac_fn_c_check_func LINENO FUNC VAR | 
 | 2369 | # ---------------------------------- | 
 | 2370 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
 | 2371 | ac_fn_c_check_func () | 
 | 2372 | { | 
 | 2373 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2374 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2375 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2376 | if eval \${$3+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2377 |   $as_echo_n "(cached) " >&6 | 
 | 2378 | else | 
 | 2379 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2380 | /* end confdefs.h.  */ | 
 | 2381 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
 | 2382 |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
 | 2383 | #define $2 innocuous_$2 | 
 | 2384 |  | 
 | 2385 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2386 |     which can conflict with char $2 (); below. | 
 | 2387 |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 2388 |     <limits.h> exists even on freestanding compilers.  */ | 
 | 2389 |  | 
 | 2390 | #ifdef __STDC__ | 
 | 2391 | # include <limits.h> | 
 | 2392 | #else | 
 | 2393 | # include <assert.h> | 
 | 2394 | #endif | 
 | 2395 |  | 
 | 2396 | #undef $2 | 
 | 2397 |  | 
 | 2398 | /* Override any GCC internal prototype to avoid an error. | 
 | 2399 |    Use char because int might match the return type of a GCC | 
 | 2400 |    builtin and then its argument prototype would still apply.  */ | 
 | 2401 | #ifdef __cplusplus | 
 | 2402 | extern "C" | 
 | 2403 | #endif | 
 | 2404 | char $2 (); | 
 | 2405 | /* The GNU C library defines this for functions which it implements | 
 | 2406 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2407 |     something starting with __ and the normal name is an alias.  */ | 
 | 2408 | #if defined __stub_$2 || defined __stub___$2 | 
 | 2409 | choke me | 
 | 2410 | #endif | 
 | 2411 |  | 
 | 2412 | int | 
 | 2413 | main () | 
 | 2414 | { | 
 | 2415 | return $2 (); | 
 | 2416 |   ; | 
 | 2417 |   return 0; | 
 | 2418 | } | 
 | 2419 | _ACEOF | 
 | 2420 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 2421 |   eval "$3=yes" | 
 | 2422 | else | 
 | 2423 |   eval "$3=no" | 
 | 2424 | fi | 
 | 2425 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 2426 |     conftest$ac_exeext conftest.$ac_ext | 
 | 2427 | fi | 
 | 2428 | eval ac_res=\$$3 | 
 | 2429 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2430 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2431 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2432 |  | 
 | 2433 | } # ac_fn_c_check_func | 
 | 2434 |  | 
 | 2435 | # ac_fn_cxx_try_cpp LINENO | 
 | 2436 | # ------------------------ | 
 | 2437 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
 | 2438 | ac_fn_cxx_try_cpp () | 
 | 2439 | { | 
 | 2440 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2441 |   if { { ac_try="$ac_cpp conftest.$ac_ext" | 
 | 2442 | case "(($ac_try" in | 
 | 2443 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2444 |   *) ac_try_echo=$ac_try;; | 
 | 2445 | esac | 
 | 2446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2447 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2448 |   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
 | 2449 |   ac_status=$? | 
 | 2450 |   if test -s conftest.err; then | 
 | 2451 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2452 |     cat conftest.er1 >&5 | 
 | 2453 |     mv -f conftest.er1 conftest.err | 
 | 2454 |   fi | 
 | 2455 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2456 |   test $ac_status = 0; } > conftest.i && { | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2457 | 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | 
 | 2458 | 	 test ! -s conftest.err | 
 | 2459 |        }; then : | 
 | 2460 |   ac_retval=0 | 
 | 2461 | else | 
 | 2462 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2463 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2464 |  | 
 | 2465 |     ac_retval=1 | 
 | 2466 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2467 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2468 |   as_fn_set_status $ac_retval | 
 | 2469 |  | 
 | 2470 | } # ac_fn_cxx_try_cpp | 
 | 2471 |  | 
 | 2472 | # ac_fn_cxx_try_link LINENO | 
 | 2473 | # ------------------------- | 
 | 2474 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
 | 2475 | ac_fn_cxx_try_link () | 
 | 2476 | { | 
 | 2477 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2478 |   rm -f conftest.$ac_objext conftest$ac_exeext | 
 | 2479 |   if { { ac_try="$ac_link" | 
 | 2480 | case "(($ac_try" in | 
 | 2481 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 2482 |   *) ac_try_echo=$ac_try;; | 
 | 2483 | esac | 
 | 2484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 2485 | $as_echo "$ac_try_echo"; } >&5 | 
 | 2486 |   (eval "$ac_link") 2>conftest.err | 
 | 2487 |   ac_status=$? | 
 | 2488 |   if test -s conftest.err; then | 
 | 2489 |     grep -v '^ *+' conftest.err >conftest.er1 | 
 | 2490 |     cat conftest.er1 >&5 | 
 | 2491 |     mv -f conftest.er1 conftest.err | 
 | 2492 |   fi | 
 | 2493 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 2494 |   test $ac_status = 0; } && { | 
 | 2495 | 	 test -z "$ac_cxx_werror_flag" || | 
 | 2496 | 	 test ! -s conftest.err | 
 | 2497 |        } && test -s conftest$ac_exeext && { | 
 | 2498 | 	 test "$cross_compiling" = yes || | 
 | 2499 | 	 $as_test_x conftest$ac_exeext | 
 | 2500 |        }; then : | 
 | 2501 |   ac_retval=0 | 
 | 2502 | else | 
 | 2503 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 2504 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 2505 |  | 
 | 2506 | 	ac_retval=1 | 
 | 2507 | fi | 
 | 2508 |   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
 | 2509 |   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
 | 2510 |   # interfere with the next link command; also delete a directory that is | 
 | 2511 |   # left behind by Apple's compiler.  We do this before executing the actions. | 
 | 2512 |   rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2513 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2514 |   as_fn_set_status $ac_retval | 
 | 2515 |  | 
 | 2516 | } # ac_fn_cxx_try_link | 
 | 2517 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2518 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
 | 2519 | # --------------------------------------------- | 
 | 2520 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
 | 2521 | # accordingly. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2522 | ac_fn_c_check_decl () | 
 | 2523 | { | 
 | 2524 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2525 |   as_decl_name=`echo $2|sed 's/ *(.*//'` | 
 | 2526 |   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
 | 2527 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
 | 2528 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2529 | if eval \${$3+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2530 |   $as_echo_n "(cached) " >&6 | 
 | 2531 | else | 
 | 2532 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2533 | /* end confdefs.h.  */ | 
 | 2534 | $4 | 
 | 2535 | int | 
 | 2536 | main () | 
 | 2537 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2538 | #ifndef $as_decl_name | 
 | 2539 | #ifdef __cplusplus | 
 | 2540 |   (void) $as_decl_use; | 
 | 2541 | #else | 
 | 2542 |   (void) $as_decl_name; | 
 | 2543 | #endif | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2544 | #endif | 
 | 2545 |  | 
 | 2546 |   ; | 
 | 2547 |   return 0; | 
 | 2548 | } | 
 | 2549 | _ACEOF | 
 | 2550 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2551 |   eval "$3=yes" | 
 | 2552 | else | 
 | 2553 |   eval "$3=no" | 
 | 2554 | fi | 
 | 2555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2556 | fi | 
 | 2557 | eval ac_res=\$$3 | 
 | 2558 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2559 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2560 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2561 |  | 
 | 2562 | } # ac_fn_c_check_decl | 
 | 2563 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2564 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
 | 2565 | # ------------------------------------------- | 
 | 2566 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
 | 2567 | # variable VAR accordingly. | 
 | 2568 | ac_fn_c_check_type () | 
 | 2569 | { | 
 | 2570 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2571 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2572 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2573 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2574 |   $as_echo_n "(cached) " >&6 | 
 | 2575 | else | 
 | 2576 |   eval "$3=no" | 
 | 2577 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2578 | /* end confdefs.h.  */ | 
 | 2579 | $4 | 
 | 2580 | int | 
 | 2581 | main () | 
 | 2582 | { | 
 | 2583 | if (sizeof ($2)) | 
 | 2584 | 	 return 0; | 
 | 2585 |   ; | 
 | 2586 |   return 0; | 
 | 2587 | } | 
 | 2588 | _ACEOF | 
 | 2589 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2590 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2591 | /* end confdefs.h.  */ | 
 | 2592 | $4 | 
 | 2593 | int | 
 | 2594 | main () | 
 | 2595 | { | 
 | 2596 | if (sizeof (($2))) | 
 | 2597 | 	    return 0; | 
 | 2598 |   ; | 
 | 2599 |   return 0; | 
 | 2600 | } | 
 | 2601 | _ACEOF | 
 | 2602 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2603 |  | 
 | 2604 | else | 
 | 2605 |   eval "$3=yes" | 
 | 2606 | fi | 
 | 2607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2608 | fi | 
 | 2609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2610 | fi | 
 | 2611 | eval ac_res=\$$3 | 
 | 2612 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2613 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2614 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2615 |  | 
 | 2616 | } # ac_fn_c_check_type | 
 | 2617 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2618 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
 | 2619 | # ---------------------------------------------------- | 
 | 2620 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
 | 2621 | # INCLUDES, setting cache variable VAR accordingly. | 
 | 2622 | ac_fn_c_check_member () | 
 | 2623 | { | 
 | 2624 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2625 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
 | 2626 | $as_echo_n "checking for $2.$3... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2627 | if eval \${$4+:} false; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2628 |   $as_echo_n "(cached) " >&6 | 
 | 2629 | else | 
 | 2630 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2631 | /* end confdefs.h.  */ | 
 | 2632 | $5 | 
 | 2633 | int | 
 | 2634 | main () | 
 | 2635 | { | 
 | 2636 | static $2 ac_aggr; | 
 | 2637 | if (ac_aggr.$3) | 
 | 2638 | return 0; | 
 | 2639 |   ; | 
 | 2640 |   return 0; | 
 | 2641 | } | 
 | 2642 | _ACEOF | 
 | 2643 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2644 |   eval "$4=yes" | 
 | 2645 | else | 
 | 2646 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2647 | /* end confdefs.h.  */ | 
 | 2648 | $5 | 
 | 2649 | int | 
 | 2650 | main () | 
 | 2651 | { | 
 | 2652 | static $2 ac_aggr; | 
 | 2653 | if (sizeof ac_aggr.$3) | 
 | 2654 | return 0; | 
 | 2655 |   ; | 
 | 2656 |   return 0; | 
 | 2657 | } | 
 | 2658 | _ACEOF | 
 | 2659 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2660 |   eval "$4=yes" | 
 | 2661 | else | 
 | 2662 |   eval "$4=no" | 
 | 2663 | fi | 
 | 2664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2665 | fi | 
 | 2666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2667 | fi | 
 | 2668 | eval ac_res=\$$4 | 
 | 2669 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2670 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2671 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2672 |  | 
 | 2673 | } # ac_fn_c_check_member | 
 | 2674 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2675 | # ac_fn_c_find_intX_t LINENO BITS VAR | 
 | 2676 | # ----------------------------------- | 
 | 2677 | # Finds a signed integer type with width BITS, setting cache variable VAR | 
 | 2678 | # accordingly. | 
 | 2679 | ac_fn_c_find_intX_t () | 
 | 2680 | { | 
 | 2681 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2682 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | 
 | 2683 | $as_echo_n "checking for int$2_t... " >&6; } | 
 | 2684 | if eval \${$3+:} false; then : | 
 | 2685 |   $as_echo_n "(cached) " >&6 | 
 | 2686 | else | 
 | 2687 |   eval "$3=no" | 
 | 2688 |      # Order is important - never check a type that is potentially smaller | 
 | 2689 |      # than half of the expected target width. | 
 | 2690 |      for ac_type in int$2_t 'int' 'long int' \ | 
 | 2691 | 	 'long long int' 'short int' 'signed char'; do | 
 | 2692 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2693 | /* end confdefs.h.  */ | 
 | 2694 | $ac_includes_default | 
 | 2695 | 	     enum { N = $2 / 2 - 1 }; | 
 | 2696 | int | 
 | 2697 | main () | 
 | 2698 | { | 
 | 2699 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | 
 | 2700 | test_array [0] = 0 | 
 | 2701 |  | 
 | 2702 |   ; | 
 | 2703 |   return 0; | 
 | 2704 | } | 
 | 2705 | _ACEOF | 
 | 2706 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2707 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2708 | /* end confdefs.h.  */ | 
 | 2709 | $ac_includes_default | 
 | 2710 | 	        enum { N = $2 / 2 - 1 }; | 
 | 2711 | int | 
 | 2712 | main () | 
 | 2713 | { | 
 | 2714 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | 
 | 2715 | 		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | 
 | 2716 | test_array [0] = 0 | 
 | 2717 |  | 
 | 2718 |   ; | 
 | 2719 |   return 0; | 
 | 2720 | } | 
 | 2721 | _ACEOF | 
 | 2722 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2723 |  | 
 | 2724 | else | 
 | 2725 |   case $ac_type in #( | 
 | 2726 |   int$2_t) : | 
 | 2727 |     eval "$3=yes" ;; #( | 
 | 2728 |   *) : | 
 | 2729 |     eval "$3=\$ac_type" ;; | 
 | 2730 | esac | 
 | 2731 | fi | 
 | 2732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2733 | fi | 
 | 2734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2735 |        if eval test \"x\$"$3"\" = x"no"; then : | 
 | 2736 |  | 
 | 2737 | else | 
 | 2738 |   break | 
 | 2739 | fi | 
 | 2740 |      done | 
 | 2741 | fi | 
 | 2742 | eval ac_res=\$$3 | 
 | 2743 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2744 | $as_echo "$ac_res" >&6; } | 
 | 2745 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2746 |  | 
 | 2747 | } # ac_fn_c_find_intX_t | 
 | 2748 |  | 
 | 2749 | # ac_fn_c_find_uintX_t LINENO BITS VAR | 
 | 2750 | # ------------------------------------ | 
 | 2751 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | 
 | 2752 | # accordingly. | 
 | 2753 | ac_fn_c_find_uintX_t () | 
 | 2754 | { | 
 | 2755 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2756 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | 
 | 2757 | $as_echo_n "checking for uint$2_t... " >&6; } | 
 | 2758 | if eval \${$3+:} false; then : | 
 | 2759 |   $as_echo_n "(cached) " >&6 | 
 | 2760 | else | 
 | 2761 |   eval "$3=no" | 
 | 2762 |      # Order is important - never check a type that is potentially smaller | 
 | 2763 |      # than half of the expected target width. | 
 | 2764 |      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | 
 | 2765 | 	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | 
 | 2766 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2767 | /* end confdefs.h.  */ | 
 | 2768 | $ac_includes_default | 
 | 2769 | int | 
 | 2770 | main () | 
 | 2771 | { | 
 | 2772 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | 
 | 2773 | test_array [0] = 0 | 
 | 2774 |  | 
 | 2775 |   ; | 
 | 2776 |   return 0; | 
 | 2777 | } | 
 | 2778 | _ACEOF | 
 | 2779 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2780 |   case $ac_type in #( | 
 | 2781 |   uint$2_t) : | 
 | 2782 |     eval "$3=yes" ;; #( | 
 | 2783 |   *) : | 
 | 2784 |     eval "$3=\$ac_type" ;; | 
 | 2785 | esac | 
 | 2786 | fi | 
 | 2787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2788 |        if eval test \"x\$"$3"\" = x"no"; then : | 
 | 2789 |  | 
 | 2790 | else | 
 | 2791 |   break | 
 | 2792 | fi | 
 | 2793 |      done | 
 | 2794 | fi | 
 | 2795 | eval ac_res=\$$3 | 
 | 2796 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2797 | $as_echo "$ac_res" >&6; } | 
 | 2798 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
 | 2799 |  | 
 | 2800 | } # ac_fn_c_find_uintX_t | 
 | 2801 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2802 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
 | 2803 | # -------------------------------------------- | 
 | 2804 | # Tries to find the compile-time value of EXPR in a program that includes | 
 | 2805 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
 | 2806 | # computed | 
 | 2807 | ac_fn_c_compute_int () | 
 | 2808 | { | 
 | 2809 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 2810 |   if test "$cross_compiling" = yes; then | 
 | 2811 |     # Depending upon the size, compute the lo and hi bounds. | 
 | 2812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2813 | /* end confdefs.h.  */ | 
 | 2814 | $4 | 
 | 2815 | int | 
 | 2816 | main () | 
 | 2817 | { | 
 | 2818 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
 | 2819 | test_array [0] = 0 | 
 | 2820 |  | 
 | 2821 |   ; | 
 | 2822 |   return 0; | 
 | 2823 | } | 
 | 2824 | _ACEOF | 
 | 2825 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2826 |   ac_lo=0 ac_mid=0 | 
 | 2827 |   while :; do | 
 | 2828 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2829 | /* end confdefs.h.  */ | 
 | 2830 | $4 | 
 | 2831 | int | 
 | 2832 | main () | 
 | 2833 | { | 
 | 2834 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2835 | test_array [0] = 0 | 
 | 2836 |  | 
 | 2837 |   ; | 
 | 2838 |   return 0; | 
 | 2839 | } | 
 | 2840 | _ACEOF | 
 | 2841 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2842 |   ac_hi=$ac_mid; break | 
 | 2843 | else | 
 | 2844 |   as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
 | 2845 | 			if test $ac_lo -le $ac_mid; then | 
 | 2846 | 			  ac_lo= ac_hi= | 
 | 2847 | 			  break | 
 | 2848 | 			fi | 
 | 2849 | 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
 | 2850 | fi | 
 | 2851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2852 |   done | 
 | 2853 | else | 
 | 2854 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2855 | /* end confdefs.h.  */ | 
 | 2856 | $4 | 
 | 2857 | int | 
 | 2858 | main () | 
 | 2859 | { | 
 | 2860 | static int test_array [1 - 2 * !(($2) < 0)]; | 
 | 2861 | test_array [0] = 0 | 
 | 2862 |  | 
 | 2863 |   ; | 
 | 2864 |   return 0; | 
 | 2865 | } | 
 | 2866 | _ACEOF | 
 | 2867 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2868 |   ac_hi=-1 ac_mid=-1 | 
 | 2869 |   while :; do | 
 | 2870 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2871 | /* end confdefs.h.  */ | 
 | 2872 | $4 | 
 | 2873 | int | 
 | 2874 | main () | 
 | 2875 | { | 
 | 2876 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
 | 2877 | test_array [0] = 0 | 
 | 2878 |  | 
 | 2879 |   ; | 
 | 2880 |   return 0; | 
 | 2881 | } | 
 | 2882 | _ACEOF | 
 | 2883 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2884 |   ac_lo=$ac_mid; break | 
 | 2885 | else | 
 | 2886 |   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
 | 2887 | 			if test $ac_mid -le $ac_hi; then | 
 | 2888 | 			  ac_lo= ac_hi= | 
 | 2889 | 			  break | 
 | 2890 | 			fi | 
 | 2891 | 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
 | 2892 | fi | 
 | 2893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2894 |   done | 
 | 2895 | else | 
 | 2896 |   ac_lo= ac_hi= | 
 | 2897 | fi | 
 | 2898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2899 | fi | 
 | 2900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2901 | # Binary search between lo and hi bounds. | 
 | 2902 | while test "x$ac_lo" != "x$ac_hi"; do | 
 | 2903 |   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
 | 2904 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2905 | /* end confdefs.h.  */ | 
 | 2906 | $4 | 
 | 2907 | int | 
 | 2908 | main () | 
 | 2909 | { | 
 | 2910 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
 | 2911 | test_array [0] = 0 | 
 | 2912 |  | 
 | 2913 |   ; | 
 | 2914 |   return 0; | 
 | 2915 | } | 
 | 2916 | _ACEOF | 
 | 2917 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 2918 |   ac_hi=$ac_mid | 
 | 2919 | else | 
 | 2920 |   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
 | 2921 | fi | 
 | 2922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 2923 | done | 
 | 2924 | case $ac_lo in #(( | 
 | 2925 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
 | 2926 | '') ac_retval=1 ;; | 
 | 2927 | esac | 
 | 2928 |   else | 
 | 2929 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 2930 | /* end confdefs.h.  */ | 
 | 2931 | $4 | 
 | 2932 | static long int longval () { return $2; } | 
 | 2933 | static unsigned long int ulongval () { return $2; } | 
 | 2934 | #include <stdio.h> | 
 | 2935 | #include <stdlib.h> | 
 | 2936 | int | 
 | 2937 | main () | 
 | 2938 | { | 
 | 2939 |  | 
 | 2940 |   FILE *f = fopen ("conftest.val", "w"); | 
 | 2941 |   if (! f) | 
 | 2942 |     return 1; | 
 | 2943 |   if (($2) < 0) | 
 | 2944 |     { | 
 | 2945 |       long int i = longval (); | 
 | 2946 |       if (i != ($2)) | 
 | 2947 | 	return 1; | 
 | 2948 |       fprintf (f, "%ld", i); | 
 | 2949 |     } | 
 | 2950 |   else | 
 | 2951 |     { | 
 | 2952 |       unsigned long int i = ulongval (); | 
 | 2953 |       if (i != ($2)) | 
 | 2954 | 	return 1; | 
 | 2955 |       fprintf (f, "%lu", i); | 
 | 2956 |     } | 
 | 2957 |   /* Do not output a trailing newline, as this causes \r\n confusion | 
 | 2958 |      on some platforms.  */ | 
 | 2959 |   return ferror (f) || fclose (f) != 0; | 
 | 2960 |  | 
 | 2961 |   ; | 
 | 2962 |   return 0; | 
 | 2963 | } | 
 | 2964 | _ACEOF | 
 | 2965 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 2966 |   echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
 | 2967 | else | 
 | 2968 |   ac_retval=1 | 
 | 2969 | fi | 
 | 2970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 2971 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 2972 | rm -f conftest.val | 
 | 2973 |  | 
 | 2974 |   fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2975 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2976 |   as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2977 |  | 
 | 2978 | } # ac_fn_c_compute_int | 
 | 2979 |  | 
 | 2980 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | 
 | 2981 | # --------------------------------------------------------- | 
 | 2982 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
 | 2983 | # the include files in INCLUDES and setting the cache variable VAR | 
 | 2984 | # accordingly. | 
 | 2985 | ac_fn_cxx_check_header_mongrel () | 
 | 2986 | { | 
 | 2987 |   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2988 |   if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2989 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 2990 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2991 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2992 |   $as_echo_n "(cached) " >&6 | 
 | 2993 | fi | 
 | 2994 | eval ac_res=\$$3 | 
 | 2995 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 2996 | $as_echo "$ac_res" >&6; } | 
 | 2997 | else | 
 | 2998 |   # Is the header compilable? | 
 | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
 | 3000 | $as_echo_n "checking $2 usability... " >&6; } | 
 | 3001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3002 | /* end confdefs.h.  */ | 
 | 3003 | $4 | 
 | 3004 | #include <$2> | 
 | 3005 | _ACEOF | 
 | 3006 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 3007 |   ac_header_compiler=yes | 
 | 3008 | else | 
 | 3009 |   ac_header_compiler=no | 
 | 3010 | fi | 
 | 3011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
 | 3013 | $as_echo "$ac_header_compiler" >&6; } | 
 | 3014 |  | 
 | 3015 | # Is the header present? | 
 | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
 | 3017 | $as_echo_n "checking $2 presence... " >&6; } | 
 | 3018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 3019 | /* end confdefs.h.  */ | 
 | 3020 | #include <$2> | 
 | 3021 | _ACEOF | 
 | 3022 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
 | 3023 |   ac_header_preproc=yes | 
 | 3024 | else | 
 | 3025 |   ac_header_preproc=no | 
 | 3026 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3027 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
 | 3029 | $as_echo "$ac_header_preproc" >&6; } | 
 | 3030 |  | 
 | 3031 | # So?  What about this header? | 
 | 3032 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | 
 | 3033 |   yes:no: ) | 
 | 3034 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
 | 3035 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
 | 3036 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 3037 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
 | 3038 |     ;; | 
 | 3039 |   no:yes:* ) | 
 | 3040 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
 | 3041 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
 | 3042 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
 | 3043 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
 | 3044 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
 | 3045 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
 | 3046 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
 | 3047 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
 | 3048 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
 | 3049 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3050 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3051 | ## Report this to http://www.imagemagick.org ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3052 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3053 |      ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
 | 3054 |     ;; | 
 | 3055 | esac | 
 | 3056 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
 | 3057 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3058 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3059 |   $as_echo_n "(cached) " >&6 | 
 | 3060 | else | 
 | 3061 |   eval "$3=\$ac_header_compiler" | 
 | 3062 | fi | 
 | 3063 | eval ac_res=\$$3 | 
 | 3064 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
 | 3065 | $as_echo "$ac_res" >&6; } | 
 | 3066 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3067 |   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3068 |  | 
 | 3069 | } # ac_fn_cxx_check_header_mongrel | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3070 | cat >config.log <<_ACEOF | 
 | 3071 | This file contains any messages produced by compilers while | 
 | 3072 | running configure, to aid debugging if configure makes a mistake. | 
 | 3073 |  | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 3074 | It was created by ImageMagick $as_me 7.0.0-0, which was | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3075 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3076 |  | 
 | 3077 |   $ $0 $@ | 
 | 3078 |  | 
 | 3079 | _ACEOF | 
 | 3080 | exec 5>>config.log | 
 | 3081 | { | 
 | 3082 | cat <<_ASUNAME | 
 | 3083 | ## --------- ## | 
 | 3084 | ## Platform. ## | 
 | 3085 | ## --------- ## | 
 | 3086 |  | 
 | 3087 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 3088 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
 | 3089 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
 | 3090 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
 | 3091 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
 | 3092 |  | 
 | 3093 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
 | 3094 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
 | 3095 |  | 
 | 3096 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
 | 3097 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
 | 3098 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
 | 3099 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
 | 3100 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
 | 3101 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
 | 3102 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
 | 3103 |  | 
 | 3104 | _ASUNAME | 
 | 3105 |  | 
 | 3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3107 | for as_dir in $PATH | 
 | 3108 | do | 
 | 3109 |   IFS=$as_save_IFS | 
 | 3110 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3111 |     $as_echo "PATH: $as_dir" | 
 | 3112 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3113 | IFS=$as_save_IFS | 
 | 3114 |  | 
 | 3115 | } >&5 | 
 | 3116 |  | 
 | 3117 | cat >&5 <<_ACEOF | 
 | 3118 |  | 
 | 3119 |  | 
 | 3120 | ## ----------- ## | 
 | 3121 | ## Core tests. ## | 
 | 3122 | ## ----------- ## | 
 | 3123 |  | 
 | 3124 | _ACEOF | 
 | 3125 |  | 
 | 3126 |  | 
 | 3127 | # Keep a trace of the command line. | 
 | 3128 | # Strip out --no-create and --no-recursion so they do not pile up. | 
 | 3129 | # Strip out --silent because we don't want to record it for future runs. | 
 | 3130 | # Also quote any args containing shell meta-characters. | 
 | 3131 | # Make two passes to allow for proper duplicate-argument suppression. | 
 | 3132 | ac_configure_args= | 
 | 3133 | ac_configure_args0= | 
 | 3134 | ac_configure_args1= | 
 | 3135 | ac_must_keep_next=false | 
 | 3136 | for ac_pass in 1 2 | 
 | 3137 | do | 
 | 3138 |   for ac_arg | 
 | 3139 |   do | 
 | 3140 |     case $ac_arg in | 
 | 3141 |     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
 | 3142 |     -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 3143 |     | -silent | --silent | --silen | --sile | --sil) | 
 | 3144 |       continue ;; | 
 | 3145 |     *\'*) | 
 | 3146 |       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 3147 |     esac | 
 | 3148 |     case $ac_pass in | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3149 |     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3150 |     2) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3151 |       as_fn_append ac_configure_args1 " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3152 |       if test $ac_must_keep_next = true; then | 
 | 3153 | 	ac_must_keep_next=false # Got value, back to normal. | 
 | 3154 |       else | 
 | 3155 | 	case $ac_arg in | 
 | 3156 | 	  *=* | --config-cache | -C | -disable-* | --disable-* \ | 
 | 3157 | 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
 | 3158 | 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
 | 3159 | 	  | -with-* | --with-* | -without-* | --without-* | --x) | 
 | 3160 | 	    case "$ac_configure_args0 " in | 
 | 3161 | 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
 | 3162 | 	    esac | 
 | 3163 | 	    ;; | 
 | 3164 | 	  -* ) ac_must_keep_next=true ;; | 
 | 3165 | 	esac | 
 | 3166 |       fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3167 |       as_fn_append ac_configure_args " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3168 |       ;; | 
 | 3169 |     esac | 
 | 3170 |   done | 
 | 3171 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3172 | { ac_configure_args0=; unset ac_configure_args0;} | 
 | 3173 | { ac_configure_args1=; unset ac_configure_args1;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3174 |  | 
 | 3175 | # When interrupted or exit'd, cleanup temporary files, and complete | 
 | 3176 | # config.log.  We remove comments because anyway the quotes in there | 
 | 3177 | # would cause problems or look ugly. | 
 | 3178 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
 | 3179 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
 | 3180 | trap 'exit_status=$? | 
 | 3181 |   # Save into config.log some information that might help in debugging. | 
 | 3182 |   { | 
 | 3183 |     echo | 
 | 3184 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3185 |     $as_echo "## ---------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3186 | ## Cache variables. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3187 | ## ---------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3188 |     echo | 
 | 3189 |     # The following way of writing the cache mishandles newlines in values, | 
 | 3190 | ( | 
 | 3191 |   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
 | 3192 |     eval ac_val=\$$ac_var | 
 | 3193 |     case $ac_val in #( | 
 | 3194 |     *${as_nl}*) | 
 | 3195 |       case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3196 |       *_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] | 3197 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
 | 3198 |       esac | 
 | 3199 |       case $ac_var in #( | 
 | 3200 |       _ | IFS | as_nl) ;; #( | 
 | 3201 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3202 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3203 |       esac ;; | 
 | 3204 |     esac | 
 | 3205 |   done | 
 | 3206 |   (set) 2>&1 | | 
 | 3207 |     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
 | 3208 |     *${as_nl}ac_space=\ *) | 
 | 3209 |       sed -n \ | 
 | 3210 | 	"s/'\''/'\''\\\\'\'''\''/g; | 
 | 3211 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
 | 3212 |       ;; #( | 
 | 3213 |     *) | 
 | 3214 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
 | 3215 |       ;; | 
 | 3216 |     esac | | 
 | 3217 |     sort | 
 | 3218 | ) | 
 | 3219 |     echo | 
 | 3220 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3221 |     $as_echo "## ----------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3222 | ## Output variables. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3223 | ## ----------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3224 |     echo | 
 | 3225 |     for ac_var in $ac_subst_vars | 
 | 3226 |     do | 
 | 3227 |       eval ac_val=\$$ac_var | 
 | 3228 |       case $ac_val in | 
 | 3229 |       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
 | 3230 |       esac | 
 | 3231 |       $as_echo "$ac_var='\''$ac_val'\''" | 
 | 3232 |     done | sort | 
 | 3233 |     echo | 
 | 3234 |  | 
 | 3235 |     if test -n "$ac_subst_files"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3236 |       $as_echo "## ------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3237 | ## File substitutions. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3238 | ## ------------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3239 |       echo | 
 | 3240 |       for ac_var in $ac_subst_files | 
 | 3241 |       do | 
 | 3242 | 	eval ac_val=\$$ac_var | 
 | 3243 | 	case $ac_val in | 
 | 3244 | 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
 | 3245 | 	esac | 
 | 3246 | 	$as_echo "$ac_var='\''$ac_val'\''" | 
 | 3247 |       done | sort | 
 | 3248 |       echo | 
 | 3249 |     fi | 
 | 3250 |  | 
 | 3251 |     if test -s confdefs.h; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3252 |       $as_echo "## ----------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3253 | ## confdefs.h. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3254 | ## ----------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3255 |       echo | 
 | 3256 |       cat confdefs.h | 
 | 3257 |       echo | 
 | 3258 |     fi | 
 | 3259 |     test "$ac_signal" != 0 && | 
 | 3260 |       $as_echo "$as_me: caught signal $ac_signal" | 
 | 3261 |     $as_echo "$as_me: exit $exit_status" | 
 | 3262 |   } >&5 | 
 | 3263 |   rm -f core *.core core.conftest.* && | 
 | 3264 |     rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
 | 3265 |     exit $exit_status | 
 | 3266 | ' 0 | 
 | 3267 | for ac_signal in 1 2 13 15; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3268 |   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3269 | done | 
 | 3270 | ac_signal=0 | 
 | 3271 |  | 
 | 3272 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 3273 | rm -f -r conftest* confdefs.h | 
 | 3274 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3275 | $as_echo "/* confdefs.h */" > confdefs.h | 
 | 3276 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3277 | # Predefined preprocessor variables. | 
 | 3278 |  | 
 | 3279 | cat >>confdefs.h <<_ACEOF | 
 | 3280 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
 | 3281 | _ACEOF | 
 | 3282 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3283 | cat >>confdefs.h <<_ACEOF | 
 | 3284 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
 | 3285 | _ACEOF | 
 | 3286 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3287 | cat >>confdefs.h <<_ACEOF | 
 | 3288 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
 | 3289 | _ACEOF | 
 | 3290 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3291 | cat >>confdefs.h <<_ACEOF | 
 | 3292 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
 | 3293 | _ACEOF | 
 | 3294 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3295 | cat >>confdefs.h <<_ACEOF | 
 | 3296 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
 | 3297 | _ACEOF | 
 | 3298 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3299 | cat >>confdefs.h <<_ACEOF | 
 | 3300 | #define PACKAGE_URL "$PACKAGE_URL" | 
 | 3301 | _ACEOF | 
 | 3302 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3303 |  | 
 | 3304 | # Let the site file select an alternate cache file if it wants to. | 
 | 3305 | # Prefer an explicitly selected file to automatically selected ones. | 
 | 3306 | ac_site_file1=NONE | 
 | 3307 | ac_site_file2=NONE | 
 | 3308 | if test -n "$CONFIG_SITE"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3309 |   # We do not want a PATH search for config.site. | 
 | 3310 |   case $CONFIG_SITE in #(( | 
 | 3311 |     -*)  ac_site_file1=./$CONFIG_SITE;; | 
 | 3312 |     */*) ac_site_file1=$CONFIG_SITE;; | 
 | 3313 |     *)   ac_site_file1=./$CONFIG_SITE;; | 
 | 3314 |   esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3315 | elif test "x$prefix" != xNONE; then | 
 | 3316 |   ac_site_file1=$prefix/share/config.site | 
 | 3317 |   ac_site_file2=$prefix/etc/config.site | 
 | 3318 | else | 
 | 3319 |   ac_site_file1=$ac_default_prefix/share/config.site | 
 | 3320 |   ac_site_file2=$ac_default_prefix/etc/config.site | 
 | 3321 | fi | 
 | 3322 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
 | 3323 | do | 
 | 3324 |   test "x$ac_site_file" = xNONE && continue | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3325 |   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3326 |     { $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] | 3327 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
 | 3328 |     sed 's/^/| /' "$ac_site_file" >&5 | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3329 |     . "$ac_site_file" \ | 
 | 3330 |       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 3331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 3332 | as_fn_error $? "failed to load site script $ac_site_file | 
 | 3333 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3334 |   fi | 
 | 3335 | done | 
 | 3336 |  | 
 | 3337 | if test -r "$cache_file"; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3338 |   # Some versions of bash will fail to source /dev/null (special files | 
 | 3339 |   # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
 | 3340 |   if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3341 |     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3342 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
 | 3343 |     case $cache_file in | 
 | 3344 |       [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
 | 3345 |       *)                      . "./$cache_file";; | 
 | 3346 |     esac | 
 | 3347 |   fi | 
 | 3348 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3349 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3350 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
 | 3351 |   >$cache_file | 
 | 3352 | fi | 
 | 3353 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3354 | as_fn_append ac_header_list " stdlib.h" | 
 | 3355 | as_fn_append ac_header_list " unistd.h" | 
 | 3356 | as_fn_append ac_header_list " sys/param.h" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3357 | # Check that the precious variables saved in the cache have kept the same | 
 | 3358 | # value. | 
 | 3359 | ac_cache_corrupted=false | 
 | 3360 | for ac_var in $ac_precious_vars; do | 
 | 3361 |   eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
 | 3362 |   eval ac_new_set=\$ac_env_${ac_var}_set | 
 | 3363 |   eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
 | 3364 |   eval ac_new_val=\$ac_env_${ac_var}_value | 
 | 3365 |   case $ac_old_set,$ac_new_set in | 
 | 3366 |     set,) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3367 |       { $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] | 3368 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
 | 3369 |       ac_cache_corrupted=: ;; | 
 | 3370 |     ,set) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3371 |       { $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] | 3372 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
 | 3373 |       ac_cache_corrupted=: ;; | 
 | 3374 |     ,);; | 
 | 3375 |     *) | 
 | 3376 |       if test "x$ac_old_val" != "x$ac_new_val"; then | 
 | 3377 | 	# differences in whitespace do not lead to failure. | 
 | 3378 | 	ac_old_val_w=`echo x $ac_old_val` | 
 | 3379 | 	ac_new_val_w=`echo x $ac_new_val` | 
 | 3380 | 	if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3381 | 	  { $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] | 3382 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
 | 3383 | 	  ac_cache_corrupted=: | 
 | 3384 | 	else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3385 | 	  { $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] | 3386 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
 | 3387 | 	  eval $ac_var=\$ac_old_val | 
 | 3388 | 	fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3389 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3390 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3391 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3392 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
 | 3393 |       fi;; | 
 | 3394 |   esac | 
 | 3395 |   # Pass precious variables to config.status. | 
 | 3396 |   if test "$ac_new_set" = set; then | 
 | 3397 |     case $ac_new_val in | 
 | 3398 |     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 3399 |     *) ac_arg=$ac_var=$ac_new_val ;; | 
 | 3400 |     esac | 
 | 3401 |     case " $ac_configure_args " in | 
 | 3402 |       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3403 |       *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3404 |     esac | 
 | 3405 |   fi | 
 | 3406 | done | 
 | 3407 | if $ac_cache_corrupted; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3408 |   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3410 |   { $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] | 3411 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3412 |   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] | 3413 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3414 | ## -------------------- ## | 
 | 3415 | ## Main body of script. ## | 
 | 3416 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3417 |  | 
 | 3418 | ac_ext=c | 
 | 3419 | ac_cpp='$CPP $CPPFLAGS' | 
 | 3420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 3421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 3422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 3423 |  | 
 | 3424 |  | 
 | 3425 |  | 
 | 3426 | ac_aux_dir= | 
 | 3427 | for ac_dir in config "$srcdir"/config; do | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3428 |   if test -f "$ac_dir/install-sh"; then | 
 | 3429 |     ac_aux_dir=$ac_dir | 
 | 3430 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 3431 |     break | 
 | 3432 |   elif test -f "$ac_dir/install.sh"; then | 
 | 3433 |     ac_aux_dir=$ac_dir | 
 | 3434 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 3435 |     break | 
 | 3436 |   elif test -f "$ac_dir/shtool"; then | 
 | 3437 |     ac_aux_dir=$ac_dir | 
 | 3438 |     ac_install_sh="$ac_aux_dir/shtool install -c" | 
 | 3439 |     break | 
 | 3440 |   fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3441 | done | 
 | 3442 | if test -z "$ac_aux_dir"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3443 |   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] | 3444 | fi | 
 | 3445 |  | 
 | 3446 | # These three variables are undocumented and unsupported, | 
 | 3447 | # and are intended to be withdrawn in a future Autoconf release. | 
 | 3448 | # They can cause serious problems if a builder's source tree is in a directory | 
 | 3449 | # whose full name contains unusual characters. | 
 | 3450 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
 | 3451 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
 | 3452 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
 | 3453 |  | 
 | 3454 |  | 
 | 3455 |  | 
 | 3456 |  | 
 | 3457 | ac_config_headers="$ac_config_headers config/config.h" | 
 | 3458 |  | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 3459 |  | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3460 | ac_config_commands="$ac_config_commands MagickCore/magick-config.h" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3461 |  | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3462 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3463 |  | 
 | 3464 |  | 
 | 3465 | # | 
 | 3466 | # Save initial user-tunable values | 
 | 3467 | # | 
 | 3468 | USER_LIBS=$LIBS | 
 | 3469 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do | 
 | 3470 |   eval isset=\${$var+set} | 
 | 3471 |     if test "$isset" = 'set'; then | 
 | 3472 |         eval val=$`echo $var` | 
 | 3473 |         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " | 
 | 3474 |     fi | 
 | 3475 | done | 
 | 3476 |  | 
 | 3477 |  | 
 | 3478 | CONFIGURE_ARGS="$0 ${ac_configure_args}" | 
 | 3479 |  | 
 | 3480 |  | 
 | 3481 | # Source file containing package/library versioning information. | 
 | 3482 | . ${srcdir}/version.sh | 
 | 3483 |  | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3484 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3485 | # Make sure we can run config.sub. | 
 | 3486 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3487 |   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3488 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3490 | $as_echo_n "checking build system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3491 | if ${ac_cv_build+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3492 |   $as_echo_n "(cached) " >&6 | 
 | 3493 | else | 
 | 3494 |   ac_build_alias=$build_alias | 
 | 3495 | test "x$ac_build_alias" = x && | 
 | 3496 |   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
 | 3497 | test "x$ac_build_alias" = x && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3498 |   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3499 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3500 |   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] | 3501 |  | 
 | 3502 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3504 | $as_echo "$ac_cv_build" >&6; } | 
 | 3505 | case $ac_cv_build in | 
 | 3506 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3507 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3508 | esac | 
 | 3509 | build=$ac_cv_build | 
 | 3510 | ac_save_IFS=$IFS; IFS='-' | 
 | 3511 | set x $ac_cv_build | 
 | 3512 | shift | 
 | 3513 | build_cpu=$1 | 
 | 3514 | build_vendor=$2 | 
 | 3515 | shift; shift | 
 | 3516 | # Remember, the first character of IFS is used to create $*, | 
 | 3517 | # except with old shells: | 
 | 3518 | build_os=$* | 
 | 3519 | IFS=$ac_save_IFS | 
 | 3520 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
 | 3521 |  | 
 | 3522 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3524 | $as_echo_n "checking host system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3525 | if ${ac_cv_host+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3526 |   $as_echo_n "(cached) " >&6 | 
 | 3527 | else | 
 | 3528 |   if test "x$host_alias" = x; then | 
 | 3529 |   ac_cv_host=$ac_cv_build | 
 | 3530 | else | 
 | 3531 |   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3532 |     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] | 3533 | fi | 
 | 3534 |  | 
 | 3535 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3537 | $as_echo "$ac_cv_host" >&6; } | 
 | 3538 | case $ac_cv_host in | 
 | 3539 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3540 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3541 | esac | 
 | 3542 | host=$ac_cv_host | 
 | 3543 | ac_save_IFS=$IFS; IFS='-' | 
 | 3544 | set x $ac_cv_host | 
 | 3545 | shift | 
 | 3546 | host_cpu=$1 | 
 | 3547 | host_vendor=$2 | 
 | 3548 | shift; shift | 
 | 3549 | # Remember, the first character of IFS is used to create $*, | 
 | 3550 | # except with old shells: | 
 | 3551 | host_os=$* | 
 | 3552 | IFS=$ac_save_IFS | 
 | 3553 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | 
 | 3554 |  | 
 | 3555 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3557 | $as_echo_n "checking target system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3558 | if ${ac_cv_target+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3559 |   $as_echo_n "(cached) " >&6 | 
 | 3560 | else | 
 | 3561 |   if test "x$target_alias" = x; then | 
 | 3562 |   ac_cv_target=$ac_cv_host | 
 | 3563 | else | 
 | 3564 |   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3565 |     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] | 3566 | fi | 
 | 3567 |  | 
 | 3568 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3570 | $as_echo "$ac_cv_target" >&6; } | 
 | 3571 | case $ac_cv_target in | 
 | 3572 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3573 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3574 | esac | 
 | 3575 | target=$ac_cv_target | 
 | 3576 | ac_save_IFS=$IFS; IFS='-' | 
 | 3577 | set x $ac_cv_target | 
 | 3578 | shift | 
 | 3579 | target_cpu=$1 | 
 | 3580 | target_vendor=$2 | 
 | 3581 | shift; shift | 
 | 3582 | # Remember, the first character of IFS is used to create $*, | 
 | 3583 | # except with old shells: | 
 | 3584 | target_os=$* | 
 | 3585 | IFS=$ac_save_IFS | 
 | 3586 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
 | 3587 |  | 
 | 3588 |  | 
 | 3589 | # The aliases save the names the user supplied, while $host etc. | 
 | 3590 | # will get canonicalized. | 
 | 3591 | test -n "$target_alias" && | 
 | 3592 |   test "$program_prefix$program_suffix$program_transform_name" = \ | 
 | 3593 |     NONENONEs,x,x, && | 
 | 3594 |   program_prefix=${target_alias}- | 
 | 3595 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3596 |  | 
 | 3597 |  | 
 | 3598 |  | 
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3599 | MAGICK_TARGET_CPU=$host_cpu | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3600 |  | 
 | 3601 |  | 
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3602 | MAGICK_TARGET_VENDOR=$host_vendor | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3603 |  | 
 | 3604 |  | 
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3605 | MAGICK_TARGET_OS=$host_os | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3606 |  | 
 | 3607 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3608 | # Substitute library versioning | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3609 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` | 
 | 3610 |  | 
 | 3611 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE | 
 | 3612 |  | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 3613 | MAGICK_SVN_REVISION=6701 | 
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 3614 |  | 
 | 3615 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3616 |  | 
 | 3617 |  | 
 | 3618 | # Ensure that make can run correctly | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | 
 | 3620 | $as_echo_n "checking whether build environment is sane... " >&6; } | 
 | 3621 | # Just in case | 
 | 3622 | sleep 1 | 
 | 3623 | echo timestamp > conftest.file | 
 | 3624 | # Reject unsafe characters in $srcdir or the absolute working directory | 
 | 3625 | # name.  Accept space and tab only in the latter. | 
 | 3626 | am_lf=' | 
 | 3627 | ' | 
 | 3628 | case `pwd` in | 
 | 3629 |   *[\\\"\#\$\&\'\`$am_lf]*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3630 |     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3631 | esac | 
 | 3632 | case $srcdir in | 
 | 3633 |   *[\\\"\#\$\&\'\`$am_lf\ \	]*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3634 |     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3635 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3636 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3637 | # Do `set' in a subshell so we don't clobber the current shell's | 
 | 3638 | # arguments.  Must try -L first in case configure is actually a | 
 | 3639 | # symlink; some systems play weird games with the mod time of symlinks | 
 | 3640 | # (eg FreeBSD returns the mod time of the symlink's containing | 
 | 3641 | # directory). | 
 | 3642 | if ( | 
 | 3643 |    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | 
 | 3644 |    if test "$*" = "X"; then | 
 | 3645 |       # -L didn't work. | 
 | 3646 |       set X `ls -t "$srcdir/configure" conftest.file` | 
 | 3647 |    fi | 
 | 3648 |    rm -f conftest.file | 
 | 3649 |    if test "$*" != "X $srcdir/configure conftest.file" \ | 
 | 3650 |       && test "$*" != "X conftest.file $srcdir/configure"; then | 
 | 3651 |  | 
 | 3652 |       # If neither matched, then we have a broken ls.  This can happen | 
 | 3653 |       # if, for instance, CONFIG_SHELL is bash and it inherits a | 
 | 3654 |       # broken ls alias from the environment.  This has actually | 
 | 3655 |       # happened.  Such a system could not be considered "sane". | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3656 |       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3657 | alias in your environment" "$LINENO" 5 | 
 | 3658 |    fi | 
 | 3659 |  | 
 | 3660 |    test "$2" = conftest.file | 
 | 3661 |    ) | 
 | 3662 | then | 
 | 3663 |    # Ok. | 
 | 3664 |    : | 
 | 3665 | else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3666 |    as_fn_error $? "newly created file is older than distributed files! | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3667 | Check your system clock" "$LINENO" 5 | 
 | 3668 | fi | 
 | 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 3670 | $as_echo "yes" >&6; } | 
 | 3671 |  | 
 | 3672 | am__api_version='1.11' | 
 | 3673 |  | 
 | 3674 | # Find a good install program.  We prefer a C program (faster), | 
 | 3675 | # so one script is as good as another.  But avoid the broken or | 
 | 3676 | # incompatible versions: | 
 | 3677 | # SysV /etc/install, /usr/sbin/install | 
 | 3678 | # SunOS /usr/etc/install | 
 | 3679 | # IRIX /sbin/install | 
 | 3680 | # AIX /bin/install | 
 | 3681 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
 | 3682 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 3683 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 3684 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 3685 | # OS/2's system install, which has a completely different semantic | 
 | 3686 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 3687 | # Reject install programs that cannot install multiple files. | 
 | 3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
 | 3689 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
 | 3690 | if test -z "$INSTALL"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3691 | if ${ac_cv_path_install+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3692 |   $as_echo_n "(cached) " >&6 | 
 | 3693 | else | 
 | 3694 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3695 | for as_dir in $PATH | 
 | 3696 | do | 
 | 3697 |   IFS=$as_save_IFS | 
 | 3698 |   test -z "$as_dir" && as_dir=. | 
 | 3699 |     # Account for people who put trailing slashes in PATH elements. | 
 | 3700 | case $as_dir/ in #(( | 
 | 3701 |   ./ | .// | /[cC]/* | \ | 
 | 3702 |   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
 | 3703 |   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
 | 3704 |   /usr/ucb/* ) ;; | 
 | 3705 |   *) | 
 | 3706 |     # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 3707 |     # Don't use installbsd from OSF since it installs stuff as root | 
 | 3708 |     # by default. | 
 | 3709 |     for ac_prog in ginstall scoinst install; do | 
 | 3710 |       for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3711 | 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
 | 3712 | 	  if test $ac_prog = install && | 
 | 3713 | 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 3714 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 3715 | 	    : | 
 | 3716 | 	  elif test $ac_prog = install && | 
 | 3717 | 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
 | 3718 | 	    # program-specific install script used by HP pwplus--don't use. | 
 | 3719 | 	    : | 
 | 3720 | 	  else | 
 | 3721 | 	    rm -rf conftest.one conftest.two conftest.dir | 
 | 3722 | 	    echo one > conftest.one | 
 | 3723 | 	    echo two > conftest.two | 
 | 3724 | 	    mkdir conftest.dir | 
 | 3725 | 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
 | 3726 | 	      test -s conftest.one && test -s conftest.two && | 
 | 3727 | 	      test -s conftest.dir/conftest.one && | 
 | 3728 | 	      test -s conftest.dir/conftest.two | 
 | 3729 | 	    then | 
 | 3730 | 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
 | 3731 | 	      break 3 | 
 | 3732 | 	    fi | 
 | 3733 | 	  fi | 
 | 3734 | 	fi | 
 | 3735 |       done | 
 | 3736 |     done | 
 | 3737 |     ;; | 
 | 3738 | esac | 
 | 3739 |  | 
 | 3740 |   done | 
 | 3741 | IFS=$as_save_IFS | 
 | 3742 |  | 
 | 3743 | rm -rf conftest.one conftest.two conftest.dir | 
 | 3744 |  | 
 | 3745 | fi | 
 | 3746 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 3747 |     INSTALL=$ac_cv_path_install | 
 | 3748 |   else | 
 | 3749 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 3750 |     # value for INSTALL within a source directory, because that will | 
 | 3751 |     # break other packages using the cache if that directory is | 
 | 3752 |     # removed, or if the value is a relative name. | 
 | 3753 |     INSTALL=$ac_install_sh | 
 | 3754 |   fi | 
 | 3755 | fi | 
 | 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
 | 3757 | $as_echo "$INSTALL" >&6; } | 
 | 3758 |  | 
 | 3759 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 3760 | # It thinks the first close brace ends the variable substitution. | 
 | 3761 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 3762 |  | 
 | 3763 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
 | 3764 |  | 
 | 3765 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 3766 |  | 
 | 3767 | test "$program_prefix" != NONE && | 
 | 3768 |   program_transform_name="s&^&$program_prefix&;$program_transform_name" | 
 | 3769 | # Use a double $ so make ignores it. | 
 | 3770 | test "$program_suffix" != NONE && | 
 | 3771 |   program_transform_name="s&\$&$program_suffix&;$program_transform_name" | 
 | 3772 | # Double any \ or $. | 
 | 3773 | # By default was `s,x,x', remove it if useless. | 
 | 3774 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | 
 | 3775 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | 
 | 3776 |  | 
 | 3777 | # expand $ac_aux_dir to an absolute path | 
 | 3778 | am_aux_dir=`cd $ac_aux_dir && pwd` | 
 | 3779 |  | 
 | 3780 | if test x"${MISSING+set}" != xset; then | 
 | 3781 |   case $am_aux_dir in | 
 | 3782 |   *\ * | *\	*) | 
 | 3783 |     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | 
 | 3784 |   *) | 
 | 3785 |     MISSING="\${SHELL} $am_aux_dir/missing" ;; | 
 | 3786 |   esac | 
 | 3787 | fi | 
 | 3788 | # Use eval to expand $SHELL | 
 | 3789 | if eval "$MISSING --run true"; then | 
 | 3790 |   am_missing_run="$MISSING --run " | 
 | 3791 | else | 
 | 3792 |   am_missing_run= | 
 | 3793 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | 
 | 3794 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | 
 | 3795 | fi | 
 | 3796 |  | 
 | 3797 | if test x"${install_sh}" != xset; then | 
 | 3798 |   case $am_aux_dir in | 
 | 3799 |   *\ * | *\	*) | 
 | 3800 |     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | 
 | 3801 |   *) | 
 | 3802 |     install_sh="\${SHELL} $am_aux_dir/install-sh" | 
 | 3803 |   esac | 
 | 3804 | fi | 
 | 3805 |  | 
 | 3806 | # Installed binaries are usually stripped using `strip' when the user | 
 | 3807 | # run `make install-strip'.  However `strip' might not be the right | 
 | 3808 | # tool to use in cross-compilation environments, therefore Automake | 
 | 3809 | # will honor the `STRIP' environment variable to overrule this program. | 
 | 3810 | if test "$cross_compiling" != no; then | 
 | 3811 |   if test -n "$ac_tool_prefix"; then | 
 | 3812 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 3813 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3815 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3816 | if ${ac_cv_prog_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3817 |   $as_echo_n "(cached) " >&6 | 
 | 3818 | else | 
 | 3819 |   if test -n "$STRIP"; then | 
 | 3820 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 3821 | else | 
 | 3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3823 | for as_dir in $PATH | 
 | 3824 | do | 
 | 3825 |   IFS=$as_save_IFS | 
 | 3826 |   test -z "$as_dir" && as_dir=. | 
 | 3827 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3828 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 3829 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 3830 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3831 |     break 2 | 
 | 3832 |   fi | 
 | 3833 | done | 
 | 3834 |   done | 
 | 3835 | IFS=$as_save_IFS | 
 | 3836 |  | 
 | 3837 | fi | 
 | 3838 | fi | 
 | 3839 | STRIP=$ac_cv_prog_STRIP | 
 | 3840 | if test -n "$STRIP"; then | 
 | 3841 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
 | 3842 | $as_echo "$STRIP" >&6; } | 
 | 3843 | else | 
 | 3844 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3845 | $as_echo "no" >&6; } | 
 | 3846 | fi | 
 | 3847 |  | 
 | 3848 |  | 
 | 3849 | fi | 
 | 3850 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 3851 |   ac_ct_STRIP=$STRIP | 
 | 3852 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 3853 | set dummy strip; ac_word=$2 | 
 | 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3855 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3856 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3857 |   $as_echo_n "(cached) " >&6 | 
 | 3858 | else | 
 | 3859 |   if test -n "$ac_ct_STRIP"; then | 
 | 3860 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 3861 | else | 
 | 3862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3863 | for as_dir in $PATH | 
 | 3864 | do | 
 | 3865 |   IFS=$as_save_IFS | 
 | 3866 |   test -z "$as_dir" && as_dir=. | 
 | 3867 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3868 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 3869 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 3870 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3871 |     break 2 | 
 | 3872 |   fi | 
 | 3873 | done | 
 | 3874 |   done | 
 | 3875 | IFS=$as_save_IFS | 
 | 3876 |  | 
 | 3877 | fi | 
 | 3878 | fi | 
 | 3879 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 3880 | if test -n "$ac_ct_STRIP"; then | 
 | 3881 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
 | 3882 | $as_echo "$ac_ct_STRIP" >&6; } | 
 | 3883 | else | 
 | 3884 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3885 | $as_echo "no" >&6; } | 
 | 3886 | fi | 
 | 3887 |  | 
 | 3888 |   if test "x$ac_ct_STRIP" = x; then | 
 | 3889 |     STRIP=":" | 
 | 3890 |   else | 
 | 3891 |     case $cross_compiling:$ac_tool_warned in | 
 | 3892 | yes:) | 
 | 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 3894 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 3895 | ac_tool_warned=yes ;; | 
 | 3896 | esac | 
 | 3897 |     STRIP=$ac_ct_STRIP | 
 | 3898 |   fi | 
 | 3899 | else | 
 | 3900 |   STRIP="$ac_cv_prog_STRIP" | 
 | 3901 | fi | 
 | 3902 |  | 
 | 3903 | fi | 
 | 3904 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 
 | 3905 |  | 
 | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
 | 3907 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
 | 3908 | if test -z "$MKDIR_P"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3909 |   if ${ac_cv_path_mkdir+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3910 |   $as_echo_n "(cached) " >&6 | 
 | 3911 | else | 
 | 3912 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3913 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
 | 3914 | do | 
 | 3915 |   IFS=$as_save_IFS | 
 | 3916 |   test -z "$as_dir" && as_dir=. | 
 | 3917 |     for ac_prog in mkdir gmkdir; do | 
 | 3918 | 	 for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3919 | 	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | 
 | 3920 | 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
 | 3921 | 	     'mkdir (GNU coreutils) '* | \ | 
 | 3922 | 	     'mkdir (coreutils) '* | \ | 
 | 3923 | 	     'mkdir (fileutils) '4.1*) | 
 | 3924 | 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
 | 3925 | 	       break 3;; | 
 | 3926 | 	   esac | 
 | 3927 | 	 done | 
 | 3928 |        done | 
 | 3929 |   done | 
 | 3930 | IFS=$as_save_IFS | 
 | 3931 |  | 
 | 3932 | fi | 
 | 3933 |  | 
 | 3934 |   test -d ./--version && rmdir ./--version | 
 | 3935 |   if test "${ac_cv_path_mkdir+set}" = set; then | 
 | 3936 |     MKDIR_P="$ac_cv_path_mkdir -p" | 
 | 3937 |   else | 
 | 3938 |     # As a last resort, use the slow shell script.  Don't cache a | 
 | 3939 |     # value for MKDIR_P within a source directory, because that will | 
 | 3940 |     # break other packages using the cache if that directory is | 
 | 3941 |     # removed, or if the value is a relative name. | 
 | 3942 |     MKDIR_P="$ac_install_sh -d" | 
 | 3943 |   fi | 
 | 3944 | fi | 
 | 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
 | 3946 | $as_echo "$MKDIR_P" >&6; } | 
 | 3947 |  | 
 | 3948 | mkdir_p="$MKDIR_P" | 
 | 3949 | case $mkdir_p in | 
 | 3950 |   [\\/$]* | ?:[\\/]*) ;; | 
 | 3951 |   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | 
 | 3952 | esac | 
 | 3953 |  | 
 | 3954 | for ac_prog in gawk mawk nawk awk | 
 | 3955 | do | 
 | 3956 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3957 | set dummy $ac_prog; ac_word=$2 | 
 | 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 3959 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3960 | if ${ac_cv_prog_AWK+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3961 |   $as_echo_n "(cached) " >&6 | 
 | 3962 | else | 
 | 3963 |   if test -n "$AWK"; then | 
 | 3964 |   ac_cv_prog_AWK="$AWK" # Let the user override the test. | 
 | 3965 | else | 
 | 3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 3967 | for as_dir in $PATH | 
 | 3968 | do | 
 | 3969 |   IFS=$as_save_IFS | 
 | 3970 |   test -z "$as_dir" && as_dir=. | 
 | 3971 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 3972 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 3973 |     ac_cv_prog_AWK="$ac_prog" | 
 | 3974 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 3975 |     break 2 | 
 | 3976 |   fi | 
 | 3977 | done | 
 | 3978 |   done | 
 | 3979 | IFS=$as_save_IFS | 
 | 3980 |  | 
 | 3981 | fi | 
 | 3982 | fi | 
 | 3983 | AWK=$ac_cv_prog_AWK | 
 | 3984 | if test -n "$AWK"; then | 
 | 3985 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | 
 | 3986 | $as_echo "$AWK" >&6; } | 
 | 3987 | else | 
 | 3988 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 3989 | $as_echo "no" >&6; } | 
 | 3990 | fi | 
 | 3991 |  | 
 | 3992 |  | 
 | 3993 |   test -n "$AWK" && break | 
 | 3994 | done | 
 | 3995 |  | 
 | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
 | 3997 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
 | 3998 | set x ${MAKE-make} | 
 | 3999 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4000 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4001 |   $as_echo_n "(cached) " >&6 | 
 | 4002 | else | 
 | 4003 |   cat >conftest.make <<\_ACEOF | 
 | 4004 | SHELL = /bin/sh | 
 | 4005 | all: | 
 | 4006 | 	@echo '@@@%%%=$(MAKE)=@@@%%%' | 
 | 4007 | _ACEOF | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4008 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4009 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
 | 4010 |   *@@@%%%=?*=@@@%%%*) | 
 | 4011 |     eval ac_cv_prog_make_${ac_make}_set=yes;; | 
 | 4012 |   *) | 
 | 4013 |     eval ac_cv_prog_make_${ac_make}_set=no;; | 
 | 4014 | esac | 
 | 4015 | rm -f conftest.make | 
 | 4016 | fi | 
 | 4017 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
 | 4018 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4019 | $as_echo "yes" >&6; } | 
 | 4020 |   SET_MAKE= | 
 | 4021 | else | 
 | 4022 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4023 | $as_echo "no" >&6; } | 
 | 4024 |   SET_MAKE="MAKE=${MAKE-make}" | 
 | 4025 | fi | 
 | 4026 |  | 
 | 4027 | rm -rf .tst 2>/dev/null | 
 | 4028 | mkdir .tst 2>/dev/null | 
 | 4029 | if test -d .tst; then | 
 | 4030 |   am__leading_dot=. | 
 | 4031 | else | 
 | 4032 |   am__leading_dot=_ | 
 | 4033 | fi | 
 | 4034 | rmdir .tst 2>/dev/null | 
 | 4035 |  | 
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4036 | # Check whether --enable-silent-rules was given. | 
 | 4037 | if test "${enable_silent_rules+set}" = set; then : | 
 | 4038 |   enableval=$enable_silent_rules; | 
 | 4039 | fi | 
 | 4040 |  | 
 | 4041 | case $enable_silent_rules in | 
 | 4042 | yes) AM_DEFAULT_VERBOSITY=0;; | 
 | 4043 | no)  AM_DEFAULT_VERBOSITY=1;; | 
 | 4044 | *)   AM_DEFAULT_VERBOSITY=1;; | 
 | 4045 | esac | 
 | 4046 | AM_BACKSLASH='\' | 
 | 4047 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4048 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | 
 | 4049 |   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | 
 | 4050 |   # is not polluted with repeated "-I." | 
 | 4051 |   am__isrc=' -I$(srcdir)' | 
 | 4052 |   # test to see if srcdir already configured | 
 | 4053 |   if test -f $srcdir/config.status; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4054 |     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4055 |   fi | 
 | 4056 | fi | 
 | 4057 |  | 
 | 4058 | # test whether we have cygpath | 
 | 4059 | if test -z "$CYGPATH_W"; then | 
 | 4060 |   if (cygpath --version) >/dev/null 2>/dev/null; then | 
 | 4061 |     CYGPATH_W='cygpath -w' | 
 | 4062 |   else | 
 | 4063 |     CYGPATH_W=echo | 
 | 4064 |   fi | 
 | 4065 | fi | 
 | 4066 |  | 
 | 4067 |  | 
 | 4068 | # Define the identity of the package. | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 4069 |  PACKAGE='ImageMagick' | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 4070 |  VERSION='7.0.0-0' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4071 |  | 
 | 4072 |  | 
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4073 | cat >>confdefs.h <<_ACEOF | 
 | 4074 | #define PACKAGE "$PACKAGE" | 
 | 4075 | _ACEOF | 
 | 4076 |  | 
 | 4077 |  | 
 | 4078 | cat >>confdefs.h <<_ACEOF | 
 | 4079 | #define VERSION "$VERSION" | 
 | 4080 | _ACEOF | 
 | 4081 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4082 | # Some tools Automake needs. | 
 | 4083 |  | 
 | 4084 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | 
 | 4085 |  | 
 | 4086 |  | 
 | 4087 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
 | 4088 |  | 
 | 4089 |  | 
 | 4090 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | 
 | 4091 |  | 
 | 4092 |  | 
 | 4093 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
 | 4094 |  | 
 | 4095 |  | 
 | 4096 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | 
 | 4097 |  | 
 | 4098 | # We need awk for the "check" target.  The system "awk" is bad on | 
 | 4099 | # some platforms. | 
 | 4100 | # Always define AMTAR for backward compatibility. | 
 | 4101 |  | 
 | 4102 | AMTAR=${AMTAR-"${am_missing_run}tar"} | 
 | 4103 |  | 
 | 4104 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | 
 | 4105 |  | 
 | 4106 |  | 
 | 4107 |  | 
 | 4108 |  | 
 | 4109 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4110 |  | 
 | 4111 | # Enable support for silent build rules | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4112 | # Check whether --enable-silent-rules was given. | 
 | 4113 | if test "${enable_silent_rules+set}" = set; then : | 
 | 4114 |   enableval=$enable_silent_rules; | 
 | 4115 | fi | 
 | 4116 |  | 
 | 4117 | case $enable_silent_rules in | 
 | 4118 | yes) AM_DEFAULT_VERBOSITY=0;; | 
 | 4119 | no)  AM_DEFAULT_VERBOSITY=1;; | 
 | 4120 | *)   AM_DEFAULT_VERBOSITY=0;; | 
 | 4121 | esac | 
 | 4122 | AM_BACKSLASH='\' | 
 | 4123 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4124 |  | 
 | 4125 | MAGICK_LIB_VERSION="0x" | 
 | 4126 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then | 
 | 4127 |   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
 | 4128 | fi | 
 | 4129 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} | 
 | 4130 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then | 
 | 4131 |   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
 | 4132 | fi | 
 | 4133 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} | 
 | 4134 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then | 
 | 4135 |   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
 | 4136 | fi | 
 | 4137 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} | 
 | 4138 |  | 
 | 4139 |  | 
 | 4140 | # Definition used to define MagickLibVersionText in version.h | 
 | 4141 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" | 
 | 4142 |  | 
 | 4143 |  | 
 | 4144 | # Definition used to define MagickLibVersionNumber in version.h | 
 | 4145 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" | 
 | 4146 |  | 
 | 4147 |  | 
 | 4148 | # Regenerate config.status if ChangeLog or version.sh is updated. | 
 | 4149 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' | 
 | 4150 |  | 
 | 4151 |  | 
 | 4152 | PERLMAINCC=$CC | 
 | 4153 |  | 
 | 4154 | MAGICK_CFLAGS='' | 
 | 4155 | MAGICK_CPPFLAGS=$CPPFLAGS_USER | 
 | 4156 | MAGICK_PCFLAGS=$CPPFLAGS_USER | 
 | 4157 | MAGICK_LDFLAGS='' | 
 | 4158 | MAGICK_LIBS='' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 4159 | MAGICK_FEATURES='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4160 |  | 
 | 4161 | # | 
 | 4162 | # Evaluate shell variable equivalents to Makefile directory variables | 
 | 4163 | # | 
 | 4164 | if test "x$prefix" = xNONE; then | 
 | 4165 |     prefix=$ac_default_prefix | 
 | 4166 | fi | 
 | 4167 | # Let make expand exec_prefix. | 
 | 4168 | if test "x$exec_prefix" = xNONE; then | 
 | 4169 |     exec_prefix='${prefix}' | 
 | 4170 | fi | 
 | 4171 |  | 
 | 4172 | # | 
 | 4173 | eval "eval PREFIX_DIR=${prefix}" | 
 | 4174 |  | 
 | 4175 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" | 
 | 4176 |  | 
 | 4177 | eval "eval BIN_DIR=$bindir" | 
 | 4178 |  | 
 | 4179 | eval "eval SBIN_DIR=$sbindir" | 
 | 4180 |  | 
 | 4181 | eval "eval LIBEXEC_DIR=$libexecdir" | 
 | 4182 |  | 
 | 4183 | eval "eval DATA_DIR=$datadir" | 
 | 4184 |  | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 4185 | eval "eval DOC_DIR=$docdir" | 
 | 4186 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4187 | eval "eval SYSCONF_DIR=$sysconfdir" | 
 | 4188 |  | 
 | 4189 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" | 
 | 4190 |  | 
 | 4191 | eval "eval LOCALSTATE_DIR=$localstatedir" | 
 | 4192 |  | 
 | 4193 | eval "eval LIB_DIR=$libdir" | 
 | 4194 |  | 
 | 4195 | eval "eval INCLUDE_DIR=$includedir" | 
 | 4196 |  | 
 | 4197 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" | 
 | 4198 |  | 
 | 4199 | eval "eval INFO_DIR=$infodir" | 
 | 4200 |  | 
 | 4201 | eval "eval MAN_DIR=$mandir" | 
 | 4202 |  | 
 | 4203 |  | 
 | 4204 | # Get full paths to source and build directories | 
 | 4205 | srcdirfull="`cd $srcdir && pwd`" | 
 | 4206 | builddir="`pwd`" | 
 | 4207 |  | 
 | 4208 | # | 
 | 4209 | # Compute variables useful for running uninstalled software. | 
 | 4210 | # | 
 | 4211 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" | 
 | 4212 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" | 
 | 4213 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" | 
 | 4214 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" | 
 | 4215 | DIRSEP=':' | 
 | 4216 | case "${build_os}" in | 
 | 4217 |     mingw* ) | 
 | 4218 |         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` | 
 | 4219 |         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` | 
 | 4220 |         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` | 
 | 4221 |         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` | 
 | 4222 |         DIRSEP=';' | 
 | 4223 |     ;; | 
 | 4224 | esac | 
 | 4225 | case "${host_os}" in | 
 | 4226 |   mingw* ) | 
 | 4227 |     DIRSEP=';' | 
 | 4228 |     ;; | 
 | 4229 | esac | 
 | 4230 |  | 
 | 4231 |  | 
 | 4232 |  | 
 | 4233 |  | 
 | 4234 |  | 
 | 4235 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4236 |  | 
 | 4237 | # | 
 | 4238 | # Enable OS features. | 
 | 4239 | # | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4240 | DEPDIR="${am__leading_dot}deps" | 
 | 4241 |  | 
 | 4242 | ac_config_commands="$ac_config_commands depfiles" | 
 | 4243 |  | 
 | 4244 |  | 
 | 4245 | am_make=${MAKE-make} | 
 | 4246 | cat > confinc << 'END' | 
 | 4247 | am__doit: | 
 | 4248 | 	@echo this is the am__doit target | 
 | 4249 | .PHONY: am__doit | 
 | 4250 | END | 
 | 4251 | # If we don't find an include directive, just comment out the code. | 
 | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | 
 | 4253 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | 
 | 4254 | am__include="#" | 
 | 4255 | am__quote= | 
 | 4256 | _am_result=none | 
 | 4257 | # First try GNU make style include. | 
 | 4258 | echo "include confinc" > confmf | 
 | 4259 | # Ignore all kinds of additional output from `make'. | 
 | 4260 | case `$am_make -s -f confmf 2> /dev/null` in #( | 
 | 4261 | *the\ am__doit\ target*) | 
 | 4262 |   am__include=include | 
 | 4263 |   am__quote= | 
 | 4264 |   _am_result=GNU | 
 | 4265 |   ;; | 
 | 4266 | esac | 
 | 4267 | # Now try BSD make style include. | 
 | 4268 | if test "$am__include" = "#"; then | 
 | 4269 |    echo '.include "confinc"' > confmf | 
 | 4270 |    case `$am_make -s -f confmf 2> /dev/null` in #( | 
 | 4271 |    *the\ am__doit\ target*) | 
 | 4272 |      am__include=.include | 
 | 4273 |      am__quote="\"" | 
 | 4274 |      _am_result=BSD | 
 | 4275 |      ;; | 
 | 4276 |    esac | 
 | 4277 | fi | 
 | 4278 |  | 
 | 4279 |  | 
 | 4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | 
 | 4281 | $as_echo "$_am_result" >&6; } | 
 | 4282 | rm -f confinc confmf | 
 | 4283 |  | 
 | 4284 | # Check whether --enable-dependency-tracking was given. | 
 | 4285 | if test "${enable_dependency_tracking+set}" = set; then : | 
 | 4286 |   enableval=$enable_dependency_tracking; | 
 | 4287 | fi | 
 | 4288 |  | 
 | 4289 | if test "x$enable_dependency_tracking" != xno; then | 
 | 4290 |   am_depcomp="$ac_aux_dir/depcomp" | 
 | 4291 |   AMDEPBACKSLASH='\' | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 4292 |   am__nodep='_no' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4293 | fi | 
 | 4294 |  if test "x$enable_dependency_tracking" != xno; then | 
 | 4295 |   AMDEP_TRUE= | 
 | 4296 |   AMDEP_FALSE='#' | 
 | 4297 | else | 
 | 4298 |   AMDEP_TRUE='#' | 
 | 4299 |   AMDEP_FALSE= | 
 | 4300 | fi | 
 | 4301 |  | 
 | 4302 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4303 | ac_ext=c | 
 | 4304 | ac_cpp='$CPP $CPPFLAGS' | 
 | 4305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 4306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 4307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 4308 | if test -n "$ac_tool_prefix"; then | 
 | 4309 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 4310 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4312 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4313 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4314 |   $as_echo_n "(cached) " >&6 | 
 | 4315 | else | 
 | 4316 |   if test -n "$CC"; then | 
 | 4317 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 4318 | else | 
 | 4319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4320 | for as_dir in $PATH | 
 | 4321 | do | 
 | 4322 |   IFS=$as_save_IFS | 
 | 4323 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4324 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4325 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4326 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4327 |     $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] | 4328 |     break 2 | 
 | 4329 |   fi | 
 | 4330 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4331 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4332 | IFS=$as_save_IFS | 
 | 4333 |  | 
 | 4334 | fi | 
 | 4335 | fi | 
 | 4336 | CC=$ac_cv_prog_CC | 
 | 4337 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4338 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4339 | $as_echo "$CC" >&6; } | 
 | 4340 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4341 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4342 | $as_echo "no" >&6; } | 
 | 4343 | fi | 
 | 4344 |  | 
 | 4345 |  | 
 | 4346 | fi | 
 | 4347 | if test -z "$ac_cv_prog_CC"; then | 
 | 4348 |   ac_ct_CC=$CC | 
 | 4349 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 4350 | set dummy gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4352 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4353 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4354 |   $as_echo_n "(cached) " >&6 | 
 | 4355 | else | 
 | 4356 |   if test -n "$ac_ct_CC"; then | 
 | 4357 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 4358 | else | 
 | 4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4360 | for as_dir in $PATH | 
 | 4361 | do | 
 | 4362 |   IFS=$as_save_IFS | 
 | 4363 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4364 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4365 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4366 |     ac_cv_prog_ac_ct_CC="gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4367 |     $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] | 4368 |     break 2 | 
 | 4369 |   fi | 
 | 4370 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4371 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4372 | IFS=$as_save_IFS | 
 | 4373 |  | 
 | 4374 | fi | 
 | 4375 | fi | 
 | 4376 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 4377 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4378 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4379 | $as_echo "$ac_ct_CC" >&6; } | 
 | 4380 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4381 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4382 | $as_echo "no" >&6; } | 
 | 4383 | fi | 
 | 4384 |  | 
 | 4385 |   if test "x$ac_ct_CC" = x; then | 
 | 4386 |     CC="" | 
 | 4387 |   else | 
 | 4388 |     case $cross_compiling:$ac_tool_warned in | 
 | 4389 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4390 | { $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] | 4391 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4392 | ac_tool_warned=yes ;; | 
 | 4393 | esac | 
 | 4394 |     CC=$ac_ct_CC | 
 | 4395 |   fi | 
 | 4396 | else | 
 | 4397 |   CC="$ac_cv_prog_CC" | 
 | 4398 | fi | 
 | 4399 |  | 
 | 4400 | if test -z "$CC"; then | 
 | 4401 |           if test -n "$ac_tool_prefix"; then | 
 | 4402 |     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
 | 4403 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4405 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4406 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4407 |   $as_echo_n "(cached) " >&6 | 
 | 4408 | else | 
 | 4409 |   if test -n "$CC"; then | 
 | 4410 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 4411 | else | 
 | 4412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4413 | for as_dir in $PATH | 
 | 4414 | do | 
 | 4415 |   IFS=$as_save_IFS | 
 | 4416 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4417 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4418 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4419 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4420 |     $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] | 4421 |     break 2 | 
 | 4422 |   fi | 
 | 4423 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4424 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4425 | IFS=$as_save_IFS | 
 | 4426 |  | 
 | 4427 | fi | 
 | 4428 | fi | 
 | 4429 | CC=$ac_cv_prog_CC | 
 | 4430 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4431 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4432 | $as_echo "$CC" >&6; } | 
 | 4433 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4434 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4435 | $as_echo "no" >&6; } | 
 | 4436 | fi | 
 | 4437 |  | 
 | 4438 |  | 
 | 4439 |   fi | 
 | 4440 | fi | 
 | 4441 | if test -z "$CC"; then | 
 | 4442 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 4443 | set dummy cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4445 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4446 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4447 |   $as_echo_n "(cached) " >&6 | 
 | 4448 | else | 
 | 4449 |   if test -n "$CC"; then | 
 | 4450 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 4451 | else | 
 | 4452 |   ac_prog_rejected=no | 
 | 4453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4454 | for as_dir in $PATH | 
 | 4455 | do | 
 | 4456 |   IFS=$as_save_IFS | 
 | 4457 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4458 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4459 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4460 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 4461 |        ac_prog_rejected=yes | 
 | 4462 |        continue | 
 | 4463 |      fi | 
 | 4464 |     ac_cv_prog_CC="cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4465 |     $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] | 4466 |     break 2 | 
 | 4467 |   fi | 
 | 4468 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4469 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4470 | IFS=$as_save_IFS | 
 | 4471 |  | 
 | 4472 | if test $ac_prog_rejected = yes; then | 
 | 4473 |   # We found a bogon in the path, so make sure we never use it. | 
 | 4474 |   set dummy $ac_cv_prog_CC | 
 | 4475 |   shift | 
 | 4476 |   if test $# != 0; then | 
 | 4477 |     # We chose a different compiler from the bogus one. | 
 | 4478 |     # However, it has the same basename, so the bogon will be chosen | 
 | 4479 |     # first if we set CC to just the basename; use the full file name. | 
 | 4480 |     shift | 
 | 4481 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 4482 |   fi | 
 | 4483 | fi | 
 | 4484 | fi | 
 | 4485 | fi | 
 | 4486 | CC=$ac_cv_prog_CC | 
 | 4487 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4488 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4489 | $as_echo "$CC" >&6; } | 
 | 4490 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4491 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4492 | $as_echo "no" >&6; } | 
 | 4493 | fi | 
 | 4494 |  | 
 | 4495 |  | 
 | 4496 | fi | 
 | 4497 | if test -z "$CC"; then | 
 | 4498 |   if test -n "$ac_tool_prefix"; then | 
 | 4499 |   for ac_prog in cl.exe | 
 | 4500 |   do | 
 | 4501 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 4502 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4504 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4505 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4506 |   $as_echo_n "(cached) " >&6 | 
 | 4507 | else | 
 | 4508 |   if test -n "$CC"; then | 
 | 4509 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 4510 | else | 
 | 4511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4512 | for as_dir in $PATH | 
 | 4513 | do | 
 | 4514 |   IFS=$as_save_IFS | 
 | 4515 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4516 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4517 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4518 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4519 |     $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] | 4520 |     break 2 | 
 | 4521 |   fi | 
 | 4522 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4523 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4524 | IFS=$as_save_IFS | 
 | 4525 |  | 
 | 4526 | fi | 
 | 4527 | fi | 
 | 4528 | CC=$ac_cv_prog_CC | 
 | 4529 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4530 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4531 | $as_echo "$CC" >&6; } | 
 | 4532 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4533 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4534 | $as_echo "no" >&6; } | 
 | 4535 | fi | 
 | 4536 |  | 
 | 4537 |  | 
 | 4538 |     test -n "$CC" && break | 
 | 4539 |   done | 
 | 4540 | fi | 
 | 4541 | if test -z "$CC"; then | 
 | 4542 |   ac_ct_CC=$CC | 
 | 4543 |   for ac_prog in cl.exe | 
 | 4544 | do | 
 | 4545 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 4546 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4548 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4549 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4550 |   $as_echo_n "(cached) " >&6 | 
 | 4551 | else | 
 | 4552 |   if test -n "$ac_ct_CC"; then | 
 | 4553 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 4554 | else | 
 | 4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 4556 | for as_dir in $PATH | 
 | 4557 | do | 
 | 4558 |   IFS=$as_save_IFS | 
 | 4559 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4560 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4561 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 4562 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4563 |     $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] | 4564 |     break 2 | 
 | 4565 |   fi | 
 | 4566 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4567 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4568 | IFS=$as_save_IFS | 
 | 4569 |  | 
 | 4570 | fi | 
 | 4571 | fi | 
 | 4572 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 4573 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4574 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4575 | $as_echo "$ac_ct_CC" >&6; } | 
 | 4576 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4577 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4578 | $as_echo "no" >&6; } | 
 | 4579 | fi | 
 | 4580 |  | 
 | 4581 |  | 
 | 4582 |   test -n "$ac_ct_CC" && break | 
 | 4583 | done | 
 | 4584 |  | 
 | 4585 |   if test "x$ac_ct_CC" = x; then | 
 | 4586 |     CC="" | 
 | 4587 |   else | 
 | 4588 |     case $cross_compiling:$ac_tool_warned in | 
 | 4589 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4590 | { $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] | 4591 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 4592 | ac_tool_warned=yes ;; | 
 | 4593 | esac | 
 | 4594 |     CC=$ac_ct_CC | 
 | 4595 |   fi | 
 | 4596 | fi | 
 | 4597 |  | 
 | 4598 | fi | 
 | 4599 |  | 
 | 4600 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4601 | 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] | 4602 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4603 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
 | 4604 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4605 |  | 
 | 4606 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4607 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4608 | set X $ac_compile | 
 | 4609 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4610 | for ac_option in --version -v -V -qversion; do | 
 | 4611 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4612 | case "(($ac_try" in | 
 | 4613 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4614 |   *) ac_try_echo=$ac_try;; | 
 | 4615 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4617 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4618 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4619 |   ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4620 |   if test -s conftest.err; then | 
 | 4621 |     sed '10a\ | 
 | 4622 | ... rest of stderr output deleted ... | 
 | 4623 |          10q' conftest.err >conftest.er1 | 
 | 4624 |     cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4625 |   fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4626 |   rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4627 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4628 |   test $ac_status = 0; } | 
 | 4629 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4630 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4632 | /* end confdefs.h.  */ | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4633 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4634 | int | 
 | 4635 | main () | 
 | 4636 | { | 
 | 4637 |  | 
 | 4638 |   ; | 
 | 4639 |   return 0; | 
 | 4640 | } | 
 | 4641 | _ACEOF | 
 | 4642 | ac_clean_files_save=$ac_clean_files | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4643 | 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] | 4644 | # Try to create an executable without -o first, disregard a.out. | 
 | 4645 | # It will help us diagnose broken compilers, and finding out an intuition | 
 | 4646 | # of exeext. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
 | 4648 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4649 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
 | 4650 |  | 
 | 4651 | # The possible output files: | 
 | 4652 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
 | 4653 |  | 
 | 4654 | ac_rmfiles= | 
 | 4655 | for ac_file in $ac_files | 
 | 4656 | do | 
 | 4657 |   case $ac_file in | 
 | 4658 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
 | 4659 |     * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
 | 4660 |   esac | 
 | 4661 | done | 
 | 4662 | rm -f $ac_rmfiles | 
 | 4663 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4664 | if { { ac_try="$ac_link_default" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4665 | case "(($ac_try" in | 
 | 4666 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4667 |   *) ac_try_echo=$ac_try;; | 
 | 4668 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4670 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4671 |   (eval "$ac_link_default") 2>&5 | 
 | 4672 |   ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4673 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4674 |   test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4675 |   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
 | 4676 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
 | 4677 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
 | 4678 | # so that the user can short-circuit this test for compilers unknown to | 
 | 4679 | # Autoconf. | 
 | 4680 | for ac_file in $ac_files '' | 
 | 4681 | do | 
 | 4682 |   test -f "$ac_file" || continue | 
 | 4683 |   case $ac_file in | 
 | 4684 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
 | 4685 | 	;; | 
 | 4686 |     [ab].out ) | 
 | 4687 | 	# We found the default executable, but exeext='' is most | 
 | 4688 | 	# certainly right. | 
 | 4689 | 	break;; | 
 | 4690 |     *.* ) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4691 | 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4692 | 	then :; else | 
 | 4693 | 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4694 | 	fi | 
 | 4695 | 	# We set ac_cv_exeext here because the later test for it is not | 
 | 4696 | 	# safe: cross compilers may not add the suffix if given an `-o' | 
 | 4697 | 	# argument, so we may need to know it at that point already. | 
 | 4698 | 	# Even if this section looks crufty: it has the advantage of | 
 | 4699 | 	# actually working. | 
 | 4700 | 	break;; | 
 | 4701 |     * ) | 
 | 4702 | 	break;; | 
 | 4703 |   esac | 
 | 4704 | done | 
 | 4705 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
 | 4706 |  | 
 | 4707 | else | 
 | 4708 |   ac_file='' | 
 | 4709 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4710 | if test -z "$ac_file"; then : | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4711 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 4712 | $as_echo "no" >&6; } | 
 | 4713 | $as_echo "$as_me: failed program was:" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4714 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4715 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4716 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4717 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4718 | as_fn_error 77 "C compiler cannot create executables | 
 | 4719 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4720 | else | 
 | 4721 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 4722 | $as_echo "yes" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4723 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
 | 4725 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
 | 4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
 | 4727 | $as_echo "$ac_file" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4728 | ac_exeext=$ac_cv_exeext | 
 | 4729 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4730 | 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] | 4731 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4733 | $as_echo_n "checking for suffix of executables... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4734 | if { { ac_try="$ac_link" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4735 | case "(($ac_try" in | 
 | 4736 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4737 |   *) ac_try_echo=$ac_try;; | 
 | 4738 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4740 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4741 |   (eval "$ac_link") 2>&5 | 
 | 4742 |   ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4743 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4744 |   test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4745 |   # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
 | 4746 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
 | 4747 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
 | 4748 | # `rm'. | 
 | 4749 | for ac_file in conftest.exe conftest conftest.*; do | 
 | 4750 |   test -f "$ac_file" || continue | 
 | 4751 |   case $ac_file in | 
 | 4752 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
 | 4753 |     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
 | 4754 | 	  break;; | 
 | 4755 |     * ) break;; | 
 | 4756 |   esac | 
 | 4757 | done | 
 | 4758 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4759 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4760 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4761 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
 | 4762 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4763 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4764 | rm -f conftest conftest$ac_cv_exeext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4766 | $as_echo "$ac_cv_exeext" >&6; } | 
 | 4767 |  | 
 | 4768 | rm -f conftest.$ac_ext | 
 | 4769 | EXEEXT=$ac_cv_exeext | 
 | 4770 | ac_exeext=$EXEEXT | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 4772 | /* end confdefs.h.  */ | 
 | 4773 | #include <stdio.h> | 
 | 4774 | int | 
 | 4775 | main () | 
 | 4776 | { | 
 | 4777 | FILE *f = fopen ("conftest.out", "w"); | 
 | 4778 |  return ferror (f) || fclose (f) != 0; | 
 | 4779 |  | 
 | 4780 |   ; | 
 | 4781 |   return 0; | 
 | 4782 | } | 
 | 4783 | _ACEOF | 
 | 4784 | ac_clean_files="$ac_clean_files conftest.out" | 
 | 4785 | # Check that the compiler produces executables we can run.  If not, either | 
 | 4786 | # the compiler is broken, or we cross compile. | 
 | 4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
 | 4788 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
 | 4789 | if test "$cross_compiling" != yes; then | 
 | 4790 |   { { ac_try="$ac_link" | 
 | 4791 | case "(($ac_try" in | 
 | 4792 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4793 |   *) ac_try_echo=$ac_try;; | 
 | 4794 | esac | 
 | 4795 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4796 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4797 |   (eval "$ac_link") 2>&5 | 
 | 4798 |   ac_status=$? | 
 | 4799 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4800 |   test $ac_status = 0; } | 
 | 4801 |   if { ac_try='./conftest$ac_cv_exeext' | 
 | 4802 |   { { case "(($ac_try" in | 
 | 4803 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4804 |   *) ac_try_echo=$ac_try;; | 
 | 4805 | esac | 
 | 4806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4807 | $as_echo "$ac_try_echo"; } >&5 | 
 | 4808 |   (eval "$ac_try") 2>&5 | 
 | 4809 |   ac_status=$? | 
 | 4810 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4811 |   test $ac_status = 0; }; }; then | 
 | 4812 |     cross_compiling=no | 
 | 4813 |   else | 
 | 4814 |     if test "$cross_compiling" = maybe; then | 
 | 4815 | 	cross_compiling=yes | 
 | 4816 |     else | 
 | 4817 | 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 4818 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4819 | as_fn_error $? "cannot run C compiled programs. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4820 | If you meant to cross compile, use \`--host'. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4821 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4822 |     fi | 
 | 4823 |   fi | 
 | 4824 | fi | 
 | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
 | 4826 | $as_echo "$cross_compiling" >&6; } | 
 | 4827 |  | 
 | 4828 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
 | 4829 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4830 | { $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] | 4831 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4832 | if ${ac_cv_objext+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4833 |   $as_echo_n "(cached) " >&6 | 
 | 4834 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4835 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4836 | /* end confdefs.h.  */ | 
 | 4837 |  | 
 | 4838 | int | 
 | 4839 | main () | 
 | 4840 | { | 
 | 4841 |  | 
 | 4842 |   ; | 
 | 4843 |   return 0; | 
 | 4844 | } | 
 | 4845 | _ACEOF | 
 | 4846 | rm -f conftest.o conftest.obj | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4847 | if { { ac_try="$ac_compile" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4848 | case "(($ac_try" in | 
 | 4849 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 4850 |   *) ac_try_echo=$ac_try;; | 
 | 4851 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 4853 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4854 |   (eval "$ac_compile") 2>&5 | 
 | 4855 |   ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4856 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 4857 |   test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4858 |   for ac_file in conftest.o conftest.obj conftest.*; do | 
 | 4859 |   test -f "$ac_file" || continue; | 
 | 4860 |   case $ac_file in | 
 | 4861 |     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
 | 4862 |     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
 | 4863 |        break;; | 
 | 4864 |   esac | 
 | 4865 | done | 
 | 4866 | else | 
 | 4867 |   $as_echo "$as_me: failed program was:" >&5 | 
 | 4868 | sed 's/^/| /' conftest.$ac_ext >&5 | 
 | 4869 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4870 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4872 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
 | 4873 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4874 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4875 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
 | 4876 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4878 | $as_echo "$ac_cv_objext" >&6; } | 
 | 4879 | OBJEXT=$ac_cv_objext | 
 | 4880 | ac_objext=$OBJEXT | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4881 | { $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] | 4882 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4883 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4884 |   $as_echo_n "(cached) " >&6 | 
 | 4885 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4886 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4887 | /* end confdefs.h.  */ | 
 | 4888 |  | 
 | 4889 | int | 
 | 4890 | main () | 
 | 4891 | { | 
 | 4892 | #ifndef __GNUC__ | 
 | 4893 |        choke me | 
 | 4894 | #endif | 
 | 4895 |  | 
 | 4896 |   ; | 
 | 4897 |   return 0; | 
 | 4898 | } | 
 | 4899 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4900 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4901 |   ac_compiler_gnu=yes | 
 | 4902 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4903 |   ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4904 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4906 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 4907 |  | 
 | 4908 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4909 | { $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] | 4910 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 4911 | if test $ac_compiler_gnu = yes; then | 
 | 4912 |   GCC=yes | 
 | 4913 | else | 
 | 4914 |   GCC= | 
 | 4915 | fi | 
 | 4916 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 4917 | ac_save_CFLAGS=$CFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4919 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4920 | if ${ac_cv_prog_cc_g+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4921 |   $as_echo_n "(cached) " >&6 | 
 | 4922 | else | 
 | 4923 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 4924 |    ac_c_werror_flag=yes | 
 | 4925 |    ac_cv_prog_cc_g=no | 
 | 4926 |    CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4927 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4928 | /* end confdefs.h.  */ | 
 | 4929 |  | 
 | 4930 | int | 
 | 4931 | main () | 
 | 4932 | { | 
 | 4933 |  | 
 | 4934 |   ; | 
 | 4935 |   return 0; | 
 | 4936 | } | 
 | 4937 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4938 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4939 |   ac_cv_prog_cc_g=yes | 
 | 4940 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4941 |   CFLAGS="" | 
 | 4942 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4943 | /* end confdefs.h.  */ | 
 | 4944 |  | 
 | 4945 | int | 
 | 4946 | main () | 
 | 4947 | { | 
 | 4948 |  | 
 | 4949 |   ; | 
 | 4950 |   return 0; | 
 | 4951 | } | 
 | 4952 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4953 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4954 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4955 | else | 
 | 4956 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4957 | 	 CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4958 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4959 | /* end confdefs.h.  */ | 
 | 4960 |  | 
 | 4961 | int | 
 | 4962 | main () | 
 | 4963 | { | 
 | 4964 |  | 
 | 4965 |   ; | 
 | 4966 |   return 0; | 
 | 4967 | } | 
 | 4968 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4969 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4970 |   ac_cv_prog_cc_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4971 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4973 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4975 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 4977 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 4978 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4979 | { $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] | 4980 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
 | 4981 | if test "$ac_test_CFLAGS" = set; then | 
 | 4982 |   CFLAGS=$ac_save_CFLAGS | 
 | 4983 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 4984 |   if test "$GCC" = yes; then | 
 | 4985 |     CFLAGS="-g -O2" | 
 | 4986 |   else | 
 | 4987 |     CFLAGS="-g" | 
 | 4988 |   fi | 
 | 4989 | else | 
 | 4990 |   if test "$GCC" = yes; then | 
 | 4991 |     CFLAGS="-O2" | 
 | 4992 |   else | 
 | 4993 |     CFLAGS= | 
 | 4994 |   fi | 
 | 4995 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4996 | { $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] | 4997 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4998 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4999 |   $as_echo_n "(cached) " >&6 | 
 | 5000 | else | 
 | 5001 |   ac_cv_prog_cc_c89=no | 
 | 5002 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5004 | /* end confdefs.h.  */ | 
 | 5005 | #include <stdarg.h> | 
 | 5006 | #include <stdio.h> | 
 | 5007 | #include <sys/types.h> | 
 | 5008 | #include <sys/stat.h> | 
 | 5009 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 5010 | struct buf { int x; }; | 
 | 5011 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 5012 | static char *e (p, i) | 
 | 5013 |      char **p; | 
 | 5014 |      int i; | 
 | 5015 | { | 
 | 5016 |   return p[i]; | 
 | 5017 | } | 
 | 5018 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 5019 | { | 
 | 5020 |   char *s; | 
 | 5021 |   va_list v; | 
 | 5022 |   va_start (v,p); | 
 | 5023 |   s = g (p, va_arg (v,int)); | 
 | 5024 |   va_end (v); | 
 | 5025 |   return s; | 
 | 5026 | } | 
 | 5027 |  | 
 | 5028 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 5029 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 5030 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 5031 |    as 'x'.  The following induces an error, until -std is added to get | 
 | 5032 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 5033 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 5034 |    that's true only with -std.  */ | 
 | 5035 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 5036 |  | 
 | 5037 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 5038 |    inside strings and character constants.  */ | 
 | 5039 | #define FOO(x) 'x' | 
 | 5040 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 5041 |  | 
 | 5042 | int test (int i, double x); | 
 | 5043 | struct s1 {int (*f) (int a);}; | 
 | 5044 | struct s2 {int (*f) (double a);}; | 
 | 5045 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 5046 | int argc; | 
 | 5047 | char **argv; | 
 | 5048 | int | 
 | 5049 | main () | 
 | 5050 | { | 
 | 5051 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 5052 |   ; | 
 | 5053 |   return 0; | 
 | 5054 | } | 
 | 5055 | _ACEOF | 
 | 5056 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 5057 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 5058 | do | 
 | 5059 |   CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5060 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5061 |   ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5062 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5063 | rm -f core conftest.err conftest.$ac_objext | 
 | 5064 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
 | 5065 | done | 
 | 5066 | rm -f conftest.$ac_ext | 
 | 5067 | CC=$ac_save_CC | 
 | 5068 |  | 
 | 5069 | fi | 
 | 5070 | # AC_CACHE_VAL | 
 | 5071 | case "x$ac_cv_prog_cc_c89" in | 
 | 5072 |   x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5073 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5074 | $as_echo "none needed" >&6; } ;; | 
 | 5075 |   xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5076 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5077 | $as_echo "unsupported" >&6; } ;; | 
 | 5078 |   *) | 
 | 5079 |     CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5080 |     { $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] | 5081 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
 | 5082 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5083 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5084 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5085 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5086 |  | 
 | 5087 | ac_ext=c | 
 | 5088 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5092 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5093 | depcc="$CC"   am_compiler_list= | 
 | 5094 |  | 
 | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
 | 5096 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5097 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5098 |   $as_echo_n "(cached) " >&6 | 
 | 5099 | else | 
 | 5100 |   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
 | 5101 |   # We make a subdir and do the tests there.  Otherwise we can end up | 
 | 5102 |   # making bogus files that we don't know about and never remove.  For | 
 | 5103 |   # instance it was reported that on HP-UX the gcc test will end up | 
 | 5104 |   # making a dummy file named `D' -- because `-MD' means `put the output | 
 | 5105 |   # in D'. | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 5106 |   rm -rf conftest.dir | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5107 |   mkdir conftest.dir | 
 | 5108 |   # Copy depcomp to subdir because otherwise we won't find it if we're | 
 | 5109 |   # using a relative directory. | 
 | 5110 |   cp "$am_depcomp" conftest.dir | 
 | 5111 |   cd conftest.dir | 
 | 5112 |   # We will build objects and dependencies in a subdirectory because | 
 | 5113 |   # it helps to detect inapplicable dependency modes.  For instance | 
 | 5114 |   # both Tru64's cc and ICC support -MD to output dependencies as a | 
 | 5115 |   # side effect of compilation, but ICC will put the dependencies in | 
 | 5116 |   # the current directory while Tru64 will put them in the object | 
 | 5117 |   # directory. | 
 | 5118 |   mkdir sub | 
 | 5119 |  | 
 | 5120 |   am_cv_CC_dependencies_compiler_type=none | 
 | 5121 |   if test "$am_compiler_list" = ""; then | 
 | 5122 |      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
 | 5123 |   fi | 
 | 5124 |   am__universal=false | 
 | 5125 |   case " $depcc " in #( | 
 | 5126 |      *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
 | 5127 |      esac | 
 | 5128 |  | 
 | 5129 |   for depmode in $am_compiler_list; do | 
 | 5130 |     # Setup a source with many dependencies, because some compilers | 
 | 5131 |     # like to wrap large dependency lists on column 80 (with \), and | 
 | 5132 |     # we should not choose a depcomp mode which is confused by this. | 
 | 5133 |     # | 
 | 5134 |     # We need to recreate these files for each test, as the compiler may | 
 | 5135 |     # overwrite some of them when testing with obscure command lines. | 
 | 5136 |     # This happens at least with the AIX C compiler. | 
 | 5137 |     : > sub/conftest.c | 
 | 5138 |     for i in 1 2 3 4 5 6; do | 
 | 5139 |       echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
 | 5140 |       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
 | 5141 |       # Solaris 8's {/usr,}/bin/sh. | 
 | 5142 |       touch sub/conftst$i.h | 
 | 5143 |     done | 
 | 5144 |     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
 | 5145 |  | 
 | 5146 |     # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
 | 5147 |     # mode.  It turns out that the SunPro C++ compiler does not properly | 
 | 5148 |     # handle `-M -o', and we need to detect this.  Also, some Intel | 
 | 5149 |     # versions had trouble with output in subdirs | 
 | 5150 |     am__obj=sub/conftest.${OBJEXT-o} | 
 | 5151 |     am__minus_obj="-o $am__obj" | 
 | 5152 |     case $depmode in | 
 | 5153 |     gcc) | 
 | 5154 |       # This depmode causes a compiler race in universal mode. | 
 | 5155 |       test "$am__universal" = false || continue | 
 | 5156 |       ;; | 
 | 5157 |     nosideeffect) | 
 | 5158 |       # after this tag, mechanisms are not by side-effect, so they'll | 
 | 5159 |       # only be used when explicitly requested | 
 | 5160 |       if test "x$enable_dependency_tracking" = xyes; then | 
 | 5161 | 	continue | 
 | 5162 |       else | 
 | 5163 | 	break | 
 | 5164 |       fi | 
 | 5165 |       ;; | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 5166 |     msvc7 | msvc7msys | msvisualcpp | msvcmsys) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5167 |       # This compiler won't grok `-c -o', but also, the minuso test has | 
 | 5168 |       # not run yet.  These depmodes are late enough in the game, and | 
 | 5169 |       # so weak that their functioning should not be impacted. | 
 | 5170 |       am__obj=conftest.${OBJEXT-o} | 
 | 5171 |       am__minus_obj= | 
 | 5172 |       ;; | 
 | 5173 |     none) break ;; | 
 | 5174 |     esac | 
 | 5175 |     if depmode=$depmode \ | 
 | 5176 |        source=sub/conftest.c object=$am__obj \ | 
 | 5177 |        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
 | 5178 |        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
 | 5179 |          >/dev/null 2>conftest.err && | 
 | 5180 |        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 5181 |        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 5182 |        grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
 | 5183 |        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
 | 5184 |       # icc doesn't choke on unknown options, it will just issue warnings | 
 | 5185 |       # or remarks (even with -Werror).  So we grep stderr for any message | 
 | 5186 |       # that says an option was ignored or not supported. | 
 | 5187 |       # When given -MP, icc 7.0 and 7.1 complain thusly: | 
 | 5188 |       #   icc: Command line warning: ignoring option '-M'; no argument required | 
 | 5189 |       # The diagnosis changed in icc 8.0: | 
 | 5190 |       #   icc: Command line remark: option '-MP' not supported | 
 | 5191 |       if (grep 'ignoring option' conftest.err || | 
 | 5192 |           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
 | 5193 |         am_cv_CC_dependencies_compiler_type=$depmode | 
 | 5194 |         break | 
 | 5195 |       fi | 
 | 5196 |     fi | 
 | 5197 |   done | 
 | 5198 |  | 
 | 5199 |   cd .. | 
 | 5200 |   rm -rf conftest.dir | 
 | 5201 | else | 
 | 5202 |   am_cv_CC_dependencies_compiler_type=none | 
 | 5203 | fi | 
 | 5204 |  | 
 | 5205 | fi | 
 | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
 | 5207 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
 | 5208 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
 | 5209 |  | 
 | 5210 |  if | 
 | 5211 |   test "x$enable_dependency_tracking" != xno \ | 
 | 5212 |   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
 | 5213 |   am__fastdepCC_TRUE= | 
 | 5214 |   am__fastdepCC_FALSE='#' | 
 | 5215 | else | 
 | 5216 |   am__fastdepCC_TRUE='#' | 
 | 5217 |   am__fastdepCC_FALSE= | 
 | 5218 | fi | 
 | 5219 |  | 
 | 5220 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5221 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5222 | ac_ext=c | 
 | 5223 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
 | 5228 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 5229 | # On Suns, sometimes $CPP names a directory. | 
 | 5230 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 5231 |   CPP= | 
 | 5232 | fi | 
 | 5233 | if test -z "$CPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5234 |   if ${ac_cv_prog_CPP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5235 |   $as_echo_n "(cached) " >&6 | 
 | 5236 | else | 
 | 5237 |       # Double quotes because CPP needs to be expanded | 
 | 5238 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 5239 |     do | 
 | 5240 |       ac_preproc_ok=false | 
 | 5241 | for ac_c_preproc_warn_flag in '' yes | 
 | 5242 | do | 
 | 5243 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 5244 |   # with a fresh cross-compiler works. | 
 | 5245 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 5246 |   # <limits.h> exists even on freestanding compilers. | 
 | 5247 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 5248 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 5249 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5250 | /* end confdefs.h.  */ | 
 | 5251 | #ifdef __STDC__ | 
 | 5252 | # include <limits.h> | 
 | 5253 | #else | 
 | 5254 | # include <assert.h> | 
 | 5255 | #endif | 
 | 5256 | 		     Syntax error | 
 | 5257 | _ACEOF | 
 | 5258 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 5259 |  | 
 | 5260 | else | 
 | 5261 |   # Broken: fails on valid input. | 
 | 5262 | continue | 
 | 5263 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5264 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5265 |  | 
 | 5266 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 5267 |   # can be detected and how. | 
 | 5268 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5269 | /* end confdefs.h.  */ | 
 | 5270 | #include <ac_nonexistent.h> | 
 | 5271 | _ACEOF | 
 | 5272 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 5273 |   # Broken: success on invalid input. | 
 | 5274 | continue | 
 | 5275 | else | 
 | 5276 |   # Passes both tests. | 
 | 5277 | ac_preproc_ok=: | 
 | 5278 | break | 
 | 5279 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5280 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5281 |  | 
 | 5282 | done | 
 | 5283 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5284 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5285 | if $ac_preproc_ok; then : | 
 | 5286 |   break | 
 | 5287 | fi | 
 | 5288 |  | 
 | 5289 |     done | 
 | 5290 |     ac_cv_prog_CPP=$CPP | 
 | 5291 |  | 
 | 5292 | fi | 
 | 5293 |   CPP=$ac_cv_prog_CPP | 
 | 5294 | else | 
 | 5295 |   ac_cv_prog_CPP=$CPP | 
 | 5296 | fi | 
 | 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
 | 5298 | $as_echo "$CPP" >&6; } | 
 | 5299 | ac_preproc_ok=false | 
 | 5300 | for ac_c_preproc_warn_flag in '' yes | 
 | 5301 | do | 
 | 5302 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 5303 |   # with a fresh cross-compiler works. | 
 | 5304 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 5305 |   # <limits.h> exists even on freestanding compilers. | 
 | 5306 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 5307 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 5308 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5309 | /* end confdefs.h.  */ | 
 | 5310 | #ifdef __STDC__ | 
 | 5311 | # include <limits.h> | 
 | 5312 | #else | 
 | 5313 | # include <assert.h> | 
 | 5314 | #endif | 
 | 5315 | 		     Syntax error | 
 | 5316 | _ACEOF | 
 | 5317 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 5318 |  | 
 | 5319 | else | 
 | 5320 |   # Broken: fails on valid input. | 
 | 5321 | continue | 
 | 5322 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5323 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5324 |  | 
 | 5325 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 5326 |   # can be detected and how. | 
 | 5327 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5328 | /* end confdefs.h.  */ | 
 | 5329 | #include <ac_nonexistent.h> | 
 | 5330 | _ACEOF | 
 | 5331 | if ac_fn_c_try_cpp "$LINENO"; then : | 
 | 5332 |   # Broken: success on invalid input. | 
 | 5333 | continue | 
 | 5334 | else | 
 | 5335 |   # Passes both tests. | 
 | 5336 | ac_preproc_ok=: | 
 | 5337 | break | 
 | 5338 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5339 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5340 |  | 
 | 5341 | done | 
 | 5342 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5343 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5344 | if $ac_preproc_ok; then : | 
 | 5345 |  | 
 | 5346 | else | 
 | 5347 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 5348 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5349 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 5350 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5351 | fi | 
 | 5352 |  | 
 | 5353 | ac_ext=c | 
 | 5354 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5358 |  | 
 | 5359 |  | 
 | 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
 | 5361 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5362 | if ${ac_cv_path_GREP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5363 |   $as_echo_n "(cached) " >&6 | 
 | 5364 | else | 
 | 5365 |   if test -z "$GREP"; then | 
 | 5366 |   ac_path_GREP_found=false | 
 | 5367 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5368 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5369 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5370 | do | 
 | 5371 |   IFS=$as_save_IFS | 
 | 5372 |   test -z "$as_dir" && as_dir=. | 
 | 5373 |     for ac_prog in grep ggrep; do | 
 | 5374 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5375 |       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 5376 |       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
 | 5377 | # Check for GNU ac_path_GREP and select it if it is found. | 
 | 5378 |   # Check for GNU $ac_path_GREP | 
 | 5379 | case `"$ac_path_GREP" --version 2>&1` in | 
 | 5380 | *GNU*) | 
 | 5381 |   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
 | 5382 | *) | 
 | 5383 |   ac_count=0 | 
 | 5384 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 5385 |   while : | 
 | 5386 |   do | 
 | 5387 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5388 |     mv "conftest.tmp" "conftest.in" | 
 | 5389 |     cp "conftest.in" "conftest.nl" | 
 | 5390 |     $as_echo 'GREP' >> "conftest.nl" | 
 | 5391 |     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5392 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 5393 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 5394 |     if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
 | 5395 |       # Best one so far, save it but keep looking for a better one | 
 | 5396 |       ac_cv_path_GREP="$ac_path_GREP" | 
 | 5397 |       ac_path_GREP_max=$ac_count | 
 | 5398 |     fi | 
 | 5399 |     # 10*(2^10) chars as input seems more than enough | 
 | 5400 |     test $ac_count -gt 10 && break | 
 | 5401 |   done | 
 | 5402 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5403 | esac | 
 | 5404 |  | 
 | 5405 |       $ac_path_GREP_found && break 3 | 
 | 5406 |     done | 
 | 5407 |   done | 
 | 5408 |   done | 
 | 5409 | IFS=$as_save_IFS | 
 | 5410 |   if test -z "$ac_cv_path_GREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5411 |     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] | 5412 |   fi | 
 | 5413 | else | 
 | 5414 |   ac_cv_path_GREP=$GREP | 
 | 5415 | fi | 
 | 5416 |  | 
 | 5417 | fi | 
 | 5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
 | 5419 | $as_echo "$ac_cv_path_GREP" >&6; } | 
 | 5420 |  GREP="$ac_cv_path_GREP" | 
 | 5421 |  | 
 | 5422 |  | 
 | 5423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
 | 5424 | $as_echo_n "checking for egrep... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5425 | if ${ac_cv_path_EGREP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5426 |   $as_echo_n "(cached) " >&6 | 
 | 5427 | else | 
 | 5428 |   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
 | 5429 |    then ac_cv_path_EGREP="$GREP -E" | 
 | 5430 |    else | 
 | 5431 |      if test -z "$EGREP"; then | 
 | 5432 |   ac_path_EGREP_found=false | 
 | 5433 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 5434 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5435 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 5436 | do | 
 | 5437 |   IFS=$as_save_IFS | 
 | 5438 |   test -z "$as_dir" && as_dir=. | 
 | 5439 |     for ac_prog in egrep; do | 
 | 5440 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5441 |       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 5442 |       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
 | 5443 | # Check for GNU ac_path_EGREP and select it if it is found. | 
 | 5444 |   # Check for GNU $ac_path_EGREP | 
 | 5445 | case `"$ac_path_EGREP" --version 2>&1` in | 
 | 5446 | *GNU*) | 
 | 5447 |   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
 | 5448 | *) | 
 | 5449 |   ac_count=0 | 
 | 5450 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 5451 |   while : | 
 | 5452 |   do | 
 | 5453 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 5454 |     mv "conftest.tmp" "conftest.in" | 
 | 5455 |     cp "conftest.in" "conftest.nl" | 
 | 5456 |     $as_echo 'EGREP' >> "conftest.nl" | 
 | 5457 |     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 5458 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 5459 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 5460 |     if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
 | 5461 |       # Best one so far, save it but keep looking for a better one | 
 | 5462 |       ac_cv_path_EGREP="$ac_path_EGREP" | 
 | 5463 |       ac_path_EGREP_max=$ac_count | 
 | 5464 |     fi | 
 | 5465 |     # 10*(2^10) chars as input seems more than enough | 
 | 5466 |     test $ac_count -gt 10 && break | 
 | 5467 |   done | 
 | 5468 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 5469 | esac | 
 | 5470 |  | 
 | 5471 |       $ac_path_EGREP_found && break 3 | 
 | 5472 |     done | 
 | 5473 |   done | 
 | 5474 |   done | 
 | 5475 | IFS=$as_save_IFS | 
 | 5476 |   if test -z "$ac_cv_path_EGREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5477 |     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] | 5478 |   fi | 
 | 5479 | else | 
 | 5480 |   ac_cv_path_EGREP=$EGREP | 
 | 5481 | fi | 
 | 5482 |  | 
 | 5483 |    fi | 
 | 5484 | fi | 
 | 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
 | 5486 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
 | 5487 |  EGREP="$ac_cv_path_EGREP" | 
 | 5488 |  | 
 | 5489 |  | 
 | 5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
 | 5491 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5492 | if ${ac_cv_header_stdc+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5493 |   $as_echo_n "(cached) " >&6 | 
 | 5494 | else | 
 | 5495 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5496 | /* end confdefs.h.  */ | 
 | 5497 | #include <stdlib.h> | 
 | 5498 | #include <stdarg.h> | 
 | 5499 | #include <string.h> | 
 | 5500 | #include <float.h> | 
 | 5501 |  | 
 | 5502 | int | 
 | 5503 | main () | 
 | 5504 | { | 
 | 5505 |  | 
 | 5506 |   ; | 
 | 5507 |   return 0; | 
 | 5508 | } | 
 | 5509 | _ACEOF | 
 | 5510 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5511 |   ac_cv_header_stdc=yes | 
 | 5512 | else | 
 | 5513 |   ac_cv_header_stdc=no | 
 | 5514 | fi | 
 | 5515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5516 |  | 
 | 5517 | if test $ac_cv_header_stdc = yes; then | 
 | 5518 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 5519 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5520 | /* end confdefs.h.  */ | 
 | 5521 | #include <string.h> | 
 | 5522 |  | 
 | 5523 | _ACEOF | 
 | 5524 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5525 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 5526 |  | 
 | 5527 | else | 
 | 5528 |   ac_cv_header_stdc=no | 
 | 5529 | fi | 
 | 5530 | rm -f conftest* | 
 | 5531 |  | 
 | 5532 | fi | 
 | 5533 |  | 
 | 5534 | if test $ac_cv_header_stdc = yes; then | 
 | 5535 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 5536 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5537 | /* end confdefs.h.  */ | 
 | 5538 | #include <stdlib.h> | 
 | 5539 |  | 
 | 5540 | _ACEOF | 
 | 5541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5542 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 5543 |  | 
 | 5544 | else | 
 | 5545 |   ac_cv_header_stdc=no | 
 | 5546 | fi | 
 | 5547 | rm -f conftest* | 
 | 5548 |  | 
 | 5549 | fi | 
 | 5550 |  | 
 | 5551 | if test $ac_cv_header_stdc = yes; then | 
 | 5552 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 5553 |   if test "$cross_compiling" = yes; then : | 
 | 5554 |   : | 
 | 5555 | else | 
 | 5556 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5557 | /* end confdefs.h.  */ | 
 | 5558 | #include <ctype.h> | 
 | 5559 | #include <stdlib.h> | 
 | 5560 | #if ((' ' & 0x0FF) == 0x020) | 
 | 5561 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 5562 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 5563 | #else | 
 | 5564 | # define ISLOWER(c) \ | 
 | 5565 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 5566 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 5567 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 5568 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 5569 | #endif | 
 | 5570 |  | 
 | 5571 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 5572 | int | 
 | 5573 | main () | 
 | 5574 | { | 
 | 5575 |   int i; | 
 | 5576 |   for (i = 0; i < 256; i++) | 
 | 5577 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 5578 | 	|| toupper (i) != TOUPPER (i)) | 
 | 5579 |       return 2; | 
 | 5580 |   return 0; | 
 | 5581 | } | 
 | 5582 | _ACEOF | 
 | 5583 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 5584 |  | 
 | 5585 | else | 
 | 5586 |   ac_cv_header_stdc=no | 
 | 5587 | fi | 
 | 5588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 5589 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 5590 | fi | 
 | 5591 |  | 
 | 5592 | fi | 
 | 5593 | fi | 
 | 5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
 | 5595 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 5596 | if test $ac_cv_header_stdc = yes; then | 
 | 5597 |  | 
 | 5598 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
 | 5599 |  | 
 | 5600 | fi | 
 | 5601 |  | 
 | 5602 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
 | 5603 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
 | 5604 | 		  inttypes.h stdint.h unistd.h | 
 | 5605 | do : | 
 | 5606 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 5607 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 5608 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5609 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5610 |   cat >>confdefs.h <<_ACEOF | 
 | 5611 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 5612 | _ACEOF | 
 | 5613 |  | 
 | 5614 | fi | 
 | 5615 |  | 
 | 5616 | done | 
 | 5617 |  | 
 | 5618 |  | 
 | 5619 |  | 
 | 5620 |   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5621 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5622 |   MINIX=yes | 
 | 5623 | else | 
 | 5624 |   MINIX= | 
 | 5625 | fi | 
 | 5626 |  | 
 | 5627 |  | 
 | 5628 |   if test "$MINIX" = yes; then | 
 | 5629 |  | 
 | 5630 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
 | 5631 |  | 
 | 5632 |  | 
 | 5633 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
 | 5634 |  | 
 | 5635 |  | 
 | 5636 | $as_echo "#define _MINIX 1" >>confdefs.h | 
 | 5637 |  | 
 | 5638 |   fi | 
 | 5639 |  | 
 | 5640 |  | 
 | 5641 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
 | 5642 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5643 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5644 |   $as_echo_n "(cached) " >&6 | 
 | 5645 | else | 
 | 5646 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 5647 | /* end confdefs.h.  */ | 
 | 5648 |  | 
 | 5649 | #	  define __EXTENSIONS__ 1 | 
 | 5650 | 	  $ac_includes_default | 
 | 5651 | int | 
 | 5652 | main () | 
 | 5653 | { | 
 | 5654 |  | 
 | 5655 |   ; | 
 | 5656 |   return 0; | 
 | 5657 | } | 
 | 5658 | _ACEOF | 
 | 5659 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 5660 |   ac_cv_safe_to_define___extensions__=yes | 
 | 5661 | else | 
 | 5662 |   ac_cv_safe_to_define___extensions__=no | 
 | 5663 | fi | 
 | 5664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 5665 | fi | 
 | 5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
 | 5667 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
 | 5668 |   test $ac_cv_safe_to_define___extensions__ = yes && | 
 | 5669 |     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
 | 5670 |  | 
 | 5671 |   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
 | 5672 |  | 
 | 5673 |   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
 | 5674 |  | 
 | 5675 |   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
 | 5676 |  | 
 | 5677 |   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
 | 5678 |  | 
 | 5679 |  | 
 | 5680 |  | 
 | 5681 | # Check for programs | 
 | 5682 | ac_ext=c | 
 | 5683 | ac_cpp='$CPP $CPPFLAGS' | 
 | 5684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 5685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 5686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 5687 | if test -n "$ac_tool_prefix"; then | 
 | 5688 |   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
 | 5689 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
 | 5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5691 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5692 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5693 |   $as_echo_n "(cached) " >&6 | 
 | 5694 | else | 
 | 5695 |   if test -n "$CC"; then | 
 | 5696 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 5697 | else | 
 | 5698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5699 | for as_dir in $PATH | 
 | 5700 | do | 
 | 5701 |   IFS=$as_save_IFS | 
 | 5702 |   test -z "$as_dir" && as_dir=. | 
 | 5703 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5704 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5705 |     ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
 | 5706 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5707 |     break 2 | 
 | 5708 |   fi | 
 | 5709 | done | 
 | 5710 |   done | 
 | 5711 | IFS=$as_save_IFS | 
 | 5712 |  | 
 | 5713 | fi | 
 | 5714 | fi | 
 | 5715 | CC=$ac_cv_prog_CC | 
 | 5716 | if test -n "$CC"; then | 
 | 5717 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5718 | $as_echo "$CC" >&6; } | 
 | 5719 | else | 
 | 5720 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5721 | $as_echo "no" >&6; } | 
 | 5722 | fi | 
 | 5723 |  | 
 | 5724 |  | 
 | 5725 | fi | 
 | 5726 | if test -z "$ac_cv_prog_CC"; then | 
 | 5727 |   ac_ct_CC=$CC | 
 | 5728 |   # Extract the first word of "gcc", so it can be a program name with args. | 
 | 5729 | set dummy gcc; ac_word=$2 | 
 | 5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5731 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5732 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5733 |   $as_echo_n "(cached) " >&6 | 
 | 5734 | else | 
 | 5735 |   if test -n "$ac_ct_CC"; then | 
 | 5736 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 5737 | else | 
 | 5738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5739 | for as_dir in $PATH | 
 | 5740 | do | 
 | 5741 |   IFS=$as_save_IFS | 
 | 5742 |   test -z "$as_dir" && as_dir=. | 
 | 5743 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5744 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5745 |     ac_cv_prog_ac_ct_CC="gcc" | 
 | 5746 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5747 |     break 2 | 
 | 5748 |   fi | 
 | 5749 | done | 
 | 5750 |   done | 
 | 5751 | IFS=$as_save_IFS | 
 | 5752 |  | 
 | 5753 | fi | 
 | 5754 | fi | 
 | 5755 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 5756 | if test -n "$ac_ct_CC"; then | 
 | 5757 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 5758 | $as_echo "$ac_ct_CC" >&6; } | 
 | 5759 | else | 
 | 5760 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5761 | $as_echo "no" >&6; } | 
 | 5762 | fi | 
 | 5763 |  | 
 | 5764 |   if test "x$ac_ct_CC" = x; then | 
 | 5765 |     CC="" | 
 | 5766 |   else | 
 | 5767 |     case $cross_compiling:$ac_tool_warned in | 
 | 5768 | yes:) | 
 | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5771 | ac_tool_warned=yes ;; | 
 | 5772 | esac | 
 | 5773 |     CC=$ac_ct_CC | 
 | 5774 |   fi | 
 | 5775 | else | 
 | 5776 |   CC="$ac_cv_prog_CC" | 
 | 5777 | fi | 
 | 5778 |  | 
 | 5779 | if test -z "$CC"; then | 
 | 5780 |           if test -n "$ac_tool_prefix"; then | 
 | 5781 |     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
 | 5782 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
 | 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5784 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5785 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5786 |   $as_echo_n "(cached) " >&6 | 
 | 5787 | else | 
 | 5788 |   if test -n "$CC"; then | 
 | 5789 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 5790 | else | 
 | 5791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5792 | for as_dir in $PATH | 
 | 5793 | do | 
 | 5794 |   IFS=$as_save_IFS | 
 | 5795 |   test -z "$as_dir" && as_dir=. | 
 | 5796 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5797 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5798 |     ac_cv_prog_CC="${ac_tool_prefix}cc" | 
 | 5799 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5800 |     break 2 | 
 | 5801 |   fi | 
 | 5802 | done | 
 | 5803 |   done | 
 | 5804 | IFS=$as_save_IFS | 
 | 5805 |  | 
 | 5806 | fi | 
 | 5807 | fi | 
 | 5808 | CC=$ac_cv_prog_CC | 
 | 5809 | if test -n "$CC"; then | 
 | 5810 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5811 | $as_echo "$CC" >&6; } | 
 | 5812 | else | 
 | 5813 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5814 | $as_echo "no" >&6; } | 
 | 5815 | fi | 
 | 5816 |  | 
 | 5817 |  | 
 | 5818 |   fi | 
 | 5819 | fi | 
 | 5820 | if test -z "$CC"; then | 
 | 5821 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 5822 | set dummy cc; ac_word=$2 | 
 | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5824 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5825 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5826 |   $as_echo_n "(cached) " >&6 | 
 | 5827 | else | 
 | 5828 |   if test -n "$CC"; then | 
 | 5829 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 5830 | else | 
 | 5831 |   ac_prog_rejected=no | 
 | 5832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5833 | for as_dir in $PATH | 
 | 5834 | do | 
 | 5835 |   IFS=$as_save_IFS | 
 | 5836 |   test -z "$as_dir" && as_dir=. | 
 | 5837 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5838 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5839 |     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
 | 5840 |        ac_prog_rejected=yes | 
 | 5841 |        continue | 
 | 5842 |      fi | 
 | 5843 |     ac_cv_prog_CC="cc" | 
 | 5844 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5845 |     break 2 | 
 | 5846 |   fi | 
 | 5847 | done | 
 | 5848 |   done | 
 | 5849 | IFS=$as_save_IFS | 
 | 5850 |  | 
 | 5851 | if test $ac_prog_rejected = yes; then | 
 | 5852 |   # We found a bogon in the path, so make sure we never use it. | 
 | 5853 |   set dummy $ac_cv_prog_CC | 
 | 5854 |   shift | 
 | 5855 |   if test $# != 0; then | 
 | 5856 |     # We chose a different compiler from the bogus one. | 
 | 5857 |     # However, it has the same basename, so the bogon will be chosen | 
 | 5858 |     # first if we set CC to just the basename; use the full file name. | 
 | 5859 |     shift | 
 | 5860 |     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
 | 5861 |   fi | 
 | 5862 | fi | 
 | 5863 | fi | 
 | 5864 | fi | 
 | 5865 | CC=$ac_cv_prog_CC | 
 | 5866 | if test -n "$CC"; then | 
 | 5867 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5868 | $as_echo "$CC" >&6; } | 
 | 5869 | else | 
 | 5870 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5871 | $as_echo "no" >&6; } | 
 | 5872 | fi | 
 | 5873 |  | 
 | 5874 |  | 
 | 5875 | fi | 
 | 5876 | if test -z "$CC"; then | 
 | 5877 |   if test -n "$ac_tool_prefix"; then | 
 | 5878 |   for ac_prog in cl.exe | 
 | 5879 |   do | 
 | 5880 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 5881 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5883 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5884 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5885 |   $as_echo_n "(cached) " >&6 | 
 | 5886 | else | 
 | 5887 |   if test -n "$CC"; then | 
 | 5888 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 5889 | else | 
 | 5890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5891 | for as_dir in $PATH | 
 | 5892 | do | 
 | 5893 |   IFS=$as_save_IFS | 
 | 5894 |   test -z "$as_dir" && as_dir=. | 
 | 5895 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5896 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5897 |     ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
 | 5898 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5899 |     break 2 | 
 | 5900 |   fi | 
 | 5901 | done | 
 | 5902 |   done | 
 | 5903 | IFS=$as_save_IFS | 
 | 5904 |  | 
 | 5905 | fi | 
 | 5906 | fi | 
 | 5907 | CC=$ac_cv_prog_CC | 
 | 5908 | if test -n "$CC"; then | 
 | 5909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
 | 5910 | $as_echo "$CC" >&6; } | 
 | 5911 | else | 
 | 5912 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5913 | $as_echo "no" >&6; } | 
 | 5914 | fi | 
 | 5915 |  | 
 | 5916 |  | 
 | 5917 |     test -n "$CC" && break | 
 | 5918 |   done | 
 | 5919 | fi | 
 | 5920 | if test -z "$CC"; then | 
 | 5921 |   ac_ct_CC=$CC | 
 | 5922 |   for ac_prog in cl.exe | 
 | 5923 | do | 
 | 5924 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5925 | set dummy $ac_prog; ac_word=$2 | 
 | 5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 5927 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5928 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5929 |   $as_echo_n "(cached) " >&6 | 
 | 5930 | else | 
 | 5931 |   if test -n "$ac_ct_CC"; then | 
 | 5932 |   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
 | 5933 | else | 
 | 5934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 5935 | for as_dir in $PATH | 
 | 5936 | do | 
 | 5937 |   IFS=$as_save_IFS | 
 | 5938 |   test -z "$as_dir" && as_dir=. | 
 | 5939 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 5940 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 5941 |     ac_cv_prog_ac_ct_CC="$ac_prog" | 
 | 5942 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 5943 |     break 2 | 
 | 5944 |   fi | 
 | 5945 | done | 
 | 5946 |   done | 
 | 5947 | IFS=$as_save_IFS | 
 | 5948 |  | 
 | 5949 | fi | 
 | 5950 | fi | 
 | 5951 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
 | 5952 | if test -n "$ac_ct_CC"; then | 
 | 5953 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
 | 5954 | $as_echo "$ac_ct_CC" >&6; } | 
 | 5955 | else | 
 | 5956 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 5957 | $as_echo "no" >&6; } | 
 | 5958 | fi | 
 | 5959 |  | 
 | 5960 |  | 
 | 5961 |   test -n "$ac_ct_CC" && break | 
 | 5962 | done | 
 | 5963 |  | 
 | 5964 |   if test "x$ac_ct_CC" = x; then | 
 | 5965 |     CC="" | 
 | 5966 |   else | 
 | 5967 |     case $cross_compiling:$ac_tool_warned in | 
 | 5968 | yes:) | 
 | 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 5970 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 5971 | ac_tool_warned=yes ;; | 
 | 5972 | esac | 
 | 5973 |     CC=$ac_ct_CC | 
 | 5974 |   fi | 
 | 5975 | fi | 
 | 5976 |  | 
 | 5977 | fi | 
 | 5978 |  | 
 | 5979 |  | 
 | 5980 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 5981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5982 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
 | 5983 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5984 |  | 
 | 5985 | # Provide some information about the compiler. | 
 | 5986 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
 | 5987 | set X $ac_compile | 
 | 5988 | ac_compiler=$2 | 
 | 5989 | for ac_option in --version -v -V -qversion; do | 
 | 5990 |   { { ac_try="$ac_compiler $ac_option >&5" | 
 | 5991 | case "(($ac_try" in | 
 | 5992 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 5993 |   *) ac_try_echo=$ac_try;; | 
 | 5994 | esac | 
 | 5995 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 5996 | $as_echo "$ac_try_echo"; } >&5 | 
 | 5997 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
 | 5998 |   ac_status=$? | 
 | 5999 |   if test -s conftest.err; then | 
 | 6000 |     sed '10a\ | 
 | 6001 | ... rest of stderr output deleted ... | 
 | 6002 |          10q' conftest.err >conftest.er1 | 
 | 6003 |     cat conftest.er1 >&5 | 
 | 6004 |   fi | 
 | 6005 |   rm -f conftest.er1 conftest.err | 
 | 6006 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 6007 |   test $ac_status = 0; } | 
 | 6008 | done | 
 | 6009 |  | 
 | 6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
 | 6011 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6012 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6013 |   $as_echo_n "(cached) " >&6 | 
 | 6014 | else | 
 | 6015 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6016 | /* end confdefs.h.  */ | 
 | 6017 |  | 
 | 6018 | int | 
 | 6019 | main () | 
 | 6020 | { | 
 | 6021 | #ifndef __GNUC__ | 
 | 6022 |        choke me | 
 | 6023 | #endif | 
 | 6024 |  | 
 | 6025 |   ; | 
 | 6026 |   return 0; | 
 | 6027 | } | 
 | 6028 | _ACEOF | 
 | 6029 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6030 |   ac_compiler_gnu=yes | 
 | 6031 | else | 
 | 6032 |   ac_compiler_gnu=no | 
 | 6033 | fi | 
 | 6034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6035 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
 | 6036 |  | 
 | 6037 | fi | 
 | 6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
 | 6039 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
 | 6040 | if test $ac_compiler_gnu = yes; then | 
 | 6041 |   GCC=yes | 
 | 6042 | else | 
 | 6043 |   GCC= | 
 | 6044 | fi | 
 | 6045 | ac_test_CFLAGS=${CFLAGS+set} | 
 | 6046 | ac_save_CFLAGS=$CFLAGS | 
 | 6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
 | 6048 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6049 | if ${ac_cv_prog_cc_g+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6050 |   $as_echo_n "(cached) " >&6 | 
 | 6051 | else | 
 | 6052 |   ac_save_c_werror_flag=$ac_c_werror_flag | 
 | 6053 |    ac_c_werror_flag=yes | 
 | 6054 |    ac_cv_prog_cc_g=no | 
 | 6055 |    CFLAGS="-g" | 
 | 6056 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6057 | /* end confdefs.h.  */ | 
 | 6058 |  | 
 | 6059 | int | 
 | 6060 | main () | 
 | 6061 | { | 
 | 6062 |  | 
 | 6063 |   ; | 
 | 6064 |   return 0; | 
 | 6065 | } | 
 | 6066 | _ACEOF | 
 | 6067 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6068 |   ac_cv_prog_cc_g=yes | 
 | 6069 | else | 
 | 6070 |   CFLAGS="" | 
 | 6071 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6072 | /* end confdefs.h.  */ | 
 | 6073 |  | 
 | 6074 | int | 
 | 6075 | main () | 
 | 6076 | { | 
 | 6077 |  | 
 | 6078 |   ; | 
 | 6079 |   return 0; | 
 | 6080 | } | 
 | 6081 | _ACEOF | 
 | 6082 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6083 |  | 
 | 6084 | else | 
 | 6085 |   ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 6086 | 	 CFLAGS="-g" | 
 | 6087 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6088 | /* end confdefs.h.  */ | 
 | 6089 |  | 
 | 6090 | int | 
 | 6091 | main () | 
 | 6092 | { | 
 | 6093 |  | 
 | 6094 |   ; | 
 | 6095 |   return 0; | 
 | 6096 | } | 
 | 6097 | _ACEOF | 
 | 6098 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6099 |   ac_cv_prog_cc_g=yes | 
 | 6100 | fi | 
 | 6101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6102 | fi | 
 | 6103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6104 | fi | 
 | 6105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6106 |    ac_c_werror_flag=$ac_save_c_werror_flag | 
 | 6107 | fi | 
 | 6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
 | 6109 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
 | 6110 | if test "$ac_test_CFLAGS" = set; then | 
 | 6111 |   CFLAGS=$ac_save_CFLAGS | 
 | 6112 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 6113 |   if test "$GCC" = yes; then | 
 | 6114 |     CFLAGS="-g -O2" | 
 | 6115 |   else | 
 | 6116 |     CFLAGS="-g" | 
 | 6117 |   fi | 
 | 6118 | else | 
 | 6119 |   if test "$GCC" = yes; then | 
 | 6120 |     CFLAGS="-O2" | 
 | 6121 |   else | 
 | 6122 |     CFLAGS= | 
 | 6123 |   fi | 
 | 6124 | fi | 
 | 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
 | 6126 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6127 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6128 |   $as_echo_n "(cached) " >&6 | 
 | 6129 | else | 
 | 6130 |   ac_cv_prog_cc_c89=no | 
 | 6131 | ac_save_CC=$CC | 
 | 6132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6133 | /* end confdefs.h.  */ | 
 | 6134 | #include <stdarg.h> | 
 | 6135 | #include <stdio.h> | 
 | 6136 | #include <sys/types.h> | 
 | 6137 | #include <sys/stat.h> | 
 | 6138 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 6139 | struct buf { int x; }; | 
 | 6140 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 6141 | static char *e (p, i) | 
 | 6142 |      char **p; | 
 | 6143 |      int i; | 
 | 6144 | { | 
 | 6145 |   return p[i]; | 
 | 6146 | } | 
 | 6147 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 6148 | { | 
 | 6149 |   char *s; | 
 | 6150 |   va_list v; | 
 | 6151 |   va_start (v,p); | 
 | 6152 |   s = g (p, va_arg (v,int)); | 
 | 6153 |   va_end (v); | 
 | 6154 |   return s; | 
 | 6155 | } | 
 | 6156 |  | 
 | 6157 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 6158 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 6159 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 6160 |    as 'x'.  The following induces an error, until -std is added to get | 
 | 6161 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 6162 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 6163 |    that's true only with -std.  */ | 
 | 6164 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 6165 |  | 
 | 6166 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 6167 |    inside strings and character constants.  */ | 
 | 6168 | #define FOO(x) 'x' | 
 | 6169 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 6170 |  | 
 | 6171 | int test (int i, double x); | 
 | 6172 | struct s1 {int (*f) (int a);}; | 
 | 6173 | struct s2 {int (*f) (double a);}; | 
 | 6174 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 6175 | int argc; | 
 | 6176 | char **argv; | 
 | 6177 | int | 
 | 6178 | main () | 
 | 6179 | { | 
 | 6180 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 6181 |   ; | 
 | 6182 |   return 0; | 
 | 6183 | } | 
 | 6184 | _ACEOF | 
 | 6185 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 6186 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 6187 | do | 
 | 6188 |   CC="$ac_save_CC $ac_arg" | 
 | 6189 |   if ac_fn_c_try_compile "$LINENO"; then : | 
 | 6190 |   ac_cv_prog_cc_c89=$ac_arg | 
 | 6191 | fi | 
 | 6192 | rm -f core conftest.err conftest.$ac_objext | 
 | 6193 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
 | 6194 | done | 
 | 6195 | rm -f conftest.$ac_ext | 
 | 6196 | CC=$ac_save_CC | 
 | 6197 |  | 
 | 6198 | fi | 
 | 6199 | # AC_CACHE_VAL | 
 | 6200 | case "x$ac_cv_prog_cc_c89" in | 
 | 6201 |   x) | 
 | 6202 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 6203 | $as_echo "none needed" >&6; } ;; | 
 | 6204 |   xno) | 
 | 6205 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 6206 | $as_echo "unsupported" >&6; } ;; | 
 | 6207 |   *) | 
 | 6208 |     CC="$CC $ac_cv_prog_cc_c89" | 
 | 6209 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
 | 6210 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
 | 6211 | esac | 
 | 6212 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
 | 6213 |  | 
 | 6214 | fi | 
 | 6215 |  | 
 | 6216 | ac_ext=c | 
 | 6217 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6221 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6222 | depcc="$CC"   am_compiler_list= | 
 | 6223 |  | 
 | 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
 | 6225 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6226 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6227 |   $as_echo_n "(cached) " >&6 | 
 | 6228 | else | 
 | 6229 |   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
 | 6230 |   # We make a subdir and do the tests there.  Otherwise we can end up | 
 | 6231 |   # making bogus files that we don't know about and never remove.  For | 
 | 6232 |   # instance it was reported that on HP-UX the gcc test will end up | 
 | 6233 |   # making a dummy file named `D' -- because `-MD' means `put the output | 
 | 6234 |   # in D'. | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6235 |   rm -rf conftest.dir | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6236 |   mkdir conftest.dir | 
 | 6237 |   # Copy depcomp to subdir because otherwise we won't find it if we're | 
 | 6238 |   # using a relative directory. | 
 | 6239 |   cp "$am_depcomp" conftest.dir | 
 | 6240 |   cd conftest.dir | 
 | 6241 |   # We will build objects and dependencies in a subdirectory because | 
 | 6242 |   # it helps to detect inapplicable dependency modes.  For instance | 
 | 6243 |   # both Tru64's cc and ICC support -MD to output dependencies as a | 
 | 6244 |   # side effect of compilation, but ICC will put the dependencies in | 
 | 6245 |   # the current directory while Tru64 will put them in the object | 
 | 6246 |   # directory. | 
 | 6247 |   mkdir sub | 
 | 6248 |  | 
 | 6249 |   am_cv_CC_dependencies_compiler_type=none | 
 | 6250 |   if test "$am_compiler_list" = ""; then | 
 | 6251 |      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
 | 6252 |   fi | 
 | 6253 |   am__universal=false | 
 | 6254 |   case " $depcc " in #( | 
 | 6255 |      *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
 | 6256 |      esac | 
 | 6257 |  | 
 | 6258 |   for depmode in $am_compiler_list; do | 
 | 6259 |     # Setup a source with many dependencies, because some compilers | 
 | 6260 |     # like to wrap large dependency lists on column 80 (with \), and | 
 | 6261 |     # we should not choose a depcomp mode which is confused by this. | 
 | 6262 |     # | 
 | 6263 |     # We need to recreate these files for each test, as the compiler may | 
 | 6264 |     # overwrite some of them when testing with obscure command lines. | 
 | 6265 |     # This happens at least with the AIX C compiler. | 
 | 6266 |     : > sub/conftest.c | 
 | 6267 |     for i in 1 2 3 4 5 6; do | 
 | 6268 |       echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
 | 6269 |       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
 | 6270 |       # Solaris 8's {/usr,}/bin/sh. | 
 | 6271 |       touch sub/conftst$i.h | 
 | 6272 |     done | 
 | 6273 |     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
 | 6274 |  | 
 | 6275 |     # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
 | 6276 |     # mode.  It turns out that the SunPro C++ compiler does not properly | 
 | 6277 |     # handle `-M -o', and we need to detect this.  Also, some Intel | 
 | 6278 |     # versions had trouble with output in subdirs | 
 | 6279 |     am__obj=sub/conftest.${OBJEXT-o} | 
 | 6280 |     am__minus_obj="-o $am__obj" | 
 | 6281 |     case $depmode in | 
 | 6282 |     gcc) | 
 | 6283 |       # This depmode causes a compiler race in universal mode. | 
 | 6284 |       test "$am__universal" = false || continue | 
 | 6285 |       ;; | 
 | 6286 |     nosideeffect) | 
 | 6287 |       # after this tag, mechanisms are not by side-effect, so they'll | 
 | 6288 |       # only be used when explicitly requested | 
 | 6289 |       if test "x$enable_dependency_tracking" = xyes; then | 
 | 6290 | 	continue | 
 | 6291 |       else | 
 | 6292 | 	break | 
 | 6293 |       fi | 
 | 6294 |       ;; | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6295 |     msvc7 | msvc7msys | msvisualcpp | msvcmsys) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6296 |       # This compiler won't grok `-c -o', but also, the minuso test has | 
 | 6297 |       # not run yet.  These depmodes are late enough in the game, and | 
 | 6298 |       # so weak that their functioning should not be impacted. | 
 | 6299 |       am__obj=conftest.${OBJEXT-o} | 
 | 6300 |       am__minus_obj= | 
 | 6301 |       ;; | 
 | 6302 |     none) break ;; | 
 | 6303 |     esac | 
 | 6304 |     if depmode=$depmode \ | 
 | 6305 |        source=sub/conftest.c object=$am__obj \ | 
 | 6306 |        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
 | 6307 |        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
 | 6308 |          >/dev/null 2>conftest.err && | 
 | 6309 |        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 6310 |        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 6311 |        grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
 | 6312 |        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
 | 6313 |       # icc doesn't choke on unknown options, it will just issue warnings | 
 | 6314 |       # or remarks (even with -Werror).  So we grep stderr for any message | 
 | 6315 |       # that says an option was ignored or not supported. | 
 | 6316 |       # When given -MP, icc 7.0 and 7.1 complain thusly: | 
 | 6317 |       #   icc: Command line warning: ignoring option '-M'; no argument required | 
 | 6318 |       # The diagnosis changed in icc 8.0: | 
 | 6319 |       #   icc: Command line remark: option '-MP' not supported | 
 | 6320 |       if (grep 'ignoring option' conftest.err || | 
 | 6321 |           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
 | 6322 |         am_cv_CC_dependencies_compiler_type=$depmode | 
 | 6323 |         break | 
 | 6324 |       fi | 
 | 6325 |     fi | 
 | 6326 |   done | 
 | 6327 |  | 
 | 6328 |   cd .. | 
 | 6329 |   rm -rf conftest.dir | 
 | 6330 | else | 
 | 6331 |   am_cv_CC_dependencies_compiler_type=none | 
 | 6332 | fi | 
 | 6333 |  | 
 | 6334 | fi | 
 | 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
 | 6336 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
 | 6337 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
 | 6338 |  | 
 | 6339 |  if | 
 | 6340 |   test "x$enable_dependency_tracking" != xno \ | 
 | 6341 |   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
 | 6342 |   am__fastdepCC_TRUE= | 
 | 6343 |   am__fastdepCC_FALSE='#' | 
 | 6344 | else | 
 | 6345 |   am__fastdepCC_TRUE='#' | 
 | 6346 |   am__fastdepCC_FALSE= | 
 | 6347 | fi | 
 | 6348 |  | 
 | 6349 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6350 | ac_ext=cpp | 
 | 6351 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 6352 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6353 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6354 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 6355 | if test -z "$CXX"; then | 
 | 6356 |   if test -n "$CCC"; then | 
 | 6357 |     CXX=$CCC | 
 | 6358 |   else | 
 | 6359 |     if test -n "$ac_tool_prefix"; then | 
 | 6360 |   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
 | 6361 |   do | 
 | 6362 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 6363 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 6364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6365 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6366 | if ${ac_cv_prog_CXX+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6367 |   $as_echo_n "(cached) " >&6 | 
 | 6368 | else | 
 | 6369 |   if test -n "$CXX"; then | 
 | 6370 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 6371 | else | 
 | 6372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6373 | for as_dir in $PATH | 
 | 6374 | do | 
 | 6375 |   IFS=$as_save_IFS | 
 | 6376 |   test -z "$as_dir" && as_dir=. | 
 | 6377 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6378 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 6379 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
 | 6380 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6381 |     break 2 | 
 | 6382 |   fi | 
 | 6383 | done | 
 | 6384 |   done | 
 | 6385 | IFS=$as_save_IFS | 
 | 6386 |  | 
 | 6387 | fi | 
 | 6388 | fi | 
 | 6389 | CXX=$ac_cv_prog_CXX | 
 | 6390 | if test -n "$CXX"; then | 
 | 6391 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
 | 6392 | $as_echo "$CXX" >&6; } | 
 | 6393 | else | 
 | 6394 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6395 | $as_echo "no" >&6; } | 
 | 6396 | fi | 
 | 6397 |  | 
 | 6398 |  | 
 | 6399 |     test -n "$CXX" && break | 
 | 6400 |   done | 
 | 6401 | fi | 
 | 6402 | if test -z "$CXX"; then | 
 | 6403 |   ac_ct_CXX=$CXX | 
 | 6404 |   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
 | 6405 | do | 
 | 6406 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 6407 | set dummy $ac_prog; ac_word=$2 | 
 | 6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 6409 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6410 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6411 |   $as_echo_n "(cached) " >&6 | 
 | 6412 | else | 
 | 6413 |   if test -n "$ac_ct_CXX"; then | 
 | 6414 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 6415 | else | 
 | 6416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 6417 | for as_dir in $PATH | 
 | 6418 | do | 
 | 6419 |   IFS=$as_save_IFS | 
 | 6420 |   test -z "$as_dir" && as_dir=. | 
 | 6421 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 6422 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 6423 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
 | 6424 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 6425 |     break 2 | 
 | 6426 |   fi | 
 | 6427 | done | 
 | 6428 |   done | 
 | 6429 | IFS=$as_save_IFS | 
 | 6430 |  | 
 | 6431 | fi | 
 | 6432 | fi | 
 | 6433 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 6434 | if test -n "$ac_ct_CXX"; then | 
 | 6435 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
 | 6436 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 6437 | else | 
 | 6438 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 6439 | $as_echo "no" >&6; } | 
 | 6440 | fi | 
 | 6441 |  | 
 | 6442 |  | 
 | 6443 |   test -n "$ac_ct_CXX" && break | 
 | 6444 | done | 
 | 6445 |  | 
 | 6446 |   if test "x$ac_ct_CXX" = x; then | 
 | 6447 |     CXX="g++" | 
 | 6448 |   else | 
 | 6449 |     case $cross_compiling:$ac_tool_warned in | 
 | 6450 | yes:) | 
 | 6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 6452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 6453 | ac_tool_warned=yes ;; | 
 | 6454 | esac | 
 | 6455 |     CXX=$ac_ct_CXX | 
 | 6456 |   fi | 
 | 6457 | fi | 
 | 6458 |  | 
 | 6459 |   fi | 
 | 6460 | fi | 
 | 6461 | # Provide some information about the compiler. | 
 | 6462 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
 | 6463 | set X $ac_compile | 
 | 6464 | ac_compiler=$2 | 
 | 6465 | for ac_option in --version -v -V -qversion; do | 
 | 6466 |   { { ac_try="$ac_compiler $ac_option >&5" | 
 | 6467 | case "(($ac_try" in | 
 | 6468 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 6469 |   *) ac_try_echo=$ac_try;; | 
 | 6470 | esac | 
 | 6471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 6472 | $as_echo "$ac_try_echo"; } >&5 | 
 | 6473 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
 | 6474 |   ac_status=$? | 
 | 6475 |   if test -s conftest.err; then | 
 | 6476 |     sed '10a\ | 
 | 6477 | ... rest of stderr output deleted ... | 
 | 6478 |          10q' conftest.err >conftest.er1 | 
 | 6479 |     cat conftest.er1 >&5 | 
 | 6480 |   fi | 
 | 6481 |   rm -f conftest.er1 conftest.err | 
 | 6482 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 6483 |   test $ac_status = 0; } | 
 | 6484 | done | 
 | 6485 |  | 
 | 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | 
 | 6487 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6488 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6489 |   $as_echo_n "(cached) " >&6 | 
 | 6490 | else | 
 | 6491 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6492 | /* end confdefs.h.  */ | 
 | 6493 |  | 
 | 6494 | int | 
 | 6495 | main () | 
 | 6496 | { | 
 | 6497 | #ifndef __GNUC__ | 
 | 6498 |        choke me | 
 | 6499 | #endif | 
 | 6500 |  | 
 | 6501 |   ; | 
 | 6502 |   return 0; | 
 | 6503 | } | 
 | 6504 | _ACEOF | 
 | 6505 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 6506 |   ac_compiler_gnu=yes | 
 | 6507 | else | 
 | 6508 |   ac_compiler_gnu=no | 
 | 6509 | fi | 
 | 6510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6511 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 6512 |  | 
 | 6513 | fi | 
 | 6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | 
 | 6515 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
 | 6516 | if test $ac_compiler_gnu = yes; then | 
 | 6517 |   GXX=yes | 
 | 6518 | else | 
 | 6519 |   GXX= | 
 | 6520 | fi | 
 | 6521 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 6522 | ac_save_CXXFLAGS=$CXXFLAGS | 
 | 6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
 | 6524 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6525 | if ${ac_cv_prog_cxx_g+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6526 |   $as_echo_n "(cached) " >&6 | 
 | 6527 | else | 
 | 6528 |   ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
 | 6529 |    ac_cxx_werror_flag=yes | 
 | 6530 |    ac_cv_prog_cxx_g=no | 
 | 6531 |    CXXFLAGS="-g" | 
 | 6532 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6533 | /* end confdefs.h.  */ | 
 | 6534 |  | 
 | 6535 | int | 
 | 6536 | main () | 
 | 6537 | { | 
 | 6538 |  | 
 | 6539 |   ; | 
 | 6540 |   return 0; | 
 | 6541 | } | 
 | 6542 | _ACEOF | 
 | 6543 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 6544 |   ac_cv_prog_cxx_g=yes | 
 | 6545 | else | 
 | 6546 |   CXXFLAGS="" | 
 | 6547 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6548 | /* end confdefs.h.  */ | 
 | 6549 |  | 
 | 6550 | int | 
 | 6551 | main () | 
 | 6552 | { | 
 | 6553 |  | 
 | 6554 |   ; | 
 | 6555 |   return 0; | 
 | 6556 | } | 
 | 6557 | _ACEOF | 
 | 6558 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 6559 |  | 
 | 6560 | else | 
 | 6561 |   ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
 | 6562 | 	 CXXFLAGS="-g" | 
 | 6563 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 6564 | /* end confdefs.h.  */ | 
 | 6565 |  | 
 | 6566 | int | 
 | 6567 | main () | 
 | 6568 | { | 
 | 6569 |  | 
 | 6570 |   ; | 
 | 6571 |   return 0; | 
 | 6572 | } | 
 | 6573 | _ACEOF | 
 | 6574 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 6575 |   ac_cv_prog_cxx_g=yes | 
 | 6576 | fi | 
 | 6577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6578 | fi | 
 | 6579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6580 | fi | 
 | 6581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 6582 |    ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
 | 6583 | fi | 
 | 6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | 
 | 6585 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
 | 6586 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 6587 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 6588 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 6589 |   if test "$GXX" = yes; then | 
 | 6590 |     CXXFLAGS="-g -O2" | 
 | 6591 |   else | 
 | 6592 |     CXXFLAGS="-g" | 
 | 6593 |   fi | 
 | 6594 | else | 
 | 6595 |   if test "$GXX" = yes; then | 
 | 6596 |     CXXFLAGS="-O2" | 
 | 6597 |   else | 
 | 6598 |     CXXFLAGS= | 
 | 6599 |   fi | 
 | 6600 | fi | 
 | 6601 | ac_ext=c | 
 | 6602 | ac_cpp='$CPP $CPPFLAGS' | 
 | 6603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 6604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 6605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 6606 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6607 | depcc="$CXX"  am_compiler_list= | 
 | 6608 |  | 
 | 6609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
 | 6610 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6611 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6612 |   $as_echo_n "(cached) " >&6 | 
 | 6613 | else | 
 | 6614 |   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
 | 6615 |   # We make a subdir and do the tests there.  Otherwise we can end up | 
 | 6616 |   # making bogus files that we don't know about and never remove.  For | 
 | 6617 |   # instance it was reported that on HP-UX the gcc test will end up | 
 | 6618 |   # making a dummy file named `D' -- because `-MD' means `put the output | 
 | 6619 |   # in D'. | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6620 |   rm -rf conftest.dir | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6621 |   mkdir conftest.dir | 
 | 6622 |   # Copy depcomp to subdir because otherwise we won't find it if we're | 
 | 6623 |   # using a relative directory. | 
 | 6624 |   cp "$am_depcomp" conftest.dir | 
 | 6625 |   cd conftest.dir | 
 | 6626 |   # We will build objects and dependencies in a subdirectory because | 
 | 6627 |   # it helps to detect inapplicable dependency modes.  For instance | 
 | 6628 |   # both Tru64's cc and ICC support -MD to output dependencies as a | 
 | 6629 |   # side effect of compilation, but ICC will put the dependencies in | 
 | 6630 |   # the current directory while Tru64 will put them in the object | 
 | 6631 |   # directory. | 
 | 6632 |   mkdir sub | 
 | 6633 |  | 
 | 6634 |   am_cv_CXX_dependencies_compiler_type=none | 
 | 6635 |   if test "$am_compiler_list" = ""; then | 
 | 6636 |      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
 | 6637 |   fi | 
 | 6638 |   am__universal=false | 
 | 6639 |   case " $depcc " in #( | 
 | 6640 |      *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
 | 6641 |      esac | 
 | 6642 |  | 
 | 6643 |   for depmode in $am_compiler_list; do | 
 | 6644 |     # Setup a source with many dependencies, because some compilers | 
 | 6645 |     # like to wrap large dependency lists on column 80 (with \), and | 
 | 6646 |     # we should not choose a depcomp mode which is confused by this. | 
 | 6647 |     # | 
 | 6648 |     # We need to recreate these files for each test, as the compiler may | 
 | 6649 |     # overwrite some of them when testing with obscure command lines. | 
 | 6650 |     # This happens at least with the AIX C compiler. | 
 | 6651 |     : > sub/conftest.c | 
 | 6652 |     for i in 1 2 3 4 5 6; do | 
 | 6653 |       echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
 | 6654 |       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
 | 6655 |       # Solaris 8's {/usr,}/bin/sh. | 
 | 6656 |       touch sub/conftst$i.h | 
 | 6657 |     done | 
 | 6658 |     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
 | 6659 |  | 
 | 6660 |     # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
 | 6661 |     # mode.  It turns out that the SunPro C++ compiler does not properly | 
 | 6662 |     # handle `-M -o', and we need to detect this.  Also, some Intel | 
 | 6663 |     # versions had trouble with output in subdirs | 
 | 6664 |     am__obj=sub/conftest.${OBJEXT-o} | 
 | 6665 |     am__minus_obj="-o $am__obj" | 
 | 6666 |     case $depmode in | 
 | 6667 |     gcc) | 
 | 6668 |       # This depmode causes a compiler race in universal mode. | 
 | 6669 |       test "$am__universal" = false || continue | 
 | 6670 |       ;; | 
 | 6671 |     nosideeffect) | 
 | 6672 |       # after this tag, mechanisms are not by side-effect, so they'll | 
 | 6673 |       # only be used when explicitly requested | 
 | 6674 |       if test "x$enable_dependency_tracking" = xyes; then | 
 | 6675 | 	continue | 
 | 6676 |       else | 
 | 6677 | 	break | 
 | 6678 |       fi | 
 | 6679 |       ;; | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6680 |     msvc7 | msvc7msys | msvisualcpp | msvcmsys) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6681 |       # This compiler won't grok `-c -o', but also, the minuso test has | 
 | 6682 |       # not run yet.  These depmodes are late enough in the game, and | 
 | 6683 |       # so weak that their functioning should not be impacted. | 
 | 6684 |       am__obj=conftest.${OBJEXT-o} | 
 | 6685 |       am__minus_obj= | 
 | 6686 |       ;; | 
 | 6687 |     none) break ;; | 
 | 6688 |     esac | 
 | 6689 |     if depmode=$depmode \ | 
 | 6690 |        source=sub/conftest.c object=$am__obj \ | 
 | 6691 |        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
 | 6692 |        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
 | 6693 |          >/dev/null 2>conftest.err && | 
 | 6694 |        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 6695 |        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 6696 |        grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
 | 6697 |        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
 | 6698 |       # icc doesn't choke on unknown options, it will just issue warnings | 
 | 6699 |       # or remarks (even with -Werror).  So we grep stderr for any message | 
 | 6700 |       # that says an option was ignored or not supported. | 
 | 6701 |       # When given -MP, icc 7.0 and 7.1 complain thusly: | 
 | 6702 |       #   icc: Command line warning: ignoring option '-M'; no argument required | 
 | 6703 |       # The diagnosis changed in icc 8.0: | 
 | 6704 |       #   icc: Command line remark: option '-MP' not supported | 
 | 6705 |       if (grep 'ignoring option' conftest.err || | 
 | 6706 |           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
 | 6707 |         am_cv_CXX_dependencies_compiler_type=$depmode | 
 | 6708 |         break | 
 | 6709 |       fi | 
 | 6710 |     fi | 
 | 6711 |   done | 
 | 6712 |  | 
 | 6713 |   cd .. | 
 | 6714 |   rm -rf conftest.dir | 
 | 6715 | else | 
 | 6716 |   am_cv_CXX_dependencies_compiler_type=none | 
 | 6717 | fi | 
 | 6718 |  | 
 | 6719 | fi | 
 | 6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
 | 6721 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
 | 6722 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
 | 6723 |  | 
 | 6724 |  if | 
 | 6725 |   test "x$enable_dependency_tracking" != xno \ | 
 | 6726 |   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
 | 6727 |   am__fastdepCXX_TRUE= | 
 | 6728 |   am__fastdepCXX_FALSE='#' | 
 | 6729 | else | 
 | 6730 |   am__fastdepCXX_TRUE='#' | 
 | 6731 |   am__fastdepCXX_FALSE= | 
 | 6732 | fi | 
 | 6733 |  | 
 | 6734 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6735 |    case $ac_cv_prog_cc_stdc in #( | 
 | 6736 |   no) : | 
 | 6737 |     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | 
 | 6738 |   *) : | 
 | 6739 |     { $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] | 6740 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6741 | if ${ac_cv_prog_cc_c99+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6742 |   $as_echo_n "(cached) " >&6 | 
 | 6743 | else | 
 | 6744 |   ac_cv_prog_cc_c99=no | 
 | 6745 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6747 | /* end confdefs.h.  */ | 
 | 6748 | #include <stdarg.h> | 
 | 6749 | #include <stdbool.h> | 
 | 6750 | #include <stdlib.h> | 
 | 6751 | #include <wchar.h> | 
 | 6752 | #include <stdio.h> | 
 | 6753 |  | 
 | 6754 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
 | 6755 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
 | 6756 | #define showlist(...) puts (#__VA_ARGS__) | 
 | 6757 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
 | 6758 | static void | 
 | 6759 | test_varargs_macros (void) | 
 | 6760 | { | 
 | 6761 |   int x = 1234; | 
 | 6762 |   int y = 5678; | 
 | 6763 |   debug ("Flag"); | 
 | 6764 |   debug ("X = %d\n", x); | 
 | 6765 |   showlist (The first, second, and third items.); | 
 | 6766 |   report (x>y, "x is %d but y is %d", x, y); | 
 | 6767 | } | 
 | 6768 |  | 
 | 6769 | // Check long long types. | 
 | 6770 | #define BIG64 18446744073709551615ull | 
 | 6771 | #define BIG32 4294967295ul | 
 | 6772 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
 | 6773 | #if !BIG_OK | 
 | 6774 |   your preprocessor is broken; | 
 | 6775 | #endif | 
 | 6776 | #if BIG_OK | 
 | 6777 | #else | 
 | 6778 |   your preprocessor is broken; | 
 | 6779 | #endif | 
 | 6780 | static long long int bignum = -9223372036854775807LL; | 
 | 6781 | static unsigned long long int ubignum = BIG64; | 
 | 6782 |  | 
 | 6783 | struct incomplete_array | 
 | 6784 | { | 
 | 6785 |   int datasize; | 
 | 6786 |   double data[]; | 
 | 6787 | }; | 
 | 6788 |  | 
 | 6789 | struct named_init { | 
 | 6790 |   int number; | 
 | 6791 |   const wchar_t *name; | 
 | 6792 |   double average; | 
 | 6793 | }; | 
 | 6794 |  | 
 | 6795 | typedef const char *ccp; | 
 | 6796 |  | 
 | 6797 | static inline int | 
 | 6798 | test_restrict (ccp restrict text) | 
 | 6799 | { | 
 | 6800 |   // See if C++-style comments work. | 
 | 6801 |   // Iterate through items via the restricted pointer. | 
 | 6802 |   // Also check for declarations in for loops. | 
 | 6803 |   for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
 | 6804 |     continue; | 
 | 6805 |   return 0; | 
 | 6806 | } | 
 | 6807 |  | 
 | 6808 | // Check varargs and va_copy. | 
 | 6809 | static void | 
 | 6810 | test_varargs (const char *format, ...) | 
 | 6811 | { | 
 | 6812 |   va_list args; | 
 | 6813 |   va_start (args, format); | 
 | 6814 |   va_list args_copy; | 
 | 6815 |   va_copy (args_copy, args); | 
 | 6816 |  | 
 | 6817 |   const char *str; | 
 | 6818 |   int number; | 
 | 6819 |   float fnumber; | 
 | 6820 |  | 
 | 6821 |   while (*format) | 
 | 6822 |     { | 
 | 6823 |       switch (*format++) | 
 | 6824 | 	{ | 
 | 6825 | 	case 's': // string | 
 | 6826 | 	  str = va_arg (args_copy, const char *); | 
 | 6827 | 	  break; | 
 | 6828 | 	case 'd': // int | 
 | 6829 | 	  number = va_arg (args_copy, int); | 
 | 6830 | 	  break; | 
 | 6831 | 	case 'f': // float | 
 | 6832 | 	  fnumber = va_arg (args_copy, double); | 
 | 6833 | 	  break; | 
 | 6834 | 	default: | 
 | 6835 | 	  break; | 
 | 6836 | 	} | 
 | 6837 |     } | 
 | 6838 |   va_end (args_copy); | 
 | 6839 |   va_end (args); | 
 | 6840 | } | 
 | 6841 |  | 
 | 6842 | int | 
 | 6843 | main () | 
 | 6844 | { | 
 | 6845 |  | 
 | 6846 |   // Check bool. | 
 | 6847 |   _Bool success = false; | 
 | 6848 |  | 
 | 6849 |   // Check restrict. | 
 | 6850 |   if (test_restrict ("String literal") == 0) | 
 | 6851 |     success = true; | 
 | 6852 |   char *restrict newvar = "Another string"; | 
 | 6853 |  | 
 | 6854 |   // Check varargs. | 
 | 6855 |   test_varargs ("s, d' f .", "string", 65, 34.234); | 
 | 6856 |   test_varargs_macros (); | 
 | 6857 |  | 
 | 6858 |   // Check flexible array members. | 
 | 6859 |   struct incomplete_array *ia = | 
 | 6860 |     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
 | 6861 |   ia->datasize = 10; | 
 | 6862 |   for (int i = 0; i < ia->datasize; ++i) | 
 | 6863 |     ia->data[i] = i * 1.234; | 
 | 6864 |  | 
 | 6865 |   // Check named initializers. | 
 | 6866 |   struct named_init ni = { | 
 | 6867 |     .number = 34, | 
 | 6868 |     .name = L"Test wide string", | 
 | 6869 |     .average = 543.34343, | 
 | 6870 |   }; | 
 | 6871 |  | 
 | 6872 |   ni.number = 58; | 
 | 6873 |  | 
 | 6874 |   int dynamic_array[ni.number]; | 
 | 6875 |   dynamic_array[ni.number - 1] = 543; | 
 | 6876 |  | 
 | 6877 |   // work around unused variable warnings | 
 | 6878 |   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
 | 6879 | 	  || dynamic_array[ni.number - 1] != 543); | 
 | 6880 |  | 
 | 6881 |   ; | 
 | 6882 |   return 0; | 
 | 6883 | } | 
 | 6884 | _ACEOF | 
 | 6885 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
 | 6886 | do | 
 | 6887 |   CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6888 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6889 |   ac_cv_prog_cc_c99=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6890 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6891 | rm -f core conftest.err conftest.$ac_objext | 
 | 6892 |   test "x$ac_cv_prog_cc_c99" != "xno" && break | 
 | 6893 | done | 
 | 6894 | rm -f conftest.$ac_ext | 
 | 6895 | CC=$ac_save_CC | 
 | 6896 |  | 
 | 6897 | fi | 
 | 6898 | # AC_CACHE_VAL | 
 | 6899 | case "x$ac_cv_prog_cc_c99" in | 
 | 6900 |   x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6901 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6902 | $as_echo "none needed" >&6; } ;; | 
 | 6903 |   xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6904 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6905 | $as_echo "unsupported" >&6; } ;; | 
 | 6906 |   *) | 
 | 6907 |     CC="$CC $ac_cv_prog_cc_c99" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6908 |     { $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] | 6909 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
 | 6910 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6911 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6912 |   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | 
 | 6913 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6914 |   { $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] | 6915 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6916 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6917 |   $as_echo_n "(cached) " >&6 | 
 | 6918 | else | 
 | 6919 |   ac_cv_prog_cc_c89=no | 
 | 6920 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6922 | /* end confdefs.h.  */ | 
 | 6923 | #include <stdarg.h> | 
 | 6924 | #include <stdio.h> | 
 | 6925 | #include <sys/types.h> | 
 | 6926 | #include <sys/stat.h> | 
 | 6927 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
 | 6928 | struct buf { int x; }; | 
 | 6929 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
 | 6930 | static char *e (p, i) | 
 | 6931 |      char **p; | 
 | 6932 |      int i; | 
 | 6933 | { | 
 | 6934 |   return p[i]; | 
 | 6935 | } | 
 | 6936 | static char *f (char * (*g) (char **, int), char **p, ...) | 
 | 6937 | { | 
 | 6938 |   char *s; | 
 | 6939 |   va_list v; | 
 | 6940 |   va_start (v,p); | 
 | 6941 |   s = g (p, va_arg (v,int)); | 
 | 6942 |   va_end (v); | 
 | 6943 |   return s; | 
 | 6944 | } | 
 | 6945 |  | 
 | 6946 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
 | 6947 |    function prototypes and stuff, but not '\xHH' hex character constants. | 
 | 6948 |    These don't provoke an error unfortunately, instead are silently treated | 
 | 6949 |    as 'x'.  The following induces an error, until -std is added to get | 
 | 6950 |    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
 | 6951 |    array size at least.  It's necessary to write '\x00'==0 to get something | 
 | 6952 |    that's true only with -std.  */ | 
 | 6953 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
 | 6954 |  | 
 | 6955 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
 | 6956 |    inside strings and character constants.  */ | 
 | 6957 | #define FOO(x) 'x' | 
 | 6958 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
 | 6959 |  | 
 | 6960 | int test (int i, double x); | 
 | 6961 | struct s1 {int (*f) (int a);}; | 
 | 6962 | struct s2 {int (*f) (double a);}; | 
 | 6963 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
 | 6964 | int argc; | 
 | 6965 | char **argv; | 
 | 6966 | int | 
 | 6967 | main () | 
 | 6968 | { | 
 | 6969 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
 | 6970 |   ; | 
 | 6971 |   return 0; | 
 | 6972 | } | 
 | 6973 | _ACEOF | 
 | 6974 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
 | 6975 | 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
 | 6976 | do | 
 | 6977 |   CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6978 |   if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6979 |   ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6980 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6981 | rm -f core conftest.err conftest.$ac_objext | 
 | 6982 |   test "x$ac_cv_prog_cc_c89" != "xno" && break | 
 | 6983 | done | 
 | 6984 | rm -f conftest.$ac_ext | 
 | 6985 | CC=$ac_save_CC | 
 | 6986 |  | 
 | 6987 | fi | 
 | 6988 | # AC_CACHE_VAL | 
 | 6989 | case "x$ac_cv_prog_cc_c89" in | 
 | 6990 |   x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6991 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6992 | $as_echo "none needed" >&6; } ;; | 
 | 6993 |   xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6994 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6995 | $as_echo "unsupported" >&6; } ;; | 
 | 6996 |   *) | 
 | 6997 |     CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6998 |     { $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] | 6999 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
 | 7000 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7001 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7002 |   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | 
 | 7003 | else | 
 | 7004 |   ac_cv_prog_cc_stdc=no | 
 | 7005 | fi | 
 | 7006 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7007 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7008 |  ;; | 
 | 7009 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7010 |   { $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] | 7011 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7012 |   if ${ac_cv_prog_cc_stdc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7013 |   $as_echo_n "(cached) " >&6 | 
 | 7014 | fi | 
 | 7015 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7016 |   case $ac_cv_prog_cc_stdc in #( | 
 | 7017 |   no) : | 
 | 7018 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 7019 | $as_echo "unsupported" >&6; } ;; #( | 
 | 7020 |   '') : | 
 | 7021 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 7022 | $as_echo "none needed" >&6; } ;; #( | 
 | 7023 |   *) : | 
 | 7024 |     { $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] | 7025 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | 
 | 7026 | esac | 
 | 7027 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7028 | ac_ext=c | 
 | 7029 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7033 | { $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] | 7034 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
 | 7035 | # On Suns, sometimes $CPP names a directory. | 
 | 7036 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 7037 |   CPP= | 
 | 7038 | fi | 
 | 7039 | if test -z "$CPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7040 |   if ${ac_cv_prog_CPP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7041 |   $as_echo_n "(cached) " >&6 | 
 | 7042 | else | 
 | 7043 |       # Double quotes because CPP needs to be expanded | 
 | 7044 |     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
 | 7045 |     do | 
 | 7046 |       ac_preproc_ok=false | 
 | 7047 | for ac_c_preproc_warn_flag in '' yes | 
 | 7048 | do | 
 | 7049 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 7050 |   # with a fresh cross-compiler works. | 
 | 7051 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7052 |   # <limits.h> exists even on freestanding compilers. | 
 | 7053 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 7054 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7055 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7056 | /* end confdefs.h.  */ | 
 | 7057 | #ifdef __STDC__ | 
 | 7058 | # include <limits.h> | 
 | 7059 | #else | 
 | 7060 | # include <assert.h> | 
 | 7061 | #endif | 
 | 7062 | 		     Syntax error | 
 | 7063 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7064 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7065 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7066 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7067 |   # Broken: fails on valid input. | 
 | 7068 | continue | 
 | 7069 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7070 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7071 |  | 
 | 7072 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 7073 |   # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7074 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7075 | /* end confdefs.h.  */ | 
 | 7076 | #include <ac_nonexistent.h> | 
 | 7077 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7078 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7079 |   # Broken: success on invalid input. | 
 | 7080 | continue | 
 | 7081 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7082 |   # Passes both tests. | 
 | 7083 | ac_preproc_ok=: | 
 | 7084 | break | 
 | 7085 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7086 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7087 |  | 
 | 7088 | done | 
 | 7089 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7090 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7091 | if $ac_preproc_ok; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7092 |   break | 
 | 7093 | fi | 
 | 7094 |  | 
 | 7095 |     done | 
 | 7096 |     ac_cv_prog_CPP=$CPP | 
 | 7097 |  | 
 | 7098 | fi | 
 | 7099 |   CPP=$ac_cv_prog_CPP | 
 | 7100 | else | 
 | 7101 |   ac_cv_prog_CPP=$CPP | 
 | 7102 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7104 | $as_echo "$CPP" >&6; } | 
 | 7105 | ac_preproc_ok=false | 
 | 7106 | for ac_c_preproc_warn_flag in '' yes | 
 | 7107 | do | 
 | 7108 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 7109 |   # with a fresh cross-compiler works. | 
 | 7110 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 7111 |   # <limits.h> exists even on freestanding compilers. | 
 | 7112 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 7113 |   # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7114 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7115 | /* end confdefs.h.  */ | 
 | 7116 | #ifdef __STDC__ | 
 | 7117 | # include <limits.h> | 
 | 7118 | #else | 
 | 7119 | # include <assert.h> | 
 | 7120 | #endif | 
 | 7121 | 		     Syntax error | 
 | 7122 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7123 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7124 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7125 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7126 |   # Broken: fails on valid input. | 
 | 7127 | continue | 
 | 7128 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7129 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7130 |  | 
 | 7131 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 7132 |   # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7133 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7134 | /* end confdefs.h.  */ | 
 | 7135 | #include <ac_nonexistent.h> | 
 | 7136 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7137 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7138 |   # Broken: success on invalid input. | 
 | 7139 | continue | 
 | 7140 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7141 |   # Passes both tests. | 
 | 7142 | ac_preproc_ok=: | 
 | 7143 | break | 
 | 7144 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7145 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7146 |  | 
 | 7147 | done | 
 | 7148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7149 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7150 | if $ac_preproc_ok; then : | 
 | 7151 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7152 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7153 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7155 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
 | 7156 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7157 | fi | 
 | 7158 |  | 
 | 7159 | ac_ext=c | 
 | 7160 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 7164 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
 | 7166 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7167 | if ${ac_cv_path_SED+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7168 |   $as_echo_n "(cached) " >&6 | 
 | 7169 | else | 
 | 7170 |             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
 | 7171 |      for ac_i in 1 2 3 4 5 6 7; do | 
 | 7172 |        ac_script="$ac_script$as_nl$ac_script" | 
 | 7173 |      done | 
 | 7174 |      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
 | 7175 |      { ac_script=; unset ac_script;} | 
 | 7176 |      if test -z "$SED"; then | 
 | 7177 |   ac_path_SED_found=false | 
 | 7178 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 7179 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7180 | for as_dir in $PATH | 
 | 7181 | do | 
 | 7182 |   IFS=$as_save_IFS | 
 | 7183 |   test -z "$as_dir" && as_dir=. | 
 | 7184 |     for ac_prog in sed gsed; do | 
 | 7185 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7186 |       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
 | 7187 |       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | 
 | 7188 | # Check for GNU ac_path_SED and select it if it is found. | 
 | 7189 |   # Check for GNU $ac_path_SED | 
 | 7190 | case `"$ac_path_SED" --version 2>&1` in | 
 | 7191 | *GNU*) | 
 | 7192 |   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
 | 7193 | *) | 
 | 7194 |   ac_count=0 | 
 | 7195 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 7196 |   while : | 
 | 7197 |   do | 
 | 7198 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 7199 |     mv "conftest.tmp" "conftest.in" | 
 | 7200 |     cp "conftest.in" "conftest.nl" | 
 | 7201 |     $as_echo '' >> "conftest.nl" | 
 | 7202 |     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 7203 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 7204 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 7205 |     if test $ac_count -gt ${ac_path_SED_max-0}; then | 
 | 7206 |       # Best one so far, save it but keep looking for a better one | 
 | 7207 |       ac_cv_path_SED="$ac_path_SED" | 
 | 7208 |       ac_path_SED_max=$ac_count | 
 | 7209 |     fi | 
 | 7210 |     # 10*(2^10) chars as input seems more than enough | 
 | 7211 |     test $ac_count -gt 10 && break | 
 | 7212 |   done | 
 | 7213 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 7214 | esac | 
 | 7215 |  | 
 | 7216 |       $ac_path_SED_found && break 3 | 
 | 7217 |     done | 
 | 7218 |   done | 
 | 7219 |   done | 
 | 7220 | IFS=$as_save_IFS | 
 | 7221 |   if test -z "$ac_cv_path_SED"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7222 |     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7223 |   fi | 
 | 7224 | else | 
 | 7225 |   ac_cv_path_SED=$SED | 
 | 7226 | fi | 
 | 7227 |  | 
 | 7228 | fi | 
 | 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
 | 7230 | $as_echo "$ac_cv_path_SED" >&6; } | 
 | 7231 |  SED="$ac_cv_path_SED" | 
 | 7232 |   rm -f conftest.sed | 
 | 7233 |  | 
 | 7234 | test -z "$SED" && SED=sed | 
 | 7235 | Xsed="$SED -e 1s/^X//" | 
 | 7236 |  | 
 | 7237 |  | 
 | 7238 |  | 
 | 7239 |  | 
 | 7240 |  | 
 | 7241 |  | 
 | 7242 |  | 
 | 7243 |  | 
 | 7244 |  | 
 | 7245 |  | 
 | 7246 |  | 
 | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | 
 | 7248 | $as_echo_n "checking for fgrep... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7249 | if ${ac_cv_path_FGREP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7250 |   $as_echo_n "(cached) " >&6 | 
 | 7251 | else | 
 | 7252 |   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | 
 | 7253 |    then ac_cv_path_FGREP="$GREP -F" | 
 | 7254 |    else | 
 | 7255 |      if test -z "$FGREP"; then | 
 | 7256 |   ac_path_FGREP_found=false | 
 | 7257 |   # Loop through the user's path and test for each of PROGNAME-LIST | 
 | 7258 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7259 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
 | 7260 | do | 
 | 7261 |   IFS=$as_save_IFS | 
 | 7262 |   test -z "$as_dir" && as_dir=. | 
 | 7263 |     for ac_prog in fgrep; do | 
 | 7264 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7265 |       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | 
 | 7266 |       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | 
 | 7267 | # Check for GNU ac_path_FGREP and select it if it is found. | 
 | 7268 |   # Check for GNU $ac_path_FGREP | 
 | 7269 | case `"$ac_path_FGREP" --version 2>&1` in | 
 | 7270 | *GNU*) | 
 | 7271 |   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | 
 | 7272 | *) | 
 | 7273 |   ac_count=0 | 
 | 7274 |   $as_echo_n 0123456789 >"conftest.in" | 
 | 7275 |   while : | 
 | 7276 |   do | 
 | 7277 |     cat "conftest.in" "conftest.in" >"conftest.tmp" | 
 | 7278 |     mv "conftest.tmp" "conftest.in" | 
 | 7279 |     cp "conftest.in" "conftest.nl" | 
 | 7280 |     $as_echo 'FGREP' >> "conftest.nl" | 
 | 7281 |     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
 | 7282 |     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
 | 7283 |     as_fn_arith $ac_count + 1 && ac_count=$as_val | 
 | 7284 |     if test $ac_count -gt ${ac_path_FGREP_max-0}; then | 
 | 7285 |       # Best one so far, save it but keep looking for a better one | 
 | 7286 |       ac_cv_path_FGREP="$ac_path_FGREP" | 
 | 7287 |       ac_path_FGREP_max=$ac_count | 
 | 7288 |     fi | 
 | 7289 |     # 10*(2^10) chars as input seems more than enough | 
 | 7290 |     test $ac_count -gt 10 && break | 
 | 7291 |   done | 
 | 7292 |   rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
 | 7293 | esac | 
 | 7294 |  | 
 | 7295 |       $ac_path_FGREP_found && break 3 | 
 | 7296 |     done | 
 | 7297 |   done | 
 | 7298 |   done | 
 | 7299 | IFS=$as_save_IFS | 
 | 7300 |   if test -z "$ac_cv_path_FGREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7301 |     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7302 |   fi | 
 | 7303 | else | 
 | 7304 |   ac_cv_path_FGREP=$FGREP | 
 | 7305 | fi | 
 | 7306 |  | 
 | 7307 |    fi | 
 | 7308 | fi | 
 | 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | 
 | 7310 | $as_echo "$ac_cv_path_FGREP" >&6; } | 
 | 7311 |  FGREP="$ac_cv_path_FGREP" | 
 | 7312 |  | 
 | 7313 |  | 
 | 7314 | test -z "$GREP" && GREP=grep | 
 | 7315 |  | 
 | 7316 |  | 
 | 7317 |  | 
 | 7318 |  | 
 | 7319 |  | 
 | 7320 |  | 
 | 7321 |  | 
 | 7322 |  | 
 | 7323 |  | 
 | 7324 |  | 
 | 7325 |  | 
 | 7326 |  | 
 | 7327 |  | 
 | 7328 |  | 
 | 7329 |  | 
 | 7330 |  | 
 | 7331 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7332 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 7333 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | 
 | 7334 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | 
 | 7335 |  | 
 | 7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | 
 | 7337 | $as_echo_n "checking how to print strings... " >&6; } | 
 | 7338 | # Test print first, because it will be a builtin if present. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7339 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7340 |    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | 
 | 7341 |   ECHO='print -r --' | 
 | 7342 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | 
 | 7343 |   ECHO='printf %s\n' | 
 | 7344 | else | 
 | 7345 |   # Use this function as a fallback that always works. | 
 | 7346 |   func_fallback_echo () | 
 | 7347 |   { | 
 | 7348 |     eval 'cat <<_LTECHO_EOF | 
 | 7349 | $1 | 
 | 7350 | _LTECHO_EOF' | 
 | 7351 |   } | 
 | 7352 |   ECHO='func_fallback_echo' | 
 | 7353 | fi | 
 | 7354 |  | 
 | 7355 | # func_echo_all arg... | 
 | 7356 | # Invoke $ECHO with all args, space-separated. | 
 | 7357 | func_echo_all () | 
 | 7358 | { | 
 | 7359 |     $ECHO "" | 
 | 7360 | } | 
 | 7361 |  | 
 | 7362 | case "$ECHO" in | 
 | 7363 |   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | 
 | 7364 | $as_echo "printf" >&6; } ;; | 
 | 7365 |   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | 
 | 7366 | $as_echo "print -r" >&6; } ;; | 
 | 7367 |   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | 
 | 7368 | $as_echo "cat" >&6; } ;; | 
 | 7369 | esac | 
 | 7370 |  | 
 | 7371 |  | 
 | 7372 |  | 
 | 7373 |  | 
 | 7374 |  | 
 | 7375 |  | 
 | 7376 |  | 
 | 7377 |  | 
 | 7378 |  | 
 | 7379 |  | 
 | 7380 |  | 
 | 7381 |  | 
 | 7382 |  | 
 | 7383 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7384 |  | 
 | 7385 |  | 
 | 7386 | # Check whether --with-gnu-ld was given. | 
 | 7387 | if test "${with_gnu_ld+set}" = set; then : | 
 | 7388 |   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
 | 7389 | else | 
 | 7390 |   with_gnu_ld=no | 
 | 7391 | fi | 
 | 7392 |  | 
 | 7393 | ac_prog=ld | 
 | 7394 | if test "$GCC" = yes; then | 
 | 7395 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 7396 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
 | 7397 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
 | 7398 |   case $host in | 
 | 7399 |   *-*-mingw*) | 
 | 7400 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 7401 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 7402 |   *) | 
 | 7403 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 7404 |   esac | 
 | 7405 |   case $ac_prog in | 
 | 7406 |     # Accept absolute paths. | 
 | 7407 |     [\\/]* | ?:[\\/]*) | 
 | 7408 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 7409 |       # Canonicalize the pathname of ld | 
 | 7410 |       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
 | 7411 |       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
 | 7412 | 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 7413 |       done | 
 | 7414 |       test -z "$LD" && LD="$ac_prog" | 
 | 7415 |       ;; | 
 | 7416 |   "") | 
 | 7417 |     # If it fails, then pretend we aren't using GCC. | 
 | 7418 |     ac_prog=ld | 
 | 7419 |     ;; | 
 | 7420 |   *) | 
 | 7421 |     # If it is relative, then search for the first ld in PATH. | 
 | 7422 |     with_gnu_ld=unknown | 
 | 7423 |     ;; | 
 | 7424 |   esac | 
 | 7425 | elif test "$with_gnu_ld" = yes; then | 
 | 7426 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 7427 | $as_echo_n "checking for GNU ld... " >&6; } | 
 | 7428 | else | 
 | 7429 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
 | 7430 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
 | 7431 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7432 | if ${lt_cv_path_LD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7433 |   $as_echo_n "(cached) " >&6 | 
 | 7434 | else | 
 | 7435 |   if test -z "$LD"; then | 
 | 7436 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 7437 |   for ac_dir in $PATH; do | 
 | 7438 |     IFS="$lt_save_ifs" | 
 | 7439 |     test -z "$ac_dir" && ac_dir=. | 
 | 7440 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 7441 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 7442 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 7443 |       # but apparently some variants of GNU ld only accept -v. | 
 | 7444 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 7445 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 7446 |       *GNU* | *'with BFD'*) | 
 | 7447 | 	test "$with_gnu_ld" != no && break | 
 | 7448 | 	;; | 
 | 7449 |       *) | 
 | 7450 | 	test "$with_gnu_ld" != yes && break | 
 | 7451 | 	;; | 
 | 7452 |       esac | 
 | 7453 |     fi | 
 | 7454 |   done | 
 | 7455 |   IFS="$lt_save_ifs" | 
 | 7456 | else | 
 | 7457 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 7458 | fi | 
 | 7459 | fi | 
 | 7460 |  | 
 | 7461 | LD="$lt_cv_path_LD" | 
 | 7462 | if test -n "$LD"; then | 
 | 7463 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
 | 7464 | $as_echo "$LD" >&6; } | 
 | 7465 | else | 
 | 7466 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7467 | $as_echo "no" >&6; } | 
 | 7468 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7469 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
 | 7471 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7472 | if ${lt_cv_prog_gnu_ld+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7473 |   $as_echo_n "(cached) " >&6 | 
 | 7474 | else | 
 | 7475 |   # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
 | 7476 | case `$LD -v 2>&1 </dev/null` in | 
 | 7477 | *GNU* | *'with BFD'*) | 
 | 7478 |   lt_cv_prog_gnu_ld=yes | 
 | 7479 |   ;; | 
 | 7480 | *) | 
 | 7481 |   lt_cv_prog_gnu_ld=no | 
 | 7482 |   ;; | 
 | 7483 | esac | 
 | 7484 | fi | 
 | 7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 7486 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
 | 7487 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 7488 |  | 
 | 7489 |  | 
 | 7490 |  | 
 | 7491 |  | 
 | 7492 |  | 
 | 7493 |  | 
 | 7494 |  | 
 | 7495 |  | 
 | 7496 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7497 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7498 |    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | 
 | 7499 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7500 | if ${ac_cv_prog_cc_c99+:} false; then : | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7501 |   $as_echo_n "(cached) " >&6 | 
 | 7502 | else | 
 | 7503 |   ac_cv_prog_cc_c99=no | 
 | 7504 | ac_save_CC=$CC | 
 | 7505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7506 | /* end confdefs.h.  */ | 
 | 7507 | #include <stdarg.h> | 
 | 7508 | #include <stdbool.h> | 
 | 7509 | #include <stdlib.h> | 
 | 7510 | #include <wchar.h> | 
 | 7511 | #include <stdio.h> | 
 | 7512 |  | 
 | 7513 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
 | 7514 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
 | 7515 | #define showlist(...) puts (#__VA_ARGS__) | 
 | 7516 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
 | 7517 | static void | 
 | 7518 | test_varargs_macros (void) | 
 | 7519 | { | 
 | 7520 |   int x = 1234; | 
 | 7521 |   int y = 5678; | 
 | 7522 |   debug ("Flag"); | 
 | 7523 |   debug ("X = %d\n", x); | 
 | 7524 |   showlist (The first, second, and third items.); | 
 | 7525 |   report (x>y, "x is %d but y is %d", x, y); | 
 | 7526 | } | 
 | 7527 |  | 
 | 7528 | // Check long long types. | 
 | 7529 | #define BIG64 18446744073709551615ull | 
 | 7530 | #define BIG32 4294967295ul | 
 | 7531 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
 | 7532 | #if !BIG_OK | 
 | 7533 |   your preprocessor is broken; | 
 | 7534 | #endif | 
 | 7535 | #if BIG_OK | 
 | 7536 | #else | 
 | 7537 |   your preprocessor is broken; | 
 | 7538 | #endif | 
 | 7539 | static long long int bignum = -9223372036854775807LL; | 
 | 7540 | static unsigned long long int ubignum = BIG64; | 
 | 7541 |  | 
 | 7542 | struct incomplete_array | 
 | 7543 | { | 
 | 7544 |   int datasize; | 
 | 7545 |   double data[]; | 
 | 7546 | }; | 
 | 7547 |  | 
 | 7548 | struct named_init { | 
 | 7549 |   int number; | 
 | 7550 |   const wchar_t *name; | 
 | 7551 |   double average; | 
 | 7552 | }; | 
 | 7553 |  | 
 | 7554 | typedef const char *ccp; | 
 | 7555 |  | 
 | 7556 | static inline int | 
 | 7557 | test_restrict (ccp restrict text) | 
 | 7558 | { | 
 | 7559 |   // See if C++-style comments work. | 
 | 7560 |   // Iterate through items via the restricted pointer. | 
 | 7561 |   // Also check for declarations in for loops. | 
 | 7562 |   for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
 | 7563 |     continue; | 
 | 7564 |   return 0; | 
 | 7565 | } | 
 | 7566 |  | 
 | 7567 | // Check varargs and va_copy. | 
 | 7568 | static void | 
 | 7569 | test_varargs (const char *format, ...) | 
 | 7570 | { | 
 | 7571 |   va_list args; | 
 | 7572 |   va_start (args, format); | 
 | 7573 |   va_list args_copy; | 
 | 7574 |   va_copy (args_copy, args); | 
 | 7575 |  | 
 | 7576 |   const char *str; | 
 | 7577 |   int number; | 
 | 7578 |   float fnumber; | 
 | 7579 |  | 
 | 7580 |   while (*format) | 
 | 7581 |     { | 
 | 7582 |       switch (*format++) | 
 | 7583 | 	{ | 
 | 7584 | 	case 's': // string | 
 | 7585 | 	  str = va_arg (args_copy, const char *); | 
 | 7586 | 	  break; | 
 | 7587 | 	case 'd': // int | 
 | 7588 | 	  number = va_arg (args_copy, int); | 
 | 7589 | 	  break; | 
 | 7590 | 	case 'f': // float | 
 | 7591 | 	  fnumber = va_arg (args_copy, double); | 
 | 7592 | 	  break; | 
 | 7593 | 	default: | 
 | 7594 | 	  break; | 
 | 7595 | 	} | 
 | 7596 |     } | 
 | 7597 |   va_end (args_copy); | 
 | 7598 |   va_end (args); | 
 | 7599 | } | 
 | 7600 |  | 
 | 7601 | int | 
 | 7602 | main () | 
 | 7603 | { | 
 | 7604 |  | 
 | 7605 |   // Check bool. | 
 | 7606 |   _Bool success = false; | 
 | 7607 |  | 
 | 7608 |   // Check restrict. | 
 | 7609 |   if (test_restrict ("String literal") == 0) | 
 | 7610 |     success = true; | 
 | 7611 |   char *restrict newvar = "Another string"; | 
 | 7612 |  | 
 | 7613 |   // Check varargs. | 
 | 7614 |   test_varargs ("s, d' f .", "string", 65, 34.234); | 
 | 7615 |   test_varargs_macros (); | 
 | 7616 |  | 
 | 7617 |   // Check flexible array members. | 
 | 7618 |   struct incomplete_array *ia = | 
 | 7619 |     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
 | 7620 |   ia->datasize = 10; | 
 | 7621 |   for (int i = 0; i < ia->datasize; ++i) | 
 | 7622 |     ia->data[i] = i * 1.234; | 
 | 7623 |  | 
 | 7624 |   // Check named initializers. | 
 | 7625 |   struct named_init ni = { | 
 | 7626 |     .number = 34, | 
 | 7627 |     .name = L"Test wide string", | 
 | 7628 |     .average = 543.34343, | 
 | 7629 |   }; | 
 | 7630 |  | 
 | 7631 |   ni.number = 58; | 
 | 7632 |  | 
 | 7633 |   int dynamic_array[ni.number]; | 
 | 7634 |   dynamic_array[ni.number - 1] = 543; | 
 | 7635 |  | 
 | 7636 |   // work around unused variable warnings | 
 | 7637 |   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
 | 7638 | 	  || dynamic_array[ni.number - 1] != 543); | 
 | 7639 |  | 
 | 7640 |   ; | 
 | 7641 |   return 0; | 
 | 7642 | } | 
 | 7643 | _ACEOF | 
 | 7644 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
 | 7645 | do | 
 | 7646 |   CC="$ac_save_CC $ac_arg" | 
 | 7647 |   if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7648 |   ac_cv_prog_cc_c99=$ac_arg | 
 | 7649 | fi | 
 | 7650 | rm -f core conftest.err conftest.$ac_objext | 
 | 7651 |   test "x$ac_cv_prog_cc_c99" != "xno" && break | 
 | 7652 | done | 
 | 7653 | rm -f conftest.$ac_ext | 
 | 7654 | CC=$ac_save_CC | 
 | 7655 |  | 
 | 7656 | fi | 
 | 7657 | # AC_CACHE_VAL | 
 | 7658 | case "x$ac_cv_prog_cc_c99" in | 
 | 7659 |   x) | 
 | 7660 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
 | 7661 | $as_echo "none needed" >&6; } ;; | 
 | 7662 |   xno) | 
 | 7663 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
 | 7664 | $as_echo "unsupported" >&6; } ;; | 
 | 7665 |   *) | 
 | 7666 |     CC="$CC $ac_cv_prog_cc_c99" | 
 | 7667 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | 
 | 7668 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
 | 7669 | esac | 
 | 7670 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
 | 7671 |  | 
 | 7672 | fi | 
 | 7673 |  | 
 | 7674 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7675 | if test "x$CC" != xcc; then | 
 | 7676 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | 
 | 7677 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | 
 | 7678 | else | 
 | 7679 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | 
 | 7680 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | 
 | 7681 | fi | 
 | 7682 | set dummy $CC; ac_cc=`$as_echo "$2" | | 
 | 7683 | 		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7684 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7685 |   $as_echo_n "(cached) " >&6 | 
 | 7686 | else | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7687 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7688 | /* end confdefs.h.  */ | 
 | 7689 |  | 
 | 7690 | int | 
 | 7691 | main () | 
 | 7692 | { | 
 | 7693 |  | 
 | 7694 |   ; | 
 | 7695 |   return 0; | 
 | 7696 | } | 
 | 7697 | _ACEOF | 
 | 7698 | # Make sure it works both with $CC and with simple cc. | 
 | 7699 | # We do the test twice because some compilers refuse to overwrite an | 
 | 7700 | # existing .o file with -o, though they will create one. | 
 | 7701 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
 | 7702 | rm -f conftest2.* | 
 | 7703 | if { { case "(($ac_try" in | 
 | 7704 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 7705 |   *) ac_try_echo=$ac_try;; | 
 | 7706 | esac | 
 | 7707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 7708 | $as_echo "$ac_try_echo"; } >&5 | 
 | 7709 |   (eval "$ac_try") 2>&5 | 
 | 7710 |   ac_status=$? | 
 | 7711 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7712 |   test $ac_status = 0; } && | 
 | 7713 |    test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
 | 7714 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 7715 |   *) ac_try_echo=$ac_try;; | 
 | 7716 | esac | 
 | 7717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 7718 | $as_echo "$ac_try_echo"; } >&5 | 
 | 7719 |   (eval "$ac_try") 2>&5 | 
 | 7720 |   ac_status=$? | 
 | 7721 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7722 |   test $ac_status = 0; }; | 
 | 7723 | then | 
 | 7724 |   eval ac_cv_prog_cc_${ac_cc}_c_o=yes | 
 | 7725 |   if test "x$CC" != xcc; then | 
 | 7726 |     # Test first that cc exists at all. | 
 | 7727 |     if { ac_try='cc -c conftest.$ac_ext >&5' | 
 | 7728 |   { { case "(($ac_try" in | 
 | 7729 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 7730 |   *) ac_try_echo=$ac_try;; | 
 | 7731 | esac | 
 | 7732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 7733 | $as_echo "$ac_try_echo"; } >&5 | 
 | 7734 |   (eval "$ac_try") 2>&5 | 
 | 7735 |   ac_status=$? | 
 | 7736 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7737 |   test $ac_status = 0; }; }; then | 
 | 7738 |       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
 | 7739 |       rm -f conftest2.* | 
 | 7740 |       if { { case "(($ac_try" in | 
 | 7741 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 7742 |   *) ac_try_echo=$ac_try;; | 
 | 7743 | esac | 
 | 7744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 7745 | $as_echo "$ac_try_echo"; } >&5 | 
 | 7746 |   (eval "$ac_try") 2>&5 | 
 | 7747 |   ac_status=$? | 
 | 7748 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7749 |   test $ac_status = 0; } && | 
 | 7750 | 	 test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
 | 7751 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 7752 |   *) ac_try_echo=$ac_try;; | 
 | 7753 | esac | 
 | 7754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 7755 | $as_echo "$ac_try_echo"; } >&5 | 
 | 7756 |   (eval "$ac_try") 2>&5 | 
 | 7757 |   ac_status=$? | 
 | 7758 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7759 |   test $ac_status = 0; }; | 
 | 7760 |       then | 
 | 7761 | 	# cc works too. | 
 | 7762 | 	: | 
 | 7763 |       else | 
 | 7764 | 	# cc exists but doesn't like -o. | 
 | 7765 | 	eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
 | 7766 |       fi | 
 | 7767 |     fi | 
 | 7768 |   fi | 
 | 7769 | else | 
 | 7770 |   eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
 | 7771 | fi | 
 | 7772 | rm -f core conftest* | 
 | 7773 |  | 
 | 7774 | fi | 
 | 7775 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | 
 | 7776 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7777 | $as_echo "yes" >&6; } | 
 | 7778 | else | 
 | 7779 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7780 | $as_echo "no" >&6; } | 
 | 7781 |  | 
 | 7782 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | 
 | 7783 |  | 
 | 7784 | fi | 
 | 7785 |  | 
 | 7786 | # FIXME: we rely on the cache variable name because | 
 | 7787 | # there is no other way. | 
 | 7788 | set dummy $CC | 
 | 7789 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
 | 7790 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | 
 | 7791 | if test "$am_t" != yes; then | 
 | 7792 |    # Losing compiler, so override with the script. | 
 | 7793 |    # FIXME: It is wrong to rewrite CC. | 
 | 7794 |    # But if we don't then we get into trouble of one sort or another. | 
 | 7795 |    # A longer-term fix would be to have automake use am__CC in this case, | 
 | 7796 |    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | 
 | 7797 |    CC="$am_aux_dir/compile $CC" | 
 | 7798 | fi | 
 | 7799 |  | 
 | 7800 |  | 
 | 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 | 
 | 7802 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7803 | if ${ac_cv_cflags_warn_all+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7804 |   $as_echo_n "(cached) " >&6 | 
 | 7805 | else | 
 | 7806 |   ac_cv_cflags_warn_all="no, unknown" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7807 |  ac_ext=c | 
 | 7808 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 7812 |  | 
 | 7813 |  ac_save_CFLAGS="$CFLAGS" | 
 | 7814 | 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"    # | 
 | 7815 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | 
 | 7816 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7817 | /* end confdefs.h.  */ | 
 | 7818 |  | 
 | 7819 | int | 
 | 7820 | main () | 
 | 7821 | { | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 7822 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7823 |   ; | 
 | 7824 |   return 0; | 
 | 7825 | } | 
 | 7826 | _ACEOF | 
 | 7827 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7828 |   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | 
 | 7829 | fi | 
 | 7830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7831 | done | 
 | 7832 |  CFLAGS="$ac_save_CFLAGS" | 
 | 7833 |  ac_ext=c | 
 | 7834 | ac_cpp='$CPP $CPPFLAGS' | 
 | 7835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 7836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 7837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 7838 |  | 
 | 7839 |  | 
 | 7840 | fi | 
 | 7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | 
 | 7842 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | 
 | 7843 | case ".$ac_cv_cflags_warn_all" in | 
 | 7844 |      .ok|.ok,*)  ;; | 
 | 7845 |    .|.no|.no,*) | 
 | 7846 |  ;; | 
 | 7847 |    *) | 
 | 7848 |    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null | 
 | 7849 |    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 | 
 | 7850 |   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 | 
 | 7851 |   ac_status=$? | 
 | 7852 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7853 |   test $ac_status = 0; } | 
 | 7854 |    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | 
 | 7855 |   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | 
 | 7856 |   ac_status=$? | 
 | 7857 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 7858 |   test $ac_status = 0; } | 
 | 7859 |                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | 
 | 7860 |    fi | 
 | 7861 |  ;; | 
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 7862 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7863 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7864 |  | 
 | 7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
 | 7866 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
 | 7867 | set x ${MAKE-make} | 
 | 7868 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7869 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7870 |   $as_echo_n "(cached) " >&6 | 
 | 7871 | else | 
 | 7872 |   cat >conftest.make <<\_ACEOF | 
 | 7873 | SHELL = /bin/sh | 
 | 7874 | all: | 
 | 7875 | 	@echo '@@@%%%=$(MAKE)=@@@%%%' | 
 | 7876 | _ACEOF | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7877 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7878 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
 | 7879 |   *@@@%%%=?*=@@@%%%*) | 
 | 7880 |     eval ac_cv_prog_make_${ac_make}_set=yes;; | 
 | 7881 |   *) | 
 | 7882 |     eval ac_cv_prog_make_${ac_make}_set=no;; | 
 | 7883 | esac | 
 | 7884 | rm -f conftest.make | 
 | 7885 | fi | 
 | 7886 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
 | 7887 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7888 | $as_echo "yes" >&6; } | 
 | 7889 |   SET_MAKE= | 
 | 7890 | else | 
 | 7891 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7892 | $as_echo "no" >&6; } | 
 | 7893 |   SET_MAKE="MAKE=${MAKE-make}" | 
 | 7894 | fi | 
 | 7895 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7897 | $as_echo_n "checking whether ln -s works... " >&6; } | 
 | 7898 | LN_S=$as_ln_s | 
 | 7899 | if test "$LN_S" = "ln -s"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7900 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7901 | $as_echo "yes" >&6; } | 
 | 7902 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7903 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7904 | $as_echo "no, using $LN_S" >&6; } | 
 | 7905 | fi | 
 | 7906 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 | 
 | 7908 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } | 
 | 7909 |  | 
 | 7910 | # Check whether --with-dmalloc was given. | 
 | 7911 | if test "${with_dmalloc+set}" = set; then : | 
 | 7912 |   withval=$with_dmalloc; if test "$withval" = yes; then | 
 | 7913 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 7914 | $as_echo "yes" >&6; } | 
 | 7915 |  | 
 | 7916 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h | 
 | 7917 |  | 
 | 7918 |   LIBS="$LIBS -ldmalloc" | 
 | 7919 |   LDFLAGS="$LDFLAGS -g" | 
 | 7920 | else | 
 | 7921 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7922 | $as_echo "no" >&6; } | 
 | 7923 | fi | 
 | 7924 | else | 
 | 7925 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 7926 | $as_echo "no" >&6; } | 
 | 7927 | fi | 
 | 7928 |  | 
 | 7929 |  | 
 | 7930 |  | 
 | 7931 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | 
 | 7932 | $as_echo_n "checking for __attribute__... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7933 | if ${ax_cv___attribute__+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7934 |   $as_echo_n "(cached) " >&6 | 
 | 7935 | else | 
 | 7936 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 7937 | /* end confdefs.h.  */ | 
 | 7938 | #include <stdlib.h> | 
 | 7939 | 	  static void foo(void) __attribute__ ((unused)); | 
 | 7940 | 	  static void | 
 | 7941 | 	  foo(void) { | 
 | 7942 | 	      exit(1); | 
 | 7943 | 	  } | 
 | 7944 |  | 
 | 7945 | int | 
 | 7946 | main () | 
 | 7947 | { | 
 | 7948 |  | 
 | 7949 |   ; | 
 | 7950 |   return 0; | 
 | 7951 | } | 
 | 7952 | _ACEOF | 
 | 7953 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 7954 |   ax_cv___attribute__=yes | 
 | 7955 | else | 
 | 7956 |   ax_cv___attribute__=no | 
 | 7957 |  | 
 | 7958 | fi | 
 | 7959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 7960 |  | 
 | 7961 | fi | 
 | 7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 | 
 | 7963 | $as_echo "$ax_cv___attribute__" >&6; } | 
 | 7964 |   if test "$ax_cv___attribute__" = "yes"; then | 
 | 7965 |  | 
 | 7966 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | 
 | 7967 |  | 
 | 7968 |   fi | 
 | 7969 |  | 
 | 7970 |  | 
 | 7971 |  | 
 | 7972 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
 | 7973 | 	if test -n "$ac_tool_prefix"; then | 
 | 7974 |   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
 | 7975 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
 | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 7977 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7978 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7979 |   $as_echo_n "(cached) " >&6 | 
 | 7980 | else | 
 | 7981 |   case $PKG_CONFIG in | 
 | 7982 |   [\\/]* | ?:[\\/]*) | 
 | 7983 |   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
 | 7984 |   ;; | 
 | 7985 |   *) | 
 | 7986 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 7987 | for as_dir in $PATH | 
 | 7988 | do | 
 | 7989 |   IFS=$as_save_IFS | 
 | 7990 |   test -z "$as_dir" && as_dir=. | 
 | 7991 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 7992 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 7993 |     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 7994 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 7995 |     break 2 | 
 | 7996 |   fi | 
 | 7997 | done | 
 | 7998 |   done | 
 | 7999 | IFS=$as_save_IFS | 
 | 8000 |  | 
 | 8001 |   ;; | 
 | 8002 | esac | 
 | 8003 | fi | 
 | 8004 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
 | 8005 | if test -n "$PKG_CONFIG"; then | 
 | 8006 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
 | 8007 | $as_echo "$PKG_CONFIG" >&6; } | 
 | 8008 | else | 
 | 8009 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8010 | $as_echo "no" >&6; } | 
 | 8011 | fi | 
 | 8012 |  | 
 | 8013 |  | 
 | 8014 | fi | 
 | 8015 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
 | 8016 |   ac_pt_PKG_CONFIG=$PKG_CONFIG | 
 | 8017 |   # Extract the first word of "pkg-config", so it can be a program name with args. | 
 | 8018 | set dummy pkg-config; ac_word=$2 | 
 | 8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8020 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8021 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8022 |   $as_echo_n "(cached) " >&6 | 
 | 8023 | else | 
 | 8024 |   case $ac_pt_PKG_CONFIG in | 
 | 8025 |   [\\/]* | ?:[\\/]*) | 
 | 8026 |   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
 | 8027 |   ;; | 
 | 8028 |   *) | 
 | 8029 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8030 | for as_dir in $PATH | 
 | 8031 | do | 
 | 8032 |   IFS=$as_save_IFS | 
 | 8033 |   test -z "$as_dir" && as_dir=. | 
 | 8034 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 8035 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8036 |     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
 | 8037 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8038 |     break 2 | 
 | 8039 |   fi | 
 | 8040 | done | 
 | 8041 |   done | 
 | 8042 | IFS=$as_save_IFS | 
 | 8043 |  | 
 | 8044 |   ;; | 
 | 8045 | esac | 
 | 8046 | fi | 
 | 8047 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
 | 8048 | if test -n "$ac_pt_PKG_CONFIG"; then | 
 | 8049 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
 | 8050 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
 | 8051 | else | 
 | 8052 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8053 | $as_echo "no" >&6; } | 
 | 8054 | fi | 
 | 8055 |  | 
 | 8056 |   if test "x$ac_pt_PKG_CONFIG" = x; then | 
 | 8057 |     PKG_CONFIG="" | 
 | 8058 |   else | 
 | 8059 |     case $cross_compiling:$ac_tool_warned in | 
 | 8060 | yes:) | 
 | 8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 8062 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 8063 | ac_tool_warned=yes ;; | 
 | 8064 | esac | 
 | 8065 |     PKG_CONFIG=$ac_pt_PKG_CONFIG | 
 | 8066 |   fi | 
 | 8067 | else | 
 | 8068 |   PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
 | 8069 | fi | 
 | 8070 |  | 
 | 8071 | fi | 
 | 8072 | if test -n "$PKG_CONFIG"; then | 
 | 8073 | 	_pkg_min_version=0.9.0 | 
 | 8074 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
 | 8075 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
 | 8076 | 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
 | 8077 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 8078 | $as_echo "yes" >&6; } | 
 | 8079 | 	else | 
 | 8080 | 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8081 | $as_echo "no" >&6; } | 
 | 8082 | 		PKG_CONFIG="" | 
 | 8083 | 	fi | 
 | 8084 |  | 
 | 8085 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8086 |  | 
 | 8087 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8088 | # Enable run-time checking. | 
 | 8089 | # | 
 | 8090 | # Check whether --enable-bounds-checking was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8091 | if test "${enable_bounds_checking+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8092 |   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval | 
 | 8093 | else | 
 | 8094 |   enable_bounds_checking='no' | 
 | 8095 | fi | 
 | 8096 |  | 
 | 8097 |  | 
 | 8098 | if test "$enable_bounds_checking" = yes; then | 
 | 8099 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8100 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8101 |  | 
 | 8102 | fi | 
 | 8103 |  | 
 | 8104 | # | 
 | 8105 | # Tests for Windows | 
 | 8106 | # | 
 | 8107 |  | 
 | 8108 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
 | 8110 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8111 | if ${ax_cv_c_compiler_ms+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8112 |   $as_echo_n "(cached) " >&6 | 
 | 8113 | else | 
 | 8114 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8115 | /* end confdefs.h.  */ | 
 | 8116 |  | 
 | 8117 | int | 
 | 8118 | main () | 
 | 8119 | { | 
 | 8120 | #ifndef _MSC_VER | 
 | 8121 |        choke me | 
 | 8122 | #endif | 
 | 8123 |  | 
 | 8124 |   ; | 
 | 8125 |   return 0; | 
 | 8126 | } | 
 | 8127 | _ACEOF | 
 | 8128 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 8129 |   ax_compiler_ms=yes | 
 | 8130 | else | 
 | 8131 |   ax_compiler_ms=no | 
 | 8132 | fi | 
 | 8133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 8134 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
 | 8135 |  | 
 | 8136 | fi | 
 | 8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
 | 8138 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8139 |  | 
 | 8140 | GDI32_LIBS='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8141 | native_win32_build='no' | 
 | 8142 | cygwin_build='no' | 
 | 8143 | case "${host_os}" in | 
 | 8144 |     cygwin* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8145 |         cygwin_build='yes' | 
 | 8146 |         GDI32_LIBS='-lgdi32' | 
 | 8147 |     ;; | 
 | 8148 |     mingw* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8149 |         native_win32_build='yes' | 
 | 8150 |         GDI32_LIBS='-lgdi32' | 
 | 8151 |     ;; | 
 | 8152 | esac | 
 | 8153 | if test "${GDI32_LIBS}x" != 'x'; then | 
 | 8154 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8155 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8156 |  | 
 | 8157 | fi | 
 | 8158 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8159 |  if test "${GDI32_LIBS}x" != 'x' ; then | 
 | 8160 |   WINGDI32_DELEGATE_TRUE= | 
 | 8161 |   WINGDI32_DELEGATE_FALSE='#' | 
 | 8162 | else | 
 | 8163 |   WINGDI32_DELEGATE_TRUE='#' | 
 | 8164 |   WINGDI32_DELEGATE_FALSE= | 
 | 8165 | fi | 
 | 8166 |  | 
 | 8167 |  if test "${native_win32_build}" = 'yes' ; then | 
 | 8168 |   WIN32_NATIVE_BUILD_TRUE= | 
 | 8169 |   WIN32_NATIVE_BUILD_FALSE='#' | 
 | 8170 | else | 
 | 8171 |   WIN32_NATIVE_BUILD_TRUE='#' | 
 | 8172 |   WIN32_NATIVE_BUILD_FALSE= | 
 | 8173 | fi | 
 | 8174 |  | 
 | 8175 |  if test "${cygwin_build}" = 'yes' ; then | 
 | 8176 |   CYGWIN_BUILD_TRUE= | 
 | 8177 |   CYGWIN_BUILD_FALSE='#' | 
 | 8178 | else | 
 | 8179 |   CYGWIN_BUILD_TRUE='#' | 
 | 8180 |   CYGWIN_BUILD_FALSE= | 
 | 8181 | fi | 
 | 8182 |  | 
 | 8183 |  if test "x${CC}" = 'xcl.exe' ; then | 
 | 8184 |   USING_CL_TRUE= | 
 | 8185 |   USING_CL_FALSE='#' | 
 | 8186 | else | 
 | 8187 |   USING_CL_TRUE='#' | 
 | 8188 |   USING_CL_FALSE= | 
 | 8189 | fi | 
 | 8190 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8191 |  | 
 | 8192 | WinPathScript="${srcdirfull}/winpath.sh" | 
 | 8193 |  | 
 | 8194 |  | 
 | 8195 | # | 
 | 8196 | # Compiler flags tweaks | 
 | 8197 | # | 
 | 8198 | if test "${GCC}" != "yes"; then | 
 | 8199 |     case "${host}" in | 
 | 8200 |         *-*-hpux* ) | 
 | 8201 |             # aCC: HP ANSI C++ B3910B A.03.34 | 
 | 8202 |             CFLAGS="${CFLAGS} -Wp,-H30000" | 
 | 8203 |             if test -n "${CXXFLAGS}"; then | 
 | 8204 |                 CXXFLAGS='-AA' | 
 | 8205 |             else | 
 | 8206 |                 CXXFLAGS="${CXXFLAGS} -AA" | 
 | 8207 |             fi | 
 | 8208 |         ;; | 
 | 8209 |         *-dec-osf5.* ) | 
 | 8210 |             # Compaq alphaev68-dec-osf5.1 compiler | 
 | 8211 |             if test -n "${CXXFLAGS}"; then | 
 | 8212 |                 CXXFLAGS='-std strict_ansi -noimplicit_include' | 
 | 8213 |             else | 
 | 8214 |                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" | 
 | 8215 |             fi | 
 | 8216 |   esac | 
 | 8217 | fi | 
 | 8218 |  | 
 | 8219 | # Check for lazy-loading. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8221 | $as_echo_n "checking for linker lazyload option... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8222 | if ${im_cv_ld_lazyload+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8223 |   $as_echo_n "(cached) " >&6 | 
 | 8224 | else | 
 | 8225 |  | 
 | 8226 | im_cv_ld_lazyload='none' | 
 | 8227 | case "${host}" in | 
 | 8228 |   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) | 
 | 8229 |     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then | 
 | 8230 |        im_cv_ld_lazyload='-Wl,-zlazyload' | 
 | 8231 |     fi | 
 | 8232 |     ;; | 
 | 8233 | esac | 
 | 8234 |  | 
 | 8235 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8237 | $as_echo "$im_cv_ld_lazyload" >&6; } | 
 | 8238 | if test "${im_cv_ld_lazyload}" != 'none' ; then | 
 | 8239 |   if test -z "${LDFLAGS}" ; then | 
 | 8240 |     LDFLAGS="${im_cv_ld_lazyload}" | 
 | 8241 |   else | 
 | 8242 |     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" | 
 | 8243 |   fi | 
 | 8244 | fi | 
 | 8245 |  | 
 | 8246 | case "$host" in | 
 | 8247 | *darwin* | *-macos10*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8248 |     # Check whether --enable-osx-universal-binary was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8249 | if test "${enable_osx_universal_binary+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8250 |   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" | 
 | 8251 | else | 
 | 8252 |   build_osxuniversal=no | 
 | 8253 | fi | 
 | 8254 |  | 
 | 8255 |  | 
 | 8256 |   if test "${build_osxuniversal}" != no ; then | 
 | 8257 |     if test "$enable_dependency_tracking" != no ; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8258 |       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8259 | Please re-run configure with these options: | 
 | 8260 |   --disable-dependency-tracking --enable-osx-universal-binary | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8261 |         " "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8262 |     fi | 
 | 8263 |     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
 | 8264 |     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
 | 8265 |     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
 | 8266 |   fi | 
 | 8267 |   ;; | 
 | 8268 | esac | 
 | 8269 |  | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8270 | # | 
 | 8271 | # ARCH specific include directory | 
 | 8272 | # | 
 | 8273 |  | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 8274 | # Check whether --with-includearch-dir was given. | 
 | 8275 | if test "${with_includearch_dir+set}" = set; then : | 
 | 8276 |   withval=$with_includearch_dir; includearch_dir=$withval | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8277 | else | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 8278 |   includearch_dir=$INCLUDE_DIR | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8279 | fi | 
 | 8280 |  | 
 | 8281 |  | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 8282 | eval "eval INCLUDEARCH_DIR=$includearch_dir" | 
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 8283 |  | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8284 |  | 
 | 8285 | # | 
 | 8286 | # ARCH specific configuration directory | 
 | 8287 | # | 
 | 8288 |  | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 8289 | # Check whether --with-sharearch-dir was given. | 
 | 8290 | if test "${with_sharearch_dir+set}" = set; then : | 
 | 8291 |   withval=$with_sharearch_dir; sharearch_dir=$withval | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8292 | else | 
| cristy | 408ebcd | 2011-11-14 01:36:57 +0000 | [diff] [blame] | 8293 |   sharearch_dir="${LIB_DIR}" | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8294 | fi | 
 | 8295 |  | 
 | 8296 |  | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 8297 | eval "eval SHAREARCH_DIR=$sharearch_dir" | 
 | 8298 | SHAREARCH_DIR="$sharearch_dir" | 
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 8299 |  | 
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 8300 |  | 
 | 8301 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8302 | # Enable support for threads | 
 | 8303 |  | 
 | 8304 | # Check whether --with-threads was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8305 | if test "${with_threads+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8306 |   withval=$with_threads; with_threads=$withval | 
 | 8307 | else | 
 | 8308 |   with_threads='yes' | 
 | 8309 | fi | 
 | 8310 |  | 
 | 8311 |  | 
 | 8312 | have_threads=no | 
 | 8313 | if test "$with_threads" != 'no'; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8314 |  | 
 | 8315 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8316 | ac_ext=c | 
 | 8317 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8321 |  | 
 | 8322 | ax_pthread_ok=no | 
 | 8323 |  | 
 | 8324 | # We used to check for pthread.h first, but this fails if pthread.h | 
 | 8325 | # requires special compiler flags (e.g. on True64 or Sequent). | 
 | 8326 | # It gets checked for in the link test anyway. | 
 | 8327 |  | 
 | 8328 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
 | 8329 | # etcetera environment variables, and if threads linking works using | 
 | 8330 | # them: | 
 | 8331 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
 | 8332 |         save_CFLAGS="$CFLAGS" | 
 | 8333 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 8334 |         save_LIBS="$LIBS" | 
 | 8335 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 8336 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
 | 8337 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
 | 8338 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8339 | /* end confdefs.h.  */ | 
 | 8340 |  | 
 | 8341 | /* Override any GCC internal prototype to avoid an error. | 
 | 8342 |    Use char because int might match the return type of a GCC | 
 | 8343 |    builtin and then its argument prototype would still apply.  */ | 
 | 8344 | #ifdef __cplusplus | 
 | 8345 | extern "C" | 
 | 8346 | #endif | 
 | 8347 | char pthread_join (); | 
 | 8348 | int | 
 | 8349 | main () | 
 | 8350 | { | 
 | 8351 | return pthread_join (); | 
 | 8352 |   ; | 
 | 8353 |   return 0; | 
 | 8354 | } | 
 | 8355 | _ACEOF | 
 | 8356 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8357 |   ax_pthread_ok=yes | 
 | 8358 | fi | 
 | 8359 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8360 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8361 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
 | 8362 | $as_echo "$ax_pthread_ok" >&6; } | 
 | 8363 |         if test x"$ax_pthread_ok" = xno; then | 
 | 8364 |                 PTHREAD_LIBS="" | 
 | 8365 |                 PTHREAD_CFLAGS="" | 
 | 8366 |         fi | 
 | 8367 |         LIBS="$save_LIBS" | 
 | 8368 |         CFLAGS="$save_CFLAGS" | 
 | 8369 | fi | 
 | 8370 |  | 
 | 8371 | # We must check for the threads library under a number of different | 
 | 8372 | # names; the ordering is very important because some systems | 
 | 8373 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
 | 8374 | # libraries is broken (non-POSIX). | 
 | 8375 |  | 
 | 8376 | # Create a list of thread flags to try.  Items starting with a "-" are | 
 | 8377 | # C compiler flags, and other items are library names, except for "none" | 
 | 8378 | # which indicates that we try without any flags at all, and "pthread-config" | 
 | 8379 | # which is a program returning the flags for the Pth emulation library. | 
 | 8380 |  | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 8381 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8382 |  | 
 | 8383 | # The ordering *is* (sometimes) important.  Some notes on the | 
 | 8384 | # individual items follow: | 
 | 8385 |  | 
 | 8386 | # pthreads: AIX (must check this before -lpthread) | 
 | 8387 | # none: in case threads are in libc; should be tried before -Kthread and | 
 | 8388 | #       other compiler flags to prevent continual compiler warnings | 
 | 8389 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
 | 8390 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
 | 8391 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
 | 8392 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
 | 8393 | # -pthreads: Solaris/gcc | 
 | 8394 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
 | 8395 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
 | 8396 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
 | 8397 | #      also defines -D_REENTRANT) | 
 | 8398 | #      ... -mt is also the pthreads flag for HP/aCC | 
 | 8399 | # pthread: Linux, etcetera | 
 | 8400 | # --thread-safe: KAI C++ | 
 | 8401 | # pthread-config: use pthread-config program (for GNU Pth library) | 
 | 8402 |  | 
 | 8403 | case "${host_cpu}-${host_os}" in | 
 | 8404 |         *solaris*) | 
 | 8405 |  | 
 | 8406 |         # On Solaris (at least, for some versions), libc contains stubbed | 
 | 8407 |         # (non-functional) versions of the pthreads routines, so link-based | 
 | 8408 |         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
 | 8409 |         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
 | 8410 |         # a function called by this macro, so we could check for that, but | 
 | 8411 |         # who knows whether they'll stub that too in a future libc.)  So, | 
 | 8412 |         # we'll just look for -pthreads and -lpthread first: | 
 | 8413 |  | 
 | 8414 |         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
 | 8415 |         ;; | 
 | 8416 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8417 |         *-darwin*) | 
 | 8418 |         ax_pthread_flags="-pthread $ax_pthread_flags" | 
 | 8419 |         ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8420 | esac | 
 | 8421 |  | 
 | 8422 | if test x"$ax_pthread_ok" = xno; then | 
 | 8423 | for flag in $ax_pthread_flags; do | 
 | 8424 |  | 
 | 8425 |         case $flag in | 
 | 8426 |                 none) | 
 | 8427 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
 | 8428 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
 | 8429 |                 ;; | 
 | 8430 |  | 
 | 8431 |                 -*) | 
 | 8432 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
 | 8433 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
 | 8434 |                 PTHREAD_CFLAGS="$flag" | 
 | 8435 |                 ;; | 
 | 8436 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8437 |                 pthread-config) | 
 | 8438 |                 # Extract the first word of "pthread-config", so it can be a program name with args. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8439 | set dummy pthread-config; ac_word=$2 | 
 | 8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8441 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8442 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8443 |   $as_echo_n "(cached) " >&6 | 
 | 8444 | else | 
 | 8445 |   if test -n "$ax_pthread_config"; then | 
 | 8446 |   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
 | 8447 | else | 
 | 8448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8449 | for as_dir in $PATH | 
 | 8450 | do | 
 | 8451 |   IFS=$as_save_IFS | 
 | 8452 |   test -z "$as_dir" && as_dir=. | 
 | 8453 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 8454 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8455 |     ac_cv_prog_ax_pthread_config="yes" | 
 | 8456 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8457 |     break 2 | 
 | 8458 |   fi | 
 | 8459 | done | 
 | 8460 |   done | 
 | 8461 | IFS=$as_save_IFS | 
 | 8462 |  | 
 | 8463 |   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
 | 8464 | fi | 
 | 8465 | fi | 
 | 8466 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
 | 8467 | if test -n "$ax_pthread_config"; then | 
 | 8468 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
 | 8469 | $as_echo "$ax_pthread_config" >&6; } | 
 | 8470 | else | 
 | 8471 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8472 | $as_echo "no" >&6; } | 
 | 8473 | fi | 
 | 8474 |  | 
 | 8475 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8476 |                 if test x"$ax_pthread_config" = xno; then continue; fi | 
 | 8477 |                 PTHREAD_CFLAGS="`pthread-config --cflags`" | 
 | 8478 |                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
 | 8479 |                 ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8480 |  | 
 | 8481 |                 *) | 
 | 8482 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
 | 8483 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
 | 8484 |                 PTHREAD_LIBS="-l$flag" | 
 | 8485 |                 ;; | 
 | 8486 |         esac | 
 | 8487 |  | 
 | 8488 |         save_LIBS="$LIBS" | 
 | 8489 |         save_CFLAGS="$CFLAGS" | 
 | 8490 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 8491 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 8492 |  | 
 | 8493 |         # Check for various functions.  We must include pthread.h, | 
 | 8494 |         # since some functions may be macros.  (On the Sequent, we | 
 | 8495 |         # need a special flag -Kthread to make this header compile.) | 
 | 8496 |         # We check for pthread_join because it is in -lpthread on IRIX | 
 | 8497 |         # while pthread_create is in libc.  We check for pthread_attr_init | 
 | 8498 |         # due to DEC craziness with -lpthreads.  We check for | 
 | 8499 |         # pthread_cleanup_push because it is one of the few pthread | 
 | 8500 |         # functions on Solaris that doesn't have a non-functional libc stub. | 
 | 8501 |         # We try pthread_create on general principles. | 
 | 8502 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8503 | /* end confdefs.h.  */ | 
 | 8504 | #include <pthread.h> | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8505 |                         static void routine(void *a) { a = 0; } | 
 | 8506 |                         static void *start_routine(void *a) { return a; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8507 | int | 
 | 8508 | main () | 
 | 8509 | { | 
 | 8510 | pthread_t th; pthread_attr_t attr; | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8511 |                         pthread_create(&th, 0, start_routine, 0); | 
 | 8512 |                         pthread_join(th, 0); | 
 | 8513 |                         pthread_attr_init(&attr); | 
 | 8514 |                         pthread_cleanup_push(routine, 0); | 
 | 8515 |                         pthread_cleanup_pop(0) /* ; */ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8516 |   ; | 
 | 8517 |   return 0; | 
 | 8518 | } | 
 | 8519 | _ACEOF | 
 | 8520 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8521 |   ax_pthread_ok=yes | 
 | 8522 | fi | 
 | 8523 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8524 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8525 |  | 
 | 8526 |         LIBS="$save_LIBS" | 
 | 8527 |         CFLAGS="$save_CFLAGS" | 
 | 8528 |  | 
 | 8529 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
 | 8530 | $as_echo "$ax_pthread_ok" >&6; } | 
 | 8531 |         if test "x$ax_pthread_ok" = xyes; then | 
 | 8532 |                 break; | 
 | 8533 |         fi | 
 | 8534 |  | 
 | 8535 |         PTHREAD_LIBS="" | 
 | 8536 |         PTHREAD_CFLAGS="" | 
 | 8537 | done | 
 | 8538 | fi | 
 | 8539 |  | 
 | 8540 | # Various other checks: | 
 | 8541 | if test "x$ax_pthread_ok" = xyes; then | 
 | 8542 |         save_LIBS="$LIBS" | 
 | 8543 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 8544 |         save_CFLAGS="$CFLAGS" | 
 | 8545 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 8546 |  | 
 | 8547 |         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8548 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8549 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8550 |         attr_name=unknown | 
 | 8551 |         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
 | 8552 |             cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8553 | /* end confdefs.h.  */ | 
 | 8554 | #include <pthread.h> | 
 | 8555 | int | 
 | 8556 | main () | 
 | 8557 | { | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8558 | int attr = $attr; return attr /* ; */ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8559 |   ; | 
 | 8560 |   return 0; | 
 | 8561 | } | 
 | 8562 | _ACEOF | 
 | 8563 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8564 |   attr_name=$attr; break | 
 | 8565 | fi | 
 | 8566 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8567 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8568 |         done | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8569 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
 | 8570 | $as_echo "$attr_name" >&6; } | 
 | 8571 |         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
 | 8572 |  | 
 | 8573 | cat >>confdefs.h <<_ACEOF | 
 | 8574 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
 | 8575 | _ACEOF | 
 | 8576 |  | 
 | 8577 |         fi | 
 | 8578 |  | 
 | 8579 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
 | 8580 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
 | 8581 |         flag=no | 
 | 8582 |         case "${host_cpu}-${host_os}" in | 
 | 8583 |             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
 | 8584 |             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
 | 8585 |         esac | 
 | 8586 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
 | 8587 | $as_echo "${flag}" >&6; } | 
 | 8588 |         if test "x$flag" != xno; then | 
 | 8589 |             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
 | 8590 |         fi | 
 | 8591 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8592 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | 
 | 8593 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | 
 | 8594 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | 
 | 8595 |   $as_echo_n "(cached) " >&6 | 
 | 8596 | else | 
 | 8597 |  | 
 | 8598 |                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8599 | /* end confdefs.h.  */ | 
 | 8600 |  | 
 | 8601 |                     #include <pthread.h> | 
 | 8602 | int | 
 | 8603 | main () | 
 | 8604 | { | 
 | 8605 | int i = PTHREAD_PRIO_INHERIT; | 
 | 8606 |   ; | 
 | 8607 |   return 0; | 
 | 8608 | } | 
 | 8609 | _ACEOF | 
 | 8610 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8611 |   ax_cv_PTHREAD_PRIO_INHERIT=yes | 
 | 8612 | else | 
 | 8613 |   ax_cv_PTHREAD_PRIO_INHERIT=no | 
 | 8614 | fi | 
 | 8615 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8616 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8617 |  | 
 | 8618 | fi | 
 | 8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | 
 | 8620 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | 
 | 8621 |         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | 
 | 8622 |  | 
 | 8623 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | 
 | 8624 |  | 
 | 8625 | fi | 
 | 8626 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8627 |         LIBS="$save_LIBS" | 
 | 8628 |         CFLAGS="$save_CFLAGS" | 
 | 8629 |  | 
 | 8630 |         # More AIX lossage: must compile with xlc_r or cc_r | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8631 |         if test x"$GCC" != xyes; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8632 |           for ac_prog in xlc_r cc_r | 
 | 8633 | do | 
 | 8634 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 8635 | set dummy $ac_prog; ac_word=$2 | 
 | 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8637 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8638 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8639 |   $as_echo_n "(cached) " >&6 | 
 | 8640 | else | 
 | 8641 |   if test -n "$PTHREAD_CC"; then | 
 | 8642 |   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
 | 8643 | else | 
 | 8644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8645 | for as_dir in $PATH | 
 | 8646 | do | 
 | 8647 |   IFS=$as_save_IFS | 
 | 8648 |   test -z "$as_dir" && as_dir=. | 
 | 8649 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 8650 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8651 |     ac_cv_prog_PTHREAD_CC="$ac_prog" | 
 | 8652 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8653 |     break 2 | 
 | 8654 |   fi | 
 | 8655 | done | 
 | 8656 |   done | 
 | 8657 | IFS=$as_save_IFS | 
 | 8658 |  | 
 | 8659 | fi | 
 | 8660 | fi | 
 | 8661 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
 | 8662 | if test -n "$PTHREAD_CC"; then | 
 | 8663 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
 | 8664 | $as_echo "$PTHREAD_CC" >&6; } | 
 | 8665 | else | 
 | 8666 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8667 | $as_echo "no" >&6; } | 
 | 8668 | fi | 
 | 8669 |  | 
 | 8670 |  | 
 | 8671 |   test -n "$PTHREAD_CC" && break | 
 | 8672 | done | 
 | 8673 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
 | 8674 |  | 
 | 8675 |         else | 
 | 8676 |           PTHREAD_CC=$CC | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8677 |         fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8678 | else | 
 | 8679 |         PTHREAD_CC="$CC" | 
 | 8680 | fi | 
 | 8681 |  | 
 | 8682 |  | 
 | 8683 |  | 
 | 8684 |  | 
 | 8685 |  | 
 | 8686 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
 | 8687 | if test x"$ax_pthread_ok" = xyes; then | 
 | 8688 |  | 
 | 8689 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
 | 8690 |  | 
 | 8691 |         : | 
 | 8692 | else | 
 | 8693 |         ax_pthread_ok=no | 
 | 8694 |  | 
 | 8695 | fi | 
 | 8696 | ac_ext=c | 
 | 8697 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8701 |  | 
 | 8702 |  | 
| cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 8703 |     if test "$ax_pthread_ok" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8704 |         have_threads=yes | 
 | 8705 |         DEF_THREAD="$PTHREAD_CFLAGS" | 
 | 8706 |         CFLAGS="$CFLAGS $DEF_THREAD" | 
 | 8707 |         CXXFLAGS="$CXXFLAGS $DEF_THREAD" | 
 | 8708 |         if test "$CC" != "$PTHREAD_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8709 |             { $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] | 8710 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} | 
 | 8711 |             CC="$PTHREAD_CC" | 
 | 8712 |         fi | 
| cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 8713 |  | 
 | 8714 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h | 
 | 8715 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8716 |     fi | 
 | 8717 | fi | 
 | 8718 |  | 
 | 8719 | # Enable support for OpenMP | 
 | 8720 | if test "$have_threads" != 'yes'; then | 
 | 8721 |   ac_cv_prog_c_openmp=unsupported | 
 | 8722 | fi | 
 | 8723 |  | 
 | 8724 |   OPENMP_CFLAGS= | 
 | 8725 |   # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8726 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8727 |   enableval=$enable_openmp; | 
 | 8728 | fi | 
 | 8729 |  | 
 | 8730 |   if test "$enable_openmp" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8731 |     { $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] | 8732 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8733 | if ${ac_cv_prog_c_openmp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8734 |   $as_echo_n "(cached) " >&6 | 
 | 8735 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8736 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8737 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8738 |  | 
 | 8739 | #ifndef _OPENMP | 
 | 8740 |  choke me | 
 | 8741 | #endif | 
 | 8742 | #include <omp.h> | 
 | 8743 | int main () { return omp_get_num_threads (); } | 
 | 8744 |  | 
 | 8745 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8746 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8747 |   ac_cv_prog_c_openmp='none needed' | 
 | 8748 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8749 |   ac_cv_prog_c_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8750 | 	  	  	  	  	  	  	  	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
 | 8751 | 	    ac_save_CFLAGS=$CFLAGS | 
 | 8752 | 	    CFLAGS="$CFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8753 | 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8754 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8755 |  | 
 | 8756 | #ifndef _OPENMP | 
 | 8757 |  choke me | 
 | 8758 | #endif | 
 | 8759 | #include <omp.h> | 
 | 8760 | int main () { return omp_get_num_threads (); } | 
 | 8761 |  | 
 | 8762 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8763 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8764 |   ac_cv_prog_c_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8765 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8766 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8767 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8768 | 	    CFLAGS=$ac_save_CFLAGS | 
 | 8769 | 	    if test "$ac_cv_prog_c_openmp" != unsupported; then | 
 | 8770 | 	      break | 
 | 8771 | 	    fi | 
 | 8772 | 	  done | 
 | 8773 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8774 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8775 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8776 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8777 | { $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] | 8778 | $as_echo "$ac_cv_prog_c_openmp" >&6; } | 
 | 8779 |     case $ac_cv_prog_c_openmp in #( | 
 | 8780 |       "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8781 | 	;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8782 |       *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8783 | 	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8784 |     esac | 
 | 8785 |   fi | 
 | 8786 |  | 
 | 8787 |  | 
 | 8788 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" | 
 | 8789 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" | 
 | 8790 |  | 
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 8791 | if test "$enable_openmp" != no; then | 
 | 8792 |   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then | 
 | 8793 |     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" | 
 | 8794 |   fi | 
 | 8795 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8796 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8797 | # Enable support for OpenCL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8798 |  | 
 | 8799 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8800 | ac_ext=c | 
 | 8801 | ac_cpp='$CPP $CPPFLAGS' | 
 | 8802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 8803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 8804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 8805 |  | 
 | 8806 | ax_pthread_ok=no | 
 | 8807 |  | 
 | 8808 | # We used to check for pthread.h first, but this fails if pthread.h | 
 | 8809 | # requires special compiler flags (e.g. on True64 or Sequent). | 
 | 8810 | # It gets checked for in the link test anyway. | 
 | 8811 |  | 
 | 8812 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
 | 8813 | # etcetera environment variables, and if threads linking works using | 
 | 8814 | # them: | 
 | 8815 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
 | 8816 |         save_CFLAGS="$CFLAGS" | 
 | 8817 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 8818 |         save_LIBS="$LIBS" | 
 | 8819 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 8820 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
 | 8821 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
 | 8822 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8823 | /* end confdefs.h.  */ | 
 | 8824 |  | 
 | 8825 | /* Override any GCC internal prototype to avoid an error. | 
 | 8826 |    Use char because int might match the return type of a GCC | 
 | 8827 |    builtin and then its argument prototype would still apply.  */ | 
 | 8828 | #ifdef __cplusplus | 
 | 8829 | extern "C" | 
 | 8830 | #endif | 
 | 8831 | char pthread_join (); | 
 | 8832 | int | 
 | 8833 | main () | 
 | 8834 | { | 
 | 8835 | return pthread_join (); | 
 | 8836 |   ; | 
 | 8837 |   return 0; | 
 | 8838 | } | 
 | 8839 | _ACEOF | 
 | 8840 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 8841 |   ax_pthread_ok=yes | 
 | 8842 | fi | 
 | 8843 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 8844 |     conftest$ac_exeext conftest.$ac_ext | 
 | 8845 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
 | 8846 | $as_echo "$ax_pthread_ok" >&6; } | 
 | 8847 |         if test x"$ax_pthread_ok" = xno; then | 
 | 8848 |                 PTHREAD_LIBS="" | 
 | 8849 |                 PTHREAD_CFLAGS="" | 
 | 8850 |         fi | 
 | 8851 |         LIBS="$save_LIBS" | 
 | 8852 |         CFLAGS="$save_CFLAGS" | 
 | 8853 | fi | 
 | 8854 |  | 
 | 8855 | # We must check for the threads library under a number of different | 
 | 8856 | # names; the ordering is very important because some systems | 
 | 8857 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
 | 8858 | # libraries is broken (non-POSIX). | 
 | 8859 |  | 
 | 8860 | # Create a list of thread flags to try.  Items starting with a "-" are | 
 | 8861 | # C compiler flags, and other items are library names, except for "none" | 
 | 8862 | # which indicates that we try without any flags at all, and "pthread-config" | 
 | 8863 | # which is a program returning the flags for the Pth emulation library. | 
 | 8864 |  | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 8865 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8866 |  | 
 | 8867 | # The ordering *is* (sometimes) important.  Some notes on the | 
 | 8868 | # individual items follow: | 
 | 8869 |  | 
 | 8870 | # pthreads: AIX (must check this before -lpthread) | 
 | 8871 | # none: in case threads are in libc; should be tried before -Kthread and | 
 | 8872 | #       other compiler flags to prevent continual compiler warnings | 
 | 8873 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
 | 8874 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
 | 8875 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
 | 8876 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
 | 8877 | # -pthreads: Solaris/gcc | 
 | 8878 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
 | 8879 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
 | 8880 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
 | 8881 | #      also defines -D_REENTRANT) | 
 | 8882 | #      ... -mt is also the pthreads flag for HP/aCC | 
 | 8883 | # pthread: Linux, etcetera | 
 | 8884 | # --thread-safe: KAI C++ | 
 | 8885 | # pthread-config: use pthread-config program (for GNU Pth library) | 
 | 8886 |  | 
 | 8887 | case "${host_cpu}-${host_os}" in | 
 | 8888 |         *solaris*) | 
 | 8889 |  | 
 | 8890 |         # On Solaris (at least, for some versions), libc contains stubbed | 
 | 8891 |         # (non-functional) versions of the pthreads routines, so link-based | 
 | 8892 |         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
 | 8893 |         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
 | 8894 |         # a function called by this macro, so we could check for that, but | 
 | 8895 |         # who knows whether they'll stub that too in a future libc.)  So, | 
 | 8896 |         # we'll just look for -pthreads and -lpthread first: | 
 | 8897 |  | 
 | 8898 |         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
 | 8899 |         ;; | 
 | 8900 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8901 |         *-darwin*) | 
 | 8902 |         ax_pthread_flags="-pthread $ax_pthread_flags" | 
 | 8903 |         ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8904 | esac | 
 | 8905 |  | 
 | 8906 | if test x"$ax_pthread_ok" = xno; then | 
 | 8907 | for flag in $ax_pthread_flags; do | 
 | 8908 |  | 
 | 8909 |         case $flag in | 
 | 8910 |                 none) | 
 | 8911 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
 | 8912 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
 | 8913 |                 ;; | 
 | 8914 |  | 
 | 8915 |                 -*) | 
 | 8916 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
 | 8917 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
 | 8918 |                 PTHREAD_CFLAGS="$flag" | 
 | 8919 |                 ;; | 
 | 8920 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8921 |                 pthread-config) | 
 | 8922 |                 # Extract the first word of "pthread-config", so it can be a program name with args. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8923 | set dummy pthread-config; ac_word=$2 | 
 | 8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 8925 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8926 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8927 |   $as_echo_n "(cached) " >&6 | 
 | 8928 | else | 
 | 8929 |   if test -n "$ax_pthread_config"; then | 
 | 8930 |   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
 | 8931 | else | 
 | 8932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 8933 | for as_dir in $PATH | 
 | 8934 | do | 
 | 8935 |   IFS=$as_save_IFS | 
 | 8936 |   test -z "$as_dir" && as_dir=. | 
 | 8937 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 8938 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 8939 |     ac_cv_prog_ax_pthread_config="yes" | 
 | 8940 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 8941 |     break 2 | 
 | 8942 |   fi | 
 | 8943 | done | 
 | 8944 |   done | 
 | 8945 | IFS=$as_save_IFS | 
 | 8946 |  | 
 | 8947 |   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
 | 8948 | fi | 
 | 8949 | fi | 
 | 8950 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
 | 8951 | if test -n "$ax_pthread_config"; then | 
 | 8952 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
 | 8953 | $as_echo "$ax_pthread_config" >&6; } | 
 | 8954 | else | 
 | 8955 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 8956 | $as_echo "no" >&6; } | 
 | 8957 | fi | 
 | 8958 |  | 
 | 8959 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8960 |                 if test x"$ax_pthread_config" = xno; then continue; fi | 
 | 8961 |                 PTHREAD_CFLAGS="`pthread-config --cflags`" | 
 | 8962 |                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
 | 8963 |                 ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8964 |  | 
 | 8965 |                 *) | 
 | 8966 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
 | 8967 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
 | 8968 |                 PTHREAD_LIBS="-l$flag" | 
 | 8969 |                 ;; | 
 | 8970 |         esac | 
 | 8971 |  | 
 | 8972 |         save_LIBS="$LIBS" | 
 | 8973 |         save_CFLAGS="$CFLAGS" | 
 | 8974 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 8975 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 8976 |  | 
 | 8977 |         # Check for various functions.  We must include pthread.h, | 
 | 8978 |         # since some functions may be macros.  (On the Sequent, we | 
 | 8979 |         # need a special flag -Kthread to make this header compile.) | 
 | 8980 |         # We check for pthread_join because it is in -lpthread on IRIX | 
 | 8981 |         # while pthread_create is in libc.  We check for pthread_attr_init | 
 | 8982 |         # due to DEC craziness with -lpthreads.  We check for | 
 | 8983 |         # pthread_cleanup_push because it is one of the few pthread | 
 | 8984 |         # functions on Solaris that doesn't have a non-functional libc stub. | 
 | 8985 |         # We try pthread_create on general principles. | 
 | 8986 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 8987 | /* end confdefs.h.  */ | 
 | 8988 | #include <pthread.h> | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8989 |                         static void routine(void *a) { a = 0; } | 
 | 8990 |                         static void *start_routine(void *a) { return a; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8991 | int | 
 | 8992 | main () | 
 | 8993 | { | 
 | 8994 | pthread_t th; pthread_attr_t attr; | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 8995 |                         pthread_create(&th, 0, start_routine, 0); | 
 | 8996 |                         pthread_join(th, 0); | 
 | 8997 |                         pthread_attr_init(&attr); | 
 | 8998 |                         pthread_cleanup_push(routine, 0); | 
 | 8999 |                         pthread_cleanup_pop(0) /* ; */ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9000 |   ; | 
 | 9001 |   return 0; | 
 | 9002 | } | 
 | 9003 | _ACEOF | 
 | 9004 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9005 |   ax_pthread_ok=yes | 
 | 9006 | fi | 
 | 9007 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9008 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9009 |  | 
 | 9010 |         LIBS="$save_LIBS" | 
 | 9011 |         CFLAGS="$save_CFLAGS" | 
 | 9012 |  | 
 | 9013 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
 | 9014 | $as_echo "$ax_pthread_ok" >&6; } | 
 | 9015 |         if test "x$ax_pthread_ok" = xyes; then | 
 | 9016 |                 break; | 
 | 9017 |         fi | 
 | 9018 |  | 
 | 9019 |         PTHREAD_LIBS="" | 
 | 9020 |         PTHREAD_CFLAGS="" | 
 | 9021 | done | 
 | 9022 | fi | 
 | 9023 |  | 
 | 9024 | # Various other checks: | 
 | 9025 | if test "x$ax_pthread_ok" = xyes; then | 
 | 9026 |         save_LIBS="$LIBS" | 
 | 9027 |         LIBS="$PTHREAD_LIBS $LIBS" | 
 | 9028 |         save_CFLAGS="$CFLAGS" | 
 | 9029 |         CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
 | 9030 |  | 
 | 9031 |         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9032 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9033 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9034 |         attr_name=unknown | 
 | 9035 |         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
 | 9036 |             cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9037 | /* end confdefs.h.  */ | 
 | 9038 | #include <pthread.h> | 
 | 9039 | int | 
 | 9040 | main () | 
 | 9041 | { | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9042 | int attr = $attr; return attr /* ; */ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9043 |   ; | 
 | 9044 |   return 0; | 
 | 9045 | } | 
 | 9046 | _ACEOF | 
 | 9047 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9048 |   attr_name=$attr; break | 
 | 9049 | fi | 
 | 9050 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9051 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9052 |         done | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9053 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
 | 9054 | $as_echo "$attr_name" >&6; } | 
 | 9055 |         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
 | 9056 |  | 
 | 9057 | cat >>confdefs.h <<_ACEOF | 
 | 9058 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
 | 9059 | _ACEOF | 
 | 9060 |  | 
 | 9061 |         fi | 
 | 9062 |  | 
 | 9063 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
 | 9064 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
 | 9065 |         flag=no | 
 | 9066 |         case "${host_cpu}-${host_os}" in | 
 | 9067 |             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
 | 9068 |             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
 | 9069 |         esac | 
 | 9070 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
 | 9071 | $as_echo "${flag}" >&6; } | 
 | 9072 |         if test "x$flag" != xno; then | 
 | 9073 |             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
 | 9074 |         fi | 
 | 9075 |  | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9076 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 | 
 | 9077 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } | 
 | 9078 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : | 
 | 9079 |   $as_echo_n "(cached) " >&6 | 
 | 9080 | else | 
 | 9081 |  | 
 | 9082 |                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9083 | /* end confdefs.h.  */ | 
 | 9084 |  | 
 | 9085 |                     #include <pthread.h> | 
 | 9086 | int | 
 | 9087 | main () | 
 | 9088 | { | 
 | 9089 | int i = PTHREAD_PRIO_INHERIT; | 
 | 9090 |   ; | 
 | 9091 |   return 0; | 
 | 9092 | } | 
 | 9093 | _ACEOF | 
 | 9094 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9095 |   ax_cv_PTHREAD_PRIO_INHERIT=yes | 
 | 9096 | else | 
 | 9097 |   ax_cv_PTHREAD_PRIO_INHERIT=no | 
 | 9098 | fi | 
 | 9099 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9100 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9101 |  | 
 | 9102 | fi | 
 | 9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 | 
 | 9104 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | 
 | 9105 |         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : | 
 | 9106 |  | 
 | 9107 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h | 
 | 9108 |  | 
 | 9109 | fi | 
 | 9110 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9111 |         LIBS="$save_LIBS" | 
 | 9112 |         CFLAGS="$save_CFLAGS" | 
 | 9113 |  | 
 | 9114 |         # More AIX lossage: must compile with xlc_r or cc_r | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9115 |         if test x"$GCC" != xyes; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9116 |           for ac_prog in xlc_r cc_r | 
 | 9117 | do | 
 | 9118 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 9119 | set dummy $ac_prog; ac_word=$2 | 
 | 9120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9121 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9122 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9123 |   $as_echo_n "(cached) " >&6 | 
 | 9124 | else | 
 | 9125 |   if test -n "$PTHREAD_CC"; then | 
 | 9126 |   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
 | 9127 | else | 
 | 9128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9129 | for as_dir in $PATH | 
 | 9130 | do | 
 | 9131 |   IFS=$as_save_IFS | 
 | 9132 |   test -z "$as_dir" && as_dir=. | 
 | 9133 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9134 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 9135 |     ac_cv_prog_PTHREAD_CC="$ac_prog" | 
 | 9136 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9137 |     break 2 | 
 | 9138 |   fi | 
 | 9139 | done | 
 | 9140 |   done | 
 | 9141 | IFS=$as_save_IFS | 
 | 9142 |  | 
 | 9143 | fi | 
 | 9144 | fi | 
 | 9145 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
 | 9146 | if test -n "$PTHREAD_CC"; then | 
 | 9147 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
 | 9148 | $as_echo "$PTHREAD_CC" >&6; } | 
 | 9149 | else | 
 | 9150 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9151 | $as_echo "no" >&6; } | 
 | 9152 | fi | 
 | 9153 |  | 
 | 9154 |  | 
 | 9155 |   test -n "$PTHREAD_CC" && break | 
 | 9156 | done | 
 | 9157 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
 | 9158 |  | 
 | 9159 |         else | 
 | 9160 |           PTHREAD_CC=$CC | 
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9161 |         fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9162 | else | 
 | 9163 |         PTHREAD_CC="$CC" | 
 | 9164 | fi | 
 | 9165 |  | 
 | 9166 |  | 
 | 9167 |  | 
 | 9168 |  | 
 | 9169 |  | 
 | 9170 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
 | 9171 | if test x"$ax_pthread_ok" = xyes; then | 
 | 9172 |  | 
 | 9173 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
 | 9174 |  | 
 | 9175 |         : | 
 | 9176 | else | 
 | 9177 |         ax_pthread_ok=no | 
 | 9178 |  | 
 | 9179 | fi | 
 | 9180 | ac_ext=c | 
 | 9181 | ac_cpp='$CPP $CPPFLAGS' | 
 | 9182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 9185 |  | 
 | 9186 |  | 
 | 9187 |  | 
 | 9188 | # Check whether --enable-opencl was given. | 
 | 9189 | if test "${enable_opencl+set}" = set; then : | 
 | 9190 |   enableval=$enable_opencl; disable_opencl=$enableval | 
 | 9191 | else | 
 | 9192 |   disable_opencl='yes' | 
 | 9193 | fi | 
 | 9194 |  | 
 | 9195 |  | 
 | 9196 | if test "$disable_opencl" = 'yes'; then | 
 | 9197 |   ac_ext=c | 
 | 9198 | ac_cpp='$CPP $CPPFLAGS' | 
 | 9199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 9202 |  | 
 | 9203 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
 | 9204 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9205 | if ${ax_cv_c_compiler_ms+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9206 |   $as_echo_n "(cached) " >&6 | 
 | 9207 | else | 
 | 9208 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9209 | /* end confdefs.h.  */ | 
 | 9210 |  | 
 | 9211 | int | 
 | 9212 | main () | 
 | 9213 | { | 
 | 9214 | #ifndef _MSC_VER | 
 | 9215 |        choke me | 
 | 9216 | #endif | 
 | 9217 |  | 
 | 9218 |   ; | 
 | 9219 |   return 0; | 
 | 9220 | } | 
 | 9221 | _ACEOF | 
 | 9222 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 9223 |   ax_compiler_ms=yes | 
 | 9224 | else | 
 | 9225 |   ax_compiler_ms=no | 
 | 9226 | fi | 
 | 9227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9228 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
 | 9229 |  | 
 | 9230 | fi | 
 | 9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
 | 9232 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
 | 9233 |   if test X$ax_compiler_ms = Xno; then : | 
 | 9234 |   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" | 
 | 9235 | fi | 
 | 9236 |  | 
 | 9237 |   ax_save_CPPFLAGS=$CPPFLAGS | 
 | 9238 |   CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
 | 9239 |   for ac_header in CL/cl.h OpenCL/cl.h | 
 | 9240 | do : | 
 | 9241 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 9242 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9243 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9244 |   cat >>confdefs.h <<_ACEOF | 
 | 9245 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 9246 | _ACEOF | 
 | 9247 |  | 
 | 9248 | fi | 
 | 9249 |  | 
 | 9250 | done | 
 | 9251 |  | 
 | 9252 |   CPPFLAGS=$ax_save_CPPFLAGS | 
 | 9253 |  | 
 | 9254 |   for ac_header in windows.h | 
 | 9255 | do : | 
 | 9256 |   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9257 | if test "x$ac_cv_header_windows_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9258 |   cat >>confdefs.h <<_ACEOF | 
 | 9259 | #define HAVE_WINDOWS_H 1 | 
 | 9260 | _ACEOF | 
 | 9261 |  | 
 | 9262 | fi | 
 | 9263 |  | 
 | 9264 | done | 
 | 9265 |  | 
 | 9266 |  | 
 | 9267 |  | 
 | 9268 |  | 
 | 9269 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 | 
 | 9270 | $as_echo_n "checking for OpenCL library... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9271 | if ${ax_cv_check_cl_libcl+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9272 |   $as_echo_n "(cached) " >&6 | 
 | 9273 | else | 
 | 9274 |   ax_cv_check_cl_libcl=no | 
 | 9275 |   case $host_cpu in | 
 | 9276 |     x86_64) ax_check_cl_libdir=lib64 ;; | 
 | 9277 |     *)      ax_check_cl_libdir=lib ;; | 
 | 9278 |   esac | 
 | 9279 |   ax_save_CPPFLAGS=$CPPFLAGS | 
 | 9280 |   CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
 | 9281 |   ax_save_LIBS=$LIBS | 
 | 9282 |   LIBS="" | 
 | 9283 |   ax_check_libs="-lOpenCL -lCL -lclparser" | 
 | 9284 |   for ax_lib in $ax_check_libs; do | 
 | 9285 |     if test X$ax_compiler_ms = Xyes; then : | 
 | 9286 |   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` | 
 | 9287 | else | 
 | 9288 |   ax_try_lib=$ax_lib | 
 | 9289 | fi | 
 | 9290 |     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" | 
 | 9291 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9292 | /* end confdefs.h.  */ | 
 | 9293 |  | 
 | 9294 |   # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
 | 9295 |   #   include <windows.h> | 
 | 9296 |   # endif | 
 | 9297 |   # ifdef HAVE_CL_CL_H | 
 | 9298 |   #   include <CL/cl.h> | 
 | 9299 |   # elif defined(HAVE_OPENCL_CL_H) | 
 | 9300 |   #   include <OpenCL/cl.h> | 
 | 9301 |   # else | 
 | 9302 |   #   error no CL.h | 
 | 9303 |   # endif | 
 | 9304 | int | 
 | 9305 | main () | 
 | 9306 | { | 
 | 9307 | clCreateContextFromType(0,0,0,0,0) | 
 | 9308 |   ; | 
 | 9309 |   return 0; | 
 | 9310 | } | 
 | 9311 | _ACEOF | 
 | 9312 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9313 |   ax_cv_check_cl_libcl=$ax_try_lib; break | 
 | 9314 | else | 
 | 9315 |   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" | 
 | 9316 |                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9317 | /* end confdefs.h.  */ | 
 | 9318 |  | 
 | 9319 |   # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
 | 9320 |   #   include <windows.h> | 
 | 9321 |   # endif | 
 | 9322 |   # ifdef HAVE_CL_CL_H | 
 | 9323 |   #   include <CL/cl.h> | 
 | 9324 |   # elif defined(HAVE_OPENCL_CL_H) | 
 | 9325 |   #   include <OpenCL/cl.h> | 
 | 9326 |   # else | 
 | 9327 |   #   error no CL.h | 
 | 9328 |   # endif | 
 | 9329 | int | 
 | 9330 | main () | 
 | 9331 | { | 
 | 9332 | clCreateContextFromType(0,0,0,0,0) | 
 | 9333 |   ; | 
 | 9334 |   return 0; | 
 | 9335 | } | 
 | 9336 | _ACEOF | 
 | 9337 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9338 |   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break | 
 | 9339 | else | 
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9340 |   ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9341 |                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9342 | /* end confdefs.h.  */ | 
 | 9343 |  | 
 | 9344 |   # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
 | 9345 |   #   include <windows.h> | 
 | 9346 |   # endif | 
 | 9347 |   # ifdef HAVE_CL_CL_H | 
 | 9348 |   #   include <CL/cl.h> | 
 | 9349 |   # elif defined(HAVE_OPENCL_CL_H) | 
 | 9350 |   #   include <OpenCL/cl.h> | 
 | 9351 |   # else | 
 | 9352 |   #   error no CL.h | 
 | 9353 |   # endif | 
 | 9354 | int | 
 | 9355 | main () | 
 | 9356 | { | 
 | 9357 | clCreateContextFromType(0,0,0,0,0) | 
 | 9358 |   ; | 
 | 9359 |   return 0; | 
 | 9360 | } | 
 | 9361 | _ACEOF | 
 | 9362 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9363 |   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break | 
 | 9364 | fi | 
 | 9365 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9366 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9367 | fi | 
 | 9368 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9369 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9370 | fi | 
 | 9371 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9372 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9373 |   done | 
 | 9374 |  | 
| cristy | c3f8b8e | 2011-12-22 14:55:16 +0000 | [diff] [blame] | 9375 |   if test "X$ax_cv_check_cl_libcl" = Xno; then : | 
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9376 |   LIBS='-Wl,-framework,OpenCL' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9377 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9378 | /* end confdefs.h.  */ | 
 | 9379 |  | 
 | 9380 |   # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
 | 9381 |   #   include <windows.h> | 
 | 9382 |   # endif | 
 | 9383 |   # ifdef HAVE_CL_CL_H | 
 | 9384 |   #   include <CL/cl.h> | 
 | 9385 |   # elif defined(HAVE_OPENCL_CL_H) | 
 | 9386 |   #   include <OpenCL/cl.h> | 
 | 9387 |   # else | 
 | 9388 |   #   error no CL.h | 
 | 9389 |   # endif | 
 | 9390 | int | 
 | 9391 | main () | 
 | 9392 | { | 
 | 9393 | clCreateContextFromType(0,0,0,0,0) | 
 | 9394 |   ; | 
 | 9395 |   return 0; | 
 | 9396 | } | 
 | 9397 | _ACEOF | 
 | 9398 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 9399 |   ax_cv_check_cl_libcl=$LIBS | 
 | 9400 | fi | 
 | 9401 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9402 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9403 | fi | 
 | 9404 |  | 
 | 9405 |   LIBS=$ax_save_LIBS | 
 | 9406 |   CPPFLAGS=$ax_save_CPPFLAGS | 
 | 9407 | fi | 
 | 9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 | 
 | 9409 | $as_echo "$ax_cv_check_cl_libcl" >&6; } | 
 | 9410 |  | 
 | 9411 |   if test "X$ax_cv_check_cl_libcl" = Xno; then : | 
 | 9412 |   no_cl=yes; CL_CFLAGS=""; CL_LIBS="" | 
 | 9413 | else | 
 | 9414 |   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; | 
 | 9415 | $as_echo "#define _OPENCL 1" >>confdefs.h | 
 | 9416 |  | 
 | 9417 | fi | 
 | 9418 |   ac_ext=c | 
 | 9419 | ac_cpp='$CPP $CPPFLAGS' | 
 | 9420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 9421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 9422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 9423 |  | 
 | 9424 | fi | 
 | 9425 |  | 
 | 9426 |  | 
 | 9427 |  | 
 | 9428 |  | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9429 | CFLAGS="$CL_CFLAGS $CFLAGS" | 
 | 9430 | LIBS="$CL_LIBS $LIBS" | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9431 |  | 
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9432 | if test "$enable_opencl" != no; then | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 9433 |   if test "X$ax_cv_check_cl_libcl" != Xno; then : | 
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9434 |     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" | 
 | 9435 |   fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 9436 | fi | 
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 9437 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9438 | ######## | 
 | 9439 | # | 
 | 9440 | # Check for large file support | 
 | 9441 | # | 
 | 9442 | ######## | 
 | 9443 | # Check whether --enable-largefile was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9444 | if test "${enable_largefile+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9445 |   enableval=$enable_largefile; | 
 | 9446 | fi | 
 | 9447 |  | 
 | 9448 | if test "$enable_largefile" != no; then | 
 | 9449 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9450 |   { $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] | 9451 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9452 | if ${ac_cv_sys_largefile_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9453 |   $as_echo_n "(cached) " >&6 | 
 | 9454 | else | 
 | 9455 |   ac_cv_sys_largefile_CC=no | 
 | 9456 |      if test "$GCC" != yes; then | 
 | 9457 |        ac_save_CC=$CC | 
 | 9458 |        while :; do | 
 | 9459 | 	 # IRIX 6.2 and later do not support large files by default, | 
 | 9460 | 	 # so use the C compiler's -n32 option if that helps. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9461 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9462 | /* end confdefs.h.  */ | 
 | 9463 | #include <sys/types.h> | 
 | 9464 |  /* Check that off_t can represent 2**63 - 1 correctly. | 
 | 9465 |     We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
 | 9466 |     since some C++ compilers masquerading as C compilers | 
 | 9467 |     incorrectly reject 9223372036854775807.  */ | 
 | 9468 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
 | 9469 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
 | 9470 | 		       && LARGE_OFF_T % 2147483647 == 1) | 
 | 9471 | 		      ? 1 : -1]; | 
 | 9472 | int | 
 | 9473 | main () | 
 | 9474 | { | 
 | 9475 |  | 
 | 9476 |   ; | 
 | 9477 |   return 0; | 
 | 9478 | } | 
 | 9479 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9480 | 	 if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9481 |   break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9482 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9483 | rm -f core conftest.err conftest.$ac_objext | 
 | 9484 | 	 CC="$CC -n32" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9485 | 	 if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9486 |   ac_cv_sys_largefile_CC=' -n32'; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9487 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9488 | rm -f core conftest.err conftest.$ac_objext | 
 | 9489 | 	 break | 
 | 9490 |        done | 
 | 9491 |        CC=$ac_save_CC | 
 | 9492 |        rm -f conftest.$ac_ext | 
 | 9493 |     fi | 
 | 9494 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9495 | { $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] | 9496 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | 
 | 9497 |   if test "$ac_cv_sys_largefile_CC" != no; then | 
 | 9498 |     CC=$CC$ac_cv_sys_largefile_CC | 
 | 9499 |   fi | 
 | 9500 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9501 |   { $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] | 9502 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9503 | if ${ac_cv_sys_file_offset_bits+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9504 |   $as_echo_n "(cached) " >&6 | 
 | 9505 | else | 
 | 9506 |   while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9507 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9508 | /* end confdefs.h.  */ | 
 | 9509 | #include <sys/types.h> | 
 | 9510 |  /* Check that off_t can represent 2**63 - 1 correctly. | 
 | 9511 |     We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
 | 9512 |     since some C++ compilers masquerading as C compilers | 
 | 9513 |     incorrectly reject 9223372036854775807.  */ | 
 | 9514 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
 | 9515 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
 | 9516 | 		       && LARGE_OFF_T % 2147483647 == 1) | 
 | 9517 | 		      ? 1 : -1]; | 
 | 9518 | int | 
 | 9519 | main () | 
 | 9520 | { | 
 | 9521 |  | 
 | 9522 |   ; | 
 | 9523 |   return 0; | 
 | 9524 | } | 
 | 9525 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9526 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9527 |   ac_cv_sys_file_offset_bits=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9528 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9530 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9531 | /* end confdefs.h.  */ | 
 | 9532 | #define _FILE_OFFSET_BITS 64 | 
 | 9533 | #include <sys/types.h> | 
 | 9534 |  /* Check that off_t can represent 2**63 - 1 correctly. | 
 | 9535 |     We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
 | 9536 |     since some C++ compilers masquerading as C compilers | 
 | 9537 |     incorrectly reject 9223372036854775807.  */ | 
 | 9538 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
 | 9539 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
 | 9540 | 		       && LARGE_OFF_T % 2147483647 == 1) | 
 | 9541 | 		      ? 1 : -1]; | 
 | 9542 | int | 
 | 9543 | main () | 
 | 9544 | { | 
 | 9545 |  | 
 | 9546 |   ; | 
 | 9547 |   return 0; | 
 | 9548 | } | 
 | 9549 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9550 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9551 |   ac_cv_sys_file_offset_bits=64; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9552 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9554 |   ac_cv_sys_file_offset_bits=unknown | 
 | 9555 |   break | 
 | 9556 | done | 
 | 9557 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9558 | { $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] | 9559 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | 
 | 9560 | case $ac_cv_sys_file_offset_bits in #( | 
 | 9561 |   no | unknown) ;; | 
 | 9562 |   *) | 
 | 9563 | cat >>confdefs.h <<_ACEOF | 
 | 9564 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 
 | 9565 | _ACEOF | 
 | 9566 | ;; | 
 | 9567 | esac | 
 | 9568 | rm -rf conftest* | 
 | 9569 |   if test $ac_cv_sys_file_offset_bits = unknown; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9570 |     { $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] | 9571 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9572 | if ${ac_cv_sys_large_files+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9573 |   $as_echo_n "(cached) " >&6 | 
 | 9574 | else | 
 | 9575 |   while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9576 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9577 | /* end confdefs.h.  */ | 
 | 9578 | #include <sys/types.h> | 
 | 9579 |  /* Check that off_t can represent 2**63 - 1 correctly. | 
 | 9580 |     We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
 | 9581 |     since some C++ compilers masquerading as C compilers | 
 | 9582 |     incorrectly reject 9223372036854775807.  */ | 
 | 9583 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
 | 9584 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
 | 9585 | 		       && LARGE_OFF_T % 2147483647 == 1) | 
 | 9586 | 		      ? 1 : -1]; | 
 | 9587 | int | 
 | 9588 | main () | 
 | 9589 | { | 
 | 9590 |  | 
 | 9591 |   ; | 
 | 9592 |   return 0; | 
 | 9593 | } | 
 | 9594 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9595 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9596 |   ac_cv_sys_large_files=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9597 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9599 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9600 | /* end confdefs.h.  */ | 
 | 9601 | #define _LARGE_FILES 1 | 
 | 9602 | #include <sys/types.h> | 
 | 9603 |  /* Check that off_t can represent 2**63 - 1 correctly. | 
 | 9604 |     We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
 | 9605 |     since some C++ compilers masquerading as C compilers | 
 | 9606 |     incorrectly reject 9223372036854775807.  */ | 
 | 9607 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
 | 9608 |   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
 | 9609 | 		       && LARGE_OFF_T % 2147483647 == 1) | 
 | 9610 | 		      ? 1 : -1]; | 
 | 9611 | int | 
 | 9612 | main () | 
 | 9613 | { | 
 | 9614 |  | 
 | 9615 |   ; | 
 | 9616 |   return 0; | 
 | 9617 | } | 
 | 9618 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9619 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9620 |   ac_cv_sys_large_files=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9621 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 9623 |   ac_cv_sys_large_files=unknown | 
 | 9624 |   break | 
 | 9625 | done | 
 | 9626 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9627 | { $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] | 9628 | $as_echo "$ac_cv_sys_large_files" >&6; } | 
 | 9629 | case $ac_cv_sys_large_files in #( | 
 | 9630 |   no | unknown) ;; | 
 | 9631 |   *) | 
 | 9632 | cat >>confdefs.h <<_ACEOF | 
 | 9633 | #define _LARGE_FILES $ac_cv_sys_large_files | 
 | 9634 | _ACEOF | 
 | 9635 | ;; | 
 | 9636 | esac | 
 | 9637 | rm -rf conftest* | 
 | 9638 |   fi | 
 | 9639 | fi | 
 | 9640 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9641 | { $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] | 9642 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9643 | if ${ac_cv_sys_largefile_source+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9644 |   $as_echo_n "(cached) " >&6 | 
 | 9645 | else | 
 | 9646 |   while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9647 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9648 | /* end confdefs.h.  */ | 
 | 9649 | #include <sys/types.h> /* for off_t */ | 
 | 9650 |      #include <stdio.h> | 
 | 9651 | int | 
 | 9652 | main () | 
 | 9653 | { | 
 | 9654 | int (*fp) (FILE *, off_t, int) = fseeko; | 
 | 9655 |      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
 | 9656 |   ; | 
 | 9657 |   return 0; | 
 | 9658 | } | 
 | 9659 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9660 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9661 |   ac_cv_sys_largefile_source=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9662 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9663 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9664 |     conftest$ac_exeext conftest.$ac_ext | 
 | 9665 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9666 | /* end confdefs.h.  */ | 
 | 9667 | #define _LARGEFILE_SOURCE 1 | 
 | 9668 | #include <sys/types.h> /* for off_t */ | 
 | 9669 |      #include <stdio.h> | 
 | 9670 | int | 
 | 9671 | main () | 
 | 9672 | { | 
 | 9673 | int (*fp) (FILE *, off_t, int) = fseeko; | 
 | 9674 |      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
 | 9675 |   ; | 
 | 9676 |   return 0; | 
 | 9677 | } | 
 | 9678 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9679 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9680 |   ac_cv_sys_largefile_source=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9681 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9682 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 9683 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9684 |   ac_cv_sys_largefile_source=unknown | 
 | 9685 |   break | 
 | 9686 | done | 
 | 9687 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9688 | { $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] | 9689 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | 
 | 9690 | case $ac_cv_sys_largefile_source in #( | 
 | 9691 |   no | unknown) ;; | 
 | 9692 |   *) | 
 | 9693 | cat >>confdefs.h <<_ACEOF | 
 | 9694 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 
 | 9695 | _ACEOF | 
 | 9696 | ;; | 
 | 9697 | esac | 
 | 9698 | rm -rf conftest* | 
 | 9699 |  | 
 | 9700 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 
 | 9701 | # in glibc 2.1.3, but that breaks too many other things. | 
 | 9702 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 
 | 9703 | if test $ac_cv_sys_largefile_source != unknown; then | 
 | 9704 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9705 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9706 |  | 
 | 9707 | fi | 
 | 9708 |  | 
 | 9709 | LFS_CPPFLAGS='' | 
 | 9710 | if test "$enable_largefile" != no; then | 
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9711 |     case $ac_cv_sys_file_offset_bits in | 
 | 9712 |     no) | 
 | 9713 |         # nothing to do here as the host supports LFS fine | 
 | 9714 |         ;; | 
 | 9715 |     unknown) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9716 |         { $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] | 9717 | $as_echo_n "checking for native large file support... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9718 |         if test "$cross_compiling" = yes; then : | 
 | 9719 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9721 | as_fn_error $? "cannot run test program while cross compiling | 
 | 9722 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9723 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9724 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 9725 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9726 | #include <unistd.h> | 
 | 9727 |           main () { | 
 | 9728 |           exit(!(sizeof(off_t) == 8)); | 
 | 9729 |         } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9730 | int | 
 | 9731 | main () | 
 | 9732 | { | 
 | 9733 |  | 
 | 9734 |   ; | 
 | 9735 |   return 0; | 
 | 9736 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9737 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9738 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 9739 |   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] | 9740 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 9741 |          { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 9742 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9743 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 9744 |   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 9745 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9746 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 9748 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9749 | fi | 
 | 9750 |  | 
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9751 |         ;; | 
 | 9752 |     *) | 
 | 9753 |         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" | 
 | 9754 |         ;; | 
 | 9755 |     esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9756 |     if test "$ac_cv_sys_large_files" != 'no'; then | 
 | 9757 |         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" | 
 | 9758 |     fi | 
 | 9759 |     if test "$ac_cv_sys_largefile_source" != 'no'; then | 
 | 9760 |         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" | 
 | 9761 |     fi | 
 | 9762 | fi | 
 | 9763 |  | 
 | 9764 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9765 | # Configure libtool | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9766 | enable_dlopen=yes | 
 | 9767 |  | 
 | 9768 |  | 
 | 9769 |  | 
 | 9770 | case `pwd` in | 
 | 9771 |   *\ * | *\	*) | 
 | 9772 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | 
 | 9773 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | 
 | 9774 | esac | 
 | 9775 |  | 
 | 9776 |  | 
 | 9777 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 9778 | macro_version='2.4.2' | 
 | 9779 | macro_revision='1.3337' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9780 |  | 
 | 9781 |  | 
 | 9782 |  | 
 | 9783 |  | 
 | 9784 |  | 
 | 9785 |  | 
 | 9786 |  | 
 | 9787 |  | 
 | 9788 |  | 
 | 9789 |  | 
 | 9790 |  | 
 | 9791 |  | 
 | 9792 |  | 
 | 9793 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 9794 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9795 | # Backslashify metacharacters that are still active within | 
 | 9796 | # double-quoted strings. | 
 | 9797 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 
 | 9798 |  | 
 | 9799 | # Same as above, but do not quote variable references. | 
 | 9800 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | 
 | 9801 |  | 
 | 9802 | # Sed substitution to delay expansion of an escaped shell variable in a | 
 | 9803 | # double_quote_subst'ed string. | 
 | 9804 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
 | 9805 |  | 
 | 9806 | # Sed substitution to delay expansion of an escaped single quote. | 
 | 9807 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | 
 | 9808 |  | 
 | 9809 | # Sed substitution to avoid accidental globbing in evaled expressions | 
 | 9810 | no_glob_subst='s/\*/\\\*/g' | 
 | 9811 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | 
 | 9813 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9814 | if ${lt_cv_path_NM+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9815 |   $as_echo_n "(cached) " >&6 | 
 | 9816 | else | 
 | 9817 |   if test -n "$NM"; then | 
 | 9818 |   # Let the user override the test. | 
 | 9819 |   lt_cv_path_NM="$NM" | 
 | 9820 | else | 
 | 9821 |   lt_nm_to_check="${ac_tool_prefix}nm" | 
 | 9822 |   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
 | 9823 |     lt_nm_to_check="$lt_nm_to_check nm" | 
 | 9824 |   fi | 
 | 9825 |   for lt_tmp_nm in $lt_nm_to_check; do | 
 | 9826 |     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 9827 |     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
 | 9828 |       IFS="$lt_save_ifs" | 
 | 9829 |       test -z "$ac_dir" && ac_dir=. | 
 | 9830 |       tmp_nm="$ac_dir/$lt_tmp_nm" | 
 | 9831 |       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
 | 9832 | 	# Check to see if the nm accepts a BSD-compat flag. | 
 | 9833 | 	# Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
 | 9834 | 	#   nm: unknown option "B" ignored | 
 | 9835 | 	# Tru64's nm complains that /dev/null is an invalid object file | 
 | 9836 | 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
 | 9837 | 	*/dev/null* | *'Invalid file or object type'*) | 
 | 9838 | 	  lt_cv_path_NM="$tmp_nm -B" | 
 | 9839 | 	  break | 
 | 9840 | 	  ;; | 
 | 9841 | 	*) | 
 | 9842 | 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
 | 9843 | 	  */dev/null*) | 
 | 9844 | 	    lt_cv_path_NM="$tmp_nm -p" | 
 | 9845 | 	    break | 
 | 9846 | 	    ;; | 
 | 9847 | 	  *) | 
 | 9848 | 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
 | 9849 | 	    continue # so that we can try to find one that supports BSD flags | 
 | 9850 | 	    ;; | 
 | 9851 | 	  esac | 
 | 9852 | 	  ;; | 
 | 9853 | 	esac | 
 | 9854 |       fi | 
 | 9855 |     done | 
 | 9856 |     IFS="$lt_save_ifs" | 
 | 9857 |   done | 
 | 9858 |   : ${lt_cv_path_NM=no} | 
 | 9859 | fi | 
 | 9860 | fi | 
 | 9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | 
 | 9862 | $as_echo "$lt_cv_path_NM" >&6; } | 
 | 9863 | if test "$lt_cv_path_NM" != "no"; then | 
 | 9864 |   NM="$lt_cv_path_NM" | 
 | 9865 | else | 
 | 9866 |   # Didn't find any BSD compatible name lister, look for dumpbin. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9867 |   if test -n "$DUMPBIN"; then : | 
 | 9868 |     # Let the user override the test. | 
 | 9869 |   else | 
 | 9870 |     if test -n "$ac_tool_prefix"; then | 
 | 9871 |   for ac_prog in dumpbin "link -dump" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9872 |   do | 
 | 9873 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 9874 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9876 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9877 | if ${ac_cv_prog_DUMPBIN+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9878 |   $as_echo_n "(cached) " >&6 | 
 | 9879 | else | 
 | 9880 |   if test -n "$DUMPBIN"; then | 
 | 9881 |   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | 
 | 9882 | else | 
 | 9883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9884 | for as_dir in $PATH | 
 | 9885 | do | 
 | 9886 |   IFS=$as_save_IFS | 
 | 9887 |   test -z "$as_dir" && as_dir=. | 
 | 9888 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9889 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 9890 |     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | 
 | 9891 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9892 |     break 2 | 
 | 9893 |   fi | 
 | 9894 | done | 
 | 9895 |   done | 
 | 9896 | IFS=$as_save_IFS | 
 | 9897 |  | 
 | 9898 | fi | 
 | 9899 | fi | 
 | 9900 | DUMPBIN=$ac_cv_prog_DUMPBIN | 
 | 9901 | if test -n "$DUMPBIN"; then | 
 | 9902 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | 
 | 9903 | $as_echo "$DUMPBIN" >&6; } | 
 | 9904 | else | 
 | 9905 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9906 | $as_echo "no" >&6; } | 
 | 9907 | fi | 
 | 9908 |  | 
 | 9909 |  | 
 | 9910 |     test -n "$DUMPBIN" && break | 
 | 9911 |   done | 
 | 9912 | fi | 
 | 9913 | if test -z "$DUMPBIN"; then | 
 | 9914 |   ac_ct_DUMPBIN=$DUMPBIN | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9915 |   for ac_prog in dumpbin "link -dump" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9916 | do | 
 | 9917 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 9918 | set dummy $ac_prog; ac_word=$2 | 
 | 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 9920 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9921 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9922 |   $as_echo_n "(cached) " >&6 | 
 | 9923 | else | 
 | 9924 |   if test -n "$ac_ct_DUMPBIN"; then | 
 | 9925 |   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | 
 | 9926 | else | 
 | 9927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 9928 | for as_dir in $PATH | 
 | 9929 | do | 
 | 9930 |   IFS=$as_save_IFS | 
 | 9931 |   test -z "$as_dir" && as_dir=. | 
 | 9932 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 9933 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 9934 |     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | 
 | 9935 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 9936 |     break 2 | 
 | 9937 |   fi | 
 | 9938 | done | 
 | 9939 |   done | 
 | 9940 | IFS=$as_save_IFS | 
 | 9941 |  | 
 | 9942 | fi | 
 | 9943 | fi | 
 | 9944 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | 
 | 9945 | if test -n "$ac_ct_DUMPBIN"; then | 
 | 9946 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | 
 | 9947 | $as_echo "$ac_ct_DUMPBIN" >&6; } | 
 | 9948 | else | 
 | 9949 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 9950 | $as_echo "no" >&6; } | 
 | 9951 | fi | 
 | 9952 |  | 
 | 9953 |  | 
 | 9954 |   test -n "$ac_ct_DUMPBIN" && break | 
 | 9955 | done | 
 | 9956 |  | 
 | 9957 |   if test "x$ac_ct_DUMPBIN" = x; then | 
 | 9958 |     DUMPBIN=":" | 
 | 9959 |   else | 
 | 9960 |     case $cross_compiling:$ac_tool_warned in | 
 | 9961 | yes:) | 
 | 9962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 9963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 9964 | ac_tool_warned=yes ;; | 
 | 9965 | esac | 
 | 9966 |     DUMPBIN=$ac_ct_DUMPBIN | 
 | 9967 |   fi | 
 | 9968 | fi | 
 | 9969 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9970 |     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | 
 | 9971 |     *COFF*) | 
 | 9972 |       DUMPBIN="$DUMPBIN -symbols" | 
 | 9973 |       ;; | 
 | 9974 |     *) | 
 | 9975 |       DUMPBIN=: | 
 | 9976 |       ;; | 
 | 9977 |     esac | 
 | 9978 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9979 |  | 
 | 9980 |   if test "$DUMPBIN" != ":"; then | 
 | 9981 |     NM="$DUMPBIN" | 
 | 9982 |   fi | 
 | 9983 | fi | 
 | 9984 | test -z "$NM" && NM=nm | 
 | 9985 |  | 
 | 9986 |  | 
 | 9987 |  | 
 | 9988 |  | 
 | 9989 |  | 
 | 9990 |  | 
 | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | 
 | 9992 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9993 | if ${lt_cv_nm_interface+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9994 |   $as_echo_n "(cached) " >&6 | 
 | 9995 | else | 
 | 9996 |   lt_cv_nm_interface="BSD nm" | 
 | 9997 |   echo "int some_variable = 0;" > conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9998 |   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9999 |   (eval "$ac_compile" 2>conftest.err) | 
 | 10000 |   cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10001 |   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10002 |   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 
 | 10003 |   cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10004 |   (eval echo "\"\$as_me:$LINENO: output\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10005 |   cat conftest.out >&5 | 
 | 10006 |   if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 
 | 10007 |     lt_cv_nm_interface="MS dumpbin" | 
 | 10008 |   fi | 
 | 10009 |   rm -f conftest* | 
 | 10010 | fi | 
 | 10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | 
 | 10012 | $as_echo "$lt_cv_nm_interface" >&6; } | 
 | 10013 |  | 
 | 10014 | # find the maximum length of command line arguments | 
 | 10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | 
 | 10016 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10017 | if ${lt_cv_sys_max_cmd_len+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10018 |   $as_echo_n "(cached) " >&6 | 
 | 10019 | else | 
 | 10020 |     i=0 | 
 | 10021 |   teststring="ABCD" | 
 | 10022 |  | 
 | 10023 |   case $build_os in | 
 | 10024 |   msdosdjgpp*) | 
 | 10025 |     # On DJGPP, this test can blow up pretty badly due to problems in libc | 
 | 10026 |     # (any single argument exceeding 2000 bytes causes a buffer overrun | 
 | 10027 |     # during glob expansion).  Even if it were fixed, the result of this | 
 | 10028 |     # check would be larger than it should be. | 
 | 10029 |     lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
 | 10030 |     ;; | 
 | 10031 |  | 
 | 10032 |   gnu*) | 
 | 10033 |     # Under GNU Hurd, this test is not required because there is | 
 | 10034 |     # no limit to the length of command line arguments. | 
 | 10035 |     # Libtool will interpret -1 as no limit whatsoever | 
 | 10036 |     lt_cv_sys_max_cmd_len=-1; | 
 | 10037 |     ;; | 
 | 10038 |  | 
 | 10039 |   cygwin* | mingw* | cegcc*) | 
 | 10040 |     # On Win9x/ME, this test blows up -- it succeeds, but takes | 
 | 10041 |     # about 5 minutes as the teststring grows exponentially. | 
 | 10042 |     # Worse, since 9x/ME are not pre-emptively multitasking, | 
 | 10043 |     # you end up with a "frozen" computer, even though with patience | 
 | 10044 |     # the test eventually succeeds (with a max line length of 256k). | 
 | 10045 |     # Instead, let's just punt: use the minimum linelength reported by | 
 | 10046 |     # all of the supported platforms: 8192 (on NT/2K/XP). | 
 | 10047 |     lt_cv_sys_max_cmd_len=8192; | 
 | 10048 |     ;; | 
 | 10049 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10050 |   mint*) | 
 | 10051 |     # On MiNT this can take a long time and run out of memory. | 
 | 10052 |     lt_cv_sys_max_cmd_len=8192; | 
 | 10053 |     ;; | 
 | 10054 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10055 |   amigaos*) | 
 | 10056 |     # On AmigaOS with pdksh, this test takes hours, literally. | 
 | 10057 |     # So we just punt and use a minimum line length of 8192. | 
 | 10058 |     lt_cv_sys_max_cmd_len=8192; | 
 | 10059 |     ;; | 
 | 10060 |  | 
 | 10061 |   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 
 | 10062 |     # This has been around since 386BSD, at least.  Likely further. | 
 | 10063 |     if test -x /sbin/sysctl; then | 
 | 10064 |       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
 | 10065 |     elif test -x /usr/sbin/sysctl; then | 
 | 10066 |       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
 | 10067 |     else | 
 | 10068 |       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs | 
 | 10069 |     fi | 
 | 10070 |     # And add a safety zone | 
 | 10071 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 10072 |     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
 | 10073 |     ;; | 
 | 10074 |  | 
 | 10075 |   interix*) | 
 | 10076 |     # We know the value 262144 and hardcode it with a safety zone (like BSD) | 
 | 10077 |     lt_cv_sys_max_cmd_len=196608 | 
 | 10078 |     ;; | 
 | 10079 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10080 |   os2*) | 
 | 10081 |     # The test takes a long time on OS/2. | 
 | 10082 |     lt_cv_sys_max_cmd_len=8192 | 
 | 10083 |     ;; | 
 | 10084 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10085 |   osf*) | 
 | 10086 |     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 
 | 10087 |     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 
 | 10088 |     # nice to cause kernel panics so lets avoid the loop below. | 
 | 10089 |     # First set a reasonable default. | 
 | 10090 |     lt_cv_sys_max_cmd_len=16384 | 
 | 10091 |     # | 
 | 10092 |     if test -x /sbin/sysconfig; then | 
 | 10093 |       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 
 | 10094 |         *1*) lt_cv_sys_max_cmd_len=-1 ;; | 
 | 10095 |       esac | 
 | 10096 |     fi | 
 | 10097 |     ;; | 
 | 10098 |   sco3.2v5*) | 
 | 10099 |     lt_cv_sys_max_cmd_len=102400 | 
 | 10100 |     ;; | 
 | 10101 |   sysv5* | sco5v6* | sysv4.2uw2*) | 
 | 10102 |     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 
 | 10103 |     if test -n "$kargmax"; then | 
 | 10104 |       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'` | 
 | 10105 |     else | 
 | 10106 |       lt_cv_sys_max_cmd_len=32768 | 
 | 10107 |     fi | 
 | 10108 |     ;; | 
 | 10109 |   *) | 
 | 10110 |     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 
 | 10111 |     if test -n "$lt_cv_sys_max_cmd_len"; then | 
 | 10112 |       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
 | 10113 |       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
 | 10114 |     else | 
 | 10115 |       # Make teststring a little bigger before we do anything with it. | 
 | 10116 |       # a 1K string should be a reasonable start. | 
 | 10117 |       for i in 1 2 3 4 5 6 7 8 ; do | 
 | 10118 |         teststring=$teststring$teststring | 
 | 10119 |       done | 
 | 10120 |       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
 | 10121 |       # If test is not a shell built-in, we'll probably end up computing a | 
 | 10122 |       # maximum length that is only half of the actual maximum length, but | 
 | 10123 |       # we can't tell. | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10124 |       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10125 | 	         = "X$teststring$teststring"; } >/dev/null 2>&1 && | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10126 | 	      test $i != 17 # 1/2 MB should be enough | 
 | 10127 |       do | 
 | 10128 |         i=`expr $i + 1` | 
 | 10129 |         teststring=$teststring$teststring | 
 | 10130 |       done | 
 | 10131 |       # Only check the string length outside the loop. | 
 | 10132 |       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | 
 | 10133 |       teststring= | 
 | 10134 |       # Add a significant safety factor because C++ compilers can tack on | 
 | 10135 |       # massive amounts of additional arguments before passing them to the | 
 | 10136 |       # linker.  It appears as though 1/2 is a usable value. | 
 | 10137 |       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
 | 10138 |     fi | 
 | 10139 |     ;; | 
 | 10140 |   esac | 
 | 10141 |  | 
 | 10142 | fi | 
 | 10143 |  | 
 | 10144 | if test -n $lt_cv_sys_max_cmd_len ; then | 
 | 10145 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | 
 | 10146 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | 
 | 10147 | else | 
 | 10148 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
 | 10149 | $as_echo "none" >&6; } | 
 | 10150 | fi | 
 | 10151 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
 | 10152 |  | 
 | 10153 |  | 
 | 10154 |  | 
 | 10155 |  | 
 | 10156 |  | 
 | 10157 |  | 
 | 10158 | : ${CP="cp -f"} | 
 | 10159 | : ${MV="mv -f"} | 
 | 10160 | : ${RM="rm -f"} | 
 | 10161 |  | 
 | 10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | 
 | 10163 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | 
 | 10164 | # Try some XSI features | 
 | 10165 | xsi_shell=no | 
 | 10166 | ( _lt_dummy="a/b/c" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10167 |   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | 
 | 10168 |       = c,a/b,b/c, \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10169 |     && eval 'test $(( 1 + 1 )) -eq 2 \ | 
 | 10170 |     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | 
 | 10171 |   && xsi_shell=yes | 
 | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | 
 | 10173 | $as_echo "$xsi_shell" >&6; } | 
 | 10174 |  | 
 | 10175 |  | 
 | 10176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | 
 | 10177 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | 
 | 10178 | lt_shell_append=no | 
 | 10179 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | 
 | 10180 |     >/dev/null 2>&1 \ | 
 | 10181 |   && lt_shell_append=yes | 
 | 10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | 
 | 10183 | $as_echo "$lt_shell_append" >&6; } | 
 | 10184 |  | 
 | 10185 |  | 
 | 10186 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
 | 10187 |   lt_unset=unset | 
 | 10188 | else | 
 | 10189 |   lt_unset=false | 
 | 10190 | fi | 
 | 10191 |  | 
 | 10192 |  | 
 | 10193 |  | 
 | 10194 |  | 
 | 10195 |  | 
 | 10196 | # test EBCDIC or ASCII | 
 | 10197 | case `echo X|tr X '\101'` in | 
 | 10198 |  A) # ASCII based system | 
 | 10199 |     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | 
 | 10200 |   lt_SP2NL='tr \040 \012' | 
 | 10201 |   lt_NL2SP='tr \015\012 \040\040' | 
 | 10202 |   ;; | 
 | 10203 |  *) # EBCDIC based system | 
 | 10204 |   lt_SP2NL='tr \100 \n' | 
 | 10205 |   lt_NL2SP='tr \r\n \100\100' | 
 | 10206 |   ;; | 
 | 10207 | esac | 
 | 10208 |  | 
 | 10209 |  | 
 | 10210 |  | 
 | 10211 |  | 
 | 10212 |  | 
 | 10213 |  | 
 | 10214 |  | 
 | 10215 |  | 
 | 10216 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | 
 | 10218 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | 
 | 10219 | if ${lt_cv_to_host_file_cmd+:} false; then : | 
 | 10220 |   $as_echo_n "(cached) " >&6 | 
 | 10221 | else | 
 | 10222 |   case $host in | 
 | 10223 |   *-*-mingw* ) | 
 | 10224 |     case $build in | 
 | 10225 |       *-*-mingw* ) # actually msys | 
 | 10226 |         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | 
 | 10227 |         ;; | 
 | 10228 |       *-*-cygwin* ) | 
 | 10229 |         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | 
 | 10230 |         ;; | 
 | 10231 |       * ) # otherwise, assume *nix | 
 | 10232 |         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | 
 | 10233 |         ;; | 
 | 10234 |     esac | 
 | 10235 |     ;; | 
 | 10236 |   *-*-cygwin* ) | 
 | 10237 |     case $build in | 
 | 10238 |       *-*-mingw* ) # actually msys | 
 | 10239 |         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | 
 | 10240 |         ;; | 
 | 10241 |       *-*-cygwin* ) | 
 | 10242 |         lt_cv_to_host_file_cmd=func_convert_file_noop | 
 | 10243 |         ;; | 
 | 10244 |       * ) # otherwise, assume *nix | 
 | 10245 |         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | 
 | 10246 |         ;; | 
 | 10247 |     esac | 
 | 10248 |     ;; | 
 | 10249 |   * ) # unhandled hosts (and "normal" native builds) | 
 | 10250 |     lt_cv_to_host_file_cmd=func_convert_file_noop | 
 | 10251 |     ;; | 
 | 10252 | esac | 
 | 10253 |  | 
 | 10254 | fi | 
 | 10255 |  | 
 | 10256 | to_host_file_cmd=$lt_cv_to_host_file_cmd | 
 | 10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | 
 | 10258 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | 
 | 10259 |  | 
 | 10260 |  | 
 | 10261 |  | 
 | 10262 |  | 
 | 10263 |  | 
 | 10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | 
 | 10265 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | 
 | 10266 | if ${lt_cv_to_tool_file_cmd+:} false; then : | 
 | 10267 |   $as_echo_n "(cached) " >&6 | 
 | 10268 | else | 
 | 10269 |   #assume ordinary cross tools, or native build. | 
 | 10270 | lt_cv_to_tool_file_cmd=func_convert_file_noop | 
 | 10271 | case $host in | 
 | 10272 |   *-*-mingw* ) | 
 | 10273 |     case $build in | 
 | 10274 |       *-*-mingw* ) # actually msys | 
 | 10275 |         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | 
 | 10276 |         ;; | 
 | 10277 |     esac | 
 | 10278 |     ;; | 
 | 10279 | esac | 
 | 10280 |  | 
 | 10281 | fi | 
 | 10282 |  | 
 | 10283 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | 
 | 10284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | 
 | 10285 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | 
 | 10286 |  | 
 | 10287 |  | 
 | 10288 |  | 
 | 10289 |  | 
 | 10290 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | 
 | 10292 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10293 | if ${lt_cv_ld_reload_flag+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10294 |   $as_echo_n "(cached) " >&6 | 
 | 10295 | else | 
 | 10296 |   lt_cv_ld_reload_flag='-r' | 
 | 10297 | fi | 
 | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | 
 | 10299 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | 
 | 10300 | reload_flag=$lt_cv_ld_reload_flag | 
 | 10301 | case $reload_flag in | 
 | 10302 | "" | " "*) ;; | 
 | 10303 | *) reload_flag=" $reload_flag" ;; | 
 | 10304 | esac | 
 | 10305 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10306 | case $host_os in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10307 |   cygwin* | mingw* | pw32* | cegcc*) | 
 | 10308 |     if test "$GCC" != yes; then | 
 | 10309 |       reload_cmds=false | 
 | 10310 |     fi | 
 | 10311 |     ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10312 |   darwin*) | 
 | 10313 |     if test "$GCC" = yes; then | 
 | 10314 |       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 
 | 10315 |     else | 
 | 10316 |       reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
 | 10317 |     fi | 
 | 10318 |     ;; | 
 | 10319 | esac | 
 | 10320 |  | 
 | 10321 |  | 
 | 10322 |  | 
 | 10323 |  | 
 | 10324 |  | 
 | 10325 |  | 
 | 10326 |  | 
 | 10327 |  | 
 | 10328 |  | 
 | 10329 | if test -n "$ac_tool_prefix"; then | 
 | 10330 |   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
 | 10331 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
 | 10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10333 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10334 | if ${ac_cv_prog_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10335 |   $as_echo_n "(cached) " >&6 | 
 | 10336 | else | 
 | 10337 |   if test -n "$OBJDUMP"; then | 
 | 10338 |   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
 | 10339 | else | 
 | 10340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10341 | for as_dir in $PATH | 
 | 10342 | do | 
 | 10343 |   IFS=$as_save_IFS | 
 | 10344 |   test -z "$as_dir" && as_dir=. | 
 | 10345 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10346 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 10347 |     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
 | 10348 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10349 |     break 2 | 
 | 10350 |   fi | 
 | 10351 | done | 
 | 10352 |   done | 
 | 10353 | IFS=$as_save_IFS | 
 | 10354 |  | 
 | 10355 | fi | 
 | 10356 | fi | 
 | 10357 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
 | 10358 | if test -n "$OBJDUMP"; then | 
 | 10359 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
 | 10360 | $as_echo "$OBJDUMP" >&6; } | 
 | 10361 | else | 
 | 10362 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10363 | $as_echo "no" >&6; } | 
 | 10364 | fi | 
 | 10365 |  | 
 | 10366 |  | 
 | 10367 | fi | 
 | 10368 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
 | 10369 |   ac_ct_OBJDUMP=$OBJDUMP | 
 | 10370 |   # Extract the first word of "objdump", so it can be a program name with args. | 
 | 10371 | set dummy objdump; ac_word=$2 | 
 | 10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10373 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10374 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10375 |   $as_echo_n "(cached) " >&6 | 
 | 10376 | else | 
 | 10377 |   if test -n "$ac_ct_OBJDUMP"; then | 
 | 10378 |   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
 | 10379 | else | 
 | 10380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10381 | for as_dir in $PATH | 
 | 10382 | do | 
 | 10383 |   IFS=$as_save_IFS | 
 | 10384 |   test -z "$as_dir" && as_dir=. | 
 | 10385 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10386 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 10387 |     ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
 | 10388 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10389 |     break 2 | 
 | 10390 |   fi | 
 | 10391 | done | 
 | 10392 |   done | 
 | 10393 | IFS=$as_save_IFS | 
 | 10394 |  | 
 | 10395 | fi | 
 | 10396 | fi | 
 | 10397 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
 | 10398 | if test -n "$ac_ct_OBJDUMP"; then | 
 | 10399 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
 | 10400 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
 | 10401 | else | 
 | 10402 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10403 | $as_echo "no" >&6; } | 
 | 10404 | fi | 
 | 10405 |  | 
 | 10406 |   if test "x$ac_ct_OBJDUMP" = x; then | 
 | 10407 |     OBJDUMP="false" | 
 | 10408 |   else | 
 | 10409 |     case $cross_compiling:$ac_tool_warned in | 
 | 10410 | yes:) | 
 | 10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 10412 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 10413 | ac_tool_warned=yes ;; | 
 | 10414 | esac | 
 | 10415 |     OBJDUMP=$ac_ct_OBJDUMP | 
 | 10416 |   fi | 
 | 10417 | else | 
 | 10418 |   OBJDUMP="$ac_cv_prog_OBJDUMP" | 
 | 10419 | fi | 
 | 10420 |  | 
 | 10421 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 10422 |  | 
 | 10423 |  | 
 | 10424 |  | 
 | 10425 |  | 
 | 10426 |  | 
 | 10427 |  | 
 | 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | 
 | 10429 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10430 | if ${lt_cv_deplibs_check_method+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10431 |   $as_echo_n "(cached) " >&6 | 
 | 10432 | else | 
 | 10433 |   lt_cv_file_magic_cmd='$MAGIC_CMD' | 
 | 10434 | lt_cv_file_magic_test_file= | 
 | 10435 | lt_cv_deplibs_check_method='unknown' | 
 | 10436 | # Need to set the preceding variable on all platforms that support | 
 | 10437 | # interlibrary dependencies. | 
 | 10438 | # 'none' -- dependencies not supported. | 
 | 10439 | # `unknown' -- same as none, but documents that we really don't know. | 
 | 10440 | # 'pass_all' -- all dependencies passed with no checks. | 
 | 10441 | # 'test_compile' -- check by making test program. | 
 | 10442 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
 | 10443 | # which responds to the $file_magic_cmd with a given extended regex. | 
 | 10444 | # If you have `file' or equivalent on your system and you're not sure | 
 | 10445 | # whether `pass_all' will *always* work, you probably want this one. | 
 | 10446 |  | 
 | 10447 | case $host_os in | 
 | 10448 | aix[4-9]*) | 
 | 10449 |   lt_cv_deplibs_check_method=pass_all | 
 | 10450 |   ;; | 
 | 10451 |  | 
 | 10452 | beos*) | 
 | 10453 |   lt_cv_deplibs_check_method=pass_all | 
 | 10454 |   ;; | 
 | 10455 |  | 
 | 10456 | bsdi[45]*) | 
 | 10457 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
 | 10458 |   lt_cv_file_magic_cmd='/usr/bin/file -L' | 
 | 10459 |   lt_cv_file_magic_test_file=/shlib/libc.so | 
 | 10460 |   ;; | 
 | 10461 |  | 
 | 10462 | cygwin*) | 
 | 10463 |   # func_win32_libid is a shell function defined in ltmain.sh | 
 | 10464 |   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 10465 |   lt_cv_file_magic_cmd='func_win32_libid' | 
 | 10466 |   ;; | 
 | 10467 |  | 
 | 10468 | mingw* | pw32*) | 
 | 10469 |   # Base MSYS/MinGW do not provide the 'file' command needed by | 
 | 10470 |   # func_win32_libid shell function, so use a weaker test based on 'objdump', | 
 | 10471 |   # unless we find 'file', for example because we are cross-compiling. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10472 |   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | 
 | 10473 |   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10474 |     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
 | 10475 |     lt_cv_file_magic_cmd='func_win32_libid' | 
 | 10476 |   else | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10477 |     # Keep this pattern in sync with the one in func_win32_libid. | 
 | 10478 |     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10479 |     lt_cv_file_magic_cmd='$OBJDUMP -f' | 
 | 10480 |   fi | 
 | 10481 |   ;; | 
 | 10482 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10483 | cegcc*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10484 |   # use the weaker test based on 'objdump'. See mingw*. | 
 | 10485 |   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 
 | 10486 |   lt_cv_file_magic_cmd='$OBJDUMP -f' | 
 | 10487 |   ;; | 
 | 10488 |  | 
 | 10489 | darwin* | rhapsody*) | 
 | 10490 |   lt_cv_deplibs_check_method=pass_all | 
 | 10491 |   ;; | 
 | 10492 |  | 
 | 10493 | freebsd* | dragonfly*) | 
 | 10494 |   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
 | 10495 |     case $host_cpu in | 
 | 10496 |     i*86 ) | 
 | 10497 |       # Not sure whether the presence of OpenBSD here was a mistake. | 
 | 10498 |       # Let's accept both of them until this is cleared up. | 
 | 10499 |       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | 
 | 10500 |       lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10501 |       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
 | 10502 |       ;; | 
 | 10503 |     esac | 
 | 10504 |   else | 
 | 10505 |     lt_cv_deplibs_check_method=pass_all | 
 | 10506 |   fi | 
 | 10507 |   ;; | 
 | 10508 |  | 
 | 10509 | gnu*) | 
 | 10510 |   lt_cv_deplibs_check_method=pass_all | 
 | 10511 |   ;; | 
 | 10512 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10513 | haiku*) | 
 | 10514 |   lt_cv_deplibs_check_method=pass_all | 
 | 10515 |   ;; | 
 | 10516 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10517 | hpux10.20* | hpux11*) | 
 | 10518 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10519 |   case $host_cpu in | 
 | 10520 |   ia64*) | 
 | 10521 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
 | 10522 |     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
 | 10523 |     ;; | 
 | 10524 |   hppa*64*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10525 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10526 |     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
 | 10527 |     ;; | 
 | 10528 |   *) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10529 |     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10530 |     lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
 | 10531 |     ;; | 
 | 10532 |   esac | 
 | 10533 |   ;; | 
 | 10534 |  | 
 | 10535 | interix[3-9]*) | 
 | 10536 |   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 
 | 10537 |   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | 
 | 10538 |   ;; | 
 | 10539 |  | 
 | 10540 | irix5* | irix6* | nonstopux*) | 
 | 10541 |   case $LD in | 
 | 10542 |   *-32|*"-32 ") libmagic=32-bit;; | 
 | 10543 |   *-n32|*"-n32 ") libmagic=N32;; | 
 | 10544 |   *-64|*"-64 ") libmagic=64-bit;; | 
 | 10545 |   *) libmagic=never-match;; | 
 | 10546 |   esac | 
 | 10547 |   lt_cv_deplibs_check_method=pass_all | 
 | 10548 |   ;; | 
 | 10549 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10550 | # This must be glibc/ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10551 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10552 |   lt_cv_deplibs_check_method=pass_all | 
 | 10553 |   ;; | 
 | 10554 |  | 
 | 10555 | netbsd*) | 
 | 10556 |   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
 | 10557 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10558 |   else | 
 | 10559 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
 | 10560 |   fi | 
 | 10561 |   ;; | 
 | 10562 |  | 
 | 10563 | newos6*) | 
 | 10564 |   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
 | 10565 |   lt_cv_file_magic_cmd=/usr/bin/file | 
 | 10566 |   lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
 | 10567 |   ;; | 
 | 10568 |  | 
 | 10569 | *nto* | *qnx*) | 
 | 10570 |   lt_cv_deplibs_check_method=pass_all | 
 | 10571 |   ;; | 
 | 10572 |  | 
 | 10573 | openbsd*) | 
 | 10574 |   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 10575 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
 | 10576 |   else | 
 | 10577 |     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
 | 10578 |   fi | 
 | 10579 |   ;; | 
 | 10580 |  | 
 | 10581 | osf3* | osf4* | osf5*) | 
 | 10582 |   lt_cv_deplibs_check_method=pass_all | 
 | 10583 |   ;; | 
 | 10584 |  | 
 | 10585 | rdos*) | 
 | 10586 |   lt_cv_deplibs_check_method=pass_all | 
 | 10587 |   ;; | 
 | 10588 |  | 
 | 10589 | solaris*) | 
 | 10590 |   lt_cv_deplibs_check_method=pass_all | 
 | 10591 |   ;; | 
 | 10592 |  | 
 | 10593 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 10594 |   lt_cv_deplibs_check_method=pass_all | 
 | 10595 |   ;; | 
 | 10596 |  | 
 | 10597 | sysv4 | sysv4.3*) | 
 | 10598 |   case $host_vendor in | 
 | 10599 |   motorola) | 
 | 10600 |     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]' | 
 | 10601 |     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
 | 10602 |     ;; | 
 | 10603 |   ncr) | 
 | 10604 |     lt_cv_deplibs_check_method=pass_all | 
 | 10605 |     ;; | 
 | 10606 |   sequent) | 
 | 10607 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10608 |     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
 | 10609 |     ;; | 
 | 10610 |   sni) | 
 | 10611 |     lt_cv_file_magic_cmd='/bin/file' | 
 | 10612 |     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
 | 10613 |     lt_cv_file_magic_test_file=/lib/libc.so | 
 | 10614 |     ;; | 
 | 10615 |   siemens) | 
 | 10616 |     lt_cv_deplibs_check_method=pass_all | 
 | 10617 |     ;; | 
 | 10618 |   pc) | 
 | 10619 |     lt_cv_deplibs_check_method=pass_all | 
 | 10620 |     ;; | 
 | 10621 |   esac | 
 | 10622 |   ;; | 
 | 10623 |  | 
 | 10624 | tpf*) | 
 | 10625 |   lt_cv_deplibs_check_method=pass_all | 
 | 10626 |   ;; | 
 | 10627 | esac | 
 | 10628 |  | 
 | 10629 | fi | 
 | 10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | 
 | 10631 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10632 |  | 
 | 10633 | file_magic_glob= | 
 | 10634 | want_nocaseglob=no | 
 | 10635 | if test "$build" = "$host"; then | 
 | 10636 |   case $host_os in | 
 | 10637 |   mingw* | pw32*) | 
 | 10638 |     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | 
 | 10639 |       want_nocaseglob=yes | 
 | 10640 |     else | 
 | 10641 |       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | 
 | 10642 |     fi | 
 | 10643 |     ;; | 
 | 10644 |   esac | 
 | 10645 | fi | 
 | 10646 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10647 | file_magic_cmd=$lt_cv_file_magic_cmd | 
 | 10648 | deplibs_check_method=$lt_cv_deplibs_check_method | 
 | 10649 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
 | 10650 |  | 
 | 10651 |  | 
 | 10652 |  | 
 | 10653 |  | 
 | 10654 |  | 
 | 10655 |  | 
 | 10656 |  | 
 | 10657 |  | 
 | 10658 |  | 
 | 10659 |  | 
 | 10660 |  | 
 | 10661 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10662 |  | 
 | 10663 |  | 
 | 10664 |  | 
 | 10665 |  | 
 | 10666 |  | 
 | 10667 |  | 
 | 10668 |  | 
 | 10669 |  | 
 | 10670 |  | 
 | 10671 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10672 | if test -n "$ac_tool_prefix"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10673 |   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 
 | 10674 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10676 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10677 | if ${ac_cv_prog_DLLTOOL+:} false; then : | 
 | 10678 |   $as_echo_n "(cached) " >&6 | 
 | 10679 | else | 
 | 10680 |   if test -n "$DLLTOOL"; then | 
 | 10681 |   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | 
 | 10682 | else | 
 | 10683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10684 | for as_dir in $PATH | 
 | 10685 | do | 
 | 10686 |   IFS=$as_save_IFS | 
 | 10687 |   test -z "$as_dir" && as_dir=. | 
 | 10688 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10689 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 10690 |     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | 
 | 10691 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10692 |     break 2 | 
 | 10693 |   fi | 
 | 10694 | done | 
 | 10695 |   done | 
 | 10696 | IFS=$as_save_IFS | 
 | 10697 |  | 
 | 10698 | fi | 
 | 10699 | fi | 
 | 10700 | DLLTOOL=$ac_cv_prog_DLLTOOL | 
 | 10701 | if test -n "$DLLTOOL"; then | 
 | 10702 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | 
 | 10703 | $as_echo "$DLLTOOL" >&6; } | 
 | 10704 | else | 
 | 10705 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10706 | $as_echo "no" >&6; } | 
 | 10707 | fi | 
 | 10708 |  | 
 | 10709 |  | 
 | 10710 | fi | 
 | 10711 | if test -z "$ac_cv_prog_DLLTOOL"; then | 
 | 10712 |   ac_ct_DLLTOOL=$DLLTOOL | 
 | 10713 |   # Extract the first word of "dlltool", so it can be a program name with args. | 
 | 10714 | set dummy dlltool; ac_word=$2 | 
 | 10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10716 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 10717 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | 
 | 10718 |   $as_echo_n "(cached) " >&6 | 
 | 10719 | else | 
 | 10720 |   if test -n "$ac_ct_DLLTOOL"; then | 
 | 10721 |   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | 
 | 10722 | else | 
 | 10723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10724 | for as_dir in $PATH | 
 | 10725 | do | 
 | 10726 |   IFS=$as_save_IFS | 
 | 10727 |   test -z "$as_dir" && as_dir=. | 
 | 10728 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10729 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 10730 |     ac_cv_prog_ac_ct_DLLTOOL="dlltool" | 
 | 10731 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10732 |     break 2 | 
 | 10733 |   fi | 
 | 10734 | done | 
 | 10735 |   done | 
 | 10736 | IFS=$as_save_IFS | 
 | 10737 |  | 
 | 10738 | fi | 
 | 10739 | fi | 
 | 10740 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 
 | 10741 | if test -n "$ac_ct_DLLTOOL"; then | 
 | 10742 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | 
 | 10743 | $as_echo "$ac_ct_DLLTOOL" >&6; } | 
 | 10744 | else | 
 | 10745 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10746 | $as_echo "no" >&6; } | 
 | 10747 | fi | 
 | 10748 |  | 
 | 10749 |   if test "x$ac_ct_DLLTOOL" = x; then | 
 | 10750 |     DLLTOOL="false" | 
 | 10751 |   else | 
 | 10752 |     case $cross_compiling:$ac_tool_warned in | 
 | 10753 | yes:) | 
 | 10754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 10755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 10756 | ac_tool_warned=yes ;; | 
 | 10757 | esac | 
 | 10758 |     DLLTOOL=$ac_ct_DLLTOOL | 
 | 10759 |   fi | 
 | 10760 | else | 
 | 10761 |   DLLTOOL="$ac_cv_prog_DLLTOOL" | 
 | 10762 | fi | 
 | 10763 |  | 
 | 10764 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 10765 |  | 
 | 10766 |  | 
 | 10767 |  | 
 | 10768 |  | 
 | 10769 |  | 
 | 10770 |  | 
 | 10771 |  | 
 | 10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | 
 | 10773 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | 
 | 10774 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | 
 | 10775 |   $as_echo_n "(cached) " >&6 | 
 | 10776 | else | 
 | 10777 |   lt_cv_sharedlib_from_linklib_cmd='unknown' | 
 | 10778 |  | 
 | 10779 | case $host_os in | 
 | 10780 | cygwin* | mingw* | pw32* | cegcc*) | 
 | 10781 |   # two different shell functions defined in ltmain.sh | 
 | 10782 |   # decide which to use based on capabilities of $DLLTOOL | 
 | 10783 |   case `$DLLTOOL --help 2>&1` in | 
 | 10784 |   *--identify-strict*) | 
 | 10785 |     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | 
 | 10786 |     ;; | 
 | 10787 |   *) | 
 | 10788 |     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | 
 | 10789 |     ;; | 
 | 10790 |   esac | 
 | 10791 |   ;; | 
 | 10792 | *) | 
 | 10793 |   # fallback: assume linklib IS sharedlib | 
 | 10794 |   lt_cv_sharedlib_from_linklib_cmd="$ECHO" | 
 | 10795 |   ;; | 
 | 10796 | esac | 
 | 10797 |  | 
 | 10798 | fi | 
 | 10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | 
 | 10800 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | 
 | 10801 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | 
 | 10802 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | 
 | 10803 |  | 
 | 10804 |  | 
 | 10805 |  | 
 | 10806 |  | 
 | 10807 |  | 
 | 10808 |  | 
 | 10809 |  | 
 | 10810 | if test -n "$ac_tool_prefix"; then | 
 | 10811 |   for ac_prog in ar | 
 | 10812 |   do | 
 | 10813 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 10814 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
 | 10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10816 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 10817 | if ${ac_cv_prog_AR+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10818 |   $as_echo_n "(cached) " >&6 | 
 | 10819 | else | 
 | 10820 |   if test -n "$AR"; then | 
 | 10821 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 10822 | else | 
 | 10823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10824 | for as_dir in $PATH | 
 | 10825 | do | 
 | 10826 |   IFS=$as_save_IFS | 
 | 10827 |   test -z "$as_dir" && as_dir=. | 
 | 10828 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10829 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10830 |     ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10831 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10832 |     break 2 | 
 | 10833 |   fi | 
 | 10834 | done | 
 | 10835 |   done | 
 | 10836 | IFS=$as_save_IFS | 
 | 10837 |  | 
 | 10838 | fi | 
 | 10839 | fi | 
 | 10840 | AR=$ac_cv_prog_AR | 
 | 10841 | if test -n "$AR"; then | 
 | 10842 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
 | 10843 | $as_echo "$AR" >&6; } | 
 | 10844 | else | 
 | 10845 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10846 | $as_echo "no" >&6; } | 
 | 10847 | fi | 
 | 10848 |  | 
 | 10849 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10850 |     test -n "$AR" && break | 
 | 10851 |   done | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10852 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10853 | if test -z "$AR"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10854 |   ac_ct_AR=$AR | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10855 |   for ac_prog in ar | 
 | 10856 | do | 
 | 10857 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 10858 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10860 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10861 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10862 |   $as_echo_n "(cached) " >&6 | 
 | 10863 | else | 
 | 10864 |   if test -n "$ac_ct_AR"; then | 
 | 10865 |   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
 | 10866 | else | 
 | 10867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10868 | for as_dir in $PATH | 
 | 10869 | do | 
 | 10870 |   IFS=$as_save_IFS | 
 | 10871 |   test -z "$as_dir" && as_dir=. | 
 | 10872 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10873 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10874 |     ac_cv_prog_ac_ct_AR="$ac_prog" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10875 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 10876 |     break 2 | 
 | 10877 |   fi | 
 | 10878 | done | 
 | 10879 |   done | 
 | 10880 | IFS=$as_save_IFS | 
 | 10881 |  | 
 | 10882 | fi | 
 | 10883 | fi | 
 | 10884 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
 | 10885 | if test -n "$ac_ct_AR"; then | 
 | 10886 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
 | 10887 | $as_echo "$ac_ct_AR" >&6; } | 
 | 10888 | else | 
 | 10889 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 10890 | $as_echo "no" >&6; } | 
 | 10891 | fi | 
 | 10892 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10893 |  | 
 | 10894 |   test -n "$ac_ct_AR" && break | 
 | 10895 | done | 
 | 10896 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10897 |   if test "x$ac_ct_AR" = x; then | 
 | 10898 |     AR="false" | 
 | 10899 |   else | 
 | 10900 |     case $cross_compiling:$ac_tool_warned in | 
 | 10901 | yes:) | 
 | 10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 10903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 10904 | ac_tool_warned=yes ;; | 
 | 10905 | esac | 
 | 10906 |     AR=$ac_ct_AR | 
 | 10907 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10908 | fi | 
 | 10909 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10910 | : ${AR=ar} | 
 | 10911 | : ${AR_FLAGS=cru} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10912 |  | 
 | 10913 |  | 
 | 10914 |  | 
 | 10915 |  | 
 | 10916 |  | 
 | 10917 |  | 
 | 10918 |  | 
 | 10919 |  | 
 | 10920 |  | 
 | 10921 |  | 
 | 10922 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | 
 | 10924 | $as_echo_n "checking for archiver @FILE support... " >&6; } | 
 | 10925 | if ${lt_cv_ar_at_file+:} false; then : | 
 | 10926 |   $as_echo_n "(cached) " >&6 | 
 | 10927 | else | 
 | 10928 |   lt_cv_ar_at_file=no | 
 | 10929 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 10930 | /* end confdefs.h.  */ | 
 | 10931 |  | 
 | 10932 | int | 
 | 10933 | main () | 
 | 10934 | { | 
 | 10935 |  | 
 | 10936 |   ; | 
 | 10937 |   return 0; | 
 | 10938 | } | 
 | 10939 | _ACEOF | 
 | 10940 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 10941 |   echo conftest.$ac_objext > conftest.lst | 
 | 10942 |       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | 
 | 10943 |       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | 
 | 10944 |   (eval $lt_ar_try) 2>&5 | 
 | 10945 |   ac_status=$? | 
 | 10946 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 10947 |   test $ac_status = 0; } | 
 | 10948 |       if test "$ac_status" -eq 0; then | 
 | 10949 | 	# Ensure the archiver fails upon bogus file names. | 
 | 10950 | 	rm -f conftest.$ac_objext libconftest.a | 
 | 10951 | 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | 
 | 10952 |   (eval $lt_ar_try) 2>&5 | 
 | 10953 |   ac_status=$? | 
 | 10954 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 10955 |   test $ac_status = 0; } | 
 | 10956 | 	if test "$ac_status" -ne 0; then | 
 | 10957 |           lt_cv_ar_at_file=@ | 
 | 10958 |         fi | 
 | 10959 |       fi | 
 | 10960 |       rm -f conftest.* libconftest.a | 
 | 10961 |  | 
 | 10962 | fi | 
 | 10963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 10964 |  | 
 | 10965 | fi | 
 | 10966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | 
 | 10967 | $as_echo "$lt_cv_ar_at_file" >&6; } | 
 | 10968 |  | 
 | 10969 | if test "x$lt_cv_ar_at_file" = xno; then | 
 | 10970 |   archiver_list_spec= | 
 | 10971 | else | 
 | 10972 |   archiver_list_spec=$lt_cv_ar_at_file | 
 | 10973 | fi | 
 | 10974 |  | 
 | 10975 |  | 
 | 10976 |  | 
 | 10977 |  | 
 | 10978 |  | 
 | 10979 |  | 
 | 10980 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10981 | if test -n "$ac_tool_prefix"; then | 
 | 10982 |   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 10983 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 10985 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10986 | if ${ac_cv_prog_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10987 |   $as_echo_n "(cached) " >&6 | 
 | 10988 | else | 
 | 10989 |   if test -n "$STRIP"; then | 
 | 10990 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 10991 | else | 
 | 10992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 10993 | for as_dir in $PATH | 
 | 10994 | do | 
 | 10995 |   IFS=$as_save_IFS | 
 | 10996 |   test -z "$as_dir" && as_dir=. | 
 | 10997 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 10998 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 10999 |     ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 11000 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11001 |     break 2 | 
 | 11002 |   fi | 
 | 11003 | done | 
 | 11004 |   done | 
 | 11005 | IFS=$as_save_IFS | 
 | 11006 |  | 
 | 11007 | fi | 
 | 11008 | fi | 
 | 11009 | STRIP=$ac_cv_prog_STRIP | 
 | 11010 | if test -n "$STRIP"; then | 
 | 11011 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
 | 11012 | $as_echo "$STRIP" >&6; } | 
 | 11013 | else | 
 | 11014 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11015 | $as_echo "no" >&6; } | 
 | 11016 | fi | 
 | 11017 |  | 
 | 11018 |  | 
 | 11019 | fi | 
 | 11020 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 11021 |   ac_ct_STRIP=$STRIP | 
 | 11022 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 11023 | set dummy strip; ac_word=$2 | 
 | 11024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11025 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11026 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11027 |   $as_echo_n "(cached) " >&6 | 
 | 11028 | else | 
 | 11029 |   if test -n "$ac_ct_STRIP"; then | 
 | 11030 |   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
 | 11031 | else | 
 | 11032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11033 | for as_dir in $PATH | 
 | 11034 | do | 
 | 11035 |   IFS=$as_save_IFS | 
 | 11036 |   test -z "$as_dir" && as_dir=. | 
 | 11037 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11038 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11039 |     ac_cv_prog_ac_ct_STRIP="strip" | 
 | 11040 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11041 |     break 2 | 
 | 11042 |   fi | 
 | 11043 | done | 
 | 11044 |   done | 
 | 11045 | IFS=$as_save_IFS | 
 | 11046 |  | 
 | 11047 | fi | 
 | 11048 | fi | 
 | 11049 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
 | 11050 | if test -n "$ac_ct_STRIP"; then | 
 | 11051 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
 | 11052 | $as_echo "$ac_ct_STRIP" >&6; } | 
 | 11053 | else | 
 | 11054 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11055 | $as_echo "no" >&6; } | 
 | 11056 | fi | 
 | 11057 |  | 
 | 11058 |   if test "x$ac_ct_STRIP" = x; then | 
 | 11059 |     STRIP=":" | 
 | 11060 |   else | 
 | 11061 |     case $cross_compiling:$ac_tool_warned in | 
 | 11062 | yes:) | 
 | 11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 11064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 11065 | ac_tool_warned=yes ;; | 
 | 11066 | esac | 
 | 11067 |     STRIP=$ac_ct_STRIP | 
 | 11068 |   fi | 
 | 11069 | else | 
 | 11070 |   STRIP="$ac_cv_prog_STRIP" | 
 | 11071 | fi | 
 | 11072 |  | 
 | 11073 | test -z "$STRIP" && STRIP=: | 
 | 11074 |  | 
 | 11075 |  | 
 | 11076 |  | 
 | 11077 |  | 
 | 11078 |  | 
 | 11079 |  | 
 | 11080 | if test -n "$ac_tool_prefix"; then | 
 | 11081 |   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 11082 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 11083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11084 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11085 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11086 |   $as_echo_n "(cached) " >&6 | 
 | 11087 | else | 
 | 11088 |   if test -n "$RANLIB"; then | 
 | 11089 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 11090 | else | 
 | 11091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11092 | for as_dir in $PATH | 
 | 11093 | do | 
 | 11094 |   IFS=$as_save_IFS | 
 | 11095 |   test -z "$as_dir" && as_dir=. | 
 | 11096 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11097 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11098 |     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 11099 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11100 |     break 2 | 
 | 11101 |   fi | 
 | 11102 | done | 
 | 11103 |   done | 
 | 11104 | IFS=$as_save_IFS | 
 | 11105 |  | 
 | 11106 | fi | 
 | 11107 | fi | 
 | 11108 | RANLIB=$ac_cv_prog_RANLIB | 
 | 11109 | if test -n "$RANLIB"; then | 
 | 11110 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
 | 11111 | $as_echo "$RANLIB" >&6; } | 
 | 11112 | else | 
 | 11113 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11114 | $as_echo "no" >&6; } | 
 | 11115 | fi | 
 | 11116 |  | 
 | 11117 |  | 
 | 11118 | fi | 
 | 11119 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 11120 |   ac_ct_RANLIB=$RANLIB | 
 | 11121 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 11122 | set dummy ranlib; ac_word=$2 | 
 | 11123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11124 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11125 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11126 |   $as_echo_n "(cached) " >&6 | 
 | 11127 | else | 
 | 11128 |   if test -n "$ac_ct_RANLIB"; then | 
 | 11129 |   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
 | 11130 | else | 
 | 11131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11132 | for as_dir in $PATH | 
 | 11133 | do | 
 | 11134 |   IFS=$as_save_IFS | 
 | 11135 |   test -z "$as_dir" && as_dir=. | 
 | 11136 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11137 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11138 |     ac_cv_prog_ac_ct_RANLIB="ranlib" | 
 | 11139 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11140 |     break 2 | 
 | 11141 |   fi | 
 | 11142 | done | 
 | 11143 |   done | 
 | 11144 | IFS=$as_save_IFS | 
 | 11145 |  | 
 | 11146 | fi | 
 | 11147 | fi | 
 | 11148 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
 | 11149 | if test -n "$ac_ct_RANLIB"; then | 
 | 11150 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
 | 11151 | $as_echo "$ac_ct_RANLIB" >&6; } | 
 | 11152 | else | 
 | 11153 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11154 | $as_echo "no" >&6; } | 
 | 11155 | fi | 
 | 11156 |  | 
 | 11157 |   if test "x$ac_ct_RANLIB" = x; then | 
 | 11158 |     RANLIB=":" | 
 | 11159 |   else | 
 | 11160 |     case $cross_compiling:$ac_tool_warned in | 
 | 11161 | yes:) | 
 | 11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 11163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 11164 | ac_tool_warned=yes ;; | 
 | 11165 | esac | 
 | 11166 |     RANLIB=$ac_ct_RANLIB | 
 | 11167 |   fi | 
 | 11168 | else | 
 | 11169 |   RANLIB="$ac_cv_prog_RANLIB" | 
 | 11170 | fi | 
 | 11171 |  | 
 | 11172 | test -z "$RANLIB" && RANLIB=: | 
 | 11173 |  | 
 | 11174 |  | 
 | 11175 |  | 
 | 11176 |  | 
 | 11177 |  | 
 | 11178 |  | 
 | 11179 | # Determine commands to create old-style static archives. | 
 | 11180 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | 
 | 11181 | old_postinstall_cmds='chmod 644 $oldlib' | 
 | 11182 | old_postuninstall_cmds= | 
 | 11183 |  | 
 | 11184 | if test -n "$RANLIB"; then | 
 | 11185 |   case $host_os in | 
 | 11186 |   openbsd*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11187 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11188 |     ;; | 
 | 11189 |   *) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11190 |     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11191 |     ;; | 
 | 11192 |   esac | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11193 |   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11194 | fi | 
 | 11195 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11196 | case $host_os in | 
 | 11197 |   darwin*) | 
 | 11198 |     lock_old_archive_extraction=yes ;; | 
 | 11199 |   *) | 
 | 11200 |     lock_old_archive_extraction=no ;; | 
 | 11201 | esac | 
 | 11202 |  | 
 | 11203 |  | 
 | 11204 |  | 
 | 11205 |  | 
 | 11206 |  | 
 | 11207 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11208 |  | 
 | 11209 |  | 
 | 11210 |  | 
 | 11211 |  | 
 | 11212 |  | 
 | 11213 |  | 
 | 11214 |  | 
 | 11215 |  | 
 | 11216 |  | 
 | 11217 |  | 
 | 11218 |  | 
 | 11219 |  | 
 | 11220 |  | 
 | 11221 |  | 
 | 11222 |  | 
 | 11223 |  | 
 | 11224 |  | 
 | 11225 |  | 
 | 11226 |  | 
 | 11227 |  | 
 | 11228 |  | 
 | 11229 |  | 
 | 11230 |  | 
 | 11231 |  | 
 | 11232 |  | 
 | 11233 |  | 
 | 11234 |  | 
 | 11235 |  | 
 | 11236 |  | 
 | 11237 |  | 
 | 11238 |  | 
 | 11239 |  | 
 | 11240 |  | 
 | 11241 | # If no C compiler was specified, use CC. | 
 | 11242 | LTCC=${LTCC-"$CC"} | 
 | 11243 |  | 
 | 11244 | # If no C compiler flags were specified, use CFLAGS. | 
 | 11245 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 11246 |  | 
 | 11247 | # Allow CC to be a program name with arguments. | 
 | 11248 | compiler=$CC | 
 | 11249 |  | 
 | 11250 |  | 
 | 11251 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
 | 11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | 
 | 11253 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11254 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11255 |   $as_echo_n "(cached) " >&6 | 
 | 11256 | else | 
 | 11257 |  | 
 | 11258 | # These are sane defaults that work on at least a few old systems. | 
 | 11259 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
 | 11260 |  | 
 | 11261 | # Character class describing NM global symbol codes. | 
 | 11262 | symcode='[BCDEGRST]' | 
 | 11263 |  | 
 | 11264 | # Regexp to match symbols that can be accessed directly from C. | 
 | 11265 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
 | 11266 |  | 
 | 11267 | # Define system-specific variables. | 
 | 11268 | case $host_os in | 
 | 11269 | aix*) | 
 | 11270 |   symcode='[BCDT]' | 
 | 11271 |   ;; | 
 | 11272 | cygwin* | mingw* | pw32* | cegcc*) | 
 | 11273 |   symcode='[ABCDGISTW]' | 
 | 11274 |   ;; | 
 | 11275 | hpux*) | 
 | 11276 |   if test "$host_cpu" = ia64; then | 
 | 11277 |     symcode='[ABCDEGRST]' | 
 | 11278 |   fi | 
 | 11279 |   ;; | 
 | 11280 | irix* | nonstopux*) | 
 | 11281 |   symcode='[BCDEGRST]' | 
 | 11282 |   ;; | 
 | 11283 | osf*) | 
 | 11284 |   symcode='[BCDEGQRST]' | 
 | 11285 |   ;; | 
 | 11286 | solaris*) | 
 | 11287 |   symcode='[BDRT]' | 
 | 11288 |   ;; | 
 | 11289 | sco3.2v5*) | 
 | 11290 |   symcode='[DT]' | 
 | 11291 |   ;; | 
 | 11292 | sysv4.2uw2*) | 
 | 11293 |   symcode='[DT]' | 
 | 11294 |   ;; | 
 | 11295 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 11296 |   symcode='[ABDT]' | 
 | 11297 |   ;; | 
 | 11298 | sysv4) | 
 | 11299 |   symcode='[DFNSTU]' | 
 | 11300 |   ;; | 
 | 11301 | esac | 
 | 11302 |  | 
 | 11303 | # If we're using GNU nm, then use its standard symbol codes. | 
 | 11304 | case `$NM -V 2>&1` in | 
 | 11305 | *GNU* | *'with BFD'*) | 
 | 11306 |   symcode='[ABCDGIRSTW]' ;; | 
 | 11307 | esac | 
 | 11308 |  | 
 | 11309 | # Transform an extracted symbol line into a proper C declaration. | 
 | 11310 | # Some systems (esp. on ia64) link data and code symbols differently, | 
 | 11311 | # so use this general approach. | 
 | 11312 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
 | 11313 |  | 
 | 11314 | # Transform an extracted symbol line into symbol name and symbol address | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11315 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'" | 
 | 11316 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11317 |  | 
 | 11318 | # Handle CRLF in mingw tool chain | 
 | 11319 | opt_cr= | 
 | 11320 | case $build_os in | 
 | 11321 | mingw*) | 
 | 11322 |   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
 | 11323 |   ;; | 
 | 11324 | esac | 
 | 11325 |  | 
 | 11326 | # Try without a prefix underscore, then with it. | 
 | 11327 | for ac_symprfx in "" "_"; do | 
 | 11328 |  | 
 | 11329 |   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
 | 11330 |   symxfrm="\\1 $ac_symprfx\\2 \\2" | 
 | 11331 |  | 
 | 11332 |   # Write the raw and C identifiers. | 
 | 11333 |   if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 
 | 11334 |     # Fake it for dumpbin and say T for any non-static function | 
 | 11335 |     # and D for any global variable. | 
 | 11336 |     # Also find C++ and __fastcall symbols from MSVC++, | 
 | 11337 |     # which start with @ or ?. | 
 | 11338 |     lt_cv_sys_global_symbol_pipe="$AWK '"\ | 
 | 11339 | "     {last_section=section; section=\$ 3};"\ | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11340 | "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11341 | "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 
 | 11342 | "     \$ 0!~/External *\|/{next};"\ | 
 | 11343 | "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 
 | 11344 | "     {if(hide[section]) next};"\ | 
 | 11345 | "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | 
 | 11346 | "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | 
 | 11347 | "     s[1]~/^[@?]/{print s[1], s[1]; next};"\ | 
 | 11348 | "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 
 | 11349 | "     ' prfx=^$ac_symprfx" | 
 | 11350 |   else | 
 | 11351 |     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
 | 11352 |   fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11353 |   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11354 |  | 
 | 11355 |   # Check to see that the pipe works correctly. | 
 | 11356 |   pipe_works=no | 
 | 11357 |  | 
 | 11358 |   rm -f conftest* | 
 | 11359 |   cat > conftest.$ac_ext <<_LT_EOF | 
 | 11360 | #ifdef __cplusplus | 
 | 11361 | extern "C" { | 
 | 11362 | #endif | 
 | 11363 | char nm_test_var; | 
 | 11364 | void nm_test_func(void); | 
 | 11365 | void nm_test_func(void){} | 
 | 11366 | #ifdef __cplusplus | 
 | 11367 | } | 
 | 11368 | #endif | 
 | 11369 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
 | 11370 | _LT_EOF | 
 | 11371 |  | 
 | 11372 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 11373 |   (eval $ac_compile) 2>&5 | 
 | 11374 |   ac_status=$? | 
 | 11375 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11376 |   test $ac_status = 0; }; then | 
 | 11377 |     # Now try to grab the symbols. | 
 | 11378 |     nlist=conftest.nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11379 |     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | 
 | 11380 |   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11381 |   ac_status=$? | 
 | 11382 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11383 |   test $ac_status = 0; } && test -s "$nlist"; then | 
 | 11384 |       # Try sorting and uniquifying the output. | 
 | 11385 |       if sort "$nlist" | uniq > "$nlist"T; then | 
 | 11386 | 	mv -f "$nlist"T "$nlist" | 
 | 11387 |       else | 
 | 11388 | 	rm -f "$nlist"T | 
 | 11389 |       fi | 
 | 11390 |  | 
 | 11391 |       # Make sure that we snagged all the symbols we need. | 
 | 11392 |       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 
 | 11393 | 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 
 | 11394 | 	  cat <<_LT_EOF > conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11395 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */ | 
 | 11396 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | 
 | 11397 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | 
 | 11398 |    relocations are performed -- see ld's documentation on pseudo-relocs.  */ | 
 | 11399 | # define LT_DLSYM_CONST | 
 | 11400 | #elif defined(__osf__) | 
 | 11401 | /* This system does not cope well with relocations in const data.  */ | 
 | 11402 | # define LT_DLSYM_CONST | 
 | 11403 | #else | 
 | 11404 | # define LT_DLSYM_CONST const | 
 | 11405 | #endif | 
 | 11406 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11407 | #ifdef __cplusplus | 
 | 11408 | extern "C" { | 
 | 11409 | #endif | 
 | 11410 |  | 
 | 11411 | _LT_EOF | 
 | 11412 | 	  # Now generate the symbol file. | 
 | 11413 | 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | 
 | 11414 |  | 
 | 11415 | 	  cat <<_LT_EOF >> conftest.$ac_ext | 
 | 11416 |  | 
 | 11417 | /* The mapping between symbol names and symbols.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11418 | LT_DLSYM_CONST struct { | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11419 |   const char *name; | 
 | 11420 |   void       *address; | 
 | 11421 | } | 
 | 11422 | lt__PROGRAM__LTX_preloaded_symbols[] = | 
 | 11423 | { | 
 | 11424 |   { "@PROGRAM@", (void *) 0 }, | 
 | 11425 | _LT_EOF | 
 | 11426 | 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | 
 | 11427 | 	  cat <<\_LT_EOF >> conftest.$ac_ext | 
 | 11428 |   {0, (void *) 0} | 
 | 11429 | }; | 
 | 11430 |  | 
 | 11431 | /* This works around a problem in FreeBSD linker */ | 
 | 11432 | #ifdef FREEBSD_WORKAROUND | 
 | 11433 | static const void *lt_preloaded_setup() { | 
 | 11434 |   return lt__PROGRAM__LTX_preloaded_symbols; | 
 | 11435 | } | 
 | 11436 | #endif | 
 | 11437 |  | 
 | 11438 | #ifdef __cplusplus | 
 | 11439 | } | 
 | 11440 | #endif | 
 | 11441 | _LT_EOF | 
 | 11442 | 	  # Now try linking the two files. | 
 | 11443 | 	  mv conftest.$ac_objext conftstm.$ac_objext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11444 | 	  lt_globsym_save_LIBS=$LIBS | 
 | 11445 | 	  lt_globsym_save_CFLAGS=$CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11446 | 	  LIBS="conftstm.$ac_objext" | 
 | 11447 | 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
 | 11448 | 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
 | 11449 |   (eval $ac_link) 2>&5 | 
 | 11450 |   ac_status=$? | 
 | 11451 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11452 |   test $ac_status = 0; } && test -s conftest${ac_exeext}; then | 
 | 11453 | 	    pipe_works=yes | 
 | 11454 | 	  fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11455 | 	  LIBS=$lt_globsym_save_LIBS | 
 | 11456 | 	  CFLAGS=$lt_globsym_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11457 | 	else | 
 | 11458 | 	  echo "cannot find nm_test_func in $nlist" >&5 | 
 | 11459 | 	fi | 
 | 11460 |       else | 
 | 11461 | 	echo "cannot find nm_test_var in $nlist" >&5 | 
 | 11462 |       fi | 
 | 11463 |     else | 
 | 11464 |       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 11465 |     fi | 
 | 11466 |   else | 
 | 11467 |     echo "$progname: failed program was:" >&5 | 
 | 11468 |     cat conftest.$ac_ext >&5 | 
 | 11469 |   fi | 
 | 11470 |   rm -rf conftest* conftst* | 
 | 11471 |  | 
 | 11472 |   # Do not use the global_symbol_pipe unless it works. | 
 | 11473 |   if test "$pipe_works" = yes; then | 
 | 11474 |     break | 
 | 11475 |   else | 
 | 11476 |     lt_cv_sys_global_symbol_pipe= | 
 | 11477 |   fi | 
 | 11478 | done | 
 | 11479 |  | 
 | 11480 | fi | 
 | 11481 |  | 
 | 11482 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
 | 11483 |   lt_cv_sys_global_symbol_to_cdecl= | 
 | 11484 | fi | 
 | 11485 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
 | 11486 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | 
 | 11487 | $as_echo "failed" >&6; } | 
 | 11488 | else | 
 | 11489 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | 
 | 11490 | $as_echo "ok" >&6; } | 
 | 11491 | fi | 
 | 11492 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11493 | # Response file support. | 
 | 11494 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 
 | 11495 |   nm_file_list_spec='@' | 
 | 11496 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | 
 | 11497 |   nm_file_list_spec='@' | 
 | 11498 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11499 |  | 
 | 11500 |  | 
 | 11501 |  | 
 | 11502 |  | 
 | 11503 |  | 
 | 11504 |  | 
 | 11505 |  | 
 | 11506 |  | 
 | 11507 |  | 
 | 11508 |  | 
 | 11509 |  | 
 | 11510 |  | 
 | 11511 |  | 
 | 11512 |  | 
 | 11513 |  | 
 | 11514 |  | 
 | 11515 |  | 
 | 11516 |  | 
 | 11517 |  | 
 | 11518 |  | 
 | 11519 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11520 |  | 
 | 11521 |  | 
 | 11522 |  | 
 | 11523 |  | 
 | 11524 |  | 
 | 11525 |  | 
 | 11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | 
 | 11527 | $as_echo_n "checking for sysroot... " >&6; } | 
 | 11528 |  | 
 | 11529 | # Check whether --with-sysroot was given. | 
 | 11530 | if test "${with_sysroot+set}" = set; then : | 
 | 11531 |   withval=$with_sysroot; | 
 | 11532 | else | 
 | 11533 |   with_sysroot=no | 
 | 11534 | fi | 
 | 11535 |  | 
 | 11536 |  | 
 | 11537 | lt_sysroot= | 
 | 11538 | case ${with_sysroot} in #( | 
 | 11539 |  yes) | 
 | 11540 |    if test "$GCC" = yes; then | 
 | 11541 |      lt_sysroot=`$CC --print-sysroot 2>/dev/null` | 
 | 11542 |    fi | 
 | 11543 |    ;; #( | 
 | 11544 |  /*) | 
 | 11545 |    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | 
 | 11546 |    ;; #( | 
 | 11547 |  no|'') | 
 | 11548 |    ;; #( | 
 | 11549 |  *) | 
 | 11550 |    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | 
 | 11551 | $as_echo "${with_sysroot}" >&6; } | 
 | 11552 |    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | 
 | 11553 |    ;; | 
 | 11554 | esac | 
 | 11555 |  | 
 | 11556 |  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | 
 | 11557 | $as_echo "${lt_sysroot:-no}" >&6; } | 
 | 11558 |  | 
 | 11559 |  | 
 | 11560 |  | 
 | 11561 |  | 
 | 11562 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11563 | # Check whether --enable-libtool-lock was given. | 
 | 11564 | if test "${enable_libtool_lock+set}" = set; then : | 
 | 11565 |   enableval=$enable_libtool_lock; | 
 | 11566 | fi | 
 | 11567 |  | 
 | 11568 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
 | 11569 |  | 
 | 11570 | # Some flags need to be propagated to the compiler or linker for good | 
 | 11571 | # libtool support. | 
 | 11572 | case $host in | 
 | 11573 | ia64-*-hpux*) | 
 | 11574 |   # Find out which ABI we are using. | 
 | 11575 |   echo 'int i;' > conftest.$ac_ext | 
 | 11576 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 11577 |   (eval $ac_compile) 2>&5 | 
 | 11578 |   ac_status=$? | 
 | 11579 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11580 |   test $ac_status = 0; }; then | 
 | 11581 |     case `/usr/bin/file conftest.$ac_objext` in | 
 | 11582 |       *ELF-32*) | 
 | 11583 | 	HPUX_IA64_MODE="32" | 
 | 11584 | 	;; | 
 | 11585 |       *ELF-64*) | 
 | 11586 | 	HPUX_IA64_MODE="64" | 
 | 11587 | 	;; | 
 | 11588 |     esac | 
 | 11589 |   fi | 
 | 11590 |   rm -rf conftest* | 
 | 11591 |   ;; | 
 | 11592 | *-*-irix6*) | 
 | 11593 |   # Find out which ABI we are using. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11594 |   echo '#line '$LINENO' "configure"' > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11595 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 11596 |   (eval $ac_compile) 2>&5 | 
 | 11597 |   ac_status=$? | 
 | 11598 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11599 |   test $ac_status = 0; }; then | 
 | 11600 |     if test "$lt_cv_prog_gnu_ld" = yes; then | 
 | 11601 |       case `/usr/bin/file conftest.$ac_objext` in | 
 | 11602 | 	*32-bit*) | 
 | 11603 | 	  LD="${LD-ld} -melf32bsmip" | 
 | 11604 | 	  ;; | 
 | 11605 | 	*N32*) | 
 | 11606 | 	  LD="${LD-ld} -melf32bmipn32" | 
 | 11607 | 	  ;; | 
 | 11608 | 	*64-bit*) | 
 | 11609 | 	  LD="${LD-ld} -melf64bmip" | 
 | 11610 | 	;; | 
 | 11611 |       esac | 
 | 11612 |     else | 
 | 11613 |       case `/usr/bin/file conftest.$ac_objext` in | 
 | 11614 | 	*32-bit*) | 
 | 11615 | 	  LD="${LD-ld} -32" | 
 | 11616 | 	  ;; | 
 | 11617 | 	*N32*) | 
 | 11618 | 	  LD="${LD-ld} -n32" | 
 | 11619 | 	  ;; | 
 | 11620 | 	*64-bit*) | 
 | 11621 | 	  LD="${LD-ld} -64" | 
 | 11622 | 	  ;; | 
 | 11623 |       esac | 
 | 11624 |     fi | 
 | 11625 |   fi | 
 | 11626 |   rm -rf conftest* | 
 | 11627 |   ;; | 
 | 11628 |  | 
 | 11629 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 
 | 11630 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 
 | 11631 |   # Find out which ABI we are using. | 
 | 11632 |   echo 'int i;' > conftest.$ac_ext | 
 | 11633 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 11634 |   (eval $ac_compile) 2>&5 | 
 | 11635 |   ac_status=$? | 
 | 11636 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11637 |   test $ac_status = 0; }; then | 
 | 11638 |     case `/usr/bin/file conftest.o` in | 
 | 11639 |       *32-bit*) | 
 | 11640 | 	case $host in | 
 | 11641 | 	  x86_64-*kfreebsd*-gnu) | 
 | 11642 | 	    LD="${LD-ld} -m elf_i386_fbsd" | 
 | 11643 | 	    ;; | 
 | 11644 | 	  x86_64-*linux*) | 
 | 11645 | 	    LD="${LD-ld} -m elf_i386" | 
 | 11646 | 	    ;; | 
 | 11647 | 	  ppc64-*linux*|powerpc64-*linux*) | 
 | 11648 | 	    LD="${LD-ld} -m elf32ppclinux" | 
 | 11649 | 	    ;; | 
 | 11650 | 	  s390x-*linux*) | 
 | 11651 | 	    LD="${LD-ld} -m elf_s390" | 
 | 11652 | 	    ;; | 
 | 11653 | 	  sparc64-*linux*) | 
 | 11654 | 	    LD="${LD-ld} -m elf32_sparc" | 
 | 11655 | 	    ;; | 
 | 11656 | 	esac | 
 | 11657 | 	;; | 
 | 11658 |       *64-bit*) | 
 | 11659 | 	case $host in | 
 | 11660 | 	  x86_64-*kfreebsd*-gnu) | 
 | 11661 | 	    LD="${LD-ld} -m elf_x86_64_fbsd" | 
 | 11662 | 	    ;; | 
 | 11663 | 	  x86_64-*linux*) | 
 | 11664 | 	    LD="${LD-ld} -m elf_x86_64" | 
 | 11665 | 	    ;; | 
 | 11666 | 	  ppc*-*linux*|powerpc*-*linux*) | 
 | 11667 | 	    LD="${LD-ld} -m elf64ppc" | 
 | 11668 | 	    ;; | 
 | 11669 | 	  s390*-*linux*|s390*-*tpf*) | 
 | 11670 | 	    LD="${LD-ld} -m elf64_s390" | 
 | 11671 | 	    ;; | 
 | 11672 | 	  sparc*-*linux*) | 
 | 11673 | 	    LD="${LD-ld} -m elf64_sparc" | 
 | 11674 | 	    ;; | 
 | 11675 | 	esac | 
 | 11676 | 	;; | 
 | 11677 |     esac | 
 | 11678 |   fi | 
 | 11679 |   rm -rf conftest* | 
 | 11680 |   ;; | 
 | 11681 |  | 
 | 11682 | *-*-sco3.2v5*) | 
 | 11683 |   # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
 | 11684 |   SAVE_CFLAGS="$CFLAGS" | 
 | 11685 |   CFLAGS="$CFLAGS -belf" | 
 | 11686 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | 
 | 11687 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11688 | if ${lt_cv_cc_needs_belf+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11689 |   $as_echo_n "(cached) " >&6 | 
 | 11690 | else | 
 | 11691 |   ac_ext=c | 
 | 11692 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11696 |  | 
 | 11697 |      cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 11698 | /* end confdefs.h.  */ | 
 | 11699 |  | 
 | 11700 | int | 
 | 11701 | main () | 
 | 11702 | { | 
 | 11703 |  | 
 | 11704 |   ; | 
 | 11705 |   return 0; | 
 | 11706 | } | 
 | 11707 | _ACEOF | 
 | 11708 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 11709 |   lt_cv_cc_needs_belf=yes | 
 | 11710 | else | 
 | 11711 |   lt_cv_cc_needs_belf=no | 
 | 11712 | fi | 
 | 11713 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 11714 |     conftest$ac_exeext conftest.$ac_ext | 
 | 11715 |      ac_ext=c | 
 | 11716 | ac_cpp='$CPP $CPPFLAGS' | 
 | 11717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 11718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 11719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 11720 |  | 
 | 11721 | fi | 
 | 11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | 
 | 11723 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | 
 | 11724 |   if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
 | 11725 |     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
 | 11726 |     CFLAGS="$SAVE_CFLAGS" | 
 | 11727 |   fi | 
 | 11728 |   ;; | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11729 | *-*solaris*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11730 |   # Find out which ABI we are using. | 
 | 11731 |   echo 'int i;' > conftest.$ac_ext | 
 | 11732 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 11733 |   (eval $ac_compile) 2>&5 | 
 | 11734 |   ac_status=$? | 
 | 11735 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 11736 |   test $ac_status = 0; }; then | 
 | 11737 |     case `/usr/bin/file conftest.o` in | 
 | 11738 |     *64-bit*) | 
 | 11739 |       case $lt_cv_prog_gnu_ld in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11740 |       yes*) | 
 | 11741 |         case $host in | 
 | 11742 |         i?86-*-solaris*) | 
 | 11743 |           LD="${LD-ld} -m elf_x86_64" | 
 | 11744 |           ;; | 
 | 11745 |         sparc*-*-solaris*) | 
 | 11746 |           LD="${LD-ld} -m elf64_sparc" | 
 | 11747 |           ;; | 
 | 11748 |         esac | 
 | 11749 |         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available. | 
 | 11750 |         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | 
 | 11751 |           LD="${LD-ld}_sol2" | 
 | 11752 |         fi | 
 | 11753 |         ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11754 |       *) | 
 | 11755 | 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 
 | 11756 | 	  LD="${LD-ld} -64" | 
 | 11757 | 	fi | 
 | 11758 | 	;; | 
 | 11759 |       esac | 
 | 11760 |       ;; | 
 | 11761 |     esac | 
 | 11762 |   fi | 
 | 11763 |   rm -rf conftest* | 
 | 11764 |   ;; | 
 | 11765 | esac | 
 | 11766 |  | 
 | 11767 | need_locks="$enable_libtool_lock" | 
 | 11768 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11769 | if test -n "$ac_tool_prefix"; then | 
 | 11770 |   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | 
 | 11771 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | 
 | 11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11773 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 11774 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | 
 | 11775 |   $as_echo_n "(cached) " >&6 | 
 | 11776 | else | 
 | 11777 |   if test -n "$MANIFEST_TOOL"; then | 
 | 11778 |   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | 
 | 11779 | else | 
 | 11780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11781 | for as_dir in $PATH | 
 | 11782 | do | 
 | 11783 |   IFS=$as_save_IFS | 
 | 11784 |   test -z "$as_dir" && as_dir=. | 
 | 11785 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11786 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11787 |     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | 
 | 11788 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11789 |     break 2 | 
 | 11790 |   fi | 
 | 11791 | done | 
 | 11792 |   done | 
 | 11793 | IFS=$as_save_IFS | 
 | 11794 |  | 
 | 11795 | fi | 
 | 11796 | fi | 
 | 11797 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | 
 | 11798 | if test -n "$MANIFEST_TOOL"; then | 
 | 11799 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | 
 | 11800 | $as_echo "$MANIFEST_TOOL" >&6; } | 
 | 11801 | else | 
 | 11802 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11803 | $as_echo "no" >&6; } | 
 | 11804 | fi | 
 | 11805 |  | 
 | 11806 |  | 
 | 11807 | fi | 
 | 11808 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | 
 | 11809 |   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | 
 | 11810 |   # Extract the first word of "mt", so it can be a program name with args. | 
 | 11811 | set dummy mt; ac_word=$2 | 
 | 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11813 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 11814 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | 
 | 11815 |   $as_echo_n "(cached) " >&6 | 
 | 11816 | else | 
 | 11817 |   if test -n "$ac_ct_MANIFEST_TOOL"; then | 
 | 11818 |   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | 
 | 11819 | else | 
 | 11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11821 | for as_dir in $PATH | 
 | 11822 | do | 
 | 11823 |   IFS=$as_save_IFS | 
 | 11824 |   test -z "$as_dir" && as_dir=. | 
 | 11825 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11826 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11827 |     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | 
 | 11828 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11829 |     break 2 | 
 | 11830 |   fi | 
 | 11831 | done | 
 | 11832 |   done | 
 | 11833 | IFS=$as_save_IFS | 
 | 11834 |  | 
 | 11835 | fi | 
 | 11836 | fi | 
 | 11837 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | 
 | 11838 | if test -n "$ac_ct_MANIFEST_TOOL"; then | 
 | 11839 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | 
 | 11840 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | 
 | 11841 | else | 
 | 11842 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11843 | $as_echo "no" >&6; } | 
 | 11844 | fi | 
 | 11845 |  | 
 | 11846 |   if test "x$ac_ct_MANIFEST_TOOL" = x; then | 
 | 11847 |     MANIFEST_TOOL=":" | 
 | 11848 |   else | 
 | 11849 |     case $cross_compiling:$ac_tool_warned in | 
 | 11850 | yes:) | 
 | 11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 11852 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 11853 | ac_tool_warned=yes ;; | 
 | 11854 | esac | 
 | 11855 |     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | 
 | 11856 |   fi | 
 | 11857 | else | 
 | 11858 |   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | 
 | 11859 | fi | 
 | 11860 |  | 
 | 11861 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | 
 | 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | 
 | 11863 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | 
 | 11864 | if ${lt_cv_path_mainfest_tool+:} false; then : | 
 | 11865 |   $as_echo_n "(cached) " >&6 | 
 | 11866 | else | 
 | 11867 |   lt_cv_path_mainfest_tool=no | 
 | 11868 |   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | 
 | 11869 |   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | 
 | 11870 |   cat conftest.err >&5 | 
 | 11871 |   if $GREP 'Manifest Tool' conftest.out > /dev/null; then | 
 | 11872 |     lt_cv_path_mainfest_tool=yes | 
 | 11873 |   fi | 
 | 11874 |   rm -f conftest* | 
 | 11875 | fi | 
 | 11876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | 
 | 11877 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | 
 | 11878 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | 
 | 11879 |   MANIFEST_TOOL=: | 
 | 11880 | fi | 
 | 11881 |  | 
 | 11882 |  | 
 | 11883 |  | 
 | 11884 |  | 
 | 11885 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11886 |  | 
 | 11887 |   case $host_os in | 
 | 11888 |     rhapsody* | darwin*) | 
 | 11889 |     if test -n "$ac_tool_prefix"; then | 
 | 11890 |   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | 
 | 11891 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | 
 | 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11893 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11894 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11895 |   $as_echo_n "(cached) " >&6 | 
 | 11896 | else | 
 | 11897 |   if test -n "$DSYMUTIL"; then | 
 | 11898 |   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | 
 | 11899 | else | 
 | 11900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11901 | for as_dir in $PATH | 
 | 11902 | do | 
 | 11903 |   IFS=$as_save_IFS | 
 | 11904 |   test -z "$as_dir" && as_dir=. | 
 | 11905 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11906 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11907 |     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | 
 | 11908 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11909 |     break 2 | 
 | 11910 |   fi | 
 | 11911 | done | 
 | 11912 |   done | 
 | 11913 | IFS=$as_save_IFS | 
 | 11914 |  | 
 | 11915 | fi | 
 | 11916 | fi | 
 | 11917 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | 
 | 11918 | if test -n "$DSYMUTIL"; then | 
 | 11919 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | 
 | 11920 | $as_echo "$DSYMUTIL" >&6; } | 
 | 11921 | else | 
 | 11922 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11923 | $as_echo "no" >&6; } | 
 | 11924 | fi | 
 | 11925 |  | 
 | 11926 |  | 
 | 11927 | fi | 
 | 11928 | if test -z "$ac_cv_prog_DSYMUTIL"; then | 
 | 11929 |   ac_ct_DSYMUTIL=$DSYMUTIL | 
 | 11930 |   # Extract the first word of "dsymutil", so it can be a program name with args. | 
 | 11931 | set dummy dsymutil; ac_word=$2 | 
 | 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11933 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11934 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11935 |   $as_echo_n "(cached) " >&6 | 
 | 11936 | else | 
 | 11937 |   if test -n "$ac_ct_DSYMUTIL"; then | 
 | 11938 |   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | 
 | 11939 | else | 
 | 11940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11941 | for as_dir in $PATH | 
 | 11942 | do | 
 | 11943 |   IFS=$as_save_IFS | 
 | 11944 |   test -z "$as_dir" && as_dir=. | 
 | 11945 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11946 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11947 |     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | 
 | 11948 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 11949 |     break 2 | 
 | 11950 |   fi | 
 | 11951 | done | 
 | 11952 |   done | 
 | 11953 | IFS=$as_save_IFS | 
 | 11954 |  | 
 | 11955 | fi | 
 | 11956 | fi | 
 | 11957 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | 
 | 11958 | if test -n "$ac_ct_DSYMUTIL"; then | 
 | 11959 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | 
 | 11960 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | 
 | 11961 | else | 
 | 11962 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 11963 | $as_echo "no" >&6; } | 
 | 11964 | fi | 
 | 11965 |  | 
 | 11966 |   if test "x$ac_ct_DSYMUTIL" = x; then | 
 | 11967 |     DSYMUTIL=":" | 
 | 11968 |   else | 
 | 11969 |     case $cross_compiling:$ac_tool_warned in | 
 | 11970 | yes:) | 
 | 11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 11972 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 11973 | ac_tool_warned=yes ;; | 
 | 11974 | esac | 
 | 11975 |     DSYMUTIL=$ac_ct_DSYMUTIL | 
 | 11976 |   fi | 
 | 11977 | else | 
 | 11978 |   DSYMUTIL="$ac_cv_prog_DSYMUTIL" | 
 | 11979 | fi | 
 | 11980 |  | 
 | 11981 |     if test -n "$ac_tool_prefix"; then | 
 | 11982 |   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | 
 | 11983 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | 
 | 11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 11985 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11986 | if ${ac_cv_prog_NMEDIT+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11987 |   $as_echo_n "(cached) " >&6 | 
 | 11988 | else | 
 | 11989 |   if test -n "$NMEDIT"; then | 
 | 11990 |   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | 
 | 11991 | else | 
 | 11992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 11993 | for as_dir in $PATH | 
 | 11994 | do | 
 | 11995 |   IFS=$as_save_IFS | 
 | 11996 |   test -z "$as_dir" && as_dir=. | 
 | 11997 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 11998 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 11999 |     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | 
 | 12000 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12001 |     break 2 | 
 | 12002 |   fi | 
 | 12003 | done | 
 | 12004 |   done | 
 | 12005 | IFS=$as_save_IFS | 
 | 12006 |  | 
 | 12007 | fi | 
 | 12008 | fi | 
 | 12009 | NMEDIT=$ac_cv_prog_NMEDIT | 
 | 12010 | if test -n "$NMEDIT"; then | 
 | 12011 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | 
 | 12012 | $as_echo "$NMEDIT" >&6; } | 
 | 12013 | else | 
 | 12014 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12015 | $as_echo "no" >&6; } | 
 | 12016 | fi | 
 | 12017 |  | 
 | 12018 |  | 
 | 12019 | fi | 
 | 12020 | if test -z "$ac_cv_prog_NMEDIT"; then | 
 | 12021 |   ac_ct_NMEDIT=$NMEDIT | 
 | 12022 |   # Extract the first word of "nmedit", so it can be a program name with args. | 
 | 12023 | set dummy nmedit; ac_word=$2 | 
 | 12024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12025 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12026 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12027 |   $as_echo_n "(cached) " >&6 | 
 | 12028 | else | 
 | 12029 |   if test -n "$ac_ct_NMEDIT"; then | 
 | 12030 |   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | 
 | 12031 | else | 
 | 12032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12033 | for as_dir in $PATH | 
 | 12034 | do | 
 | 12035 |   IFS=$as_save_IFS | 
 | 12036 |   test -z "$as_dir" && as_dir=. | 
 | 12037 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12038 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12039 |     ac_cv_prog_ac_ct_NMEDIT="nmedit" | 
 | 12040 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12041 |     break 2 | 
 | 12042 |   fi | 
 | 12043 | done | 
 | 12044 |   done | 
 | 12045 | IFS=$as_save_IFS | 
 | 12046 |  | 
 | 12047 | fi | 
 | 12048 | fi | 
 | 12049 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | 
 | 12050 | if test -n "$ac_ct_NMEDIT"; then | 
 | 12051 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | 
 | 12052 | $as_echo "$ac_ct_NMEDIT" >&6; } | 
 | 12053 | else | 
 | 12054 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12055 | $as_echo "no" >&6; } | 
 | 12056 | fi | 
 | 12057 |  | 
 | 12058 |   if test "x$ac_ct_NMEDIT" = x; then | 
 | 12059 |     NMEDIT=":" | 
 | 12060 |   else | 
 | 12061 |     case $cross_compiling:$ac_tool_warned in | 
 | 12062 | yes:) | 
 | 12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12065 | ac_tool_warned=yes ;; | 
 | 12066 | esac | 
 | 12067 |     NMEDIT=$ac_ct_NMEDIT | 
 | 12068 |   fi | 
 | 12069 | else | 
 | 12070 |   NMEDIT="$ac_cv_prog_NMEDIT" | 
 | 12071 | fi | 
 | 12072 |  | 
 | 12073 |     if test -n "$ac_tool_prefix"; then | 
 | 12074 |   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | 
 | 12075 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | 
 | 12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12077 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12078 | if ${ac_cv_prog_LIPO+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12079 |   $as_echo_n "(cached) " >&6 | 
 | 12080 | else | 
 | 12081 |   if test -n "$LIPO"; then | 
 | 12082 |   ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | 
 | 12083 | else | 
 | 12084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12085 | for as_dir in $PATH | 
 | 12086 | do | 
 | 12087 |   IFS=$as_save_IFS | 
 | 12088 |   test -z "$as_dir" && as_dir=. | 
 | 12089 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12090 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12091 |     ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | 
 | 12092 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12093 |     break 2 | 
 | 12094 |   fi | 
 | 12095 | done | 
 | 12096 |   done | 
 | 12097 | IFS=$as_save_IFS | 
 | 12098 |  | 
 | 12099 | fi | 
 | 12100 | fi | 
 | 12101 | LIPO=$ac_cv_prog_LIPO | 
 | 12102 | if test -n "$LIPO"; then | 
 | 12103 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | 
 | 12104 | $as_echo "$LIPO" >&6; } | 
 | 12105 | else | 
 | 12106 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12107 | $as_echo "no" >&6; } | 
 | 12108 | fi | 
 | 12109 |  | 
 | 12110 |  | 
 | 12111 | fi | 
 | 12112 | if test -z "$ac_cv_prog_LIPO"; then | 
 | 12113 |   ac_ct_LIPO=$LIPO | 
 | 12114 |   # Extract the first word of "lipo", so it can be a program name with args. | 
 | 12115 | set dummy lipo; ac_word=$2 | 
 | 12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12117 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12118 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12119 |   $as_echo_n "(cached) " >&6 | 
 | 12120 | else | 
 | 12121 |   if test -n "$ac_ct_LIPO"; then | 
 | 12122 |   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | 
 | 12123 | else | 
 | 12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12125 | for as_dir in $PATH | 
 | 12126 | do | 
 | 12127 |   IFS=$as_save_IFS | 
 | 12128 |   test -z "$as_dir" && as_dir=. | 
 | 12129 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12130 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12131 |     ac_cv_prog_ac_ct_LIPO="lipo" | 
 | 12132 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12133 |     break 2 | 
 | 12134 |   fi | 
 | 12135 | done | 
 | 12136 |   done | 
 | 12137 | IFS=$as_save_IFS | 
 | 12138 |  | 
 | 12139 | fi | 
 | 12140 | fi | 
 | 12141 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | 
 | 12142 | if test -n "$ac_ct_LIPO"; then | 
 | 12143 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | 
 | 12144 | $as_echo "$ac_ct_LIPO" >&6; } | 
 | 12145 | else | 
 | 12146 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12147 | $as_echo "no" >&6; } | 
 | 12148 | fi | 
 | 12149 |  | 
 | 12150 |   if test "x$ac_ct_LIPO" = x; then | 
 | 12151 |     LIPO=":" | 
 | 12152 |   else | 
 | 12153 |     case $cross_compiling:$ac_tool_warned in | 
 | 12154 | yes:) | 
 | 12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12157 | ac_tool_warned=yes ;; | 
 | 12158 | esac | 
 | 12159 |     LIPO=$ac_ct_LIPO | 
 | 12160 |   fi | 
 | 12161 | else | 
 | 12162 |   LIPO="$ac_cv_prog_LIPO" | 
 | 12163 | fi | 
 | 12164 |  | 
 | 12165 |     if test -n "$ac_tool_prefix"; then | 
 | 12166 |   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | 
 | 12167 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | 
 | 12168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12169 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12170 | if ${ac_cv_prog_OTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12171 |   $as_echo_n "(cached) " >&6 | 
 | 12172 | else | 
 | 12173 |   if test -n "$OTOOL"; then | 
 | 12174 |   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | 
 | 12175 | else | 
 | 12176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12177 | for as_dir in $PATH | 
 | 12178 | do | 
 | 12179 |   IFS=$as_save_IFS | 
 | 12180 |   test -z "$as_dir" && as_dir=. | 
 | 12181 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12182 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12183 |     ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | 
 | 12184 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12185 |     break 2 | 
 | 12186 |   fi | 
 | 12187 | done | 
 | 12188 |   done | 
 | 12189 | IFS=$as_save_IFS | 
 | 12190 |  | 
 | 12191 | fi | 
 | 12192 | fi | 
 | 12193 | OTOOL=$ac_cv_prog_OTOOL | 
 | 12194 | if test -n "$OTOOL"; then | 
 | 12195 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | 
 | 12196 | $as_echo "$OTOOL" >&6; } | 
 | 12197 | else | 
 | 12198 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12199 | $as_echo "no" >&6; } | 
 | 12200 | fi | 
 | 12201 |  | 
 | 12202 |  | 
 | 12203 | fi | 
 | 12204 | if test -z "$ac_cv_prog_OTOOL"; then | 
 | 12205 |   ac_ct_OTOOL=$OTOOL | 
 | 12206 |   # Extract the first word of "otool", so it can be a program name with args. | 
 | 12207 | set dummy otool; ac_word=$2 | 
 | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12209 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12210 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12211 |   $as_echo_n "(cached) " >&6 | 
 | 12212 | else | 
 | 12213 |   if test -n "$ac_ct_OTOOL"; then | 
 | 12214 |   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | 
 | 12215 | else | 
 | 12216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12217 | for as_dir in $PATH | 
 | 12218 | do | 
 | 12219 |   IFS=$as_save_IFS | 
 | 12220 |   test -z "$as_dir" && as_dir=. | 
 | 12221 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12222 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12223 |     ac_cv_prog_ac_ct_OTOOL="otool" | 
 | 12224 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12225 |     break 2 | 
 | 12226 |   fi | 
 | 12227 | done | 
 | 12228 |   done | 
 | 12229 | IFS=$as_save_IFS | 
 | 12230 |  | 
 | 12231 | fi | 
 | 12232 | fi | 
 | 12233 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | 
 | 12234 | if test -n "$ac_ct_OTOOL"; then | 
 | 12235 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | 
 | 12236 | $as_echo "$ac_ct_OTOOL" >&6; } | 
 | 12237 | else | 
 | 12238 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12239 | $as_echo "no" >&6; } | 
 | 12240 | fi | 
 | 12241 |  | 
 | 12242 |   if test "x$ac_ct_OTOOL" = x; then | 
 | 12243 |     OTOOL=":" | 
 | 12244 |   else | 
 | 12245 |     case $cross_compiling:$ac_tool_warned in | 
 | 12246 | yes:) | 
 | 12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12248 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12249 | ac_tool_warned=yes ;; | 
 | 12250 | esac | 
 | 12251 |     OTOOL=$ac_ct_OTOOL | 
 | 12252 |   fi | 
 | 12253 | else | 
 | 12254 |   OTOOL="$ac_cv_prog_OTOOL" | 
 | 12255 | fi | 
 | 12256 |  | 
 | 12257 |     if test -n "$ac_tool_prefix"; then | 
 | 12258 |   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | 
 | 12259 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | 
 | 12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12261 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12262 | if ${ac_cv_prog_OTOOL64+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12263 |   $as_echo_n "(cached) " >&6 | 
 | 12264 | else | 
 | 12265 |   if test -n "$OTOOL64"; then | 
 | 12266 |   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | 
 | 12267 | else | 
 | 12268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12269 | for as_dir in $PATH | 
 | 12270 | do | 
 | 12271 |   IFS=$as_save_IFS | 
 | 12272 |   test -z "$as_dir" && as_dir=. | 
 | 12273 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12274 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12275 |     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | 
 | 12276 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12277 |     break 2 | 
 | 12278 |   fi | 
 | 12279 | done | 
 | 12280 |   done | 
 | 12281 | IFS=$as_save_IFS | 
 | 12282 |  | 
 | 12283 | fi | 
 | 12284 | fi | 
 | 12285 | OTOOL64=$ac_cv_prog_OTOOL64 | 
 | 12286 | if test -n "$OTOOL64"; then | 
 | 12287 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | 
 | 12288 | $as_echo "$OTOOL64" >&6; } | 
 | 12289 | else | 
 | 12290 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12291 | $as_echo "no" >&6; } | 
 | 12292 | fi | 
 | 12293 |  | 
 | 12294 |  | 
 | 12295 | fi | 
 | 12296 | if test -z "$ac_cv_prog_OTOOL64"; then | 
 | 12297 |   ac_ct_OTOOL64=$OTOOL64 | 
 | 12298 |   # Extract the first word of "otool64", so it can be a program name with args. | 
 | 12299 | set dummy otool64; ac_word=$2 | 
 | 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12301 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12302 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12303 |   $as_echo_n "(cached) " >&6 | 
 | 12304 | else | 
 | 12305 |   if test -n "$ac_ct_OTOOL64"; then | 
 | 12306 |   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | 
 | 12307 | else | 
 | 12308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12309 | for as_dir in $PATH | 
 | 12310 | do | 
 | 12311 |   IFS=$as_save_IFS | 
 | 12312 |   test -z "$as_dir" && as_dir=. | 
 | 12313 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12314 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12315 |     ac_cv_prog_ac_ct_OTOOL64="otool64" | 
 | 12316 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12317 |     break 2 | 
 | 12318 |   fi | 
 | 12319 | done | 
 | 12320 |   done | 
 | 12321 | IFS=$as_save_IFS | 
 | 12322 |  | 
 | 12323 | fi | 
 | 12324 | fi | 
 | 12325 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | 
 | 12326 | if test -n "$ac_ct_OTOOL64"; then | 
 | 12327 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | 
 | 12328 | $as_echo "$ac_ct_OTOOL64" >&6; } | 
 | 12329 | else | 
 | 12330 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12331 | $as_echo "no" >&6; } | 
 | 12332 | fi | 
 | 12333 |  | 
 | 12334 |   if test "x$ac_ct_OTOOL64" = x; then | 
 | 12335 |     OTOOL64=":" | 
 | 12336 |   else | 
 | 12337 |     case $cross_compiling:$ac_tool_warned in | 
 | 12338 | yes:) | 
 | 12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12341 | ac_tool_warned=yes ;; | 
 | 12342 | esac | 
 | 12343 |     OTOOL64=$ac_ct_OTOOL64 | 
 | 12344 |   fi | 
 | 12345 | else | 
 | 12346 |   OTOOL64="$ac_cv_prog_OTOOL64" | 
 | 12347 | fi | 
 | 12348 |  | 
 | 12349 |  | 
 | 12350 |  | 
 | 12351 |  | 
 | 12352 |  | 
 | 12353 |  | 
 | 12354 |  | 
 | 12355 |  | 
 | 12356 |  | 
 | 12357 |  | 
 | 12358 |  | 
 | 12359 |  | 
 | 12360 |  | 
 | 12361 |  | 
 | 12362 |  | 
 | 12363 |  | 
 | 12364 |  | 
 | 12365 |  | 
 | 12366 |  | 
 | 12367 |  | 
 | 12368 |  | 
 | 12369 |  | 
 | 12370 |  | 
 | 12371 |  | 
 | 12372 |  | 
 | 12373 |  | 
 | 12374 |  | 
 | 12375 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | 
 | 12376 | $as_echo_n "checking for -single_module linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12377 | if ${lt_cv_apple_cc_single_mod+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12378 |   $as_echo_n "(cached) " >&6 | 
 | 12379 | else | 
 | 12380 |   lt_cv_apple_cc_single_mod=no | 
 | 12381 |       if test -z "${LT_MULTI_MODULE}"; then | 
 | 12382 | 	# By default we will add the -single_module flag. You can override | 
 | 12383 | 	# by either setting the environment variable LT_MULTI_MODULE | 
 | 12384 | 	# non-empty at configure time, or by adding -multi_module to the | 
 | 12385 | 	# link flags. | 
 | 12386 | 	rm -rf libconftest.dylib* | 
 | 12387 | 	echo "int foo(void){return 1;}" > conftest.c | 
 | 12388 | 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
 | 12389 | -dynamiclib -Wl,-single_module conftest.c" >&5 | 
 | 12390 | 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
 | 12391 | 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 
 | 12392 |         _lt_result=$? | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12393 | 	# If there is a non-empty error log, and "single_module" | 
 | 12394 | 	# appears in it, assume the flag caused a linker warning | 
 | 12395 |         if test -s conftest.err && $GREP single_module conftest.err; then | 
 | 12396 | 	  cat conftest.err >&5 | 
 | 12397 | 	# Otherwise, if the output was created with a 0 exit code from | 
 | 12398 | 	# the compiler, it worked. | 
 | 12399 | 	elif test -f libconftest.dylib && test $_lt_result -eq 0; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12400 | 	  lt_cv_apple_cc_single_mod=yes | 
 | 12401 | 	else | 
 | 12402 | 	  cat conftest.err >&5 | 
 | 12403 | 	fi | 
 | 12404 | 	rm -rf libconftest.dylib* | 
 | 12405 | 	rm -f conftest.* | 
 | 12406 |       fi | 
 | 12407 | fi | 
 | 12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | 
 | 12409 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12410 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12411 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | 
 | 12412 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12413 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12414 |   $as_echo_n "(cached) " >&6 | 
 | 12415 | else | 
 | 12416 |   lt_cv_ld_exported_symbols_list=no | 
 | 12417 |       save_LDFLAGS=$LDFLAGS | 
 | 12418 |       echo "_main" > conftest.sym | 
 | 12419 |       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | 
 | 12420 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 12421 | /* end confdefs.h.  */ | 
 | 12422 |  | 
 | 12423 | int | 
 | 12424 | main () | 
 | 12425 | { | 
 | 12426 |  | 
 | 12427 |   ; | 
 | 12428 |   return 0; | 
 | 12429 | } | 
 | 12430 | _ACEOF | 
 | 12431 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 12432 |   lt_cv_ld_exported_symbols_list=yes | 
 | 12433 | else | 
 | 12434 |   lt_cv_ld_exported_symbols_list=no | 
 | 12435 | fi | 
 | 12436 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 12437 |     conftest$ac_exeext conftest.$ac_ext | 
 | 12438 | 	LDFLAGS="$save_LDFLAGS" | 
 | 12439 |  | 
 | 12440 | fi | 
 | 12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | 
 | 12442 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12443 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12444 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | 
 | 12445 | $as_echo_n "checking for -force_load linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12446 | if ${lt_cv_ld_force_load+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12447 |   $as_echo_n "(cached) " >&6 | 
 | 12448 | else | 
 | 12449 |   lt_cv_ld_force_load=no | 
 | 12450 |       cat > conftest.c << _LT_EOF | 
 | 12451 | int forced_loaded() { return 2;} | 
 | 12452 | _LT_EOF | 
 | 12453 |       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | 
 | 12454 |       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | 
 | 12455 |       echo "$AR cru libconftest.a conftest.o" >&5 | 
 | 12456 |       $AR cru libconftest.a conftest.o 2>&5 | 
 | 12457 |       echo "$RANLIB libconftest.a" >&5 | 
 | 12458 |       $RANLIB libconftest.a 2>&5 | 
 | 12459 |       cat > conftest.c << _LT_EOF | 
 | 12460 | int main() { return 0;} | 
 | 12461 | _LT_EOF | 
 | 12462 |       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | 
 | 12463 |       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 
 | 12464 |       _lt_result=$? | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12465 |       if test -s conftest.err && $GREP force_load conftest.err; then | 
 | 12466 | 	cat conftest.err >&5 | 
 | 12467 |       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12468 | 	lt_cv_ld_force_load=yes | 
 | 12469 |       else | 
 | 12470 | 	cat conftest.err >&5 | 
 | 12471 |       fi | 
 | 12472 |         rm -f conftest.err libconftest.a conftest conftest.c | 
 | 12473 |         rm -rf conftest.dSYM | 
 | 12474 |  | 
 | 12475 | fi | 
 | 12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | 
 | 12477 | $as_echo "$lt_cv_ld_force_load" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12478 |     case $host_os in | 
 | 12479 |     rhapsody* | darwin1.[012]) | 
 | 12480 |       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 
 | 12481 |     darwin1.*) | 
 | 12482 |       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
 | 12483 |     darwin*) # darwin 5.x on | 
 | 12484 |       # if running on 10.5 or later, the deployment target defaults | 
 | 12485 |       # to the OS version, if on x86, and 10.4, the deployment | 
 | 12486 |       # target defaults to 10.4. Don't you love it? | 
 | 12487 |       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 
 | 12488 | 	10.0,*86*-darwin8*|10.0,*-darwin[91]*) | 
 | 12489 | 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
 | 12490 | 	10.[012]*) | 
 | 12491 | 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
 | 12492 | 	10.*) | 
 | 12493 | 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
 | 12494 |       esac | 
 | 12495 |     ;; | 
 | 12496 |   esac | 
 | 12497 |     if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 
 | 12498 |       _lt_dar_single_mod='$single_module' | 
 | 12499 |     fi | 
 | 12500 |     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 
 | 12501 |       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | 
 | 12502 |     else | 
 | 12503 |       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
 | 12504 |     fi | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12505 |     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12506 |       _lt_dsymutil='~$DSYMUTIL $lib || :' | 
 | 12507 |     else | 
 | 12508 |       _lt_dsymutil= | 
 | 12509 |     fi | 
 | 12510 |     ;; | 
 | 12511 |   esac | 
 | 12512 |  | 
 | 12513 | for ac_header in dlfcn.h | 
 | 12514 | do : | 
 | 12515 |   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | 
 | 12516 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12517 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12518 |   cat >>confdefs.h <<_ACEOF | 
 | 12519 | #define HAVE_DLFCN_H 1 | 
 | 12520 | _ACEOF | 
 | 12521 |  | 
 | 12522 | fi | 
 | 12523 |  | 
 | 12524 | done | 
 | 12525 |  | 
 | 12526 |  | 
 | 12527 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12528 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12529 | func_stripname_cnf () | 
 | 12530 | { | 
 | 12531 |   case ${2} in | 
 | 12532 |   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | 
 | 12533 |   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | 
 | 12534 |   esac | 
 | 12535 | } # func_stripname_cnf | 
 | 12536 |  | 
 | 12537 |  | 
 | 12538 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12539 |  | 
 | 12540 |  | 
 | 12541 | # Set options | 
 | 12542 | enable_win32_dll=yes | 
 | 12543 |  | 
 | 12544 | case $host in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12545 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12546 |   if test -n "$ac_tool_prefix"; then | 
 | 12547 |   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | 
 | 12548 | set dummy ${ac_tool_prefix}as; ac_word=$2 | 
 | 12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12550 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12551 | if ${ac_cv_prog_AS+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12552 |   $as_echo_n "(cached) " >&6 | 
 | 12553 | else | 
 | 12554 |   if test -n "$AS"; then | 
 | 12555 |   ac_cv_prog_AS="$AS" # Let the user override the test. | 
 | 12556 | else | 
 | 12557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12558 | for as_dir in $PATH | 
 | 12559 | do | 
 | 12560 |   IFS=$as_save_IFS | 
 | 12561 |   test -z "$as_dir" && as_dir=. | 
 | 12562 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12563 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12564 |     ac_cv_prog_AS="${ac_tool_prefix}as" | 
 | 12565 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12566 |     break 2 | 
 | 12567 |   fi | 
 | 12568 | done | 
 | 12569 |   done | 
 | 12570 | IFS=$as_save_IFS | 
 | 12571 |  | 
 | 12572 | fi | 
 | 12573 | fi | 
 | 12574 | AS=$ac_cv_prog_AS | 
 | 12575 | if test -n "$AS"; then | 
 | 12576 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | 
 | 12577 | $as_echo "$AS" >&6; } | 
 | 12578 | else | 
 | 12579 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12580 | $as_echo "no" >&6; } | 
 | 12581 | fi | 
 | 12582 |  | 
 | 12583 |  | 
 | 12584 | fi | 
 | 12585 | if test -z "$ac_cv_prog_AS"; then | 
 | 12586 |   ac_ct_AS=$AS | 
 | 12587 |   # Extract the first word of "as", so it can be a program name with args. | 
 | 12588 | set dummy as; ac_word=$2 | 
 | 12589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12590 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12591 | if ${ac_cv_prog_ac_ct_AS+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12592 |   $as_echo_n "(cached) " >&6 | 
 | 12593 | else | 
 | 12594 |   if test -n "$ac_ct_AS"; then | 
 | 12595 |   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | 
 | 12596 | else | 
 | 12597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12598 | for as_dir in $PATH | 
 | 12599 | do | 
 | 12600 |   IFS=$as_save_IFS | 
 | 12601 |   test -z "$as_dir" && as_dir=. | 
 | 12602 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12603 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12604 |     ac_cv_prog_ac_ct_AS="as" | 
 | 12605 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12606 |     break 2 | 
 | 12607 |   fi | 
 | 12608 | done | 
 | 12609 |   done | 
 | 12610 | IFS=$as_save_IFS | 
 | 12611 |  | 
 | 12612 | fi | 
 | 12613 | fi | 
 | 12614 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | 
 | 12615 | if test -n "$ac_ct_AS"; then | 
 | 12616 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | 
 | 12617 | $as_echo "$ac_ct_AS" >&6; } | 
 | 12618 | else | 
 | 12619 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12620 | $as_echo "no" >&6; } | 
 | 12621 | fi | 
 | 12622 |  | 
 | 12623 |   if test "x$ac_ct_AS" = x; then | 
 | 12624 |     AS="false" | 
 | 12625 |   else | 
 | 12626 |     case $cross_compiling:$ac_tool_warned in | 
 | 12627 | yes:) | 
 | 12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12629 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12630 | ac_tool_warned=yes ;; | 
 | 12631 | esac | 
 | 12632 |     AS=$ac_ct_AS | 
 | 12633 |   fi | 
 | 12634 | else | 
 | 12635 |   AS="$ac_cv_prog_AS" | 
 | 12636 | fi | 
 | 12637 |  | 
 | 12638 |   if test -n "$ac_tool_prefix"; then | 
 | 12639 |   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 
 | 12640 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 
 | 12641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12642 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12643 | if ${ac_cv_prog_DLLTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12644 |   $as_echo_n "(cached) " >&6 | 
 | 12645 | else | 
 | 12646 |   if test -n "$DLLTOOL"; then | 
 | 12647 |   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | 
 | 12648 | else | 
 | 12649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12650 | for as_dir in $PATH | 
 | 12651 | do | 
 | 12652 |   IFS=$as_save_IFS | 
 | 12653 |   test -z "$as_dir" && as_dir=. | 
 | 12654 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12655 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12656 |     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | 
 | 12657 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12658 |     break 2 | 
 | 12659 |   fi | 
 | 12660 | done | 
 | 12661 |   done | 
 | 12662 | IFS=$as_save_IFS | 
 | 12663 |  | 
 | 12664 | fi | 
 | 12665 | fi | 
 | 12666 | DLLTOOL=$ac_cv_prog_DLLTOOL | 
 | 12667 | if test -n "$DLLTOOL"; then | 
 | 12668 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | 
 | 12669 | $as_echo "$DLLTOOL" >&6; } | 
 | 12670 | else | 
 | 12671 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12672 | $as_echo "no" >&6; } | 
 | 12673 | fi | 
 | 12674 |  | 
 | 12675 |  | 
 | 12676 | fi | 
 | 12677 | if test -z "$ac_cv_prog_DLLTOOL"; then | 
 | 12678 |   ac_ct_DLLTOOL=$DLLTOOL | 
 | 12679 |   # Extract the first word of "dlltool", so it can be a program name with args. | 
 | 12680 | set dummy dlltool; ac_word=$2 | 
 | 12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12682 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12683 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12684 |   $as_echo_n "(cached) " >&6 | 
 | 12685 | else | 
 | 12686 |   if test -n "$ac_ct_DLLTOOL"; then | 
 | 12687 |   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | 
 | 12688 | else | 
 | 12689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12690 | for as_dir in $PATH | 
 | 12691 | do | 
 | 12692 |   IFS=$as_save_IFS | 
 | 12693 |   test -z "$as_dir" && as_dir=. | 
 | 12694 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12695 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12696 |     ac_cv_prog_ac_ct_DLLTOOL="dlltool" | 
 | 12697 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12698 |     break 2 | 
 | 12699 |   fi | 
 | 12700 | done | 
 | 12701 |   done | 
 | 12702 | IFS=$as_save_IFS | 
 | 12703 |  | 
 | 12704 | fi | 
 | 12705 | fi | 
 | 12706 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 
 | 12707 | if test -n "$ac_ct_DLLTOOL"; then | 
 | 12708 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | 
 | 12709 | $as_echo "$ac_ct_DLLTOOL" >&6; } | 
 | 12710 | else | 
 | 12711 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12712 | $as_echo "no" >&6; } | 
 | 12713 | fi | 
 | 12714 |  | 
 | 12715 |   if test "x$ac_ct_DLLTOOL" = x; then | 
 | 12716 |     DLLTOOL="false" | 
 | 12717 |   else | 
 | 12718 |     case $cross_compiling:$ac_tool_warned in | 
 | 12719 | yes:) | 
 | 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12721 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12722 | ac_tool_warned=yes ;; | 
 | 12723 | esac | 
 | 12724 |     DLLTOOL=$ac_ct_DLLTOOL | 
 | 12725 |   fi | 
 | 12726 | else | 
 | 12727 |   DLLTOOL="$ac_cv_prog_DLLTOOL" | 
 | 12728 | fi | 
 | 12729 |  | 
 | 12730 |   if test -n "$ac_tool_prefix"; then | 
 | 12731 |   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
 | 12732 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
 | 12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12734 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12735 | if ${ac_cv_prog_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12736 |   $as_echo_n "(cached) " >&6 | 
 | 12737 | else | 
 | 12738 |   if test -n "$OBJDUMP"; then | 
 | 12739 |   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
 | 12740 | else | 
 | 12741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12742 | for as_dir in $PATH | 
 | 12743 | do | 
 | 12744 |   IFS=$as_save_IFS | 
 | 12745 |   test -z "$as_dir" && as_dir=. | 
 | 12746 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12747 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12748 |     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
 | 12749 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12750 |     break 2 | 
 | 12751 |   fi | 
 | 12752 | done | 
 | 12753 |   done | 
 | 12754 | IFS=$as_save_IFS | 
 | 12755 |  | 
 | 12756 | fi | 
 | 12757 | fi | 
 | 12758 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
 | 12759 | if test -n "$OBJDUMP"; then | 
 | 12760 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
 | 12761 | $as_echo "$OBJDUMP" >&6; } | 
 | 12762 | else | 
 | 12763 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12764 | $as_echo "no" >&6; } | 
 | 12765 | fi | 
 | 12766 |  | 
 | 12767 |  | 
 | 12768 | fi | 
 | 12769 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
 | 12770 |   ac_ct_OBJDUMP=$OBJDUMP | 
 | 12771 |   # Extract the first word of "objdump", so it can be a program name with args. | 
 | 12772 | set dummy objdump; ac_word=$2 | 
 | 12773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 12774 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12775 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12776 |   $as_echo_n "(cached) " >&6 | 
 | 12777 | else | 
 | 12778 |   if test -n "$ac_ct_OBJDUMP"; then | 
 | 12779 |   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
 | 12780 | else | 
 | 12781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 12782 | for as_dir in $PATH | 
 | 12783 | do | 
 | 12784 |   IFS=$as_save_IFS | 
 | 12785 |   test -z "$as_dir" && as_dir=. | 
 | 12786 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 12787 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 12788 |     ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
 | 12789 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 12790 |     break 2 | 
 | 12791 |   fi | 
 | 12792 | done | 
 | 12793 |   done | 
 | 12794 | IFS=$as_save_IFS | 
 | 12795 |  | 
 | 12796 | fi | 
 | 12797 | fi | 
 | 12798 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
 | 12799 | if test -n "$ac_ct_OBJDUMP"; then | 
 | 12800 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
 | 12801 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
 | 12802 | else | 
 | 12803 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 12804 | $as_echo "no" >&6; } | 
 | 12805 | fi | 
 | 12806 |  | 
 | 12807 |   if test "x$ac_ct_OBJDUMP" = x; then | 
 | 12808 |     OBJDUMP="false" | 
 | 12809 |   else | 
 | 12810 |     case $cross_compiling:$ac_tool_warned in | 
 | 12811 | yes:) | 
 | 12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
 | 12813 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 12814 | ac_tool_warned=yes ;; | 
 | 12815 | esac | 
 | 12816 |     OBJDUMP=$ac_ct_OBJDUMP | 
 | 12817 |   fi | 
 | 12818 | else | 
 | 12819 |   OBJDUMP="$ac_cv_prog_OBJDUMP" | 
 | 12820 | fi | 
 | 12821 |  | 
 | 12822 |   ;; | 
 | 12823 | esac | 
 | 12824 |  | 
 | 12825 | test -z "$AS" && AS=as | 
 | 12826 |  | 
 | 12827 |  | 
 | 12828 |  | 
 | 12829 |  | 
 | 12830 |  | 
 | 12831 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
 | 12832 |  | 
 | 12833 |  | 
 | 12834 |  | 
 | 12835 |  | 
 | 12836 |  | 
 | 12837 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
 | 12838 |  | 
 | 12839 |  | 
 | 12840 |  | 
 | 12841 |  | 
 | 12842 |  | 
 | 12843 |  | 
 | 12844 |  | 
 | 12845 |  | 
 | 12846 |  | 
 | 12847 |             # Check whether --enable-shared was given. | 
 | 12848 | if test "${enable_shared+set}" = set; then : | 
 | 12849 |   enableval=$enable_shared; p=${PACKAGE-default} | 
 | 12850 |     case $enableval in | 
 | 12851 |     yes) enable_shared=yes ;; | 
 | 12852 |     no) enable_shared=no ;; | 
 | 12853 |     *) | 
 | 12854 |       enable_shared=no | 
 | 12855 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12856 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12857 |       for pkg in $enableval; do | 
 | 12858 | 	IFS="$lt_save_ifs" | 
 | 12859 | 	if test "X$pkg" = "X$p"; then | 
 | 12860 | 	  enable_shared=yes | 
 | 12861 | 	fi | 
 | 12862 |       done | 
 | 12863 |       IFS="$lt_save_ifs" | 
 | 12864 |       ;; | 
 | 12865 |     esac | 
 | 12866 | else | 
 | 12867 |   enable_shared=yes | 
 | 12868 | fi | 
 | 12869 |  | 
 | 12870 |  | 
 | 12871 |  | 
 | 12872 |  | 
 | 12873 |  | 
 | 12874 |  | 
 | 12875 |  | 
 | 12876 |  | 
 | 12877 |  | 
 | 12878 |   # Check whether --enable-static was given. | 
 | 12879 | if test "${enable_static+set}" = set; then : | 
 | 12880 |   enableval=$enable_static; p=${PACKAGE-default} | 
 | 12881 |     case $enableval in | 
 | 12882 |     yes) enable_static=yes ;; | 
 | 12883 |     no) enable_static=no ;; | 
 | 12884 |     *) | 
 | 12885 |      enable_static=no | 
 | 12886 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12887 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12888 |       for pkg in $enableval; do | 
 | 12889 | 	IFS="$lt_save_ifs" | 
 | 12890 | 	if test "X$pkg" = "X$p"; then | 
 | 12891 | 	  enable_static=yes | 
 | 12892 | 	fi | 
 | 12893 |       done | 
 | 12894 |       IFS="$lt_save_ifs" | 
 | 12895 |       ;; | 
 | 12896 |     esac | 
 | 12897 | else | 
 | 12898 |   enable_static=yes | 
 | 12899 | fi | 
 | 12900 |  | 
 | 12901 |  | 
 | 12902 |  | 
 | 12903 |  | 
 | 12904 |  | 
 | 12905 |  | 
 | 12906 |  | 
 | 12907 |  | 
 | 12908 |  | 
 | 12909 |  | 
 | 12910 | # Check whether --with-pic was given. | 
 | 12911 | if test "${with_pic+set}" = set; then : | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12912 |   withval=$with_pic; lt_p=${PACKAGE-default} | 
 | 12913 |     case $withval in | 
 | 12914 |     yes|no) pic_mode=$withval ;; | 
 | 12915 |     *) | 
 | 12916 |       pic_mode=default | 
 | 12917 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12918 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12919 |       for lt_pkg in $withval; do | 
 | 12920 | 	IFS="$lt_save_ifs" | 
 | 12921 | 	if test "X$lt_pkg" = "X$lt_p"; then | 
 | 12922 | 	  pic_mode=yes | 
 | 12923 | 	fi | 
 | 12924 |       done | 
 | 12925 |       IFS="$lt_save_ifs" | 
 | 12926 |       ;; | 
 | 12927 |     esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12928 | else | 
 | 12929 |   pic_mode=default | 
 | 12930 | fi | 
 | 12931 |  | 
 | 12932 |  | 
 | 12933 | test -z "$pic_mode" && pic_mode=default | 
 | 12934 |  | 
 | 12935 |  | 
 | 12936 |  | 
 | 12937 |  | 
 | 12938 |  | 
 | 12939 |  | 
 | 12940 |  | 
 | 12941 |   # Check whether --enable-fast-install was given. | 
 | 12942 | if test "${enable_fast_install+set}" = set; then : | 
 | 12943 |   enableval=$enable_fast_install; p=${PACKAGE-default} | 
 | 12944 |     case $enableval in | 
 | 12945 |     yes) enable_fast_install=yes ;; | 
 | 12946 |     no) enable_fast_install=no ;; | 
 | 12947 |     *) | 
 | 12948 |       enable_fast_install=no | 
 | 12949 |       # Look at the argument we got.  We use all the common list separators. | 
 | 12950 |       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
 | 12951 |       for pkg in $enableval; do | 
 | 12952 | 	IFS="$lt_save_ifs" | 
 | 12953 | 	if test "X$pkg" = "X$p"; then | 
 | 12954 | 	  enable_fast_install=yes | 
 | 12955 | 	fi | 
 | 12956 |       done | 
 | 12957 |       IFS="$lt_save_ifs" | 
 | 12958 |       ;; | 
 | 12959 |     esac | 
 | 12960 | else | 
 | 12961 |   enable_fast_install=yes | 
 | 12962 | fi | 
 | 12963 |  | 
 | 12964 |  | 
 | 12965 |  | 
 | 12966 |  | 
 | 12967 |  | 
 | 12968 |  | 
 | 12969 |  | 
 | 12970 |  | 
 | 12971 |  | 
 | 12972 |  | 
 | 12973 |  | 
 | 12974 | # This can be used to rebuild libtool when needed | 
 | 12975 | LIBTOOL_DEPS="$ltmain" | 
 | 12976 |  | 
 | 12977 | # Always use our own libtool. | 
 | 12978 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
 | 12979 |  | 
 | 12980 |  | 
 | 12981 |  | 
 | 12982 |  | 
 | 12983 |  | 
 | 12984 |  | 
 | 12985 |  | 
 | 12986 |  | 
 | 12987 |  | 
 | 12988 |  | 
 | 12989 |  | 
 | 12990 |  | 
 | 12991 |  | 
 | 12992 |  | 
 | 12993 |  | 
 | 12994 |  | 
 | 12995 |  | 
 | 12996 |  | 
 | 12997 |  | 
 | 12998 |  | 
 | 12999 |  | 
 | 13000 |  | 
 | 13001 |  | 
 | 13002 |  | 
 | 13003 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13004 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13005 |  | 
 | 13006 |  | 
 | 13007 |  | 
 | 13008 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13009 | test -z "$LN_S" && LN_S="ln -s" | 
 | 13010 |  | 
 | 13011 |  | 
 | 13012 |  | 
 | 13013 |  | 
 | 13014 |  | 
 | 13015 |  | 
 | 13016 |  | 
 | 13017 |  | 
 | 13018 |  | 
 | 13019 |  | 
 | 13020 |  | 
 | 13021 |  | 
 | 13022 |  | 
 | 13023 |  | 
 | 13024 | if test -n "${ZSH_VERSION+set}" ; then | 
 | 13025 |    setopt NO_GLOB_SUBST | 
 | 13026 | fi | 
 | 13027 |  | 
 | 13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | 
 | 13029 | $as_echo_n "checking for objdir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13030 | if ${lt_cv_objdir+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13031 |   $as_echo_n "(cached) " >&6 | 
 | 13032 | else | 
 | 13033 |   rm -f .libs 2>/dev/null | 
 | 13034 | mkdir .libs 2>/dev/null | 
 | 13035 | if test -d .libs; then | 
 | 13036 |   lt_cv_objdir=.libs | 
 | 13037 | else | 
 | 13038 |   # MS-DOS does not allow filenames that begin with a dot. | 
 | 13039 |   lt_cv_objdir=_libs | 
 | 13040 | fi | 
 | 13041 | rmdir .libs 2>/dev/null | 
 | 13042 | fi | 
 | 13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | 
 | 13044 | $as_echo "$lt_cv_objdir" >&6; } | 
 | 13045 | objdir=$lt_cv_objdir | 
 | 13046 |  | 
 | 13047 |  | 
 | 13048 |  | 
 | 13049 |  | 
 | 13050 |  | 
 | 13051 | cat >>confdefs.h <<_ACEOF | 
 | 13052 | #define LT_OBJDIR "$lt_cv_objdir/" | 
 | 13053 | _ACEOF | 
 | 13054 |  | 
 | 13055 |  | 
 | 13056 |  | 
 | 13057 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13058 | case $host_os in | 
 | 13059 | aix3*) | 
 | 13060 |   # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 13061 |   # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 13062 |   # vanish in a puff of smoke. | 
 | 13063 |   if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 13064 |     COLLECT_NAMES= | 
 | 13065 |     export COLLECT_NAMES | 
 | 13066 |   fi | 
 | 13067 |   ;; | 
 | 13068 | esac | 
 | 13069 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13070 | # Global variables: | 
 | 13071 | ofile=libtool | 
 | 13072 | can_build_shared=yes | 
 | 13073 |  | 
 | 13074 | # All known linkers require a `.a' archive for static linking (except MSVC, | 
 | 13075 | # which needs '.lib'). | 
 | 13076 | libext=a | 
 | 13077 |  | 
 | 13078 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
 | 13079 |  | 
 | 13080 | old_CC="$CC" | 
 | 13081 | old_CFLAGS="$CFLAGS" | 
 | 13082 |  | 
 | 13083 | # Set sane defaults for various variables | 
 | 13084 | test -z "$CC" && CC=cc | 
 | 13085 | test -z "$LTCC" && LTCC=$CC | 
 | 13086 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 
 | 13087 | test -z "$LD" && LD=ld | 
 | 13088 | test -z "$ac_objext" && ac_objext=o | 
 | 13089 |  | 
 | 13090 | for cc_temp in $compiler""; do | 
 | 13091 |   case $cc_temp in | 
 | 13092 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 13093 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 13094 |     \-*) ;; | 
 | 13095 |     *) break;; | 
 | 13096 |   esac | 
 | 13097 | done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13098 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13099 |  | 
 | 13100 |  | 
 | 13101 | # Only perform the check for file, if the check method requires it | 
 | 13102 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
 | 13103 | case $deplibs_check_method in | 
 | 13104 | file_magic*) | 
 | 13105 |   if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
 | 13106 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | 
 | 13107 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13108 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13109 |   $as_echo_n "(cached) " >&6 | 
 | 13110 | else | 
 | 13111 |   case $MAGIC_CMD in | 
 | 13112 | [\\/*] |  ?:[\\/]*) | 
 | 13113 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 13114 |   ;; | 
 | 13115 | *) | 
 | 13116 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 13117 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 13118 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 13119 |   for ac_dir in $ac_dummy; do | 
 | 13120 |     IFS="$lt_save_ifs" | 
 | 13121 |     test -z "$ac_dir" && ac_dir=. | 
 | 13122 |     if test -f $ac_dir/${ac_tool_prefix}file; then | 
 | 13123 |       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
 | 13124 |       if test -n "$file_magic_test_file"; then | 
 | 13125 | 	case $deplibs_check_method in | 
 | 13126 | 	"file_magic "*) | 
 | 13127 | 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
 | 13128 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 13129 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 13130 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 13131 | 	    : | 
 | 13132 | 	  else | 
 | 13133 | 	    cat <<_LT_EOF 1>&2 | 
 | 13134 |  | 
 | 13135 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 13136 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 13137 | *** The result is that libtool may fail to recognize shared libraries | 
 | 13138 | *** as such.  This will affect the creation of libtool libraries that | 
 | 13139 | *** depend on shared libraries, but programs linked with such libtool | 
 | 13140 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 13141 | *** may want to report the problem to your system manager and/or to | 
 | 13142 | *** bug-libtool@gnu.org | 
 | 13143 |  | 
 | 13144 | _LT_EOF | 
 | 13145 | 	  fi ;; | 
 | 13146 | 	esac | 
 | 13147 |       fi | 
 | 13148 |       break | 
 | 13149 |     fi | 
 | 13150 |   done | 
 | 13151 |   IFS="$lt_save_ifs" | 
 | 13152 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 13153 |   ;; | 
 | 13154 | esac | 
 | 13155 | fi | 
 | 13156 |  | 
 | 13157 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 13158 | if test -n "$MAGIC_CMD"; then | 
 | 13159 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
 | 13160 | $as_echo "$MAGIC_CMD" >&6; } | 
 | 13161 | else | 
 | 13162 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13163 | $as_echo "no" >&6; } | 
 | 13164 | fi | 
 | 13165 |  | 
 | 13166 |  | 
 | 13167 |  | 
 | 13168 |  | 
 | 13169 |  | 
 | 13170 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
 | 13171 |   if test -n "$ac_tool_prefix"; then | 
 | 13172 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | 
 | 13173 | $as_echo_n "checking for file... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13174 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13175 |   $as_echo_n "(cached) " >&6 | 
 | 13176 | else | 
 | 13177 |   case $MAGIC_CMD in | 
 | 13178 | [\\/*] |  ?:[\\/]*) | 
 | 13179 |   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
 | 13180 |   ;; | 
 | 13181 | *) | 
 | 13182 |   lt_save_MAGIC_CMD="$MAGIC_CMD" | 
 | 13183 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 13184 |   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
 | 13185 |   for ac_dir in $ac_dummy; do | 
 | 13186 |     IFS="$lt_save_ifs" | 
 | 13187 |     test -z "$ac_dir" && ac_dir=. | 
 | 13188 |     if test -f $ac_dir/file; then | 
 | 13189 |       lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
 | 13190 |       if test -n "$file_magic_test_file"; then | 
 | 13191 | 	case $deplibs_check_method in | 
 | 13192 | 	"file_magic "*) | 
 | 13193 | 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
 | 13194 | 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 13195 | 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
 | 13196 | 	    $EGREP "$file_magic_regex" > /dev/null; then | 
 | 13197 | 	    : | 
 | 13198 | 	  else | 
 | 13199 | 	    cat <<_LT_EOF 1>&2 | 
 | 13200 |  | 
 | 13201 | *** Warning: the command libtool uses to detect shared libraries, | 
 | 13202 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
 | 13203 | *** The result is that libtool may fail to recognize shared libraries | 
 | 13204 | *** as such.  This will affect the creation of libtool libraries that | 
 | 13205 | *** depend on shared libraries, but programs linked with such libtool | 
 | 13206 | *** libraries will work regardless of this problem.  Nevertheless, you | 
 | 13207 | *** may want to report the problem to your system manager and/or to | 
 | 13208 | *** bug-libtool@gnu.org | 
 | 13209 |  | 
 | 13210 | _LT_EOF | 
 | 13211 | 	  fi ;; | 
 | 13212 | 	esac | 
 | 13213 |       fi | 
 | 13214 |       break | 
 | 13215 |     fi | 
 | 13216 |   done | 
 | 13217 |   IFS="$lt_save_ifs" | 
 | 13218 |   MAGIC_CMD="$lt_save_MAGIC_CMD" | 
 | 13219 |   ;; | 
 | 13220 | esac | 
 | 13221 | fi | 
 | 13222 |  | 
 | 13223 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
 | 13224 | if test -n "$MAGIC_CMD"; then | 
 | 13225 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
 | 13226 | $as_echo "$MAGIC_CMD" >&6; } | 
 | 13227 | else | 
 | 13228 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 13229 | $as_echo "no" >&6; } | 
 | 13230 | fi | 
 | 13231 |  | 
 | 13232 |  | 
 | 13233 |   else | 
 | 13234 |     MAGIC_CMD=: | 
 | 13235 |   fi | 
 | 13236 | fi | 
 | 13237 |  | 
 | 13238 |   fi | 
 | 13239 |   ;; | 
 | 13240 | esac | 
 | 13241 |  | 
 | 13242 | # Use C for the default configuration in the libtool script | 
 | 13243 |  | 
 | 13244 | lt_save_CC="$CC" | 
 | 13245 | ac_ext=c | 
 | 13246 | ac_cpp='$CPP $CPPFLAGS' | 
 | 13247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 13248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 13249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 13250 |  | 
 | 13251 |  | 
 | 13252 | # Source file extension for C test sources. | 
 | 13253 | ac_ext=c | 
 | 13254 |  | 
 | 13255 | # Object file extension for compiled C test sources. | 
 | 13256 | objext=o | 
 | 13257 | objext=$objext | 
 | 13258 |  | 
 | 13259 | # Code to be used in simple compile tests | 
 | 13260 | lt_simple_compile_test_code="int some_variable = 0;" | 
 | 13261 |  | 
 | 13262 | # Code to be used in simple link tests | 
 | 13263 | lt_simple_link_test_code='int main(){return(0);}' | 
 | 13264 |  | 
 | 13265 |  | 
 | 13266 |  | 
 | 13267 |  | 
 | 13268 |  | 
 | 13269 |  | 
 | 13270 |  | 
 | 13271 | # If no C compiler was specified, use CC. | 
 | 13272 | LTCC=${LTCC-"$CC"} | 
 | 13273 |  | 
 | 13274 | # If no C compiler flags were specified, use CFLAGS. | 
 | 13275 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 13276 |  | 
 | 13277 | # Allow CC to be a program name with arguments. | 
 | 13278 | compiler=$CC | 
 | 13279 |  | 
 | 13280 | # Save the default compiler, since it gets overwritten when the other | 
 | 13281 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | 
 | 13282 | compiler_DEFAULT=$CC | 
 | 13283 |  | 
 | 13284 | # save warnings/boilerplate of simple test code | 
 | 13285 | ac_outfile=conftest.$ac_objext | 
 | 13286 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 13287 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 13288 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 13289 | $RM conftest* | 
 | 13290 |  | 
 | 13291 | ac_outfile=conftest.$ac_objext | 
 | 13292 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 13293 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 13294 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 13295 | $RM -r conftest* | 
 | 13296 |  | 
 | 13297 |  | 
 | 13298 | ## CAVEAT EMPTOR: | 
 | 13299 | ## There is no encapsulation within the following macros, do not change | 
 | 13300 | ## the running order or otherwise move them around unless you know exactly | 
 | 13301 | ## what you are doing... | 
 | 13302 | if test -n "$compiler"; then | 
 | 13303 |  | 
 | 13304 | lt_prog_compiler_no_builtin_flag= | 
 | 13305 |  | 
 | 13306 | if test "$GCC" = yes; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13307 |   case $cc_basename in | 
 | 13308 |   nvcc*) | 
 | 13309 |     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | 
 | 13310 |   *) | 
 | 13311 |     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | 
 | 13312 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13313 |  | 
 | 13314 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
 | 13315 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13316 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13317 |   $as_echo_n "(cached) " >&6 | 
 | 13318 | else | 
 | 13319 |   lt_cv_prog_compiler_rtti_exceptions=no | 
 | 13320 |    ac_outfile=conftest.$ac_objext | 
 | 13321 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13322 |    lt_compiler_flag="-fno-rtti -fno-exceptions" | 
 | 13323 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13324 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13325 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13326 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13327 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 13328 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13329 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 13330 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13331 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13332 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13333 |    (eval "$lt_compile" 2>conftest.err) | 
 | 13334 |    ac_status=$? | 
 | 13335 |    cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13336 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13337 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 13338 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13339 |      # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13340 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13341 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 13342 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
 | 13343 |        lt_cv_prog_compiler_rtti_exceptions=yes | 
 | 13344 |      fi | 
 | 13345 |    fi | 
 | 13346 |    $RM conftest* | 
 | 13347 |  | 
 | 13348 | fi | 
 | 13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
 | 13350 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 
 | 13351 |  | 
 | 13352 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
 | 13353 |     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
 | 13354 | else | 
 | 13355 |     : | 
 | 13356 | fi | 
 | 13357 |  | 
 | 13358 | fi | 
 | 13359 |  | 
 | 13360 |  | 
 | 13361 |  | 
 | 13362 |  | 
 | 13363 |  | 
 | 13364 |  | 
 | 13365 |   lt_prog_compiler_wl= | 
 | 13366 | lt_prog_compiler_pic= | 
 | 13367 | lt_prog_compiler_static= | 
 | 13368 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13369 |  | 
 | 13370 |   if test "$GCC" = yes; then | 
 | 13371 |     lt_prog_compiler_wl='-Wl,' | 
 | 13372 |     lt_prog_compiler_static='-static' | 
 | 13373 |  | 
 | 13374 |     case $host_os in | 
 | 13375 |       aix*) | 
 | 13376 |       # All AIX code is PIC. | 
 | 13377 |       if test "$host_cpu" = ia64; then | 
 | 13378 | 	# AIX 5 now supports IA64 processor | 
 | 13379 | 	lt_prog_compiler_static='-Bstatic' | 
 | 13380 |       fi | 
 | 13381 |       ;; | 
 | 13382 |  | 
 | 13383 |     amigaos*) | 
 | 13384 |       case $host_cpu in | 
 | 13385 |       powerpc) | 
 | 13386 |             # see comment about AmigaOS4 .so support | 
 | 13387 |             lt_prog_compiler_pic='-fPIC' | 
 | 13388 |         ;; | 
 | 13389 |       m68k) | 
 | 13390 |             # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 13391 |             # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 13392 |             # like `-m68040'. | 
 | 13393 |             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
 | 13394 |         ;; | 
 | 13395 |       esac | 
 | 13396 |       ;; | 
 | 13397 |  | 
 | 13398 |     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 13399 |       # PIC is the default for these OSes. | 
 | 13400 |       ;; | 
 | 13401 |  | 
 | 13402 |     mingw* | cygwin* | pw32* | os2* | cegcc*) | 
 | 13403 |       # This hack is so that the source file can tell whether it is being | 
 | 13404 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13405 |       # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
 | 13406 |       # (--disable-auto-import) libraries | 
 | 13407 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 13408 |       ;; | 
 | 13409 |  | 
 | 13410 |     darwin* | rhapsody*) | 
 | 13411 |       # PIC is the default on this platform | 
 | 13412 |       # Common symbols not allowed in MH_DYLIB files | 
 | 13413 |       lt_prog_compiler_pic='-fno-common' | 
 | 13414 |       ;; | 
 | 13415 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13416 |     haiku*) | 
 | 13417 |       # PIC is the default for Haiku. | 
 | 13418 |       # The "-static" flag exists, but is broken. | 
 | 13419 |       lt_prog_compiler_static= | 
 | 13420 |       ;; | 
 | 13421 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13422 |     hpux*) | 
 | 13423 |       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
 | 13424 |       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
 | 13425 |       # sets the default TLS model and affects inlining. | 
 | 13426 |       case $host_cpu in | 
 | 13427 |       hppa*64*) | 
 | 13428 | 	# +Z the default | 
 | 13429 | 	;; | 
 | 13430 |       *) | 
 | 13431 | 	lt_prog_compiler_pic='-fPIC' | 
 | 13432 | 	;; | 
 | 13433 |       esac | 
 | 13434 |       ;; | 
 | 13435 |  | 
 | 13436 |     interix[3-9]*) | 
 | 13437 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 13438 |       # Instead, we relocate shared libraries at runtime. | 
 | 13439 |       ;; | 
 | 13440 |  | 
 | 13441 |     msdosdjgpp*) | 
 | 13442 |       # Just because we use GCC doesn't mean we suddenly get shared libraries | 
 | 13443 |       # on systems that don't support them. | 
 | 13444 |       lt_prog_compiler_can_build_shared=no | 
 | 13445 |       enable_shared=no | 
 | 13446 |       ;; | 
 | 13447 |  | 
 | 13448 |     *nto* | *qnx*) | 
 | 13449 |       # QNX uses GNU C++, but need to define -shared option too, otherwise | 
 | 13450 |       # it will coredump. | 
 | 13451 |       lt_prog_compiler_pic='-fPIC -shared' | 
 | 13452 |       ;; | 
 | 13453 |  | 
 | 13454 |     sysv4*MP*) | 
 | 13455 |       if test -d /usr/nec; then | 
 | 13456 | 	lt_prog_compiler_pic=-Kconform_pic | 
 | 13457 |       fi | 
 | 13458 |       ;; | 
 | 13459 |  | 
 | 13460 |     *) | 
 | 13461 |       lt_prog_compiler_pic='-fPIC' | 
 | 13462 |       ;; | 
 | 13463 |     esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13464 |  | 
 | 13465 |     case $cc_basename in | 
 | 13466 |     nvcc*) # Cuda Compiler Driver 2.2 | 
 | 13467 |       lt_prog_compiler_wl='-Xlinker ' | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13468 |       if test -n "$lt_prog_compiler_pic"; then | 
 | 13469 |         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | 
 | 13470 |       fi | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13471 |       ;; | 
 | 13472 |     esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13473 |   else | 
 | 13474 |     # PORTME Check for flag to pass linker flags through the system compiler. | 
 | 13475 |     case $host_os in | 
 | 13476 |     aix*) | 
 | 13477 |       lt_prog_compiler_wl='-Wl,' | 
 | 13478 |       if test "$host_cpu" = ia64; then | 
 | 13479 | 	# AIX 5 now supports IA64 processor | 
 | 13480 | 	lt_prog_compiler_static='-Bstatic' | 
 | 13481 |       else | 
 | 13482 | 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
 | 13483 |       fi | 
 | 13484 |       ;; | 
 | 13485 |  | 
 | 13486 |     mingw* | cygwin* | pw32* | os2* | cegcc*) | 
 | 13487 |       # This hack is so that the source file can tell whether it is being | 
 | 13488 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 13489 |       lt_prog_compiler_pic='-DDLL_EXPORT' | 
 | 13490 |       ;; | 
 | 13491 |  | 
 | 13492 |     hpux9* | hpux10* | hpux11*) | 
 | 13493 |       lt_prog_compiler_wl='-Wl,' | 
 | 13494 |       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
 | 13495 |       # not for PA HP-UX. | 
 | 13496 |       case $host_cpu in | 
 | 13497 |       hppa*64*|ia64*) | 
 | 13498 | 	# +Z the default | 
 | 13499 | 	;; | 
 | 13500 |       *) | 
 | 13501 | 	lt_prog_compiler_pic='+Z' | 
 | 13502 | 	;; | 
 | 13503 |       esac | 
 | 13504 |       # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
 | 13505 |       lt_prog_compiler_static='${wl}-a ${wl}archive' | 
 | 13506 |       ;; | 
 | 13507 |  | 
 | 13508 |     irix5* | irix6* | nonstopux*) | 
 | 13509 |       lt_prog_compiler_wl='-Wl,' | 
 | 13510 |       # PIC (with -KPIC) is the default. | 
 | 13511 |       lt_prog_compiler_static='-non_shared' | 
 | 13512 |       ;; | 
 | 13513 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13514 |     linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13515 |       case $cc_basename in | 
 | 13516 |       # old Intel for x86_64 which still supported -KPIC. | 
 | 13517 |       ecc*) | 
 | 13518 | 	lt_prog_compiler_wl='-Wl,' | 
 | 13519 | 	lt_prog_compiler_pic='-KPIC' | 
 | 13520 | 	lt_prog_compiler_static='-static' | 
 | 13521 |         ;; | 
 | 13522 |       # icc used to be incompatible with GCC. | 
 | 13523 |       # ICC 10 doesn't accept -KPIC any more. | 
 | 13524 |       icc* | ifort*) | 
 | 13525 | 	lt_prog_compiler_wl='-Wl,' | 
 | 13526 | 	lt_prog_compiler_pic='-fPIC' | 
 | 13527 | 	lt_prog_compiler_static='-static' | 
 | 13528 |         ;; | 
 | 13529 |       # Lahey Fortran 8.1. | 
 | 13530 |       lf95*) | 
 | 13531 | 	lt_prog_compiler_wl='-Wl,' | 
 | 13532 | 	lt_prog_compiler_pic='--shared' | 
 | 13533 | 	lt_prog_compiler_static='--static' | 
 | 13534 | 	;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13535 |       nagfor*) | 
 | 13536 | 	# NAG Fortran compiler | 
 | 13537 | 	lt_prog_compiler_wl='-Wl,-Wl,,' | 
 | 13538 | 	lt_prog_compiler_pic='-PIC' | 
 | 13539 | 	lt_prog_compiler_static='-Bstatic' | 
 | 13540 | 	;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13541 |       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13542 |         # Portland Group compilers (*not* the Pentium gcc compiler, | 
 | 13543 | 	# which looks to be a dead project) | 
 | 13544 | 	lt_prog_compiler_wl='-Wl,' | 
 | 13545 | 	lt_prog_compiler_pic='-fpic' | 
 | 13546 | 	lt_prog_compiler_static='-Bstatic' | 
 | 13547 |         ;; | 
 | 13548 |       ccc*) | 
 | 13549 |         lt_prog_compiler_wl='-Wl,' | 
 | 13550 |         # All Alpha code is PIC. | 
 | 13551 |         lt_prog_compiler_static='-non_shared' | 
 | 13552 |         ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13553 |       xl* | bgxl* | bgf* | mpixl*) | 
 | 13554 | 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13555 | 	lt_prog_compiler_wl='-Wl,' | 
 | 13556 | 	lt_prog_compiler_pic='-qpic' | 
 | 13557 | 	lt_prog_compiler_static='-qstaticlink' | 
 | 13558 | 	;; | 
 | 13559 |       *) | 
 | 13560 | 	case `$CC -V 2>&1 | sed 5q` in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13561 | 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13562 | 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker | 
 | 13563 | 	  lt_prog_compiler_pic='-KPIC' | 
 | 13564 | 	  lt_prog_compiler_static='-Bstatic' | 
 | 13565 | 	  lt_prog_compiler_wl='' | 
 | 13566 | 	  ;; | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13567 | 	*Sun\ F* | *Sun*Fortran*) | 
 | 13568 | 	  lt_prog_compiler_pic='-KPIC' | 
 | 13569 | 	  lt_prog_compiler_static='-Bstatic' | 
 | 13570 | 	  lt_prog_compiler_wl='-Qoption ld ' | 
 | 13571 | 	  ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13572 | 	*Sun\ C*) | 
 | 13573 | 	  # Sun C 5.9 | 
 | 13574 | 	  lt_prog_compiler_pic='-KPIC' | 
 | 13575 | 	  lt_prog_compiler_static='-Bstatic' | 
 | 13576 | 	  lt_prog_compiler_wl='-Wl,' | 
 | 13577 | 	  ;; | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13578 |         *Intel*\ [CF]*Compiler*) | 
 | 13579 | 	  lt_prog_compiler_wl='-Wl,' | 
 | 13580 | 	  lt_prog_compiler_pic='-fPIC' | 
 | 13581 | 	  lt_prog_compiler_static='-static' | 
 | 13582 | 	  ;; | 
 | 13583 | 	*Portland\ Group*) | 
 | 13584 | 	  lt_prog_compiler_wl='-Wl,' | 
 | 13585 | 	  lt_prog_compiler_pic='-fpic' | 
 | 13586 | 	  lt_prog_compiler_static='-Bstatic' | 
 | 13587 | 	  ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13588 | 	esac | 
 | 13589 | 	;; | 
 | 13590 |       esac | 
 | 13591 |       ;; | 
 | 13592 |  | 
 | 13593 |     newsos6) | 
 | 13594 |       lt_prog_compiler_pic='-KPIC' | 
 | 13595 |       lt_prog_compiler_static='-Bstatic' | 
 | 13596 |       ;; | 
 | 13597 |  | 
 | 13598 |     *nto* | *qnx*) | 
 | 13599 |       # QNX uses GNU C++, but need to define -shared option too, otherwise | 
 | 13600 |       # it will coredump. | 
 | 13601 |       lt_prog_compiler_pic='-fPIC -shared' | 
 | 13602 |       ;; | 
 | 13603 |  | 
 | 13604 |     osf3* | osf4* | osf5*) | 
 | 13605 |       lt_prog_compiler_wl='-Wl,' | 
 | 13606 |       # All OSF/1 code is PIC. | 
 | 13607 |       lt_prog_compiler_static='-non_shared' | 
 | 13608 |       ;; | 
 | 13609 |  | 
 | 13610 |     rdos*) | 
 | 13611 |       lt_prog_compiler_static='-non_shared' | 
 | 13612 |       ;; | 
 | 13613 |  | 
 | 13614 |     solaris*) | 
 | 13615 |       lt_prog_compiler_pic='-KPIC' | 
 | 13616 |       lt_prog_compiler_static='-Bstatic' | 
 | 13617 |       case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13618 |       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13619 | 	lt_prog_compiler_wl='-Qoption ld ';; | 
 | 13620 |       *) | 
 | 13621 | 	lt_prog_compiler_wl='-Wl,';; | 
 | 13622 |       esac | 
 | 13623 |       ;; | 
 | 13624 |  | 
 | 13625 |     sunos4*) | 
 | 13626 |       lt_prog_compiler_wl='-Qoption ld ' | 
 | 13627 |       lt_prog_compiler_pic='-PIC' | 
 | 13628 |       lt_prog_compiler_static='-Bstatic' | 
 | 13629 |       ;; | 
 | 13630 |  | 
 | 13631 |     sysv4 | sysv4.2uw2* | sysv4.3*) | 
 | 13632 |       lt_prog_compiler_wl='-Wl,' | 
 | 13633 |       lt_prog_compiler_pic='-KPIC' | 
 | 13634 |       lt_prog_compiler_static='-Bstatic' | 
 | 13635 |       ;; | 
 | 13636 |  | 
 | 13637 |     sysv4*MP*) | 
 | 13638 |       if test -d /usr/nec ;then | 
 | 13639 | 	lt_prog_compiler_pic='-Kconform_pic' | 
 | 13640 | 	lt_prog_compiler_static='-Bstatic' | 
 | 13641 |       fi | 
 | 13642 |       ;; | 
 | 13643 |  | 
 | 13644 |     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 13645 |       lt_prog_compiler_wl='-Wl,' | 
 | 13646 |       lt_prog_compiler_pic='-KPIC' | 
 | 13647 |       lt_prog_compiler_static='-Bstatic' | 
 | 13648 |       ;; | 
 | 13649 |  | 
 | 13650 |     unicos*) | 
 | 13651 |       lt_prog_compiler_wl='-Wl,' | 
 | 13652 |       lt_prog_compiler_can_build_shared=no | 
 | 13653 |       ;; | 
 | 13654 |  | 
 | 13655 |     uts4*) | 
 | 13656 |       lt_prog_compiler_pic='-pic' | 
 | 13657 |       lt_prog_compiler_static='-Bstatic' | 
 | 13658 |       ;; | 
 | 13659 |  | 
 | 13660 |     *) | 
 | 13661 |       lt_prog_compiler_can_build_shared=no | 
 | 13662 |       ;; | 
 | 13663 |     esac | 
 | 13664 |   fi | 
 | 13665 |  | 
 | 13666 | case $host_os in | 
 | 13667 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 13668 |   *djgpp*) | 
 | 13669 |     lt_prog_compiler_pic= | 
 | 13670 |     ;; | 
 | 13671 |   *) | 
 | 13672 |     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
 | 13673 |     ;; | 
 | 13674 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13675 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
 | 13677 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
 | 13678 | if ${lt_cv_prog_compiler_pic+:} false; then : | 
 | 13679 |   $as_echo_n "(cached) " >&6 | 
 | 13680 | else | 
 | 13681 |   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | 
 | 13682 | fi | 
 | 13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | 
 | 13684 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | 
 | 13685 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13686 |  | 
 | 13687 | # | 
 | 13688 | # Check to make sure the PIC flag actually works. | 
 | 13689 | # | 
 | 13690 | if test -n "$lt_prog_compiler_pic"; then | 
 | 13691 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
 | 13692 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13693 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13694 |   $as_echo_n "(cached) " >&6 | 
 | 13695 | else | 
 | 13696 |   lt_cv_prog_compiler_pic_works=no | 
 | 13697 |    ac_outfile=conftest.$ac_objext | 
 | 13698 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13699 |    lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
 | 13700 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13701 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13702 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13703 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13704 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 13705 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13706 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 13707 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13708 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13709 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13710 |    (eval "$lt_compile" 2>conftest.err) | 
 | 13711 |    ac_status=$? | 
 | 13712 |    cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13713 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13714 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 13715 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13716 |      # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13717 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13718 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 13719 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
 | 13720 |        lt_cv_prog_compiler_pic_works=yes | 
 | 13721 |      fi | 
 | 13722 |    fi | 
 | 13723 |    $RM conftest* | 
 | 13724 |  | 
 | 13725 | fi | 
 | 13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | 
 | 13727 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | 
 | 13728 |  | 
 | 13729 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | 
 | 13730 |     case $lt_prog_compiler_pic in | 
 | 13731 |      "" | " "*) ;; | 
 | 13732 |      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
 | 13733 |      esac | 
 | 13734 | else | 
 | 13735 |     lt_prog_compiler_pic= | 
 | 13736 |      lt_prog_compiler_can_build_shared=no | 
 | 13737 | fi | 
 | 13738 |  | 
 | 13739 | fi | 
 | 13740 |  | 
 | 13741 |  | 
 | 13742 |  | 
 | 13743 |  | 
 | 13744 |  | 
 | 13745 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13746 |  | 
 | 13747 |  | 
 | 13748 |  | 
 | 13749 |  | 
 | 13750 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13751 | # | 
 | 13752 | # Check to make sure the static flag actually works. | 
 | 13753 | # | 
 | 13754 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | 
 | 13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 13756 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13757 | if ${lt_cv_prog_compiler_static_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13758 |   $as_echo_n "(cached) " >&6 | 
 | 13759 | else | 
 | 13760 |   lt_cv_prog_compiler_static_works=no | 
 | 13761 |    save_LDFLAGS="$LDFLAGS" | 
 | 13762 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 13763 |    echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 13764 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 13765 |      # The linker can only warn and ignore the option if not recognized | 
 | 13766 |      # So say no if there are warnings | 
 | 13767 |      if test -s conftest.err; then | 
 | 13768 |        # Append any errors to the config.log. | 
 | 13769 |        cat conftest.err 1>&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13770 |        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13771 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 13772 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 13773 |          lt_cv_prog_compiler_static_works=yes | 
 | 13774 |        fi | 
 | 13775 |      else | 
 | 13776 |        lt_cv_prog_compiler_static_works=yes | 
 | 13777 |      fi | 
 | 13778 |    fi | 
 | 13779 |    $RM -r conftest* | 
 | 13780 |    LDFLAGS="$save_LDFLAGS" | 
 | 13781 |  | 
 | 13782 | fi | 
 | 13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | 
 | 13784 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | 
 | 13785 |  | 
 | 13786 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | 
 | 13787 |     : | 
 | 13788 | else | 
 | 13789 |     lt_prog_compiler_static= | 
 | 13790 | fi | 
 | 13791 |  | 
 | 13792 |  | 
 | 13793 |  | 
 | 13794 |  | 
 | 13795 |  | 
 | 13796 |  | 
 | 13797 |  | 
 | 13798 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 13799 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13800 | if ${lt_cv_prog_compiler_c_o+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13801 |   $as_echo_n "(cached) " >&6 | 
 | 13802 | else | 
 | 13803 |   lt_cv_prog_compiler_c_o=no | 
 | 13804 |    $RM -r conftest 2>/dev/null | 
 | 13805 |    mkdir conftest | 
 | 13806 |    cd conftest | 
 | 13807 |    mkdir out | 
 | 13808 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13809 |  | 
 | 13810 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 13811 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13812 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13813 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13814 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13815 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13816 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 13817 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13818 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13819 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13820 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 13821 |    ac_status=$? | 
 | 13822 |    cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13823 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13824 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 13825 |    then | 
 | 13826 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13827 |      # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13828 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13829 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 13830 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
 | 13831 |        lt_cv_prog_compiler_c_o=yes | 
 | 13832 |      fi | 
 | 13833 |    fi | 
 | 13834 |    chmod u+w . 2>&5 | 
 | 13835 |    $RM conftest* | 
 | 13836 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 13837 |    # template instantiation | 
 | 13838 |    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
 | 13839 |    $RM out/* && rmdir out | 
 | 13840 |    cd .. | 
 | 13841 |    $RM -r conftest | 
 | 13842 |    $RM conftest* | 
 | 13843 |  | 
 | 13844 | fi | 
 | 13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 13846 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
 | 13847 |  | 
 | 13848 |  | 
 | 13849 |  | 
 | 13850 |  | 
 | 13851 |  | 
 | 13852 |  | 
 | 13853 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 13854 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13855 | if ${lt_cv_prog_compiler_c_o+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13856 |   $as_echo_n "(cached) " >&6 | 
 | 13857 | else | 
 | 13858 |   lt_cv_prog_compiler_c_o=no | 
 | 13859 |    $RM -r conftest 2>/dev/null | 
 | 13860 |    mkdir conftest | 
 | 13861 |    cd conftest | 
 | 13862 |    mkdir out | 
 | 13863 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 13864 |  | 
 | 13865 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 13866 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 13867 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 13868 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 13869 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 13870 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 13871 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 13872 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 13873 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13874 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13875 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 13876 |    ac_status=$? | 
 | 13877 |    cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13878 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13879 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 13880 |    then | 
 | 13881 |      # The compiler can only warn and ignore the option if not recognized | 
 | 13882 |      # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13883 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13884 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 13885 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
 | 13886 |        lt_cv_prog_compiler_c_o=yes | 
 | 13887 |      fi | 
 | 13888 |    fi | 
 | 13889 |    chmod u+w . 2>&5 | 
 | 13890 |    $RM conftest* | 
 | 13891 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 13892 |    # template instantiation | 
 | 13893 |    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
 | 13894 |    $RM out/* && rmdir out | 
 | 13895 |    cd .. | 
 | 13896 |    $RM -r conftest | 
 | 13897 |    $RM conftest* | 
 | 13898 |  | 
 | 13899 | fi | 
 | 13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
 | 13901 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
 | 13902 |  | 
 | 13903 |  | 
 | 13904 |  | 
 | 13905 |  | 
 | 13906 | hard_links="nottested" | 
 | 13907 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 
 | 13908 |   # do not overwrite the value of need_locks provided by the user | 
 | 13909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
 | 13910 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
 | 13911 |   hard_links=yes | 
 | 13912 |   $RM conftest* | 
 | 13913 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13914 |   touch conftest.a | 
 | 13915 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 13916 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 13917 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
 | 13918 | $as_echo "$hard_links" >&6; } | 
 | 13919 |   if test "$hard_links" = no; then | 
 | 13920 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 13921 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 13922 |     need_locks=warn | 
 | 13923 |   fi | 
 | 13924 | else | 
 | 13925 |   need_locks=no | 
 | 13926 | fi | 
 | 13927 |  | 
 | 13928 |  | 
 | 13929 |  | 
 | 13930 |  | 
 | 13931 |  | 
 | 13932 |  | 
 | 13933 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 13934 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
 | 13935 |  | 
 | 13936 |   runpath_var= | 
 | 13937 |   allow_undefined_flag= | 
 | 13938 |   always_export_symbols=no | 
 | 13939 |   archive_cmds= | 
 | 13940 |   archive_expsym_cmds= | 
 | 13941 |   compiler_needs_object=no | 
 | 13942 |   enable_shared_with_static_runtimes=no | 
 | 13943 |   export_dynamic_flag_spec= | 
 | 13944 |   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 13945 |   hardcode_automatic=no | 
 | 13946 |   hardcode_direct=no | 
 | 13947 |   hardcode_direct_absolute=no | 
 | 13948 |   hardcode_libdir_flag_spec= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13949 |   hardcode_libdir_separator= | 
 | 13950 |   hardcode_minus_L=no | 
 | 13951 |   hardcode_shlibpath_var=unsupported | 
 | 13952 |   inherit_rpath=no | 
 | 13953 |   link_all_deplibs=unknown | 
 | 13954 |   module_cmds= | 
 | 13955 |   module_expsym_cmds= | 
 | 13956 |   old_archive_from_new_cmds= | 
 | 13957 |   old_archive_from_expsyms_cmds= | 
 | 13958 |   thread_safe_flag_spec= | 
 | 13959 |   whole_archive_flag_spec= | 
 | 13960 |   # include_expsyms should be a list of space-separated symbols to be *always* | 
 | 13961 |   # included in the symbol list | 
 | 13962 |   include_expsyms= | 
 | 13963 |   # exclude_expsyms can be an extended regexp of symbols to exclude | 
 | 13964 |   # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
 | 13965 |   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
 | 13966 |   # as well as any symbol that contains `d'. | 
 | 13967 |   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
 | 13968 |   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
 | 13969 |   # platforms (ab)use it in PIC code, but their linkers get confused if | 
 | 13970 |   # the symbol is explicitly referenced.  Since portable code cannot | 
 | 13971 |   # rely on this symbol name, it's probably fine to never include it in | 
 | 13972 |   # preloaded symbol tables. | 
 | 13973 |   # Exclude shared library initialization/finalization symbols. | 
 | 13974 |   extract_expsyms_cmds= | 
 | 13975 |  | 
 | 13976 |   case $host_os in | 
 | 13977 |   cygwin* | mingw* | pw32* | cegcc*) | 
 | 13978 |     # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
 | 13979 |     # When not using gcc, we currently assume that we are using | 
 | 13980 |     # Microsoft Visual C++. | 
 | 13981 |     if test "$GCC" != yes; then | 
 | 13982 |       with_gnu_ld=no | 
 | 13983 |     fi | 
 | 13984 |     ;; | 
 | 13985 |   interix*) | 
 | 13986 |     # we just hope/assume this is gcc and not c89 (= MSVC++) | 
 | 13987 |     with_gnu_ld=yes | 
 | 13988 |     ;; | 
 | 13989 |   openbsd*) | 
 | 13990 |     with_gnu_ld=no | 
 | 13991 |     ;; | 
 | 13992 |   esac | 
 | 13993 |  | 
 | 13994 |   ld_shlibs=yes | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13995 |  | 
 | 13996 |   # On some targets, GNU ld is compatible enough with the native linker | 
 | 13997 |   # that we're better off using the native interface for both. | 
 | 13998 |   lt_use_gnu_ld_interface=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13999 |   if test "$with_gnu_ld" = yes; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14000 |     case $host_os in | 
 | 14001 |       aix*) | 
 | 14002 | 	# The AIX port of GNU ld has always aspired to compatibility | 
 | 14003 | 	# with the native linker.  However, as the warning in the GNU ld | 
 | 14004 | 	# block says, versions before 2.19.5* couldn't really create working | 
 | 14005 | 	# shared libraries, regardless of the interface used. | 
 | 14006 | 	case `$LD -v 2>&1` in | 
 | 14007 | 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | 
 | 14008 | 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | 
 | 14009 | 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;; | 
 | 14010 | 	  *) | 
 | 14011 | 	    lt_use_gnu_ld_interface=yes | 
 | 14012 | 	    ;; | 
 | 14013 | 	esac | 
 | 14014 | 	;; | 
 | 14015 |       *) | 
 | 14016 | 	lt_use_gnu_ld_interface=yes | 
 | 14017 | 	;; | 
 | 14018 |     esac | 
 | 14019 |   fi | 
 | 14020 |  | 
 | 14021 |   if test "$lt_use_gnu_ld_interface" = yes; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14022 |     # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 14023 |     wlarc='${wl}' | 
 | 14024 |  | 
 | 14025 |     # Set some defaults for GNU ld with shared library support. These | 
 | 14026 |     # are reset later if shared libraries are not supported. Putting them | 
 | 14027 |     # here allows them to be overridden if necessary. | 
 | 14028 |     runpath_var=LD_RUN_PATH | 
 | 14029 |     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14030 |     export_dynamic_flag_spec='${wl}--export-dynamic' | 
 | 14031 |     # ancient GNU ld didn't support --whole-archive et. al. | 
 | 14032 |     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 
 | 14033 |       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 14034 |     else | 
 | 14035 |       whole_archive_flag_spec= | 
 | 14036 |     fi | 
 | 14037 |     supports_anon_versioning=no | 
 | 14038 |     case `$LD -v 2>&1` in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14039 |       *GNU\ gold*) supports_anon_versioning=yes ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14040 |       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
 | 14041 |       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
 | 14042 |       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
 | 14043 |       *\ 2.11.*) ;; # other 2.11 versions | 
 | 14044 |       *) supports_anon_versioning=yes ;; | 
 | 14045 |     esac | 
 | 14046 |  | 
 | 14047 |     # See if GNU ld supports shared libraries. | 
 | 14048 |     case $host_os in | 
 | 14049 |     aix[3-9]*) | 
 | 14050 |       # On AIX/PPC, the GNU linker is very broken | 
 | 14051 |       if test "$host_cpu" != ia64; then | 
 | 14052 | 	ld_shlibs=no | 
 | 14053 | 	cat <<_LT_EOF 1>&2 | 
 | 14054 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14055 | *** Warning: the GNU linker, at least up to release 2.19, is reported | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14056 | *** to be unable to reliably create shared libraries on AIX. | 
 | 14057 | *** Therefore, libtool is disabling shared libraries support.  If you | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14058 | *** really care for shared libraries, you may want to install binutils | 
 | 14059 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | 
 | 14060 | *** You will then need to restart the configuration process. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14061 |  | 
 | 14062 | _LT_EOF | 
 | 14063 |       fi | 
 | 14064 |       ;; | 
 | 14065 |  | 
 | 14066 |     amigaos*) | 
 | 14067 |       case $host_cpu in | 
 | 14068 |       powerpc) | 
 | 14069 |             # see comment about AmigaOS4 .so support | 
 | 14070 |             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14071 |             archive_expsym_cmds='' | 
 | 14072 |         ;; | 
 | 14073 |       m68k) | 
 | 14074 |             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)' | 
 | 14075 |             hardcode_libdir_flag_spec='-L$libdir' | 
 | 14076 |             hardcode_minus_L=yes | 
 | 14077 |         ;; | 
 | 14078 |       esac | 
 | 14079 |       ;; | 
 | 14080 |  | 
 | 14081 |     beos*) | 
 | 14082 |       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
 | 14083 | 	allow_undefined_flag=unsupported | 
 | 14084 | 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 14085 | 	# support --undefined.  This deserves some investigation.  FIXME | 
 | 14086 | 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14087 |       else | 
 | 14088 | 	ld_shlibs=no | 
 | 14089 |       fi | 
 | 14090 |       ;; | 
 | 14091 |  | 
 | 14092 |     cygwin* | mingw* | pw32* | cegcc*) | 
 | 14093 |       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
 | 14094 |       # as there is no search path for DLLs. | 
 | 14095 |       hardcode_libdir_flag_spec='-L$libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14096 |       export_dynamic_flag_spec='${wl}--export-all-symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14097 |       allow_undefined_flag=unsupported | 
 | 14098 |       always_export_symbols=no | 
 | 14099 |       enable_shared_with_static_runtimes=yes | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14100 |       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 14101 |       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14102 |  | 
 | 14103 |       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
 | 14104 |         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
 | 14105 | 	# If the export-symbols file already is a .def file (1st line | 
 | 14106 | 	# is EXPORTS), use it as is; otherwise, prepend... | 
 | 14107 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 14108 | 	  cp $export_symbols $output_objdir/$soname.def; | 
 | 14109 | 	else | 
 | 14110 | 	  echo EXPORTS > $output_objdir/$soname.def; | 
 | 14111 | 	  cat $export_symbols >> $output_objdir/$soname.def; | 
 | 14112 | 	fi~ | 
 | 14113 | 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
 | 14114 |       else | 
 | 14115 | 	ld_shlibs=no | 
 | 14116 |       fi | 
 | 14117 |       ;; | 
 | 14118 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14119 |     haiku*) | 
 | 14120 |       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14121 |       link_all_deplibs=yes | 
 | 14122 |       ;; | 
 | 14123 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14124 |     interix[3-9]*) | 
 | 14125 |       hardcode_direct=no | 
 | 14126 |       hardcode_shlibpath_var=no | 
 | 14127 |       hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 14128 |       export_dynamic_flag_spec='${wl}-E' | 
 | 14129 |       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 14130 |       # Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 14131 |       # default) and relocated if they conflict, which is a slow very memory | 
 | 14132 |       # consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 14133 |       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 14134 |       # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 14135 |       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
 | 14136 |       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' | 
 | 14137 |       ;; | 
 | 14138 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14139 |     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14140 |       tmp_diet=no | 
 | 14141 |       if test "$host_os" = linux-dietlibc; then | 
 | 14142 | 	case $cc_basename in | 
 | 14143 | 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn) | 
 | 14144 | 	esac | 
 | 14145 |       fi | 
 | 14146 |       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 
 | 14147 | 	 && test "$tmp_diet" = no | 
 | 14148 |       then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14149 | 	tmp_addflag=' $pic_flag' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14150 | 	tmp_sharedflag='-shared' | 
 | 14151 | 	case $cc_basename,$host_cpu in | 
 | 14152 |         pgcc*)				# Portland Group C compiler | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14153 | 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14154 | 	  tmp_addflag=' $pic_flag' | 
 | 14155 | 	  ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14156 | 	pgf77* | pgf90* | pgf95* | pgfortran*) | 
 | 14157 | 					# Portland Group f77 and f90 compilers | 
 | 14158 | 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14159 | 	  tmp_addflag=' $pic_flag -Mnomain' ;; | 
 | 14160 | 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64 | 
 | 14161 | 	  tmp_addflag=' -i_dynamic' ;; | 
 | 14162 | 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
 | 14163 | 	  tmp_addflag=' -i_dynamic -nofor_main' ;; | 
 | 14164 | 	ifc* | ifort*)			# Intel Fortran compiler | 
 | 14165 | 	  tmp_addflag=' -nofor_main' ;; | 
 | 14166 | 	lf95*)				# Lahey Fortran 8.1 | 
 | 14167 | 	  whole_archive_flag_spec= | 
 | 14168 | 	  tmp_sharedflag='--shared' ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14169 | 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14170 | 	  tmp_sharedflag='-qmkshrobj' | 
 | 14171 | 	  tmp_addflag= ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14172 | 	nvcc*)	# Cuda Compiler Driver 2.2 | 
 | 14173 | 	  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' | 
 | 14174 | 	  compiler_needs_object=yes | 
 | 14175 | 	  ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14176 | 	esac | 
 | 14177 | 	case `$CC -V 2>&1 | sed 5q` in | 
 | 14178 | 	*Sun\ C*)			# Sun C 5.9 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14179 | 	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14180 | 	  compiler_needs_object=yes | 
 | 14181 | 	  tmp_sharedflag='-G' ;; | 
 | 14182 | 	*Sun\ F*)			# Sun Fortran 8.3 | 
 | 14183 | 	  tmp_sharedflag='-G' ;; | 
 | 14184 | 	esac | 
 | 14185 | 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14186 |  | 
 | 14187 |         if test "x$supports_anon_versioning" = xyes; then | 
 | 14188 |           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 14189 | 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 14190 | 	    echo "local: *; };" >> $output_objdir/$libname.ver~ | 
 | 14191 | 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 14192 |         fi | 
 | 14193 |  | 
 | 14194 | 	case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14195 | 	xlf* | bgf* | bgxlf* | mpixlf*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14196 | 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 
 | 14197 | 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14198 | 	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14199 | 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14200 | 	  if test "x$supports_anon_versioning" = xyes; then | 
 | 14201 | 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 14202 | 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 14203 | 	      echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14204 | 	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14205 | 	  fi | 
 | 14206 | 	  ;; | 
 | 14207 | 	esac | 
 | 14208 |       else | 
 | 14209 |         ld_shlibs=no | 
 | 14210 |       fi | 
 | 14211 |       ;; | 
 | 14212 |  | 
 | 14213 |     netbsd*) | 
 | 14214 |       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
 | 14215 | 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
 | 14216 | 	wlarc= | 
 | 14217 |       else | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14218 | 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14219 | 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14220 |       fi | 
 | 14221 |       ;; | 
 | 14222 |  | 
 | 14223 |     solaris*) | 
 | 14224 |       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | 
 | 14225 | 	ld_shlibs=no | 
 | 14226 | 	cat <<_LT_EOF 1>&2 | 
 | 14227 |  | 
 | 14228 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
 | 14229 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
 | 14230 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 14231 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
 | 14232 | *** your PATH or compiler configuration so that the native linker is | 
 | 14233 | *** used, and then restart. | 
 | 14234 |  | 
 | 14235 | _LT_EOF | 
 | 14236 |       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14237 | 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14238 | 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14239 |       else | 
 | 14240 | 	ld_shlibs=no | 
 | 14241 |       fi | 
 | 14242 |       ;; | 
 | 14243 |  | 
 | 14244 |     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
 | 14245 |       case `$LD -v 2>&1` in | 
 | 14246 |         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
 | 14247 | 	ld_shlibs=no | 
 | 14248 | 	cat <<_LT_EOF 1>&2 | 
 | 14249 |  | 
 | 14250 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
 | 14251 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
 | 14252 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
 | 14253 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
 | 14254 | *** your PATH or compiler configuration so that the native linker is | 
 | 14255 | *** used, and then restart. | 
 | 14256 |  | 
 | 14257 | _LT_EOF | 
 | 14258 | 	;; | 
 | 14259 | 	*) | 
 | 14260 | 	  # For security reasons, it is highly recommended that you always | 
 | 14261 | 	  # use absolute paths for naming shared libraries, and exclude the | 
 | 14262 | 	  # DT_RUNPATH tag from executables and libraries.  But doing so | 
 | 14263 | 	  # requires that you compile everything twice, which is a pain. | 
 | 14264 | 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
 | 14265 | 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14266 | 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14267 | 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
 | 14268 | 	  else | 
 | 14269 | 	    ld_shlibs=no | 
 | 14270 | 	  fi | 
 | 14271 | 	;; | 
 | 14272 |       esac | 
 | 14273 |       ;; | 
 | 14274 |  | 
 | 14275 |     sunos4*) | 
 | 14276 |       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 14277 |       wlarc= | 
 | 14278 |       hardcode_direct=yes | 
 | 14279 |       hardcode_shlibpath_var=no | 
 | 14280 |       ;; | 
 | 14281 |  | 
 | 14282 |     *) | 
 | 14283 |       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14284 | 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14285 | 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14286 |       else | 
 | 14287 | 	ld_shlibs=no | 
 | 14288 |       fi | 
 | 14289 |       ;; | 
 | 14290 |     esac | 
 | 14291 |  | 
 | 14292 |     if test "$ld_shlibs" = no; then | 
 | 14293 |       runpath_var= | 
 | 14294 |       hardcode_libdir_flag_spec= | 
 | 14295 |       export_dynamic_flag_spec= | 
 | 14296 |       whole_archive_flag_spec= | 
 | 14297 |     fi | 
 | 14298 |   else | 
 | 14299 |     # PORTME fill in a description of your system's linker (not GNU ld) | 
 | 14300 |     case $host_os in | 
 | 14301 |     aix3*) | 
 | 14302 |       allow_undefined_flag=unsupported | 
 | 14303 |       always_export_symbols=yes | 
 | 14304 |       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' | 
 | 14305 |       # Note: this linker hardcodes the directories in LIBPATH if there | 
 | 14306 |       # are no directories specified by -L. | 
 | 14307 |       hardcode_minus_L=yes | 
 | 14308 |       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
 | 14309 | 	# Neither direct hardcoding nor static linking is supported with a | 
 | 14310 | 	# broken collect2. | 
 | 14311 | 	hardcode_direct=unsupported | 
 | 14312 |       fi | 
 | 14313 |       ;; | 
 | 14314 |  | 
 | 14315 |     aix[4-9]*) | 
 | 14316 |       if test "$host_cpu" = ia64; then | 
 | 14317 | 	# On IA64, the linker does run time linking by default, so we don't | 
 | 14318 | 	# have to do anything special. | 
 | 14319 | 	aix_use_runtimelinking=no | 
 | 14320 | 	exp_sym_flag='-Bexport' | 
 | 14321 | 	no_entry_flag="" | 
 | 14322 |       else | 
 | 14323 | 	# If we're using GNU nm, then we don't want the "-C" option. | 
 | 14324 | 	# -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14325 | 	# Also, AIX nm treats weak defined symbols like other global | 
 | 14326 | 	# defined symbols, whereas GNU nm marks them as "W". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14327 | 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14328 | 	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14329 | 	else | 
 | 14330 | 	  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' | 
 | 14331 | 	fi | 
 | 14332 | 	aix_use_runtimelinking=no | 
 | 14333 |  | 
 | 14334 | 	# Test if we are trying to use run time linking or normal | 
 | 14335 | 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 14336 | 	# need to do runtime linking. | 
 | 14337 | 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
 | 14338 | 	  for ld_flag in $LDFLAGS; do | 
 | 14339 | 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
 | 14340 | 	    aix_use_runtimelinking=yes | 
 | 14341 | 	    break | 
 | 14342 | 	  fi | 
 | 14343 | 	  done | 
 | 14344 | 	  ;; | 
 | 14345 | 	esac | 
 | 14346 |  | 
 | 14347 | 	exp_sym_flag='-bexport' | 
 | 14348 | 	no_entry_flag='-bnoentry' | 
 | 14349 |       fi | 
 | 14350 |  | 
 | 14351 |       # When large executables or shared objects are built, AIX ld can | 
 | 14352 |       # have problems creating the table of contents.  If linking a library | 
 | 14353 |       # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 14354 |       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 14355 |       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 14356 |  | 
 | 14357 |       archive_cmds='' | 
 | 14358 |       hardcode_direct=yes | 
 | 14359 |       hardcode_direct_absolute=yes | 
 | 14360 |       hardcode_libdir_separator=':' | 
 | 14361 |       link_all_deplibs=yes | 
 | 14362 |       file_list_spec='${wl}-f,' | 
 | 14363 |  | 
 | 14364 |       if test "$GCC" = yes; then | 
 | 14365 | 	case $host_os in aix4.[012]|aix4.[012].*) | 
 | 14366 | 	# We only want to do this on AIX 4.2 and lower, the check | 
 | 14367 | 	# below for broken collect2 doesn't work under 4.3+ | 
 | 14368 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 14369 | 	  if test -f "$collect2name" && | 
 | 14370 | 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
 | 14371 | 	  then | 
 | 14372 | 	  # We have reworked collect2 | 
 | 14373 | 	  : | 
 | 14374 | 	  else | 
 | 14375 | 	  # We have old collect2 | 
 | 14376 | 	  hardcode_direct=unsupported | 
 | 14377 | 	  # It fails to find uninstalled libraries when the uninstalled | 
 | 14378 | 	  # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 14379 | 	  # to unsupported forces relinking | 
 | 14380 | 	  hardcode_minus_L=yes | 
 | 14381 | 	  hardcode_libdir_flag_spec='-L$libdir' | 
 | 14382 | 	  hardcode_libdir_separator= | 
 | 14383 | 	  fi | 
 | 14384 | 	  ;; | 
 | 14385 | 	esac | 
 | 14386 | 	shared_flag='-shared' | 
 | 14387 | 	if test "$aix_use_runtimelinking" = yes; then | 
 | 14388 | 	  shared_flag="$shared_flag "'${wl}-G' | 
 | 14389 | 	fi | 
 | 14390 |       else | 
 | 14391 | 	# not using gcc | 
 | 14392 | 	if test "$host_cpu" = ia64; then | 
 | 14393 | 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 14394 | 	# chokes on -Wl,-G. The following line is correct: | 
 | 14395 | 	  shared_flag='-G' | 
 | 14396 | 	else | 
 | 14397 | 	  if test "$aix_use_runtimelinking" = yes; then | 
 | 14398 | 	    shared_flag='${wl}-G' | 
 | 14399 | 	  else | 
 | 14400 | 	    shared_flag='${wl}-bM:SRE' | 
 | 14401 | 	  fi | 
 | 14402 | 	fi | 
 | 14403 |       fi | 
 | 14404 |  | 
 | 14405 |       export_dynamic_flag_spec='${wl}-bexpall' | 
 | 14406 |       # It seems that -bexpall does not export symbols beginning with | 
 | 14407 |       # underscore (_), so it is better to generate a list of symbols to export. | 
 | 14408 |       always_export_symbols=yes | 
 | 14409 |       if test "$aix_use_runtimelinking" = yes; then | 
 | 14410 | 	# Warning - without using the other runtime loading flags (-brtl), | 
 | 14411 | 	# -berok will link without error, but may produce a broken library. | 
 | 14412 | 	allow_undefined_flag='-berok' | 
 | 14413 |         # Determine the default libpath from the value encoded in an | 
 | 14414 |         # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14415 |         if test "${lt_cv_aix_libpath+set}" = set; then | 
 | 14416 |   aix_libpath=$lt_cv_aix_libpath | 
 | 14417 | else | 
 | 14418 |   if ${lt_cv_aix_libpath_+:} false; then : | 
 | 14419 |   $as_echo_n "(cached) " >&6 | 
 | 14420 | else | 
 | 14421 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14422 | /* end confdefs.h.  */ | 
 | 14423 |  | 
 | 14424 | int | 
 | 14425 | main () | 
 | 14426 | { | 
 | 14427 |  | 
 | 14428 |   ; | 
 | 14429 |   return 0; | 
 | 14430 | } | 
 | 14431 | _ACEOF | 
 | 14432 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 14433 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14434 |   lt_aix_libpath_sed=' | 
 | 14435 |       /Import File Strings/,/^$/ { | 
 | 14436 | 	  /^0/ { | 
 | 14437 | 	      s/^0  *\([^ ]*\) *$/\1/ | 
 | 14438 | 	      p | 
 | 14439 | 	  } | 
 | 14440 |       }' | 
 | 14441 |   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 14442 |   # Check for a 64-bit object if we didn't find anything. | 
 | 14443 |   if test -z "$lt_cv_aix_libpath_"; then | 
 | 14444 |     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 14445 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14446 | fi | 
 | 14447 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14448 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14449 |   if test -z "$lt_cv_aix_libpath_"; then | 
 | 14450 |     lt_cv_aix_libpath_="/usr/lib:/lib" | 
 | 14451 |   fi | 
 | 14452 |  | 
 | 14453 | fi | 
 | 14454 |  | 
 | 14455 |   aix_libpath=$lt_cv_aix_libpath_ | 
 | 14456 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14457 |  | 
 | 14458 |         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14459 |         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14460 |       else | 
 | 14461 | 	if test "$host_cpu" = ia64; then | 
 | 14462 | 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
 | 14463 | 	  allow_undefined_flag="-z nodefs" | 
 | 14464 | 	  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" | 
 | 14465 | 	else | 
 | 14466 | 	 # Determine the default libpath from the value encoded in an | 
 | 14467 | 	 # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14468 | 	 if test "${lt_cv_aix_libpath+set}" = set; then | 
 | 14469 |   aix_libpath=$lt_cv_aix_libpath | 
 | 14470 | else | 
 | 14471 |   if ${lt_cv_aix_libpath_+:} false; then : | 
 | 14472 |   $as_echo_n "(cached) " >&6 | 
 | 14473 | else | 
 | 14474 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14475 | /* end confdefs.h.  */ | 
 | 14476 |  | 
 | 14477 | int | 
 | 14478 | main () | 
 | 14479 | { | 
 | 14480 |  | 
 | 14481 |   ; | 
 | 14482 |   return 0; | 
 | 14483 | } | 
 | 14484 | _ACEOF | 
 | 14485 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 14486 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14487 |   lt_aix_libpath_sed=' | 
 | 14488 |       /Import File Strings/,/^$/ { | 
 | 14489 | 	  /^0/ { | 
 | 14490 | 	      s/^0  *\([^ ]*\) *$/\1/ | 
 | 14491 | 	      p | 
 | 14492 | 	  } | 
 | 14493 |       }' | 
 | 14494 |   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 14495 |   # Check for a 64-bit object if we didn't find anything. | 
 | 14496 |   if test -z "$lt_cv_aix_libpath_"; then | 
 | 14497 |     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 14498 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14499 | fi | 
 | 14500 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14501 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14502 |   if test -z "$lt_cv_aix_libpath_"; then | 
 | 14503 |     lt_cv_aix_libpath_="/usr/lib:/lib" | 
 | 14504 |   fi | 
 | 14505 |  | 
 | 14506 | fi | 
 | 14507 |  | 
 | 14508 |   aix_libpath=$lt_cv_aix_libpath_ | 
 | 14509 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14510 |  | 
 | 14511 | 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 14512 | 	  # Warning - without using the other run time loading flags, | 
 | 14513 | 	  # -berok will link without error, but may produce a broken library. | 
 | 14514 | 	  no_undefined_flag=' ${wl}-bernotok' | 
 | 14515 | 	  allow_undefined_flag=' ${wl}-berok' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14516 | 	  if test "$with_gnu_ld" = yes; then | 
 | 14517 | 	    # We only use this code for GNU lds that support --whole-archive. | 
 | 14518 | 	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 14519 | 	  else | 
 | 14520 | 	    # Exported symbols can be pulled into shared objects from archives | 
 | 14521 | 	    whole_archive_flag_spec='$convenience' | 
 | 14522 | 	  fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14523 | 	  archive_cmds_need_lc=yes | 
 | 14524 | 	  # This is similar to how AIX traditionally builds its shared libraries. | 
 | 14525 | 	  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' | 
 | 14526 | 	fi | 
 | 14527 |       fi | 
 | 14528 |       ;; | 
 | 14529 |  | 
 | 14530 |     amigaos*) | 
 | 14531 |       case $host_cpu in | 
 | 14532 |       powerpc) | 
 | 14533 |             # see comment about AmigaOS4 .so support | 
 | 14534 |             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 14535 |             archive_expsym_cmds='' | 
 | 14536 |         ;; | 
 | 14537 |       m68k) | 
 | 14538 |             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)' | 
 | 14539 |             hardcode_libdir_flag_spec='-L$libdir' | 
 | 14540 |             hardcode_minus_L=yes | 
 | 14541 |         ;; | 
 | 14542 |       esac | 
 | 14543 |       ;; | 
 | 14544 |  | 
 | 14545 |     bsdi[45]*) | 
 | 14546 |       export_dynamic_flag_spec=-rdynamic | 
 | 14547 |       ;; | 
 | 14548 |  | 
 | 14549 |     cygwin* | mingw* | pw32* | cegcc*) | 
 | 14550 |       # When not using gcc, we currently assume that we are using | 
 | 14551 |       # Microsoft Visual C++. | 
 | 14552 |       # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 14553 |       # no search path for DLLs. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14554 |       case $cc_basename in | 
 | 14555 |       cl*) | 
 | 14556 | 	# Native MSVC | 
 | 14557 | 	hardcode_libdir_flag_spec=' ' | 
 | 14558 | 	allow_undefined_flag=unsupported | 
 | 14559 | 	always_export_symbols=yes | 
 | 14560 | 	file_list_spec='@' | 
 | 14561 | 	# Tell ltmain to make .lib files, not .a files. | 
 | 14562 | 	libext=lib | 
 | 14563 | 	# Tell ltmain to make .dll files, not .so files. | 
 | 14564 | 	shrext_cmds=".dll" | 
 | 14565 | 	# FIXME: Setting linknames here is a bad hack. | 
 | 14566 | 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | 
 | 14567 | 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 14568 | 	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | 
 | 14569 | 	  else | 
 | 14570 | 	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | 
 | 14571 | 	  fi~ | 
 | 14572 | 	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | 
 | 14573 | 	  linknames=' | 
 | 14574 | 	# The linker will not automatically build a static lib if we build a DLL. | 
 | 14575 | 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true' | 
 | 14576 | 	enable_shared_with_static_runtimes=yes | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14577 | 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14578 | 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | 
 | 14579 | 	# Don't use ranlib | 
 | 14580 | 	old_postinstall_cmds='chmod 644 $oldlib' | 
 | 14581 | 	postlink_cmds='lt_outputfile="@OUTPUT@"~ | 
 | 14582 | 	  lt_tool_outputfile="@TOOL_OUTPUT@"~ | 
 | 14583 | 	  case $lt_outputfile in | 
 | 14584 | 	    *.exe|*.EXE) ;; | 
 | 14585 | 	    *) | 
 | 14586 | 	      lt_outputfile="$lt_outputfile.exe" | 
 | 14587 | 	      lt_tool_outputfile="$lt_tool_outputfile.exe" | 
 | 14588 | 	      ;; | 
 | 14589 | 	  esac~ | 
 | 14590 | 	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | 
 | 14591 | 	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | 
 | 14592 | 	    $RM "$lt_outputfile.manifest"; | 
 | 14593 | 	  fi' | 
 | 14594 | 	;; | 
 | 14595 |       *) | 
 | 14596 | 	# Assume MSVC wrapper | 
 | 14597 | 	hardcode_libdir_flag_spec=' ' | 
 | 14598 | 	allow_undefined_flag=unsupported | 
 | 14599 | 	# Tell ltmain to make .lib files, not .a files. | 
 | 14600 | 	libext=lib | 
 | 14601 | 	# Tell ltmain to make .dll files, not .so files. | 
 | 14602 | 	shrext_cmds=".dll" | 
 | 14603 | 	# FIXME: Setting linknames here is a bad hack. | 
 | 14604 | 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | 
 | 14605 | 	# The linker will automatically build a .lib file if we build a DLL. | 
 | 14606 | 	old_archive_from_new_cmds='true' | 
 | 14607 | 	# FIXME: Should let the user specify the lib program. | 
 | 14608 | 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | 
 | 14609 | 	enable_shared_with_static_runtimes=yes | 
 | 14610 | 	;; | 
 | 14611 |       esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14612 |       ;; | 
 | 14613 |  | 
 | 14614 |     darwin* | rhapsody*) | 
 | 14615 |  | 
 | 14616 |  | 
 | 14617 |   archive_cmds_need_lc=no | 
 | 14618 |   hardcode_direct=no | 
 | 14619 |   hardcode_automatic=yes | 
 | 14620 |   hardcode_shlibpath_var=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14621 |   if test "$lt_cv_ld_force_load" = "yes"; then | 
 | 14622 |     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\"`' | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14623 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14624 |   else | 
 | 14625 |     whole_archive_flag_spec='' | 
 | 14626 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14627 |   link_all_deplibs=yes | 
 | 14628 |   allow_undefined_flag="$_lt_dar_allow_undefined" | 
 | 14629 |   case $cc_basename in | 
 | 14630 |      ifort*) _lt_dar_can_shared=yes ;; | 
 | 14631 |      *) _lt_dar_can_shared=$GCC ;; | 
 | 14632 |   esac | 
 | 14633 |   if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14634 |     output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14635 |     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | 
 | 14636 |     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
 | 14637 |     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}" | 
 | 14638 |     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}" | 
 | 14639 |  | 
 | 14640 |   else | 
 | 14641 |   ld_shlibs=no | 
 | 14642 |   fi | 
 | 14643 |  | 
 | 14644 |       ;; | 
 | 14645 |  | 
 | 14646 |     dgux*) | 
 | 14647 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14648 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 14649 |       hardcode_shlibpath_var=no | 
 | 14650 |       ;; | 
 | 14651 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14652 |     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
 | 14653 |     # support.  Future versions do this automatically, but an explicit c++rt0.o | 
 | 14654 |     # does not break anything, and helps significantly (at the cost of a little | 
 | 14655 |     # extra space). | 
 | 14656 |     freebsd2.2*) | 
 | 14657 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
 | 14658 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 14659 |       hardcode_direct=yes | 
 | 14660 |       hardcode_shlibpath_var=no | 
 | 14661 |       ;; | 
 | 14662 |  | 
 | 14663 |     # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14664 |     freebsd2.*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14665 |       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 14666 |       hardcode_direct=yes | 
 | 14667 |       hardcode_minus_L=yes | 
 | 14668 |       hardcode_shlibpath_var=no | 
 | 14669 |       ;; | 
 | 14670 |  | 
 | 14671 |     # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
 | 14672 |     freebsd* | dragonfly*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14673 |       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14674 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 14675 |       hardcode_direct=yes | 
 | 14676 |       hardcode_shlibpath_var=no | 
 | 14677 |       ;; | 
 | 14678 |  | 
 | 14679 |     hpux9*) | 
 | 14680 |       if test "$GCC" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14681 | 	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14682 |       else | 
 | 14683 | 	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' | 
 | 14684 |       fi | 
 | 14685 |       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 14686 |       hardcode_libdir_separator=: | 
 | 14687 |       hardcode_direct=yes | 
 | 14688 |  | 
 | 14689 |       # hardcode_minus_L: Not really in the search PATH, | 
 | 14690 |       # but as the default location of the library. | 
 | 14691 |       hardcode_minus_L=yes | 
 | 14692 |       export_dynamic_flag_spec='${wl}-E' | 
 | 14693 |       ;; | 
 | 14694 |  | 
 | 14695 |     hpux10*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14696 |       if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14697 | 	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14698 |       else | 
 | 14699 | 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 14700 |       fi | 
 | 14701 |       if test "$with_gnu_ld" = no; then | 
 | 14702 | 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14703 | 	hardcode_libdir_separator=: | 
 | 14704 | 	hardcode_direct=yes | 
 | 14705 | 	hardcode_direct_absolute=yes | 
 | 14706 | 	export_dynamic_flag_spec='${wl}-E' | 
 | 14707 | 	# hardcode_minus_L: Not really in the search PATH, | 
 | 14708 | 	# but as the default location of the library. | 
 | 14709 | 	hardcode_minus_L=yes | 
 | 14710 |       fi | 
 | 14711 |       ;; | 
 | 14712 |  | 
 | 14713 |     hpux11*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14714 |       if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14715 | 	case $host_cpu in | 
 | 14716 | 	hppa*64*) | 
 | 14717 | 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14718 | 	  ;; | 
 | 14719 | 	ia64*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14720 | 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14721 | 	  ;; | 
 | 14722 | 	*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14723 | 	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14724 | 	  ;; | 
 | 14725 | 	esac | 
 | 14726 |       else | 
 | 14727 | 	case $host_cpu in | 
 | 14728 | 	hppa*64*) | 
 | 14729 | 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14730 | 	  ;; | 
 | 14731 | 	ia64*) | 
 | 14732 | 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14733 | 	  ;; | 
 | 14734 | 	*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14735 |  | 
 | 14736 | 	  # Older versions of the 11.00 compiler do not understand -b yet | 
 | 14737 | 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | 
 | 14738 | 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | 
 | 14739 | $as_echo_n "checking if $CC understands -b... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14740 | if ${lt_cv_prog_compiler__b+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14741 |   $as_echo_n "(cached) " >&6 | 
 | 14742 | else | 
 | 14743 |   lt_cv_prog_compiler__b=no | 
 | 14744 |    save_LDFLAGS="$LDFLAGS" | 
 | 14745 |    LDFLAGS="$LDFLAGS -b" | 
 | 14746 |    echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 14747 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 14748 |      # The linker can only warn and ignore the option if not recognized | 
 | 14749 |      # So say no if there are warnings | 
 | 14750 |      if test -s conftest.err; then | 
 | 14751 |        # Append any errors to the config.log. | 
 | 14752 |        cat conftest.err 1>&5 | 
 | 14753 |        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
 | 14754 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 14755 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 14756 |          lt_cv_prog_compiler__b=yes | 
 | 14757 |        fi | 
 | 14758 |      else | 
 | 14759 |        lt_cv_prog_compiler__b=yes | 
 | 14760 |      fi | 
 | 14761 |    fi | 
 | 14762 |    $RM -r conftest* | 
 | 14763 |    LDFLAGS="$save_LDFLAGS" | 
 | 14764 |  | 
 | 14765 | fi | 
 | 14766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | 
 | 14767 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | 
 | 14768 |  | 
 | 14769 | if test x"$lt_cv_prog_compiler__b" = xyes; then | 
 | 14770 |     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14771 | else | 
 | 14772 |     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
 | 14773 | fi | 
 | 14774 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14775 | 	  ;; | 
 | 14776 | 	esac | 
 | 14777 |       fi | 
 | 14778 |       if test "$with_gnu_ld" = no; then | 
 | 14779 | 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
 | 14780 | 	hardcode_libdir_separator=: | 
 | 14781 |  | 
 | 14782 | 	case $host_cpu in | 
 | 14783 | 	hppa*64*|ia64*) | 
 | 14784 | 	  hardcode_direct=no | 
 | 14785 | 	  hardcode_shlibpath_var=no | 
 | 14786 | 	  ;; | 
 | 14787 | 	*) | 
 | 14788 | 	  hardcode_direct=yes | 
 | 14789 | 	  hardcode_direct_absolute=yes | 
 | 14790 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 14791 |  | 
 | 14792 | 	  # hardcode_minus_L: Not really in the search PATH, | 
 | 14793 | 	  # but as the default location of the library. | 
 | 14794 | 	  hardcode_minus_L=yes | 
 | 14795 | 	  ;; | 
 | 14796 | 	esac | 
 | 14797 |       fi | 
 | 14798 |       ;; | 
 | 14799 |  | 
 | 14800 |     irix5* | irix6* | nonstopux*) | 
 | 14801 |       if test "$GCC" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14802 | 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14803 | 	# Try to use the -exported_symbol ld option, if it does not | 
 | 14804 | 	# work, assume that -exports_file does not work either and | 
 | 14805 | 	# implicitly export all symbols. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14806 | 	# This should be the same for all languages, so no per-tag cache variable. | 
 | 14807 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | 
 | 14808 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | 
 | 14809 | if ${lt_cv_irix_exported_symbol+:} false; then : | 
 | 14810 |   $as_echo_n "(cached) " >&6 | 
 | 14811 | else | 
 | 14812 |   save_LDFLAGS="$LDFLAGS" | 
 | 14813 | 	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 
 | 14814 | 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14815 | /* end confdefs.h.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14816 | int foo (void) { return 0; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14817 | _ACEOF | 
 | 14818 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14819 |   lt_cv_irix_exported_symbol=yes | 
 | 14820 | else | 
 | 14821 |   lt_cv_irix_exported_symbol=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14822 | fi | 
 | 14823 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 14824 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14825 |            LDFLAGS="$save_LDFLAGS" | 
 | 14826 | fi | 
 | 14827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | 
 | 14828 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | 
 | 14829 | 	if test "$lt_cv_irix_exported_symbol" = yes; then | 
 | 14830 |           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 
 | 14831 | 	fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14832 |       else | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14833 | 	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' | 
 | 14834 | 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14835 |       fi | 
 | 14836 |       archive_cmds_need_lc='no' | 
 | 14837 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14838 |       hardcode_libdir_separator=: | 
 | 14839 |       inherit_rpath=yes | 
 | 14840 |       link_all_deplibs=yes | 
 | 14841 |       ;; | 
 | 14842 |  | 
 | 14843 |     netbsd*) | 
 | 14844 |       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
 | 14845 | 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
 | 14846 |       else | 
 | 14847 | 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
 | 14848 |       fi | 
 | 14849 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 14850 |       hardcode_direct=yes | 
 | 14851 |       hardcode_shlibpath_var=no | 
 | 14852 |       ;; | 
 | 14853 |  | 
 | 14854 |     newsos6) | 
 | 14855 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14856 |       hardcode_direct=yes | 
 | 14857 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14858 |       hardcode_libdir_separator=: | 
 | 14859 |       hardcode_shlibpath_var=no | 
 | 14860 |       ;; | 
 | 14861 |  | 
 | 14862 |     *nto* | *qnx*) | 
 | 14863 |       ;; | 
 | 14864 |  | 
 | 14865 |     openbsd*) | 
 | 14866 |       if test -f /usr/libexec/ld.so; then | 
 | 14867 | 	hardcode_direct=yes | 
 | 14868 | 	hardcode_shlibpath_var=no | 
 | 14869 | 	hardcode_direct_absolute=yes | 
 | 14870 | 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 14871 | 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14872 | 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
 | 14873 | 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 14874 | 	  export_dynamic_flag_spec='${wl}-E' | 
 | 14875 | 	else | 
 | 14876 | 	  case $host_os in | 
 | 14877 | 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
 | 14878 | 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
 | 14879 | 	     hardcode_libdir_flag_spec='-R$libdir' | 
 | 14880 | 	     ;; | 
 | 14881 | 	   *) | 
 | 14882 | 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14883 | 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
 | 14884 | 	     ;; | 
 | 14885 | 	  esac | 
 | 14886 | 	fi | 
 | 14887 |       else | 
 | 14888 | 	ld_shlibs=no | 
 | 14889 |       fi | 
 | 14890 |       ;; | 
 | 14891 |  | 
 | 14892 |     os2*) | 
 | 14893 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 14894 |       hardcode_minus_L=yes | 
 | 14895 |       allow_undefined_flag=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14896 |       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14897 |       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
 | 14898 |       ;; | 
 | 14899 |  | 
 | 14900 |     osf3*) | 
 | 14901 |       if test "$GCC" = yes; then | 
 | 14902 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14903 | 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14904 |       else | 
 | 14905 | 	allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14906 | 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14907 |       fi | 
 | 14908 |       archive_cmds_need_lc='no' | 
 | 14909 |       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14910 |       hardcode_libdir_separator=: | 
 | 14911 |       ;; | 
 | 14912 |  | 
 | 14913 |     osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
 | 14914 |       if test "$GCC" = yes; then | 
 | 14915 | 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14916 | 	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14917 | 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
 | 14918 |       else | 
 | 14919 | 	allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14920 | 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14921 | 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14922 | 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14923 |  | 
 | 14924 | 	# Both c and cxx compiler support -rpath directly | 
 | 14925 | 	hardcode_libdir_flag_spec='-rpath $libdir' | 
 | 14926 |       fi | 
 | 14927 |       archive_cmds_need_lc='no' | 
 | 14928 |       hardcode_libdir_separator=: | 
 | 14929 |       ;; | 
 | 14930 |  | 
 | 14931 |     solaris*) | 
 | 14932 |       no_undefined_flag=' -z defs' | 
 | 14933 |       if test "$GCC" = yes; then | 
 | 14934 | 	wlarc='${wl}' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14935 | 	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14936 | 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14937 | 	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14938 |       else | 
 | 14939 | 	case `$CC -V 2>&1` in | 
 | 14940 | 	*"Compilers 5.0"*) | 
 | 14941 | 	  wlarc='' | 
 | 14942 | 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14943 | 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
 | 14944 | 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | 
 | 14945 | 	  ;; | 
 | 14946 | 	*) | 
 | 14947 | 	  wlarc='${wl}' | 
 | 14948 | 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14949 | 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
 | 14950 | 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
 | 14951 | 	  ;; | 
 | 14952 | 	esac | 
 | 14953 |       fi | 
 | 14954 |       hardcode_libdir_flag_spec='-R$libdir' | 
 | 14955 |       hardcode_shlibpath_var=no | 
 | 14956 |       case $host_os in | 
 | 14957 |       solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 14958 |       *) | 
 | 14959 | 	# The compiler driver will combine and reorder linker options, | 
 | 14960 | 	# but understands `-z linker_flag'.  GCC discards it without `$wl', | 
 | 14961 | 	# but is careful enough not to reorder. | 
 | 14962 | 	# Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 14963 | 	if test "$GCC" = yes; then | 
 | 14964 | 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 14965 | 	else | 
 | 14966 | 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | 
 | 14967 | 	fi | 
 | 14968 | 	;; | 
 | 14969 |       esac | 
 | 14970 |       link_all_deplibs=yes | 
 | 14971 |       ;; | 
 | 14972 |  | 
 | 14973 |     sunos4*) | 
 | 14974 |       if test "x$host_vendor" = xsequent; then | 
 | 14975 | 	# Use $CC to link under sequent, because it throws in some extra .o | 
 | 14976 | 	# files that make .init and .fini sections work. | 
 | 14977 | 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 14978 |       else | 
 | 14979 | 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
 | 14980 |       fi | 
 | 14981 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 14982 |       hardcode_direct=yes | 
 | 14983 |       hardcode_minus_L=yes | 
 | 14984 |       hardcode_shlibpath_var=no | 
 | 14985 |       ;; | 
 | 14986 |  | 
 | 14987 |     sysv4) | 
 | 14988 |       case $host_vendor in | 
 | 14989 | 	sni) | 
 | 14990 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 14991 | 	  hardcode_direct=yes # is this really true??? | 
 | 14992 | 	;; | 
 | 14993 | 	siemens) | 
 | 14994 | 	  ## LD is ld it makes a PLAMLIB | 
 | 14995 | 	  ## CC just makes a GrossModule. | 
 | 14996 | 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
 | 14997 | 	  reload_cmds='$CC -r -o $output$reload_objs' | 
 | 14998 | 	  hardcode_direct=no | 
 | 14999 |         ;; | 
 | 15000 | 	motorola) | 
 | 15001 | 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15002 | 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
 | 15003 | 	;; | 
 | 15004 |       esac | 
 | 15005 |       runpath_var='LD_RUN_PATH' | 
 | 15006 |       hardcode_shlibpath_var=no | 
 | 15007 |       ;; | 
 | 15008 |  | 
 | 15009 |     sysv4.3*) | 
 | 15010 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15011 |       hardcode_shlibpath_var=no | 
 | 15012 |       export_dynamic_flag_spec='-Bexport' | 
 | 15013 |       ;; | 
 | 15014 |  | 
 | 15015 |     sysv4*MP*) | 
 | 15016 |       if test -d /usr/nec; then | 
 | 15017 | 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15018 | 	hardcode_shlibpath_var=no | 
 | 15019 | 	runpath_var=LD_RUN_PATH | 
 | 15020 | 	hardcode_runpath_var=yes | 
 | 15021 | 	ld_shlibs=yes | 
 | 15022 |       fi | 
 | 15023 |       ;; | 
 | 15024 |  | 
 | 15025 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
 | 15026 |       no_undefined_flag='${wl}-z,text' | 
 | 15027 |       archive_cmds_need_lc=no | 
 | 15028 |       hardcode_shlibpath_var=no | 
 | 15029 |       runpath_var='LD_RUN_PATH' | 
 | 15030 |  | 
 | 15031 |       if test "$GCC" = yes; then | 
 | 15032 | 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15033 | 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15034 |       else | 
 | 15035 | 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15036 | 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15037 |       fi | 
 | 15038 |       ;; | 
 | 15039 |  | 
 | 15040 |     sysv5* | sco3.2v5* | sco5v6*) | 
 | 15041 |       # Note: We can NOT use -z defs as we might desire, because we do not | 
 | 15042 |       # link with -lc, and that would cause any symbols used from libc to | 
 | 15043 |       # always be unresolved, which means just about no library would | 
 | 15044 |       # ever link correctly.  If we're not using GNU ld we use -z text | 
 | 15045 |       # though, which does catch some bad symbols but isn't as heavy-handed | 
 | 15046 |       # as -z defs. | 
 | 15047 |       no_undefined_flag='${wl}-z,text' | 
 | 15048 |       allow_undefined_flag='${wl}-z,nodefs' | 
 | 15049 |       archive_cmds_need_lc=no | 
 | 15050 |       hardcode_shlibpath_var=no | 
 | 15051 |       hardcode_libdir_flag_spec='${wl}-R,$libdir' | 
 | 15052 |       hardcode_libdir_separator=':' | 
 | 15053 |       link_all_deplibs=yes | 
 | 15054 |       export_dynamic_flag_spec='${wl}-Bexport' | 
 | 15055 |       runpath_var='LD_RUN_PATH' | 
 | 15056 |  | 
 | 15057 |       if test "$GCC" = yes; then | 
 | 15058 | 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15059 | 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15060 |       else | 
 | 15061 | 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15062 | 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 15063 |       fi | 
 | 15064 |       ;; | 
 | 15065 |  | 
 | 15066 |     uts4*) | 
 | 15067 |       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
 | 15068 |       hardcode_libdir_flag_spec='-L$libdir' | 
 | 15069 |       hardcode_shlibpath_var=no | 
 | 15070 |       ;; | 
 | 15071 |  | 
 | 15072 |     *) | 
 | 15073 |       ld_shlibs=no | 
 | 15074 |       ;; | 
 | 15075 |     esac | 
 | 15076 |  | 
 | 15077 |     if test x$host_vendor = xsni; then | 
 | 15078 |       case $host in | 
 | 15079 |       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
 | 15080 | 	export_dynamic_flag_spec='${wl}-Blargedynsym' | 
 | 15081 | 	;; | 
 | 15082 |       esac | 
 | 15083 |     fi | 
 | 15084 |   fi | 
 | 15085 |  | 
 | 15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | 
 | 15087 | $as_echo "$ld_shlibs" >&6; } | 
 | 15088 | test "$ld_shlibs" = no && can_build_shared=no | 
 | 15089 |  | 
 | 15090 | with_gnu_ld=$with_gnu_ld | 
 | 15091 |  | 
 | 15092 |  | 
 | 15093 |  | 
 | 15094 |  | 
 | 15095 |  | 
 | 15096 |  | 
 | 15097 |  | 
 | 15098 |  | 
 | 15099 |  | 
 | 15100 |  | 
 | 15101 |  | 
 | 15102 |  | 
 | 15103 |  | 
 | 15104 |  | 
 | 15105 |  | 
 | 15106 | # | 
 | 15107 | # Do we need to explicitly link libc? | 
 | 15108 | # | 
 | 15109 | case "x$archive_cmds_need_lc" in | 
 | 15110 | x|xyes) | 
 | 15111 |   # Assume -lc should be added | 
 | 15112 |   archive_cmds_need_lc=yes | 
 | 15113 |  | 
 | 15114 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 15115 |     case $archive_cmds in | 
 | 15116 |     *'~'*) | 
 | 15117 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 15118 |       ;; | 
 | 15119 |     '$CC '*) | 
 | 15120 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 15121 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 15122 |       # to ld, don't add -lc before -lgcc. | 
 | 15123 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
 | 15124 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15125 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15126 |   $as_echo_n "(cached) " >&6 | 
 | 15127 | else | 
 | 15128 |   $RM conftest* | 
 | 15129 | 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15130 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15131 | 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15132 |   (eval $ac_compile) 2>&5 | 
 | 15133 |   ac_status=$? | 
 | 15134 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 15135 |   test $ac_status = 0; } 2>conftest.err; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15136 | 	  soname=conftest | 
 | 15137 | 	  lib=conftest | 
 | 15138 | 	  libobjs=conftest.$ac_objext | 
 | 15139 | 	  deplibs= | 
 | 15140 | 	  wl=$lt_prog_compiler_wl | 
 | 15141 | 	  pic_flag=$lt_prog_compiler_pic | 
 | 15142 | 	  compiler_flags=-v | 
 | 15143 | 	  linker_flags=-v | 
 | 15144 | 	  verstring= | 
 | 15145 | 	  output_objdir=. | 
 | 15146 | 	  libname=conftest | 
 | 15147 | 	  lt_save_allow_undefined_flag=$allow_undefined_flag | 
 | 15148 | 	  allow_undefined_flag= | 
 | 15149 | 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15150 |   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 15151 |   ac_status=$? | 
 | 15152 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 15153 |   test $ac_status = 0; } | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15154 | 	  then | 
 | 15155 | 	    lt_cv_archive_cmds_need_lc=no | 
 | 15156 | 	  else | 
 | 15157 | 	    lt_cv_archive_cmds_need_lc=yes | 
 | 15158 | 	  fi | 
 | 15159 | 	  allow_undefined_flag=$lt_save_allow_undefined_flag | 
 | 15160 | 	else | 
 | 15161 | 	  cat conftest.err 1>&5 | 
 | 15162 | 	fi | 
 | 15163 | 	$RM conftest* | 
 | 15164 |  | 
 | 15165 | fi | 
 | 15166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | 
 | 15167 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | 
 | 15168 |       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15169 |       ;; | 
 | 15170 |     esac | 
 | 15171 |   fi | 
 | 15172 |   ;; | 
 | 15173 | esac | 
 | 15174 |  | 
 | 15175 |  | 
 | 15176 |  | 
 | 15177 |  | 
 | 15178 |  | 
 | 15179 |  | 
 | 15180 |  | 
 | 15181 |  | 
 | 15182 |  | 
 | 15183 |  | 
 | 15184 |  | 
 | 15185 |  | 
 | 15186 |  | 
 | 15187 |  | 
 | 15188 |  | 
 | 15189 |  | 
 | 15190 |  | 
 | 15191 |  | 
 | 15192 |  | 
 | 15193 |  | 
 | 15194 |  | 
 | 15195 |  | 
 | 15196 |  | 
 | 15197 |  | 
 | 15198 |  | 
 | 15199 |  | 
 | 15200 |  | 
 | 15201 |  | 
 | 15202 |  | 
 | 15203 |  | 
 | 15204 |  | 
 | 15205 |  | 
 | 15206 |  | 
 | 15207 |  | 
 | 15208 |  | 
 | 15209 |  | 
 | 15210 |  | 
 | 15211 |  | 
 | 15212 |  | 
 | 15213 |  | 
 | 15214 |  | 
 | 15215 |  | 
 | 15216 |  | 
 | 15217 |  | 
 | 15218 |  | 
 | 15219 |  | 
 | 15220 |  | 
 | 15221 |  | 
 | 15222 |  | 
 | 15223 |  | 
 | 15224 |  | 
 | 15225 |  | 
 | 15226 |  | 
 | 15227 |  | 
 | 15228 |  | 
 | 15229 |  | 
 | 15230 |  | 
 | 15231 |  | 
 | 15232 |  | 
 | 15233 |  | 
 | 15234 |  | 
 | 15235 |  | 
 | 15236 |  | 
 | 15237 |  | 
 | 15238 |  | 
 | 15239 |  | 
 | 15240 |  | 
 | 15241 |  | 
 | 15242 |  | 
 | 15243 |  | 
 | 15244 |  | 
 | 15245 |  | 
 | 15246 |  | 
 | 15247 |  | 
 | 15248 |  | 
 | 15249 |  | 
 | 15250 |  | 
 | 15251 |  | 
 | 15252 |  | 
 | 15253 |  | 
 | 15254 |  | 
 | 15255 |  | 
 | 15256 |  | 
 | 15257 |  | 
 | 15258 |  | 
 | 15259 |  | 
 | 15260 |  | 
 | 15261 |  | 
 | 15262 |  | 
 | 15263 |  | 
 | 15264 |  | 
 | 15265 |  | 
 | 15266 |  | 
 | 15267 |  | 
 | 15268 |  | 
 | 15269 |  | 
 | 15270 |  | 
 | 15271 |  | 
 | 15272 |  | 
 | 15273 |  | 
 | 15274 |  | 
 | 15275 |  | 
 | 15276 |  | 
 | 15277 |  | 
 | 15278 |  | 
 | 15279 |  | 
 | 15280 |  | 
 | 15281 |  | 
 | 15282 |  | 
 | 15283 |  | 
 | 15284 |  | 
 | 15285 |  | 
 | 15286 |  | 
 | 15287 |  | 
 | 15288 |  | 
 | 15289 |  | 
 | 15290 |  | 
 | 15291 |  | 
 | 15292 |  | 
 | 15293 |  | 
 | 15294 |  | 
 | 15295 |  | 
 | 15296 |  | 
 | 15297 |  | 
 | 15298 |  | 
 | 15299 |  | 
 | 15300 |  | 
 | 15301 |  | 
 | 15302 |  | 
 | 15303 |  | 
 | 15304 |  | 
 | 15305 |  | 
 | 15306 |  | 
 | 15307 |  | 
 | 15308 |  | 
 | 15309 |  | 
 | 15310 |  | 
 | 15311 |  | 
 | 15312 |  | 
 | 15313 |  | 
 | 15314 |  | 
 | 15315 |  | 
 | 15316 |  | 
 | 15317 |  | 
 | 15318 |  | 
 | 15319 |  | 
 | 15320 |  | 
 | 15321 |  | 
 | 15322 |  | 
 | 15323 |  | 
 | 15324 |  | 
 | 15325 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15326 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
 | 15327 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
 | 15328 |  | 
 | 15329 | if test "$GCC" = yes; then | 
 | 15330 |   case $host_os in | 
 | 15331 |     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 
 | 15332 |     *) lt_awk_arg="/^libraries:/" ;; | 
 | 15333 |   esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15334 |   case $host_os in | 
 | 15335 |     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | 
 | 15336 |     *) lt_sed_strip_eq="s,=/,/,g" ;; | 
 | 15337 |   esac | 
 | 15338 |   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | 
 | 15339 |   case $lt_search_path_spec in | 
 | 15340 |   *\;*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15341 |     # if the path contains ";" then we assume it to be the separator | 
 | 15342 |     # otherwise default to the standard path separator (i.e. ":") - it is | 
 | 15343 |     # assumed that no part of a normal pathname contains ";" but that should | 
 | 15344 |     # okay in the real world where ";" in dirpaths is itself problematic. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15345 |     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | 
 | 15346 |     ;; | 
 | 15347 |   *) | 
 | 15348 |     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | 
 | 15349 |     ;; | 
 | 15350 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15351 |   # Ok, now we have the path, separated by spaces, we can step through it | 
 | 15352 |   # and add multilib dir if necessary. | 
 | 15353 |   lt_tmp_lt_search_path_spec= | 
 | 15354 |   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | 
 | 15355 |   for lt_sys_path in $lt_search_path_spec; do | 
 | 15356 |     if test -d "$lt_sys_path/$lt_multi_os_dir"; then | 
 | 15357 |       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | 
 | 15358 |     else | 
 | 15359 |       test -d "$lt_sys_path" && \ | 
 | 15360 | 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 
 | 15361 |     fi | 
 | 15362 |   done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15363 |   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15364 | BEGIN {RS=" "; FS="/|\n";} { | 
 | 15365 |   lt_foo=""; | 
 | 15366 |   lt_count=0; | 
 | 15367 |   for (lt_i = NF; lt_i > 0; lt_i--) { | 
 | 15368 |     if ($lt_i != "" && $lt_i != ".") { | 
 | 15369 |       if ($lt_i == "..") { | 
 | 15370 |         lt_count++; | 
 | 15371 |       } else { | 
 | 15372 |         if (lt_count == 0) { | 
 | 15373 |           lt_foo="/" $lt_i lt_foo; | 
 | 15374 |         } else { | 
 | 15375 |           lt_count--; | 
 | 15376 |         } | 
 | 15377 |       } | 
 | 15378 |     } | 
 | 15379 |   } | 
 | 15380 |   if (lt_foo != "") { lt_freq[lt_foo]++; } | 
 | 15381 |   if (lt_freq[lt_foo] == 1) { print lt_foo; } | 
 | 15382 | }'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15383 |   # AWK program above erroneously prepends '/' to C:/dos/paths | 
 | 15384 |   # for these hosts. | 
 | 15385 |   case $host_os in | 
 | 15386 |     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | 
 | 15387 |       $SED 's,/\([A-Za-z]:\),\1,g'` ;; | 
 | 15388 |   esac | 
 | 15389 |   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15390 | else | 
 | 15391 |   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
 | 15392 | fi | 
 | 15393 | library_names_spec= | 
 | 15394 | libname_spec='lib$name' | 
 | 15395 | soname_spec= | 
 | 15396 | shrext_cmds=".so" | 
 | 15397 | postinstall_cmds= | 
 | 15398 | postuninstall_cmds= | 
 | 15399 | finish_cmds= | 
 | 15400 | finish_eval= | 
 | 15401 | shlibpath_var= | 
 | 15402 | shlibpath_overrides_runpath=unknown | 
 | 15403 | version_type=none | 
 | 15404 | dynamic_linker="$host_os ld.so" | 
 | 15405 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 15406 | need_lib_prefix=unknown | 
 | 15407 | hardcode_into_libs=no | 
 | 15408 |  | 
 | 15409 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 15410 | # flags to be left without arguments | 
 | 15411 | need_version=unknown | 
 | 15412 |  | 
 | 15413 | case $host_os in | 
 | 15414 | aix3*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15415 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15416 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 15417 |   shlibpath_var=LIBPATH | 
 | 15418 |  | 
 | 15419 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 15420 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15421 |   ;; | 
 | 15422 |  | 
 | 15423 | aix[4-9]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15424 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15425 |   need_lib_prefix=no | 
 | 15426 |   need_version=no | 
 | 15427 |   hardcode_into_libs=yes | 
 | 15428 |   if test "$host_cpu" = ia64; then | 
 | 15429 |     # AIX 5 supports IA64 | 
 | 15430 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 15431 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 15432 |   else | 
 | 15433 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 15434 |     # for dependence libraries.  The import file would start with | 
 | 15435 |     # the line `#! .'.  This would cause the generated library to | 
 | 15436 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 15437 |     # development snapshots of GCC prior to 3.0. | 
 | 15438 |     case $host_os in | 
 | 15439 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 15440 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 15441 | 	   echo ' yes ' | 
 | 15442 | 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
 | 15443 | 	: | 
 | 15444 |       else | 
 | 15445 | 	can_build_shared=no | 
 | 15446 |       fi | 
 | 15447 |       ;; | 
 | 15448 |     esac | 
 | 15449 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 15450 |     # soname into executable. Probably we can add versioning support to | 
 | 15451 |     # collect2, so additional links can be useful in future. | 
 | 15452 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 15453 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 15454 |       # instead of lib<name>.a to let people know that these are not | 
 | 15455 |       # typical AIX shared libraries. | 
 | 15456 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15457 |     else | 
 | 15458 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 15459 |       # and later when we are not doing run time linking. | 
 | 15460 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 15461 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15462 |     fi | 
 | 15463 |     shlibpath_var=LIBPATH | 
 | 15464 |   fi | 
 | 15465 |   ;; | 
 | 15466 |  | 
 | 15467 | amigaos*) | 
 | 15468 |   case $host_cpu in | 
 | 15469 |   powerpc) | 
 | 15470 |     # Since July 2007 AmigaOS4 officially supports .so libraries. | 
 | 15471 |     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
 | 15472 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15473 |     ;; | 
 | 15474 |   m68k) | 
 | 15475 |     library_names_spec='$libname.ixlibrary $libname.a' | 
 | 15476 |     # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15477 |     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15478 |     ;; | 
 | 15479 |   esac | 
 | 15480 |   ;; | 
 | 15481 |  | 
 | 15482 | beos*) | 
 | 15483 |   library_names_spec='${libname}${shared_ext}' | 
 | 15484 |   dynamic_linker="$host_os ld.so" | 
 | 15485 |   shlibpath_var=LIBRARY_PATH | 
 | 15486 |   ;; | 
 | 15487 |  | 
 | 15488 | bsdi[45]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15489 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15490 |   need_version=no | 
 | 15491 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15492 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15493 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 15494 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15495 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 15496 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 15497 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 15498 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 15499 |   # libtool to hard-code these into programs | 
 | 15500 |   ;; | 
 | 15501 |  | 
 | 15502 | cygwin* | mingw* | pw32* | cegcc*) | 
 | 15503 |   version_type=windows | 
 | 15504 |   shrext_cmds=".dll" | 
 | 15505 |   need_version=no | 
 | 15506 |   need_lib_prefix=no | 
 | 15507 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15508 |   case $GCC,$cc_basename in | 
 | 15509 |   yes,*) | 
 | 15510 |     # gcc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15511 |     library_names_spec='$libname.dll.a' | 
 | 15512 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 15513 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 15514 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
 | 15515 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 15516 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 15517 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 15518 |       chmod a+x \$dldir/$dlname~ | 
 | 15519 |       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
 | 15520 |         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
 | 15521 |       fi' | 
 | 15522 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 15523 |       dlpath=$dir/\$dldll~ | 
 | 15524 |        $RM \$dlpath' | 
 | 15525 |     shlibpath_overrides_runpath=yes | 
 | 15526 |  | 
 | 15527 |     case $host_os in | 
 | 15528 |     cygwin*) | 
 | 15529 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 15530 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15531 |  | 
 | 15532 |       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15533 |       ;; | 
 | 15534 |     mingw* | cegcc*) | 
 | 15535 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 15536 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15537 |       ;; | 
 | 15538 |     pw32*) | 
 | 15539 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 15540 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 15541 |       ;; | 
 | 15542 |     esac | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15543 |     dynamic_linker='Win32 ld.exe' | 
 | 15544 |     ;; | 
 | 15545 |  | 
 | 15546 |   *,cl*) | 
 | 15547 |     # Native MSVC | 
 | 15548 |     libname_spec='$name' | 
 | 15549 |     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 15550 |     library_names_spec='${libname}.dll.lib' | 
 | 15551 |  | 
 | 15552 |     case $build_os in | 
 | 15553 |     mingw*) | 
 | 15554 |       sys_lib_search_path_spec= | 
 | 15555 |       lt_save_ifs=$IFS | 
 | 15556 |       IFS=';' | 
 | 15557 |       for lt_path in $LIB | 
 | 15558 |       do | 
 | 15559 |         IFS=$lt_save_ifs | 
 | 15560 |         # Let DOS variable expansion print the short 8.3 style file name. | 
 | 15561 |         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | 
 | 15562 |         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | 
 | 15563 |       done | 
 | 15564 |       IFS=$lt_save_ifs | 
 | 15565 |       # Convert to MSYS style. | 
 | 15566 |       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | 
 | 15567 |       ;; | 
 | 15568 |     cygwin*) | 
 | 15569 |       # Convert to unix form, then to dos form, then back to unix form | 
 | 15570 |       # but this time dos style (no spaces!) so that the unix form looks | 
 | 15571 |       # like /cygdrive/c/PROGRA~1:/cygdr... | 
 | 15572 |       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | 
 | 15573 |       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | 
 | 15574 |       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
 | 15575 |       ;; | 
 | 15576 |     *) | 
 | 15577 |       sys_lib_search_path_spec="$LIB" | 
 | 15578 |       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | 
 | 15579 |         # It is most probably a Windows format PATH. | 
 | 15580 |         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 15581 |       else | 
 | 15582 |         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
 | 15583 |       fi | 
 | 15584 |       # FIXME: find the short name or the path components, as spaces are | 
 | 15585 |       # common. (e.g. "Program Files" -> "PROGRA~1") | 
 | 15586 |       ;; | 
 | 15587 |     esac | 
 | 15588 |  | 
 | 15589 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 15590 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 15591 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
 | 15592 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 15593 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 15594 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 15595 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 15596 |       dlpath=$dir/\$dldll~ | 
 | 15597 |        $RM \$dlpath' | 
 | 15598 |     shlibpath_overrides_runpath=yes | 
 | 15599 |     dynamic_linker='Win32 link.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15600 |     ;; | 
 | 15601 |  | 
 | 15602 |   *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15603 |     # Assume MSVC wrapper | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15604 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15605 |     dynamic_linker='Win32 ld.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15606 |     ;; | 
 | 15607 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15608 |   # FIXME: first we should search . and the directory the executable is in | 
 | 15609 |   shlibpath_var=PATH | 
 | 15610 |   ;; | 
 | 15611 |  | 
 | 15612 | darwin* | rhapsody*) | 
 | 15613 |   dynamic_linker="$host_os dyld" | 
 | 15614 |   version_type=darwin | 
 | 15615 |   need_lib_prefix=no | 
 | 15616 |   need_version=no | 
 | 15617 |   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 15618 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 15619 |   shlibpath_overrides_runpath=yes | 
 | 15620 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 15621 |   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
 | 15622 |  | 
 | 15623 |   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | 
 | 15624 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 15625 |   ;; | 
 | 15626 |  | 
 | 15627 | dgux*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15628 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15629 |   need_lib_prefix=no | 
 | 15630 |   need_version=no | 
 | 15631 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 15632 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15633 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15634 |   ;; | 
 | 15635 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15636 | freebsd* | dragonfly*) | 
 | 15637 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 15638 |   # versioning mechanism, adjust this. | 
 | 15639 |   if test -x /usr/bin/objformat; then | 
 | 15640 |     objformat=`/usr/bin/objformat` | 
 | 15641 |   else | 
 | 15642 |     case $host_os in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15643 |     freebsd[23].*) objformat=aout ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15644 |     *) objformat=elf ;; | 
 | 15645 |     esac | 
 | 15646 |   fi | 
 | 15647 |   version_type=freebsd-$objformat | 
 | 15648 |   case $version_type in | 
 | 15649 |     freebsd-elf*) | 
 | 15650 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 15651 |       need_version=no | 
 | 15652 |       need_lib_prefix=no | 
 | 15653 |       ;; | 
 | 15654 |     freebsd-*) | 
 | 15655 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 15656 |       need_version=yes | 
 | 15657 |       ;; | 
 | 15658 |   esac | 
 | 15659 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15660 |   case $host_os in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15661 |   freebsd2.*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15662 |     shlibpath_overrides_runpath=yes | 
 | 15663 |     ;; | 
 | 15664 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
 | 15665 |     shlibpath_overrides_runpath=yes | 
 | 15666 |     hardcode_into_libs=yes | 
 | 15667 |     ;; | 
 | 15668 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 15669 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
 | 15670 |     shlibpath_overrides_runpath=no | 
 | 15671 |     hardcode_into_libs=yes | 
 | 15672 |     ;; | 
 | 15673 |   *) # from 4.6 on, and DragonFly | 
 | 15674 |     shlibpath_overrides_runpath=yes | 
 | 15675 |     hardcode_into_libs=yes | 
 | 15676 |     ;; | 
 | 15677 |   esac | 
 | 15678 |   ;; | 
 | 15679 |  | 
 | 15680 | gnu*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15681 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15682 |   need_lib_prefix=no | 
 | 15683 |   need_version=no | 
 | 15684 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 15685 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15686 |   shlibpath_var=LD_LIBRARY_PATH | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15687 |   shlibpath_overrides_runpath=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15688 |   hardcode_into_libs=yes | 
 | 15689 |   ;; | 
 | 15690 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15691 | haiku*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15692 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15693 |   need_lib_prefix=no | 
 | 15694 |   need_version=no | 
 | 15695 |   dynamic_linker="$host_os runtime_loader" | 
 | 15696 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 15697 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15698 |   shlibpath_var=LIBRARY_PATH | 
 | 15699 |   shlibpath_overrides_runpath=yes | 
 | 15700 |   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
 | 15701 |   hardcode_into_libs=yes | 
 | 15702 |   ;; | 
 | 15703 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15704 | hpux9* | hpux10* | hpux11*) | 
 | 15705 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 15706 |   # link against other versions. | 
 | 15707 |   version_type=sunos | 
 | 15708 |   need_lib_prefix=no | 
 | 15709 |   need_version=no | 
 | 15710 |   case $host_cpu in | 
 | 15711 |   ia64*) | 
 | 15712 |     shrext_cmds='.so' | 
 | 15713 |     hardcode_into_libs=yes | 
 | 15714 |     dynamic_linker="$host_os dld.so" | 
 | 15715 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 15716 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 15717 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15718 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15719 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 15720 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 15721 |     else | 
 | 15722 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 15723 |     fi | 
 | 15724 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 15725 |     ;; | 
 | 15726 |   hppa*64*) | 
 | 15727 |     shrext_cmds='.sl' | 
 | 15728 |     hardcode_into_libs=yes | 
 | 15729 |     dynamic_linker="$host_os dld.sl" | 
 | 15730 |     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 15731 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 15732 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15733 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15734 |     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 15735 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 15736 |     ;; | 
 | 15737 |   *) | 
 | 15738 |     shrext_cmds='.sl' | 
 | 15739 |     dynamic_linker="$host_os dld.sl" | 
 | 15740 |     shlibpath_var=SHLIB_PATH | 
 | 15741 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 15742 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15743 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15744 |     ;; | 
 | 15745 |   esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15746 |   # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15747 |   postinstall_cmds='chmod 555 $lib' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15748 |   # or fails outright, so override atomically: | 
 | 15749 |   install_override_mode=555 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15750 |   ;; | 
 | 15751 |  | 
 | 15752 | interix[3-9]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15753 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15754 |   need_lib_prefix=no | 
 | 15755 |   need_version=no | 
 | 15756 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 15757 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15758 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 15759 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15760 |   shlibpath_overrides_runpath=no | 
 | 15761 |   hardcode_into_libs=yes | 
 | 15762 |   ;; | 
 | 15763 |  | 
 | 15764 | irix5* | irix6* | nonstopux*) | 
 | 15765 |   case $host_os in | 
 | 15766 |     nonstopux*) version_type=nonstopux ;; | 
 | 15767 |     *) | 
 | 15768 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15769 | 		version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15770 | 	else | 
 | 15771 | 		version_type=irix | 
 | 15772 | 	fi ;; | 
 | 15773 |   esac | 
 | 15774 |   need_lib_prefix=no | 
 | 15775 |   need_version=no | 
 | 15776 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15777 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 15778 |   case $host_os in | 
 | 15779 |   irix5* | nonstopux*) | 
 | 15780 |     libsuff= shlibsuff= | 
 | 15781 |     ;; | 
 | 15782 |   *) | 
 | 15783 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 15784 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 15785 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 15786 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 15787 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 15788 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 15789 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 15790 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 15791 |     esac | 
 | 15792 |     ;; | 
 | 15793 |   esac | 
 | 15794 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 15795 |   shlibpath_overrides_runpath=no | 
 | 15796 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 15797 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 15798 |   hardcode_into_libs=yes | 
 | 15799 |   ;; | 
 | 15800 |  | 
 | 15801 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 15802 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 15803 |   dynamic_linker=no | 
 | 15804 |   ;; | 
 | 15805 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15806 | # This must be glibc/ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15807 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15808 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15809 |   need_lib_prefix=no | 
 | 15810 |   need_version=no | 
 | 15811 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15812 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15813 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 15814 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15815 |   shlibpath_overrides_runpath=no | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15816 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15817 |   # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15818 |   if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15819 |   $as_echo_n "(cached) " >&6 | 
 | 15820 | else | 
 | 15821 |   lt_cv_shlibpath_overrides_runpath=no | 
 | 15822 |     save_LDFLAGS=$LDFLAGS | 
 | 15823 |     save_libdir=$libdir | 
 | 15824 |     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | 
 | 15825 | 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | 
 | 15826 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15827 | /* end confdefs.h.  */ | 
 | 15828 |  | 
 | 15829 | int | 
 | 15830 | main () | 
 | 15831 | { | 
 | 15832 |  | 
 | 15833 |   ; | 
 | 15834 |   return 0; | 
 | 15835 | } | 
 | 15836 | _ACEOF | 
 | 15837 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 15838 |   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15839 |   lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15840 | fi | 
 | 15841 | fi | 
 | 15842 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 15843 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15844 |     LDFLAGS=$save_LDFLAGS | 
 | 15845 |     libdir=$save_libdir | 
 | 15846 |  | 
 | 15847 | fi | 
 | 15848 |  | 
 | 15849 |   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15850 |  | 
 | 15851 |   # This implies no fast_install, which is unacceptable. | 
 | 15852 |   # Some rework will be needed to allow for fast_install | 
 | 15853 |   # before this can be enabled. | 
 | 15854 |   hardcode_into_libs=yes | 
 | 15855 |  | 
 | 15856 |   # Add ABI-specific directories to the system library path. | 
 | 15857 |   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
 | 15858 |  | 
 | 15859 |   # Append ld.so.conf contents to the search path | 
 | 15860 |   if test -f /etc/ld.so.conf; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15861 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15862 |     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15863 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15864 |   fi | 
 | 15865 |  | 
 | 15866 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 15867 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 15868 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 15869 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 15870 |   # people can always --disable-shared, the test was removed, and we | 
 | 15871 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 15872 |   dynamic_linker='GNU/Linux ld.so' | 
 | 15873 |   ;; | 
 | 15874 |  | 
 | 15875 | netbsd*) | 
 | 15876 |   version_type=sunos | 
 | 15877 |   need_lib_prefix=no | 
 | 15878 |   need_version=no | 
 | 15879 |   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
 | 15880 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 15881 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 15882 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 15883 |   else | 
 | 15884 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 15885 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15886 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 15887 |   fi | 
 | 15888 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15889 |   shlibpath_overrides_runpath=yes | 
 | 15890 |   hardcode_into_libs=yes | 
 | 15891 |   ;; | 
 | 15892 |  | 
 | 15893 | newsos6) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15894 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15895 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15896 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15897 |   shlibpath_overrides_runpath=yes | 
 | 15898 |   ;; | 
 | 15899 |  | 
 | 15900 | *nto* | *qnx*) | 
 | 15901 |   version_type=qnx | 
 | 15902 |   need_lib_prefix=no | 
 | 15903 |   need_version=no | 
 | 15904 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15905 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15906 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15907 |   shlibpath_overrides_runpath=no | 
 | 15908 |   hardcode_into_libs=yes | 
 | 15909 |   dynamic_linker='ldqnx.so' | 
 | 15910 |   ;; | 
 | 15911 |  | 
 | 15912 | openbsd*) | 
 | 15913 |   version_type=sunos | 
 | 15914 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
 | 15915 |   need_lib_prefix=no | 
 | 15916 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 15917 |   case $host_os in | 
 | 15918 |     openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
 | 15919 |     *)				need_version=no  ;; | 
 | 15920 |   esac | 
 | 15921 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 15922 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 15923 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15924 |   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 15925 |     case $host_os in | 
 | 15926 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 15927 | 	shlibpath_overrides_runpath=no | 
 | 15928 | 	;; | 
 | 15929 |       *) | 
 | 15930 | 	shlibpath_overrides_runpath=yes | 
 | 15931 | 	;; | 
 | 15932 |       esac | 
 | 15933 |   else | 
 | 15934 |     shlibpath_overrides_runpath=yes | 
 | 15935 |   fi | 
 | 15936 |   ;; | 
 | 15937 |  | 
 | 15938 | os2*) | 
 | 15939 |   libname_spec='$name' | 
 | 15940 |   shrext_cmds=".dll" | 
 | 15941 |   need_lib_prefix=no | 
 | 15942 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 15943 |   dynamic_linker='OS/2 ld.exe' | 
 | 15944 |   shlibpath_var=LIBPATH | 
 | 15945 |   ;; | 
 | 15946 |  | 
 | 15947 | osf3* | osf4* | osf5*) | 
 | 15948 |   version_type=osf | 
 | 15949 |   need_lib_prefix=no | 
 | 15950 |   need_version=no | 
 | 15951 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15952 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15953 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15954 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 15955 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 15956 |   ;; | 
 | 15957 |  | 
 | 15958 | rdos*) | 
 | 15959 |   dynamic_linker=no | 
 | 15960 |   ;; | 
 | 15961 |  | 
 | 15962 | solaris*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15963 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15964 |   need_lib_prefix=no | 
 | 15965 |   need_version=no | 
 | 15966 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15967 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15968 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15969 |   shlibpath_overrides_runpath=yes | 
 | 15970 |   hardcode_into_libs=yes | 
 | 15971 |   # ldd complains unless libraries are executable | 
 | 15972 |   postinstall_cmds='chmod +x $lib' | 
 | 15973 |   ;; | 
 | 15974 |  | 
 | 15975 | sunos4*) | 
 | 15976 |   version_type=sunos | 
 | 15977 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 15978 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 15979 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15980 |   shlibpath_overrides_runpath=yes | 
 | 15981 |   if test "$with_gnu_ld" = yes; then | 
 | 15982 |     need_lib_prefix=no | 
 | 15983 |   fi | 
 | 15984 |   need_version=yes | 
 | 15985 |   ;; | 
 | 15986 |  | 
 | 15987 | sysv4 | sysv4.3*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15988 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15989 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 15990 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 15991 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 15992 |   case $host_vendor in | 
 | 15993 |     sni) | 
 | 15994 |       shlibpath_overrides_runpath=no | 
 | 15995 |       need_lib_prefix=no | 
 | 15996 |       runpath_var=LD_RUN_PATH | 
 | 15997 |       ;; | 
 | 15998 |     siemens) | 
 | 15999 |       need_lib_prefix=no | 
 | 16000 |       ;; | 
 | 16001 |     motorola) | 
 | 16002 |       need_lib_prefix=no | 
 | 16003 |       need_version=no | 
 | 16004 |       shlibpath_overrides_runpath=no | 
 | 16005 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 16006 |       ;; | 
 | 16007 |   esac | 
 | 16008 |   ;; | 
 | 16009 |  | 
 | 16010 | sysv4*MP*) | 
 | 16011 |   if test -d /usr/nec ;then | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16012 |     version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16013 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 16014 |     soname_spec='$libname${shared_ext}.$major' | 
 | 16015 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 16016 |   fi | 
 | 16017 |   ;; | 
 | 16018 |  | 
 | 16019 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 16020 |   version_type=freebsd-elf | 
 | 16021 |   need_lib_prefix=no | 
 | 16022 |   need_version=no | 
 | 16023 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 16024 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16025 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16026 |   shlibpath_overrides_runpath=yes | 
 | 16027 |   hardcode_into_libs=yes | 
 | 16028 |   if test "$with_gnu_ld" = yes; then | 
 | 16029 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 16030 |   else | 
 | 16031 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 16032 |     case $host_os in | 
 | 16033 |       sco3.2v5*) | 
 | 16034 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 16035 | 	;; | 
 | 16036 |     esac | 
 | 16037 |   fi | 
 | 16038 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 16039 |   ;; | 
 | 16040 |  | 
 | 16041 | tpf*) | 
 | 16042 |   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16043 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16044 |   need_lib_prefix=no | 
 | 16045 |   need_version=no | 
 | 16046 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16047 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16048 |   shlibpath_overrides_runpath=no | 
 | 16049 |   hardcode_into_libs=yes | 
 | 16050 |   ;; | 
 | 16051 |  | 
 | 16052 | uts4*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16053 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16054 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 16055 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 16056 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 16057 |   ;; | 
 | 16058 |  | 
 | 16059 | *) | 
 | 16060 |   dynamic_linker=no | 
 | 16061 |   ;; | 
 | 16062 | esac | 
 | 16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
 | 16064 | $as_echo "$dynamic_linker" >&6; } | 
 | 16065 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 16066 |  | 
 | 16067 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 16068 | if test "$GCC" = yes; then | 
 | 16069 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 16070 | fi | 
 | 16071 |  | 
 | 16072 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
 | 16073 |   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
 | 16074 | fi | 
 | 16075 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
 | 16076 |   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
 | 16077 | fi | 
 | 16078 |  | 
 | 16079 |  | 
 | 16080 |  | 
 | 16081 |  | 
 | 16082 |  | 
 | 16083 |  | 
 | 16084 |  | 
 | 16085 |  | 
 | 16086 |  | 
 | 16087 |  | 
 | 16088 |  | 
 | 16089 |  | 
 | 16090 |  | 
 | 16091 |  | 
 | 16092 |  | 
 | 16093 |  | 
 | 16094 |  | 
 | 16095 |  | 
 | 16096 |  | 
 | 16097 |  | 
 | 16098 |  | 
 | 16099 |  | 
 | 16100 |  | 
 | 16101 |  | 
 | 16102 |  | 
 | 16103 |  | 
 | 16104 |  | 
 | 16105 |  | 
 | 16106 |  | 
 | 16107 |  | 
 | 16108 |  | 
 | 16109 |  | 
 | 16110 |  | 
 | 16111 |  | 
 | 16112 |  | 
 | 16113 |  | 
 | 16114 |  | 
 | 16115 |  | 
 | 16116 |  | 
 | 16117 |  | 
 | 16118 |  | 
 | 16119 |  | 
 | 16120 |  | 
 | 16121 |  | 
 | 16122 |  | 
 | 16123 |  | 
 | 16124 |  | 
 | 16125 |  | 
 | 16126 |  | 
 | 16127 |  | 
 | 16128 |  | 
 | 16129 |  | 
 | 16130 |  | 
 | 16131 |  | 
 | 16132 |  | 
 | 16133 |  | 
 | 16134 |  | 
 | 16135 |  | 
 | 16136 |  | 
 | 16137 |  | 
 | 16138 |  | 
 | 16139 |  | 
 | 16140 |  | 
 | 16141 |  | 
 | 16142 |  | 
 | 16143 |  | 
 | 16144 |  | 
 | 16145 |  | 
 | 16146 |  | 
 | 16147 |  | 
 | 16148 |  | 
 | 16149 |  | 
 | 16150 |  | 
 | 16151 |  | 
 | 16152 |  | 
 | 16153 |  | 
 | 16154 |  | 
 | 16155 |  | 
 | 16156 |  | 
 | 16157 |  | 
 | 16158 |  | 
 | 16159 |  | 
 | 16160 |  | 
 | 16161 |  | 
 | 16162 |  | 
 | 16163 |  | 
 | 16164 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16165 |  | 
 | 16166 |  | 
 | 16167 |  | 
 | 16168 |  | 
 | 16169 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16170 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
 | 16171 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
 | 16172 | hardcode_action= | 
 | 16173 | if test -n "$hardcode_libdir_flag_spec" || | 
 | 16174 |    test -n "$runpath_var" || | 
 | 16175 |    test "X$hardcode_automatic" = "Xyes" ; then | 
 | 16176 |  | 
 | 16177 |   # We can hardcode non-existent directories. | 
 | 16178 |   if test "$hardcode_direct" != no && | 
 | 16179 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 16180 |      # have to relink, otherwise we might link with an installed library | 
 | 16181 |      # when we should be linking with a yet-to-be-installed one | 
 | 16182 |      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | 
 | 16183 |      test "$hardcode_minus_L" != no; then | 
 | 16184 |     # Linking always hardcodes the temporary library directory. | 
 | 16185 |     hardcode_action=relink | 
 | 16186 |   else | 
 | 16187 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 16188 |     hardcode_action=immediate | 
 | 16189 |   fi | 
 | 16190 | else | 
 | 16191 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 16192 |   # directories. | 
 | 16193 |   hardcode_action=unsupported | 
 | 16194 | fi | 
 | 16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | 
 | 16196 | $as_echo "$hardcode_action" >&6; } | 
 | 16197 |  | 
 | 16198 | if test "$hardcode_action" = relink || | 
 | 16199 |    test "$inherit_rpath" = yes; then | 
 | 16200 |   # Fast installation is not supported | 
 | 16201 |   enable_fast_install=no | 
 | 16202 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 16203 |      test "$enable_shared" = no; then | 
 | 16204 |   # Fast installation is not necessary | 
 | 16205 |   enable_fast_install=needless | 
 | 16206 | fi | 
 | 16207 |  | 
 | 16208 |  | 
 | 16209 |  | 
 | 16210 |  | 
 | 16211 |  | 
 | 16212 |  | 
 | 16213 |   if test "x$enable_dlopen" != xyes; then | 
 | 16214 |   enable_dlopen=unknown | 
 | 16215 |   enable_dlopen_self=unknown | 
 | 16216 |   enable_dlopen_self_static=unknown | 
 | 16217 | else | 
 | 16218 |   lt_cv_dlopen=no | 
 | 16219 |   lt_cv_dlopen_libs= | 
 | 16220 |  | 
 | 16221 |   case $host_os in | 
 | 16222 |   beos*) | 
 | 16223 |     lt_cv_dlopen="load_add_on" | 
 | 16224 |     lt_cv_dlopen_libs= | 
 | 16225 |     lt_cv_dlopen_self=yes | 
 | 16226 |     ;; | 
 | 16227 |  | 
 | 16228 |   mingw* | pw32* | cegcc*) | 
 | 16229 |     lt_cv_dlopen="LoadLibrary" | 
 | 16230 |     lt_cv_dlopen_libs= | 
 | 16231 |     ;; | 
 | 16232 |  | 
 | 16233 |   cygwin*) | 
 | 16234 |     lt_cv_dlopen="dlopen" | 
 | 16235 |     lt_cv_dlopen_libs= | 
 | 16236 |     ;; | 
 | 16237 |  | 
 | 16238 |   darwin*) | 
 | 16239 |   # if libdl is installed we need to link against it | 
 | 16240 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 16241 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16242 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16243 |   $as_echo_n "(cached) " >&6 | 
 | 16244 | else | 
 | 16245 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16246 | LIBS="-ldl  $LIBS" | 
 | 16247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16248 | /* end confdefs.h.  */ | 
 | 16249 |  | 
 | 16250 | /* Override any GCC internal prototype to avoid an error. | 
 | 16251 |    Use char because int might match the return type of a GCC | 
 | 16252 |    builtin and then its argument prototype would still apply.  */ | 
 | 16253 | #ifdef __cplusplus | 
 | 16254 | extern "C" | 
 | 16255 | #endif | 
 | 16256 | char dlopen (); | 
 | 16257 | int | 
 | 16258 | main () | 
 | 16259 | { | 
 | 16260 | return dlopen (); | 
 | 16261 |   ; | 
 | 16262 |   return 0; | 
 | 16263 | } | 
 | 16264 | _ACEOF | 
 | 16265 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16266 |   ac_cv_lib_dl_dlopen=yes | 
 | 16267 | else | 
 | 16268 |   ac_cv_lib_dl_dlopen=no | 
 | 16269 | fi | 
 | 16270 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16271 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16272 | LIBS=$ac_check_lib_save_LIBS | 
 | 16273 | fi | 
 | 16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 16275 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16276 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16277 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 16278 | else | 
 | 16279 |  | 
 | 16280 |     lt_cv_dlopen="dyld" | 
 | 16281 |     lt_cv_dlopen_libs= | 
 | 16282 |     lt_cv_dlopen_self=yes | 
 | 16283 |  | 
 | 16284 | fi | 
 | 16285 |  | 
 | 16286 |     ;; | 
 | 16287 |  | 
 | 16288 |   *) | 
 | 16289 |     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16290 | if test "x$ac_cv_func_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16291 |   lt_cv_dlopen="shl_load" | 
 | 16292 | else | 
 | 16293 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 16294 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16295 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16296 |   $as_echo_n "(cached) " >&6 | 
 | 16297 | else | 
 | 16298 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16299 | LIBS="-ldld  $LIBS" | 
 | 16300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16301 | /* end confdefs.h.  */ | 
 | 16302 |  | 
 | 16303 | /* Override any GCC internal prototype to avoid an error. | 
 | 16304 |    Use char because int might match the return type of a GCC | 
 | 16305 |    builtin and then its argument prototype would still apply.  */ | 
 | 16306 | #ifdef __cplusplus | 
 | 16307 | extern "C" | 
 | 16308 | #endif | 
 | 16309 | char shl_load (); | 
 | 16310 | int | 
 | 16311 | main () | 
 | 16312 | { | 
 | 16313 | return shl_load (); | 
 | 16314 |   ; | 
 | 16315 |   return 0; | 
 | 16316 | } | 
 | 16317 | _ACEOF | 
 | 16318 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16319 |   ac_cv_lib_dld_shl_load=yes | 
 | 16320 | else | 
 | 16321 |   ac_cv_lib_dld_shl_load=no | 
 | 16322 | fi | 
 | 16323 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16324 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16325 | LIBS=$ac_check_lib_save_LIBS | 
 | 16326 | fi | 
 | 16327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 16328 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16329 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16330 |   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | 
 | 16331 | else | 
 | 16332 |   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16333 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16334 |   lt_cv_dlopen="dlopen" | 
 | 16335 | else | 
 | 16336 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
 | 16337 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16338 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16339 |   $as_echo_n "(cached) " >&6 | 
 | 16340 | else | 
 | 16341 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16342 | LIBS="-ldl  $LIBS" | 
 | 16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16344 | /* end confdefs.h.  */ | 
 | 16345 |  | 
 | 16346 | /* Override any GCC internal prototype to avoid an error. | 
 | 16347 |    Use char because int might match the return type of a GCC | 
 | 16348 |    builtin and then its argument prototype would still apply.  */ | 
 | 16349 | #ifdef __cplusplus | 
 | 16350 | extern "C" | 
 | 16351 | #endif | 
 | 16352 | char dlopen (); | 
 | 16353 | int | 
 | 16354 | main () | 
 | 16355 | { | 
 | 16356 | return dlopen (); | 
 | 16357 |   ; | 
 | 16358 |   return 0; | 
 | 16359 | } | 
 | 16360 | _ACEOF | 
 | 16361 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16362 |   ac_cv_lib_dl_dlopen=yes | 
 | 16363 | else | 
 | 16364 |   ac_cv_lib_dl_dlopen=no | 
 | 16365 | fi | 
 | 16366 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16367 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16368 | LIBS=$ac_check_lib_save_LIBS | 
 | 16369 | fi | 
 | 16370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
 | 16371 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16372 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16373 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
 | 16374 | else | 
 | 16375 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
 | 16376 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16377 | if ${ac_cv_lib_svld_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16378 |   $as_echo_n "(cached) " >&6 | 
 | 16379 | else | 
 | 16380 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16381 | LIBS="-lsvld  $LIBS" | 
 | 16382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16383 | /* end confdefs.h.  */ | 
 | 16384 |  | 
 | 16385 | /* Override any GCC internal prototype to avoid an error. | 
 | 16386 |    Use char because int might match the return type of a GCC | 
 | 16387 |    builtin and then its argument prototype would still apply.  */ | 
 | 16388 | #ifdef __cplusplus | 
 | 16389 | extern "C" | 
 | 16390 | #endif | 
 | 16391 | char dlopen (); | 
 | 16392 | int | 
 | 16393 | main () | 
 | 16394 | { | 
 | 16395 | return dlopen (); | 
 | 16396 |   ; | 
 | 16397 |   return 0; | 
 | 16398 | } | 
 | 16399 | _ACEOF | 
 | 16400 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16401 |   ac_cv_lib_svld_dlopen=yes | 
 | 16402 | else | 
 | 16403 |   ac_cv_lib_svld_dlopen=no | 
 | 16404 | fi | 
 | 16405 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16406 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16407 | LIBS=$ac_check_lib_save_LIBS | 
 | 16408 | fi | 
 | 16409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 16410 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16411 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16412 |   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
 | 16413 | else | 
 | 16414 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
 | 16415 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16416 | if ${ac_cv_lib_dld_dld_link+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16417 |   $as_echo_n "(cached) " >&6 | 
 | 16418 | else | 
 | 16419 |   ac_check_lib_save_LIBS=$LIBS | 
 | 16420 | LIBS="-ldld  $LIBS" | 
 | 16421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16422 | /* end confdefs.h.  */ | 
 | 16423 |  | 
 | 16424 | /* Override any GCC internal prototype to avoid an error. | 
 | 16425 |    Use char because int might match the return type of a GCC | 
 | 16426 |    builtin and then its argument prototype would still apply.  */ | 
 | 16427 | #ifdef __cplusplus | 
 | 16428 | extern "C" | 
 | 16429 | #endif | 
 | 16430 | char dld_link (); | 
 | 16431 | int | 
 | 16432 | main () | 
 | 16433 | { | 
 | 16434 | return dld_link (); | 
 | 16435 |   ; | 
 | 16436 |   return 0; | 
 | 16437 | } | 
 | 16438 | _ACEOF | 
 | 16439 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 16440 |   ac_cv_lib_dld_dld_link=yes | 
 | 16441 | else | 
 | 16442 |   ac_cv_lib_dld_dld_link=no | 
 | 16443 | fi | 
 | 16444 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 16445 |     conftest$ac_exeext conftest.$ac_ext | 
 | 16446 | LIBS=$ac_check_lib_save_LIBS | 
 | 16447 | fi | 
 | 16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 16449 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16450 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16451 |   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | 
 | 16452 | fi | 
 | 16453 |  | 
 | 16454 |  | 
 | 16455 | fi | 
 | 16456 |  | 
 | 16457 |  | 
 | 16458 | fi | 
 | 16459 |  | 
 | 16460 |  | 
 | 16461 | fi | 
 | 16462 |  | 
 | 16463 |  | 
 | 16464 | fi | 
 | 16465 |  | 
 | 16466 |  | 
 | 16467 | fi | 
 | 16468 |  | 
 | 16469 |     ;; | 
 | 16470 |   esac | 
 | 16471 |  | 
 | 16472 |   if test "x$lt_cv_dlopen" != xno; then | 
 | 16473 |     enable_dlopen=yes | 
 | 16474 |   else | 
 | 16475 |     enable_dlopen=no | 
 | 16476 |   fi | 
 | 16477 |  | 
 | 16478 |   case $lt_cv_dlopen in | 
 | 16479 |   dlopen) | 
 | 16480 |     save_CPPFLAGS="$CPPFLAGS" | 
 | 16481 |     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
 | 16482 |  | 
 | 16483 |     save_LDFLAGS="$LDFLAGS" | 
 | 16484 |     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
 | 16485 |  | 
 | 16486 |     save_LIBS="$LIBS" | 
 | 16487 |     LIBS="$lt_cv_dlopen_libs $LIBS" | 
 | 16488 |  | 
 | 16489 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | 
 | 16490 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16491 | if ${lt_cv_dlopen_self+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16492 |   $as_echo_n "(cached) " >&6 | 
 | 16493 | else | 
 | 16494 |   	  if test "$cross_compiling" = yes; then : | 
 | 16495 |   lt_cv_dlopen_self=cross | 
 | 16496 | else | 
 | 16497 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 16498 |   lt_status=$lt_dlunknown | 
 | 16499 |   cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16500 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16501 | #include "confdefs.h" | 
 | 16502 |  | 
 | 16503 | #if HAVE_DLFCN_H | 
 | 16504 | #include <dlfcn.h> | 
 | 16505 | #endif | 
 | 16506 |  | 
 | 16507 | #include <stdio.h> | 
 | 16508 |  | 
 | 16509 | #ifdef RTLD_GLOBAL | 
 | 16510 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 16511 | #else | 
 | 16512 | #  ifdef DL_GLOBAL | 
 | 16513 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 16514 | #  else | 
 | 16515 | #    define LT_DLGLOBAL		0 | 
 | 16516 | #  endif | 
 | 16517 | #endif | 
 | 16518 |  | 
 | 16519 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 16520 |    find out it does not work in some platform. */ | 
 | 16521 | #ifndef LT_DLLAZY_OR_NOW | 
 | 16522 | #  ifdef RTLD_LAZY | 
 | 16523 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 16524 | #  else | 
 | 16525 | #    ifdef DL_LAZY | 
 | 16526 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 16527 | #    else | 
 | 16528 | #      ifdef RTLD_NOW | 
 | 16529 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 16530 | #      else | 
 | 16531 | #        ifdef DL_NOW | 
 | 16532 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 16533 | #        else | 
 | 16534 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 16535 | #        endif | 
 | 16536 | #      endif | 
 | 16537 | #    endif | 
 | 16538 | #  endif | 
 | 16539 | #endif | 
 | 16540 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16541 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
 | 16542 |    correspondingly for the symbols needed.  */ | 
 | 16543 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16544 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16545 | #endif | 
 | 16546 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16547 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16548 | int main () | 
 | 16549 | { | 
 | 16550 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 16551 |   int status = $lt_dlunknown; | 
 | 16552 |  | 
 | 16553 |   if (self) | 
 | 16554 |     { | 
 | 16555 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16556 |       else | 
 | 16557 |         { | 
 | 16558 | 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
 | 16559 |           else puts (dlerror ()); | 
 | 16560 | 	} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16561 |       /* dlclose (self); */ | 
 | 16562 |     } | 
 | 16563 |   else | 
 | 16564 |     puts (dlerror ()); | 
 | 16565 |  | 
 | 16566 |   return status; | 
 | 16567 | } | 
 | 16568 | _LT_EOF | 
 | 16569 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
 | 16570 |   (eval $ac_link) 2>&5 | 
 | 16571 |   ac_status=$? | 
 | 16572 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 16573 |   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 16574 |     (./conftest; exit; ) >&5 2>/dev/null | 
 | 16575 |     lt_status=$? | 
 | 16576 |     case x$lt_status in | 
 | 16577 |       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
 | 16578 |       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
 | 16579 |       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | 
 | 16580 |     esac | 
 | 16581 |   else : | 
 | 16582 |     # compilation failed | 
 | 16583 |     lt_cv_dlopen_self=no | 
 | 16584 |   fi | 
 | 16585 | fi | 
 | 16586 | rm -fr conftest* | 
 | 16587 |  | 
 | 16588 |  | 
 | 16589 | fi | 
 | 16590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | 
 | 16591 | $as_echo "$lt_cv_dlopen_self" >&6; } | 
 | 16592 |  | 
 | 16593 |     if test "x$lt_cv_dlopen_self" = xyes; then | 
 | 16594 |       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 
 | 16595 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | 
 | 16596 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16597 | if ${lt_cv_dlopen_self_static+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16598 |   $as_echo_n "(cached) " >&6 | 
 | 16599 | else | 
 | 16600 |   	  if test "$cross_compiling" = yes; then : | 
 | 16601 |   lt_cv_dlopen_self_static=cross | 
 | 16602 | else | 
 | 16603 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 16604 |   lt_status=$lt_dlunknown | 
 | 16605 |   cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16606 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16607 | #include "confdefs.h" | 
 | 16608 |  | 
 | 16609 | #if HAVE_DLFCN_H | 
 | 16610 | #include <dlfcn.h> | 
 | 16611 | #endif | 
 | 16612 |  | 
 | 16613 | #include <stdio.h> | 
 | 16614 |  | 
 | 16615 | #ifdef RTLD_GLOBAL | 
 | 16616 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 16617 | #else | 
 | 16618 | #  ifdef DL_GLOBAL | 
 | 16619 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 16620 | #  else | 
 | 16621 | #    define LT_DLGLOBAL		0 | 
 | 16622 | #  endif | 
 | 16623 | #endif | 
 | 16624 |  | 
 | 16625 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 16626 |    find out it does not work in some platform. */ | 
 | 16627 | #ifndef LT_DLLAZY_OR_NOW | 
 | 16628 | #  ifdef RTLD_LAZY | 
 | 16629 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 16630 | #  else | 
 | 16631 | #    ifdef DL_LAZY | 
 | 16632 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 16633 | #    else | 
 | 16634 | #      ifdef RTLD_NOW | 
 | 16635 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 16636 | #      else | 
 | 16637 | #        ifdef DL_NOW | 
 | 16638 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 16639 | #        else | 
 | 16640 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 16641 | #        endif | 
 | 16642 | #      endif | 
 | 16643 | #    endif | 
 | 16644 | #  endif | 
 | 16645 | #endif | 
 | 16646 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16647 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
 | 16648 |    correspondingly for the symbols needed.  */ | 
 | 16649 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16650 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16651 | #endif | 
 | 16652 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16653 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16654 | int main () | 
 | 16655 | { | 
 | 16656 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 16657 |   int status = $lt_dlunknown; | 
 | 16658 |  | 
 | 16659 |   if (self) | 
 | 16660 |     { | 
 | 16661 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16662 |       else | 
 | 16663 |         { | 
 | 16664 | 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
 | 16665 |           else puts (dlerror ()); | 
 | 16666 | 	} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16667 |       /* dlclose (self); */ | 
 | 16668 |     } | 
 | 16669 |   else | 
 | 16670 |     puts (dlerror ()); | 
 | 16671 |  | 
 | 16672 |   return status; | 
 | 16673 | } | 
 | 16674 | _LT_EOF | 
 | 16675 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
 | 16676 |   (eval $ac_link) 2>&5 | 
 | 16677 |   ac_status=$? | 
 | 16678 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 16679 |   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 16680 |     (./conftest; exit; ) >&5 2>/dev/null | 
 | 16681 |     lt_status=$? | 
 | 16682 |     case x$lt_status in | 
 | 16683 |       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 16684 |       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
 | 16685 |       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | 
 | 16686 |     esac | 
 | 16687 |   else : | 
 | 16688 |     # compilation failed | 
 | 16689 |     lt_cv_dlopen_self_static=no | 
 | 16690 |   fi | 
 | 16691 | fi | 
 | 16692 | rm -fr conftest* | 
 | 16693 |  | 
 | 16694 |  | 
 | 16695 | fi | 
 | 16696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | 
 | 16697 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | 
 | 16698 |     fi | 
 | 16699 |  | 
 | 16700 |     CPPFLAGS="$save_CPPFLAGS" | 
 | 16701 |     LDFLAGS="$save_LDFLAGS" | 
 | 16702 |     LIBS="$save_LIBS" | 
 | 16703 |     ;; | 
 | 16704 |   esac | 
 | 16705 |  | 
 | 16706 |   case $lt_cv_dlopen_self in | 
 | 16707 |   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
 | 16708 |   *) enable_dlopen_self=unknown ;; | 
 | 16709 |   esac | 
 | 16710 |  | 
 | 16711 |   case $lt_cv_dlopen_self_static in | 
 | 16712 |   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
 | 16713 |   *) enable_dlopen_self_static=unknown ;; | 
 | 16714 |   esac | 
 | 16715 | fi | 
 | 16716 |  | 
 | 16717 |  | 
 | 16718 |  | 
 | 16719 |  | 
 | 16720 |  | 
 | 16721 |  | 
 | 16722 |  | 
 | 16723 |  | 
 | 16724 |  | 
 | 16725 |  | 
 | 16726 |  | 
 | 16727 |  | 
 | 16728 |  | 
 | 16729 |  | 
 | 16730 |  | 
 | 16731 |  | 
 | 16732 |  | 
 | 16733 | striplib= | 
 | 16734 | old_striplib= | 
 | 16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | 
 | 16736 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | 
 | 16737 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | 
 | 16738 |   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
 | 16739 |   test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
 | 16740 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16741 | $as_echo "yes" >&6; } | 
 | 16742 | else | 
 | 16743 | # FIXME - insert some real tests, host_os isn't really good enough | 
 | 16744 |   case $host_os in | 
 | 16745 |   darwin*) | 
 | 16746 |     if test -n "$STRIP" ; then | 
 | 16747 |       striplib="$STRIP -x" | 
 | 16748 |       old_striplib="$STRIP -S" | 
 | 16749 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 16750 | $as_echo "yes" >&6; } | 
 | 16751 |     else | 
 | 16752 |       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16753 | $as_echo "no" >&6; } | 
 | 16754 |     fi | 
 | 16755 |     ;; | 
 | 16756 |   *) | 
 | 16757 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 16758 | $as_echo "no" >&6; } | 
 | 16759 |     ;; | 
 | 16760 |   esac | 
 | 16761 | fi | 
 | 16762 |  | 
 | 16763 |  | 
 | 16764 |  | 
 | 16765 |  | 
 | 16766 |  | 
 | 16767 |  | 
 | 16768 |  | 
 | 16769 |  | 
 | 16770 |  | 
 | 16771 |  | 
 | 16772 |  | 
 | 16773 |  | 
 | 16774 |   # Report which library types will actually be built | 
 | 16775 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | 
 | 16776 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | 
 | 16777 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | 
 | 16778 | $as_echo "$can_build_shared" >&6; } | 
 | 16779 |  | 
 | 16780 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | 
 | 16781 | $as_echo_n "checking whether to build shared libraries... " >&6; } | 
 | 16782 |   test "$can_build_shared" = "no" && enable_shared=no | 
 | 16783 |  | 
 | 16784 |   # On AIX, shared libraries and static libraries use the same namespace, and | 
 | 16785 |   # are all built from PIC. | 
 | 16786 |   case $host_os in | 
 | 16787 |   aix3*) | 
 | 16788 |     test "$enable_shared" = yes && enable_static=no | 
 | 16789 |     if test -n "$RANLIB"; then | 
 | 16790 |       archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
 | 16791 |       postinstall_cmds='$RANLIB $lib' | 
 | 16792 |     fi | 
 | 16793 |     ;; | 
 | 16794 |  | 
 | 16795 |   aix[4-9]*) | 
 | 16796 |     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
 | 16797 |       test "$enable_shared" = yes && enable_static=no | 
 | 16798 |     fi | 
 | 16799 |     ;; | 
 | 16800 |   esac | 
 | 16801 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
 | 16802 | $as_echo "$enable_shared" >&6; } | 
 | 16803 |  | 
 | 16804 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | 
 | 16805 | $as_echo_n "checking whether to build static libraries... " >&6; } | 
 | 16806 |   # Make sure either enable_shared or enable_static is yes. | 
 | 16807 |   test "$enable_shared" = yes || enable_static=yes | 
 | 16808 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | 
 | 16809 | $as_echo "$enable_static" >&6; } | 
 | 16810 |  | 
 | 16811 |  | 
 | 16812 |  | 
 | 16813 |  | 
 | 16814 | fi | 
 | 16815 | ac_ext=c | 
 | 16816 | ac_cpp='$CPP $CPPFLAGS' | 
 | 16817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 16818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 16819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 16820 |  | 
 | 16821 | CC="$lt_save_CC" | 
 | 16822 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16823 |       if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
 | 16824 |     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
 | 16825 |     (test "X$CXX" != "Xg++"))) ; then | 
 | 16826 |   ac_ext=cpp | 
 | 16827 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 16828 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 16829 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 16830 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | 
 | 16832 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | 
 | 16833 | if test -z "$CXXCPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16834 |   if ${ac_cv_prog_CXXCPP+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16835 |   $as_echo_n "(cached) " >&6 | 
 | 16836 | else | 
 | 16837 |       # Double quotes because CXXCPP needs to be expanded | 
 | 16838 |     for CXXCPP in "$CXX -E" "/lib/cpp" | 
 | 16839 |     do | 
 | 16840 |       ac_preproc_ok=false | 
 | 16841 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 16842 | do | 
 | 16843 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 16844 |   # with a fresh cross-compiler works. | 
 | 16845 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 16846 |   # <limits.h> exists even on freestanding compilers. | 
 | 16847 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 16848 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 16849 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16850 | /* end confdefs.h.  */ | 
 | 16851 | #ifdef __STDC__ | 
 | 16852 | # include <limits.h> | 
 | 16853 | #else | 
 | 16854 | # include <assert.h> | 
 | 16855 | #endif | 
 | 16856 | 		     Syntax error | 
 | 16857 | _ACEOF | 
 | 16858 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
 | 16859 |  | 
 | 16860 | else | 
 | 16861 |   # Broken: fails on valid input. | 
 | 16862 | continue | 
 | 16863 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16864 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16865 |  | 
 | 16866 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 16867 |   # can be detected and how. | 
 | 16868 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16869 | /* end confdefs.h.  */ | 
 | 16870 | #include <ac_nonexistent.h> | 
 | 16871 | _ACEOF | 
 | 16872 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
 | 16873 |   # Broken: success on invalid input. | 
 | 16874 | continue | 
 | 16875 | else | 
 | 16876 |   # Passes both tests. | 
 | 16877 | ac_preproc_ok=: | 
 | 16878 | break | 
 | 16879 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16880 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16881 |  | 
 | 16882 | done | 
 | 16883 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16884 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16885 | if $ac_preproc_ok; then : | 
 | 16886 |   break | 
 | 16887 | fi | 
 | 16888 |  | 
 | 16889 |     done | 
 | 16890 |     ac_cv_prog_CXXCPP=$CXXCPP | 
 | 16891 |  | 
 | 16892 | fi | 
 | 16893 |   CXXCPP=$ac_cv_prog_CXXCPP | 
 | 16894 | else | 
 | 16895 |   ac_cv_prog_CXXCPP=$CXXCPP | 
 | 16896 | fi | 
 | 16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | 
 | 16898 | $as_echo "$CXXCPP" >&6; } | 
 | 16899 | ac_preproc_ok=false | 
 | 16900 | for ac_cxx_preproc_warn_flag in '' yes | 
 | 16901 | do | 
 | 16902 |   # Use a header file that comes with gcc, so configuring glibc | 
 | 16903 |   # with a fresh cross-compiler works. | 
 | 16904 |   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
 | 16905 |   # <limits.h> exists even on freestanding compilers. | 
 | 16906 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 16907 |   # not just through cpp. "Syntax error" is here to catch this case. | 
 | 16908 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16909 | /* end confdefs.h.  */ | 
 | 16910 | #ifdef __STDC__ | 
 | 16911 | # include <limits.h> | 
 | 16912 | #else | 
 | 16913 | # include <assert.h> | 
 | 16914 | #endif | 
 | 16915 | 		     Syntax error | 
 | 16916 | _ACEOF | 
 | 16917 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
 | 16918 |  | 
 | 16919 | else | 
 | 16920 |   # Broken: fails on valid input. | 
 | 16921 | continue | 
 | 16922 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16923 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16924 |  | 
 | 16925 |   # OK, works on sane cases.  Now check whether nonexistent headers | 
 | 16926 |   # can be detected and how. | 
 | 16927 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 16928 | /* end confdefs.h.  */ | 
 | 16929 | #include <ac_nonexistent.h> | 
 | 16930 | _ACEOF | 
 | 16931 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
 | 16932 |   # Broken: success on invalid input. | 
 | 16933 | continue | 
 | 16934 | else | 
 | 16935 |   # Passes both tests. | 
 | 16936 | ac_preproc_ok=: | 
 | 16937 | break | 
 | 16938 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16939 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16940 |  | 
 | 16941 | done | 
 | 16942 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16943 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16944 | if $ac_preproc_ok; then : | 
 | 16945 |  | 
 | 16946 | else | 
 | 16947 |   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 16948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
 | 16949 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | 
 | 16950 | See \`config.log' for more details" "$LINENO" 5; } | 
 | 16951 | fi | 
 | 16952 |  | 
 | 16953 | ac_ext=c | 
 | 16954 | ac_cpp='$CPP $CPPFLAGS' | 
 | 16955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 16956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 16957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 16958 |  | 
 | 16959 | else | 
 | 16960 |   _lt_caught_CXX_error=yes | 
 | 16961 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16962 |  | 
 | 16963 | ac_ext=cpp | 
 | 16964 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 16965 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 16966 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 16967 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 16968 |  | 
 | 16969 | archive_cmds_need_lc_CXX=no | 
 | 16970 | allow_undefined_flag_CXX= | 
 | 16971 | always_export_symbols_CXX=no | 
 | 16972 | archive_expsym_cmds_CXX= | 
 | 16973 | compiler_needs_object_CXX=no | 
 | 16974 | export_dynamic_flag_spec_CXX= | 
 | 16975 | hardcode_direct_CXX=no | 
 | 16976 | hardcode_direct_absolute_CXX=no | 
 | 16977 | hardcode_libdir_flag_spec_CXX= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16978 | hardcode_libdir_separator_CXX= | 
 | 16979 | hardcode_minus_L_CXX=no | 
 | 16980 | hardcode_shlibpath_var_CXX=unsupported | 
 | 16981 | hardcode_automatic_CXX=no | 
 | 16982 | inherit_rpath_CXX=no | 
 | 16983 | module_cmds_CXX= | 
 | 16984 | module_expsym_cmds_CXX= | 
 | 16985 | link_all_deplibs_CXX=unknown | 
 | 16986 | old_archive_cmds_CXX=$old_archive_cmds | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16987 | reload_flag_CXX=$reload_flag | 
 | 16988 | reload_cmds_CXX=$reload_cmds | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16989 | no_undefined_flag_CXX= | 
 | 16990 | whole_archive_flag_spec_CXX= | 
 | 16991 | enable_shared_with_static_runtimes_CXX=no | 
 | 16992 |  | 
 | 16993 | # Source file extension for C++ test sources. | 
 | 16994 | ac_ext=cpp | 
 | 16995 |  | 
 | 16996 | # Object file extension for compiled C++ test sources. | 
 | 16997 | objext=o | 
 | 16998 | objext_CXX=$objext | 
 | 16999 |  | 
 | 17000 | # No sense in running all these tests if we already determined that | 
 | 17001 | # the CXX compiler isn't working.  Some variables (like enable_shared) | 
 | 17002 | # are currently assumed to apply to all compilers on this platform, | 
 | 17003 | # and will be corrupted by setting them based on a non-working compiler. | 
 | 17004 | if test "$_lt_caught_CXX_error" != yes; then | 
 | 17005 |   # Code to be used in simple compile tests | 
 | 17006 |   lt_simple_compile_test_code="int some_variable = 0;" | 
 | 17007 |  | 
 | 17008 |   # Code to be used in simple link tests | 
 | 17009 |   lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | 
 | 17010 |  | 
 | 17011 |   # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
 | 17012 |  | 
 | 17013 |  | 
 | 17014 |  | 
 | 17015 |  | 
 | 17016 |  | 
 | 17017 |  | 
 | 17018 | # If no C compiler was specified, use CC. | 
 | 17019 | LTCC=${LTCC-"$CC"} | 
 | 17020 |  | 
 | 17021 | # If no C compiler flags were specified, use CFLAGS. | 
 | 17022 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
 | 17023 |  | 
 | 17024 | # Allow CC to be a program name with arguments. | 
 | 17025 | compiler=$CC | 
 | 17026 |  | 
 | 17027 |  | 
 | 17028 |   # save warnings/boilerplate of simple test code | 
 | 17029 |   ac_outfile=conftest.$ac_objext | 
 | 17030 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
 | 17031 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 17032 | _lt_compiler_boilerplate=`cat conftest.err` | 
 | 17033 | $RM conftest* | 
 | 17034 |  | 
 | 17035 |   ac_outfile=conftest.$ac_objext | 
 | 17036 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
 | 17037 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
 | 17038 | _lt_linker_boilerplate=`cat conftest.err` | 
 | 17039 | $RM -r conftest* | 
 | 17040 |  | 
 | 17041 |  | 
 | 17042 |   # Allow CC to be a program name with arguments. | 
 | 17043 |   lt_save_CC=$CC | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17044 |   lt_save_CFLAGS=$CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17045 |   lt_save_LD=$LD | 
 | 17046 |   lt_save_GCC=$GCC | 
 | 17047 |   GCC=$GXX | 
 | 17048 |   lt_save_with_gnu_ld=$with_gnu_ld | 
 | 17049 |   lt_save_path_LD=$lt_cv_path_LD | 
 | 17050 |   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
 | 17051 |     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
 | 17052 |   else | 
 | 17053 |     $as_unset lt_cv_prog_gnu_ld | 
 | 17054 |   fi | 
 | 17055 |   if test -n "${lt_cv_path_LDCXX+set}"; then | 
 | 17056 |     lt_cv_path_LD=$lt_cv_path_LDCXX | 
 | 17057 |   else | 
 | 17058 |     $as_unset lt_cv_path_LD | 
 | 17059 |   fi | 
 | 17060 |   test -z "${LDCXX+set}" || LD=$LDCXX | 
 | 17061 |   CC=${CXX-"c++"} | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17062 |   CFLAGS=$CXXFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17063 |   compiler=$CC | 
 | 17064 |   compiler_CXX=$CC | 
 | 17065 |   for cc_temp in $compiler""; do | 
 | 17066 |   case $cc_temp in | 
 | 17067 |     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
 | 17068 |     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
 | 17069 |     \-*) ;; | 
 | 17070 |     *) break;; | 
 | 17071 |   esac | 
 | 17072 | done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17073 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17074 |  | 
 | 17075 |  | 
 | 17076 |   if test -n "$compiler"; then | 
 | 17077 |     # We don't want -fno-exception when compiling C++ code, so set the | 
 | 17078 |     # no_builtin_flag separately | 
 | 17079 |     if test "$GXX" = yes; then | 
 | 17080 |       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
 | 17081 |     else | 
 | 17082 |       lt_prog_compiler_no_builtin_flag_CXX= | 
 | 17083 |     fi | 
 | 17084 |  | 
 | 17085 |     if test "$GXX" = yes; then | 
 | 17086 |       # Set up default GNU C++ configuration | 
 | 17087 |  | 
 | 17088 |  | 
 | 17089 |  | 
 | 17090 | # Check whether --with-gnu-ld was given. | 
 | 17091 | if test "${with_gnu_ld+set}" = set; then : | 
 | 17092 |   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
 | 17093 | else | 
 | 17094 |   with_gnu_ld=no | 
 | 17095 | fi | 
 | 17096 |  | 
 | 17097 | ac_prog=ld | 
 | 17098 | if test "$GCC" = yes; then | 
 | 17099 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 17100 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
 | 17101 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
 | 17102 |   case $host in | 
 | 17103 |   *-*-mingw*) | 
 | 17104 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 17105 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 17106 |   *) | 
 | 17107 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 17108 |   esac | 
 | 17109 |   case $ac_prog in | 
 | 17110 |     # Accept absolute paths. | 
 | 17111 |     [\\/]* | ?:[\\/]*) | 
 | 17112 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 17113 |       # Canonicalize the pathname of ld | 
 | 17114 |       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
 | 17115 |       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
 | 17116 | 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
 | 17117 |       done | 
 | 17118 |       test -z "$LD" && LD="$ac_prog" | 
 | 17119 |       ;; | 
 | 17120 |   "") | 
 | 17121 |     # If it fails, then pretend we aren't using GCC. | 
 | 17122 |     ac_prog=ld | 
 | 17123 |     ;; | 
 | 17124 |   *) | 
 | 17125 |     # If it is relative, then search for the first ld in PATH. | 
 | 17126 |     with_gnu_ld=unknown | 
 | 17127 |     ;; | 
 | 17128 |   esac | 
 | 17129 | elif test "$with_gnu_ld" = yes; then | 
 | 17130 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
 | 17131 | $as_echo_n "checking for GNU ld... " >&6; } | 
 | 17132 | else | 
 | 17133 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
 | 17134 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
 | 17135 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17136 | if ${lt_cv_path_LD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17137 |   $as_echo_n "(cached) " >&6 | 
 | 17138 | else | 
 | 17139 |   if test -z "$LD"; then | 
 | 17140 |   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
 | 17141 |   for ac_dir in $PATH; do | 
 | 17142 |     IFS="$lt_save_ifs" | 
 | 17143 |     test -z "$ac_dir" && ac_dir=. | 
 | 17144 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 17145 |       lt_cv_path_LD="$ac_dir/$ac_prog" | 
 | 17146 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 17147 |       # but apparently some variants of GNU ld only accept -v. | 
 | 17148 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 17149 |       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
 | 17150 |       *GNU* | *'with BFD'*) | 
 | 17151 | 	test "$with_gnu_ld" != no && break | 
 | 17152 | 	;; | 
 | 17153 |       *) | 
 | 17154 | 	test "$with_gnu_ld" != yes && break | 
 | 17155 | 	;; | 
 | 17156 |       esac | 
 | 17157 |     fi | 
 | 17158 |   done | 
 | 17159 |   IFS="$lt_save_ifs" | 
 | 17160 | else | 
 | 17161 |   lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 17162 | fi | 
 | 17163 | fi | 
 | 17164 |  | 
 | 17165 | LD="$lt_cv_path_LD" | 
 | 17166 | if test -n "$LD"; then | 
 | 17167 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
 | 17168 | $as_echo "$LD" >&6; } | 
 | 17169 | else | 
 | 17170 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 17171 | $as_echo "no" >&6; } | 
 | 17172 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 17173 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
 | 17175 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17176 | if ${lt_cv_prog_gnu_ld+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17177 |   $as_echo_n "(cached) " >&6 | 
 | 17178 | else | 
 | 17179 |   # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
 | 17180 | case `$LD -v 2>&1 </dev/null` in | 
 | 17181 | *GNU* | *'with BFD'*) | 
 | 17182 |   lt_cv_prog_gnu_ld=yes | 
 | 17183 |   ;; | 
 | 17184 | *) | 
 | 17185 |   lt_cv_prog_gnu_ld=no | 
 | 17186 |   ;; | 
 | 17187 | esac | 
 | 17188 | fi | 
 | 17189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
 | 17190 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
 | 17191 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
 | 17192 |  | 
 | 17193 |  | 
 | 17194 |  | 
 | 17195 |  | 
 | 17196 |  | 
 | 17197 |  | 
 | 17198 |  | 
 | 17199 |       # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
 | 17200 |       # archiving commands below assume that GNU ld is being used. | 
 | 17201 |       if test "$with_gnu_ld" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17202 |         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17203 |         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17204 |  | 
 | 17205 |         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 17206 |         export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 17207 |  | 
 | 17208 |         # If archive_cmds runs LD, not CC, wlarc should be empty | 
 | 17209 |         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
 | 17210 |         #     investigate it a little bit more. (MM) | 
 | 17211 |         wlarc='${wl}' | 
 | 17212 |  | 
 | 17213 |         # ancient GNU ld didn't support --whole-archive et. al. | 
 | 17214 |         if eval "`$CC -print-prog-name=ld` --help 2>&1" | | 
 | 17215 | 	  $GREP 'no-whole-archive' > /dev/null; then | 
 | 17216 |           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 17217 |         else | 
 | 17218 |           whole_archive_flag_spec_CXX= | 
 | 17219 |         fi | 
 | 17220 |       else | 
 | 17221 |         with_gnu_ld=no | 
 | 17222 |         wlarc= | 
 | 17223 |  | 
 | 17224 |         # A generic and very simple default shared library creation | 
 | 17225 |         # command for GNU C++ for the case where it uses the native | 
 | 17226 |         # linker, instead of GNU ld.  If possible, this setting should | 
 | 17227 |         # overridden to take advantage of the native linker features on | 
 | 17228 |         # the platform it is being used on. | 
 | 17229 |         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 17230 |       fi | 
 | 17231 |  | 
 | 17232 |       # Commands to make compiler produce verbose output that lists | 
 | 17233 |       # what "hidden" libraries, object files and flags are used when | 
 | 17234 |       # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17235 |       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17236 |  | 
 | 17237 |     else | 
 | 17238 |       GXX=no | 
 | 17239 |       with_gnu_ld=no | 
 | 17240 |       wlarc= | 
 | 17241 |     fi | 
 | 17242 |  | 
 | 17243 |     # PORTME: fill in a description of your system's C++ link characteristics | 
 | 17244 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 17245 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
 | 17246 |     ld_shlibs_CXX=yes | 
 | 17247 |     case $host_os in | 
 | 17248 |       aix3*) | 
 | 17249 |         # FIXME: insert proper C++ library support | 
 | 17250 |         ld_shlibs_CXX=no | 
 | 17251 |         ;; | 
 | 17252 |       aix[4-9]*) | 
 | 17253 |         if test "$host_cpu" = ia64; then | 
 | 17254 |           # On IA64, the linker does run time linking by default, so we don't | 
 | 17255 |           # have to do anything special. | 
 | 17256 |           aix_use_runtimelinking=no | 
 | 17257 |           exp_sym_flag='-Bexport' | 
 | 17258 |           no_entry_flag="" | 
 | 17259 |         else | 
 | 17260 |           aix_use_runtimelinking=no | 
 | 17261 |  | 
 | 17262 |           # Test if we are trying to use run time linking or normal | 
 | 17263 |           # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
 | 17264 |           # need to do runtime linking. | 
 | 17265 |           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
 | 17266 | 	    for ld_flag in $LDFLAGS; do | 
 | 17267 | 	      case $ld_flag in | 
 | 17268 | 	      *-brtl*) | 
 | 17269 | 	        aix_use_runtimelinking=yes | 
 | 17270 | 	        break | 
 | 17271 | 	        ;; | 
 | 17272 | 	      esac | 
 | 17273 | 	    done | 
 | 17274 | 	    ;; | 
 | 17275 |           esac | 
 | 17276 |  | 
 | 17277 |           exp_sym_flag='-bexport' | 
 | 17278 |           no_entry_flag='-bnoentry' | 
 | 17279 |         fi | 
 | 17280 |  | 
 | 17281 |         # When large executables or shared objects are built, AIX ld can | 
 | 17282 |         # have problems creating the table of contents.  If linking a library | 
 | 17283 |         # or program results in "error TOC overflow" add -mminimal-toc to | 
 | 17284 |         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
 | 17285 |         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
 | 17286 |  | 
 | 17287 |         archive_cmds_CXX='' | 
 | 17288 |         hardcode_direct_CXX=yes | 
 | 17289 |         hardcode_direct_absolute_CXX=yes | 
 | 17290 |         hardcode_libdir_separator_CXX=':' | 
 | 17291 |         link_all_deplibs_CXX=yes | 
 | 17292 |         file_list_spec_CXX='${wl}-f,' | 
 | 17293 |  | 
 | 17294 |         if test "$GXX" = yes; then | 
 | 17295 |           case $host_os in aix4.[012]|aix4.[012].*) | 
 | 17296 |           # We only want to do this on AIX 4.2 and lower, the check | 
 | 17297 |           # below for broken collect2 doesn't work under 4.3+ | 
 | 17298 | 	  collect2name=`${CC} -print-prog-name=collect2` | 
 | 17299 | 	  if test -f "$collect2name" && | 
 | 17300 | 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
 | 17301 | 	  then | 
 | 17302 | 	    # We have reworked collect2 | 
 | 17303 | 	    : | 
 | 17304 | 	  else | 
 | 17305 | 	    # We have old collect2 | 
 | 17306 | 	    hardcode_direct_CXX=unsupported | 
 | 17307 | 	    # It fails to find uninstalled libraries when the uninstalled | 
 | 17308 | 	    # path is not listed in the libpath.  Setting hardcode_minus_L | 
 | 17309 | 	    # to unsupported forces relinking | 
 | 17310 | 	    hardcode_minus_L_CXX=yes | 
 | 17311 | 	    hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 17312 | 	    hardcode_libdir_separator_CXX= | 
 | 17313 | 	  fi | 
 | 17314 |           esac | 
 | 17315 |           shared_flag='-shared' | 
 | 17316 | 	  if test "$aix_use_runtimelinking" = yes; then | 
 | 17317 | 	    shared_flag="$shared_flag "'${wl}-G' | 
 | 17318 | 	  fi | 
 | 17319 |         else | 
 | 17320 |           # not using gcc | 
 | 17321 |           if test "$host_cpu" = ia64; then | 
 | 17322 | 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
 | 17323 | 	  # chokes on -Wl,-G. The following line is correct: | 
 | 17324 | 	  shared_flag='-G' | 
 | 17325 |           else | 
 | 17326 | 	    if test "$aix_use_runtimelinking" = yes; then | 
 | 17327 | 	      shared_flag='${wl}-G' | 
 | 17328 | 	    else | 
 | 17329 | 	      shared_flag='${wl}-bM:SRE' | 
 | 17330 | 	    fi | 
 | 17331 |           fi | 
 | 17332 |         fi | 
 | 17333 |  | 
 | 17334 |         export_dynamic_flag_spec_CXX='${wl}-bexpall' | 
 | 17335 |         # It seems that -bexpall does not export symbols beginning with | 
 | 17336 |         # underscore (_), so it is better to generate a list of symbols to | 
 | 17337 | 	# export. | 
 | 17338 |         always_export_symbols_CXX=yes | 
 | 17339 |         if test "$aix_use_runtimelinking" = yes; then | 
 | 17340 |           # Warning - without using the other runtime loading flags (-brtl), | 
 | 17341 |           # -berok will link without error, but may produce a broken library. | 
 | 17342 |           allow_undefined_flag_CXX='-berok' | 
 | 17343 |           # Determine the default libpath from the value encoded in an empty | 
 | 17344 |           # executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17345 |           if test "${lt_cv_aix_libpath+set}" = set; then | 
 | 17346 |   aix_libpath=$lt_cv_aix_libpath | 
 | 17347 | else | 
 | 17348 |   if ${lt_cv_aix_libpath__CXX+:} false; then : | 
 | 17349 |   $as_echo_n "(cached) " >&6 | 
 | 17350 | else | 
 | 17351 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17352 | /* end confdefs.h.  */ | 
 | 17353 |  | 
 | 17354 | int | 
 | 17355 | main () | 
 | 17356 | { | 
 | 17357 |  | 
 | 17358 |   ; | 
 | 17359 |   return 0; | 
 | 17360 | } | 
 | 17361 | _ACEOF | 
 | 17362 | if ac_fn_cxx_try_link "$LINENO"; then : | 
 | 17363 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17364 |   lt_aix_libpath_sed=' | 
 | 17365 |       /Import File Strings/,/^$/ { | 
 | 17366 | 	  /^0/ { | 
 | 17367 | 	      s/^0  *\([^ ]*\) *$/\1/ | 
 | 17368 | 	      p | 
 | 17369 | 	  } | 
 | 17370 |       }' | 
 | 17371 |   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 17372 |   # Check for a 64-bit object if we didn't find anything. | 
 | 17373 |   if test -z "$lt_cv_aix_libpath__CXX"; then | 
 | 17374 |     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 17375 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17376 | fi | 
 | 17377 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 17378 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17379 |   if test -z "$lt_cv_aix_libpath__CXX"; then | 
 | 17380 |     lt_cv_aix_libpath__CXX="/usr/lib:/lib" | 
 | 17381 |   fi | 
 | 17382 |  | 
 | 17383 | fi | 
 | 17384 |  | 
 | 17385 |   aix_libpath=$lt_cv_aix_libpath__CXX | 
 | 17386 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17387 |  | 
 | 17388 |           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 17389 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17390 |           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17391 |         else | 
 | 17392 |           if test "$host_cpu" = ia64; then | 
 | 17393 | 	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
 | 17394 | 	    allow_undefined_flag_CXX="-z nodefs" | 
 | 17395 | 	    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" | 
 | 17396 |           else | 
 | 17397 | 	    # Determine the default libpath from the value encoded in an | 
 | 17398 | 	    # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17399 | 	    if test "${lt_cv_aix_libpath+set}" = set; then | 
 | 17400 |   aix_libpath=$lt_cv_aix_libpath | 
 | 17401 | else | 
 | 17402 |   if ${lt_cv_aix_libpath__CXX+:} false; then : | 
 | 17403 |   $as_echo_n "(cached) " >&6 | 
 | 17404 | else | 
 | 17405 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17406 | /* end confdefs.h.  */ | 
 | 17407 |  | 
 | 17408 | int | 
 | 17409 | main () | 
 | 17410 | { | 
 | 17411 |  | 
 | 17412 |   ; | 
 | 17413 |   return 0; | 
 | 17414 | } | 
 | 17415 | _ACEOF | 
 | 17416 | if ac_fn_cxx_try_link "$LINENO"; then : | 
 | 17417 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17418 |   lt_aix_libpath_sed=' | 
 | 17419 |       /Import File Strings/,/^$/ { | 
 | 17420 | 	  /^0/ { | 
 | 17421 | 	      s/^0  *\([^ ]*\) *$/\1/ | 
 | 17422 | 	      p | 
 | 17423 | 	  } | 
 | 17424 |       }' | 
 | 17425 |   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 17426 |   # Check for a 64-bit object if we didn't find anything. | 
 | 17427 |   if test -z "$lt_cv_aix_libpath__CXX"; then | 
 | 17428 |     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
 | 17429 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17430 | fi | 
 | 17431 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 17432 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17433 |   if test -z "$lt_cv_aix_libpath__CXX"; then | 
 | 17434 |     lt_cv_aix_libpath__CXX="/usr/lib:/lib" | 
 | 17435 |   fi | 
 | 17436 |  | 
 | 17437 | fi | 
 | 17438 |  | 
 | 17439 |   aix_libpath=$lt_cv_aix_libpath__CXX | 
 | 17440 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17441 |  | 
 | 17442 | 	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
 | 17443 | 	    # Warning - without using the other run time loading flags, | 
 | 17444 | 	    # -berok will link without error, but may produce a broken library. | 
 | 17445 | 	    no_undefined_flag_CXX=' ${wl}-bernotok' | 
 | 17446 | 	    allow_undefined_flag_CXX=' ${wl}-berok' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17447 | 	    if test "$with_gnu_ld" = yes; then | 
 | 17448 | 	      # We only use this code for GNU lds that support --whole-archive. | 
 | 17449 | 	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 17450 | 	    else | 
 | 17451 | 	      # Exported symbols can be pulled into shared objects from archives | 
 | 17452 | 	      whole_archive_flag_spec_CXX='$convenience' | 
 | 17453 | 	    fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17454 | 	    archive_cmds_need_lc_CXX=yes | 
 | 17455 | 	    # This is similar to how AIX traditionally builds its shared | 
 | 17456 | 	    # libraries. | 
 | 17457 | 	    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' | 
 | 17458 |           fi | 
 | 17459 |         fi | 
 | 17460 |         ;; | 
 | 17461 |  | 
 | 17462 |       beos*) | 
 | 17463 | 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
 | 17464 | 	  allow_undefined_flag_CXX=unsupported | 
 | 17465 | 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
 | 17466 | 	  # support --undefined.  This deserves some investigation.  FIXME | 
 | 17467 | 	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17468 | 	else | 
 | 17469 | 	  ld_shlibs_CXX=no | 
 | 17470 | 	fi | 
 | 17471 | 	;; | 
 | 17472 |  | 
 | 17473 |       chorus*) | 
 | 17474 |         case $cc_basename in | 
 | 17475 |           *) | 
 | 17476 | 	  # FIXME: insert proper C++ library support | 
 | 17477 | 	  ld_shlibs_CXX=no | 
 | 17478 | 	  ;; | 
 | 17479 |         esac | 
 | 17480 |         ;; | 
 | 17481 |  | 
 | 17482 |       cygwin* | mingw* | pw32* | cegcc*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17483 | 	case $GXX,$cc_basename in | 
 | 17484 | 	,cl* | no,cl*) | 
 | 17485 | 	  # Native MSVC | 
 | 17486 | 	  # hardcode_libdir_flag_spec is actually meaningless, as there is | 
 | 17487 | 	  # no search path for DLLs. | 
 | 17488 | 	  hardcode_libdir_flag_spec_CXX=' ' | 
 | 17489 | 	  allow_undefined_flag_CXX=unsupported | 
 | 17490 | 	  always_export_symbols_CXX=yes | 
 | 17491 | 	  file_list_spec_CXX='@' | 
 | 17492 | 	  # Tell ltmain to make .lib files, not .a files. | 
 | 17493 | 	  libext=lib | 
 | 17494 | 	  # Tell ltmain to make .dll files, not .so files. | 
 | 17495 | 	  shrext_cmds=".dll" | 
 | 17496 | 	  # FIXME: Setting linknames here is a bad hack. | 
 | 17497 | 	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | 
 | 17498 | 	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 17499 | 	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | 
 | 17500 | 	    else | 
 | 17501 | 	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | 
 | 17502 | 	    fi~ | 
 | 17503 | 	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | 
 | 17504 | 	    linknames=' | 
 | 17505 | 	  # The linker will not automatically build a static lib if we build a DLL. | 
 | 17506 | 	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | 
 | 17507 | 	  enable_shared_with_static_runtimes_CXX=yes | 
 | 17508 | 	  # Don't use ranlib | 
 | 17509 | 	  old_postinstall_cmds_CXX='chmod 644 $oldlib' | 
 | 17510 | 	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | 
 | 17511 | 	    lt_tool_outputfile="@TOOL_OUTPUT@"~ | 
 | 17512 | 	    case $lt_outputfile in | 
 | 17513 | 	      *.exe|*.EXE) ;; | 
 | 17514 | 	      *) | 
 | 17515 | 		lt_outputfile="$lt_outputfile.exe" | 
 | 17516 | 		lt_tool_outputfile="$lt_tool_outputfile.exe" | 
 | 17517 | 		;; | 
 | 17518 | 	    esac~ | 
 | 17519 | 	    func_to_tool_file "$lt_outputfile"~ | 
 | 17520 | 	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | 
 | 17521 | 	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | 
 | 17522 | 	      $RM "$lt_outputfile.manifest"; | 
 | 17523 | 	    fi' | 
 | 17524 | 	  ;; | 
 | 17525 | 	*) | 
 | 17526 | 	  # g++ | 
 | 17527 | 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
 | 17528 | 	  # as there is no search path for DLLs. | 
 | 17529 | 	  hardcode_libdir_flag_spec_CXX='-L$libdir' | 
 | 17530 | 	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | 
 | 17531 | 	  allow_undefined_flag_CXX=unsupported | 
 | 17532 | 	  always_export_symbols_CXX=no | 
 | 17533 | 	  enable_shared_with_static_runtimes_CXX=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17534 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17535 | 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
 | 17536 | 	    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' | 
 | 17537 | 	    # If the export-symbols file already is a .def file (1st line | 
 | 17538 | 	    # is EXPORTS), use it as is; otherwise, prepend... | 
 | 17539 | 	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
 | 17540 | 	      cp $export_symbols $output_objdir/$soname.def; | 
 | 17541 | 	    else | 
 | 17542 | 	      echo EXPORTS > $output_objdir/$soname.def; | 
 | 17543 | 	      cat $export_symbols >> $output_objdir/$soname.def; | 
 | 17544 | 	    fi~ | 
 | 17545 | 	    $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' | 
 | 17546 | 	  else | 
 | 17547 | 	    ld_shlibs_CXX=no | 
 | 17548 | 	  fi | 
 | 17549 | 	  ;; | 
 | 17550 | 	esac | 
 | 17551 | 	;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17552 |       darwin* | rhapsody*) | 
 | 17553 |  | 
 | 17554 |  | 
 | 17555 |   archive_cmds_need_lc_CXX=no | 
 | 17556 |   hardcode_direct_CXX=no | 
 | 17557 |   hardcode_automatic_CXX=yes | 
 | 17558 |   hardcode_shlibpath_var_CXX=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17559 |   if test "$lt_cv_ld_force_load" = "yes"; then | 
 | 17560 |     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\"`' | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 17561 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17562 |   else | 
 | 17563 |     whole_archive_flag_spec_CXX='' | 
 | 17564 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17565 |   link_all_deplibs_CXX=yes | 
 | 17566 |   allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | 
 | 17567 |   case $cc_basename in | 
 | 17568 |      ifort*) _lt_dar_can_shared=yes ;; | 
 | 17569 |      *) _lt_dar_can_shared=$GCC ;; | 
 | 17570 |   esac | 
 | 17571 |   if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17572 |     output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17573 |     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}" | 
 | 17574 |     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
 | 17575 |     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}" | 
 | 17576 |     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}" | 
 | 17577 |        if test "$lt_cv_apple_cc_single_mod" != "yes"; then | 
 | 17578 |       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}" | 
 | 17579 |       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}" | 
 | 17580 |     fi | 
 | 17581 |  | 
 | 17582 |   else | 
 | 17583 |   ld_shlibs_CXX=no | 
 | 17584 |   fi | 
 | 17585 |  | 
 | 17586 | 	;; | 
 | 17587 |  | 
 | 17588 |       dgux*) | 
 | 17589 |         case $cc_basename in | 
 | 17590 |           ec++*) | 
 | 17591 | 	    # FIXME: insert proper C++ library support | 
 | 17592 | 	    ld_shlibs_CXX=no | 
 | 17593 | 	    ;; | 
 | 17594 |           ghcx*) | 
 | 17595 | 	    # Green Hills C++ Compiler | 
 | 17596 | 	    # FIXME: insert proper C++ library support | 
 | 17597 | 	    ld_shlibs_CXX=no | 
 | 17598 | 	    ;; | 
 | 17599 |           *) | 
 | 17600 | 	    # FIXME: insert proper C++ library support | 
 | 17601 | 	    ld_shlibs_CXX=no | 
 | 17602 | 	    ;; | 
 | 17603 |         esac | 
 | 17604 |         ;; | 
 | 17605 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 17606 |       freebsd2.*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17607 |         # C++ shared libraries reported to be fairly broken before | 
 | 17608 | 	# switch to ELF | 
 | 17609 |         ld_shlibs_CXX=no | 
 | 17610 |         ;; | 
 | 17611 |  | 
 | 17612 |       freebsd-elf*) | 
 | 17613 |         archive_cmds_need_lc_CXX=no | 
 | 17614 |         ;; | 
 | 17615 |  | 
 | 17616 |       freebsd* | dragonfly*) | 
 | 17617 |         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
 | 17618 |         # conventions | 
 | 17619 |         ld_shlibs_CXX=yes | 
 | 17620 |         ;; | 
 | 17621 |  | 
 | 17622 |       gnu*) | 
 | 17623 |         ;; | 
 | 17624 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17625 |       haiku*) | 
 | 17626 |         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17627 |         link_all_deplibs_CXX=yes | 
 | 17628 |         ;; | 
 | 17629 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17630 |       hpux9*) | 
 | 17631 |         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 17632 |         hardcode_libdir_separator_CXX=: | 
 | 17633 |         export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 17634 |         hardcode_direct_CXX=yes | 
 | 17635 |         hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 17636 | 				             # but as the default | 
 | 17637 | 				             # location of the library. | 
 | 17638 |  | 
 | 17639 |         case $cc_basename in | 
 | 17640 |           CC*) | 
 | 17641 |             # FIXME: insert proper C++ library support | 
 | 17642 |             ld_shlibs_CXX=no | 
 | 17643 |             ;; | 
 | 17644 |           aCC*) | 
 | 17645 |             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' | 
 | 17646 |             # Commands to make compiler produce verbose output that lists | 
 | 17647 |             # what "hidden" libraries, object files and flags are used when | 
 | 17648 |             # linking a shared library. | 
 | 17649 |             # | 
 | 17650 |             # There doesn't appear to be a way to prevent this compiler from | 
 | 17651 |             # explicitly linking system object files so we need to strip them | 
 | 17652 |             # from the output so that they don't get included in the library | 
 | 17653 |             # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17654 |             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17655 |             ;; | 
 | 17656 |           *) | 
 | 17657 |             if test "$GXX" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17658 |               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17659 |             else | 
 | 17660 |               # FIXME: insert proper C++ library support | 
 | 17661 |               ld_shlibs_CXX=no | 
 | 17662 |             fi | 
 | 17663 |             ;; | 
 | 17664 |         esac | 
 | 17665 |         ;; | 
 | 17666 |  | 
 | 17667 |       hpux10*|hpux11*) | 
 | 17668 |         if test $with_gnu_ld = no; then | 
 | 17669 | 	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
 | 17670 | 	  hardcode_libdir_separator_CXX=: | 
 | 17671 |  | 
 | 17672 |           case $host_cpu in | 
 | 17673 |             hppa*64*|ia64*) | 
 | 17674 |               ;; | 
 | 17675 |             *) | 
 | 17676 | 	      export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 17677 |               ;; | 
 | 17678 |           esac | 
 | 17679 |         fi | 
 | 17680 |         case $host_cpu in | 
 | 17681 |           hppa*64*|ia64*) | 
 | 17682 |             hardcode_direct_CXX=no | 
 | 17683 |             hardcode_shlibpath_var_CXX=no | 
 | 17684 |             ;; | 
 | 17685 |           *) | 
 | 17686 |             hardcode_direct_CXX=yes | 
 | 17687 |             hardcode_direct_absolute_CXX=yes | 
 | 17688 |             hardcode_minus_L_CXX=yes # Not in the search PATH, | 
 | 17689 | 					         # but as the default | 
 | 17690 | 					         # location of the library. | 
 | 17691 |             ;; | 
 | 17692 |         esac | 
 | 17693 |  | 
 | 17694 |         case $cc_basename in | 
 | 17695 |           CC*) | 
 | 17696 | 	    # FIXME: insert proper C++ library support | 
 | 17697 | 	    ld_shlibs_CXX=no | 
 | 17698 | 	    ;; | 
 | 17699 |           aCC*) | 
 | 17700 | 	    case $host_cpu in | 
 | 17701 | 	      hppa*64*) | 
 | 17702 | 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 17703 | 	        ;; | 
 | 17704 | 	      ia64*) | 
 | 17705 | 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 17706 | 	        ;; | 
 | 17707 | 	      *) | 
 | 17708 | 	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 17709 | 	        ;; | 
 | 17710 | 	    esac | 
 | 17711 | 	    # Commands to make compiler produce verbose output that lists | 
 | 17712 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 17713 | 	    # linking a shared library. | 
 | 17714 | 	    # | 
 | 17715 | 	    # There doesn't appear to be a way to prevent this compiler from | 
 | 17716 | 	    # explicitly linking system object files so we need to strip them | 
 | 17717 | 	    # from the output so that they don't get included in the library | 
 | 17718 | 	    # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17719 | 	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17720 | 	    ;; | 
 | 17721 |           *) | 
 | 17722 | 	    if test "$GXX" = yes; then | 
 | 17723 | 	      if test $with_gnu_ld = no; then | 
 | 17724 | 	        case $host_cpu in | 
 | 17725 | 	          hppa*64*) | 
 | 17726 | 	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 17727 | 	            ;; | 
 | 17728 | 	          ia64*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17729 | 	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17730 | 	            ;; | 
 | 17731 | 	          *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17732 | 	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17733 | 	            ;; | 
 | 17734 | 	        esac | 
 | 17735 | 	      fi | 
 | 17736 | 	    else | 
 | 17737 | 	      # FIXME: insert proper C++ library support | 
 | 17738 | 	      ld_shlibs_CXX=no | 
 | 17739 | 	    fi | 
 | 17740 | 	    ;; | 
 | 17741 |         esac | 
 | 17742 |         ;; | 
 | 17743 |  | 
 | 17744 |       interix[3-9]*) | 
 | 17745 | 	hardcode_direct_CXX=no | 
 | 17746 | 	hardcode_shlibpath_var_CXX=no | 
 | 17747 | 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 17748 | 	export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 17749 | 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
 | 17750 | 	# Instead, shared libraries are loaded at an image base (0x10000000 by | 
 | 17751 | 	# default) and relocated if they conflict, which is a slow very memory | 
 | 17752 | 	# consuming and fragmenting process.  To avoid this, we pick a random, | 
 | 17753 | 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
 | 17754 | 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
 | 17755 | 	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' | 
 | 17756 | 	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' | 
 | 17757 | 	;; | 
 | 17758 |       irix5* | irix6*) | 
 | 17759 |         case $cc_basename in | 
 | 17760 |           CC*) | 
 | 17761 | 	    # SGI C++ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17762 | 	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17763 |  | 
 | 17764 | 	    # Archives containing C++ object files must be created using | 
 | 17765 | 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
 | 17766 | 	    # necessary to make sure instantiated templates are included | 
 | 17767 | 	    # in the archive. | 
 | 17768 | 	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
 | 17769 | 	    ;; | 
 | 17770 |           *) | 
 | 17771 | 	    if test "$GXX" = yes; then | 
 | 17772 | 	      if test "$with_gnu_ld" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17773 | 	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17774 | 	      else | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17775 | 	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17776 | 	      fi | 
 | 17777 | 	    fi | 
 | 17778 | 	    link_all_deplibs_CXX=yes | 
 | 17779 | 	    ;; | 
 | 17780 |         esac | 
 | 17781 |         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 17782 |         hardcode_libdir_separator_CXX=: | 
 | 17783 |         inherit_rpath_CXX=yes | 
 | 17784 |         ;; | 
 | 17785 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17786 |       linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17787 |         case $cc_basename in | 
 | 17788 |           KCC*) | 
 | 17789 | 	    # Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 17790 |  | 
 | 17791 | 	    # KCC will only create a shared library if the output file | 
 | 17792 | 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 17793 | 	    # to its proper name (with version) after linking. | 
 | 17794 | 	    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' | 
 | 17795 | 	    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' | 
 | 17796 | 	    # Commands to make compiler produce verbose output that lists | 
 | 17797 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 17798 | 	    # linking a shared library. | 
 | 17799 | 	    # | 
 | 17800 | 	    # There doesn't appear to be a way to prevent this compiler from | 
 | 17801 | 	    # explicitly linking system object files so we need to strip them | 
 | 17802 | 	    # from the output so that they don't get included in the library | 
 | 17803 | 	    # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17804 | 	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17805 |  | 
 | 17806 | 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 17807 | 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 17808 |  | 
 | 17809 | 	    # Archives containing C++ object files must be created using | 
 | 17810 | 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
 | 17811 | 	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
 | 17812 | 	    ;; | 
 | 17813 | 	  icpc* | ecpc* ) | 
 | 17814 | 	    # Intel C++ | 
 | 17815 | 	    with_gnu_ld=yes | 
 | 17816 | 	    # version 8.0 and above of icpc choke on multiply defined symbols | 
 | 17817 | 	    # if we add $predep_objects and $postdep_objects, however 7.1 and | 
 | 17818 | 	    # earlier do not add the objects themselves. | 
 | 17819 | 	    case `$CC -V 2>&1` in | 
 | 17820 | 	      *"Version 7."*) | 
 | 17821 | 	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17822 | 		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' | 
 | 17823 | 		;; | 
 | 17824 | 	      *)  # Version 8.0 or newer | 
 | 17825 | 	        tmp_idyn= | 
 | 17826 | 	        case $host_cpu in | 
 | 17827 | 		  ia64*) tmp_idyn=' -i_dynamic';; | 
 | 17828 | 		esac | 
 | 17829 | 	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17830 | 		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' | 
 | 17831 | 		;; | 
 | 17832 | 	    esac | 
 | 17833 | 	    archive_cmds_need_lc_CXX=no | 
 | 17834 | 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 17835 | 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 17836 | 	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
 | 17837 | 	    ;; | 
 | 17838 |           pgCC* | pgcpp*) | 
 | 17839 |             # Portland Group C++ compiler | 
 | 17840 | 	    case `$CC -V` in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17841 | 	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17842 | 	      prelink_cmds_CXX='tpldir=Template.dir~ | 
 | 17843 | 		rm -rf $tpldir~ | 
 | 17844 | 		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17845 | 		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17846 | 	      old_archive_cmds_CXX='tpldir=Template.dir~ | 
 | 17847 | 		rm -rf $tpldir~ | 
 | 17848 | 		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17849 | 		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17850 | 		$RANLIB $oldlib' | 
 | 17851 | 	      archive_cmds_CXX='tpldir=Template.dir~ | 
 | 17852 | 		rm -rf $tpldir~ | 
 | 17853 | 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17854 | 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17855 | 	      archive_expsym_cmds_CXX='tpldir=Template.dir~ | 
 | 17856 | 		rm -rf $tpldir~ | 
 | 17857 | 		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17858 | 		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17859 | 	      ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17860 | 	    *) # Version 6 and above use weak symbols | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17861 | 	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
 | 17862 | 	      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' | 
 | 17863 | 	      ;; | 
 | 17864 | 	    esac | 
 | 17865 |  | 
 | 17866 | 	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
 | 17867 | 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17868 | 	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17869 |             ;; | 
 | 17870 | 	  cxx*) | 
 | 17871 | 	    # Compaq C++ | 
 | 17872 | 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17873 | 	    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' | 
 | 17874 |  | 
 | 17875 | 	    runpath_var=LD_RUN_PATH | 
 | 17876 | 	    hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 17877 | 	    hardcode_libdir_separator_CXX=: | 
 | 17878 |  | 
 | 17879 | 	    # Commands to make compiler produce verbose output that lists | 
 | 17880 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 17881 | 	    # linking a shared library. | 
 | 17882 | 	    # | 
 | 17883 | 	    # There doesn't appear to be a way to prevent this compiler from | 
 | 17884 | 	    # explicitly linking system object files so we need to strip them | 
 | 17885 | 	    # from the output so that they don't get included in the library | 
 | 17886 | 	    # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17887 | 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17888 | 	    ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17889 | 	  xl* | mpixl* | bgxl*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17890 | 	    # IBM XL 8.0 on PPC, with GNU ld | 
 | 17891 | 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 17892 | 	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
 | 17893 | 	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
 | 17894 | 	    if test "x$supports_anon_versioning" = xyes; then | 
 | 17895 | 	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | 
 | 17896 | 		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
 | 17897 | 		echo "local: *; };" >> $output_objdir/$libname.ver~ | 
 | 17898 | 		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
 | 17899 | 	    fi | 
 | 17900 | 	    ;; | 
 | 17901 | 	  *) | 
 | 17902 | 	    case `$CC -V 2>&1 | sed 5q` in | 
 | 17903 | 	    *Sun\ C*) | 
 | 17904 | 	      # Sun C++ 5.9 | 
 | 17905 | 	      no_undefined_flag_CXX=' -zdefs' | 
 | 17906 | 	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 17907 | 	      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' | 
 | 17908 | 	      hardcode_libdir_flag_spec_CXX='-R$libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17909 | 	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17910 | 	      compiler_needs_object_CXX=yes | 
 | 17911 |  | 
 | 17912 | 	      # Not sure whether something based on | 
 | 17913 | 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 
 | 17914 | 	      # would be better. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17915 | 	      output_verbose_link_cmd='func_echo_all' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17916 |  | 
 | 17917 | 	      # Archives containing C++ object files must be created using | 
 | 17918 | 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 17919 | 	      # necessary to make sure instantiated templates are included | 
 | 17920 | 	      # in the archive. | 
 | 17921 | 	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 17922 | 	      ;; | 
 | 17923 | 	    esac | 
 | 17924 | 	    ;; | 
 | 17925 | 	esac | 
 | 17926 | 	;; | 
 | 17927 |  | 
 | 17928 |       lynxos*) | 
 | 17929 |         # FIXME: insert proper C++ library support | 
 | 17930 | 	ld_shlibs_CXX=no | 
 | 17931 | 	;; | 
 | 17932 |  | 
 | 17933 |       m88k*) | 
 | 17934 |         # FIXME: insert proper C++ library support | 
 | 17935 |         ld_shlibs_CXX=no | 
 | 17936 | 	;; | 
 | 17937 |  | 
 | 17938 |       mvs*) | 
 | 17939 |         case $cc_basename in | 
 | 17940 |           cxx*) | 
 | 17941 | 	    # FIXME: insert proper C++ library support | 
 | 17942 | 	    ld_shlibs_CXX=no | 
 | 17943 | 	    ;; | 
 | 17944 | 	  *) | 
 | 17945 | 	    # FIXME: insert proper C++ library support | 
 | 17946 | 	    ld_shlibs_CXX=no | 
 | 17947 | 	    ;; | 
 | 17948 | 	esac | 
 | 17949 | 	;; | 
 | 17950 |  | 
 | 17951 |       netbsd*) | 
 | 17952 |         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
 | 17953 | 	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
 | 17954 | 	  wlarc= | 
 | 17955 | 	  hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 17956 | 	  hardcode_direct_CXX=yes | 
 | 17957 | 	  hardcode_shlibpath_var_CXX=no | 
 | 17958 | 	fi | 
 | 17959 | 	# Workaround some broken pre-1.5 toolchains | 
 | 17960 | 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
 | 17961 | 	;; | 
 | 17962 |  | 
 | 17963 |       *nto* | *qnx*) | 
 | 17964 |         ld_shlibs_CXX=yes | 
 | 17965 | 	;; | 
 | 17966 |  | 
 | 17967 |       openbsd2*) | 
 | 17968 |         # C++ shared libraries are fairly broken | 
 | 17969 | 	ld_shlibs_CXX=no | 
 | 17970 | 	;; | 
 | 17971 |  | 
 | 17972 |       openbsd*) | 
 | 17973 | 	if test -f /usr/libexec/ld.so; then | 
 | 17974 | 	  hardcode_direct_CXX=yes | 
 | 17975 | 	  hardcode_shlibpath_var_CXX=no | 
 | 17976 | 	  hardcode_direct_absolute_CXX=yes | 
 | 17977 | 	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
 | 17978 | 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 17979 | 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 17980 | 	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
 | 17981 | 	    export_dynamic_flag_spec_CXX='${wl}-E' | 
 | 17982 | 	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
 | 17983 | 	  fi | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17984 | 	  output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17985 | 	else | 
 | 17986 | 	  ld_shlibs_CXX=no | 
 | 17987 | 	fi | 
 | 17988 | 	;; | 
 | 17989 |  | 
 | 17990 |       osf3* | osf4* | osf5*) | 
 | 17991 |         case $cc_basename in | 
 | 17992 |           KCC*) | 
 | 17993 | 	    # Kuck and Associates, Inc. (KAI) C++ Compiler | 
 | 17994 |  | 
 | 17995 | 	    # KCC will only create a shared library if the output file | 
 | 17996 | 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
 | 17997 | 	    # to its proper name (with version) after linking. | 
 | 17998 | 	    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' | 
 | 17999 |  | 
 | 18000 | 	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
 | 18001 | 	    hardcode_libdir_separator_CXX=: | 
 | 18002 |  | 
 | 18003 | 	    # Archives containing C++ object files must be created using | 
 | 18004 | 	    # the KAI C++ compiler. | 
 | 18005 | 	    case $host in | 
 | 18006 | 	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | 
 | 18007 | 	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | 
 | 18008 | 	    esac | 
 | 18009 | 	    ;; | 
 | 18010 |           RCC*) | 
 | 18011 | 	    # Rational C++ 2.4.1 | 
 | 18012 | 	    # FIXME: insert proper C++ library support | 
 | 18013 | 	    ld_shlibs_CXX=no | 
 | 18014 | 	    ;; | 
 | 18015 |           cxx*) | 
 | 18016 | 	    case $host in | 
 | 18017 | 	      osf3*) | 
 | 18018 | 	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18019 | 	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18020 | 	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 18021 | 		;; | 
 | 18022 | 	      *) | 
 | 18023 | 	        allow_undefined_flag_CXX=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18024 | 	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18025 | 	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
 | 18026 | 	          echo "-hidden">> $lib.exp~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18027 | 	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18028 | 	          $RM $lib.exp' | 
 | 18029 | 	        hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
 | 18030 | 		;; | 
 | 18031 | 	    esac | 
 | 18032 |  | 
 | 18033 | 	    hardcode_libdir_separator_CXX=: | 
 | 18034 |  | 
 | 18035 | 	    # Commands to make compiler produce verbose output that lists | 
 | 18036 | 	    # what "hidden" libraries, object files and flags are used when | 
 | 18037 | 	    # linking a shared library. | 
 | 18038 | 	    # | 
 | 18039 | 	    # There doesn't appear to be a way to prevent this compiler from | 
 | 18040 | 	    # explicitly linking system object files so we need to strip them | 
 | 18041 | 	    # from the output so that they don't get included in the library | 
 | 18042 | 	    # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18043 | 	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18044 | 	    ;; | 
 | 18045 | 	  *) | 
 | 18046 | 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 18047 | 	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
 | 18048 | 	      case $host in | 
 | 18049 | 	        osf3*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18050 | 	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18051 | 		  ;; | 
 | 18052 | 	        *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18053 | 	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18054 | 		  ;; | 
 | 18055 | 	      esac | 
 | 18056 |  | 
 | 18057 | 	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
 | 18058 | 	      hardcode_libdir_separator_CXX=: | 
 | 18059 |  | 
 | 18060 | 	      # Commands to make compiler produce verbose output that lists | 
 | 18061 | 	      # what "hidden" libraries, object files and flags are used when | 
 | 18062 | 	      # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18063 | 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18064 |  | 
 | 18065 | 	    else | 
 | 18066 | 	      # FIXME: insert proper C++ library support | 
 | 18067 | 	      ld_shlibs_CXX=no | 
 | 18068 | 	    fi | 
 | 18069 | 	    ;; | 
 | 18070 |         esac | 
 | 18071 |         ;; | 
 | 18072 |  | 
 | 18073 |       psos*) | 
 | 18074 |         # FIXME: insert proper C++ library support | 
 | 18075 |         ld_shlibs_CXX=no | 
 | 18076 |         ;; | 
 | 18077 |  | 
 | 18078 |       sunos4*) | 
 | 18079 |         case $cc_basename in | 
 | 18080 |           CC*) | 
 | 18081 | 	    # Sun C++ 4.x | 
 | 18082 | 	    # FIXME: insert proper C++ library support | 
 | 18083 | 	    ld_shlibs_CXX=no | 
 | 18084 | 	    ;; | 
 | 18085 |           lcc*) | 
 | 18086 | 	    # Lucid | 
 | 18087 | 	    # FIXME: insert proper C++ library support | 
 | 18088 | 	    ld_shlibs_CXX=no | 
 | 18089 | 	    ;; | 
 | 18090 |           *) | 
 | 18091 | 	    # FIXME: insert proper C++ library support | 
 | 18092 | 	    ld_shlibs_CXX=no | 
 | 18093 | 	    ;; | 
 | 18094 |         esac | 
 | 18095 |         ;; | 
 | 18096 |  | 
 | 18097 |       solaris*) | 
 | 18098 |         case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18099 |           CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18100 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 18101 |             archive_cmds_need_lc_CXX=yes | 
 | 18102 | 	    no_undefined_flag_CXX=' -zdefs' | 
 | 18103 | 	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
 | 18104 | 	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
 | 18105 | 	      $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' | 
 | 18106 |  | 
 | 18107 | 	    hardcode_libdir_flag_spec_CXX='-R$libdir' | 
 | 18108 | 	    hardcode_shlibpath_var_CXX=no | 
 | 18109 | 	    case $host_os in | 
 | 18110 | 	      solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 18111 | 	      *) | 
 | 18112 | 		# The compiler driver will combine and reorder linker options, | 
 | 18113 | 		# but understands `-z linker_flag'. | 
 | 18114 | 	        # Supported since Solaris 2.6 (maybe 2.5.1?) | 
 | 18115 | 		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | 
 | 18116 | 	        ;; | 
 | 18117 | 	    esac | 
 | 18118 | 	    link_all_deplibs_CXX=yes | 
 | 18119 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18120 | 	    output_verbose_link_cmd='func_echo_all' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18121 |  | 
 | 18122 | 	    # Archives containing C++ object files must be created using | 
 | 18123 | 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
 | 18124 | 	    # necessary to make sure instantiated templates are included | 
 | 18125 | 	    # in the archive. | 
 | 18126 | 	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
 | 18127 | 	    ;; | 
 | 18128 |           gcx*) | 
 | 18129 | 	    # Green Hills C++ Compiler | 
 | 18130 | 	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 18131 |  | 
 | 18132 | 	    # The C++ compiler must be used to create the archive. | 
 | 18133 | 	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
 | 18134 | 	    ;; | 
 | 18135 |           *) | 
 | 18136 | 	    # GNU C++ compiler with Solaris linker | 
 | 18137 | 	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
 | 18138 | 	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
 | 18139 | 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18140 | 	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18141 | 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18142 | 		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18143 |  | 
 | 18144 | 	        # Commands to make compiler produce verbose output that lists | 
 | 18145 | 	        # what "hidden" libraries, object files and flags are used when | 
 | 18146 | 	        # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18147 | 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18148 | 	      else | 
 | 18149 | 	        # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
 | 18150 | 	        # platform. | 
 | 18151 | 	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
 | 18152 | 	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
 | 18153 | 		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
 | 18154 |  | 
 | 18155 | 	        # Commands to make compiler produce verbose output that lists | 
 | 18156 | 	        # what "hidden" libraries, object files and flags are used when | 
 | 18157 | 	        # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18158 | 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18159 | 	      fi | 
 | 18160 |  | 
 | 18161 | 	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
 | 18162 | 	      case $host_os in | 
 | 18163 | 		solaris2.[0-5] | solaris2.[0-5].*) ;; | 
 | 18164 | 		*) | 
 | 18165 | 		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
 | 18166 | 		  ;; | 
 | 18167 | 	      esac | 
 | 18168 | 	    fi | 
 | 18169 | 	    ;; | 
 | 18170 |         esac | 
 | 18171 |         ;; | 
 | 18172 |  | 
 | 18173 |     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
 | 18174 |       no_undefined_flag_CXX='${wl}-z,text' | 
 | 18175 |       archive_cmds_need_lc_CXX=no | 
 | 18176 |       hardcode_shlibpath_var_CXX=no | 
 | 18177 |       runpath_var='LD_RUN_PATH' | 
 | 18178 |  | 
 | 18179 |       case $cc_basename in | 
 | 18180 |         CC*) | 
 | 18181 | 	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18182 | 	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18183 | 	  ;; | 
 | 18184 | 	*) | 
 | 18185 | 	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18186 | 	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18187 | 	  ;; | 
 | 18188 |       esac | 
 | 18189 |       ;; | 
 | 18190 |  | 
 | 18191 |       sysv5* | sco3.2v5* | sco5v6*) | 
 | 18192 | 	# Note: We can NOT use -z defs as we might desire, because we do not | 
 | 18193 | 	# link with -lc, and that would cause any symbols used from libc to | 
 | 18194 | 	# always be unresolved, which means just about no library would | 
 | 18195 | 	# ever link correctly.  If we're not using GNU ld we use -z text | 
 | 18196 | 	# though, which does catch some bad symbols but isn't as heavy-handed | 
 | 18197 | 	# as -z defs. | 
 | 18198 | 	no_undefined_flag_CXX='${wl}-z,text' | 
 | 18199 | 	allow_undefined_flag_CXX='${wl}-z,nodefs' | 
 | 18200 | 	archive_cmds_need_lc_CXX=no | 
 | 18201 | 	hardcode_shlibpath_var_CXX=no | 
 | 18202 | 	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | 
 | 18203 | 	hardcode_libdir_separator_CXX=':' | 
 | 18204 | 	link_all_deplibs_CXX=yes | 
 | 18205 | 	export_dynamic_flag_spec_CXX='${wl}-Bexport' | 
 | 18206 | 	runpath_var='LD_RUN_PATH' | 
 | 18207 |  | 
 | 18208 | 	case $cc_basename in | 
 | 18209 |           CC*) | 
 | 18210 | 	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18211 | 	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18212 | 	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | 
 | 18213 | 	      '"$old_archive_cmds_CXX" | 
 | 18214 | 	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | 
 | 18215 | 	      '"$reload_cmds_CXX" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18216 | 	    ;; | 
 | 18217 | 	  *) | 
 | 18218 | 	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18219 | 	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
 | 18220 | 	    ;; | 
 | 18221 | 	esac | 
 | 18222 |       ;; | 
 | 18223 |  | 
 | 18224 |       tandem*) | 
 | 18225 |         case $cc_basename in | 
 | 18226 |           NCC*) | 
 | 18227 | 	    # NonStop-UX NCC 3.20 | 
 | 18228 | 	    # FIXME: insert proper C++ library support | 
 | 18229 | 	    ld_shlibs_CXX=no | 
 | 18230 | 	    ;; | 
 | 18231 |           *) | 
 | 18232 | 	    # FIXME: insert proper C++ library support | 
 | 18233 | 	    ld_shlibs_CXX=no | 
 | 18234 | 	    ;; | 
 | 18235 |         esac | 
 | 18236 |         ;; | 
 | 18237 |  | 
 | 18238 |       vxworks*) | 
 | 18239 |         # FIXME: insert proper C++ library support | 
 | 18240 |         ld_shlibs_CXX=no | 
 | 18241 |         ;; | 
 | 18242 |  | 
 | 18243 |       *) | 
 | 18244 |         # FIXME: insert proper C++ library support | 
 | 18245 |         ld_shlibs_CXX=no | 
 | 18246 |         ;; | 
 | 18247 |     esac | 
 | 18248 |  | 
 | 18249 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
 | 18250 | $as_echo "$ld_shlibs_CXX" >&6; } | 
 | 18251 |     test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 18252 |  | 
 | 18253 |     GCC_CXX="$GXX" | 
 | 18254 |     LD_CXX="$LD" | 
 | 18255 |  | 
 | 18256 |     ## CAVEAT EMPTOR: | 
 | 18257 |     ## There is no encapsulation within the following macros, do not change | 
 | 18258 |     ## the running order or otherwise move them around unless you know exactly | 
 | 18259 |     ## what you are doing... | 
 | 18260 |     # Dependencies to place before and after the object being linked: | 
 | 18261 | predep_objects_CXX= | 
 | 18262 | postdep_objects_CXX= | 
 | 18263 | predeps_CXX= | 
 | 18264 | postdeps_CXX= | 
 | 18265 | compiler_lib_search_path_CXX= | 
 | 18266 |  | 
 | 18267 | cat > conftest.$ac_ext <<_LT_EOF | 
 | 18268 | class Foo | 
 | 18269 | { | 
 | 18270 | public: | 
 | 18271 |   Foo (void) { a = 0; } | 
 | 18272 | private: | 
 | 18273 |   int a; | 
 | 18274 | }; | 
 | 18275 | _LT_EOF | 
 | 18276 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18277 |  | 
 | 18278 | _lt_libdeps_save_CFLAGS=$CFLAGS | 
 | 18279 | case "$CC $CFLAGS " in #( | 
 | 18280 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | 
 | 18281 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 18282 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18283 | esac | 
 | 18284 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18285 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 18286 |   (eval $ac_compile) 2>&5 | 
 | 18287 |   ac_status=$? | 
 | 18288 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 18289 |   test $ac_status = 0; }; then | 
 | 18290 |   # Parse the compiler output and extract the necessary | 
 | 18291 |   # objects, libraries and library flags. | 
 | 18292 |  | 
 | 18293 |   # Sentinel used to keep track of whether or not we are before | 
 | 18294 |   # the conftest object file. | 
 | 18295 |   pre_test_object_deps_done=no | 
 | 18296 |  | 
 | 18297 |   for p in `eval "$output_verbose_link_cmd"`; do | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18298 |     case ${prev}${p} in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18299 |  | 
 | 18300 |     -L* | -R* | -l*) | 
 | 18301 |        # Some compilers place space between "-{L,R}" and the path. | 
 | 18302 |        # Remove the space. | 
 | 18303 |        if test $p = "-L" || | 
 | 18304 |           test $p = "-R"; then | 
 | 18305 | 	 prev=$p | 
 | 18306 | 	 continue | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18307 |        fi | 
 | 18308 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18309 |        # Expand the sysroot to ease extracting the directories later. | 
 | 18310 |        if test -z "$prev"; then | 
 | 18311 |          case $p in | 
 | 18312 |          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | 
 | 18313 |          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | 
 | 18314 |          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | 
 | 18315 |          esac | 
 | 18316 |        fi | 
 | 18317 |        case $p in | 
 | 18318 |        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | 
 | 18319 |        esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18320 |        if test "$pre_test_object_deps_done" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18321 | 	 case ${prev} in | 
 | 18322 | 	 -L | -R) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18323 | 	   # Internal compiler library paths should come after those | 
 | 18324 | 	   # provided the user.  The postdeps already come after the | 
 | 18325 | 	   # user supplied libs so there is no need to process them. | 
 | 18326 | 	   if test -z "$compiler_lib_search_path_CXX"; then | 
 | 18327 | 	     compiler_lib_search_path_CXX="${prev}${p}" | 
 | 18328 | 	   else | 
 | 18329 | 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
 | 18330 | 	   fi | 
 | 18331 | 	   ;; | 
 | 18332 | 	 # The "-l" case would never come before the object being | 
 | 18333 | 	 # linked, so don't bother handling this case. | 
 | 18334 | 	 esac | 
 | 18335 |        else | 
 | 18336 | 	 if test -z "$postdeps_CXX"; then | 
 | 18337 | 	   postdeps_CXX="${prev}${p}" | 
 | 18338 | 	 else | 
 | 18339 | 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
 | 18340 | 	 fi | 
 | 18341 |        fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18342 |        prev= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18343 |        ;; | 
 | 18344 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18345 |     *.lto.$objext) ;; # Ignore GCC LTO objects | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18346 |     *.$objext) | 
 | 18347 |        # This assumes that the test object file only shows up | 
 | 18348 |        # once in the compiler output. | 
 | 18349 |        if test "$p" = "conftest.$objext"; then | 
 | 18350 | 	 pre_test_object_deps_done=yes | 
 | 18351 | 	 continue | 
 | 18352 |        fi | 
 | 18353 |  | 
 | 18354 |        if test "$pre_test_object_deps_done" = no; then | 
 | 18355 | 	 if test -z "$predep_objects_CXX"; then | 
 | 18356 | 	   predep_objects_CXX="$p" | 
 | 18357 | 	 else | 
 | 18358 | 	   predep_objects_CXX="$predep_objects_CXX $p" | 
 | 18359 | 	 fi | 
 | 18360 |        else | 
 | 18361 | 	 if test -z "$postdep_objects_CXX"; then | 
 | 18362 | 	   postdep_objects_CXX="$p" | 
 | 18363 | 	 else | 
 | 18364 | 	   postdep_objects_CXX="$postdep_objects_CXX $p" | 
 | 18365 | 	 fi | 
 | 18366 |        fi | 
 | 18367 |        ;; | 
 | 18368 |  | 
 | 18369 |     *) ;; # Ignore the rest. | 
 | 18370 |  | 
 | 18371 |     esac | 
 | 18372 |   done | 
 | 18373 |  | 
 | 18374 |   # Clean up. | 
 | 18375 |   rm -f a.out a.exe | 
 | 18376 | else | 
 | 18377 |   echo "libtool.m4: error: problem compiling CXX test program" | 
 | 18378 | fi | 
 | 18379 |  | 
 | 18380 | $RM -f confest.$objext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18381 | CFLAGS=$_lt_libdeps_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18382 |  | 
 | 18383 | # PORTME: override above test on systems where it is broken | 
 | 18384 | case $host_os in | 
 | 18385 | interix[3-9]*) | 
 | 18386 |   # Interix 3.5 installs completely hosed .la files for C++, so rather than | 
 | 18387 |   # hack all around it, let's just trust "g++" to DTRT. | 
 | 18388 |   predep_objects_CXX= | 
 | 18389 |   postdep_objects_CXX= | 
 | 18390 |   postdeps_CXX= | 
 | 18391 |   ;; | 
 | 18392 |  | 
 | 18393 | linux*) | 
 | 18394 |   case `$CC -V 2>&1 | sed 5q` in | 
 | 18395 |   *Sun\ C*) | 
 | 18396 |     # Sun C++ 5.9 | 
 | 18397 |  | 
 | 18398 |     # The more standards-conforming stlport4 library is | 
 | 18399 |     # incompatible with the Cstd library. Avoid specifying | 
 | 18400 |     # it if it's in CXXFLAGS. Ignore libCrun as | 
 | 18401 |     # -library=stlport4 depends on it. | 
 | 18402 |     case " $CXX $CXXFLAGS " in | 
 | 18403 |     *" -library=stlport4 "*) | 
 | 18404 |       solaris_use_stlport4=yes | 
 | 18405 |       ;; | 
 | 18406 |     esac | 
 | 18407 |  | 
 | 18408 |     if test "$solaris_use_stlport4" != yes; then | 
 | 18409 |       postdeps_CXX='-library=Cstd -library=Crun' | 
 | 18410 |     fi | 
 | 18411 |     ;; | 
 | 18412 |   esac | 
 | 18413 |   ;; | 
 | 18414 |  | 
 | 18415 | solaris*) | 
 | 18416 |   case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18417 |   CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18418 |     # The more standards-conforming stlport4 library is | 
 | 18419 |     # incompatible with the Cstd library. Avoid specifying | 
 | 18420 |     # it if it's in CXXFLAGS. Ignore libCrun as | 
 | 18421 |     # -library=stlport4 depends on it. | 
 | 18422 |     case " $CXX $CXXFLAGS " in | 
 | 18423 |     *" -library=stlport4 "*) | 
 | 18424 |       solaris_use_stlport4=yes | 
 | 18425 |       ;; | 
 | 18426 |     esac | 
 | 18427 |  | 
 | 18428 |     # Adding this requires a known-good setup of shared libraries for | 
 | 18429 |     # Sun compiler versions before 5.6, else PIC objects from an old | 
 | 18430 |     # archive will be linked into the output, leading to subtle bugs. | 
 | 18431 |     if test "$solaris_use_stlport4" != yes; then | 
 | 18432 |       postdeps_CXX='-library=Cstd -library=Crun' | 
 | 18433 |     fi | 
 | 18434 |     ;; | 
 | 18435 |   esac | 
 | 18436 |   ;; | 
 | 18437 | esac | 
 | 18438 |  | 
 | 18439 |  | 
 | 18440 | case " $postdeps_CXX " in | 
 | 18441 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
 | 18442 | esac | 
 | 18443 |  compiler_lib_search_dirs_CXX= | 
 | 18444 | if test -n "${compiler_lib_search_path_CXX}"; then | 
 | 18445 |  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 
 | 18446 | fi | 
 | 18447 |  | 
 | 18448 |  | 
 | 18449 |  | 
 | 18450 |  | 
 | 18451 |  | 
 | 18452 |  | 
 | 18453 |  | 
 | 18454 |  | 
 | 18455 |  | 
 | 18456 |  | 
 | 18457 |  | 
 | 18458 |  | 
 | 18459 |  | 
 | 18460 |  | 
 | 18461 |  | 
 | 18462 |  | 
 | 18463 |  | 
 | 18464 |  | 
 | 18465 |  | 
 | 18466 |  | 
 | 18467 |  | 
 | 18468 |  | 
 | 18469 |  | 
 | 18470 |  | 
 | 18471 |  | 
 | 18472 |  | 
 | 18473 |  | 
 | 18474 |  | 
 | 18475 |  | 
 | 18476 |  | 
 | 18477 |  | 
 | 18478 |     lt_prog_compiler_wl_CXX= | 
 | 18479 | lt_prog_compiler_pic_CXX= | 
 | 18480 | lt_prog_compiler_static_CXX= | 
 | 18481 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18482 |  | 
 | 18483 |   # C++ specific cases for pic, static, wl, etc. | 
 | 18484 |   if test "$GXX" = yes; then | 
 | 18485 |     lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18486 |     lt_prog_compiler_static_CXX='-static' | 
 | 18487 |  | 
 | 18488 |     case $host_os in | 
 | 18489 |     aix*) | 
 | 18490 |       # All AIX code is PIC. | 
 | 18491 |       if test "$host_cpu" = ia64; then | 
 | 18492 | 	# AIX 5 now supports IA64 processor | 
 | 18493 | 	lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18494 |       fi | 
 | 18495 |       ;; | 
 | 18496 |  | 
 | 18497 |     amigaos*) | 
 | 18498 |       case $host_cpu in | 
 | 18499 |       powerpc) | 
 | 18500 |             # see comment about AmigaOS4 .so support | 
 | 18501 |             lt_prog_compiler_pic_CXX='-fPIC' | 
 | 18502 |         ;; | 
 | 18503 |       m68k) | 
 | 18504 |             # FIXME: we need at least 68020 code to build shared libraries, but | 
 | 18505 |             # adding the `-m68020' flag to GCC prevents building anything better, | 
 | 18506 |             # like `-m68040'. | 
 | 18507 |             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
 | 18508 |         ;; | 
 | 18509 |       esac | 
 | 18510 |       ;; | 
 | 18511 |  | 
 | 18512 |     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
 | 18513 |       # PIC is the default for these OSes. | 
 | 18514 |       ;; | 
 | 18515 |     mingw* | cygwin* | os2* | pw32* | cegcc*) | 
 | 18516 |       # This hack is so that the source file can tell whether it is being | 
 | 18517 |       # built for inclusion in a dll (and should export symbols for example). | 
 | 18518 |       # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
 | 18519 |       # (--disable-auto-import) libraries | 
 | 18520 |       lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 18521 |       ;; | 
 | 18522 |     darwin* | rhapsody*) | 
 | 18523 |       # PIC is the default on this platform | 
 | 18524 |       # Common symbols not allowed in MH_DYLIB files | 
 | 18525 |       lt_prog_compiler_pic_CXX='-fno-common' | 
 | 18526 |       ;; | 
 | 18527 |     *djgpp*) | 
 | 18528 |       # DJGPP does not support shared libraries at all | 
 | 18529 |       lt_prog_compiler_pic_CXX= | 
 | 18530 |       ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18531 |     haiku*) | 
 | 18532 |       # PIC is the default for Haiku. | 
 | 18533 |       # The "-static" flag exists, but is broken. | 
 | 18534 |       lt_prog_compiler_static_CXX= | 
 | 18535 |       ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18536 |     interix[3-9]*) | 
 | 18537 |       # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
 | 18538 |       # Instead, we relocate shared libraries at runtime. | 
 | 18539 |       ;; | 
 | 18540 |     sysv4*MP*) | 
 | 18541 |       if test -d /usr/nec; then | 
 | 18542 | 	lt_prog_compiler_pic_CXX=-Kconform_pic | 
 | 18543 |       fi | 
 | 18544 |       ;; | 
 | 18545 |     hpux*) | 
 | 18546 |       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
 | 18547 |       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
 | 18548 |       # sets the default TLS model and affects inlining. | 
 | 18549 |       case $host_cpu in | 
 | 18550 |       hppa*64*) | 
 | 18551 | 	;; | 
 | 18552 |       *) | 
 | 18553 | 	lt_prog_compiler_pic_CXX='-fPIC' | 
 | 18554 | 	;; | 
 | 18555 |       esac | 
 | 18556 |       ;; | 
 | 18557 |     *qnx* | *nto*) | 
 | 18558 |       # QNX uses GNU C++, but need to define -shared option too, otherwise | 
 | 18559 |       # it will coredump. | 
 | 18560 |       lt_prog_compiler_pic_CXX='-fPIC -shared' | 
 | 18561 |       ;; | 
 | 18562 |     *) | 
 | 18563 |       lt_prog_compiler_pic_CXX='-fPIC' | 
 | 18564 |       ;; | 
 | 18565 |     esac | 
 | 18566 |   else | 
 | 18567 |     case $host_os in | 
 | 18568 |       aix[4-9]*) | 
 | 18569 | 	# All AIX code is PIC. | 
 | 18570 | 	if test "$host_cpu" = ia64; then | 
 | 18571 | 	  # AIX 5 now supports IA64 processor | 
 | 18572 | 	  lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18573 | 	else | 
 | 18574 | 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
 | 18575 | 	fi | 
 | 18576 | 	;; | 
 | 18577 |       chorus*) | 
 | 18578 | 	case $cc_basename in | 
 | 18579 | 	cxch68*) | 
 | 18580 | 	  # Green Hills C++ Compiler | 
 | 18581 | 	  # _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" | 
 | 18582 | 	  ;; | 
 | 18583 | 	esac | 
 | 18584 | 	;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18585 |       mingw* | cygwin* | os2* | pw32* | cegcc*) | 
 | 18586 | 	# This hack is so that the source file can tell whether it is being | 
 | 18587 | 	# built for inclusion in a dll (and should export symbols for example). | 
 | 18588 | 	lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
 | 18589 | 	;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18590 |       dgux*) | 
 | 18591 | 	case $cc_basename in | 
 | 18592 | 	  ec++*) | 
 | 18593 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18594 | 	    ;; | 
 | 18595 | 	  ghcx*) | 
 | 18596 | 	    # Green Hills C++ Compiler | 
 | 18597 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 18598 | 	    ;; | 
 | 18599 | 	  *) | 
 | 18600 | 	    ;; | 
 | 18601 | 	esac | 
 | 18602 | 	;; | 
 | 18603 |       freebsd* | dragonfly*) | 
 | 18604 | 	# FreeBSD uses GNU C++ | 
 | 18605 | 	;; | 
 | 18606 |       hpux9* | hpux10* | hpux11*) | 
 | 18607 | 	case $cc_basename in | 
 | 18608 | 	  CC*) | 
 | 18609 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18610 | 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
 | 18611 | 	    if test "$host_cpu" != ia64; then | 
 | 18612 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 18613 | 	    fi | 
 | 18614 | 	    ;; | 
 | 18615 | 	  aCC*) | 
 | 18616 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18617 | 	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
 | 18618 | 	    case $host_cpu in | 
 | 18619 | 	    hppa*64*|ia64*) | 
 | 18620 | 	      # +Z the default | 
 | 18621 | 	      ;; | 
 | 18622 | 	    *) | 
 | 18623 | 	      lt_prog_compiler_pic_CXX='+Z' | 
 | 18624 | 	      ;; | 
 | 18625 | 	    esac | 
 | 18626 | 	    ;; | 
 | 18627 | 	  *) | 
 | 18628 | 	    ;; | 
 | 18629 | 	esac | 
 | 18630 | 	;; | 
 | 18631 |       interix*) | 
 | 18632 | 	# This is c89, which is MS Visual C++ (no shared libs) | 
 | 18633 | 	# Anyone wants to do a port? | 
 | 18634 | 	;; | 
 | 18635 |       irix5* | irix6* | nonstopux*) | 
 | 18636 | 	case $cc_basename in | 
 | 18637 | 	  CC*) | 
 | 18638 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18639 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 18640 | 	    # CC pic flag -KPIC is the default. | 
 | 18641 | 	    ;; | 
 | 18642 | 	  *) | 
 | 18643 | 	    ;; | 
 | 18644 | 	esac | 
 | 18645 | 	;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18646 |       linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18647 | 	case $cc_basename in | 
 | 18648 | 	  KCC*) | 
 | 18649 | 	    # KAI C++ Compiler | 
 | 18650 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 18651 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 18652 | 	    ;; | 
 | 18653 | 	  ecpc* ) | 
 | 18654 | 	    # old Intel C++ for x86_64 which still supported -KPIC. | 
 | 18655 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18656 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18657 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 18658 | 	    ;; | 
 | 18659 | 	  icpc* ) | 
 | 18660 | 	    # Intel C++, used to be incompatible with GCC. | 
 | 18661 | 	    # ICC 10 doesn't accept -KPIC any more. | 
 | 18662 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18663 | 	    lt_prog_compiler_pic_CXX='-fPIC' | 
 | 18664 | 	    lt_prog_compiler_static_CXX='-static' | 
 | 18665 | 	    ;; | 
 | 18666 | 	  pgCC* | pgcpp*) | 
 | 18667 | 	    # Portland Group C++ compiler | 
 | 18668 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18669 | 	    lt_prog_compiler_pic_CXX='-fpic' | 
 | 18670 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18671 | 	    ;; | 
 | 18672 | 	  cxx*) | 
 | 18673 | 	    # Compaq C++ | 
 | 18674 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 18675 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 18676 | 	    lt_prog_compiler_pic_CXX= | 
 | 18677 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 18678 | 	    ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18679 | 	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | 
 | 18680 | 	    # IBM XL 8.0, 9.0 on PPC and BlueGene | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18681 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18682 | 	    lt_prog_compiler_pic_CXX='-qpic' | 
 | 18683 | 	    lt_prog_compiler_static_CXX='-qstaticlink' | 
 | 18684 | 	    ;; | 
 | 18685 | 	  *) | 
 | 18686 | 	    case `$CC -V 2>&1 | sed 5q` in | 
 | 18687 | 	    *Sun\ C*) | 
 | 18688 | 	      # Sun C++ 5.9 | 
 | 18689 | 	      lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18690 | 	      lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18691 | 	      lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 18692 | 	      ;; | 
 | 18693 | 	    esac | 
 | 18694 | 	    ;; | 
 | 18695 | 	esac | 
 | 18696 | 	;; | 
 | 18697 |       lynxos*) | 
 | 18698 | 	;; | 
 | 18699 |       m88k*) | 
 | 18700 | 	;; | 
 | 18701 |       mvs*) | 
 | 18702 | 	case $cc_basename in | 
 | 18703 | 	  cxx*) | 
 | 18704 | 	    lt_prog_compiler_pic_CXX='-W c,exportall' | 
 | 18705 | 	    ;; | 
 | 18706 | 	  *) | 
 | 18707 | 	    ;; | 
 | 18708 | 	esac | 
 | 18709 | 	;; | 
 | 18710 |       netbsd*) | 
 | 18711 | 	;; | 
 | 18712 |       *qnx* | *nto*) | 
 | 18713 |         # QNX uses GNU C++, but need to define -shared option too, otherwise | 
 | 18714 |         # it will coredump. | 
 | 18715 |         lt_prog_compiler_pic_CXX='-fPIC -shared' | 
 | 18716 |         ;; | 
 | 18717 |       osf3* | osf4* | osf5*) | 
 | 18718 | 	case $cc_basename in | 
 | 18719 | 	  KCC*) | 
 | 18720 | 	    lt_prog_compiler_wl_CXX='--backend -Wl,' | 
 | 18721 | 	    ;; | 
 | 18722 | 	  RCC*) | 
 | 18723 | 	    # Rational C++ 2.4.1 | 
 | 18724 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 18725 | 	    ;; | 
 | 18726 | 	  cxx*) | 
 | 18727 | 	    # Digital/Compaq C++ | 
 | 18728 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18729 | 	    # Make sure the PIC flag is empty.  It appears that all Alpha | 
 | 18730 | 	    # Linux and Compaq Tru64 Unix objects are PIC. | 
 | 18731 | 	    lt_prog_compiler_pic_CXX= | 
 | 18732 | 	    lt_prog_compiler_static_CXX='-non_shared' | 
 | 18733 | 	    ;; | 
 | 18734 | 	  *) | 
 | 18735 | 	    ;; | 
 | 18736 | 	esac | 
 | 18737 | 	;; | 
 | 18738 |       psos*) | 
 | 18739 | 	;; | 
 | 18740 |       solaris*) | 
 | 18741 | 	case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18742 | 	  CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18743 | 	    # Sun C++ 4.2, 5.x and Centerline C++ | 
 | 18744 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18745 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18746 | 	    lt_prog_compiler_wl_CXX='-Qoption ld ' | 
 | 18747 | 	    ;; | 
 | 18748 | 	  gcx*) | 
 | 18749 | 	    # Green Hills C++ Compiler | 
 | 18750 | 	    lt_prog_compiler_pic_CXX='-PIC' | 
 | 18751 | 	    ;; | 
 | 18752 | 	  *) | 
 | 18753 | 	    ;; | 
 | 18754 | 	esac | 
 | 18755 | 	;; | 
 | 18756 |       sunos4*) | 
 | 18757 | 	case $cc_basename in | 
 | 18758 | 	  CC*) | 
 | 18759 | 	    # Sun C++ 4.x | 
 | 18760 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 18761 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18762 | 	    ;; | 
 | 18763 | 	  lcc*) | 
 | 18764 | 	    # Lucid | 
 | 18765 | 	    lt_prog_compiler_pic_CXX='-pic' | 
 | 18766 | 	    ;; | 
 | 18767 | 	  *) | 
 | 18768 | 	    ;; | 
 | 18769 | 	esac | 
 | 18770 | 	;; | 
 | 18771 |       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
 | 18772 | 	case $cc_basename in | 
 | 18773 | 	  CC*) | 
 | 18774 | 	    lt_prog_compiler_wl_CXX='-Wl,' | 
 | 18775 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18776 | 	    lt_prog_compiler_static_CXX='-Bstatic' | 
 | 18777 | 	    ;; | 
 | 18778 | 	esac | 
 | 18779 | 	;; | 
 | 18780 |       tandem*) | 
 | 18781 | 	case $cc_basename in | 
 | 18782 | 	  NCC*) | 
 | 18783 | 	    # NonStop-UX NCC 3.20 | 
 | 18784 | 	    lt_prog_compiler_pic_CXX='-KPIC' | 
 | 18785 | 	    ;; | 
 | 18786 | 	  *) | 
 | 18787 | 	    ;; | 
 | 18788 | 	esac | 
 | 18789 | 	;; | 
 | 18790 |       vxworks*) | 
 | 18791 | 	;; | 
 | 18792 |       *) | 
 | 18793 | 	lt_prog_compiler_can_build_shared_CXX=no | 
 | 18794 | 	;; | 
 | 18795 |     esac | 
 | 18796 |   fi | 
 | 18797 |  | 
 | 18798 | case $host_os in | 
 | 18799 |   # For platforms which do not support PIC, -DPIC is meaningless: | 
 | 18800 |   *djgpp*) | 
 | 18801 |     lt_prog_compiler_pic_CXX= | 
 | 18802 |     ;; | 
 | 18803 |   *) | 
 | 18804 |     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 18805 |     ;; | 
 | 18806 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18807 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
 | 18809 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
 | 18810 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | 
 | 18811 |   $as_echo_n "(cached) " >&6 | 
 | 18812 | else | 
 | 18813 |   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | 
 | 18814 | fi | 
 | 18815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | 
 | 18816 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | 
 | 18817 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18818 |  | 
 | 18819 | # | 
 | 18820 | # Check to make sure the PIC flag actually works. | 
 | 18821 | # | 
 | 18822 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
 | 18823 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
 | 18824 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18825 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18826 |   $as_echo_n "(cached) " >&6 | 
 | 18827 | else | 
 | 18828 |   lt_cv_prog_compiler_pic_works_CXX=no | 
 | 18829 |    ac_outfile=conftest.$ac_objext | 
 | 18830 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 18831 |    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
 | 18832 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 18833 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 18834 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 18835 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 18836 |    # The option is referenced via a variable to avoid confusing sed. | 
 | 18837 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 18838 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 18839 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 18840 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18841 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18842 |    (eval "$lt_compile" 2>conftest.err) | 
 | 18843 |    ac_status=$? | 
 | 18844 |    cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18845 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18846 |    if (exit $ac_status) && test -s "$ac_outfile"; then | 
 | 18847 |      # The compiler can only warn and ignore the option if not recognized | 
 | 18848 |      # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18849 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18850 |      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 18851 |      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
 | 18852 |        lt_cv_prog_compiler_pic_works_CXX=yes | 
 | 18853 |      fi | 
 | 18854 |    fi | 
 | 18855 |    $RM conftest* | 
 | 18856 |  | 
 | 18857 | fi | 
 | 18858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | 
 | 18859 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | 
 | 18860 |  | 
 | 18861 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | 
 | 18862 |     case $lt_prog_compiler_pic_CXX in | 
 | 18863 |      "" | " "*) ;; | 
 | 18864 |      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
 | 18865 |      esac | 
 | 18866 | else | 
 | 18867 |     lt_prog_compiler_pic_CXX= | 
 | 18868 |      lt_prog_compiler_can_build_shared_CXX=no | 
 | 18869 | fi | 
 | 18870 |  | 
 | 18871 | fi | 
 | 18872 |  | 
 | 18873 |  | 
 | 18874 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18875 |  | 
 | 18876 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18877 | # | 
 | 18878 | # Check to make sure the static flag actually works. | 
 | 18879 | # | 
 | 18880 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | 
 | 18881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
 | 18882 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18883 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18884 |   $as_echo_n "(cached) " >&6 | 
 | 18885 | else | 
 | 18886 |   lt_cv_prog_compiler_static_works_CXX=no | 
 | 18887 |    save_LDFLAGS="$LDFLAGS" | 
 | 18888 |    LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
 | 18889 |    echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
 | 18890 |    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
 | 18891 |      # The linker can only warn and ignore the option if not recognized | 
 | 18892 |      # So say no if there are warnings | 
 | 18893 |      if test -s conftest.err; then | 
 | 18894 |        # Append any errors to the config.log. | 
 | 18895 |        cat conftest.err 1>&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18896 |        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18897 |        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
 | 18898 |        if diff conftest.exp conftest.er2 >/dev/null; then | 
 | 18899 |          lt_cv_prog_compiler_static_works_CXX=yes | 
 | 18900 |        fi | 
 | 18901 |      else | 
 | 18902 |        lt_cv_prog_compiler_static_works_CXX=yes | 
 | 18903 |      fi | 
 | 18904 |    fi | 
 | 18905 |    $RM -r conftest* | 
 | 18906 |    LDFLAGS="$save_LDFLAGS" | 
 | 18907 |  | 
 | 18908 | fi | 
 | 18909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | 
 | 18910 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | 
 | 18911 |  | 
 | 18912 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | 
 | 18913 |     : | 
 | 18914 | else | 
 | 18915 |     lt_prog_compiler_static_CXX= | 
 | 18916 | fi | 
 | 18917 |  | 
 | 18918 |  | 
 | 18919 |  | 
 | 18920 |  | 
 | 18921 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 18922 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18923 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18924 |   $as_echo_n "(cached) " >&6 | 
 | 18925 | else | 
 | 18926 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 18927 |    $RM -r conftest 2>/dev/null | 
 | 18928 |    mkdir conftest | 
 | 18929 |    cd conftest | 
 | 18930 |    mkdir out | 
 | 18931 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 18932 |  | 
 | 18933 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 18934 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 18935 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 18936 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 18937 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 18938 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 18939 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 18940 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 18941 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18942 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18943 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 18944 |    ac_status=$? | 
 | 18945 |    cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18946 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18947 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 18948 |    then | 
 | 18949 |      # The compiler can only warn and ignore the option if not recognized | 
 | 18950 |      # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18951 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18952 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 18953 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
 | 18954 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 18955 |      fi | 
 | 18956 |    fi | 
 | 18957 |    chmod u+w . 2>&5 | 
 | 18958 |    $RM conftest* | 
 | 18959 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 18960 |    # template instantiation | 
 | 18961 |    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
 | 18962 |    $RM out/* && rmdir out | 
 | 18963 |    cd .. | 
 | 18964 |    $RM -r conftest | 
 | 18965 |    $RM conftest* | 
 | 18966 |  | 
 | 18967 | fi | 
 | 18968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 18969 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
 | 18970 |  | 
 | 18971 |  | 
 | 18972 |  | 
 | 18973 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
 | 18974 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18975 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18976 |   $as_echo_n "(cached) " >&6 | 
 | 18977 | else | 
 | 18978 |   lt_cv_prog_compiler_c_o_CXX=no | 
 | 18979 |    $RM -r conftest 2>/dev/null | 
 | 18980 |    mkdir conftest | 
 | 18981 |    cd conftest | 
 | 18982 |    mkdir out | 
 | 18983 |    echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
 | 18984 |  | 
 | 18985 |    lt_compiler_flag="-o out/conftest2.$ac_objext" | 
 | 18986 |    # Insert the option either (1) after the last *FLAGS variable, or | 
 | 18987 |    # (2) before a word containing "conftest.", or (3) at the end. | 
 | 18988 |    # Note that $ac_compile itself does not contain backslashes and begins | 
 | 18989 |    # with a dollar sign (not a hyphen), so the echo should work correctly. | 
 | 18990 |    lt_compile=`echo "$ac_compile" | $SED \ | 
 | 18991 |    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
 | 18992 |    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
 | 18993 |    -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18994 |    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18995 |    (eval "$lt_compile" 2>out/conftest.err) | 
 | 18996 |    ac_status=$? | 
 | 18997 |    cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18998 |    echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18999 |    if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
 | 19000 |    then | 
 | 19001 |      # The compiler can only warn and ignore the option if not recognized | 
 | 19002 |      # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19003 |      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19004 |      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
 | 19005 |      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
 | 19006 |        lt_cv_prog_compiler_c_o_CXX=yes | 
 | 19007 |      fi | 
 | 19008 |    fi | 
 | 19009 |    chmod u+w . 2>&5 | 
 | 19010 |    $RM conftest* | 
 | 19011 |    # SGI C++ compiler will create directory out/ii_files/ for | 
 | 19012 |    # template instantiation | 
 | 19013 |    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
 | 19014 |    $RM out/* && rmdir out | 
 | 19015 |    cd .. | 
 | 19016 |    $RM -r conftest | 
 | 19017 |    $RM conftest* | 
 | 19018 |  | 
 | 19019 | fi | 
 | 19020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
 | 19021 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
 | 19022 |  | 
 | 19023 |  | 
 | 19024 |  | 
 | 19025 |  | 
 | 19026 | hard_links="nottested" | 
 | 19027 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
 | 19028 |   # do not overwrite the value of need_locks provided by the user | 
 | 19029 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
 | 19030 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
 | 19031 |   hard_links=yes | 
 | 19032 |   $RM conftest* | 
 | 19033 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19034 |   touch conftest.a | 
 | 19035 |   ln conftest.a conftest.b 2>&5 || hard_links=no | 
 | 19036 |   ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
 | 19037 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
 | 19038 | $as_echo "$hard_links" >&6; } | 
 | 19039 |   if test "$hard_links" = no; then | 
 | 19040 |     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
 | 19041 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
 | 19042 |     need_locks=warn | 
 | 19043 |   fi | 
 | 19044 | else | 
 | 19045 |   need_locks=no | 
 | 19046 | fi | 
 | 19047 |  | 
 | 19048 |  | 
 | 19049 |  | 
 | 19050 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
 | 19051 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
 | 19052 |  | 
 | 19053 |   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19054 |   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19055 |   case $host_os in | 
 | 19056 |   aix[4-9]*) | 
 | 19057 |     # If we're using GNU nm, then we don't want the "-C" option. | 
 | 19058 |     # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19059 |     # Also, AIX nm treats weak defined symbols like other global defined | 
 | 19060 |     # symbols, whereas GNU nm marks them as "W". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19061 |     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19062 |       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19063 |     else | 
 | 19064 |       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' | 
 | 19065 |     fi | 
 | 19066 |     ;; | 
 | 19067 |   pw32*) | 
 | 19068 |     export_symbols_cmds_CXX="$ltdll_cmds" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19069 |     ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19070 |   cygwin* | mingw* | cegcc*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19071 |     case $cc_basename in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19072 |     cl*) | 
 | 19073 |       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | 
 | 19074 |       ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19075 |     *) | 
 | 19076 |       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | 
 | 19077 |       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | 
 | 19078 |       ;; | 
 | 19079 |     esac | 
 | 19080 |     ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19081 |   *) | 
 | 19082 |     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19083 |     ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19084 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19085 |  | 
 | 19086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
 | 19087 | $as_echo "$ld_shlibs_CXX" >&6; } | 
 | 19088 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
 | 19089 |  | 
 | 19090 | with_gnu_ld_CXX=$with_gnu_ld | 
 | 19091 |  | 
 | 19092 |  | 
 | 19093 |  | 
 | 19094 |  | 
 | 19095 |  | 
 | 19096 |  | 
 | 19097 | # | 
 | 19098 | # Do we need to explicitly link libc? | 
 | 19099 | # | 
 | 19100 | case "x$archive_cmds_need_lc_CXX" in | 
 | 19101 | x|xyes) | 
 | 19102 |   # Assume -lc should be added | 
 | 19103 |   archive_cmds_need_lc_CXX=yes | 
 | 19104 |  | 
 | 19105 |   if test "$enable_shared" = yes && test "$GCC" = yes; then | 
 | 19106 |     case $archive_cmds_CXX in | 
 | 19107 |     *'~'*) | 
 | 19108 |       # FIXME: we may have to deal with multi-command sequences. | 
 | 19109 |       ;; | 
 | 19110 |     '$CC '*) | 
 | 19111 |       # Test whether the compiler implicitly links with -lc since on some | 
 | 19112 |       # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
 | 19113 |       # to ld, don't add -lc before -lgcc. | 
 | 19114 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
 | 19115 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19116 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19117 |   $as_echo_n "(cached) " >&6 | 
 | 19118 | else | 
 | 19119 |   $RM conftest* | 
 | 19120 | 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19121 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19122 | 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19123 |   (eval $ac_compile) 2>&5 | 
 | 19124 |   ac_status=$? | 
 | 19125 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 19126 |   test $ac_status = 0; } 2>conftest.err; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19127 | 	  soname=conftest | 
 | 19128 | 	  lib=conftest | 
 | 19129 | 	  libobjs=conftest.$ac_objext | 
 | 19130 | 	  deplibs= | 
 | 19131 | 	  wl=$lt_prog_compiler_wl_CXX | 
 | 19132 | 	  pic_flag=$lt_prog_compiler_pic_CXX | 
 | 19133 | 	  compiler_flags=-v | 
 | 19134 | 	  linker_flags=-v | 
 | 19135 | 	  verstring= | 
 | 19136 | 	  output_objdir=. | 
 | 19137 | 	  libname=conftest | 
 | 19138 | 	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
 | 19139 | 	  allow_undefined_flag_CXX= | 
 | 19140 | 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19141 |   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
 | 19142 |   ac_status=$? | 
 | 19143 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 19144 |   test $ac_status = 0; } | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19145 | 	  then | 
 | 19146 | 	    lt_cv_archive_cmds_need_lc_CXX=no | 
 | 19147 | 	  else | 
 | 19148 | 	    lt_cv_archive_cmds_need_lc_CXX=yes | 
 | 19149 | 	  fi | 
 | 19150 | 	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
 | 19151 | 	else | 
 | 19152 | 	  cat conftest.err 1>&5 | 
 | 19153 | 	fi | 
 | 19154 | 	$RM conftest* | 
 | 19155 |  | 
 | 19156 | fi | 
 | 19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | 
 | 19158 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | 
 | 19159 |       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19160 |       ;; | 
 | 19161 |     esac | 
 | 19162 |   fi | 
 | 19163 |   ;; | 
 | 19164 | esac | 
 | 19165 |  | 
 | 19166 |  | 
 | 19167 |  | 
 | 19168 |  | 
 | 19169 |  | 
 | 19170 |  | 
 | 19171 |  | 
 | 19172 |  | 
 | 19173 |  | 
 | 19174 |  | 
 | 19175 |  | 
 | 19176 |  | 
 | 19177 |  | 
 | 19178 |  | 
 | 19179 |  | 
 | 19180 |  | 
 | 19181 |  | 
 | 19182 |  | 
 | 19183 |  | 
 | 19184 |  | 
 | 19185 |  | 
 | 19186 |  | 
 | 19187 |  | 
 | 19188 |  | 
 | 19189 |  | 
 | 19190 |  | 
 | 19191 |  | 
 | 19192 |  | 
 | 19193 |  | 
 | 19194 |  | 
 | 19195 |  | 
 | 19196 |  | 
 | 19197 |  | 
 | 19198 |  | 
 | 19199 |  | 
 | 19200 |  | 
 | 19201 |  | 
 | 19202 |  | 
 | 19203 |  | 
 | 19204 |  | 
 | 19205 |  | 
 | 19206 |  | 
 | 19207 |  | 
 | 19208 |  | 
 | 19209 |  | 
 | 19210 |  | 
 | 19211 |  | 
 | 19212 |  | 
 | 19213 |  | 
 | 19214 |  | 
 | 19215 |  | 
 | 19216 |  | 
 | 19217 |  | 
 | 19218 |  | 
 | 19219 |  | 
 | 19220 |  | 
 | 19221 |  | 
 | 19222 |  | 
 | 19223 |  | 
 | 19224 |  | 
 | 19225 |  | 
 | 19226 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19227 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
 | 19228 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
 | 19229 |  | 
 | 19230 | library_names_spec= | 
 | 19231 | libname_spec='lib$name' | 
 | 19232 | soname_spec= | 
 | 19233 | shrext_cmds=".so" | 
 | 19234 | postinstall_cmds= | 
 | 19235 | postuninstall_cmds= | 
 | 19236 | finish_cmds= | 
 | 19237 | finish_eval= | 
 | 19238 | shlibpath_var= | 
 | 19239 | shlibpath_overrides_runpath=unknown | 
 | 19240 | version_type=none | 
 | 19241 | dynamic_linker="$host_os ld.so" | 
 | 19242 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
 | 19243 | need_lib_prefix=unknown | 
 | 19244 | hardcode_into_libs=no | 
 | 19245 |  | 
 | 19246 | # when you set need_version to no, make sure it does not cause -set_version | 
 | 19247 | # flags to be left without arguments | 
 | 19248 | need_version=unknown | 
 | 19249 |  | 
 | 19250 | case $host_os in | 
 | 19251 | aix3*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19252 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19253 |   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
 | 19254 |   shlibpath_var=LIBPATH | 
 | 19255 |  | 
 | 19256 |   # AIX 3 has no versioning support, so we append a major version to the name. | 
 | 19257 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19258 |   ;; | 
 | 19259 |  | 
 | 19260 | aix[4-9]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19261 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19262 |   need_lib_prefix=no | 
 | 19263 |   need_version=no | 
 | 19264 |   hardcode_into_libs=yes | 
 | 19265 |   if test "$host_cpu" = ia64; then | 
 | 19266 |     # AIX 5 supports IA64 | 
 | 19267 |     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
 | 19268 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 19269 |   else | 
 | 19270 |     # With GCC up to 2.95.x, collect2 would create an import file | 
 | 19271 |     # for dependence libraries.  The import file would start with | 
 | 19272 |     # the line `#! .'.  This would cause the generated library to | 
 | 19273 |     # depend on `.', always an invalid library.  This was fixed in | 
 | 19274 |     # development snapshots of GCC prior to 3.0. | 
 | 19275 |     case $host_os in | 
 | 19276 |       aix4 | aix4.[01] | aix4.[01].*) | 
 | 19277 |       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
 | 19278 | 	   echo ' yes ' | 
 | 19279 | 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
 | 19280 | 	: | 
 | 19281 |       else | 
 | 19282 | 	can_build_shared=no | 
 | 19283 |       fi | 
 | 19284 |       ;; | 
 | 19285 |     esac | 
 | 19286 |     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
 | 19287 |     # soname into executable. Probably we can add versioning support to | 
 | 19288 |     # collect2, so additional links can be useful in future. | 
 | 19289 |     if test "$aix_use_runtimelinking" = yes; then | 
 | 19290 |       # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
 | 19291 |       # instead of lib<name>.a to let people know that these are not | 
 | 19292 |       # typical AIX shared libraries. | 
 | 19293 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19294 |     else | 
 | 19295 |       # We preserve .a as extension for shared libraries through AIX4.2 | 
 | 19296 |       # and later when we are not doing run time linking. | 
 | 19297 |       library_names_spec='${libname}${release}.a $libname.a' | 
 | 19298 |       soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19299 |     fi | 
 | 19300 |     shlibpath_var=LIBPATH | 
 | 19301 |   fi | 
 | 19302 |   ;; | 
 | 19303 |  | 
 | 19304 | amigaos*) | 
 | 19305 |   case $host_cpu in | 
 | 19306 |   powerpc) | 
 | 19307 |     # Since July 2007 AmigaOS4 officially supports .so libraries. | 
 | 19308 |     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
 | 19309 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19310 |     ;; | 
 | 19311 |   m68k) | 
 | 19312 |     library_names_spec='$libname.ixlibrary $libname.a' | 
 | 19313 |     # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19314 |     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19315 |     ;; | 
 | 19316 |   esac | 
 | 19317 |   ;; | 
 | 19318 |  | 
 | 19319 | beos*) | 
 | 19320 |   library_names_spec='${libname}${shared_ext}' | 
 | 19321 |   dynamic_linker="$host_os ld.so" | 
 | 19322 |   shlibpath_var=LIBRARY_PATH | 
 | 19323 |   ;; | 
 | 19324 |  | 
 | 19325 | bsdi[45]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19326 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19327 |   need_version=no | 
 | 19328 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19329 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19330 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
 | 19331 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19332 |   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
 | 19333 |   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
 | 19334 |   # the default ld.so.conf also contains /usr/contrib/lib and | 
 | 19335 |   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
 | 19336 |   # libtool to hard-code these into programs | 
 | 19337 |   ;; | 
 | 19338 |  | 
 | 19339 | cygwin* | mingw* | pw32* | cegcc*) | 
 | 19340 |   version_type=windows | 
 | 19341 |   shrext_cmds=".dll" | 
 | 19342 |   need_version=no | 
 | 19343 |   need_lib_prefix=no | 
 | 19344 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19345 |   case $GCC,$cc_basename in | 
 | 19346 |   yes,*) | 
 | 19347 |     # gcc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19348 |     library_names_spec='$libname.dll.a' | 
 | 19349 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 19350 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 19351 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
 | 19352 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 19353 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 19354 |       $install_prog $dir/$dlname \$dldir/$dlname~ | 
 | 19355 |       chmod a+x \$dldir/$dlname~ | 
 | 19356 |       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
 | 19357 |         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
 | 19358 |       fi' | 
 | 19359 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 19360 |       dlpath=$dir/\$dldll~ | 
 | 19361 |        $RM \$dlpath' | 
 | 19362 |     shlibpath_overrides_runpath=yes | 
 | 19363 |  | 
 | 19364 |     case $host_os in | 
 | 19365 |     cygwin*) | 
 | 19366 |       # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
 | 19367 |       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19368 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19369 |       ;; | 
 | 19370 |     mingw* | cegcc*) | 
 | 19371 |       # MinGW DLLs use traditional 'lib' prefix | 
 | 19372 |       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19373 |       ;; | 
 | 19374 |     pw32*) | 
 | 19375 |       # pw32 DLLs use 'pw' prefix rather than 'lib' | 
 | 19376 |       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 19377 |       ;; | 
 | 19378 |     esac | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19379 |     dynamic_linker='Win32 ld.exe' | 
 | 19380 |     ;; | 
 | 19381 |  | 
 | 19382 |   *,cl*) | 
 | 19383 |     # Native MSVC | 
 | 19384 |     libname_spec='$name' | 
 | 19385 |     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
 | 19386 |     library_names_spec='${libname}.dll.lib' | 
 | 19387 |  | 
 | 19388 |     case $build_os in | 
 | 19389 |     mingw*) | 
 | 19390 |       sys_lib_search_path_spec= | 
 | 19391 |       lt_save_ifs=$IFS | 
 | 19392 |       IFS=';' | 
 | 19393 |       for lt_path in $LIB | 
 | 19394 |       do | 
 | 19395 |         IFS=$lt_save_ifs | 
 | 19396 |         # Let DOS variable expansion print the short 8.3 style file name. | 
 | 19397 |         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | 
 | 19398 |         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | 
 | 19399 |       done | 
 | 19400 |       IFS=$lt_save_ifs | 
 | 19401 |       # Convert to MSYS style. | 
 | 19402 |       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | 
 | 19403 |       ;; | 
 | 19404 |     cygwin*) | 
 | 19405 |       # Convert to unix form, then to dos form, then back to unix form | 
 | 19406 |       # but this time dos style (no spaces!) so that the unix form looks | 
 | 19407 |       # like /cygdrive/c/PROGRA~1:/cygdr... | 
 | 19408 |       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | 
 | 19409 |       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | 
 | 19410 |       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
 | 19411 |       ;; | 
 | 19412 |     *) | 
 | 19413 |       sys_lib_search_path_spec="$LIB" | 
 | 19414 |       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | 
 | 19415 |         # It is most probably a Windows format PATH. | 
 | 19416 |         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
 | 19417 |       else | 
 | 19418 |         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
 | 19419 |       fi | 
 | 19420 |       # FIXME: find the short name or the path components, as spaces are | 
 | 19421 |       # common. (e.g. "Program Files" -> "PROGRA~1") | 
 | 19422 |       ;; | 
 | 19423 |     esac | 
 | 19424 |  | 
 | 19425 |     # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
 | 19426 |     postinstall_cmds='base_file=`basename \${file}`~ | 
 | 19427 |       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
 | 19428 |       dldir=$destdir/`dirname \$dlpath`~ | 
 | 19429 |       test -d \$dldir || mkdir -p \$dldir~ | 
 | 19430 |       $install_prog $dir/$dlname \$dldir/$dlname' | 
 | 19431 |     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
 | 19432 |       dlpath=$dir/\$dldll~ | 
 | 19433 |        $RM \$dlpath' | 
 | 19434 |     shlibpath_overrides_runpath=yes | 
 | 19435 |     dynamic_linker='Win32 link.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19436 |     ;; | 
 | 19437 |  | 
 | 19438 |   *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19439 |     # Assume MSVC wrapper | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19440 |     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19441 |     dynamic_linker='Win32 ld.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19442 |     ;; | 
 | 19443 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19444 |   # FIXME: first we should search . and the directory the executable is in | 
 | 19445 |   shlibpath_var=PATH | 
 | 19446 |   ;; | 
 | 19447 |  | 
 | 19448 | darwin* | rhapsody*) | 
 | 19449 |   dynamic_linker="$host_os dyld" | 
 | 19450 |   version_type=darwin | 
 | 19451 |   need_lib_prefix=no | 
 | 19452 |   need_version=no | 
 | 19453 |   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
 | 19454 |   soname_spec='${libname}${release}${major}$shared_ext' | 
 | 19455 |   shlibpath_overrides_runpath=yes | 
 | 19456 |   shlibpath_var=DYLD_LIBRARY_PATH | 
 | 19457 |   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
 | 19458 |  | 
 | 19459 |   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
 | 19460 |   ;; | 
 | 19461 |  | 
 | 19462 | dgux*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19463 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19464 |   need_lib_prefix=no | 
 | 19465 |   need_version=no | 
 | 19466 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
 | 19467 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19468 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19469 |   ;; | 
 | 19470 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19471 | freebsd* | dragonfly*) | 
 | 19472 |   # DragonFly does not have aout.  When/if they implement a new | 
 | 19473 |   # versioning mechanism, adjust this. | 
 | 19474 |   if test -x /usr/bin/objformat; then | 
 | 19475 |     objformat=`/usr/bin/objformat` | 
 | 19476 |   else | 
 | 19477 |     case $host_os in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19478 |     freebsd[23].*) objformat=aout ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19479 |     *) objformat=elf ;; | 
 | 19480 |     esac | 
 | 19481 |   fi | 
 | 19482 |   version_type=freebsd-$objformat | 
 | 19483 |   case $version_type in | 
 | 19484 |     freebsd-elf*) | 
 | 19485 |       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 19486 |       need_version=no | 
 | 19487 |       need_lib_prefix=no | 
 | 19488 |       ;; | 
 | 19489 |     freebsd-*) | 
 | 19490 |       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
 | 19491 |       need_version=yes | 
 | 19492 |       ;; | 
 | 19493 |   esac | 
 | 19494 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19495 |   case $host_os in | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19496 |   freebsd2.*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19497 |     shlibpath_overrides_runpath=yes | 
 | 19498 |     ;; | 
 | 19499 |   freebsd3.[01]* | freebsdelf3.[01]*) | 
 | 19500 |     shlibpath_overrides_runpath=yes | 
 | 19501 |     hardcode_into_libs=yes | 
 | 19502 |     ;; | 
 | 19503 |   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
 | 19504 |   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
 | 19505 |     shlibpath_overrides_runpath=no | 
 | 19506 |     hardcode_into_libs=yes | 
 | 19507 |     ;; | 
 | 19508 |   *) # from 4.6 on, and DragonFly | 
 | 19509 |     shlibpath_overrides_runpath=yes | 
 | 19510 |     hardcode_into_libs=yes | 
 | 19511 |     ;; | 
 | 19512 |   esac | 
 | 19513 |   ;; | 
 | 19514 |  | 
 | 19515 | gnu*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19516 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19517 |   need_lib_prefix=no | 
 | 19518 |   need_version=no | 
 | 19519 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 19520 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19521 |   shlibpath_var=LD_LIBRARY_PATH | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19522 |   shlibpath_overrides_runpath=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19523 |   hardcode_into_libs=yes | 
 | 19524 |   ;; | 
 | 19525 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19526 | haiku*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19527 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19528 |   need_lib_prefix=no | 
 | 19529 |   need_version=no | 
 | 19530 |   dynamic_linker="$host_os runtime_loader" | 
 | 19531 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
 | 19532 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19533 |   shlibpath_var=LIBRARY_PATH | 
 | 19534 |   shlibpath_overrides_runpath=yes | 
 | 19535 |   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
 | 19536 |   hardcode_into_libs=yes | 
 | 19537 |   ;; | 
 | 19538 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19539 | hpux9* | hpux10* | hpux11*) | 
 | 19540 |   # Give a soname corresponding to the major version so that dld.sl refuses to | 
 | 19541 |   # link against other versions. | 
 | 19542 |   version_type=sunos | 
 | 19543 |   need_lib_prefix=no | 
 | 19544 |   need_version=no | 
 | 19545 |   case $host_cpu in | 
 | 19546 |   ia64*) | 
 | 19547 |     shrext_cmds='.so' | 
 | 19548 |     hardcode_into_libs=yes | 
 | 19549 |     dynamic_linker="$host_os dld.so" | 
 | 19550 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 19551 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 19552 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19553 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19554 |     if test "X$HPUX_IA64_MODE" = X32; then | 
 | 19555 |       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
 | 19556 |     else | 
 | 19557 |       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
 | 19558 |     fi | 
 | 19559 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 19560 |     ;; | 
 | 19561 |   hppa*64*) | 
 | 19562 |     shrext_cmds='.sl' | 
 | 19563 |     hardcode_into_libs=yes | 
 | 19564 |     dynamic_linker="$host_os dld.sl" | 
 | 19565 |     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
 | 19566 |     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
 | 19567 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19568 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19569 |     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
 | 19570 |     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
 | 19571 |     ;; | 
 | 19572 |   *) | 
 | 19573 |     shrext_cmds='.sl' | 
 | 19574 |     dynamic_linker="$host_os dld.sl" | 
 | 19575 |     shlibpath_var=SHLIB_PATH | 
 | 19576 |     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
 | 19577 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19578 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19579 |     ;; | 
 | 19580 |   esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19581 |   # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19582 |   postinstall_cmds='chmod 555 $lib' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19583 |   # or fails outright, so override atomically: | 
 | 19584 |   install_override_mode=555 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19585 |   ;; | 
 | 19586 |  | 
 | 19587 | interix[3-9]*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19588 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19589 |   need_lib_prefix=no | 
 | 19590 |   need_version=no | 
 | 19591 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 19592 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19593 |   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
 | 19594 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19595 |   shlibpath_overrides_runpath=no | 
 | 19596 |   hardcode_into_libs=yes | 
 | 19597 |   ;; | 
 | 19598 |  | 
 | 19599 | irix5* | irix6* | nonstopux*) | 
 | 19600 |   case $host_os in | 
 | 19601 |     nonstopux*) version_type=nonstopux ;; | 
 | 19602 |     *) | 
 | 19603 | 	if test "$lt_cv_prog_gnu_ld" = yes; then | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19604 | 		version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19605 | 	else | 
 | 19606 | 		version_type=irix | 
 | 19607 | 	fi ;; | 
 | 19608 |   esac | 
 | 19609 |   need_lib_prefix=no | 
 | 19610 |   need_version=no | 
 | 19611 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19612 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 19613 |   case $host_os in | 
 | 19614 |   irix5* | nonstopux*) | 
 | 19615 |     libsuff= shlibsuff= | 
 | 19616 |     ;; | 
 | 19617 |   *) | 
 | 19618 |     case $LD in # libtool.m4 will add one of these switches to LD | 
 | 19619 |     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
 | 19620 |       libsuff= shlibsuff= libmagic=32-bit;; | 
 | 19621 |     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
 | 19622 |       libsuff=32 shlibsuff=N32 libmagic=N32;; | 
 | 19623 |     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
 | 19624 |       libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
 | 19625 |     *) libsuff= shlibsuff= libmagic=never-match;; | 
 | 19626 |     esac | 
 | 19627 |     ;; | 
 | 19628 |   esac | 
 | 19629 |   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
 | 19630 |   shlibpath_overrides_runpath=no | 
 | 19631 |   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
 | 19632 |   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
 | 19633 |   hardcode_into_libs=yes | 
 | 19634 |   ;; | 
 | 19635 |  | 
 | 19636 | # No shared lib support for Linux oldld, aout, or coff. | 
 | 19637 | linux*oldld* | linux*aout* | linux*coff*) | 
 | 19638 |   dynamic_linker=no | 
 | 19639 |   ;; | 
 | 19640 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19641 | # This must be glibc/ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19642 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19643 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19644 |   need_lib_prefix=no | 
 | 19645 |   need_version=no | 
 | 19646 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19647 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19648 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
 | 19649 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19650 |   shlibpath_overrides_runpath=no | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19651 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19652 |   # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19653 |   if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19654 |   $as_echo_n "(cached) " >&6 | 
 | 19655 | else | 
 | 19656 |   lt_cv_shlibpath_overrides_runpath=no | 
 | 19657 |     save_LDFLAGS=$LDFLAGS | 
 | 19658 |     save_libdir=$libdir | 
 | 19659 |     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | 
 | 19660 | 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | 
 | 19661 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19662 | /* end confdefs.h.  */ | 
 | 19663 |  | 
 | 19664 | int | 
 | 19665 | main () | 
 | 19666 | { | 
 | 19667 |  | 
 | 19668 |   ; | 
 | 19669 |   return 0; | 
 | 19670 | } | 
 | 19671 | _ACEOF | 
 | 19672 | if ac_fn_cxx_try_link "$LINENO"; then : | 
 | 19673 |   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19674 |   lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19675 | fi | 
 | 19676 | fi | 
 | 19677 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 19678 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19679 |     LDFLAGS=$save_LDFLAGS | 
 | 19680 |     libdir=$save_libdir | 
 | 19681 |  | 
 | 19682 | fi | 
 | 19683 |  | 
 | 19684 |   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19685 |  | 
 | 19686 |   # This implies no fast_install, which is unacceptable. | 
 | 19687 |   # Some rework will be needed to allow for fast_install | 
 | 19688 |   # before this can be enabled. | 
 | 19689 |   hardcode_into_libs=yes | 
 | 19690 |  | 
 | 19691 |   # Add ABI-specific directories to the system library path. | 
 | 19692 |   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
 | 19693 |  | 
 | 19694 |   # Append ld.so.conf contents to the search path | 
 | 19695 |   if test -f /etc/ld.so.conf; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19696 |     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19697 |     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19698 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19699 |   fi | 
 | 19700 |  | 
 | 19701 |   # We used to test for /lib/ld.so.1 and disable shared libraries on | 
 | 19702 |   # powerpc, because MkLinux only supported shared libraries with the | 
 | 19703 |   # GNU dynamic linker.  Since this was broken with cross compilers, | 
 | 19704 |   # most powerpc-linux boxes support dynamic linking these days and | 
 | 19705 |   # people can always --disable-shared, the test was removed, and we | 
 | 19706 |   # assume the GNU/Linux dynamic linker is in use. | 
 | 19707 |   dynamic_linker='GNU/Linux ld.so' | 
 | 19708 |   ;; | 
 | 19709 |  | 
 | 19710 | netbsd*) | 
 | 19711 |   version_type=sunos | 
 | 19712 |   need_lib_prefix=no | 
 | 19713 |   need_version=no | 
 | 19714 |   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
 | 19715 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 19716 |     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 19717 |     dynamic_linker='NetBSD (a.out) ld.so' | 
 | 19718 |   else | 
 | 19719 |     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
 | 19720 |     soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19721 |     dynamic_linker='NetBSD ld.elf_so' | 
 | 19722 |   fi | 
 | 19723 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19724 |   shlibpath_overrides_runpath=yes | 
 | 19725 |   hardcode_into_libs=yes | 
 | 19726 |   ;; | 
 | 19727 |  | 
 | 19728 | newsos6) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19729 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19730 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19731 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19732 |   shlibpath_overrides_runpath=yes | 
 | 19733 |   ;; | 
 | 19734 |  | 
 | 19735 | *nto* | *qnx*) | 
 | 19736 |   version_type=qnx | 
 | 19737 |   need_lib_prefix=no | 
 | 19738 |   need_version=no | 
 | 19739 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19740 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19741 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19742 |   shlibpath_overrides_runpath=no | 
 | 19743 |   hardcode_into_libs=yes | 
 | 19744 |   dynamic_linker='ldqnx.so' | 
 | 19745 |   ;; | 
 | 19746 |  | 
 | 19747 | openbsd*) | 
 | 19748 |   version_type=sunos | 
 | 19749 |   sys_lib_dlsearch_path_spec="/usr/lib" | 
 | 19750 |   need_lib_prefix=no | 
 | 19751 |   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
 | 19752 |   case $host_os in | 
 | 19753 |     openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
 | 19754 |     *)				need_version=no  ;; | 
 | 19755 |   esac | 
 | 19756 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 19757 |   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
 | 19758 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19759 |   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
 | 19760 |     case $host_os in | 
 | 19761 |       openbsd2.[89] | openbsd2.[89].*) | 
 | 19762 | 	shlibpath_overrides_runpath=no | 
 | 19763 | 	;; | 
 | 19764 |       *) | 
 | 19765 | 	shlibpath_overrides_runpath=yes | 
 | 19766 | 	;; | 
 | 19767 |       esac | 
 | 19768 |   else | 
 | 19769 |     shlibpath_overrides_runpath=yes | 
 | 19770 |   fi | 
 | 19771 |   ;; | 
 | 19772 |  | 
 | 19773 | os2*) | 
 | 19774 |   libname_spec='$name' | 
 | 19775 |   shrext_cmds=".dll" | 
 | 19776 |   need_lib_prefix=no | 
 | 19777 |   library_names_spec='$libname${shared_ext} $libname.a' | 
 | 19778 |   dynamic_linker='OS/2 ld.exe' | 
 | 19779 |   shlibpath_var=LIBPATH | 
 | 19780 |   ;; | 
 | 19781 |  | 
 | 19782 | osf3* | osf4* | osf5*) | 
 | 19783 |   version_type=osf | 
 | 19784 |   need_lib_prefix=no | 
 | 19785 |   need_version=no | 
 | 19786 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19787 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19788 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19789 |   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
 | 19790 |   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
 | 19791 |   ;; | 
 | 19792 |  | 
 | 19793 | rdos*) | 
 | 19794 |   dynamic_linker=no | 
 | 19795 |   ;; | 
 | 19796 |  | 
 | 19797 | solaris*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19798 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19799 |   need_lib_prefix=no | 
 | 19800 |   need_version=no | 
 | 19801 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19802 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19803 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19804 |   shlibpath_overrides_runpath=yes | 
 | 19805 |   hardcode_into_libs=yes | 
 | 19806 |   # ldd complains unless libraries are executable | 
 | 19807 |   postinstall_cmds='chmod +x $lib' | 
 | 19808 |   ;; | 
 | 19809 |  | 
 | 19810 | sunos4*) | 
 | 19811 |   version_type=sunos | 
 | 19812 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
 | 19813 |   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
 | 19814 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19815 |   shlibpath_overrides_runpath=yes | 
 | 19816 |   if test "$with_gnu_ld" = yes; then | 
 | 19817 |     need_lib_prefix=no | 
 | 19818 |   fi | 
 | 19819 |   need_version=yes | 
 | 19820 |   ;; | 
 | 19821 |  | 
 | 19822 | sysv4 | sysv4.3*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19823 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19824 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19825 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19826 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19827 |   case $host_vendor in | 
 | 19828 |     sni) | 
 | 19829 |       shlibpath_overrides_runpath=no | 
 | 19830 |       need_lib_prefix=no | 
 | 19831 |       runpath_var=LD_RUN_PATH | 
 | 19832 |       ;; | 
 | 19833 |     siemens) | 
 | 19834 |       need_lib_prefix=no | 
 | 19835 |       ;; | 
 | 19836 |     motorola) | 
 | 19837 |       need_lib_prefix=no | 
 | 19838 |       need_version=no | 
 | 19839 |       shlibpath_overrides_runpath=no | 
 | 19840 |       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
 | 19841 |       ;; | 
 | 19842 |   esac | 
 | 19843 |   ;; | 
 | 19844 |  | 
 | 19845 | sysv4*MP*) | 
 | 19846 |   if test -d /usr/nec ;then | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19847 |     version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19848 |     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
 | 19849 |     soname_spec='$libname${shared_ext}.$major' | 
 | 19850 |     shlibpath_var=LD_LIBRARY_PATH | 
 | 19851 |   fi | 
 | 19852 |   ;; | 
 | 19853 |  | 
 | 19854 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 19855 |   version_type=freebsd-elf | 
 | 19856 |   need_lib_prefix=no | 
 | 19857 |   need_version=no | 
 | 19858 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
 | 19859 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19860 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19861 |   shlibpath_overrides_runpath=yes | 
 | 19862 |   hardcode_into_libs=yes | 
 | 19863 |   if test "$with_gnu_ld" = yes; then | 
 | 19864 |     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
 | 19865 |   else | 
 | 19866 |     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
 | 19867 |     case $host_os in | 
 | 19868 |       sco3.2v5*) | 
 | 19869 |         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
 | 19870 | 	;; | 
 | 19871 |     esac | 
 | 19872 |   fi | 
 | 19873 |   sys_lib_dlsearch_path_spec='/usr/lib' | 
 | 19874 |   ;; | 
 | 19875 |  | 
 | 19876 | tpf*) | 
 | 19877 |   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19878 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19879 |   need_lib_prefix=no | 
 | 19880 |   need_version=no | 
 | 19881 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19882 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19883 |   shlibpath_overrides_runpath=no | 
 | 19884 |   hardcode_into_libs=yes | 
 | 19885 |   ;; | 
 | 19886 |  | 
 | 19887 | uts4*) | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19888 |   version_type=linux # correct to gnu/linux during the next big refactor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19889 |   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
 | 19890 |   soname_spec='${libname}${release}${shared_ext}$major' | 
 | 19891 |   shlibpath_var=LD_LIBRARY_PATH | 
 | 19892 |   ;; | 
 | 19893 |  | 
 | 19894 | *) | 
 | 19895 |   dynamic_linker=no | 
 | 19896 |   ;; | 
 | 19897 | esac | 
 | 19898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
 | 19899 | $as_echo "$dynamic_linker" >&6; } | 
 | 19900 | test "$dynamic_linker" = no && can_build_shared=no | 
 | 19901 |  | 
 | 19902 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
 | 19903 | if test "$GCC" = yes; then | 
 | 19904 |   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
 | 19905 | fi | 
 | 19906 |  | 
 | 19907 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
 | 19908 |   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
 | 19909 | fi | 
 | 19910 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
 | 19911 |   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
 | 19912 | fi | 
 | 19913 |  | 
 | 19914 |  | 
 | 19915 |  | 
 | 19916 |  | 
 | 19917 |  | 
 | 19918 |  | 
 | 19919 |  | 
 | 19920 |  | 
 | 19921 |  | 
 | 19922 |  | 
 | 19923 |  | 
 | 19924 |  | 
 | 19925 |  | 
 | 19926 |  | 
 | 19927 |  | 
 | 19928 |  | 
 | 19929 |  | 
 | 19930 |  | 
 | 19931 |  | 
 | 19932 |  | 
 | 19933 |  | 
 | 19934 |  | 
 | 19935 |  | 
 | 19936 |  | 
 | 19937 |  | 
 | 19938 |  | 
 | 19939 |  | 
 | 19940 |  | 
 | 19941 |  | 
 | 19942 |  | 
 | 19943 |  | 
 | 19944 |  | 
 | 19945 |  | 
 | 19946 |  | 
 | 19947 |  | 
 | 19948 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19949 |  | 
 | 19950 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19951 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
 | 19952 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
 | 19953 | hardcode_action_CXX= | 
 | 19954 | if test -n "$hardcode_libdir_flag_spec_CXX" || | 
 | 19955 |    test -n "$runpath_var_CXX" || | 
 | 19956 |    test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
 | 19957 |  | 
 | 19958 |   # We can hardcode non-existent directories. | 
 | 19959 |   if test "$hardcode_direct_CXX" != no && | 
 | 19960 |      # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
 | 19961 |      # have to relink, otherwise we might link with an installed library | 
 | 19962 |      # when we should be linking with a yet-to-be-installed one | 
 | 19963 |      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
 | 19964 |      test "$hardcode_minus_L_CXX" != no; then | 
 | 19965 |     # Linking always hardcodes the temporary library directory. | 
 | 19966 |     hardcode_action_CXX=relink | 
 | 19967 |   else | 
 | 19968 |     # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
 | 19969 |     hardcode_action_CXX=immediate | 
 | 19970 |   fi | 
 | 19971 | else | 
 | 19972 |   # We cannot hardcode anything, or else we can only hardcode existing | 
 | 19973 |   # directories. | 
 | 19974 |   hardcode_action_CXX=unsupported | 
 | 19975 | fi | 
 | 19976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | 
 | 19977 | $as_echo "$hardcode_action_CXX" >&6; } | 
 | 19978 |  | 
 | 19979 | if test "$hardcode_action_CXX" = relink || | 
 | 19980 |    test "$inherit_rpath_CXX" = yes; then | 
 | 19981 |   # Fast installation is not supported | 
 | 19982 |   enable_fast_install=no | 
 | 19983 | elif test "$shlibpath_overrides_runpath" = yes || | 
 | 19984 |      test "$enable_shared" = no; then | 
 | 19985 |   # Fast installation is not necessary | 
 | 19986 |   enable_fast_install=needless | 
 | 19987 | fi | 
 | 19988 |  | 
 | 19989 |  | 
 | 19990 |  | 
 | 19991 |  | 
 | 19992 |  | 
 | 19993 |  | 
 | 19994 |  | 
 | 19995 |   fi # test -n "$compiler" | 
 | 19996 |  | 
 | 19997 |   CC=$lt_save_CC | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19998 |   CFLAGS=$lt_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19999 |   LDCXX=$LD | 
 | 20000 |   LD=$lt_save_LD | 
 | 20001 |   GCC=$lt_save_GCC | 
 | 20002 |   with_gnu_ld=$lt_save_with_gnu_ld | 
 | 20003 |   lt_cv_path_LDCXX=$lt_cv_path_LD | 
 | 20004 |   lt_cv_path_LD=$lt_save_path_LD | 
 | 20005 |   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
 | 20006 |   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
 | 20007 | fi # test "$_lt_caught_CXX_error" != yes | 
 | 20008 |  | 
 | 20009 | ac_ext=c | 
 | 20010 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20014 |  | 
 | 20015 |  | 
 | 20016 |  | 
 | 20017 |  | 
 | 20018 |  | 
 | 20019 |  | 
 | 20020 |  | 
 | 20021 |  | 
 | 20022 |  | 
 | 20023 |  | 
 | 20024 |  | 
 | 20025 |  | 
 | 20026 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20027 |  | 
 | 20028 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20029 |         ac_config_commands="$ac_config_commands libtool" | 
 | 20030 |  | 
 | 20031 |  | 
 | 20032 |  | 
 | 20033 |  | 
 | 20034 | # Only expand once: | 
 | 20035 |  | 
 | 20036 |  | 
 | 20037 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20038 |  | 
 | 20039 |  | 
 | 20040 | # Configure libltdl | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20041 |  | 
 | 20042 |  | 
 | 20043 |  | 
 | 20044 |  | 
 | 20045 |  | 
 | 20046 |  | 
 | 20047 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | 
 | 20049 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20050 | if ${libltdl_cv_shlibext+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20051 |   $as_echo_n "(cached) " >&6 | 
 | 20052 | else | 
 | 20053 |  | 
 | 20054 | module=yes | 
 | 20055 | eval libltdl_cv_shlibext=$shrext_cmds | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20056 | module=no | 
 | 20057 | eval libltdl_cv_shrext=$shrext_cmds | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20058 |  | 
 | 20059 | fi | 
 | 20060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | 
 | 20061 | $as_echo "$libltdl_cv_shlibext" >&6; } | 
 | 20062 | if test -n "$libltdl_cv_shlibext"; then | 
 | 20063 |  | 
 | 20064 | cat >>confdefs.h <<_ACEOF | 
 | 20065 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | 
 | 20066 | _ACEOF | 
 | 20067 |  | 
 | 20068 | fi | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20069 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | 
 | 20070 |  | 
 | 20071 | cat >>confdefs.h <<_ACEOF | 
 | 20072 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | 
 | 20073 | _ACEOF | 
 | 20074 |  | 
 | 20075 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20076 |  | 
 | 20077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | 
 | 20078 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20079 | if ${lt_cv_module_path_var+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20080 |   $as_echo_n "(cached) " >&6 | 
 | 20081 | else | 
 | 20082 |   lt_cv_module_path_var="$shlibpath_var" | 
 | 20083 | fi | 
 | 20084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | 
 | 20085 | $as_echo "$lt_cv_module_path_var" >&6; } | 
 | 20086 | if test -n "$lt_cv_module_path_var"; then | 
 | 20087 |  | 
 | 20088 | cat >>confdefs.h <<_ACEOF | 
 | 20089 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | 
 | 20090 | _ACEOF | 
 | 20091 |  | 
 | 20092 | fi | 
 | 20093 |  | 
 | 20094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | 
 | 20095 | $as_echo_n "checking for the default library search path... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20096 | if ${lt_cv_sys_dlsearch_path+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20097 |   $as_echo_n "(cached) " >&6 | 
 | 20098 | else | 
 | 20099 |   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | 
 | 20100 | fi | 
 | 20101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | 
 | 20102 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | 
 | 20103 | if test -n "$lt_cv_sys_dlsearch_path"; then | 
 | 20104 |   sys_dlsearch_path= | 
 | 20105 |   for dir in $lt_cv_sys_dlsearch_path; do | 
 | 20106 |     if test -z "$sys_dlsearch_path"; then | 
 | 20107 |       sys_dlsearch_path="$dir" | 
 | 20108 |     else | 
 | 20109 |       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | 
 | 20110 |     fi | 
 | 20111 |   done | 
 | 20112 |  | 
 | 20113 | cat >>confdefs.h <<_ACEOF | 
 | 20114 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | 
 | 20115 | _ACEOF | 
 | 20116 |  | 
 | 20117 | fi | 
 | 20118 |  | 
 | 20119 |  | 
 | 20120 | LT_DLLOADERS= | 
 | 20121 |  | 
 | 20122 |  | 
 | 20123 | ac_ext=c | 
 | 20124 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20128 |  | 
 | 20129 |  | 
 | 20130 | LIBADD_DLOPEN= | 
 | 20131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | 
 | 20132 | $as_echo_n "checking for library containing dlopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20133 | if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20134 |   $as_echo_n "(cached) " >&6 | 
 | 20135 | else | 
 | 20136 |   ac_func_search_save_LIBS=$LIBS | 
 | 20137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20138 | /* end confdefs.h.  */ | 
 | 20139 |  | 
 | 20140 | /* Override any GCC internal prototype to avoid an error. | 
 | 20141 |    Use char because int might match the return type of a GCC | 
 | 20142 |    builtin and then its argument prototype would still apply.  */ | 
 | 20143 | #ifdef __cplusplus | 
 | 20144 | extern "C" | 
 | 20145 | #endif | 
 | 20146 | char dlopen (); | 
 | 20147 | int | 
 | 20148 | main () | 
 | 20149 | { | 
 | 20150 | return dlopen (); | 
 | 20151 |   ; | 
 | 20152 |   return 0; | 
 | 20153 | } | 
 | 20154 | _ACEOF | 
 | 20155 | for ac_lib in '' dl; do | 
 | 20156 |   if test -z "$ac_lib"; then | 
 | 20157 |     ac_res="none required" | 
 | 20158 |   else | 
 | 20159 |     ac_res=-l$ac_lib | 
 | 20160 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 20161 |   fi | 
 | 20162 |   if ac_fn_c_try_link "$LINENO"; then : | 
 | 20163 |   ac_cv_search_dlopen=$ac_res | 
 | 20164 | fi | 
 | 20165 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20166 |     conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20167 |   if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20168 |   break | 
 | 20169 | fi | 
 | 20170 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20171 | if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20172 |  | 
 | 20173 | else | 
 | 20174 |   ac_cv_search_dlopen=no | 
 | 20175 | fi | 
 | 20176 | rm conftest.$ac_ext | 
 | 20177 | LIBS=$ac_func_search_save_LIBS | 
 | 20178 | fi | 
 | 20179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | 
 | 20180 | $as_echo "$ac_cv_search_dlopen" >&6; } | 
 | 20181 | ac_res=$ac_cv_search_dlopen | 
 | 20182 | if test "$ac_res" != no; then : | 
 | 20183 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 20184 |  | 
 | 20185 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
 | 20186 |  | 
 | 20187 | 	if test "$ac_cv_search_dlopen" != "none required" ; then | 
 | 20188 | 	  LIBADD_DLOPEN="-ldl" | 
 | 20189 | 	fi | 
 | 20190 | 	libltdl_cv_lib_dl_dlopen="yes" | 
 | 20191 | 	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
 | 20192 | else | 
 | 20193 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20194 | /* end confdefs.h.  */ | 
 | 20195 | #if HAVE_DLFCN_H | 
 | 20196 | #  include <dlfcn.h> | 
 | 20197 | #endif | 
 | 20198 |  | 
 | 20199 | int | 
 | 20200 | main () | 
 | 20201 | { | 
 | 20202 | dlopen(0, 0); | 
 | 20203 |   ; | 
 | 20204 |   return 0; | 
 | 20205 | } | 
 | 20206 | _ACEOF | 
 | 20207 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 20208 |  | 
 | 20209 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
 | 20210 |  | 
 | 20211 | 	    libltdl_cv_func_dlopen="yes" | 
 | 20212 | 	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
 | 20213 | else | 
 | 20214 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
 | 20215 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20216 | if ${ac_cv_lib_svld_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20217 |   $as_echo_n "(cached) " >&6 | 
 | 20218 | else | 
 | 20219 |   ac_check_lib_save_LIBS=$LIBS | 
 | 20220 | LIBS="-lsvld  $LIBS" | 
 | 20221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20222 | /* end confdefs.h.  */ | 
 | 20223 |  | 
 | 20224 | /* Override any GCC internal prototype to avoid an error. | 
 | 20225 |    Use char because int might match the return type of a GCC | 
 | 20226 |    builtin and then its argument prototype would still apply.  */ | 
 | 20227 | #ifdef __cplusplus | 
 | 20228 | extern "C" | 
 | 20229 | #endif | 
 | 20230 | char dlopen (); | 
 | 20231 | int | 
 | 20232 | main () | 
 | 20233 | { | 
 | 20234 | return dlopen (); | 
 | 20235 |   ; | 
 | 20236 |   return 0; | 
 | 20237 | } | 
 | 20238 | _ACEOF | 
 | 20239 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 20240 |   ac_cv_lib_svld_dlopen=yes | 
 | 20241 | else | 
 | 20242 |   ac_cv_lib_svld_dlopen=no | 
 | 20243 | fi | 
 | 20244 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20245 |     conftest$ac_exeext conftest.$ac_ext | 
 | 20246 | LIBS=$ac_check_lib_save_LIBS | 
 | 20247 | fi | 
 | 20248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
 | 20249 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20250 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20251 |  | 
 | 20252 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
 | 20253 |  | 
 | 20254 | 	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | 
 | 20255 | 		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
 | 20256 | fi | 
 | 20257 |  | 
 | 20258 | fi | 
 | 20259 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20260 |     conftest$ac_exeext conftest.$ac_ext | 
 | 20261 | fi | 
 | 20262 |  | 
 | 20263 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
 | 20264 | then | 
 | 20265 |   lt_save_LIBS="$LIBS" | 
 | 20266 |   LIBS="$LIBS $LIBADD_DLOPEN" | 
 | 20267 |   for ac_func in dlerror | 
 | 20268 | do : | 
 | 20269 |   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20270 | if test "x$ac_cv_func_dlerror" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20271 |   cat >>confdefs.h <<_ACEOF | 
 | 20272 | #define HAVE_DLERROR 1 | 
 | 20273 | _ACEOF | 
 | 20274 |  | 
 | 20275 | fi | 
 | 20276 | done | 
 | 20277 |  | 
 | 20278 |   LIBS="$lt_save_LIBS" | 
 | 20279 | fi | 
 | 20280 |  | 
 | 20281 |  | 
 | 20282 | LIBADD_SHL_LOAD= | 
 | 20283 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20284 | if test "x$ac_cv_func_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20285 |  | 
 | 20286 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
 | 20287 |  | 
 | 20288 | 	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
 | 20289 | else | 
 | 20290 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
 | 20291 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20292 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20293 |   $as_echo_n "(cached) " >&6 | 
 | 20294 | else | 
 | 20295 |   ac_check_lib_save_LIBS=$LIBS | 
 | 20296 | LIBS="-ldld  $LIBS" | 
 | 20297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20298 | /* end confdefs.h.  */ | 
 | 20299 |  | 
 | 20300 | /* Override any GCC internal prototype to avoid an error. | 
 | 20301 |    Use char because int might match the return type of a GCC | 
 | 20302 |    builtin and then its argument prototype would still apply.  */ | 
 | 20303 | #ifdef __cplusplus | 
 | 20304 | extern "C" | 
 | 20305 | #endif | 
 | 20306 | char shl_load (); | 
 | 20307 | int | 
 | 20308 | main () | 
 | 20309 | { | 
 | 20310 | return shl_load (); | 
 | 20311 |   ; | 
 | 20312 |   return 0; | 
 | 20313 | } | 
 | 20314 | _ACEOF | 
 | 20315 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 20316 |   ac_cv_lib_dld_shl_load=yes | 
 | 20317 | else | 
 | 20318 |   ac_cv_lib_dld_shl_load=no | 
 | 20319 | fi | 
 | 20320 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20321 |     conftest$ac_exeext conftest.$ac_ext | 
 | 20322 | LIBS=$ac_check_lib_save_LIBS | 
 | 20323 | fi | 
 | 20324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
 | 20325 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20326 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20327 |  | 
 | 20328 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
 | 20329 |  | 
 | 20330 | 	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
 | 20331 | 	    LIBADD_SHL_LOAD="-ldld" | 
 | 20332 | fi | 
 | 20333 |  | 
 | 20334 | fi | 
 | 20335 |  | 
 | 20336 |  | 
 | 20337 |  | 
 | 20338 | case $host_os in | 
 | 20339 | darwin[1567].*) | 
 | 20340 | # We only want this for pre-Mac OS X 10.4. | 
 | 20341 |   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20342 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20343 |  | 
 | 20344 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | 
 | 20345 |  | 
 | 20346 | 	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | 
 | 20347 | fi | 
 | 20348 |  | 
 | 20349 |   ;; | 
 | 20350 | beos*) | 
 | 20351 |   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | 
 | 20352 |   ;; | 
 | 20353 | cygwin* | mingw* | os2* | pw32*) | 
 | 20354 |   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | 
 | 20355 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20356 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20357 |   ac_have_decl=1 | 
 | 20358 | else | 
 | 20359 |   ac_have_decl=0 | 
 | 20360 | fi | 
 | 20361 |  | 
 | 20362 | cat >>confdefs.h <<_ACEOF | 
 | 20363 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | 
 | 20364 | _ACEOF | 
 | 20365 |  | 
 | 20366 |   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | 
 | 20367 |   ;; | 
 | 20368 | esac | 
 | 20369 |  | 
 | 20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
 | 20371 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20372 | if ${ac_cv_lib_dld_dld_link+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20373 |   $as_echo_n "(cached) " >&6 | 
 | 20374 | else | 
 | 20375 |   ac_check_lib_save_LIBS=$LIBS | 
 | 20376 | LIBS="-ldld  $LIBS" | 
 | 20377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20378 | /* end confdefs.h.  */ | 
 | 20379 |  | 
 | 20380 | /* Override any GCC internal prototype to avoid an error. | 
 | 20381 |    Use char because int might match the return type of a GCC | 
 | 20382 |    builtin and then its argument prototype would still apply.  */ | 
 | 20383 | #ifdef __cplusplus | 
 | 20384 | extern "C" | 
 | 20385 | #endif | 
 | 20386 | char dld_link (); | 
 | 20387 | int | 
 | 20388 | main () | 
 | 20389 | { | 
 | 20390 | return dld_link (); | 
 | 20391 |   ; | 
 | 20392 |   return 0; | 
 | 20393 | } | 
 | 20394 | _ACEOF | 
 | 20395 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 20396 |   ac_cv_lib_dld_dld_link=yes | 
 | 20397 | else | 
 | 20398 |   ac_cv_lib_dld_dld_link=no | 
 | 20399 | fi | 
 | 20400 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20401 |     conftest$ac_exeext conftest.$ac_ext | 
 | 20402 | LIBS=$ac_check_lib_save_LIBS | 
 | 20403 | fi | 
 | 20404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
 | 20405 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20406 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20407 |  | 
 | 20408 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | 
 | 20409 |  | 
 | 20410 | 		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | 
 | 20411 | fi | 
 | 20412 |  | 
 | 20413 |  | 
 | 20414 |  | 
 | 20415 |  | 
 | 20416 | LT_DLPREOPEN= | 
 | 20417 | if test -n "$LT_DLLOADERS" | 
 | 20418 | then | 
 | 20419 |   for lt_loader in $LT_DLLOADERS; do | 
 | 20420 |     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | 
 | 20421 |   done | 
 | 20422 |  | 
 | 20423 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | 
 | 20424 |  | 
 | 20425 | fi | 
 | 20426 |  | 
 | 20427 |  | 
 | 20428 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | 
 | 20429 |  | 
 | 20430 |  | 
 | 20431 | ac_ext=c | 
 | 20432 | ac_cpp='$CPP $CPPFLAGS' | 
 | 20433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 20434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 20435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 20436 |  | 
 | 20437 |  | 
 | 20438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | 
 | 20439 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20440 | if ${lt_cv_sys_symbol_underscore+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20441 |   $as_echo_n "(cached) " >&6 | 
 | 20442 | else | 
 | 20443 |   lt_cv_sys_symbol_underscore=no | 
 | 20444 |   cat > conftest.$ac_ext <<_LT_EOF | 
 | 20445 | void nm_test_func(){} | 
 | 20446 | int main(){nm_test_func;return 0;} | 
 | 20447 | _LT_EOF | 
 | 20448 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
 | 20449 |   (eval $ac_compile) 2>&5 | 
 | 20450 |   ac_status=$? | 
 | 20451 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 20452 |   test $ac_status = 0; }; then | 
 | 20453 |     # Now try to grab the symbols. | 
 | 20454 |     ac_nlist=conftest.nm | 
 | 20455 |     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | 
 | 20456 |   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
 | 20457 |   ac_status=$? | 
 | 20458 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 20459 |   test $ac_status = 0; } && test -s "$ac_nlist"; then | 
 | 20460 |       # See whether the symbols have a leading underscore. | 
 | 20461 |       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
 | 20462 |         lt_cv_sys_symbol_underscore=yes | 
 | 20463 |       else | 
 | 20464 |         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
 | 20465 | 	  : | 
 | 20466 |         else | 
 | 20467 | 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
 | 20468 |         fi | 
 | 20469 |       fi | 
 | 20470 |     else | 
 | 20471 |       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
 | 20472 |     fi | 
 | 20473 |   else | 
 | 20474 |     echo "configure: failed program was:" >&5 | 
 | 20475 |     cat conftest.c >&5 | 
 | 20476 |   fi | 
 | 20477 |   rm -rf conftest* | 
 | 20478 |  | 
 | 20479 | fi | 
 | 20480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 | 
 | 20481 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | 
 | 20482 |   sys_symbol_underscore=$lt_cv_sys_symbol_underscore | 
 | 20483 |  | 
 | 20484 |  | 
 | 20485 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | 
 | 20486 |   if test x"$libltdl_cv_func_dlopen" = xyes || | 
 | 20487 |      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
 | 20488 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | 
 | 20489 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20490 | if ${libltdl_cv_need_uscore+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20491 |   $as_echo_n "(cached) " >&6 | 
 | 20492 | else | 
 | 20493 |   libltdl_cv_need_uscore=unknown | 
 | 20494 |           save_LIBS="$LIBS" | 
 | 20495 |           LIBS="$LIBS $LIBADD_DLOPEN" | 
 | 20496 | 	  if test "$cross_compiling" = yes; then : | 
 | 20497 |   libltdl_cv_need_uscore=cross | 
 | 20498 | else | 
 | 20499 |   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
 | 20500 |   lt_status=$lt_dlunknown | 
 | 20501 |   cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20502 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20503 | #include "confdefs.h" | 
 | 20504 |  | 
 | 20505 | #if HAVE_DLFCN_H | 
 | 20506 | #include <dlfcn.h> | 
 | 20507 | #endif | 
 | 20508 |  | 
 | 20509 | #include <stdio.h> | 
 | 20510 |  | 
 | 20511 | #ifdef RTLD_GLOBAL | 
 | 20512 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
 | 20513 | #else | 
 | 20514 | #  ifdef DL_GLOBAL | 
 | 20515 | #    define LT_DLGLOBAL		DL_GLOBAL | 
 | 20516 | #  else | 
 | 20517 | #    define LT_DLGLOBAL		0 | 
 | 20518 | #  endif | 
 | 20519 | #endif | 
 | 20520 |  | 
 | 20521 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
 | 20522 |    find out it does not work in some platform. */ | 
 | 20523 | #ifndef LT_DLLAZY_OR_NOW | 
 | 20524 | #  ifdef RTLD_LAZY | 
 | 20525 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
 | 20526 | #  else | 
 | 20527 | #    ifdef DL_LAZY | 
 | 20528 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
 | 20529 | #    else | 
 | 20530 | #      ifdef RTLD_NOW | 
 | 20531 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
 | 20532 | #      else | 
 | 20533 | #        ifdef DL_NOW | 
 | 20534 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
 | 20535 | #        else | 
 | 20536 | #          define LT_DLLAZY_OR_NOW	0 | 
 | 20537 | #        endif | 
 | 20538 | #      endif | 
 | 20539 | #    endif | 
 | 20540 | #  endif | 
 | 20541 | #endif | 
 | 20542 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20543 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
 | 20544 |    correspondingly for the symbols needed.  */ | 
 | 20545 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20546 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20547 | #endif | 
 | 20548 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20549 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20550 | int main () | 
 | 20551 | { | 
 | 20552 |   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
 | 20553 |   int status = $lt_dlunknown; | 
 | 20554 |  | 
 | 20555 |   if (self) | 
 | 20556 |     { | 
 | 20557 |       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20558 |       else | 
 | 20559 |         { | 
 | 20560 | 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
 | 20561 |           else puts (dlerror ()); | 
 | 20562 | 	} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20563 |       /* dlclose (self); */ | 
 | 20564 |     } | 
 | 20565 |   else | 
 | 20566 |     puts (dlerror ()); | 
 | 20567 |  | 
 | 20568 |   return status; | 
 | 20569 | } | 
 | 20570 | _LT_EOF | 
 | 20571 |   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
 | 20572 |   (eval $ac_link) 2>&5 | 
 | 20573 |   ac_status=$? | 
 | 20574 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 20575 |   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
 | 20576 |     (./conftest; exit; ) >&5 2>/dev/null | 
 | 20577 |     lt_status=$? | 
 | 20578 |     case x$lt_status in | 
 | 20579 |       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
 | 20580 |       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
 | 20581 |       x$lt_dlunknown|x*)  ;; | 
 | 20582 |     esac | 
 | 20583 |   else : | 
 | 20584 |     # compilation failed | 
 | 20585 |  | 
 | 20586 |   fi | 
 | 20587 | fi | 
 | 20588 | rm -fr conftest* | 
 | 20589 |  | 
 | 20590 | 	  LIBS="$save_LIBS" | 
 | 20591 |  | 
 | 20592 | fi | 
 | 20593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | 
 | 20594 | $as_echo "$libltdl_cv_need_uscore" >&6; } | 
 | 20595 |   fi | 
 | 20596 | fi | 
 | 20597 |  | 
 | 20598 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
 | 20599 |  | 
 | 20600 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | 
 | 20601 |  | 
 | 20602 | fi | 
 | 20603 |  | 
 | 20604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | 
 | 20605 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20606 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20607 |   $as_echo_n "(cached) " >&6 | 
 | 20608 | else | 
 | 20609 |   # PORTME does your system automatically load deplibs for dlopen? | 
 | 20610 |   # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
 | 20611 |   # For now, we just catch OSes we know something about -- in the | 
 | 20612 |   # future, we'll try test this programmatically. | 
 | 20613 |   lt_cv_sys_dlopen_deplibs=unknown | 
 | 20614 |   case $host_os in | 
 | 20615 |   aix3*|aix4.1.*|aix4.2.*) | 
 | 20616 |     # Unknown whether this is true for these versions of AIX, but | 
 | 20617 |     # we want this `case' here to explicitly catch those versions. | 
 | 20618 |     lt_cv_sys_dlopen_deplibs=unknown | 
 | 20619 |     ;; | 
 | 20620 |   aix[4-9]*) | 
 | 20621 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20622 |     ;; | 
 | 20623 |   amigaos*) | 
 | 20624 |     case $host_cpu in | 
 | 20625 |     powerpc) | 
 | 20626 |       lt_cv_sys_dlopen_deplibs=no | 
 | 20627 |       ;; | 
 | 20628 |     esac | 
 | 20629 |     ;; | 
 | 20630 |   darwin*) | 
 | 20631 |     # Assuming the user has installed a libdl from somewhere, this is true | 
 | 20632 |     # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
 | 20633 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20634 |     ;; | 
 | 20635 |   freebsd* | dragonfly*) | 
 | 20636 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20637 |     ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20638 |   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20639 |     # GNU and its variants, using gnu ld.so (Glibc) | 
 | 20640 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20641 |     ;; | 
 | 20642 |   hpux10*|hpux11*) | 
 | 20643 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20644 |     ;; | 
 | 20645 |   interix*) | 
 | 20646 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20647 |     ;; | 
 | 20648 |   irix[12345]*|irix6.[01]*) | 
 | 20649 |     # Catch all versions of IRIX before 6.2, and indicate that we don't | 
 | 20650 |     # know how it worked for any of those versions. | 
 | 20651 |     lt_cv_sys_dlopen_deplibs=unknown | 
 | 20652 |     ;; | 
 | 20653 |   irix*) | 
 | 20654 |     # The case above catches anything before 6.2, and it's known that | 
 | 20655 |     # at 6.2 and later dlopen does load deplibs. | 
 | 20656 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20657 |     ;; | 
 | 20658 |   netbsd*) | 
 | 20659 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20660 |     ;; | 
 | 20661 |   openbsd*) | 
 | 20662 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20663 |     ;; | 
 | 20664 |   osf[1234]*) | 
 | 20665 |     # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
 | 20666 |     # it did *not* use an RPATH in a shared library to find objects the | 
 | 20667 |     # library depends on, so we explicitly say `no'. | 
 | 20668 |     lt_cv_sys_dlopen_deplibs=no | 
 | 20669 |     ;; | 
 | 20670 |   osf5.0|osf5.0a|osf5.1) | 
 | 20671 |     # dlopen *does* load deplibs and with the right loader patch applied | 
 | 20672 |     # it even uses RPATH in a shared library to search for shared objects | 
 | 20673 |     # that the library depends on, but there's no easy way to know if that | 
 | 20674 |     # patch is installed.  Since this is the case, all we can really | 
 | 20675 |     # say is unknown -- it depends on the patch being installed.  If | 
 | 20676 |     # it is, this changes to `yes'.  Without it, it would be `no'. | 
 | 20677 |     lt_cv_sys_dlopen_deplibs=unknown | 
 | 20678 |     ;; | 
 | 20679 |   osf*) | 
 | 20680 |     # the two cases above should catch all versions of osf <= 5.1.  Read | 
 | 20681 |     # the comments above for what we know about them. | 
 | 20682 |     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
 | 20683 |     # is used to find them so we can finally say `yes'. | 
 | 20684 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20685 |     ;; | 
 | 20686 |   qnx*) | 
 | 20687 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20688 |     ;; | 
 | 20689 |   solaris*) | 
 | 20690 |     lt_cv_sys_dlopen_deplibs=yes | 
 | 20691 |     ;; | 
 | 20692 |   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
 | 20693 |     libltdl_cv_sys_dlopen_deplibs=yes | 
 | 20694 |     ;; | 
 | 20695 |   esac | 
 | 20696 |  | 
 | 20697 | fi | 
 | 20698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | 
 | 20699 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | 
 | 20700 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | 
 | 20701 |  | 
 | 20702 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | 
 | 20703 |  | 
 | 20704 | fi | 
 | 20705 |  | 
 | 20706 | : | 
 | 20707 |  | 
 | 20708 | for ac_header in argz.h | 
 | 20709 | do : | 
 | 20710 |   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | 
 | 20711 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20712 | if test "x$ac_cv_header_argz_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20713 |   cat >>confdefs.h <<_ACEOF | 
 | 20714 | #define HAVE_ARGZ_H 1 | 
 | 20715 | _ACEOF | 
 | 20716 |  | 
 | 20717 | fi | 
 | 20718 |  | 
 | 20719 | done | 
 | 20720 |  | 
 | 20721 |  | 
 | 20722 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | 
 | 20723 | #  include <argz.h> | 
 | 20724 | #endif | 
 | 20725 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20726 | if test "x$ac_cv_type_error_t" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20727 |  | 
 | 20728 | cat >>confdefs.h <<_ACEOF | 
 | 20729 | #define HAVE_ERROR_T 1 | 
 | 20730 | _ACEOF | 
 | 20731 |  | 
 | 20732 |  | 
 | 20733 | else | 
 | 20734 |  | 
 | 20735 | $as_echo "#define error_t int" >>confdefs.h | 
 | 20736 |  | 
 | 20737 |  | 
 | 20738 | $as_echo "#define __error_t_defined 1" >>confdefs.h | 
 | 20739 |  | 
 | 20740 | fi | 
 | 20741 |  | 
 | 20742 |  | 
 | 20743 | ARGZ_H= | 
 | 20744 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | 
 | 20745 | 	argz_next argz_stringify | 
 | 20746 | do : | 
 | 20747 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 20748 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20749 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20750 |   cat >>confdefs.h <<_ACEOF | 
 | 20751 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 20752 | _ACEOF | 
 | 20753 |  | 
 | 20754 | else | 
 | 20755 |   ARGZ_H=argz.h; | 
 | 20756 |  | 
 | 20757 |   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
 | 20758 |  | 
 | 20759 | fi | 
 | 20760 | done | 
 | 20761 |  | 
 | 20762 |  | 
 | 20763 | if test -z "$ARGZ_H"; then : | 
 | 20764 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | 
 | 20765 | $as_echo_n "checking if argz actually works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20766 | if ${lt_cv_sys_argz_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20767 |   $as_echo_n "(cached) " >&6 | 
 | 20768 | else | 
 | 20769 |   case $host_os in #( | 
 | 20770 | 	 *cygwin*) | 
 | 20771 | 	   lt_cv_sys_argz_works=no | 
 | 20772 | 	   if test "$cross_compiling" != no; then | 
 | 20773 | 	     lt_cv_sys_argz_works="guessing no" | 
 | 20774 | 	   else | 
 | 20775 | 	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | 
 | 20776 | 	     save_IFS=$IFS | 
 | 20777 | 	     IFS=-. | 
 | 20778 | 	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | 
 | 20779 | 	     IFS=$save_IFS | 
 | 20780 | 	     lt_os_major=${2-0} | 
 | 20781 | 	     lt_os_minor=${3-0} | 
 | 20782 | 	     lt_os_micro=${4-0} | 
 | 20783 | 	     if test "$lt_os_major" -gt 1 \ | 
 | 20784 | 		|| { test "$lt_os_major" -eq 1 \ | 
 | 20785 | 		  && { test "$lt_os_minor" -gt 5 \ | 
 | 20786 | 		    || { test "$lt_os_minor" -eq 5 \ | 
 | 20787 | 		      && test "$lt_os_micro" -gt 24; }; }; }; then | 
 | 20788 | 	       lt_cv_sys_argz_works=yes | 
 | 20789 | 	     fi | 
 | 20790 | 	   fi | 
 | 20791 | 	   ;; #( | 
 | 20792 | 	 *) lt_cv_sys_argz_works=yes ;; | 
 | 20793 | 	 esac | 
 | 20794 | fi | 
 | 20795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | 
 | 20796 | $as_echo "$lt_cv_sys_argz_works" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20797 |      if test "$lt_cv_sys_argz_works" = yes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20798 |  | 
 | 20799 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h | 
 | 20800 |  | 
 | 20801 | else | 
 | 20802 |   ARGZ_H=argz.h | 
 | 20803 |  | 
 | 20804 |  | 
 | 20805 |   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
 | 20806 |  | 
 | 20807 | fi | 
 | 20808 | fi | 
 | 20809 |  | 
 | 20810 |  | 
 | 20811 |  | 
 | 20812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
 | 20813 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20814 | if ${libltdl_cv_preloaded_symbols+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20815 |   $as_echo_n "(cached) " >&6 | 
 | 20816 | else | 
 | 20817 |   if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
 | 20818 |     libltdl_cv_preloaded_symbols=yes | 
 | 20819 |   else | 
 | 20820 |     libltdl_cv_preloaded_symbols=no | 
 | 20821 |   fi | 
 | 20822 |  | 
 | 20823 | fi | 
 | 20824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | 
 | 20825 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | 
 | 20826 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
 | 20827 |  | 
 | 20828 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | 
 | 20829 |  | 
 | 20830 | fi | 
 | 20831 |  | 
 | 20832 | # Set options | 
 | 20833 |  | 
 | 20834 |  | 
 | 20835 |  | 
 | 20836 |  | 
 | 20837 |  | 
 | 20838 |  | 
 | 20839 |  | 
 | 20840 |  | 
 | 20841 |  | 
 | 20842 |  | 
 | 20843 |  | 
 | 20844 | # Check whether --with-included_ltdl was given. | 
 | 20845 | if test "${with_included_ltdl+set}" = set; then : | 
 | 20846 |   withval=$with_included_ltdl; | 
 | 20847 | fi | 
 | 20848 |  | 
 | 20849 |  | 
 | 20850 | if test "x$with_included_ltdl" != xyes; then | 
 | 20851 |   # We are not being forced to use the included libltdl sources, so | 
 | 20852 |   # decide whether there is a useful installed version we can use. | 
 | 20853 |   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | 
 | 20854 |  | 
 | 20855 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20856 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20857 |   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | 
 | 20858 | 	    #include <ltdl.h> | 
 | 20859 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20860 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20861 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | 
 | 20862 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20863 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20864 |   $as_echo_n "(cached) " >&6 | 
 | 20865 | else | 
 | 20866 |   ac_check_lib_save_LIBS=$LIBS | 
 | 20867 | LIBS="-lltdl  $LIBS" | 
 | 20868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 20869 | /* end confdefs.h.  */ | 
 | 20870 |  | 
 | 20871 | /* Override any GCC internal prototype to avoid an error. | 
 | 20872 |    Use char because int might match the return type of a GCC | 
 | 20873 |    builtin and then its argument prototype would still apply.  */ | 
 | 20874 | #ifdef __cplusplus | 
 | 20875 | extern "C" | 
 | 20876 | #endif | 
 | 20877 | char lt_dladvise_preload (); | 
 | 20878 | int | 
 | 20879 | main () | 
 | 20880 | { | 
 | 20881 | return lt_dladvise_preload (); | 
 | 20882 |   ; | 
 | 20883 |   return 0; | 
 | 20884 | } | 
 | 20885 | _ACEOF | 
 | 20886 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 20887 |   ac_cv_lib_ltdl_lt_dladvise_preload=yes | 
 | 20888 | else | 
 | 20889 |   ac_cv_lib_ltdl_lt_dladvise_preload=no | 
 | 20890 | fi | 
 | 20891 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 20892 |     conftest$ac_exeext conftest.$ac_ext | 
 | 20893 | LIBS=$ac_check_lib_save_LIBS | 
 | 20894 | fi | 
 | 20895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | 
 | 20896 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20897 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20898 |   with_included_ltdl=no | 
 | 20899 | else | 
 | 20900 |   with_included_ltdl=yes | 
 | 20901 | fi | 
 | 20902 |  | 
 | 20903 | else | 
 | 20904 |   with_included_ltdl=yes | 
 | 20905 | fi | 
 | 20906 |  | 
 | 20907 | else | 
 | 20908 |   with_included_ltdl=yes | 
 | 20909 | fi | 
 | 20910 |  | 
 | 20911 |  | 
 | 20912 | fi | 
 | 20913 |  | 
 | 20914 |  | 
 | 20915 |  | 
 | 20916 |  | 
 | 20917 | # Check whether --with-ltdl_include was given. | 
 | 20918 | if test "${with_ltdl_include+set}" = set; then : | 
 | 20919 |   withval=$with_ltdl_include; | 
 | 20920 | fi | 
 | 20921 |  | 
 | 20922 |  | 
 | 20923 | if test -n "$with_ltdl_include"; then | 
 | 20924 |   if test -f "$with_ltdl_include/ltdl.h"; then : | 
 | 20925 |   else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20926 |     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20927 |   fi | 
 | 20928 | else | 
 | 20929 |   with_ltdl_include=no | 
 | 20930 | fi | 
 | 20931 |  | 
 | 20932 |  | 
 | 20933 | # Check whether --with-ltdl_lib was given. | 
 | 20934 | if test "${with_ltdl_lib+set}" = set; then : | 
 | 20935 |   withval=$with_ltdl_lib; | 
 | 20936 | fi | 
 | 20937 |  | 
 | 20938 |  | 
 | 20939 | if test -n "$with_ltdl_lib"; then | 
 | 20940 |   if test -f "$with_ltdl_lib/libltdl.la"; then : | 
 | 20941 |   else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20942 |     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20943 |   fi | 
 | 20944 | else | 
 | 20945 |   with_ltdl_lib=no | 
 | 20946 | fi | 
 | 20947 |  | 
 | 20948 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | 
 | 20949 |   ,yes,no,no,) | 
 | 20950 | 	case $enable_ltdl_convenience in | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20951 |   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20952 |   "") enable_ltdl_convenience=yes | 
 | 20953 |       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 
 | 20954 | esac | 
 | 20955 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | 
 | 20956 | LTDLDEPS=$LIBLTDL | 
 | 20957 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | 
 | 20958 |  | 
 | 20959 |  | 
 | 20960 |  | 
 | 20961 |  | 
 | 20962 |  | 
 | 20963 | # For backwards non-gettext consistent compatibility... | 
 | 20964 | INCLTDL="$LTDLINCL" | 
 | 20965 |  | 
 | 20966 |  | 
 | 20967 | 	;; | 
 | 20968 |   ,no,no,no,) | 
 | 20969 | 	# If the included ltdl is not to be used, then use the | 
 | 20970 | 	# preinstalled libltdl we found. | 
 | 20971 |  | 
 | 20972 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | 
 | 20973 |  | 
 | 20974 | 	LIBLTDL=-lltdl | 
 | 20975 | 	LTDLDEPS= | 
 | 20976 | 	LTDLINCL= | 
 | 20977 | 	;; | 
 | 20978 |   ,no*,no,*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20979 | 	as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20980 | 	;; | 
 | 20981 |   *)	with_included_ltdl=no | 
 | 20982 | 	LIBLTDL="-L$with_ltdl_lib -lltdl" | 
 | 20983 | 	LTDLDEPS= | 
 | 20984 | 	LTDLINCL="-I$with_ltdl_include" | 
 | 20985 | 	;; | 
 | 20986 | esac | 
 | 20987 | INCLTDL="$LTDLINCL" | 
 | 20988 |  | 
 | 20989 | # Report our decision... | 
 | 20990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | 
 | 20991 | $as_echo_n "checking where to find libltdl headers... " >&6; } | 
 | 20992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | 
 | 20993 | $as_echo "$LTDLINCL" >&6; } | 
 | 20994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | 
 | 20995 | $as_echo_n "checking where to find libltdl library... " >&6; } | 
 | 20996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | 
 | 20997 | $as_echo "$LIBLTDL" >&6; } | 
 | 20998 |  | 
 | 20999 |  | 
 | 21000 |  | 
 | 21001 | # Check whether --enable-ltdl-install was given. | 
 | 21002 | if test "${enable_ltdl_install+set}" = set; then : | 
 | 21003 |   enableval=$enable_ltdl_install; | 
 | 21004 | fi | 
 | 21005 |  | 
 | 21006 |  | 
 | 21007 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | 
 | 21008 |   *yes*) ;; | 
 | 21009 |   *) enable_ltdl_convenience=yes ;; | 
 | 21010 | esac | 
 | 21011 |  | 
 | 21012 |  if test x"${enable_ltdl_install-no}" != xno; then | 
 | 21013 |   INSTALL_LTDL_TRUE= | 
 | 21014 |   INSTALL_LTDL_FALSE='#' | 
 | 21015 | else | 
 | 21016 |   INSTALL_LTDL_TRUE='#' | 
 | 21017 |   INSTALL_LTDL_FALSE= | 
 | 21018 | fi | 
 | 21019 |  | 
 | 21020 |   if test x"${enable_ltdl_convenience-no}" != xno; then | 
 | 21021 |   CONVENIENCE_LTDL_TRUE= | 
 | 21022 |   CONVENIENCE_LTDL_FALSE='#' | 
 | 21023 | else | 
 | 21024 |   CONVENIENCE_LTDL_TRUE='#' | 
 | 21025 |   CONVENIENCE_LTDL_FALSE= | 
 | 21026 | fi | 
 | 21027 |  | 
 | 21028 |  | 
 | 21029 |  | 
 | 21030 |  | 
 | 21031 |  | 
 | 21032 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21033 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | 
 | 21034 | # the user used.  This is so that ltdl.h can pick up the parent projects | 
 | 21035 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | 
 | 21036 | # definitions required by ltdl.c. | 
 | 21037 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | 
 | 21038 |  | 
 | 21039 |  | 
 | 21040 |  | 
 | 21041 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | 
 | 21042 | do : | 
 | 21043 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 21044 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 21045 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21046 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21047 |   cat >>confdefs.h <<_ACEOF | 
 | 21048 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 21049 | _ACEOF | 
 | 21050 |  | 
 | 21051 | fi | 
 | 21052 |  | 
 | 21053 | done | 
 | 21054 |  | 
 | 21055 |  | 
 | 21056 | for ac_func in closedir opendir readdir | 
 | 21057 | do : | 
 | 21058 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 21059 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21060 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21061 |   cat >>confdefs.h <<_ACEOF | 
 | 21062 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 21063 | _ACEOF | 
 | 21064 |  | 
 | 21065 | else | 
 | 21066 |  | 
 | 21067 |  | 
 | 21068 |   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | 
 | 21069 |  | 
 | 21070 | fi | 
 | 21071 | done | 
 | 21072 |  | 
 | 21073 | for ac_func in strlcat strlcpy | 
 | 21074 | do : | 
 | 21075 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 21076 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21077 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21078 |   cat >>confdefs.h <<_ACEOF | 
 | 21079 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 21080 | _ACEOF | 
 | 21081 |  | 
 | 21082 | else | 
 | 21083 |  | 
 | 21084 |  | 
 | 21085 |   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | 
 | 21086 |  | 
 | 21087 | fi | 
 | 21088 | done | 
 | 21089 |  | 
 | 21090 |  | 
 | 21091 |  | 
 | 21092 | cat >>confdefs.h <<_ACEOF | 
 | 21093 | #define LT_LIBEXT "$libext" | 
 | 21094 | _ACEOF | 
 | 21095 |  | 
 | 21096 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21097 | name= | 
 | 21098 | eval "lt_libprefix=\"$libname_spec\"" | 
 | 21099 |  | 
 | 21100 | cat >>confdefs.h <<_ACEOF | 
 | 21101 | #define LT_LIBPREFIX "$lt_libprefix" | 
 | 21102 | _ACEOF | 
 | 21103 |  | 
 | 21104 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21105 | name=ltdl | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21106 | eval "LTDLOPEN=\"$libname_spec\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21107 |  | 
 | 21108 |  | 
 | 21109 |  | 
 | 21110 |  | 
 | 21111 |  | 
 | 21112 |  | 
 | 21113 |  | 
 | 21114 |  | 
 | 21115 | # Only expand once: | 
 | 21116 |  | 
 | 21117 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21118 |  | 
 | 21119 | # Check to see if building shared libraries | 
 | 21120 | libtool_build_shared_libs='no' | 
 | 21121 | if test "$enable_shared" = 'yes'; then | 
 | 21122 |     libtool_build_shared_libs='yes' | 
 | 21123 | fi | 
 | 21124 |  | 
 | 21125 | # Check to see if building static libraries | 
 | 21126 | libtool_build_static_libs='no' | 
 | 21127 | if test "$enable_static" = 'yes'; then | 
 | 21128 |     libtool_build_static_libs='yes' | 
 | 21129 | fi | 
 | 21130 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21131 |  if test "${libtool_build_shared_libs}" = 'yes'; then | 
 | 21132 |   WITH_SHARED_LIBS_TRUE= | 
 | 21133 |   WITH_SHARED_LIBS_FALSE='#' | 
 | 21134 | else | 
 | 21135 |   WITH_SHARED_LIBS_TRUE='#' | 
 | 21136 |   WITH_SHARED_LIBS_FALSE= | 
 | 21137 | fi | 
 | 21138 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21139 | # | 
 | 21140 | # Enable support for building loadable modules | 
 | 21141 | # | 
 | 21142 |  | 
 | 21143 | # Check whether --with-modules was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21144 | if test "${with_modules+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21145 |   withval=$with_modules; with_modules=$withval | 
 | 21146 | else | 
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 21147 |   with_modules='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21148 | fi | 
 | 21149 |  | 
 | 21150 |  | 
 | 21151 | # Only allow building loadable modules if we are building shared libraries | 
 | 21152 | if test "$with_modules" != 'no' ; then | 
 | 21153 |     if test "$libtool_build_shared_libs" = 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21154 |         { $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] | 21155 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} | 
 | 21156 |         with_modules='no' | 
 | 21157 |     fi | 
 | 21158 | fi | 
 | 21159 | if test "$with_modules" != 'no'; then | 
 | 21160 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21161 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21162 |  | 
 | 21163 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21164 |  if test "$with_modules" != 'no'; then | 
 | 21165 |   WITH_MODULES_TRUE= | 
 | 21166 |   WITH_MODULES_FALSE='#' | 
 | 21167 | else | 
 | 21168 |   WITH_MODULES_TRUE='#' | 
 | 21169 |   WITH_MODULES_FALSE= | 
 | 21170 | fi | 
 | 21171 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21172 |  | 
 | 21173 | # Enable building/use of libltdl if we are building shared libraries regardless | 
 | 21174 | # of whether modules are built or not. | 
 | 21175 | with_ltdl='no' | 
 | 21176 | if test "$libtool_build_shared_libs" != 'no'; then | 
 | 21177 |     with_ltdl='yes' | 
 | 21178 | fi | 
 | 21179 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21180 |  if test "$with_ltdl" != 'no'; then | 
 | 21181 |   WITH_LTDL_TRUE= | 
 | 21182 |   WITH_LTDL_FALSE='#' | 
 | 21183 | else | 
 | 21184 |   WITH_LTDL_TRUE='#' | 
 | 21185 |   WITH_LTDL_FALSE= | 
 | 21186 | fi | 
 | 21187 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21188 | if test "$with_ltdl" != 'no'; then | 
 | 21189 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21190 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21191 |  | 
 | 21192 |  | 
 | 21193 |     # Set DLLDFLAGS | 
 | 21194 |     if test X"$enable_shared" = Xyes; then | 
 | 21195 |         DLLDFLAGS=-export-dynamic | 
 | 21196 |  | 
 | 21197 |     fi | 
 | 21198 | fi | 
 | 21199 |  | 
 | 21200 | # Enable build using delegate libraries built in subdirectories rather than installed | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 21201 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | # Check whether --enable-delegate-build was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21203 | if test "${enable_delegate_build+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21204 |   enableval=$enable_delegate_build; enable_delegate_build=$enableval | 
 | 21205 | else | 
 | 21206 |   enable_delegate_build='no' | 
 | 21207 | fi | 
 | 21208 |  | 
 | 21209 |  | 
 | 21210 | # Check whether --enable-deprecated was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21211 | if test "${enable_deprecated+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21212 |   enableval=$enable_deprecated; enable_deprecated=$enableval | 
 | 21213 | else | 
 | 21214 |   enable_deprecated='no' | 
 | 21215 | fi | 
 | 21216 |  | 
 | 21217 |  | 
 | 21218 | if test "$enable_deprecated" = 'yes'; then | 
 | 21219 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21220 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21221 |  | 
 | 21222 | else | 
 | 21223 |   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " | 
 | 21224 | fi | 
 | 21225 |  | 
 | 21226 | # Build a version of ImageMagick which operates uninstalled. | 
 | 21227 | # Used to build distributions located via MAGICK_HOME / executable path | 
 | 21228 | # Check whether --enable-installed was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21229 | if test "${enable_installed+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21230 |   enableval=$enable_installed; enable_installed=$enableval | 
 | 21231 | else | 
 | 21232 |   enable_installed='yes' | 
 | 21233 | fi | 
 | 21234 |  | 
 | 21235 |  | 
 | 21236 | if test "$enable_installed" = 'yes'; then | 
 | 21237 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21238 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21239 |  | 
 | 21240 | else | 
 | 21241 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " | 
 | 21242 | fi | 
 | 21243 |  | 
 | 21244 | # Permit enciphering and deciphering image pixels. | 
 | 21245 | # Check whether --enable-cipher was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21246 | if test "${enable_cipher+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21247 |   enableval=$enable_cipher; enable_cipher=$enableval | 
 | 21248 | else | 
 | 21249 |   enable_cipher='yes' | 
 | 21250 | fi | 
 | 21251 |  | 
 | 21252 |  | 
 | 21253 | if test "$enable_cipher" = 'yes'; then | 
 | 21254 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21255 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21256 |  | 
 | 21257 | fi | 
 | 21258 |  | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21259 | # Build a zero-configuration version of ImageMagick. | 
 | 21260 | # Check whether --enable-zero-configuration was given. | 
 | 21261 | if test "${enable_zero_configuration+set}" = set; then : | 
 | 21262 |   enableval=$enable_zero_configuration; enable_zero_configuration=$enableval | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21263 | else | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21264 |   enable_zero_configuration='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21265 | fi | 
 | 21266 |  | 
 | 21267 |  | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21268 | if test "$enable_zero_configuration" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21269 |  | 
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21270 | $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21271 |  | 
| cristy | 81af570 | 2011-09-13 14:20:58 +0000 | [diff] [blame] | 21272 |     MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21273 | fi | 
 | 21274 |  | 
 | 21275 | # Build a high dynamic range version of ImageMagick. | 
 | 21276 | # Check whether --enable-hdri was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21277 | if test "${enable_hdri+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21278 |   enableval=$enable_hdri; enable_hdri=$enableval | 
 | 21279 | else | 
 | 21280 |   enable_hdri='no' | 
 | 21281 | fi | 
 | 21282 |  | 
 | 21283 |  | 
 | 21284 | MAGICK_HDRI="" | 
 | 21285 | if test "$enable_hdri" = 'yes'; then | 
 | 21286 |     MAGICK_HDRI="HDRI" | 
 | 21287 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21288 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21289 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 21290 |     MAGICK_FEATURES="HDRI $MAGICK_FEATURES" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21291 | fi | 
 | 21292 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21293 | # Build a version of ImageMagick with assert statements. | 
 | 21294 | # Check whether --enable-assert was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21295 | if test "${enable_assert+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21296 |   enableval=$enable_assert; enable_assert=$enableval | 
 | 21297 | else | 
 | 21298 |   enable_assert='yes' | 
 | 21299 | fi | 
 | 21300 |  | 
 | 21301 |  | 
 | 21302 | if test "$enable_assert" = 'no'; then | 
 | 21303 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21304 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21305 |  | 
 | 21306 | fi | 
 | 21307 |  | 
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 21308 | # Don't emit "rebuild rules" for configure, Makefile.ins, etc. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21309 |  | 
 | 21310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
 | 21311 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | 
 | 21312 |     # Check whether --enable-maintainer-mode was given. | 
 | 21313 | if test "${enable_maintainer_mode+set}" = set; then : | 
 | 21314 |   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 
 | 21315 | else | 
 | 21316 |   USE_MAINTAINER_MODE=no | 
 | 21317 | fi | 
 | 21318 |  | 
 | 21319 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | 
 | 21320 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | 
 | 21321 |    if test $USE_MAINTAINER_MODE = yes; then | 
 | 21322 |   MAINTAINER_MODE_TRUE= | 
 | 21323 |   MAINTAINER_MODE_FALSE='#' | 
 | 21324 | else | 
 | 21325 |   MAINTAINER_MODE_TRUE='#' | 
 | 21326 |   MAINTAINER_MODE_FALSE= | 
 | 21327 | fi | 
 | 21328 |  | 
 | 21329 |   MAINT=$MAINTAINER_MODE_TRUE | 
 | 21330 |  | 
 | 21331 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21332 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21333 | # Enable ccmalloc memory debugging support | 
 | 21334 | # Check whether --enable-ccmalloc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21335 | if test "${enable_ccmalloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21336 |   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval | 
 | 21337 | else | 
 | 21338 |   enable_ccmalloc='no' | 
 | 21339 | fi | 
 | 21340 |  | 
 | 21341 |  | 
 | 21342 | # Enable Electric Fence memory debugging support | 
 | 21343 | # Check whether --enable-efence was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21344 | if test "${enable_efence+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21345 |   enableval=$enable_efence; enable_efence=$enableval | 
 | 21346 | else | 
 | 21347 |   enable_efence='no' | 
 | 21348 | fi | 
 | 21349 |  | 
 | 21350 |  | 
 | 21351 | # Enable prof-based profiling support | 
 | 21352 | # Check whether --enable-prof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21353 | if test "${enable_prof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21354 |   enableval=$enable_prof; enable_prof=$enableval | 
 | 21355 | else | 
 | 21356 |   enable_prof='no' | 
 | 21357 | fi | 
 | 21358 |  | 
 | 21359 |  | 
 | 21360 | # Enable gprof-based profiling support | 
 | 21361 | # Check whether --enable-gprof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21362 | if test "${enable_gprof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21363 |   enableval=$enable_gprof; enable_gprof=$enableval | 
 | 21364 | else | 
 | 21365 |   enable_gprof='no' | 
 | 21366 | fi | 
 | 21367 |  | 
 | 21368 |  | 
 | 21369 | # Enable gcov-based profiling support | 
 | 21370 | # Check whether --enable-gcov was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21371 | if test "${enable_gcov+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21372 |   enableval=$enable_gcov; enable_gcov=$enableval | 
 | 21373 | else | 
 | 21374 |   enable_gcov='no' | 
 | 21375 | fi | 
 | 21376 |  | 
 | 21377 |  | 
 | 21378 | enable_profiling='no' | 
 | 21379 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then | 
 | 21380 |     enable_profiling='yes' | 
 | 21381 |     if test "$libtool_build_shared_libs" = 'yes'; then | 
 | 21382 |         echo "Warning: Can not profile code using shared libraries" | 
 | 21383 |     fi | 
 | 21384 | fi | 
 | 21385 |  | 
 | 21386 | # Magick API method prefix | 
 | 21387 |  | 
 | 21388 | # Check whether --with-method-prefix was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21389 | if test "${with_method_prefix+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21390 |   withval=$with_method_prefix; with_method_prefix=$enableval | 
 | 21391 | else | 
 | 21392 |   with_method_prefix='' | 
 | 21393 | fi | 
 | 21394 |  | 
 | 21395 |  | 
 | 21396 | if test "$with_method_prefix" != ''; then | 
 | 21397 |  | 
 | 21398 | cat >>confdefs.h <<_ACEOF | 
 | 21399 | #define NAMESPACE_PREFIX $with_method_prefix | 
 | 21400 | _ACEOF | 
 | 21401 |  | 
 | 21402 | fi | 
 | 21403 |  | 
 | 21404 | # Number of bits in a Quantum | 
 | 21405 |  | 
 | 21406 | # Check whether --with-quantum-depth was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21407 | if test "${with_quantum_depth+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21408 |   withval=$with_quantum_depth; with_quantum_depth=$withval | 
 | 21409 | else | 
 | 21410 |   with_quantum_depth=16 | 
 | 21411 | fi | 
 | 21412 |  | 
 | 21413 |  | 
 | 21414 | if test "$with_quantum_depth" != '8'; then | 
 | 21415 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " | 
 | 21416 | fi | 
 | 21417 |  | 
 | 21418 | case "${with_quantum_depth}" in | 
 | 21419 |     8 ) ;; | 
 | 21420 |     16 ) ;; | 
 | 21421 |     32 ) ;; | 
 | 21422 |     64 ) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21423 |     * ) 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] | 21424 | esac | 
 | 21425 | QUANTUM_DEPTH="$with_quantum_depth" | 
 | 21426 |  | 
 | 21427 | cat >>confdefs.h <<_ACEOF | 
 | 21428 | #define QUANTUM_DEPTH $QUANTUM_DEPTH | 
 | 21429 | _ACEOF | 
 | 21430 |  | 
 | 21431 |  | 
 | 21432 | # Set pixel cache threshold | 
 | 21433 |  | 
 | 21434 | # Check whether --with-cache was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21435 | if test "${with_cache+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21436 |   withval=$with_cache; with_cache=$withval | 
 | 21437 | else | 
 | 21438 |   with_cache='' | 
 | 21439 | fi | 
 | 21440 |  | 
 | 21441 |  | 
 | 21442 | if test "$with_cache" != ''; then | 
 | 21443 |  | 
 | 21444 | cat >>confdefs.h <<_ACEOF | 
 | 21445 | #define PixelCacheThreshold $with_cache | 
 | 21446 | _ACEOF | 
 | 21447 |  | 
 | 21448 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " | 
 | 21449 | fi | 
 | 21450 |  | 
 | 21451 | # Disable/Enable support for full delegate paths | 
 | 21452 |  | 
 | 21453 | # Check whether --with-frozenpaths was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21454 | if test "${with_frozenpaths+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21455 |   withval=$with_frozenpaths; with_frozenpaths=$withval | 
 | 21456 | else | 
 | 21457 |   with_frozenpaths='no' | 
 | 21458 | fi | 
 | 21459 |  | 
 | 21460 |  | 
 | 21461 | # Enable build/install of Magick++ | 
 | 21462 |  | 
 | 21463 | # Check whether --with-magick-plus-plus was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21464 | if test "${with_magick_plus_plus+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21465 |   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval | 
 | 21466 | else | 
 | 21467 |   with_magick_plus_plus='yes' | 
 | 21468 | fi | 
 | 21469 |  | 
 | 21470 |  | 
 | 21471 | # Disable build/install of PerlMagick. | 
 | 21472 |  | 
 | 21473 | # Check whether --with-perl was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21474 | if test "${with_perl+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21475 |   withval=$with_perl; with_perl=$withval | 
 | 21476 | else | 
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 21477 |   with_perl='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21478 | fi | 
 | 21479 |  | 
 | 21480 |  | 
 | 21481 | # Options to pass when configuring PerlMagick | 
 | 21482 |  | 
 | 21483 | # Check whether --with-perl-options was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21484 | if test "${with_perl_options+set}" = set; then : | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 21485 |   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21486 | fi | 
 | 21487 |  | 
 | 21488 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21489 |  | 
 | 21490 | # Enable umem, object-caching memory allocation library. | 
 | 21491 |  | 
 | 21492 | # Check whether --with-umem was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21493 | if test "${with_umem+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21494 |   withval=$with_umem; with_umem=$withval | 
 | 21495 | else | 
 | 21496 |   with_umem='no' | 
 | 21497 | fi | 
 | 21498 |  | 
 | 21499 | if test "$with_umem" != 'yes' ; then | 
 | 21500 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " | 
 | 21501 | fi | 
 | 21502 |  | 
 | 21503 | # | 
 | 21504 | # Specify path to shared libstdc++ if not in normal location | 
 | 21505 | # | 
 | 21506 |  | 
 | 21507 | # Check whether --with-libstdc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21508 | if test "${with_libstdc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21509 |   withval=$with_libstdc; with_libstdc=$withval | 
 | 21510 | else | 
 | 21511 |   with_libstdc='' | 
 | 21512 | fi | 
 | 21513 |  | 
 | 21514 |  | 
 | 21515 | if test "$with_libstdc" != ''; then | 
 | 21516 |     if test -d "$with_libstdc"; then | 
 | 21517 |         LIBSTDCLDFLAGS="-L$with_libstdc" | 
 | 21518 |     fi | 
 | 21519 | fi | 
 | 21520 |  | 
 | 21521 |  | 
 | 21522 | # Does gcc required -traditional? | 
 | 21523 | if test $ac_cv_c_compiler_gnu = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21524 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21525 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21526 | if ${ac_cv_prog_gcc_traditional+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21527 |   $as_echo_n "(cached) " >&6 | 
 | 21528 | else | 
 | 21529 |     ac_pattern="Autoconf.*'x'" | 
| 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 | #include <sgtty.h> | 
 | 21533 | Autoconf TIOCGETP | 
 | 21534 | _ACEOF | 
 | 21535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21536 |   $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21537 |   ac_cv_prog_gcc_traditional=yes | 
 | 21538 | else | 
 | 21539 |   ac_cv_prog_gcc_traditional=no | 
 | 21540 | fi | 
 | 21541 | rm -f conftest* | 
 | 21542 |  | 
 | 21543 |  | 
 | 21544 |   if test $ac_cv_prog_gcc_traditional = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21545 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21546 | /* end confdefs.h.  */ | 
 | 21547 | #include <termio.h> | 
 | 21548 | Autoconf TCGETA | 
 | 21549 | _ACEOF | 
 | 21550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21551 |   $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21552 |   ac_cv_prog_gcc_traditional=yes | 
 | 21553 | fi | 
 | 21554 | rm -f conftest* | 
 | 21555 |  | 
 | 21556 |   fi | 
 | 21557 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21558 | { $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] | 21559 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | 
 | 21560 |   if test $ac_cv_prog_gcc_traditional = yes; then | 
 | 21561 |     CC="$CC -traditional" | 
 | 21562 |   fi | 
 | 21563 | fi | 
 | 21564 |  | 
 | 21565 |  | 
 | 21566 | ######## | 
 | 21567 | # | 
 | 21568 | # Set defines required to build DLLs and modules using MinGW | 
 | 21569 | # | 
 | 21570 | ######## | 
 | 21571 | # These options are set for multi-thread DLL module build | 
 | 21572 | #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_ | 
 | 21573 | #  module:              _DLL | 
 | 21574 | #  executable/Magick++: _DLL _MAGICKMOD_ | 
 | 21575 | MODULE_EXTRA_CPPFLAGS='' | 
 | 21576 | LIBRARY_EXTRA_CPPFLAGS='' | 
 | 21577 | if test "${native_win32_build}" = 'yes'; then | 
 | 21578 |     if test "${libtool_build_shared_libs}" = 'yes'; then | 
 | 21579 |         CPPFLAGS="$CPPFLAGS -D_DLL" | 
 | 21580 |         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" | 
 | 21581 |         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" | 
 | 21582 |         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
 | 21583 |         if test "$with_modules" = 'yes'; then | 
 | 21584 |             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" | 
 | 21585 |         else | 
 | 21586 |             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
 | 21587 |         fi | 
 | 21588 |     else | 
 | 21589 |         CPPFLAGS="$CPPFLAGS -D_LIB" | 
 | 21590 |         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" | 
 | 21591 |         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" | 
 | 21592 |     fi | 
 | 21593 |     if test "$with_threads" = 'yes'; then | 
 | 21594 |          CPPFLAGS="$CPPFLAGS -D_MT" | 
 | 21595 |          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" | 
 | 21596 |          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" | 
 | 21597 |     fi | 
 | 21598 | fi | 
 | 21599 |  | 
 | 21600 |  | 
 | 21601 |  | 
 | 21602 | # Check standard headers | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21603 | { $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] | 21604 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21605 | if ${ac_cv_header_stdc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21606 |   $as_echo_n "(cached) " >&6 | 
 | 21607 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21608 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21609 | /* end confdefs.h.  */ | 
 | 21610 | #include <stdlib.h> | 
 | 21611 | #include <stdarg.h> | 
 | 21612 | #include <string.h> | 
 | 21613 | #include <float.h> | 
 | 21614 |  | 
 | 21615 | int | 
 | 21616 | main () | 
 | 21617 | { | 
 | 21618 |  | 
 | 21619 |   ; | 
 | 21620 |   return 0; | 
 | 21621 | } | 
 | 21622 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21623 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21624 |   ac_cv_header_stdc=yes | 
 | 21625 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21626 |   ac_cv_header_stdc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21627 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 21629 |  | 
 | 21630 | if test $ac_cv_header_stdc = yes; then | 
 | 21631 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21632 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21633 | /* end confdefs.h.  */ | 
 | 21634 | #include <string.h> | 
 | 21635 |  | 
 | 21636 | _ACEOF | 
 | 21637 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21638 |   $EGREP "memchr" >/dev/null 2>&1; then : | 
 | 21639 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21640 | else | 
 | 21641 |   ac_cv_header_stdc=no | 
 | 21642 | fi | 
 | 21643 | rm -f conftest* | 
 | 21644 |  | 
 | 21645 | fi | 
 | 21646 |  | 
 | 21647 | if test $ac_cv_header_stdc = yes; then | 
 | 21648 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21649 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21650 | /* end confdefs.h.  */ | 
 | 21651 | #include <stdlib.h> | 
 | 21652 |  | 
 | 21653 | _ACEOF | 
 | 21654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21655 |   $EGREP "free" >/dev/null 2>&1; then : | 
 | 21656 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21657 | else | 
 | 21658 |   ac_cv_header_stdc=no | 
 | 21659 | fi | 
 | 21660 | rm -f conftest* | 
 | 21661 |  | 
 | 21662 | fi | 
 | 21663 |  | 
 | 21664 | if test $ac_cv_header_stdc = yes; then | 
 | 21665 |   # /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] | 21666 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21667 |   : | 
 | 21668 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21669 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21670 | /* end confdefs.h.  */ | 
 | 21671 | #include <ctype.h> | 
 | 21672 | #include <stdlib.h> | 
 | 21673 | #if ((' ' & 0x0FF) == 0x020) | 
 | 21674 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 21675 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 21676 | #else | 
 | 21677 | # define ISLOWER(c) \ | 
 | 21678 | 		   (('a' <= (c) && (c) <= 'i') \ | 
 | 21679 | 		     || ('j' <= (c) && (c) <= 'r') \ | 
 | 21680 | 		     || ('s' <= (c) && (c) <= 'z')) | 
 | 21681 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
 | 21682 | #endif | 
 | 21683 |  | 
 | 21684 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 21685 | int | 
 | 21686 | main () | 
 | 21687 | { | 
 | 21688 |   int i; | 
 | 21689 |   for (i = 0; i < 256; i++) | 
 | 21690 |     if (XOR (islower (i), ISLOWER (i)) | 
 | 21691 | 	|| toupper (i) != TOUPPER (i)) | 
 | 21692 |       return 2; | 
 | 21693 |   return 0; | 
 | 21694 | } | 
 | 21695 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21696 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 21697 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21698 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21699 |   ac_cv_header_stdc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21700 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21701 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 21702 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21703 | fi | 
 | 21704 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21705 | fi | 
 | 21706 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21708 | $as_echo "$ac_cv_header_stdc" >&6; } | 
 | 21709 | if test $ac_cv_header_stdc = yes; then | 
 | 21710 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21711 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21712 |  | 
 | 21713 | fi | 
 | 21714 |  | 
 | 21715 | if ! test x"$ac_cv_header_stdc" = x"yes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21716 |     { $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] | 21717 |     header files.  Compilation cannot proceed.  Please install the ANSI C | 
 | 21718 |     headers and rerun this script." >&5 | 
 | 21719 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C | 
 | 21720 |     header files.  Compilation cannot proceed.  Please install the ANSI C | 
 | 21721 |     headers and rerun this script." >&2;}; | 
 | 21722 | fi | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21723 |  | 
 | 21724 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 | 
 | 21725 | $as_echo_n "checking whether to enable assertions... " >&6; } | 
 | 21726 |   # Check whether --enable-assert was given. | 
 | 21727 | if test "${enable_assert+set}" = set; then : | 
 | 21728 |   enableval=$enable_assert; ac_enable_assert=$enableval | 
 | 21729 |      if       test "x$enableval" = xno; then : | 
 | 21730 |  | 
 | 21731 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
 | 21732 |  | 
 | 21733 | elif test "x$enableval" != xyes; then : | 
 | 21734 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 | 
 | 21735 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} | 
 | 21736 | 	ac_enable_assert=yes | 
 | 21737 | fi | 
 | 21738 | else | 
 | 21739 |   ac_enable_assert=yes | 
 | 21740 | fi | 
 | 21741 |  | 
 | 21742 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 | 
 | 21743 | $as_echo "$ac_enable_assert" >&6; } | 
 | 21744 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21745 | ac_header_dirent=no | 
 | 21746 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
 | 21747 |   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] | 21748 | { $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] | 21749 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21750 | if eval \${$as_ac_Header+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21751 |   $as_echo_n "(cached) " >&6 | 
 | 21752 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21753 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21754 | /* end confdefs.h.  */ | 
 | 21755 | #include <sys/types.h> | 
 | 21756 | #include <$ac_hdr> | 
 | 21757 |  | 
 | 21758 | int | 
 | 21759 | main () | 
 | 21760 | { | 
 | 21761 | if ((DIR *) 0) | 
 | 21762 | return 0; | 
 | 21763 |   ; | 
 | 21764 |   return 0; | 
 | 21765 | } | 
 | 21766 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21767 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21768 |   eval "$as_ac_Header=yes" | 
 | 21769 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21770 |   eval "$as_ac_Header=no" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21771 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 21773 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21774 | eval ac_res=\$$as_ac_Header | 
 | 21775 | 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21776 | $as_echo "$ac_res" >&6; } | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21777 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21778 |   cat >>confdefs.h <<_ACEOF | 
 | 21779 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
 | 21780 | _ACEOF | 
 | 21781 |  | 
 | 21782 | ac_header_dirent=$ac_hdr; break | 
 | 21783 | fi | 
 | 21784 |  | 
 | 21785 | done | 
 | 21786 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 21787 | if test $ac_header_dirent = dirent.h; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21788 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21789 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21790 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21791 |   $as_echo_n "(cached) " >&6 | 
 | 21792 | else | 
 | 21793 |   ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21795 | /* end confdefs.h.  */ | 
 | 21796 |  | 
 | 21797 | /* Override any GCC internal prototype to avoid an error. | 
 | 21798 |    Use char because int might match the return type of a GCC | 
 | 21799 |    builtin and then its argument prototype would still apply.  */ | 
 | 21800 | #ifdef __cplusplus | 
 | 21801 | extern "C" | 
 | 21802 | #endif | 
 | 21803 | char opendir (); | 
 | 21804 | int | 
 | 21805 | main () | 
 | 21806 | { | 
 | 21807 | return opendir (); | 
 | 21808 |   ; | 
 | 21809 |   return 0; | 
 | 21810 | } | 
 | 21811 | _ACEOF | 
 | 21812 | for ac_lib in '' dir; do | 
 | 21813 |   if test -z "$ac_lib"; then | 
 | 21814 |     ac_res="none required" | 
 | 21815 |   else | 
 | 21816 |     ac_res=-l$ac_lib | 
 | 21817 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 21818 |   fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21819 |   if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21820 |   ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21821 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21822 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 21823 |     conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21824 |   if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21825 |   break | 
 | 21826 | fi | 
 | 21827 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21828 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21829 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21830 | else | 
 | 21831 |   ac_cv_search_opendir=no | 
 | 21832 | fi | 
 | 21833 | rm conftest.$ac_ext | 
 | 21834 | LIBS=$ac_func_search_save_LIBS | 
 | 21835 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21837 | $as_echo "$ac_cv_search_opendir" >&6; } | 
 | 21838 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21839 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21840 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 21841 |  | 
 | 21842 | fi | 
 | 21843 |  | 
 | 21844 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21845 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21846 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21847 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21848 |   $as_echo_n "(cached) " >&6 | 
 | 21849 | else | 
 | 21850 |   ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21852 | /* end confdefs.h.  */ | 
 | 21853 |  | 
 | 21854 | /* Override any GCC internal prototype to avoid an error. | 
 | 21855 |    Use char because int might match the return type of a GCC | 
 | 21856 |    builtin and then its argument prototype would still apply.  */ | 
 | 21857 | #ifdef __cplusplus | 
 | 21858 | extern "C" | 
 | 21859 | #endif | 
 | 21860 | char opendir (); | 
 | 21861 | int | 
 | 21862 | main () | 
 | 21863 | { | 
 | 21864 | return opendir (); | 
 | 21865 |   ; | 
 | 21866 |   return 0; | 
 | 21867 | } | 
 | 21868 | _ACEOF | 
 | 21869 | for ac_lib in '' x; do | 
 | 21870 |   if test -z "$ac_lib"; then | 
 | 21871 |     ac_res="none required" | 
 | 21872 |   else | 
 | 21873 |     ac_res=-l$ac_lib | 
 | 21874 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 21875 |   fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21876 |   if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21877 |   ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21878 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21879 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 21880 |     conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21881 |   if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21882 |   break | 
 | 21883 | fi | 
 | 21884 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21885 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21886 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21887 | else | 
 | 21888 |   ac_cv_search_opendir=no | 
 | 21889 | fi | 
 | 21890 | rm conftest.$ac_ext | 
 | 21891 | LIBS=$ac_func_search_save_LIBS | 
 | 21892 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21894 | $as_echo "$ac_cv_search_opendir" >&6; } | 
 | 21895 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21896 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21897 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 21898 |  | 
 | 21899 | fi | 
 | 21900 |  | 
 | 21901 | fi | 
 | 21902 |  | 
 | 21903 |  | 
 | 21904 | # Check additional headers | 
| cristy | a8549b1 | 2011-05-18 19:05:08 +0000 | [diff] [blame] | 21905 | for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21906 | do : | 
 | 21907 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 21908 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21909 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21910 |   cat >>confdefs.h <<_ACEOF | 
 | 21911 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 21912 | _ACEOF | 
 | 21913 |  | 
 | 21914 | fi | 
 | 21915 |  | 
 | 21916 | done | 
 | 21917 |  | 
 | 21918 |  | 
 | 21919 | ######## | 
 | 21920 | # | 
 | 21921 | # Checks for typedefs, structures, and compiler characteristics. | 
 | 21922 | # | 
 | 21923 | ######## | 
 | 21924 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21925 | { $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] | 21926 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21927 | if ${ac_cv_header_stdbool_h+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21928 |   $as_echo_n "(cached) " >&6 | 
 | 21929 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21930 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21931 | /* end confdefs.h.  */ | 
 | 21932 |  | 
 | 21933 | #include <stdbool.h> | 
 | 21934 | #ifndef bool | 
 | 21935 |  "error: bool is not defined" | 
 | 21936 | #endif | 
 | 21937 | #ifndef false | 
 | 21938 |  "error: false is not defined" | 
 | 21939 | #endif | 
 | 21940 | #if false | 
 | 21941 |  "error: false is not 0" | 
 | 21942 | #endif | 
 | 21943 | #ifndef true | 
 | 21944 |  "error: true is not defined" | 
 | 21945 | #endif | 
 | 21946 | #if true != 1 | 
 | 21947 |  "error: true is not 1" | 
 | 21948 | #endif | 
 | 21949 | #ifndef __bool_true_false_are_defined | 
 | 21950 |  "error: __bool_true_false_are_defined is not defined" | 
 | 21951 | #endif | 
 | 21952 |  | 
 | 21953 | 	struct s { _Bool s: 1; _Bool t; } s; | 
 | 21954 |  | 
 | 21955 | 	char a[true == 1 ? 1 : -1]; | 
 | 21956 | 	char b[false == 0 ? 1 : -1]; | 
 | 21957 | 	char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | 
 | 21958 | 	char d[(bool) 0.5 == true ? 1 : -1]; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21959 | 	/* See body of main program for 'e'.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21960 | 	char f[(_Bool) 0.0 == false ? 1 : -1]; | 
 | 21961 | 	char g[true]; | 
 | 21962 | 	char h[sizeof (_Bool)]; | 
 | 21963 | 	char i[sizeof s.t]; | 
 | 21964 | 	enum { j = false, k = true, l = false * true, m = true * 256 }; | 
 | 21965 | 	/* The following fails for | 
 | 21966 | 	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | 
 | 21967 | 	_Bool n[m]; | 
 | 21968 | 	char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | 
 | 21969 | 	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21970 | 	/* Catch a bug in an HP-UX C compiler.  See | 
 | 21971 | 	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | 
 | 21972 | 	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | 
 | 21973 | 	 */ | 
 | 21974 | 	_Bool q = true; | 
 | 21975 | 	_Bool *pq = &q; | 
 | 21976 |  | 
 | 21977 | int | 
 | 21978 | main () | 
 | 21979 | { | 
 | 21980 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21981 | 	bool e = &s; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21982 | 	*pq |= q; | 
 | 21983 | 	*pq |= ! q; | 
 | 21984 | 	/* Refer to every declared value, to avoid compiler optimizations.  */ | 
 | 21985 | 	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | 
 | 21986 | 		+ !m + !n + !o + !p + !q + !pq); | 
 | 21987 |  | 
 | 21988 |   ; | 
 | 21989 |   return 0; | 
 | 21990 | } | 
 | 21991 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21992 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21993 |   ac_cv_header_stdbool_h=yes | 
 | 21994 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21995 |   ac_cv_header_stdbool_h=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21996 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 21998 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21999 | { $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] | 22000 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22001 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22002 | if test "x$ac_cv_type__Bool" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22003 |  | 
 | 22004 | cat >>confdefs.h <<_ACEOF | 
 | 22005 | #define HAVE__BOOL 1 | 
 | 22006 | _ACEOF | 
 | 22007 |  | 
 | 22008 |  | 
 | 22009 | fi | 
 | 22010 |  | 
 | 22011 | if test $ac_cv_header_stdbool_h = yes; then | 
 | 22012 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22013 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22014 |  | 
 | 22015 | fi | 
 | 22016 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22018 | $as_echo_n "checking for working volatile... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22019 | if ${ac_cv_c_volatile+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22020 |   $as_echo_n "(cached) " >&6 | 
 | 22021 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22022 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22023 | /* end confdefs.h.  */ | 
 | 22024 |  | 
 | 22025 | int | 
 | 22026 | main () | 
 | 22027 | { | 
 | 22028 |  | 
 | 22029 | volatile int x; | 
 | 22030 | int * volatile y = (int *) 0; | 
 | 22031 | return !x && !y; | 
 | 22032 |   ; | 
 | 22033 |   return 0; | 
 | 22034 | } | 
 | 22035 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22036 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22037 |   ac_cv_c_volatile=yes | 
 | 22038 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22039 |   ac_cv_c_volatile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22040 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22042 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22044 | $as_echo "$ac_cv_c_volatile" >&6; } | 
 | 22045 | if test $ac_cv_c_volatile = no; then | 
 | 22046 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22047 | $as_echo "#define volatile /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22048 |  | 
 | 22049 | fi | 
 | 22050 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22052 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22053 | if ${ac_cv_c_stringize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22054 |   $as_echo_n "(cached) " >&6 | 
 | 22055 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22056 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22057 | /* end confdefs.h.  */ | 
 | 22058 | #define x(y) #y | 
 | 22059 |  | 
 | 22060 | char *s = x(teststring); | 
 | 22061 | _ACEOF | 
 | 22062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22063 |   $EGREP "#teststring" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22064 |   ac_cv_c_stringize=no | 
 | 22065 | else | 
 | 22066 |   ac_cv_c_stringize=yes | 
 | 22067 | fi | 
 | 22068 | rm -f conftest* | 
 | 22069 |  | 
 | 22070 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22072 | $as_echo "$ac_cv_c_stringize" >&6; } | 
 | 22073 | if test $ac_cv_c_stringize = yes; then | 
 | 22074 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22075 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22076 |  | 
 | 22077 | fi | 
 | 22078 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22079 | { $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] | 22080 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22081 | if ${ac_cv_header_stat_broken+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22082 |   $as_echo_n "(cached) " >&6 | 
 | 22083 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22084 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22085 | /* end confdefs.h.  */ | 
 | 22086 | #include <sys/types.h> | 
 | 22087 | #include <sys/stat.h> | 
 | 22088 |  | 
 | 22089 | #if defined S_ISBLK && defined S_IFDIR | 
 | 22090 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | 
 | 22091 | #endif | 
 | 22092 |  | 
 | 22093 | #if defined S_ISBLK && defined S_IFCHR | 
 | 22094 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | 
 | 22095 | #endif | 
 | 22096 |  | 
 | 22097 | #if defined S_ISLNK && defined S_IFREG | 
 | 22098 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | 
 | 22099 | #endif | 
 | 22100 |  | 
 | 22101 | #if defined S_ISSOCK && defined S_IFREG | 
 | 22102 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | 
 | 22103 | #endif | 
 | 22104 |  | 
 | 22105 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22106 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22107 |   ac_cv_header_stat_broken=no | 
 | 22108 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22109 |   ac_cv_header_stat_broken=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22110 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22112 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22113 | { $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] | 22114 | $as_echo "$ac_cv_header_stat_broken" >&6; } | 
 | 22115 | if test $ac_cv_header_stat_broken = yes; then | 
 | 22116 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22117 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22118 |  | 
 | 22119 | fi | 
 | 22120 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22121 | { $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] | 22122 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22123 | if ${ac_cv_header_time+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22124 |   $as_echo_n "(cached) " >&6 | 
 | 22125 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22126 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22127 | /* end confdefs.h.  */ | 
 | 22128 | #include <sys/types.h> | 
 | 22129 | #include <sys/time.h> | 
 | 22130 | #include <time.h> | 
 | 22131 |  | 
 | 22132 | int | 
 | 22133 | main () | 
 | 22134 | { | 
 | 22135 | if ((struct tm *) 0) | 
 | 22136 | return 0; | 
 | 22137 |   ; | 
 | 22138 |   return 0; | 
 | 22139 | } | 
 | 22140 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22141 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22142 |   ac_cv_header_time=yes | 
 | 22143 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22144 |   ac_cv_header_time=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22145 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22147 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22149 | $as_echo "$ac_cv_header_time" >&6; } | 
 | 22150 | if test $ac_cv_header_time = yes; then | 
 | 22151 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22152 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22153 |  | 
 | 22154 | fi | 
 | 22155 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22156 | { $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] | 22157 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22158 | if ${ac_cv_struct_tm+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22159 |   $as_echo_n "(cached) " >&6 | 
 | 22160 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22161 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22162 | /* end confdefs.h.  */ | 
 | 22163 | #include <sys/types.h> | 
 | 22164 | #include <time.h> | 
 | 22165 |  | 
 | 22166 | int | 
 | 22167 | main () | 
 | 22168 | { | 
 | 22169 | struct tm tm; | 
 | 22170 | 				     int *p = &tm.tm_sec; | 
 | 22171 | 				     return !p; | 
 | 22172 |   ; | 
 | 22173 |   return 0; | 
 | 22174 | } | 
 | 22175 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22176 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22177 |   ac_cv_struct_tm=time.h | 
 | 22178 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22179 |   ac_cv_struct_tm=sys/time.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22180 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22182 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22184 | $as_echo "$ac_cv_struct_tm" >&6; } | 
 | 22185 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 22186 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22187 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22188 |  | 
 | 22189 | fi | 
 | 22190 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22191 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
 | 22192 | #include <$ac_cv_struct_tm> | 
 | 22193 |  | 
 | 22194 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22195 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22196 |  | 
 | 22197 | cat >>confdefs.h <<_ACEOF | 
 | 22198 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
 | 22199 | _ACEOF | 
 | 22200 |  | 
 | 22201 |  | 
 | 22202 | fi | 
 | 22203 |  | 
 | 22204 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
 | 22205 |  | 
 | 22206 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
 | 22207 |  | 
 | 22208 | else | 
 | 22209 |   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
 | 22210 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22211 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22212 |   ac_have_decl=1 | 
 | 22213 | else | 
 | 22214 |   ac_have_decl=0 | 
 | 22215 | fi | 
 | 22216 |  | 
 | 22217 | cat >>confdefs.h <<_ACEOF | 
 | 22218 | #define HAVE_DECL_TZNAME $ac_have_decl | 
 | 22219 | _ACEOF | 
 | 22220 |  | 
 | 22221 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
 | 22222 | $as_echo_n "checking for tzname... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22223 | if ${ac_cv_var_tzname+:} false; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22224 |   $as_echo_n "(cached) " >&6 | 
 | 22225 | else | 
 | 22226 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22227 | /* end confdefs.h.  */ | 
 | 22228 | #include <time.h> | 
 | 22229 | #if !HAVE_DECL_TZNAME | 
 | 22230 | extern char *tzname[]; | 
 | 22231 | #endif | 
 | 22232 |  | 
 | 22233 | int | 
 | 22234 | main () | 
 | 22235 | { | 
 | 22236 | return tzname[0][0]; | 
 | 22237 |   ; | 
 | 22238 |   return 0; | 
 | 22239 | } | 
 | 22240 | _ACEOF | 
 | 22241 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 22242 |   ac_cv_var_tzname=yes | 
 | 22243 | else | 
 | 22244 |   ac_cv_var_tzname=no | 
 | 22245 | fi | 
 | 22246 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 22247 |     conftest$ac_exeext conftest.$ac_ext | 
 | 22248 | fi | 
 | 22249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
 | 22250 | $as_echo "$ac_cv_var_tzname" >&6; } | 
 | 22251 |   if test $ac_cv_var_tzname = yes; then | 
 | 22252 |  | 
 | 22253 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
 | 22254 |  | 
 | 22255 |   fi | 
 | 22256 | fi | 
 | 22257 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22258 | { $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] | 22259 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22260 | if ${ac_cv_sys_interpreter+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22261 |   $as_echo_n "(cached) " >&6 | 
 | 22262 | else | 
 | 22263 |   echo '#! /bin/cat | 
 | 22264 | exit 69 | 
 | 22265 | ' >conftest | 
 | 22266 | chmod u+x conftest | 
 | 22267 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) | 
 | 22268 | if test $? -ne 69; then | 
 | 22269 |    ac_cv_sys_interpreter=yes | 
 | 22270 | else | 
 | 22271 |    ac_cv_sys_interpreter=no | 
 | 22272 | fi | 
 | 22273 | rm -f conftest | 
 | 22274 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22276 | $as_echo "$ac_cv_sys_interpreter" >&6; } | 
 | 22277 | interpval=$ac_cv_sys_interpreter | 
 | 22278 |  | 
 | 22279 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22280 | # If the C compiler supports the keyword inline, do nothing. Otherwise | 
 | 22281 | # define inline to __inline__ or __inline if it accepts one of those, | 
 | 22282 | # otherwise define inline to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22284 | $as_echo_n "checking for inline... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22285 | if ${ac_cv_c_inline+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22286 |   $as_echo_n "(cached) " >&6 | 
 | 22287 | else | 
 | 22288 |   ac_cv_c_inline=no | 
 | 22289 | for ac_kw in inline __inline__ __inline; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22290 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22291 | /* end confdefs.h.  */ | 
 | 22292 | #ifndef __cplusplus | 
 | 22293 | typedef int foo_t; | 
 | 22294 | static $ac_kw foo_t static_foo () {return 0; } | 
 | 22295 | $ac_kw foo_t foo () {return 0; } | 
 | 22296 | #endif | 
 | 22297 |  | 
 | 22298 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22299 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22300 |   ac_cv_c_inline=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22301 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22303 |   test "$ac_cv_c_inline" != no && break | 
 | 22304 | done | 
 | 22305 |  | 
 | 22306 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22308 | $as_echo "$ac_cv_c_inline" >&6; } | 
 | 22309 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22310 | case $ac_cv_c_inline in | 
 | 22311 |   inline | yes) ;; | 
 | 22312 |   *) | 
 | 22313 |     case $ac_cv_c_inline in | 
 | 22314 |       no) ac_val=;; | 
 | 22315 |       *) ac_val=$ac_cv_c_inline;; | 
 | 22316 |     esac | 
 | 22317 |     cat >>confdefs.h <<_ACEOF | 
 | 22318 | #ifndef __cplusplus | 
 | 22319 | #define inline $ac_val | 
 | 22320 | #endif | 
 | 22321 | _ACEOF | 
 | 22322 |     ;; | 
 | 22323 | esac | 
 | 22324 |  | 
 | 22325 |  | 
 | 22326 | # If the C compiler supports the keyword restrict, do nothing. Otherwise | 
 | 22327 | # define restrict to __restrict__ or __restrict if it accepts one of those, | 
 | 22328 | # otherwise define restrict to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22329 | { $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] | 22330 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22331 | if ${ac_cv_c_restrict+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22332 |   $as_echo_n "(cached) " >&6 | 
 | 22333 | else | 
 | 22334 |   ac_cv_c_restrict=no | 
 | 22335 |    # The order here caters to the fact that C++ does not require restrict. | 
 | 22336 |    for ac_kw in __restrict __restrict__ _Restrict restrict; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22337 |      cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22338 | /* end confdefs.h.  */ | 
 | 22339 | typedef int * int_ptr; | 
 | 22340 | 	int foo (int_ptr $ac_kw ip) { | 
 | 22341 | 	return ip[0]; | 
 | 22342 |        } | 
 | 22343 | int | 
 | 22344 | main () | 
 | 22345 | { | 
 | 22346 | int s[1]; | 
 | 22347 | 	int * $ac_kw t = s; | 
 | 22348 | 	t[0] = 0; | 
 | 22349 | 	return foo(t) | 
 | 22350 |   ; | 
 | 22351 |   return 0; | 
 | 22352 | } | 
 | 22353 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22354 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22355 |   ac_cv_c_restrict=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22356 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22358 |      test "$ac_cv_c_restrict" != no && break | 
 | 22359 |    done | 
 | 22360 |  | 
 | 22361 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22363 | $as_echo "$ac_cv_c_restrict" >&6; } | 
 | 22364 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22365 |  case $ac_cv_c_restrict in | 
 | 22366 |    restrict) ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22367 |    no) $as_echo "#define restrict /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22368 |  ;; | 
 | 22369 |    *)  cat >>confdefs.h <<_ACEOF | 
 | 22370 | #define restrict $ac_cv_c_restrict | 
 | 22371 | _ACEOF | 
 | 22372 |  ;; | 
 | 22373 |  esac | 
 | 22374 |  | 
 | 22375 |  | 
 | 22376 | # If words are stored with the most significant byte first (like | 
 | 22377 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22378 |  { $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] | 22379 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22380 | if ${ac_cv_c_bigendian+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22381 |   $as_echo_n "(cached) " >&6 | 
 | 22382 | else | 
 | 22383 |   ac_cv_c_bigendian=unknown | 
 | 22384 |     # See if we're dealing with a universal compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22385 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22386 | /* end confdefs.h.  */ | 
 | 22387 | #ifndef __APPLE_CC__ | 
 | 22388 | 	       not a universal capable compiler | 
 | 22389 | 	     #endif | 
 | 22390 | 	     typedef int dummy; | 
 | 22391 |  | 
 | 22392 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22393 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22394 |  | 
 | 22395 | 	# Check for potential -arch flags.  It is not universal unless | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22396 | 	# there are at least two -arch flags with different values. | 
 | 22397 | 	ac_arch= | 
 | 22398 | 	ac_prev= | 
 | 22399 | 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
 | 22400 | 	 if test -n "$ac_prev"; then | 
 | 22401 | 	   case $ac_word in | 
 | 22402 | 	     i?86 | x86_64 | ppc | ppc64) | 
 | 22403 | 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
 | 22404 | 		 ac_arch=$ac_word | 
 | 22405 | 	       else | 
 | 22406 | 		 ac_cv_c_bigendian=universal | 
 | 22407 | 		 break | 
 | 22408 | 	       fi | 
 | 22409 | 	       ;; | 
 | 22410 | 	   esac | 
 | 22411 | 	   ac_prev= | 
 | 22412 | 	 elif test "x$ac_word" = "x-arch"; then | 
 | 22413 | 	   ac_prev=arch | 
 | 22414 | 	 fi | 
 | 22415 |        done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22416 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22418 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 22419 |       # See if sys/param.h defines the BYTE_ORDER macro. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22420 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22421 | /* end confdefs.h.  */ | 
 | 22422 | #include <sys/types.h> | 
 | 22423 | 	     #include <sys/param.h> | 
 | 22424 |  | 
 | 22425 | int | 
 | 22426 | main () | 
 | 22427 | { | 
 | 22428 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
 | 22429 | 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
 | 22430 | 		     && LITTLE_ENDIAN) | 
 | 22431 | 	      bogus endian macros | 
 | 22432 | 	     #endif | 
 | 22433 |  | 
 | 22434 |   ; | 
 | 22435 |   return 0; | 
 | 22436 | } | 
 | 22437 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22438 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22439 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22440 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22441 | /* end confdefs.h.  */ | 
 | 22442 | #include <sys/types.h> | 
 | 22443 | 		#include <sys/param.h> | 
 | 22444 |  | 
 | 22445 | int | 
 | 22446 | main () | 
 | 22447 | { | 
 | 22448 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 22449 | 		 not big endian | 
 | 22450 | 		#endif | 
 | 22451 |  | 
 | 22452 |   ; | 
 | 22453 |   return 0; | 
 | 22454 | } | 
 | 22455 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22456 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22457 |   ac_cv_c_bigendian=yes | 
 | 22458 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22459 |   ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22460 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22462 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22464 |     fi | 
 | 22465 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 22466 |       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22467 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22468 | /* end confdefs.h.  */ | 
 | 22469 | #include <limits.h> | 
 | 22470 |  | 
 | 22471 | int | 
 | 22472 | main () | 
 | 22473 | { | 
 | 22474 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
 | 22475 | 	      bogus endian macros | 
 | 22476 | 	     #endif | 
 | 22477 |  | 
 | 22478 |   ; | 
 | 22479 |   return 0; | 
 | 22480 | } | 
 | 22481 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22482 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22483 |   # It does; now see whether it defined to _BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22484 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22485 | /* end confdefs.h.  */ | 
 | 22486 | #include <limits.h> | 
 | 22487 |  | 
 | 22488 | int | 
 | 22489 | main () | 
 | 22490 | { | 
 | 22491 | #ifndef _BIG_ENDIAN | 
 | 22492 | 		 not big endian | 
 | 22493 | 		#endif | 
 | 22494 |  | 
 | 22495 |   ; | 
 | 22496 |   return 0; | 
 | 22497 | } | 
 | 22498 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22499 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22500 |   ac_cv_c_bigendian=yes | 
 | 22501 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22502 |   ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22503 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22505 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22507 |     fi | 
 | 22508 |     if test $ac_cv_c_bigendian = unknown; then | 
 | 22509 |       # Compile a test program. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22510 |       if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22511 |   # Try to guess by grepping values from an object file. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22512 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22513 | /* end confdefs.h.  */ | 
 | 22514 | short int ascii_mm[] = | 
 | 22515 | 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
 | 22516 | 		short int ascii_ii[] = | 
 | 22517 | 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
 | 22518 | 		int use_ascii (int i) { | 
 | 22519 | 		  return ascii_mm[i] + ascii_ii[i]; | 
 | 22520 | 		} | 
 | 22521 | 		short int ebcdic_ii[] = | 
 | 22522 | 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
 | 22523 | 		short int ebcdic_mm[] = | 
 | 22524 | 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
 | 22525 | 		int use_ebcdic (int i) { | 
 | 22526 | 		  return ebcdic_mm[i] + ebcdic_ii[i]; | 
 | 22527 | 		} | 
 | 22528 | 		extern int foo; | 
 | 22529 |  | 
 | 22530 | int | 
 | 22531 | main () | 
 | 22532 | { | 
 | 22533 | return use_ascii (foo) == use_ebcdic (foo); | 
 | 22534 |   ; | 
 | 22535 |   return 0; | 
 | 22536 | } | 
 | 22537 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22538 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22539 |   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
 | 22540 | 	      ac_cv_c_bigendian=yes | 
 | 22541 | 	    fi | 
 | 22542 | 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
 | 22543 | 	      if test "$ac_cv_c_bigendian" = unknown; then | 
 | 22544 | 		ac_cv_c_bigendian=no | 
 | 22545 | 	      else | 
 | 22546 | 		# finding both strings is unlikely to happen, but who knows? | 
 | 22547 | 		ac_cv_c_bigendian=unknown | 
 | 22548 | 	      fi | 
 | 22549 | 	    fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22550 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22552 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22553 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22554 | /* end confdefs.h.  */ | 
 | 22555 | $ac_includes_default | 
 | 22556 | int | 
 | 22557 | main () | 
 | 22558 | { | 
 | 22559 |  | 
 | 22560 | 	     /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 22561 | 	     union | 
 | 22562 | 	     { | 
 | 22563 | 	       long int l; | 
 | 22564 | 	       char c[sizeof (long int)]; | 
 | 22565 | 	     } u; | 
 | 22566 | 	     u.l = 1; | 
 | 22567 | 	     return u.c[sizeof (long int) - 1] == 1; | 
 | 22568 |  | 
 | 22569 |   ; | 
 | 22570 |   return 0; | 
 | 22571 | } | 
 | 22572 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22573 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22574 |   ac_cv_c_bigendian=no | 
 | 22575 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22576 |   ac_cv_c_bigendian=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22577 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22578 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 22579 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22580 | fi | 
 | 22581 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22582 |     fi | 
 | 22583 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22585 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
 | 22586 |  case $ac_cv_c_bigendian in #( | 
 | 22587 |    yes) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22588 |      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22589 | ;; #( | 
 | 22590 |    no) | 
 | 22591 |       ;; #( | 
 | 22592 |    universal) | 
 | 22593 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22594 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22595 |  | 
 | 22596 |      ;; #( | 
 | 22597 |    *) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22598 |      as_fn_error $? "unknown endianness | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22599 |  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22600 |  esac | 
 | 22601 |  | 
 | 22602 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22603 | # Define to a suitable type, if standard headers do not define it. | 
 | 22604 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | 
 | 22605 | case $ac_cv_c_int8_t in #( | 
 | 22606 |   no|yes) ;; #( | 
 | 22607 |   *) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22608 |  | 
 | 22609 | cat >>confdefs.h <<_ACEOF | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22610 | #define int8_t $ac_cv_c_int8_t | 
 | 22611 | _ACEOF | 
 | 22612 | ;; | 
 | 22613 | esac | 
 | 22614 |  | 
 | 22615 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" | 
 | 22616 | case $ac_cv_c_int16_t in #( | 
 | 22617 |   no|yes) ;; #( | 
 | 22618 |   *) | 
 | 22619 |  | 
 | 22620 | cat >>confdefs.h <<_ACEOF | 
 | 22621 | #define int16_t $ac_cv_c_int16_t | 
 | 22622 | _ACEOF | 
 | 22623 | ;; | 
 | 22624 | esac | 
 | 22625 |  | 
 | 22626 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | 
 | 22627 | case $ac_cv_c_int32_t in #( | 
 | 22628 |   no|yes) ;; #( | 
 | 22629 |   *) | 
 | 22630 |  | 
 | 22631 | cat >>confdefs.h <<_ACEOF | 
 | 22632 | #define int32_t $ac_cv_c_int32_t | 
 | 22633 | _ACEOF | 
 | 22634 | ;; | 
 | 22635 | esac | 
 | 22636 |  | 
 | 22637 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | 
 | 22638 | case $ac_cv_c_int64_t in #( | 
 | 22639 |   no|yes) ;; #( | 
 | 22640 |   *) | 
 | 22641 |  | 
 | 22642 | cat >>confdefs.h <<_ACEOF | 
 | 22643 | #define int64_t $ac_cv_c_int64_t | 
 | 22644 | _ACEOF | 
 | 22645 | ;; | 
 | 22646 | esac | 
 | 22647 |  | 
 | 22648 |  | 
 | 22649 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | 
 | 22650 | $as_echo_n "checking for long long int... " >&6; } | 
 | 22651 | if ${ac_cv_type_long_long_int+:} false; then : | 
 | 22652 |   $as_echo_n "(cached) " >&6 | 
 | 22653 | else | 
 | 22654 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22655 | /* end confdefs.h.  */ | 
 | 22656 |  | 
 | 22657 |   /* For now, do not test the preprocessor; as of 2007 there are too many | 
 | 22658 |          implementations with broken preprocessors.  Perhaps this can | 
 | 22659 |          be revisited in 2012.  In the meantime, code should not expect | 
 | 22660 |          #if to work with literals wider than 32 bits.  */ | 
 | 22661 |       /* Test literals.  */ | 
 | 22662 |       long long int ll = 9223372036854775807ll; | 
 | 22663 |       long long int nll = -9223372036854775807LL; | 
 | 22664 |       unsigned long long int ull = 18446744073709551615ULL; | 
 | 22665 |       /* Test constant expressions.   */ | 
 | 22666 |       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | 
 | 22667 |                      ? 1 : -1)]; | 
 | 22668 |       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | 
 | 22669 |                      ? 1 : -1)]; | 
 | 22670 |       int i = 63; | 
 | 22671 | int | 
 | 22672 | main () | 
 | 22673 | { | 
 | 22674 | /* Test availability of runtime routines for shift and division.  */ | 
 | 22675 |       long long int llmax = 9223372036854775807ll; | 
 | 22676 |       unsigned long long int ullmax = 18446744073709551615ull; | 
 | 22677 |       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | 
 | 22678 |               | (llmax / ll) | (llmax % ll) | 
 | 22679 |               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | 
 | 22680 |               | (ullmax / ull) | (ullmax % ull)); | 
 | 22681 |   ; | 
 | 22682 |   return 0; | 
 | 22683 | } | 
 | 22684 |  | 
 | 22685 | _ACEOF | 
 | 22686 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 22687 |                           if test "$cross_compiling" = yes; then : | 
 | 22688 |   ac_cv_type_long_long_int=yes | 
 | 22689 | else | 
 | 22690 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22691 | /* end confdefs.h.  */ | 
 | 22692 | #include <limits.h> | 
 | 22693 |                #ifndef LLONG_MAX | 
 | 22694 |                # define HALF \ | 
 | 22695 |                         (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | 
 | 22696 |                # define LLONG_MAX (HALF - 1 + HALF) | 
 | 22697 |                #endif | 
 | 22698 | int | 
 | 22699 | main () | 
 | 22700 | { | 
 | 22701 | long long int n = 1; | 
 | 22702 |                int i; | 
 | 22703 |                for (i = 0; ; i++) | 
 | 22704 |                  { | 
 | 22705 |                    long long int m = n << i; | 
 | 22706 |                    if (m >> i != n) | 
 | 22707 |                      return 1; | 
 | 22708 |                    if (LLONG_MAX / 2 < m) | 
 | 22709 |                      break; | 
 | 22710 |                  } | 
 | 22711 |                return 0; | 
 | 22712 |   ; | 
 | 22713 |   return 0; | 
 | 22714 | } | 
 | 22715 | _ACEOF | 
 | 22716 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 22717 |   ac_cv_type_long_long_int=yes | 
 | 22718 | else | 
 | 22719 |   ac_cv_type_long_long_int=no | 
 | 22720 | fi | 
 | 22721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 22722 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 22723 | fi | 
 | 22724 |  | 
 | 22725 | else | 
 | 22726 |   ac_cv_type_long_long_int=no | 
 | 22727 | fi | 
 | 22728 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 22729 |     conftest$ac_exeext conftest.$ac_ext | 
 | 22730 | fi | 
 | 22731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | 
 | 22732 | $as_echo "$ac_cv_type_long_long_int" >&6; } | 
 | 22733 |   if test $ac_cv_type_long_long_int = yes; then | 
 | 22734 |  | 
 | 22735 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | 
 | 22736 |  | 
 | 22737 |   fi | 
 | 22738 |  | 
 | 22739 |  | 
 | 22740 |  | 
 | 22741 |   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" | 
 | 22742 | if test "x$ac_cv_type_intmax_t" = xyes; then : | 
 | 22743 |  | 
 | 22744 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h | 
 | 22745 |  | 
 | 22746 | else | 
 | 22747 |   test $ac_cv_type_long_long_int = yes \ | 
 | 22748 |        && ac_type='long long int' \ | 
 | 22749 |        || ac_type='long int' | 
 | 22750 |  | 
 | 22751 | cat >>confdefs.h <<_ACEOF | 
 | 22752 | #define intmax_t $ac_type | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22753 | _ACEOF | 
 | 22754 |  | 
 | 22755 | fi | 
 | 22756 |  | 
 | 22757 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22758 |  | 
 | 22759 |   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" | 
 | 22760 | if test "x$ac_cv_type_intptr_t" = xyes; then : | 
 | 22761 |  | 
 | 22762 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22763 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22764 | else | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22765 |   for ac_type in 'int' 'long int' 'long long int'; do | 
 | 22766 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22767 | /* end confdefs.h.  */ | 
 | 22768 | $ac_includes_default | 
 | 22769 | int | 
 | 22770 | main () | 
 | 22771 | { | 
 | 22772 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | 
 | 22773 | test_array [0] = 0 | 
 | 22774 |  | 
 | 22775 |   ; | 
 | 22776 |   return 0; | 
 | 22777 | } | 
 | 22778 | _ACEOF | 
 | 22779 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22780 |  | 
 | 22781 | cat >>confdefs.h <<_ACEOF | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22782 | #define intptr_t $ac_type | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22783 | _ACEOF | 
 | 22784 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22785 | 	  ac_type= | 
 | 22786 | fi | 
 | 22787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22788 |        test -z "$ac_type" && break | 
 | 22789 |      done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22790 | fi | 
 | 22791 |  | 
 | 22792 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22793 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22794 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 | 
 | 22795 | $as_echo_n "checking for long double... " >&6; } | 
 | 22796 | if ${ac_cv_type_long_double+:} false; then : | 
 | 22797 |   $as_echo_n "(cached) " >&6 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22798 | else | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22799 |   if test "$GCC" = yes; then | 
 | 22800 |        ac_cv_type_long_double=yes | 
 | 22801 |      else | 
 | 22802 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22803 | /* end confdefs.h.  */ | 
 | 22804 | /* The Stardent Vistra knows sizeof (long double), but does | 
 | 22805 | 		 not support it.  */ | 
 | 22806 | 	      long double foo = 0.0L; | 
 | 22807 | int | 
 | 22808 | main () | 
 | 22809 | { | 
 | 22810 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */ | 
 | 22811 | 	      sizeof (double) <= sizeof (long double))]; | 
 | 22812 | test_array [0] = 0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22813 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22814 |   ; | 
 | 22815 |   return 0; | 
 | 22816 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22817 | _ACEOF | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22818 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 22819 |   ac_cv_type_long_double=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22820 | else | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22821 |   ac_cv_type_long_double=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22822 | fi | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22824 |      fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22825 | fi | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 | 
 | 22827 | $as_echo "$ac_cv_type_long_double" >&6; } | 
 | 22828 |   if test $ac_cv_type_long_double = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22829 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22830 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22831 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22832 |   fi | 
 | 22833 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22834 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22835 |   { $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] | 22836 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22837 | if ${ac_cv_type_long_double_wider+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22838 |   $as_echo_n "(cached) " >&6 | 
 | 22839 | else | 
| 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 | #include <float.h> | 
 | 22843 | 	    long double const a[] = | 
 | 22844 | 	      { | 
 | 22845 | 		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | 
 | 22846 | 		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON | 
 | 22847 | 	      }; | 
 | 22848 | 	    long double | 
 | 22849 | 	    f (long double x) | 
 | 22850 | 	    { | 
 | 22851 | 	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | 
 | 22852 | 			+ (x ? f (x) : 'c')); | 
 | 22853 | 	    } | 
 | 22854 |  | 
 | 22855 | int | 
 | 22856 | main () | 
 | 22857 | { | 
 | 22858 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) | 
 | 22859 | 		   + (DBL_MANT_DIG < LDBL_MANT_DIG) | 
 | 22860 | 		   - (LDBL_MAX_EXP < DBL_MAX_EXP) | 
 | 22861 | 		   - (LDBL_MANT_DIG < DBL_MANT_DIG))) | 
 | 22862 | 	    && (int) LDBL_EPSILON == 0 | 
 | 22863 | 	  )]; | 
 | 22864 | test_array [0] = 0 | 
 | 22865 |  | 
 | 22866 |   ; | 
 | 22867 |   return 0; | 
 | 22868 | } | 
 | 22869 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22870 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22871 |   ac_cv_type_long_double_wider=yes | 
 | 22872 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22873 |   ac_cv_type_long_double_wider=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22874 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22876 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22877 | { $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] | 22878 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | 
 | 22879 |   if test $ac_cv_type_long_double_wider = yes; then | 
 | 22880 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22881 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22882 |  | 
 | 22883 |   fi | 
 | 22884 |  | 
 | 22885 |  | 
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22886 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | 
 | 22887 | $as_echo_n "checking for long long int... " >&6; } | 
 | 22888 | if ${ac_cv_type_long_long_int+:} false; then : | 
 | 22889 |   $as_echo_n "(cached) " >&6 | 
 | 22890 | else | 
 | 22891 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22892 | /* end confdefs.h.  */ | 
 | 22893 |  | 
 | 22894 |   /* For now, do not test the preprocessor; as of 2007 there are too many | 
 | 22895 |          implementations with broken preprocessors.  Perhaps this can | 
 | 22896 |          be revisited in 2012.  In the meantime, code should not expect | 
 | 22897 |          #if to work with literals wider than 32 bits.  */ | 
 | 22898 |       /* Test literals.  */ | 
 | 22899 |       long long int ll = 9223372036854775807ll; | 
 | 22900 |       long long int nll = -9223372036854775807LL; | 
 | 22901 |       unsigned long long int ull = 18446744073709551615ULL; | 
 | 22902 |       /* Test constant expressions.   */ | 
 | 22903 |       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | 
 | 22904 |                      ? 1 : -1)]; | 
 | 22905 |       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | 
 | 22906 |                      ? 1 : -1)]; | 
 | 22907 |       int i = 63; | 
 | 22908 | int | 
 | 22909 | main () | 
 | 22910 | { | 
 | 22911 | /* Test availability of runtime routines for shift and division.  */ | 
 | 22912 |       long long int llmax = 9223372036854775807ll; | 
 | 22913 |       unsigned long long int ullmax = 18446744073709551615ull; | 
 | 22914 |       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | 
 | 22915 |               | (llmax / ll) | (llmax % ll) | 
 | 22916 |               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | 
 | 22917 |               | (ullmax / ull) | (ullmax % ull)); | 
 | 22918 |   ; | 
 | 22919 |   return 0; | 
 | 22920 | } | 
 | 22921 |  | 
 | 22922 | _ACEOF | 
 | 22923 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 22924 |                           if test "$cross_compiling" = yes; then : | 
 | 22925 |   ac_cv_type_long_long_int=yes | 
 | 22926 | else | 
 | 22927 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22928 | /* end confdefs.h.  */ | 
 | 22929 | #include <limits.h> | 
 | 22930 |                #ifndef LLONG_MAX | 
 | 22931 |                # define HALF \ | 
 | 22932 |                         (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | 
 | 22933 |                # define LLONG_MAX (HALF - 1 + HALF) | 
 | 22934 |                #endif | 
 | 22935 | int | 
 | 22936 | main () | 
 | 22937 | { | 
 | 22938 | long long int n = 1; | 
 | 22939 |                int i; | 
 | 22940 |                for (i = 0; ; i++) | 
 | 22941 |                  { | 
 | 22942 |                    long long int m = n << i; | 
 | 22943 |                    if (m >> i != n) | 
 | 22944 |                      return 1; | 
 | 22945 |                    if (LLONG_MAX / 2 < m) | 
 | 22946 |                      break; | 
 | 22947 |                  } | 
 | 22948 |                return 0; | 
 | 22949 |   ; | 
 | 22950 |   return 0; | 
 | 22951 | } | 
 | 22952 | _ACEOF | 
 | 22953 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 22954 |   ac_cv_type_long_long_int=yes | 
 | 22955 | else | 
 | 22956 |   ac_cv_type_long_long_int=no | 
 | 22957 | fi | 
 | 22958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 22959 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 22960 | fi | 
 | 22961 |  | 
 | 22962 | else | 
 | 22963 |   ac_cv_type_long_long_int=no | 
 | 22964 | fi | 
 | 22965 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 22966 |     conftest$ac_exeext conftest.$ac_ext | 
 | 22967 | fi | 
 | 22968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | 
 | 22969 | $as_echo "$ac_cv_type_long_long_int" >&6; } | 
 | 22970 |   if test $ac_cv_type_long_long_int = yes; then | 
 | 22971 |  | 
 | 22972 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | 
 | 22973 |  | 
 | 22974 |   fi | 
 | 22975 |  | 
 | 22976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 | 
 | 22977 | $as_echo_n "checking for mbstate_t... " >&6; } | 
 | 22978 | if ${ac_cv_type_mbstate_t+:} false; then : | 
 | 22979 |   $as_echo_n "(cached) " >&6 | 
 | 22980 | else | 
 | 22981 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 22982 | /* end confdefs.h.  */ | 
 | 22983 | $ac_includes_default | 
 | 22984 | #	    include <wchar.h> | 
 | 22985 | int | 
 | 22986 | main () | 
 | 22987 | { | 
 | 22988 | mbstate_t x; return sizeof x; | 
 | 22989 |   ; | 
 | 22990 |   return 0; | 
 | 22991 | } | 
 | 22992 | _ACEOF | 
 | 22993 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 22994 |   ac_cv_type_mbstate_t=yes | 
 | 22995 | else | 
 | 22996 |   ac_cv_type_mbstate_t=no | 
 | 22997 | fi | 
 | 22998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 22999 | fi | 
 | 23000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 | 
 | 23001 | $as_echo "$ac_cv_type_mbstate_t" >&6; } | 
 | 23002 |    if test $ac_cv_type_mbstate_t = yes; then | 
 | 23003 |  | 
 | 23004 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h | 
 | 23005 |  | 
 | 23006 |    else | 
 | 23007 |  | 
 | 23008 | $as_echo "#define mbstate_t int" >>confdefs.h | 
 | 23009 |  | 
 | 23010 |    fi | 
 | 23011 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
 | 23012 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
 | 23013 |  | 
 | 23014 | else | 
 | 23015 |  | 
 | 23016 | cat >>confdefs.h <<_ACEOF | 
 | 23017 | #define mode_t int | 
 | 23018 | _ACEOF | 
 | 23019 |  | 
 | 23020 | fi | 
 | 23021 |  | 
 | 23022 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
 | 23023 | if test "x$ac_cv_type_off_t" = xyes; then : | 
 | 23024 |  | 
 | 23025 | else | 
 | 23026 |  | 
 | 23027 | cat >>confdefs.h <<_ACEOF | 
 | 23028 | #define off_t long int | 
 | 23029 | _ACEOF | 
 | 23030 |  | 
 | 23031 | fi | 
 | 23032 |  | 
 | 23033 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
 | 23034 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
 | 23035 |  | 
 | 23036 | else | 
 | 23037 |  | 
 | 23038 | cat >>confdefs.h <<_ACEOF | 
 | 23039 | #define pid_t int | 
 | 23040 | _ACEOF | 
 | 23041 |  | 
 | 23042 | fi | 
 | 23043 |  | 
 | 23044 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
 | 23045 | if test "x$ac_cv_type_size_t" = xyes; then : | 
 | 23046 |  | 
 | 23047 | else | 
 | 23048 |  | 
 | 23049 | cat >>confdefs.h <<_ACEOF | 
 | 23050 | #define size_t unsigned int | 
 | 23051 | _ACEOF | 
 | 23052 |  | 
 | 23053 | fi | 
 | 23054 |  | 
 | 23055 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
 | 23056 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
 | 23057 |  | 
 | 23058 | else | 
 | 23059 |  | 
 | 23060 | cat >>confdefs.h <<_ACEOF | 
 | 23061 | #define ssize_t int | 
 | 23062 | _ACEOF | 
 | 23063 |  | 
 | 23064 | fi | 
 | 23065 |  | 
 | 23066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | 
 | 23067 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | 
 | 23068 | if ${ac_cv_type_uid_t+:} false; then : | 
 | 23069 |   $as_echo_n "(cached) " >&6 | 
 | 23070 | else | 
 | 23071 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 23072 | /* end confdefs.h.  */ | 
 | 23073 | #include <sys/types.h> | 
 | 23074 |  | 
 | 23075 | _ACEOF | 
 | 23076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 23077 |   $EGREP "uid_t" >/dev/null 2>&1; then : | 
 | 23078 |   ac_cv_type_uid_t=yes | 
 | 23079 | else | 
 | 23080 |   ac_cv_type_uid_t=no | 
 | 23081 | fi | 
 | 23082 | rm -f conftest* | 
 | 23083 |  | 
 | 23084 | fi | 
 | 23085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | 
 | 23086 | $as_echo "$ac_cv_type_uid_t" >&6; } | 
 | 23087 | if test $ac_cv_type_uid_t = no; then | 
 | 23088 |  | 
 | 23089 | $as_echo "#define uid_t int" >>confdefs.h | 
 | 23090 |  | 
 | 23091 |  | 
 | 23092 | $as_echo "#define gid_t int" >>confdefs.h | 
 | 23093 |  | 
 | 23094 | fi | 
 | 23095 |  | 
 | 23096 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | 
 | 23097 | case $ac_cv_c_uint8_t in #( | 
 | 23098 |   no|yes) ;; #( | 
 | 23099 |   *) | 
 | 23100 |  | 
 | 23101 | $as_echo "#define _UINT8_T 1" >>confdefs.h | 
 | 23102 |  | 
 | 23103 |  | 
 | 23104 | cat >>confdefs.h <<_ACEOF | 
 | 23105 | #define uint8_t $ac_cv_c_uint8_t | 
 | 23106 | _ACEOF | 
 | 23107 | ;; | 
 | 23108 |   esac | 
 | 23109 |  | 
 | 23110 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | 
 | 23111 | case $ac_cv_c_uint16_t in #( | 
 | 23112 |   no|yes) ;; #( | 
 | 23113 |   *) | 
 | 23114 |  | 
 | 23115 |  | 
 | 23116 | cat >>confdefs.h <<_ACEOF | 
 | 23117 | #define uint16_t $ac_cv_c_uint16_t | 
 | 23118 | _ACEOF | 
 | 23119 | ;; | 
 | 23120 |   esac | 
 | 23121 |  | 
 | 23122 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | 
 | 23123 | case $ac_cv_c_uint32_t in #( | 
 | 23124 |   no|yes) ;; #( | 
 | 23125 |   *) | 
 | 23126 |  | 
 | 23127 | $as_echo "#define _UINT32_T 1" >>confdefs.h | 
 | 23128 |  | 
 | 23129 |  | 
 | 23130 | cat >>confdefs.h <<_ACEOF | 
 | 23131 | #define uint32_t $ac_cv_c_uint32_t | 
 | 23132 | _ACEOF | 
 | 23133 | ;; | 
 | 23134 |   esac | 
 | 23135 |  | 
 | 23136 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | 
 | 23137 | case $ac_cv_c_uint64_t in #( | 
 | 23138 |   no|yes) ;; #( | 
 | 23139 |   *) | 
 | 23140 |  | 
 | 23141 | $as_echo "#define _UINT64_T 1" >>confdefs.h | 
 | 23142 |  | 
 | 23143 |  | 
 | 23144 | cat >>confdefs.h <<_ACEOF | 
 | 23145 | #define uint64_t $ac_cv_c_uint64_t | 
 | 23146 | _ACEOF | 
 | 23147 | ;; | 
 | 23148 |   esac | 
 | 23149 |  | 
 | 23150 |  | 
 | 23151 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | 
 | 23152 | $as_echo_n "checking for unsigned long long int... " >&6; } | 
 | 23153 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | 
 | 23154 |   $as_echo_n "(cached) " >&6 | 
 | 23155 | else | 
 | 23156 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 23157 | /* end confdefs.h.  */ | 
 | 23158 |  | 
 | 23159 |   /* For now, do not test the preprocessor; as of 2007 there are too many | 
 | 23160 |          implementations with broken preprocessors.  Perhaps this can | 
 | 23161 |          be revisited in 2012.  In the meantime, code should not expect | 
 | 23162 |          #if to work with literals wider than 32 bits.  */ | 
 | 23163 |       /* Test literals.  */ | 
 | 23164 |       long long int ll = 9223372036854775807ll; | 
 | 23165 |       long long int nll = -9223372036854775807LL; | 
 | 23166 |       unsigned long long int ull = 18446744073709551615ULL; | 
 | 23167 |       /* Test constant expressions.   */ | 
 | 23168 |       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | 
 | 23169 |                      ? 1 : -1)]; | 
 | 23170 |       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | 
 | 23171 |                      ? 1 : -1)]; | 
 | 23172 |       int i = 63; | 
 | 23173 | int | 
 | 23174 | main () | 
 | 23175 | { | 
 | 23176 | /* Test availability of runtime routines for shift and division.  */ | 
 | 23177 |       long long int llmax = 9223372036854775807ll; | 
 | 23178 |       unsigned long long int ullmax = 18446744073709551615ull; | 
 | 23179 |       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | 
 | 23180 |               | (llmax / ll) | (llmax % ll) | 
 | 23181 |               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | 
 | 23182 |               | (ullmax / ull) | (ullmax % ull)); | 
 | 23183 |   ; | 
 | 23184 |   return 0; | 
 | 23185 | } | 
 | 23186 |  | 
 | 23187 | _ACEOF | 
 | 23188 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 23189 |   ac_cv_type_unsigned_long_long_int=yes | 
 | 23190 | else | 
 | 23191 |   ac_cv_type_unsigned_long_long_int=no | 
 | 23192 | fi | 
 | 23193 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 23194 |     conftest$ac_exeext conftest.$ac_ext | 
 | 23195 | fi | 
 | 23196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | 
 | 23197 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | 
 | 23198 |   if test $ac_cv_type_unsigned_long_long_int = yes; then | 
 | 23199 |  | 
 | 23200 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | 
 | 23201 |  | 
 | 23202 |   fi | 
 | 23203 |  | 
 | 23204 |  | 
 | 23205 |  | 
 | 23206 |   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" | 
 | 23207 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | 
 | 23208 |  | 
 | 23209 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h | 
 | 23210 |  | 
 | 23211 | else | 
 | 23212 |   test $ac_cv_type_unsigned_long_long_int = yes \ | 
 | 23213 |        && ac_type='unsigned long long int' \ | 
 | 23214 |        || ac_type='unsigned long int' | 
 | 23215 |  | 
 | 23216 | cat >>confdefs.h <<_ACEOF | 
 | 23217 | #define uintmax_t $ac_type | 
 | 23218 | _ACEOF | 
 | 23219 |  | 
 | 23220 | fi | 
 | 23221 |  | 
 | 23222 |  | 
 | 23223 |  | 
 | 23224 |   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | 
 | 23225 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | 
 | 23226 |  | 
 | 23227 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | 
 | 23228 |  | 
 | 23229 | else | 
 | 23230 |   for ac_type in 'unsigned int' 'unsigned long int' \ | 
 | 23231 | 	'unsigned long long int'; do | 
 | 23232 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 23233 | /* end confdefs.h.  */ | 
 | 23234 | $ac_includes_default | 
 | 23235 | int | 
 | 23236 | main () | 
 | 23237 | { | 
 | 23238 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | 
 | 23239 | test_array [0] = 0 | 
 | 23240 |  | 
 | 23241 |   ; | 
 | 23242 |   return 0; | 
 | 23243 | } | 
 | 23244 | _ACEOF | 
 | 23245 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 23246 |  | 
 | 23247 | cat >>confdefs.h <<_ACEOF | 
 | 23248 | #define uintptr_t $ac_type | 
 | 23249 | _ACEOF | 
 | 23250 |  | 
 | 23251 | 	  ac_type= | 
 | 23252 | fi | 
 | 23253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 23254 |        test -z "$ac_type" && break | 
 | 23255 |      done | 
 | 23256 | fi | 
 | 23257 |  | 
 | 23258 |  | 
 | 23259 |  | 
 | 23260 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | 
 | 23261 | $as_echo_n "checking for unsigned long long int... " >&6; } | 
 | 23262 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | 
 | 23263 |   $as_echo_n "(cached) " >&6 | 
 | 23264 | else | 
 | 23265 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 23266 | /* end confdefs.h.  */ | 
 | 23267 |  | 
 | 23268 |   /* For now, do not test the preprocessor; as of 2007 there are too many | 
 | 23269 |          implementations with broken preprocessors.  Perhaps this can | 
 | 23270 |          be revisited in 2012.  In the meantime, code should not expect | 
 | 23271 |          #if to work with literals wider than 32 bits.  */ | 
 | 23272 |       /* Test literals.  */ | 
 | 23273 |       long long int ll = 9223372036854775807ll; | 
 | 23274 |       long long int nll = -9223372036854775807LL; | 
 | 23275 |       unsigned long long int ull = 18446744073709551615ULL; | 
 | 23276 |       /* Test constant expressions.   */ | 
 | 23277 |       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | 
 | 23278 |                      ? 1 : -1)]; | 
 | 23279 |       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | 
 | 23280 |                      ? 1 : -1)]; | 
 | 23281 |       int i = 63; | 
 | 23282 | int | 
 | 23283 | main () | 
 | 23284 | { | 
 | 23285 | /* Test availability of runtime routines for shift and division.  */ | 
 | 23286 |       long long int llmax = 9223372036854775807ll; | 
 | 23287 |       unsigned long long int ullmax = 18446744073709551615ull; | 
 | 23288 |       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | 
 | 23289 |               | (llmax / ll) | (llmax % ll) | 
 | 23290 |               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | 
 | 23291 |               | (ullmax / ull) | (ullmax % ull)); | 
 | 23292 |   ; | 
 | 23293 |   return 0; | 
 | 23294 | } | 
 | 23295 |  | 
 | 23296 | _ACEOF | 
 | 23297 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 23298 |   ac_cv_type_unsigned_long_long_int=yes | 
 | 23299 | else | 
 | 23300 |   ac_cv_type_unsigned_long_long_int=no | 
 | 23301 | fi | 
 | 23302 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 23303 |     conftest$ac_exeext conftest.$ac_ext | 
 | 23304 | fi | 
 | 23305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | 
 | 23306 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | 
 | 23307 |   if test $ac_cv_type_unsigned_long_long_int = yes; then | 
 | 23308 |  | 
 | 23309 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | 
 | 23310 |  | 
 | 23311 |   fi | 
 | 23312 |  | 
 | 23313 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23314 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the | 
 | 23315 | # C compiler predefines it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23317 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23318 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23319 |   $as_echo_n "(cached) " >&6 | 
 | 23320 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23321 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23322 | /* end confdefs.h.  */ | 
 | 23323 | $ac_includes_default | 
 | 23324 | int | 
 | 23325 | main () | 
 | 23326 | { | 
 | 23327 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
 | 23328 | test_array [0] = 0 | 
 | 23329 |  | 
 | 23330 |   ; | 
 | 23331 |   return 0; | 
 | 23332 | } | 
 | 23333 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23334 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23335 |   ac_cv_c_char_unsigned=no | 
 | 23336 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23337 |   ac_cv_c_char_unsigned=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23338 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 23340 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23341 | { $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] | 23342 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
 | 23343 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23344 |   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23345 |  | 
 | 23346 | fi | 
 | 23347 |  | 
 | 23348 |  | 
 | 23349 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT | 
 | 23350 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23351 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23352 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23353 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23355 | $as_echo_n "checking size of signed short... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23356 | if ${ac_cv_sizeof_signed_short+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23357 |   $as_echo_n "(cached) " >&6 | 
 | 23358 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23359 |   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] | 23360 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23361 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23362 |   if test "$ac_cv_type_signed_short" = yes; then | 
 | 23363 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23365 | as_fn_error 77 "cannot compute sizeof (signed short) | 
 | 23366 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23367 |    else | 
 | 23368 |      ac_cv_sizeof_signed_short=0 | 
 | 23369 |    fi | 
 | 23370 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23371 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23372 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23373 | { $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] | 23374 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } | 
 | 23375 |  | 
 | 23376 |  | 
 | 23377 |  | 
 | 23378 | cat >>confdefs.h <<_ACEOF | 
 | 23379 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short | 
 | 23380 | _ACEOF | 
 | 23381 |  | 
 | 23382 |  | 
 | 23383 |  | 
 | 23384 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT | 
 | 23385 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23386 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23387 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23388 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23390 | $as_echo_n "checking size of unsigned short... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23391 | if ${ac_cv_sizeof_unsigned_short+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23392 |   $as_echo_n "(cached) " >&6 | 
 | 23393 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23394 |   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] | 23395 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23396 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23397 |   if test "$ac_cv_type_unsigned_short" = yes; then | 
 | 23398 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23399 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23400 | as_fn_error 77 "cannot compute sizeof (unsigned short) | 
 | 23401 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23402 |    else | 
 | 23403 |      ac_cv_sizeof_unsigned_short=0 | 
 | 23404 |    fi | 
 | 23405 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23406 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23407 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23408 | { $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] | 23409 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | 
 | 23410 |  | 
 | 23411 |  | 
 | 23412 |  | 
 | 23413 | cat >>confdefs.h <<_ACEOF | 
 | 23414 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | 
 | 23415 | _ACEOF | 
 | 23416 |  | 
 | 23417 |  | 
 | 23418 |  | 
 | 23419 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT | 
 | 23420 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23423 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23425 | $as_echo_n "checking size of signed int... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23426 | if ${ac_cv_sizeof_signed_int+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23427 |   $as_echo_n "(cached) " >&6 | 
 | 23428 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23429 |   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] | 23430 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23431 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23432 |   if test "$ac_cv_type_signed_int" = yes; then | 
 | 23433 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23435 | as_fn_error 77 "cannot compute sizeof (signed int) | 
 | 23436 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23437 |    else | 
 | 23438 |      ac_cv_sizeof_signed_int=0 | 
 | 23439 |    fi | 
 | 23440 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23441 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23442 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23443 | { $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] | 23444 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } | 
 | 23445 |  | 
 | 23446 |  | 
 | 23447 |  | 
 | 23448 | cat >>confdefs.h <<_ACEOF | 
 | 23449 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int | 
 | 23450 | _ACEOF | 
 | 23451 |  | 
 | 23452 |  | 
 | 23453 |  | 
 | 23454 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT | 
 | 23455 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23456 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23457 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23458 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23460 | $as_echo_n "checking size of unsigned int... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23461 | if ${ac_cv_sizeof_unsigned_int+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23462 |   $as_echo_n "(cached) " >&6 | 
 | 23463 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23464 |   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] | 23465 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23466 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23467 |   if test "$ac_cv_type_unsigned_int" = yes; then | 
 | 23468 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23470 | as_fn_error 77 "cannot compute sizeof (unsigned int) | 
 | 23471 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23472 |    else | 
 | 23473 |      ac_cv_sizeof_unsigned_int=0 | 
 | 23474 |    fi | 
 | 23475 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23476 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23477 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23478 | { $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] | 23479 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | 
 | 23480 |  | 
 | 23481 |  | 
 | 23482 |  | 
 | 23483 | cat >>confdefs.h <<_ACEOF | 
 | 23484 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | 
 | 23485 | _ACEOF | 
 | 23486 |  | 
 | 23487 |  | 
 | 23488 |  | 
 | 23489 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG | 
 | 23490 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23493 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23495 | $as_echo_n "checking size of signed long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23496 | if ${ac_cv_sizeof_signed_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23497 |   $as_echo_n "(cached) " >&6 | 
 | 23498 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23499 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23500 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23501 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23502 |   if test "$ac_cv_type_signed_long" = yes; then | 
 | 23503 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23504 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23505 | as_fn_error 77 "cannot compute sizeof (signed long) | 
 | 23506 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23507 |    else | 
 | 23508 |      ac_cv_sizeof_signed_long=0 | 
 | 23509 |    fi | 
 | 23510 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23511 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23512 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23514 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } | 
 | 23515 |  | 
 | 23516 |  | 
 | 23517 |  | 
 | 23518 | cat >>confdefs.h <<_ACEOF | 
 | 23519 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long | 
 | 23520 | _ACEOF | 
 | 23521 |  | 
 | 23522 |  | 
 | 23523 |  | 
 | 23524 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG | 
 | 23525 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23526 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23527 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23528 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23530 | $as_echo_n "checking size of unsigned long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23531 | if ${ac_cv_sizeof_unsigned_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23532 |   $as_echo_n "(cached) " >&6 | 
 | 23533 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23534 |   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] | 23535 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23536 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23537 |   if test "$ac_cv_type_unsigned_long" = yes; then | 
 | 23538 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23540 | as_fn_error 77 "cannot compute sizeof (unsigned long) | 
 | 23541 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23542 |    else | 
 | 23543 |      ac_cv_sizeof_unsigned_long=0 | 
 | 23544 |    fi | 
 | 23545 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23546 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23547 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23548 | { $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] | 23549 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | 
 | 23550 |  | 
 | 23551 |  | 
 | 23552 |  | 
 | 23553 | cat >>confdefs.h <<_ACEOF | 
 | 23554 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | 
 | 23555 | _ACEOF | 
 | 23556 |  | 
 | 23557 |  | 
 | 23558 |  | 
 | 23559 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If | 
 | 23560 | # 'signed long long' is not supported then the value defined is zero. | 
 | 23561 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23562 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23563 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23564 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23565 | { $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] | 23566 | $as_echo_n "checking size of signed long long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23567 | if ${ac_cv_sizeof_signed_long_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23568 |   $as_echo_n "(cached) " >&6 | 
 | 23569 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23570 |   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] | 23571 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23572 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23573 |   if test "$ac_cv_type_signed_long_long" = yes; then | 
 | 23574 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23576 | as_fn_error 77 "cannot compute sizeof (signed long long) | 
 | 23577 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23578 |    else | 
 | 23579 |      ac_cv_sizeof_signed_long_long=0 | 
 | 23580 |    fi | 
 | 23581 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23582 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23583 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23584 | { $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] | 23585 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } | 
 | 23586 |  | 
 | 23587 |  | 
 | 23588 |  | 
 | 23589 | cat >>confdefs.h <<_ACEOF | 
 | 23590 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long | 
 | 23591 | _ACEOF | 
 | 23592 |  | 
 | 23593 |  | 
 | 23594 |  | 
 | 23595 | # Obtain size of a 'unsigned long long' and define as | 
 | 23596 | # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not | 
 | 23597 | # supported then the value defined is zero. | 
 | 23598 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23599 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23600 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23601 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23602 | { $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] | 23603 | $as_echo_n "checking size of unsigned long long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23604 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23605 |   $as_echo_n "(cached) " >&6 | 
 | 23606 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23607 |   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] | 23608 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23609 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23610 |   if test "$ac_cv_type_unsigned_long_long" = yes; then | 
 | 23611 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23613 | as_fn_error 77 "cannot compute sizeof (unsigned long long) | 
 | 23614 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23615 |    else | 
 | 23616 |      ac_cv_sizeof_unsigned_long_long=0 | 
 | 23617 |    fi | 
 | 23618 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23619 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23620 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23621 | { $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] | 23622 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | 
 | 23623 |  | 
 | 23624 |  | 
 | 23625 |  | 
 | 23626 | cat >>confdefs.h <<_ACEOF | 
 | 23627 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | 
 | 23628 | _ACEOF | 
 | 23629 |  | 
 | 23630 |  | 
 | 23631 |  | 
 | 23632 | # Obtain size of off_t and define as SIZEOF_OFF_T | 
 | 23633 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23634 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23635 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23636 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23638 | $as_echo_n "checking size of off_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23639 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23640 |   $as_echo_n "(cached) " >&6 | 
 | 23641 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23642 |   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] | 23643 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23644 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23645 |   if test "$ac_cv_type_off_t" = yes; then | 
 | 23646 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23647 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23648 | as_fn_error 77 "cannot compute sizeof (off_t) | 
 | 23649 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23650 |    else | 
 | 23651 |      ac_cv_sizeof_off_t=0 | 
 | 23652 |    fi | 
 | 23653 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23654 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23655 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23656 | { $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] | 23657 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
 | 23658 |  | 
 | 23659 |  | 
 | 23660 |  | 
 | 23661 | cat >>confdefs.h <<_ACEOF | 
 | 23662 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
 | 23663 | _ACEOF | 
 | 23664 |  | 
 | 23665 |  | 
 | 23666 |  | 
 | 23667 | # Obtain size of size_t and define as SIZEOF_SIZE_T | 
 | 23668 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23669 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23670 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23671 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23673 | $as_echo_n "checking size of size_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23674 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23675 |   $as_echo_n "(cached) " >&6 | 
 | 23676 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23677 |   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] | 23678 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23679 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23680 |   if test "$ac_cv_type_size_t" = yes; then | 
 | 23681 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23683 | as_fn_error 77 "cannot compute sizeof (size_t) | 
 | 23684 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23685 |    else | 
 | 23686 |      ac_cv_sizeof_size_t=0 | 
 | 23687 |    fi | 
 | 23688 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23689 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23690 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23691 | { $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] | 23692 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
 | 23693 |  | 
 | 23694 |  | 
 | 23695 |  | 
 | 23696 | cat >>confdefs.h <<_ACEOF | 
 | 23697 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
 | 23698 | _ACEOF | 
 | 23699 |  | 
 | 23700 |  | 
 | 23701 |  | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23702 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T | 
 | 23703 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23704 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23705 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23706 | # This bug is HP SR number 8606223364. | 
 | 23707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 | 
 | 23708 | $as_echo_n "checking size of ssize_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23709 | if ${ac_cv_sizeof_ssize_t+:} false; then : | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23710 |   $as_echo_n "(cached) " >&6 | 
 | 23711 | else | 
 | 23712 |   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then : | 
 | 23713 |  | 
 | 23714 | else | 
 | 23715 |   if test "$ac_cv_type_ssize_t" = yes; then | 
 | 23716 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
 | 23717 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23718 | as_fn_error 77 "cannot compute sizeof (ssize_t) | 
 | 23719 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23720 |    else | 
 | 23721 |      ac_cv_sizeof_ssize_t=0 | 
 | 23722 |    fi | 
 | 23723 | fi | 
 | 23724 |  | 
 | 23725 | fi | 
 | 23726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 | 
 | 23727 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } | 
 | 23728 |  | 
 | 23729 |  | 
 | 23730 |  | 
 | 23731 | cat >>confdefs.h <<_ACEOF | 
 | 23732 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t | 
 | 23733 | _ACEOF | 
 | 23734 |  | 
 | 23735 |  | 
 | 23736 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23737 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP | 
 | 23738 | # The cast to long int works around a bug in the HP C Compiler | 
 | 23739 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
 | 23740 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
 | 23741 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23743 | $as_echo_n "checking size of unsigned int*... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23744 | if ${ac_cv_sizeof_unsigned_intp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23745 |   $as_echo_n "(cached) " >&6 | 
 | 23746 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23747 |   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] | 23748 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23749 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23750 |   if test "$ac_cv_type_unsigned_intp" = yes; then | 
 | 23751 |      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23753 | as_fn_error 77 "cannot compute sizeof (unsigned int*) | 
 | 23754 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23755 |    else | 
 | 23756 |      ac_cv_sizeof_unsigned_intp=0 | 
 | 23757 |    fi | 
 | 23758 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23759 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23760 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23761 | { $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] | 23762 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } | 
 | 23763 |  | 
 | 23764 |  | 
 | 23765 |  | 
 | 23766 | cat >>confdefs.h <<_ACEOF | 
 | 23767 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp | 
 | 23768 | _ACEOF | 
 | 23769 |  | 
 | 23770 |  | 
 | 23771 |  | 
 | 23772 | # | 
 | 23773 | # Compute sized types for current CPU and compiler options. | 
 | 23774 | # | 
 | 23775 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23776 | { $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] | 23777 | $as_echo_n "checking for signed 8-bit type... " >&6; } | 
 | 23778 | INT8_T='signed char' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23779 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5 | 
 | 23780 | $as_echo "$as_me: $INT8_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23781 |  | 
 | 23782 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23783 | { $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] | 23784 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } | 
 | 23785 | UINT8_T='unsigned char' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23786 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5 | 
 | 23787 | $as_echo "$as_me: $UINT8_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23788 |  | 
 | 23789 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23790 | { $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] | 23791 | $as_echo_n "checking for signed 16-bit type... " >&6; } | 
 | 23792 | INT16_T='signed short' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23793 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5 | 
 | 23794 | $as_echo "$as_me: $INT16_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23795 |  | 
 | 23796 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23797 | { $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] | 23798 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } | 
 | 23799 | UINT16_T='unsigned short' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23800 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5 | 
 | 23801 | $as_echo "$as_me: $UINT16_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23802 |  | 
 | 23803 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23804 | { $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] | 23805 | $as_echo_n "checking for signed 32-bit type... " >&6; } | 
 | 23806 | INT32_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23807 | INT32_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23808 | if test $ac_cv_sizeof_signed_int -eq 4; then | 
 | 23809 |   INT32_T='signed int' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23810 |   INT32_F='""' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23811 | elif test $ac_cv_sizeof_signed_long -eq 4; then | 
 | 23812 |   INT32_T='signed long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23813 |   INT32_F='"l"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23814 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23815 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5 | 
 | 23816 | $as_echo "$as_me: $INT32_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23817 |  | 
 | 23818 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23819 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23820 | { $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] | 23821 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } | 
 | 23822 | UINT32_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23823 | UINT32_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23824 | if test $ac_cv_sizeof_unsigned_int -eq 4; then | 
 | 23825 |   UINT32_T='unsigned int' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23826 |   UINT32_F='""' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23827 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then | 
 | 23828 |   UINT32_T='unsigned long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23829 |   UINT32_F='"l"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23830 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23831 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5 | 
 | 23832 | $as_echo "$as_me: $UINT32_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23833 |  | 
 | 23834 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23835 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23836 | { $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] | 23837 | $as_echo_n "checking for signed 64-bit type... " >&6; } | 
 | 23838 | INT64_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23839 | INT64_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23840 | if test $ac_cv_sizeof_signed_long -eq 8; then | 
 | 23841 |   INT64_T='signed long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23842 |   INT64_F='"l"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23843 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then | 
 | 23844 |   INT64_T='signed long long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23845 |   INT64_F='"ll"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23846 | fi | 
| cristy | 3a99dcf | 2011-12-17 01:29:40 +0000 | [diff] [blame] | 23847 | case "${host_os}" in | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23848 |   mingw* ) | 
 | 23849 |     INT64_F='"I64"' | 
 | 23850 |     ;; | 
 | 23851 | esac | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23852 | { $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5 | 
 | 23853 | $as_echo "$as_me: $INT64_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23854 |  | 
 | 23855 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23856 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23857 | { $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] | 23858 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } | 
 | 23859 | UINT64_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23860 | UINT64_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23861 | if test $ac_cv_sizeof_unsigned_long -eq 8; then | 
 | 23862 |   UINT64_T='unsigned long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23863 |   UINT64_F='"l"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23864 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then | 
 | 23865 |   UINT64_T='unsigned long long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23866 |   UINT64_F='"ll"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23867 | fi | 
| cristy | 3a99dcf | 2011-12-17 01:29:40 +0000 | [diff] [blame] | 23868 | case "${host_os}" in | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23869 |   mingw* ) | 
 | 23870 |     UINT64_F='"I64"' | 
 | 23871 |     ;; | 
 | 23872 | esac | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23873 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5 | 
 | 23874 | $as_echo "$as_me: $UINT64_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23875 |  | 
 | 23876 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23877 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23879 | $as_echo_n "checking for unsigned maximum type... " >&6; } | 
 | 23880 | UINTMAX_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23881 | UINTMAX_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23882 | if test "$UINT64_T" != 'none'; then | 
 | 23883 |   UINTMAX_T=$UINT64_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23884 |   UINTMAX_F=$UINT64_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23885 | elif test "$UINT32_T" != 'none'; then | 
 | 23886 |   UINTMAX_T=$UINT32_T | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23887 |   UINTMAX_F=$UINT32_F | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23888 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23889 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5 | 
 | 23890 | $as_echo "$as_me: $UINTMAX_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23891 |  | 
 | 23892 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23893 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23895 | $as_echo_n "checking for pointer difference type... " >&6; } | 
 | 23896 | UINTPTR_T='none' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23897 | UINTPTR_F='none' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23898 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then | 
 | 23899 |   UINTPTR_T='unsigned long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23900 |   UINTPTR_F='"l"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23901 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then | 
 | 23902 |   UINTPTR_T='unsigned long long' | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23903 |   UINTPTR_F='"ll"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23904 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23905 | { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5 | 
 | 23906 | $as_echo "$as_me: $UINTPTR_T" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23907 |  | 
 | 23908 |  | 
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23909 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23910 | { $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] | 23911 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23913 | /* end confdefs.h.  */ | 
 | 23914 |  | 
 | 23915 | int | 
 | 23916 | main () | 
 | 23917 | { | 
 | 23918 | { const char *func = __func__; return(func != 0 ? 0 : 1); } | 
 | 23919 |   ; | 
 | 23920 |   return 0; | 
 | 23921 | } | 
 | 23922 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23923 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23924 |   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 23925 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23926 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23927 |   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 23928 | $as_echo "$as_me: no" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23929 |  { $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] | 23930 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23931 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23932 | /* end confdefs.h.  */ | 
 | 23933 |  | 
 | 23934 | int | 
 | 23935 | main () | 
 | 23936 | { | 
 | 23937 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } | 
 | 23938 |   ; | 
 | 23939 |   return 0; | 
 | 23940 | } | 
 | 23941 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23942 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23943 |   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 23944 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23945 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23946 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23947 |  | 
 | 23948 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 23949 |   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 23950 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23951 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23952 | $as_echo "#define __func__ __FILE__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23953 |  | 
 | 23954 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 23956 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 23958 |  | 
 | 23959 | ######## | 
 | 23960 | # | 
 | 23961 | # Check for functions | 
 | 23962 | # | 
 | 23963 | ######## | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23964 | for ac_header in stdlib.h unistd.h | 
 | 23965 | do : | 
 | 23966 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 23967 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23968 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23969 |   cat >>confdefs.h <<_ACEOF | 
 | 23970 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 23971 | _ACEOF | 
 | 23972 |  | 
 | 23973 | fi | 
 | 23974 |  | 
 | 23975 | done | 
 | 23976 |  | 
 | 23977 | for ac_func in getpagesize | 
 | 23978 | do : | 
 | 23979 |   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23980 | if test "x$ac_cv_func_getpagesize" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23981 |   cat >>confdefs.h <<_ACEOF | 
 | 23982 | #define HAVE_GETPAGESIZE 1 | 
 | 23983 | _ACEOF | 
 | 23984 |  | 
 | 23985 | fi | 
 | 23986 | done | 
 | 23987 |  | 
 | 23988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 | 
 | 23989 | $as_echo_n "checking for working mmap file i/o... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23990 | if ${magick_cv_func_mmap_fileio+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23991 |   $as_echo_n "(cached) " >&6 | 
 | 23992 | else | 
 | 23993 |   if test "$cross_compiling" = yes; then : | 
 | 23994 |   magick_cv_func_mmap_fileio=no | 
 | 23995 | else | 
 | 23996 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 23997 | /* end confdefs.h.  */ | 
 | 23998 | $ac_includes_default | 
 | 23999 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 24000 | #undef malloc | 
 | 24001 |  | 
 | 24002 | /* | 
 | 24003 |    This test is derived from GNU Autoconf's similar macro. | 
 | 24004 |    The purpose of this test is to verify that files may be memory | 
 | 24005 |    mapped, and that memory mapping and file I/O are coherent. | 
 | 24006 |  | 
 | 24007 |    The test creates a test file, memory maps the file, updates | 
 | 24008 |    the file using the memory map, and then reads the file using | 
 | 24009 |    file I/O to verify that the file contains the updates. | 
 | 24010 | */ | 
 | 24011 |  | 
 | 24012 | #include <fcntl.h> | 
 | 24013 | #include <sys/mman.h> | 
 | 24014 |  | 
 | 24015 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
 | 24016 | char *malloc (); | 
 | 24017 | #endif | 
 | 24018 |  | 
 | 24019 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 24020 | #if !HAVE_GETPAGESIZE | 
 | 24021 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 24022 | # if !HAVE_SYS_PARAM_H | 
 | 24023 | #  define HAVE_SYS_PARAM_H 1 | 
 | 24024 | # endif | 
 | 24025 |  | 
 | 24026 | # ifdef _SC_PAGESIZE | 
 | 24027 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 24028 | # else /* no _SC_PAGESIZE */ | 
 | 24029 | #  if HAVE_SYS_PARAM_H | 
 | 24030 | #   include <sys/param.h> | 
 | 24031 | #   ifdef EXEC_PAGESIZE | 
 | 24032 | #    define getpagesize() EXEC_PAGESIZE | 
 | 24033 | #   else /* no EXEC_PAGESIZE */ | 
 | 24034 | #    ifdef NBPG | 
 | 24035 | #     define getpagesize() NBPG * CLSIZE | 
 | 24036 | #     ifndef CLSIZE | 
 | 24037 | #      define CLSIZE 1 | 
 | 24038 | #     endif /* no CLSIZE */ | 
 | 24039 | #    else /* no NBPG */ | 
 | 24040 | #     ifdef NBPC | 
 | 24041 | #      define getpagesize() NBPC | 
 | 24042 | #     else /* no NBPC */ | 
 | 24043 | #      ifdef PAGESIZE | 
 | 24044 | #       define getpagesize() PAGESIZE | 
 | 24045 | #      endif /* PAGESIZE */ | 
 | 24046 | #     endif /* no NBPC */ | 
 | 24047 | #    endif /* no NBPG */ | 
 | 24048 | #   endif /* no EXEC_PAGESIZE */ | 
 | 24049 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 24050 | #   define getpagesize() 8192	/* punt totally */ | 
 | 24051 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 24052 | # endif /* no _SC_PAGESIZE */ | 
 | 24053 |  | 
 | 24054 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 24055 |  | 
 | 24056 | int | 
 | 24057 | main () | 
 | 24058 | { | 
 | 24059 |   char *data, *data2, *data3; | 
 | 24060 |   int i, pagesize; | 
 | 24061 |   int fd; | 
 | 24062 |  | 
 | 24063 |   pagesize = getpagesize (); | 
 | 24064 |  | 
 | 24065 |   /* First, make a file with some known garbage in it. */ | 
 | 24066 |   data = (char *) malloc (pagesize); | 
 | 24067 |   if (!data) | 
 | 24068 |     exit (1); | 
 | 24069 |   for (i = 0; i < pagesize; ++i) | 
 | 24070 |     *(data + i) = rand (); | 
 | 24071 |   umask (0); | 
 | 24072 |   fd = creat ("conftest.mmap", 0600); | 
 | 24073 |   if (fd < 0) | 
 | 24074 |     exit (1); | 
 | 24075 |   if (write (fd, data, pagesize) != pagesize) | 
 | 24076 |     exit (1); | 
 | 24077 |   close (fd); | 
 | 24078 |  | 
 | 24079 |   /* Mmap the file as read/write/shared and verify that we see the | 
 | 24080 |   same garbage. */ | 
 | 24081 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 24082 |   if (fd < 0) | 
 | 24083 |     exit (1); | 
 | 24084 |   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); | 
 | 24085 |   if (data2 == 0) | 
 | 24086 |     exit (1); | 
 | 24087 |   for (i = 0; i < pagesize; ++i) | 
 | 24088 |     if (*(data + i) != *(data2 + i)) | 
 | 24089 |       exit (1); | 
 | 24090 |  | 
 | 24091 |   /* Finally, make sure that changes to the mapped area | 
 | 24092 |      percolate back to the file as seen by read().  */ | 
 | 24093 |   for (i = 0; i < pagesize; ++i) | 
 | 24094 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 24095 |   data3 = (char *) malloc (pagesize); | 
 | 24096 |   if (!data3) | 
 | 24097 |     exit (1); | 
 | 24098 |   if (read (fd, data3, pagesize) != pagesize) | 
 | 24099 |     exit (1); | 
 | 24100 |   for (i = 0; i < pagesize; ++i) | 
 | 24101 |     if (*(data2 + i) != *(data3 + i)) | 
 | 24102 |       exit (1); | 
 | 24103 |   close (fd); | 
 | 24104 |   exit (0); | 
 | 24105 | } | 
 | 24106 | _ACEOF | 
 | 24107 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 24108 |   magick_cv_func_mmap_fileio=yes | 
 | 24109 | else | 
 | 24110 |   magick_cv_func_mmap_fileio=no | 
 | 24111 | fi | 
 | 24112 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24113 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 24114 | fi | 
 | 24115 |  | 
 | 24116 | fi | 
 | 24117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 | 
 | 24118 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } | 
 | 24119 | if test $magick_cv_func_mmap_fileio = yes; then | 
 | 24120 |  | 
 | 24121 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h | 
 | 24122 |  | 
 | 24123 | fi | 
 | 24124 | rm -f conftest.mmap | 
 | 24125 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24127 | $as_echo_n "checking whether closedir returns void... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24128 | if ${ac_cv_func_closedir_void+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24129 |   $as_echo_n "(cached) " >&6 | 
 | 24130 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24131 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24132 |   ac_cv_func_closedir_void=yes | 
 | 24133 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24134 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24135 | /* end confdefs.h.  */ | 
 | 24136 | $ac_includes_default | 
 | 24137 | #include <$ac_header_dirent> | 
 | 24138 | #ifndef __cplusplus | 
 | 24139 | int closedir (); | 
 | 24140 | #endif | 
 | 24141 |  | 
 | 24142 | int | 
 | 24143 | main () | 
 | 24144 | { | 
 | 24145 | return closedir (opendir (".")) != 0; | 
 | 24146 |   ; | 
 | 24147 |   return 0; | 
 | 24148 | } | 
 | 24149 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24150 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24151 |   ac_cv_func_closedir_void=no | 
 | 24152 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24153 |   ac_cv_func_closedir_void=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24154 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24155 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24156 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24157 | fi | 
 | 24158 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24159 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24160 | { $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] | 24161 | $as_echo "$ac_cv_func_closedir_void" >&6; } | 
 | 24162 | if test $ac_cv_func_closedir_void = yes; then | 
 | 24163 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24164 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24165 |  | 
 | 24166 | fi | 
 | 24167 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24168 |  | 
 | 24169 |  | 
 | 24170 |  | 
 | 24171 |   for ac_header in $ac_header_list | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24172 | do : | 
 | 24173 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24174 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
 | 24175 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24176 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24177 |   cat >>confdefs.h <<_ACEOF | 
 | 24178 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 24179 | _ACEOF | 
 | 24180 |  | 
 | 24181 | fi | 
 | 24182 |  | 
 | 24183 | done | 
 | 24184 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24185 |  | 
 | 24186 |  | 
 | 24187 |  | 
 | 24188 |  | 
 | 24189 |  | 
 | 24190 |  | 
 | 24191 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24192 | for ac_func in getpagesize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24193 | do : | 
 | 24194 |   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24195 | if test "x$ac_cv_func_getpagesize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24196 |   cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24197 | #define HAVE_GETPAGESIZE 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24198 | _ACEOF | 
 | 24199 |  | 
 | 24200 | fi | 
 | 24201 | done | 
 | 24202 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24204 | $as_echo_n "checking for working mmap... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24205 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24206 |   $as_echo_n "(cached) " >&6 | 
 | 24207 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24208 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24209 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 24210 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24211 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24212 | /* end confdefs.h.  */ | 
 | 24213 | $ac_includes_default | 
 | 24214 | /* malloc might have been renamed as rpl_malloc. */ | 
 | 24215 | #undef malloc | 
 | 24216 |  | 
 | 24217 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 24218 |    Here is a matrix of mmap possibilities: | 
 | 24219 | 	mmap private not fixed | 
 | 24220 | 	mmap private fixed at somewhere currently unmapped | 
 | 24221 | 	mmap private fixed at somewhere already mapped | 
 | 24222 | 	mmap shared not fixed | 
 | 24223 | 	mmap shared fixed at somewhere currently unmapped | 
 | 24224 | 	mmap shared fixed at somewhere already mapped | 
 | 24225 |    For private mappings, we should verify that changes cannot be read() | 
 | 24226 |    back from the file, nor mmap's back from the file at a different | 
 | 24227 |    address.  (There have been systems where private was not correctly | 
 | 24228 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 24229 |    VM page cache was not coherent with the file system buffer cache | 
 | 24230 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 24231 |    For shared mappings, we should conversely verify that changes get | 
 | 24232 |    propagated back to all the places they're supposed to be. | 
 | 24233 |  | 
 | 24234 |    Grep wants private fixed already mapped. | 
 | 24235 |    The main things grep needs to know about mmap are: | 
 | 24236 |    * does it exist and is it safe to write into the mmap'd area | 
 | 24237 |    * how to use it (BSD variants)  */ | 
 | 24238 |  | 
 | 24239 | #include <fcntl.h> | 
 | 24240 | #include <sys/mman.h> | 
 | 24241 |  | 
 | 24242 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | 
 | 24243 | char *malloc (); | 
 | 24244 | #endif | 
 | 24245 |  | 
 | 24246 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 24247 | #ifndef HAVE_GETPAGESIZE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24248 | # ifdef _SC_PAGESIZE | 
 | 24249 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 24250 | # else /* no _SC_PAGESIZE */ | 
 | 24251 | #  ifdef HAVE_SYS_PARAM_H | 
 | 24252 | #   include <sys/param.h> | 
 | 24253 | #   ifdef EXEC_PAGESIZE | 
 | 24254 | #    define getpagesize() EXEC_PAGESIZE | 
 | 24255 | #   else /* no EXEC_PAGESIZE */ | 
 | 24256 | #    ifdef NBPG | 
 | 24257 | #     define getpagesize() NBPG * CLSIZE | 
 | 24258 | #     ifndef CLSIZE | 
 | 24259 | #      define CLSIZE 1 | 
 | 24260 | #     endif /* no CLSIZE */ | 
 | 24261 | #    else /* no NBPG */ | 
 | 24262 | #     ifdef NBPC | 
 | 24263 | #      define getpagesize() NBPC | 
 | 24264 | #     else /* no NBPC */ | 
 | 24265 | #      ifdef PAGESIZE | 
 | 24266 | #       define getpagesize() PAGESIZE | 
 | 24267 | #      endif /* PAGESIZE */ | 
 | 24268 | #     endif /* no NBPC */ | 
 | 24269 | #    endif /* no NBPG */ | 
 | 24270 | #   endif /* no EXEC_PAGESIZE */ | 
 | 24271 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 24272 | #   define getpagesize() 8192	/* punt totally */ | 
 | 24273 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 24274 | # endif /* no _SC_PAGESIZE */ | 
 | 24275 |  | 
 | 24276 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 24277 |  | 
 | 24278 | int | 
 | 24279 | main () | 
 | 24280 | { | 
 | 24281 |   char *data, *data2, *data3; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24282 |   const char *cdata2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24283 |   int i, pagesize; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24284 |   int fd, fd2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24285 |  | 
 | 24286 |   pagesize = getpagesize (); | 
 | 24287 |  | 
 | 24288 |   /* First, make a file with some known garbage in it. */ | 
 | 24289 |   data = (char *) malloc (pagesize); | 
 | 24290 |   if (!data) | 
 | 24291 |     return 1; | 
 | 24292 |   for (i = 0; i < pagesize; ++i) | 
 | 24293 |     *(data + i) = rand (); | 
 | 24294 |   umask (0); | 
 | 24295 |   fd = creat ("conftest.mmap", 0600); | 
 | 24296 |   if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24297 |     return 2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24298 |   if (write (fd, data, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24299 |     return 3; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24300 |   close (fd); | 
 | 24301 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24302 |   /* Next, check that the tail of a page is zero-filled.  File must have | 
 | 24303 |      non-zero length, otherwise we risk SIGBUS for entire page.  */ | 
 | 24304 |   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | 
 | 24305 |   if (fd2 < 0) | 
 | 24306 |     return 4; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24307 |   cdata2 = ""; | 
 | 24308 |   if (write (fd2, cdata2, 1) != 1) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24309 |     return 5; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24310 |   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24311 |   if (data2 == MAP_FAILED) | 
 | 24312 |     return 6; | 
 | 24313 |   for (i = 0; i < pagesize; ++i) | 
 | 24314 |     if (*(data2 + i)) | 
 | 24315 |       return 7; | 
 | 24316 |   close (fd2); | 
 | 24317 |   if (munmap (data2, pagesize)) | 
 | 24318 |     return 8; | 
 | 24319 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24320 |   /* Next, try to mmap the file at a fixed address which already has | 
 | 24321 |      something else allocated at it.  If we can, also make sure that | 
 | 24322 |      we see the same garbage.  */ | 
 | 24323 |   fd = open ("conftest.mmap", O_RDWR); | 
 | 24324 |   if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24325 |     return 9; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24326 |   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
 | 24327 | 		     MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24328 |     return 10; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24329 |   for (i = 0; i < pagesize; ++i) | 
 | 24330 |     if (*(data + i) != *(data2 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24331 |       return 11; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24332 |  | 
 | 24333 |   /* Finally, make sure that changes to the mapped area do not | 
 | 24334 |      percolate back to the file as seen by read().  (This is a bug on | 
 | 24335 |      some variants of i386 svr4.0.)  */ | 
 | 24336 |   for (i = 0; i < pagesize; ++i) | 
 | 24337 |     *(data2 + i) = *(data2 + i) + 1; | 
 | 24338 |   data3 = (char *) malloc (pagesize); | 
 | 24339 |   if (!data3) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24340 |     return 12; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24341 |   if (read (fd, data3, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24342 |     return 13; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24343 |   for (i = 0; i < pagesize; ++i) | 
 | 24344 |     if (*(data + i) != *(data3 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24345 |       return 14; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24346 |   close (fd); | 
 | 24347 |   return 0; | 
 | 24348 | } | 
 | 24349 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24350 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24351 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 24352 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24353 |   ac_cv_func_mmap_fixed_mapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24354 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24356 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24357 | fi | 
 | 24358 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24359 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24360 | { $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] | 24361 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | 
 | 24362 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 24363 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24364 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24365 |  | 
 | 24366 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24367 | rm -f conftest.mmap conftest.txt | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24368 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24369 | for ac_header in vfork.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24370 | do : | 
 | 24371 |   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24372 | if test "x$ac_cv_header_vfork_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24373 |   cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24374 | #define HAVE_VFORK_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24375 | _ACEOF | 
 | 24376 |  | 
 | 24377 | fi | 
 | 24378 |  | 
 | 24379 | done | 
 | 24380 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24381 | for ac_func in fork vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24382 | do : | 
 | 24383 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 24384 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24385 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24386 |   cat >>confdefs.h <<_ACEOF | 
 | 24387 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 24388 | _ACEOF | 
 | 24389 |  | 
 | 24390 | fi | 
 | 24391 | done | 
 | 24392 |  | 
 | 24393 | if test "x$ac_cv_func_fork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24394 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24395 | $as_echo_n "checking for working fork... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24396 | if ${ac_cv_func_fork_works+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24397 |   $as_echo_n "(cached) " >&6 | 
 | 24398 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24399 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24400 |   ac_cv_func_fork_works=cross | 
 | 24401 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24402 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24403 | /* end confdefs.h.  */ | 
 | 24404 | $ac_includes_default | 
 | 24405 | int | 
 | 24406 | main () | 
 | 24407 | { | 
 | 24408 |  | 
 | 24409 | 	  /* By Ruediger Kuhlmann. */ | 
 | 24410 | 	  return fork () < 0; | 
 | 24411 |  | 
 | 24412 |   ; | 
 | 24413 |   return 0; | 
 | 24414 | } | 
 | 24415 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24416 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24417 |   ac_cv_func_fork_works=yes | 
 | 24418 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24419 |   ac_cv_func_fork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24420 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24422 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24423 | fi | 
 | 24424 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24425 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24426 | { $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] | 24427 | $as_echo "$ac_cv_func_fork_works" >&6; } | 
 | 24428 |  | 
 | 24429 | else | 
 | 24430 |   ac_cv_func_fork_works=$ac_cv_func_fork | 
 | 24431 | fi | 
 | 24432 | if test "x$ac_cv_func_fork_works" = xcross; then | 
 | 24433 |   case $host in | 
 | 24434 |     *-*-amigaos* | *-*-msdosdjgpp*) | 
 | 24435 |       # Override, as these systems have only a dummy fork() stub | 
 | 24436 |       ac_cv_func_fork_works=no | 
 | 24437 |       ;; | 
 | 24438 |     *) | 
 | 24439 |       ac_cv_func_fork_works=yes | 
 | 24440 |       ;; | 
 | 24441 |   esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24442 |   { $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] | 24443 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | 
 | 24444 | fi | 
 | 24445 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 
 | 24446 | if test "x$ac_cv_func_vfork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24447 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24448 | $as_echo_n "checking for working vfork... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24449 | if ${ac_cv_func_vfork_works+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24450 |   $as_echo_n "(cached) " >&6 | 
 | 24451 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24452 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24453 |   ac_cv_func_vfork_works=cross | 
 | 24454 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24455 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24456 | /* end confdefs.h.  */ | 
 | 24457 | /* Thanks to Paul Eggert for this test.  */ | 
 | 24458 | $ac_includes_default | 
 | 24459 | #include <sys/wait.h> | 
 | 24460 | #ifdef HAVE_VFORK_H | 
 | 24461 | # include <vfork.h> | 
 | 24462 | #endif | 
 | 24463 | /* On some sparc systems, changes by the child to local and incoming | 
 | 24464 |    argument registers are propagated back to the parent.  The compiler | 
 | 24465 |    is told about this with #include <vfork.h>, but some compilers | 
 | 24466 |    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a | 
 | 24467 |    static variable whose address is put into a register that is | 
 | 24468 |    clobbered by the vfork.  */ | 
 | 24469 | static void | 
 | 24470 | #ifdef __cplusplus | 
 | 24471 | sparc_address_test (int arg) | 
 | 24472 | # else | 
 | 24473 | sparc_address_test (arg) int arg; | 
 | 24474 | #endif | 
 | 24475 | { | 
 | 24476 |   static pid_t child; | 
 | 24477 |   if (!child) { | 
 | 24478 |     child = vfork (); | 
 | 24479 |     if (child < 0) { | 
 | 24480 |       perror ("vfork"); | 
 | 24481 |       _exit(2); | 
 | 24482 |     } | 
 | 24483 |     if (!child) { | 
 | 24484 |       arg = getpid(); | 
 | 24485 |       write(-1, "", 0); | 
 | 24486 |       _exit (arg); | 
 | 24487 |     } | 
 | 24488 |   } | 
 | 24489 | } | 
 | 24490 |  | 
 | 24491 | int | 
 | 24492 | main () | 
 | 24493 | { | 
 | 24494 |   pid_t parent = getpid (); | 
 | 24495 |   pid_t child; | 
 | 24496 |  | 
 | 24497 |   sparc_address_test (0); | 
 | 24498 |  | 
 | 24499 |   child = vfork (); | 
 | 24500 |  | 
 | 24501 |   if (child == 0) { | 
 | 24502 |     /* Here is another test for sparc vfork register problems.  This | 
 | 24503 |        test uses lots of local variables, at least as many local | 
 | 24504 |        variables as main has allocated so far including compiler | 
 | 24505 |        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris | 
 | 24506 |        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should | 
 | 24507 |        reuse the register of parent for one of the local variables, | 
 | 24508 |        since it will think that parent can't possibly be used any more | 
 | 24509 |        in this routine.  Assigning to the local variable will thus | 
 | 24510 |        munge parent in the parent process.  */ | 
 | 24511 |     pid_t | 
 | 24512 |       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | 
 | 24513 |       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | 
 | 24514 |     /* Convince the compiler that p..p7 are live; otherwise, it might | 
 | 24515 |        use the same hardware register for all 8 local variables.  */ | 
 | 24516 |     if (p != p1 || p != p2 || p != p3 || p != p4 | 
 | 24517 | 	|| p != p5 || p != p6 || p != p7) | 
 | 24518 |       _exit(1); | 
 | 24519 |  | 
 | 24520 |     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | 
 | 24521 |        from child file descriptors.  If the child closes a descriptor | 
 | 24522 |        before it execs or exits, this munges the parent's descriptor | 
 | 24523 |        as well.  Test for this by closing stdout in the child.  */ | 
 | 24524 |     _exit(close(fileno(stdout)) != 0); | 
 | 24525 |   } else { | 
 | 24526 |     int status; | 
 | 24527 |     struct stat st; | 
 | 24528 |  | 
 | 24529 |     while (wait(&status) != child) | 
 | 24530 |       ; | 
 | 24531 |     return ( | 
 | 24532 | 	 /* Was there some problem with vforking?  */ | 
 | 24533 | 	 child < 0 | 
 | 24534 |  | 
 | 24535 | 	 /* Did the child fail?  (This shouldn't happen.)  */ | 
 | 24536 | 	 || status | 
 | 24537 |  | 
 | 24538 | 	 /* Did the vfork/compiler bug occur?  */ | 
 | 24539 | 	 || parent != getpid() | 
 | 24540 |  | 
 | 24541 | 	 /* Did the file descriptor bug occur?  */ | 
 | 24542 | 	 || fstat(fileno(stdout), &st) != 0 | 
 | 24543 | 	 ); | 
 | 24544 |   } | 
 | 24545 | } | 
 | 24546 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24547 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24548 |   ac_cv_func_vfork_works=yes | 
 | 24549 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24550 |   ac_cv_func_vfork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24551 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24553 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24554 | fi | 
 | 24555 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24556 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24557 | { $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] | 24558 | $as_echo "$ac_cv_func_vfork_works" >&6; } | 
 | 24559 |  | 
 | 24560 | fi; | 
 | 24561 | if test "x$ac_cv_func_fork_works" = xcross; then | 
 | 24562 |   ac_cv_func_vfork_works=$ac_cv_func_vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24563 |   { $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] | 24564 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | 
 | 24565 | fi | 
 | 24566 |  | 
 | 24567 | if test "x$ac_cv_func_vfork_works" = xyes; then | 
 | 24568 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24569 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24570 |  | 
 | 24571 | else | 
 | 24572 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24573 | $as_echo "#define vfork fork" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24574 |  | 
 | 24575 | fi | 
 | 24576 | if test "x$ac_cv_func_fork_works" = xyes; then | 
 | 24577 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24578 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24579 |  | 
 | 24580 | fi | 
 | 24581 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24583 | $as_echo_n "checking for working memcmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24584 | if ${ac_cv_func_memcmp_working+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24585 |   $as_echo_n "(cached) " >&6 | 
 | 24586 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24587 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24588 |   ac_cv_func_memcmp_working=no | 
 | 24589 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24590 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24591 | /* end confdefs.h.  */ | 
 | 24592 | $ac_includes_default | 
 | 24593 | int | 
 | 24594 | main () | 
 | 24595 | { | 
 | 24596 |  | 
 | 24597 |   /* Some versions of memcmp are not 8-bit clean.  */ | 
 | 24598 |   char c0 = '\100', c1 = '\200', c2 = '\201'; | 
 | 24599 |   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | 
 | 24600 |     return 1; | 
 | 24601 |  | 
 | 24602 |   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | 
 | 24603 |      or more and with at least one buffer not starting on a 4-byte boundary. | 
 | 24604 |      William Lewis provided this test program.   */ | 
 | 24605 |   { | 
 | 24606 |     char foo[21]; | 
 | 24607 |     char bar[21]; | 
 | 24608 |     int i; | 
 | 24609 |     for (i = 0; i < 4; i++) | 
 | 24610 |       { | 
 | 24611 | 	char *a = foo + i; | 
 | 24612 | 	char *b = bar + i; | 
 | 24613 | 	strcpy (a, "--------01111111"); | 
 | 24614 | 	strcpy (b, "--------10000000"); | 
 | 24615 | 	if (memcmp (a, b, 16) >= 0) | 
 | 24616 | 	  return 1; | 
 | 24617 |       } | 
 | 24618 |     return 0; | 
 | 24619 |   } | 
 | 24620 |  | 
 | 24621 |   ; | 
 | 24622 |   return 0; | 
 | 24623 | } | 
 | 24624 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24625 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24626 |   ac_cv_func_memcmp_working=yes | 
 | 24627 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24628 |   ac_cv_func_memcmp_working=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24629 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24631 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24632 | fi | 
 | 24633 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24634 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24635 | { $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] | 24636 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | 
 | 24637 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | 
 | 24638 |   *" memcmp.$ac_objext "* ) ;; | 
 | 24639 |   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | 
 | 24640 |  ;; | 
 | 24641 | esac | 
 | 24642 |  | 
 | 24643 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24644 | for ac_header in sys/select.h sys/socket.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24645 | do : | 
 | 24646 |   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
 | 24647 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24648 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24649 |   cat >>confdefs.h <<_ACEOF | 
 | 24650 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
 | 24651 | _ACEOF | 
 | 24652 |  | 
 | 24653 | fi | 
 | 24654 |  | 
 | 24655 | done | 
 | 24656 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24657 | { $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] | 24658 | $as_echo_n "checking types of arguments for select... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24659 | if ${ac_cv_func_select_args+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24660 |   $as_echo_n "(cached) " >&6 | 
 | 24661 | else | 
 | 24662 |   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | 
 | 24663 |  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | 
 | 24664 |   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24665 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24666 | /* end confdefs.h.  */ | 
 | 24667 | $ac_includes_default | 
 | 24668 | #ifdef HAVE_SYS_SELECT_H | 
 | 24669 | # include <sys/select.h> | 
 | 24670 | #endif | 
 | 24671 | #ifdef HAVE_SYS_SOCKET_H | 
 | 24672 | # include <sys/socket.h> | 
 | 24673 | #endif | 
 | 24674 |  | 
 | 24675 | int | 
 | 24676 | main () | 
 | 24677 | { | 
 | 24678 | extern int select ($ac_arg1, | 
 | 24679 | 					    $ac_arg234, $ac_arg234, $ac_arg234, | 
 | 24680 | 					    $ac_arg5); | 
 | 24681 |   ; | 
 | 24682 |   return 0; | 
 | 24683 | } | 
 | 24684 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24685 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24686 |   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24687 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 24689 |   done | 
 | 24690 |  done | 
 | 24691 | done | 
 | 24692 | # Provide a safe default value. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24693 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24694 |  | 
 | 24695 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24696 | { $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] | 24697 | $as_echo "$ac_cv_func_select_args" >&6; } | 
 | 24698 | ac_save_IFS=$IFS; IFS=',' | 
 | 24699 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | 
 | 24700 | IFS=$ac_save_IFS | 
 | 24701 | shift | 
 | 24702 |  | 
 | 24703 | cat >>confdefs.h <<_ACEOF | 
 | 24704 | #define SELECT_TYPE_ARG1 $1 | 
 | 24705 | _ACEOF | 
 | 24706 |  | 
 | 24707 |  | 
 | 24708 | cat >>confdefs.h <<_ACEOF | 
 | 24709 | #define SELECT_TYPE_ARG234 ($2) | 
 | 24710 | _ACEOF | 
 | 24711 |  | 
 | 24712 |  | 
 | 24713 | cat >>confdefs.h <<_ACEOF | 
 | 24714 | #define SELECT_TYPE_ARG5 ($3) | 
 | 24715 | _ACEOF | 
 | 24716 |  | 
 | 24717 | rm -f conftest* | 
 | 24718 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24719 | if ${ac_cv_func_setvbuf_reversed+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24720 |   $as_echo_n "(cached) " >&6 | 
 | 24721 | else | 
 | 24722 |   ac_cv_func_setvbuf_reversed=no | 
 | 24723 | fi | 
 | 24724 |  | 
 | 24725 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24726 | { $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] | 24727 | $as_echo_n "checking return type of signal handlers... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24728 | if ${ac_cv_type_signal+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24729 |   $as_echo_n "(cached) " >&6 | 
 | 24730 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24731 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24732 | /* end confdefs.h.  */ | 
 | 24733 | #include <sys/types.h> | 
 | 24734 | #include <signal.h> | 
 | 24735 |  | 
 | 24736 | int | 
 | 24737 | main () | 
 | 24738 | { | 
 | 24739 | return *(signal (0, 0)) (0) == 1; | 
 | 24740 |   ; | 
 | 24741 |   return 0; | 
 | 24742 | } | 
 | 24743 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24744 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24745 |   ac_cv_type_signal=int | 
 | 24746 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24747 |   ac_cv_type_signal=void | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24748 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 24750 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24752 | $as_echo "$ac_cv_type_signal" >&6; } | 
 | 24753 |  | 
 | 24754 | cat >>confdefs.h <<_ACEOF | 
 | 24755 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 24756 | _ACEOF | 
 | 24757 |  | 
 | 24758 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24760 | $as_echo_n "checking for working strtod... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24761 | if ${ac_cv_func_strtod+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24762 |   $as_echo_n "(cached) " >&6 | 
 | 24763 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24764 |   if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24765 |   ac_cv_func_strtod=no | 
 | 24766 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24767 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24768 | /* end confdefs.h.  */ | 
 | 24769 |  | 
 | 24770 | $ac_includes_default | 
 | 24771 | #ifndef strtod | 
 | 24772 | double strtod (); | 
 | 24773 | #endif | 
 | 24774 | int | 
 | 24775 | main() | 
 | 24776 | { | 
 | 24777 |   { | 
 | 24778 |     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */ | 
 | 24779 |     char *string = " +69"; | 
 | 24780 |     char *term; | 
 | 24781 |     double value; | 
 | 24782 |     value = strtod (string, &term); | 
 | 24783 |     if (value != 69 || term != (string + 4)) | 
 | 24784 |       return 1; | 
 | 24785 |   } | 
 | 24786 |  | 
 | 24787 |   { | 
 | 24788 |     /* Under Solaris 2.4, strtod returns the wrong value for the | 
 | 24789 |        terminating character under some conditions.  */ | 
 | 24790 |     char *string = "NaN"; | 
 | 24791 |     char *term; | 
 | 24792 |     strtod (string, &term); | 
 | 24793 |     if (term != string && *(term - 1) == 0) | 
 | 24794 |       return 1; | 
 | 24795 |   } | 
 | 24796 |   return 0; | 
 | 24797 | } | 
 | 24798 |  | 
 | 24799 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24800 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24801 |   ac_cv_func_strtod=yes | 
 | 24802 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24803 |   ac_cv_func_strtod=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24804 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24805 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24806 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24807 | fi | 
 | 24808 |  | 
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24811 | $as_echo "$ac_cv_func_strtod" >&6; } | 
 | 24812 | if test $ac_cv_func_strtod = no; then | 
 | 24813 |   case " $LIBOBJS " in | 
 | 24814 |   *" strtod.$ac_objext "* ) ;; | 
 | 24815 |   *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | 
 | 24816 |  ;; | 
 | 24817 | esac | 
 | 24818 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24819 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24820 | if test "x$ac_cv_func_pow" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24821 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24822 | fi | 
 | 24823 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24824 | if test $ac_cv_func_pow = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24825 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24826 | $as_echo_n "checking for pow in -lm... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24827 | if ${ac_cv_lib_m_pow+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24828 |   $as_echo_n "(cached) " >&6 | 
 | 24829 | else | 
 | 24830 |   ac_check_lib_save_LIBS=$LIBS | 
 | 24831 | LIBS="-lm  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24833 | /* end confdefs.h.  */ | 
 | 24834 |  | 
 | 24835 | /* Override any GCC internal prototype to avoid an error. | 
 | 24836 |    Use char because int might match the return type of a GCC | 
 | 24837 |    builtin and then its argument prototype would still apply.  */ | 
 | 24838 | #ifdef __cplusplus | 
 | 24839 | extern "C" | 
 | 24840 | #endif | 
 | 24841 | char pow (); | 
 | 24842 | int | 
 | 24843 | main () | 
 | 24844 | { | 
 | 24845 | return pow (); | 
 | 24846 |   ; | 
 | 24847 |   return 0; | 
 | 24848 | } | 
 | 24849 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24850 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24851 |   ac_cv_lib_m_pow=yes | 
 | 24852 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24853 |   ac_cv_lib_m_pow=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24854 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24855 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 24856 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24857 | LIBS=$ac_check_lib_save_LIBS | 
 | 24858 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24859 | { $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] | 24860 | $as_echo "$ac_cv_lib_m_pow" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24861 | if test "x$ac_cv_lib_m_pow" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24862 |   POW_LIB=-lm | 
 | 24863 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24864 |   { $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] | 24865 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | 
 | 24866 | fi | 
 | 24867 |  | 
 | 24868 | fi | 
 | 24869 |  | 
 | 24870 | fi | 
 | 24871 |  | 
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24872 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" | 
 | 24873 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : | 
 | 24874 |   ac_have_decl=1 | 
 | 24875 | else | 
 | 24876 |   ac_have_decl=0 | 
 | 24877 | fi | 
 | 24878 |  | 
 | 24879 | cat >>confdefs.h <<_ACEOF | 
 | 24880 | #define HAVE_DECL_STRERROR_R $ac_have_decl | 
 | 24881 | _ACEOF | 
 | 24882 |  | 
 | 24883 | for ac_func in strerror_r | 
 | 24884 | do : | 
 | 24885 |   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" | 
 | 24886 | if test "x$ac_cv_func_strerror_r" = xyes; then : | 
 | 24887 |   cat >>confdefs.h <<_ACEOF | 
 | 24888 | #define HAVE_STRERROR_R 1 | 
 | 24889 | _ACEOF | 
 | 24890 |  | 
 | 24891 | fi | 
 | 24892 | done | 
 | 24893 |  | 
 | 24894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 | 
 | 24895 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } | 
 | 24896 | if ${ac_cv_func_strerror_r_char_p+:} false; then : | 
 | 24897 |   $as_echo_n "(cached) " >&6 | 
 | 24898 | else | 
 | 24899 |  | 
 | 24900 |     ac_cv_func_strerror_r_char_p=no | 
 | 24901 |     if test $ac_cv_have_decl_strerror_r = yes; then | 
 | 24902 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 24903 | /* end confdefs.h.  */ | 
 | 24904 | $ac_includes_default | 
 | 24905 | int | 
 | 24906 | main () | 
 | 24907 | { | 
 | 24908 |  | 
 | 24909 | 	  char buf[100]; | 
 | 24910 | 	  char x = *strerror_r (0, buf, sizeof buf); | 
 | 24911 | 	  char *p = strerror_r (0, buf, sizeof buf); | 
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 24912 | 	  return !p || x; | 
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24913 |  | 
 | 24914 |   ; | 
 | 24915 |   return 0; | 
 | 24916 | } | 
 | 24917 | _ACEOF | 
 | 24918 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 24919 |   ac_cv_func_strerror_r_char_p=yes | 
 | 24920 | fi | 
 | 24921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 24922 |     else | 
 | 24923 |       # strerror_r is not declared.  Choose between | 
 | 24924 |       # systems that have relatively inaccessible declarations for the | 
 | 24925 |       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the | 
 | 24926 |       # former has a strerror_r that returns char*, while the latter | 
 | 24927 |       # has a strerror_r that returns `int'. | 
 | 24928 |       # This test should segfault on the DEC system. | 
 | 24929 |       if test "$cross_compiling" = yes; then : | 
 | 24930 |   : | 
 | 24931 | else | 
 | 24932 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 24933 | /* end confdefs.h.  */ | 
 | 24934 | $ac_includes_default | 
 | 24935 | 	extern char *strerror_r (); | 
 | 24936 | int | 
 | 24937 | main () | 
 | 24938 | { | 
 | 24939 | char buf[100]; | 
 | 24940 | 	  char x = *strerror_r (0, buf, sizeof buf); | 
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 24941 | 	  return ! isalpha (x); | 
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24942 |   ; | 
 | 24943 |   return 0; | 
 | 24944 | } | 
 | 24945 | _ACEOF | 
 | 24946 | if ac_fn_c_try_run "$LINENO"; then : | 
 | 24947 |   ac_cv_func_strerror_r_char_p=yes | 
 | 24948 | fi | 
 | 24949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
 | 24950 |   conftest.$ac_objext conftest.beam conftest.$ac_ext | 
 | 24951 | fi | 
 | 24952 |  | 
 | 24953 |     fi | 
 | 24954 |  | 
 | 24955 | fi | 
 | 24956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 | 
 | 24957 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } | 
 | 24958 | if test $ac_cv_func_strerror_r_char_p = yes; then | 
 | 24959 |  | 
 | 24960 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h | 
 | 24961 |  | 
 | 24962 | fi | 
 | 24963 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24964 | for ac_func in vprintf | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24965 | do : | 
 | 24966 |   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24967 | if test "x$ac_cv_func_vprintf" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24968 |   cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24969 | #define HAVE_VPRINTF 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24970 | _ACEOF | 
 | 24971 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24972 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24973 | if test "x$ac_cv_func__doprnt" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24974 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24975 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24976 |  | 
 | 24977 | fi | 
 | 24978 |  | 
 | 24979 | fi | 
 | 24980 | done | 
 | 24981 |  | 
 | 24982 |  | 
 | 24983 |  | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24984 | # | 
 | 24985 | # Find math library | 
 | 24986 | # | 
 | 24987 | MATH_LIBS='' | 
 | 24988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | 
 | 24989 | $as_echo_n "checking for sqrt in -lm... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24990 | if ${ac_cv_lib_m_sqrt+:} false; then : | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24991 |   $as_echo_n "(cached) " >&6 | 
 | 24992 | else | 
 | 24993 |   ac_check_lib_save_LIBS=$LIBS | 
 | 24994 | LIBS="-lm  $LIBS" | 
 | 24995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 24996 | /* end confdefs.h.  */ | 
 | 24997 |  | 
 | 24998 | /* Override any GCC internal prototype to avoid an error. | 
 | 24999 |    Use char because int might match the return type of a GCC | 
 | 25000 |    builtin and then its argument prototype would still apply.  */ | 
 | 25001 | #ifdef __cplusplus | 
 | 25002 | extern "C" | 
 | 25003 | #endif | 
 | 25004 | char sqrt (); | 
 | 25005 | int | 
 | 25006 | main () | 
 | 25007 | { | 
 | 25008 | return sqrt (); | 
 | 25009 |   ; | 
 | 25010 |   return 0; | 
 | 25011 | } | 
 | 25012 | _ACEOF | 
 | 25013 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 25014 |   ac_cv_lib_m_sqrt=yes | 
 | 25015 | else | 
 | 25016 |   ac_cv_lib_m_sqrt=no | 
 | 25017 | fi | 
 | 25018 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 25019 |     conftest$ac_exeext conftest.$ac_ext | 
 | 25020 | LIBS=$ac_check_lib_save_LIBS | 
 | 25021 | fi | 
 | 25022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | 
 | 25023 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25024 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 25025 |   MATH_LIBS="-lm" | 
 | 25026 | fi | 
 | 25027 |  | 
 | 25028 | LIBS="$MATH_LIBS $LIBS" | 
 | 25029 |  | 
 | 25030 |  | 
| cristy | 82b2072 | 2011-11-05 21:52:36 +0000 | [diff] [blame] | 25031 | for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25032 | do : | 
 | 25033 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 25034 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25035 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25036 |   cat >>confdefs.h <<_ACEOF | 
 | 25037 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 25038 | _ACEOF | 
 | 25039 |  | 
 | 25040 | fi | 
 | 25041 | done | 
 | 25042 |  | 
 | 25043 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25044 | # | 
 | 25045 | # Check for clock_gettime(). | 
 | 25046 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25047 | { $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] | 25048 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25049 | if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25050 |   $as_echo_n "(cached) " >&6 | 
 | 25051 | else | 
 | 25052 |   ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25054 | /* end confdefs.h.  */ | 
 | 25055 |  | 
 | 25056 | /* Override any GCC internal prototype to avoid an error. | 
 | 25057 |    Use char because int might match the return type of a GCC | 
 | 25058 |    builtin and then its argument prototype would still apply.  */ | 
 | 25059 | #ifdef __cplusplus | 
 | 25060 | extern "C" | 
 | 25061 | #endif | 
 | 25062 | char clock_gettime (); | 
 | 25063 | int | 
 | 25064 | main () | 
 | 25065 | { | 
 | 25066 | return clock_gettime (); | 
 | 25067 |   ; | 
 | 25068 |   return 0; | 
 | 25069 | } | 
 | 25070 | _ACEOF | 
 | 25071 | for ac_lib in '' rt; do | 
 | 25072 |   if test -z "$ac_lib"; then | 
 | 25073 |     ac_res="none required" | 
 | 25074 |   else | 
 | 25075 |     ac_res=-l$ac_lib | 
 | 25076 |     LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
 | 25077 |   fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25078 |   if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25079 |   ac_cv_search_clock_gettime=$ac_res | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25080 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25081 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 25082 |     conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25083 |   if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25084 |   break | 
 | 25085 | fi | 
 | 25086 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25087 | if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25088 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25089 | else | 
 | 25090 |   ac_cv_search_clock_gettime=no | 
 | 25091 | fi | 
 | 25092 | rm conftest.$ac_ext | 
 | 25093 | LIBS=$ac_func_search_save_LIBS | 
 | 25094 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25095 | { $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] | 25096 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | 
 | 25097 | ac_res=$ac_cv_search_clock_gettime | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25098 | if test "$ac_res" != no; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25099 |   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
 | 25100 |  | 
 | 25101 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25102 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25103 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25104 |   { $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] | 25105 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25106 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25107 | /* end confdefs.h.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25108 |  | 
 | 25109 |     #include <time.h> | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25110 | int | 
 | 25111 | main () | 
 | 25112 | { | 
 | 25113 | clockid_t clockType = CLOCK_REALTIME; | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25114 |   ; | 
 | 25115 |   return 0; | 
 | 25116 | } | 
 | 25117 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25118 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25119 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25120 |         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 25121 | $as_echo "$as_me: yes" >&6;} | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25122 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25123 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25124 |  | 
 | 25125 |  | 
 | 25126 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25127 |   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 25128 | $as_echo "$as_me: no" >&6;} | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25129 |  | 
 | 25130 | fi | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25132 |  | 
 | 25133 | else | 
 | 25134 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25135 |     for ac_func in gettimeofday ftime | 
 | 25136 | do : | 
 | 25137 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 25138 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25139 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25140 |   cat >>confdefs.h <<_ACEOF | 
 | 25141 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 25142 | _ACEOF | 
 | 25143 |  break | 
 | 25144 | fi | 
 | 25145 | done | 
 | 25146 |  | 
 | 25147 |  | 
 | 25148 |  | 
 | 25149 | fi | 
 | 25150 |  | 
 | 25151 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25152 | ######## | 
 | 25153 | # | 
 | 25154 | # Check for function prototypes | 
 | 25155 | # | 
 | 25156 | ######## | 
 | 25157 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25158 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25159 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25160 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25161 | if test "x$ac_cv_have_decl_pread" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25162 |   ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25163 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25164 |   ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25165 | fi | 
 | 25166 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25167 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25168 | #define HAVE_DECL_PREAD $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25169 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25170 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25171 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25172 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25173 | if test "x$ac_cv_have_decl_pwrite" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25174 |   ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25175 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25176 |   ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25177 | fi | 
 | 25178 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25179 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25180 | #define HAVE_DECL_PWRITE $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25181 | _ACEOF | 
 | 25182 |  | 
 | 25183 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25184 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25185 | #include <strings.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25186 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25187 | if test "x$ac_cv_have_decl_strlcpy" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25188 |   ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25189 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25190 |   ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25191 | fi | 
 | 25192 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25193 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25194 | #define HAVE_DECL_STRLCPY $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25195 | _ACEOF | 
 | 25196 |  | 
 | 25197 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25198 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25199 | #include <stdio.h> | 
 | 25200 | #include <stdarg.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25201 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25202 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25203 |   ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25204 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25205 |   ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25206 | fi | 
 | 25207 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25208 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25209 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25210 | _ACEOF | 
 | 25211 |  | 
 | 25212 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25213 | ######## | 
 | 25214 | # | 
 | 25215 | # C++ Support Tests (For Magick++) | 
 | 25216 | # | 
 | 25217 | ######## | 
 | 25218 | have_magick_plus_plus='no' | 
 | 25219 | if test "$with_magick_plus_plus" = 'yes'; then | 
 | 25220 |     OLIBS="$LIBS" | 
 | 25221 |     LIBS='' | 
 | 25222 |     ac_ext=cpp | 
 | 25223 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25224 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25225 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25226 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25227 |  | 
 | 25228 |  | 
 | 25229 |     # Full set of headers used... | 
 | 25230 |     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception | 
 | 25231 |     # functional iomanip iosfwd iostream iterator list string strstream utility | 
 | 25232 |     ac_ext=cpp | 
 | 25233 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25234 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25235 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25236 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25237 |  | 
 | 25238 |     ac_ext=cpp | 
 | 25239 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25240 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25241 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25242 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25243 | if test -z "$CXX"; then | 
 | 25244 |   if test -n "$CCC"; then | 
 | 25245 |     CXX=$CCC | 
 | 25246 |   else | 
 | 25247 |     if test -n "$ac_tool_prefix"; then | 
 | 25248 |   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
 | 25249 |   do | 
 | 25250 |     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
 | 25251 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25253 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25254 | if ${ac_cv_prog_CXX+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25255 |   $as_echo_n "(cached) " >&6 | 
 | 25256 | else | 
 | 25257 |   if test -n "$CXX"; then | 
 | 25258 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 25259 | else | 
 | 25260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 25261 | for as_dir in $PATH | 
 | 25262 | do | 
 | 25263 |   IFS=$as_save_IFS | 
 | 25264 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25265 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25266 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 25267 |     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25268 |     $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] | 25269 |     break 2 | 
 | 25270 |   fi | 
 | 25271 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25272 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25273 | IFS=$as_save_IFS | 
 | 25274 |  | 
 | 25275 | fi | 
 | 25276 | fi | 
 | 25277 | CXX=$ac_cv_prog_CXX | 
 | 25278 | if test -n "$CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25279 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25280 | $as_echo "$CXX" >&6; } | 
 | 25281 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25282 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25283 | $as_echo "no" >&6; } | 
 | 25284 | fi | 
 | 25285 |  | 
 | 25286 |  | 
 | 25287 |     test -n "$CXX" && break | 
 | 25288 |   done | 
 | 25289 | fi | 
 | 25290 | if test -z "$CXX"; then | 
 | 25291 |   ac_ct_CXX=$CXX | 
 | 25292 |   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
 | 25293 | do | 
 | 25294 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 25295 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25297 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25298 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25299 |   $as_echo_n "(cached) " >&6 | 
 | 25300 | else | 
 | 25301 |   if test -n "$ac_ct_CXX"; then | 
 | 25302 |   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
 | 25303 | else | 
 | 25304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 25305 | for as_dir in $PATH | 
 | 25306 | do | 
 | 25307 |   IFS=$as_save_IFS | 
 | 25308 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25309 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25310 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 25311 |     ac_cv_prog_ac_ct_CXX="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25312 |     $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] | 25313 |     break 2 | 
 | 25314 |   fi | 
 | 25315 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25316 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25317 | IFS=$as_save_IFS | 
 | 25318 |  | 
 | 25319 | fi | 
 | 25320 | fi | 
 | 25321 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
 | 25322 | if test -n "$ac_ct_CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25323 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25324 | $as_echo "$ac_ct_CXX" >&6; } | 
 | 25325 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25326 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25327 | $as_echo "no" >&6; } | 
 | 25328 | fi | 
 | 25329 |  | 
 | 25330 |  | 
 | 25331 |   test -n "$ac_ct_CXX" && break | 
 | 25332 | done | 
 | 25333 |  | 
 | 25334 |   if test "x$ac_ct_CXX" = x; then | 
 | 25335 |     CXX="g++" | 
 | 25336 |   else | 
 | 25337 |     case $cross_compiling:$ac_tool_warned in | 
 | 25338 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25339 | { $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] | 25340 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
 | 25341 | ac_tool_warned=yes ;; | 
 | 25342 | esac | 
 | 25343 |     CXX=$ac_ct_CXX | 
 | 25344 |   fi | 
 | 25345 | fi | 
 | 25346 |  | 
 | 25347 |   fi | 
 | 25348 | fi | 
 | 25349 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25350 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25351 | set X $ac_compile | 
 | 25352 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25353 | for ac_option in --version -v -V -qversion; do | 
 | 25354 |   { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25355 | case "(($ac_try" in | 
 | 25356 |   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
 | 25357 |   *) ac_try_echo=$ac_try;; | 
 | 25358 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25359 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
 | 25360 | $as_echo "$ac_try_echo"; } >&5 | 
 | 25361 |   (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25362 |   ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25363 |   if test -s conftest.err; then | 
 | 25364 |     sed '10a\ | 
 | 25365 | ... rest of stderr output deleted ... | 
 | 25366 |          10q' conftest.err >conftest.er1 | 
 | 25367 |     cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25368 |   fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25369 |   rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25370 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 25371 |   test $ac_status = 0; } | 
 | 25372 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25373 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25374 | { $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] | 25375 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25376 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25377 |   $as_echo_n "(cached) " >&6 | 
 | 25378 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25379 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25380 | /* end confdefs.h.  */ | 
 | 25381 |  | 
 | 25382 | int | 
 | 25383 | main () | 
 | 25384 | { | 
 | 25385 | #ifndef __GNUC__ | 
 | 25386 |        choke me | 
 | 25387 | #endif | 
 | 25388 |  | 
 | 25389 |   ; | 
 | 25390 |   return 0; | 
 | 25391 | } | 
 | 25392 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25393 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25394 |   ac_compiler_gnu=yes | 
 | 25395 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25396 |   ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25397 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25399 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
 | 25400 |  | 
 | 25401 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25402 | { $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] | 25403 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
 | 25404 | if test $ac_compiler_gnu = yes; then | 
 | 25405 |   GXX=yes | 
 | 25406 | else | 
 | 25407 |   GXX= | 
 | 25408 | fi | 
 | 25409 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
 | 25410 | ac_save_CXXFLAGS=$CXXFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25412 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25413 | if ${ac_cv_prog_cxx_g+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25414 |   $as_echo_n "(cached) " >&6 | 
 | 25415 | else | 
 | 25416 |   ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
 | 25417 |    ac_cxx_werror_flag=yes | 
 | 25418 |    ac_cv_prog_cxx_g=no | 
 | 25419 |    CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25420 |    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25421 | /* end confdefs.h.  */ | 
 | 25422 |  | 
 | 25423 | int | 
 | 25424 | main () | 
 | 25425 | { | 
 | 25426 |  | 
 | 25427 |   ; | 
 | 25428 |   return 0; | 
 | 25429 | } | 
 | 25430 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25431 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25432 |   ac_cv_prog_cxx_g=yes | 
 | 25433 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25434 |   CXXFLAGS="" | 
 | 25435 |       cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25436 | /* end confdefs.h.  */ | 
 | 25437 |  | 
 | 25438 | int | 
 | 25439 | main () | 
 | 25440 | { | 
 | 25441 |  | 
 | 25442 |   ; | 
 | 25443 |   return 0; | 
 | 25444 | } | 
 | 25445 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25446 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25447 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25448 | else | 
 | 25449 |   ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25450 | 	 CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25451 | 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25452 | /* end confdefs.h.  */ | 
 | 25453 |  | 
 | 25454 | int | 
 | 25455 | main () | 
 | 25456 | { | 
 | 25457 |  | 
 | 25458 |   ; | 
 | 25459 |   return 0; | 
 | 25460 | } | 
 | 25461 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25462 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25463 |   ac_cv_prog_cxx_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25464 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25466 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25468 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25470 |    ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
 | 25471 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25472 | { $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] | 25473 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
 | 25474 | if test "$ac_test_CXXFLAGS" = set; then | 
 | 25475 |   CXXFLAGS=$ac_save_CXXFLAGS | 
 | 25476 | elif test $ac_cv_prog_cxx_g = yes; then | 
 | 25477 |   if test "$GXX" = yes; then | 
 | 25478 |     CXXFLAGS="-g -O2" | 
 | 25479 |   else | 
 | 25480 |     CXXFLAGS="-g" | 
 | 25481 |   fi | 
 | 25482 | else | 
 | 25483 |   if test "$GXX" = yes; then | 
 | 25484 |     CXXFLAGS="-O2" | 
 | 25485 |   else | 
 | 25486 |     CXXFLAGS= | 
 | 25487 |   fi | 
 | 25488 | fi | 
 | 25489 | ac_ext=cpp | 
 | 25490 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25491 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25492 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25493 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25494 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25495 | depcc="$CXX"  am_compiler_list= | 
 | 25496 |  | 
 | 25497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
 | 25498 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25499 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25500 |   $as_echo_n "(cached) " >&6 | 
 | 25501 | else | 
 | 25502 |   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
 | 25503 |   # We make a subdir and do the tests there.  Otherwise we can end up | 
 | 25504 |   # making bogus files that we don't know about and never remove.  For | 
 | 25505 |   # instance it was reported that on HP-UX the gcc test will end up | 
 | 25506 |   # making a dummy file named `D' -- because `-MD' means `put the output | 
 | 25507 |   # in D'. | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 25508 |   rm -rf conftest.dir | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25509 |   mkdir conftest.dir | 
 | 25510 |   # Copy depcomp to subdir because otherwise we won't find it if we're | 
 | 25511 |   # using a relative directory. | 
 | 25512 |   cp "$am_depcomp" conftest.dir | 
 | 25513 |   cd conftest.dir | 
 | 25514 |   # We will build objects and dependencies in a subdirectory because | 
 | 25515 |   # it helps to detect inapplicable dependency modes.  For instance | 
 | 25516 |   # both Tru64's cc and ICC support -MD to output dependencies as a | 
 | 25517 |   # side effect of compilation, but ICC will put the dependencies in | 
 | 25518 |   # the current directory while Tru64 will put them in the object | 
 | 25519 |   # directory. | 
 | 25520 |   mkdir sub | 
 | 25521 |  | 
 | 25522 |   am_cv_CXX_dependencies_compiler_type=none | 
 | 25523 |   if test "$am_compiler_list" = ""; then | 
 | 25524 |      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
 | 25525 |   fi | 
 | 25526 |   am__universal=false | 
 | 25527 |   case " $depcc " in #( | 
 | 25528 |      *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
 | 25529 |      esac | 
 | 25530 |  | 
 | 25531 |   for depmode in $am_compiler_list; do | 
 | 25532 |     # Setup a source with many dependencies, because some compilers | 
 | 25533 |     # like to wrap large dependency lists on column 80 (with \), and | 
 | 25534 |     # we should not choose a depcomp mode which is confused by this. | 
 | 25535 |     # | 
 | 25536 |     # We need to recreate these files for each test, as the compiler may | 
 | 25537 |     # overwrite some of them when testing with obscure command lines. | 
 | 25538 |     # This happens at least with the AIX C compiler. | 
 | 25539 |     : > sub/conftest.c | 
 | 25540 |     for i in 1 2 3 4 5 6; do | 
 | 25541 |       echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
 | 25542 |       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
 | 25543 |       # Solaris 8's {/usr,}/bin/sh. | 
 | 25544 |       touch sub/conftst$i.h | 
 | 25545 |     done | 
 | 25546 |     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
 | 25547 |  | 
 | 25548 |     # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
 | 25549 |     # mode.  It turns out that the SunPro C++ compiler does not properly | 
 | 25550 |     # handle `-M -o', and we need to detect this.  Also, some Intel | 
 | 25551 |     # versions had trouble with output in subdirs | 
 | 25552 |     am__obj=sub/conftest.${OBJEXT-o} | 
 | 25553 |     am__minus_obj="-o $am__obj" | 
 | 25554 |     case $depmode in | 
 | 25555 |     gcc) | 
 | 25556 |       # This depmode causes a compiler race in universal mode. | 
 | 25557 |       test "$am__universal" = false || continue | 
 | 25558 |       ;; | 
 | 25559 |     nosideeffect) | 
 | 25560 |       # after this tag, mechanisms are not by side-effect, so they'll | 
 | 25561 |       # only be used when explicitly requested | 
 | 25562 |       if test "x$enable_dependency_tracking" = xyes; then | 
 | 25563 | 	continue | 
 | 25564 |       else | 
 | 25565 | 	break | 
 | 25566 |       fi | 
 | 25567 |       ;; | 
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 25568 |     msvc7 | msvc7msys | msvisualcpp | msvcmsys) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25569 |       # This compiler won't grok `-c -o', but also, the minuso test has | 
 | 25570 |       # not run yet.  These depmodes are late enough in the game, and | 
 | 25571 |       # so weak that their functioning should not be impacted. | 
 | 25572 |       am__obj=conftest.${OBJEXT-o} | 
 | 25573 |       am__minus_obj= | 
 | 25574 |       ;; | 
 | 25575 |     none) break ;; | 
 | 25576 |     esac | 
 | 25577 |     if depmode=$depmode \ | 
 | 25578 |        source=sub/conftest.c object=$am__obj \ | 
 | 25579 |        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
 | 25580 |        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
 | 25581 |          >/dev/null 2>conftest.err && | 
 | 25582 |        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 25583 |        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
 | 25584 |        grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
 | 25585 |        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
 | 25586 |       # icc doesn't choke on unknown options, it will just issue warnings | 
 | 25587 |       # or remarks (even with -Werror).  So we grep stderr for any message | 
 | 25588 |       # that says an option was ignored or not supported. | 
 | 25589 |       # When given -MP, icc 7.0 and 7.1 complain thusly: | 
 | 25590 |       #   icc: Command line warning: ignoring option '-M'; no argument required | 
 | 25591 |       # The diagnosis changed in icc 8.0: | 
 | 25592 |       #   icc: Command line remark: option '-MP' not supported | 
 | 25593 |       if (grep 'ignoring option' conftest.err || | 
 | 25594 |           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
 | 25595 |         am_cv_CXX_dependencies_compiler_type=$depmode | 
 | 25596 |         break | 
 | 25597 |       fi | 
 | 25598 |     fi | 
 | 25599 |   done | 
 | 25600 |  | 
 | 25601 |   cd .. | 
 | 25602 |   rm -rf conftest.dir | 
 | 25603 | else | 
 | 25604 |   am_cv_CXX_dependencies_compiler_type=none | 
 | 25605 | fi | 
 | 25606 |  | 
 | 25607 | fi | 
 | 25608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
 | 25609 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
 | 25610 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
 | 25611 |  | 
 | 25612 |  if | 
 | 25613 |   test "x$enable_dependency_tracking" != xno \ | 
 | 25614 |   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
 | 25615 |   am__fastdepCXX_TRUE= | 
 | 25616 |   am__fastdepCXX_FALSE='#' | 
 | 25617 | else | 
 | 25618 |   am__fastdepCXX_TRUE='#' | 
 | 25619 |   am__fastdepCXX_FALSE= | 
 | 25620 | fi | 
 | 25621 |  | 
 | 25622 |  | 
 | 25623 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 | 
 | 25624 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25625 | if ${ax_cv_cxx_bool+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25626 |   $as_echo_n "(cached) " >&6 | 
 | 25627 | else | 
 | 25628 |  | 
 | 25629 |  ac_ext=cpp | 
 | 25630 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25634 |  | 
 | 25635 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25636 | /* end confdefs.h.  */ | 
 | 25637 |  | 
 | 25638 | int f(int  x){return 1;} | 
 | 25639 | int f(char x){return 1;} | 
 | 25640 | int f(bool x){return 1;} | 
 | 25641 |  | 
 | 25642 | int | 
 | 25643 | main () | 
 | 25644 | { | 
 | 25645 | bool b = true; return f(b); | 
 | 25646 |   ; | 
 | 25647 |   return 0; | 
 | 25648 | } | 
 | 25649 | _ACEOF | 
 | 25650 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 25651 |   ax_cv_cxx_bool=yes | 
 | 25652 | else | 
 | 25653 |   ax_cv_cxx_bool=no | 
 | 25654 | fi | 
 | 25655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25656 |  ac_ext=cpp | 
 | 25657 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25658 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25659 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25660 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25661 |  | 
 | 25662 |  | 
 | 25663 | fi | 
 | 25664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 | 
 | 25665 | $as_echo "$ax_cv_cxx_bool" >&6; } | 
 | 25666 | if test "$ax_cv_cxx_bool" = yes; then | 
 | 25667 |  | 
 | 25668 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h | 
 | 25669 |  | 
 | 25670 | fi | 
 | 25671 |  | 
 | 25672 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 | 
 | 25673 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25674 | if ${ax_cv_cxx_namespaces+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25675 |   $as_echo_n "(cached) " >&6 | 
 | 25676 | else | 
 | 25677 |  | 
 | 25678 |  ac_ext=cpp | 
 | 25679 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25683 |  | 
 | 25684 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25685 | /* end confdefs.h.  */ | 
 | 25686 | namespace Outer { namespace Inner { int i = 0; }} | 
 | 25687 | int | 
 | 25688 | main () | 
 | 25689 | { | 
 | 25690 | using namespace Outer::Inner; return i; | 
 | 25691 |   ; | 
 | 25692 |   return 0; | 
 | 25693 | } | 
 | 25694 | _ACEOF | 
 | 25695 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 25696 |   ax_cv_cxx_namespaces=yes | 
 | 25697 | else | 
 | 25698 |   ax_cv_cxx_namespaces=no | 
 | 25699 | fi | 
 | 25700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25701 |  ac_ext=cpp | 
 | 25702 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25706 |  | 
 | 25707 |  | 
 | 25708 | fi | 
 | 25709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 | 
 | 25710 | $as_echo "$ax_cv_cxx_namespaces" >&6; } | 
 | 25711 | if test "$ax_cv_cxx_namespaces" = yes; then | 
 | 25712 |  | 
 | 25713 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h | 
 | 25714 |  | 
 | 25715 | fi | 
 | 25716 |  | 
 | 25717 |  | 
 | 25718 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 | 
 | 25719 | $as_echo_n "checking if g++ supports namespace std... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25720 | if ${ax_cv_cxx_have_std_namespace+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25721 |   $as_echo_n "(cached) " >&6 | 
 | 25722 | else | 
 | 25723 |  | 
 | 25724 |   ac_ext=cpp | 
 | 25725 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25729 |  | 
 | 25730 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25731 | /* end confdefs.h.  */ | 
 | 25732 | #include <iostream> | 
 | 25733 |                   std::istream& is = std::cin; | 
 | 25734 | int | 
 | 25735 | main () | 
 | 25736 | { | 
 | 25737 |  | 
 | 25738 |   ; | 
 | 25739 |   return 0; | 
 | 25740 | } | 
 | 25741 | _ACEOF | 
 | 25742 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 25743 |   ax_cv_cxx_have_std_namespace=yes | 
 | 25744 | else | 
 | 25745 |   ax_cv_cxx_have_std_namespace=no | 
 | 25746 | fi | 
 | 25747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25748 |   ac_ext=cpp | 
 | 25749 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25753 |  | 
 | 25754 |  | 
 | 25755 | fi | 
 | 25756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 | 
 | 25757 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } | 
 | 25758 |   if test "$ax_cv_cxx_have_std_namespace" = yes; then | 
 | 25759 |  | 
 | 25760 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h | 
 | 25761 |  | 
 | 25762 |   fi | 
 | 25763 |  | 
 | 25764 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 | 
 | 25765 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25766 | if ${ac_cv_cxx_have_std_libs+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25767 |   $as_echo_n "(cached) " >&6 | 
 | 25768 | else | 
 | 25769 |  | 
 | 25770 |  | 
 | 25771 |  ac_ext=cpp | 
 | 25772 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25776 |  | 
 | 25777 |  cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25778 | /* end confdefs.h.  */ | 
 | 25779 | #include <iostream> | 
 | 25780 | #include <map> | 
 | 25781 | #include <iomanip> | 
 | 25782 | #include <cmath> | 
 | 25783 | #ifdef HAVE_NAMESPACES | 
 | 25784 | using namespace std; | 
 | 25785 | #endif | 
 | 25786 | int | 
 | 25787 | main () | 
 | 25788 | { | 
 | 25789 | return 0; | 
 | 25790 |   ; | 
 | 25791 |   return 0; | 
 | 25792 | } | 
 | 25793 | _ACEOF | 
 | 25794 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
 | 25795 |   ac_cv_cxx_have_std_libs=yes | 
 | 25796 | else | 
 | 25797 |   ac_cv_cxx_have_std_libs=no | 
 | 25798 | fi | 
 | 25799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 25800 |  ac_ext=cpp | 
 | 25801 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 25802 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25803 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25804 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 25805 |  | 
 | 25806 |  | 
 | 25807 | fi | 
 | 25808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 | 
 | 25809 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } | 
 | 25810 | if test "$ac_cv_cxx_have_std_libs" = yes; then | 
 | 25811 |  | 
 | 25812 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h | 
 | 25813 |  | 
 | 25814 | fi | 
 | 25815 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25816 |  | 
 | 25817 |   OPENMP_CXXFLAGS= | 
 | 25818 |   # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25819 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25820 |   enableval=$enable_openmp; | 
 | 25821 | fi | 
 | 25822 |  | 
 | 25823 |   if test "$enable_openmp" != no; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25824 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 | 
 | 25825 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25826 | if ${ac_cv_prog_cxx_openmp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25827 |   $as_echo_n "(cached) " >&6 | 
 | 25828 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25829 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25830 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25831 |  | 
 | 25832 | #ifndef _OPENMP | 
 | 25833 |  choke me | 
 | 25834 | #endif | 
 | 25835 | #include <omp.h> | 
 | 25836 | int main () { return omp_get_num_threads (); } | 
 | 25837 |  | 
 | 25838 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25839 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25840 |   ac_cv_prog_cxx_openmp='none needed' | 
 | 25841 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25842 |   ac_cv_prog_cxx_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25843 | 	  	  	  	  	  	  	  	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
 | 25844 | 	    ac_save_CXXFLAGS=$CXXFLAGS | 
 | 25845 | 	    CXXFLAGS="$CXXFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25846 | 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 25847 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25848 |  | 
 | 25849 | #ifndef _OPENMP | 
 | 25850 |  choke me | 
 | 25851 | #endif | 
 | 25852 | #include <omp.h> | 
 | 25853 | int main () { return omp_get_num_threads (); } | 
 | 25854 |  | 
 | 25855 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25856 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25857 |   ac_cv_prog_cxx_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25858 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25859 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 25860 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25861 | 	    CXXFLAGS=$ac_save_CXXFLAGS | 
 | 25862 | 	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then | 
 | 25863 | 	      break | 
 | 25864 | 	    fi | 
 | 25865 | 	  done | 
 | 25866 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25867 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 25868 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25869 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25870 | { $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] | 25871 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } | 
 | 25872 |     case $ac_cv_prog_cxx_openmp in #( | 
 | 25873 |       "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25874 | 	;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25875 |       *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25876 | 	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25877 |     esac | 
 | 25878 |   fi | 
 | 25879 |  | 
 | 25880 |  | 
 | 25881 |     ac_ext=c | 
 | 25882 | ac_cpp='$CPP $CPPFLAGS' | 
 | 25883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 25884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 25885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 25886 |  | 
 | 25887 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25888 |     { $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] | 25889 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } | 
 | 25890 |     if \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25891 |         test $ax_cv_cxx_bool = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25892 |         test $ax_cv_cxx_namespaces = 'yes' && \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25893 |         test $ac_cv_cxx_have_std_libs = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25894 |         test $ax_cv_cxx_have_std_namespace = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25895 |         have_magick_plus_plus='yes' | 
 | 25896 |     else | 
 | 25897 |         have_magick_plus_plus='no (failed tests)' | 
 | 25898 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 25899 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5 | 
 | 25900 | $as_echo "$as_me: $have_magick_plus_plus" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25901 |     LIBS="$OLIBS" | 
 | 25902 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25903 |  if test "$have_magick_plus_plus" = 'yes'; then | 
 | 25904 |   WITH_MAGICK_PLUS_PLUS_TRUE= | 
 | 25905 |   WITH_MAGICK_PLUS_PLUS_FALSE='#' | 
 | 25906 | else | 
 | 25907 |   WITH_MAGICK_PLUS_PLUS_TRUE='#' | 
 | 25908 |   WITH_MAGICK_PLUS_PLUS_FALSE= | 
 | 25909 | fi | 
 | 25910 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25911 |  | 
 | 25912 | # Only check for delegate libraries in subdirectories if requested. | 
 | 25913 | if test "$enable_delegate_build" != 'no'; then | 
 | 25914 |     # Check for delegate sub-directories and add -I & -L options as required. | 
 | 25915 |     # This presumes that delegates are installed as detailed in the ImageMagick | 
 | 25916 |     # README. If delegates are installed in a standard location where the | 
 | 25917 |     # compiler will automatically find them then these options should not be | 
 | 25918 |     # required. | 
 | 25919 |  | 
 | 25920 |     # | 
 | 25921 |     # Most delegates have includes in the same directory as the library, but not all... | 
 | 25922 |     # | 
 | 25923 |     # Includes | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 25924 |     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25925 |         if test -d "$builddir/$dir"; then | 
 | 25926 |             CPPFLAGS="$CPPFLAGS -I$builddir/$dir" | 
 | 25927 |         else | 
 | 25928 |             if test -d "$srcdirfull/$dir"; then | 
 | 25929 |                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" | 
 | 25930 |             fi | 
 | 25931 |         fi | 
 | 25932 |     done | 
 | 25933 |  | 
 | 25934 |     # Libraries | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 25935 |     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25936 |     if test -d "$builddir/$dir/.libs"; then | 
 | 25937 |         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" | 
 | 25938 |     else | 
 | 25939 |         if test -d "$srcdirfull/$dir/.libs"; then | 
 | 25940 |             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" | 
 | 25941 |         fi | 
 | 25942 |     fi | 
 | 25943 |     if test -d "$builddir/$dir"; then | 
 | 25944 |         LDFLAGS="$LDFLAGS -L$builddir/$dir" | 
 | 25945 |     else | 
 | 25946 |         if test -d "$srcdirfull/$dir"; then | 
 | 25947 |             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" | 
 | 25948 |         fi | 
 | 25949 |     fi | 
 | 25950 |   done | 
 | 25951 | fi | 
 | 25952 |  | 
 | 25953 | # Assume that delegate headers reside under same directory as ImageMagick | 
 | 25954 | # installation prefix. | 
 | 25955 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" | 
 | 25956 |  | 
 | 25957 | # | 
 | 25958 | # Find the X11 RGB database | 
 | 25959 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25961 | $as_echo_n "checking for X11 configure files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25962 | if ${im_cv_x_configure+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25963 |   $as_echo_n "(cached) " >&6 | 
 | 25964 | else | 
 | 25965 |   # Look for the header file in a standard set of common directories. | 
 | 25966 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
 | 25967 |     for ac_dir in          \ | 
 | 25968 |     /lib/usr/lib/X11       \ | 
 | 25969 |     /usr/X11/lib           \ | 
 | 25970 |     /usr/X11R4/lib         \ | 
 | 25971 |     /usr/X11R5/lib         \ | 
 | 25972 |     /usr/X11R6/lib         \ | 
 | 25973 |     /usr/X11R7/lib         \ | 
 | 25974 |     /usr/X386/lib          \ | 
 | 25975 |     /usr/XFree86/lib/X11   \ | 
 | 25976 |     /usr/athena/lib        \ | 
 | 25977 |     /usr/lib               \ | 
 | 25978 |     /usr/lib/X11           \ | 
 | 25979 |     /usr/lib/X11R4         \ | 
 | 25980 |     /usr/lib/X11R5         \ | 
 | 25981 |     /usr/lib/X11R6         \ | 
 | 25982 |     /usr/lib/X11R7         \ | 
 | 25983 |     /usr/local/X11/lib     \ | 
 | 25984 |     /usr/local/X11R4/lib   \ | 
 | 25985 |     /usr/local/X11R5/lib   \ | 
 | 25986 |     /usr/local/X11R6/lib   \ | 
 | 25987 |     /usr/local/lib         \ | 
 | 25988 |     /usr/local/lib/X11     \ | 
 | 25989 |     /usr/local/lib/X11R4   \ | 
 | 25990 |     /usr/local/lib/X11R5   \ | 
 | 25991 |     /usr/local/lib/X11R6   \ | 
 | 25992 |     /usr/local/lib/X11R7   \ | 
 | 25993 |     /usr/local/x11r5/lib   \ | 
 | 25994 |     /usr/lpp/Xamples/lib   \ | 
 | 25995 |     /usr/openwin/lib       \ | 
 | 25996 |     /usr/openwin/share/lib \ | 
 | 25997 |     /usr/unsupported/lib   \ | 
 | 25998 |     /usr/x386/lib          \ | 
 | 25999 |     ; do | 
 | 26000 |     if test -f "$ac_dir/X11/rgb.txt"; then | 
 | 26001 |       im_cv_x_configure="$ac_dir/X11/" | 
 | 26002 |       break | 
 | 26003 |     elif test -f "$ac_dir/rgb.txt"; then | 
 | 26004 |       im_cv_x_configure="$ac_dir/" | 
 | 26005 |       break | 
 | 26006 |     fi | 
 | 26007 |  | 
 | 26008 |   done | 
 | 26009 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26011 | $as_echo "$im_cv_x_configure" >&6; } | 
 | 26012 | X11_CONFIGURE_PATH="$im_cv_x_configure" | 
 | 26013 | case "${build_os}" in | 
 | 26014 |   mingw* ) | 
 | 26015 |     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` | 
 | 26016 |   ;; | 
 | 26017 | esac | 
 | 26018 |  | 
 | 26019 | cat >>confdefs.h <<_ACEOF | 
 | 26020 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" | 
 | 26021 | _ACEOF | 
 | 26022 |  | 
 | 26023 |  | 
 | 26024 | # | 
 | 26025 | # Find OpenMP library | 
 | 26026 | # | 
 | 26027 | GOMP_LIBS='' | 
 | 26028 | if test "$enable_openmp" != 'no'; then | 
 | 26029 |   if test "${GCC}" = "yes"; then | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26030 |     # Open64 (passes for GCC but uses different OpenMP implementation) | 
 | 26031 |     if test "x$GOMP_LIBS" = x ; then | 
 | 26032 |       if $CC --version 2>&1 | grep Open64 > /dev/null ; then | 
 | 26033 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 | 
 | 26034 | $as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } | 
 | 26035 | if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : | 
 | 26036 |   $as_echo_n "(cached) " >&6 | 
 | 26037 | else | 
 | 26038 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26039 | LIBS="-lopenmp  $LIBS" | 
 | 26040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 26041 | /* end confdefs.h.  */ | 
 | 26042 |  | 
 | 26043 | /* Override any GCC internal prototype to avoid an error. | 
 | 26044 |    Use char because int might match the return type of a GCC | 
 | 26045 |    builtin and then its argument prototype would still apply.  */ | 
 | 26046 | #ifdef __cplusplus | 
 | 26047 | extern "C" | 
 | 26048 | #endif | 
 | 26049 | char omp_get_num_procs (); | 
 | 26050 | int | 
 | 26051 | main () | 
 | 26052 | { | 
 | 26053 | return omp_get_num_procs (); | 
 | 26054 |   ; | 
 | 26055 |   return 0; | 
 | 26056 | } | 
 | 26057 | _ACEOF | 
 | 26058 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 26059 |   ac_cv_lib_openmp_omp_get_num_procs=yes | 
 | 26060 | else | 
 | 26061 |   ac_cv_lib_openmp_omp_get_num_procs=no | 
 | 26062 | fi | 
 | 26063 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26064 |     conftest$ac_exeext conftest.$ac_ext | 
 | 26065 | LIBS=$ac_check_lib_save_LIBS | 
 | 26066 | fi | 
 | 26067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 | 
 | 26068 | $as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } | 
 | 26069 | if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : | 
 | 26070 |   GOMP_LIBS="-lopenmp" | 
 | 26071 | fi | 
 | 26072 |  | 
 | 26073 |       fi | 
 | 26074 |     fi | 
 | 26075 |     # GCC | 
 | 26076 |     if test "x$GOMP_LIBS" = x ; then | 
 | 26077 |       { $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] | 26078 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26079 | if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26080 |   $as_echo_n "(cached) " >&6 | 
 | 26081 | else | 
 | 26082 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26083 | LIBS="-lgomp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26085 | /* end confdefs.h.  */ | 
 | 26086 |  | 
 | 26087 | /* Override any GCC internal prototype to avoid an error. | 
 | 26088 |    Use char because int might match the return type of a GCC | 
 | 26089 |    builtin and then its argument prototype would still apply.  */ | 
 | 26090 | #ifdef __cplusplus | 
 | 26091 | extern "C" | 
 | 26092 | #endif | 
 | 26093 | char GOMP_parallel_start (); | 
 | 26094 | int | 
 | 26095 | main () | 
 | 26096 | { | 
 | 26097 | return GOMP_parallel_start (); | 
 | 26098 |   ; | 
 | 26099 |   return 0; | 
 | 26100 | } | 
 | 26101 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26102 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26103 |   ac_cv_lib_gomp_GOMP_parallel_start=yes | 
 | 26104 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26105 |   ac_cv_lib_gomp_GOMP_parallel_start=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26106 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26107 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26108 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26109 | LIBS=$ac_check_lib_save_LIBS | 
 | 26110 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26111 | { $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] | 26112 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26113 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26114 |   GOMP_LIBS="-lgomp" | 
 | 26115 | fi | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26116 |  | 
 | 26117 |     fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26118 |   else | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26119 |     # Sun CC | 
 | 26120 |     if test "x$GOMP_LIBS" = x ; then | 
 | 26121 |       { $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] | 26122 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26123 | if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26124 |   $as_echo_n "(cached) " >&6 | 
 | 26125 | else | 
 | 26126 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26127 | LIBS="-lmtsk  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26129 | /* end confdefs.h.  */ | 
 | 26130 |  | 
 | 26131 | /* Override any GCC internal prototype to avoid an error. | 
 | 26132 |    Use char because int might match the return type of a GCC | 
 | 26133 |    builtin and then its argument prototype would still apply.  */ | 
 | 26134 | #ifdef __cplusplus | 
 | 26135 | extern "C" | 
 | 26136 | #endif | 
 | 26137 | char sunw_mp_register_warn (); | 
 | 26138 | int | 
 | 26139 | main () | 
 | 26140 | { | 
 | 26141 | return sunw_mp_register_warn (); | 
 | 26142 |   ; | 
 | 26143 |   return 0; | 
 | 26144 | } | 
 | 26145 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26146 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26147 |   ac_cv_lib_mtsk_sunw_mp_register_warn=yes | 
 | 26148 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26149 |   ac_cv_lib_mtsk_sunw_mp_register_warn=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26150 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26151 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26152 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26153 | LIBS=$ac_check_lib_save_LIBS | 
 | 26154 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26155 | { $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] | 26156 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26157 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26158 |   GOMP_LIBS="-lmtsk" | 
 | 26159 | fi | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26160 |  | 
 | 26161 |     fi | 
 | 26162 |     # AIX xlc | 
 | 26163 |     if test "x$GOMP_LIBS" = x ; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26164 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26165 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26166 | if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26167 |   $as_echo_n "(cached) " >&6 | 
 | 26168 | else | 
 | 26169 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26170 | LIBS="-lxlsmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26172 | /* end confdefs.h.  */ | 
 | 26173 |  | 
 | 26174 | /* Override any GCC internal prototype to avoid an error. | 
 | 26175 |    Use char because int might match the return type of a GCC | 
 | 26176 |    builtin and then its argument prototype would still apply.  */ | 
 | 26177 | #ifdef __cplusplus | 
 | 26178 | extern "C" | 
 | 26179 | #endif | 
 | 26180 | char _xlsmpFlush (); | 
 | 26181 | int | 
 | 26182 | main () | 
 | 26183 | { | 
 | 26184 | return _xlsmpFlush (); | 
 | 26185 |   ; | 
 | 26186 |   return 0; | 
 | 26187 | } | 
 | 26188 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26189 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26190 |   ac_cv_lib_xlsmp__xlsmpFlush=yes | 
 | 26191 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26192 |   ac_cv_lib_xlsmp__xlsmpFlush=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26193 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26194 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26195 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26196 | LIBS=$ac_check_lib_save_LIBS | 
 | 26197 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26198 | { $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] | 26199 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26200 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26201 |   GOMP_LIBS="-lxlsmp" | 
 | 26202 | fi | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26203 |  | 
 | 26204 |     fi | 
 | 26205 |     # SGI IRIX 6.5 MIPSpro C/C++ | 
 | 26206 |     if test "x$GOMP_LIBS" = x ; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26207 |     { $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] | 26208 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26209 | if ${ac_cv_lib_mp_mp_destroy+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26210 |   $as_echo_n "(cached) " >&6 | 
 | 26211 | else | 
 | 26212 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26213 | LIBS="-lmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26215 | /* end confdefs.h.  */ | 
 | 26216 |  | 
 | 26217 | /* Override any GCC internal prototype to avoid an error. | 
 | 26218 |    Use char because int might match the return type of a GCC | 
 | 26219 |    builtin and then its argument prototype would still apply.  */ | 
 | 26220 | #ifdef __cplusplus | 
 | 26221 | extern "C" | 
 | 26222 | #endif | 
 | 26223 | char mp_destroy (); | 
 | 26224 | int | 
 | 26225 | main () | 
 | 26226 | { | 
 | 26227 | return mp_destroy (); | 
 | 26228 |   ; | 
 | 26229 |   return 0; | 
 | 26230 | } | 
 | 26231 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26232 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26233 |   ac_cv_lib_mp_mp_destroy=yes | 
 | 26234 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26235 |   ac_cv_lib_mp_mp_destroy=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26236 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26237 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26238 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26239 | LIBS=$ac_check_lib_save_LIBS | 
 | 26240 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26241 | { $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] | 26242 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26243 | if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26244 |   GOMP_LIBS="-lmp" | 
 | 26245 | fi | 
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26246 |  | 
 | 26247 |     fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26248 |   fi | 
 | 26249 |   LIBS="$GOMP_LIBS $LIBS" | 
 | 26250 | fi | 
 | 26251 |  | 
 | 26252 |  | 
 | 26253 | # | 
 | 26254 | # Find Posix threads library | 
 | 26255 | # | 
 | 26256 | THREAD_LIBS='' | 
 | 26257 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then | 
 | 26258 |  | 
 | 26259 |     if test "x$PTHREAD_LIBS" = "x"; then | 
 | 26260 |     case "${host_cpu}-${host_os}" in | 
 | 26261 |       *-freebsd*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26262 |  | 
 | 26263 |  | 
 | 26264 |  | 
 | 26265 | ac_ext=c | 
 | 26266 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26270 |  | 
 | 26271 | magick_pthread_lib_ok=no | 
 | 26272 |  | 
 | 26273 | LIB=-lc_r | 
 | 26274 | save_LIBS="$LIBS" | 
 | 26275 | LIBS="$LIBS $LIB" | 
 | 26276 |  | 
 | 26277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
 | 26278 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
 | 26279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 26280 | /* end confdefs.h.  */ | 
 | 26281 | #include <pthread.h> | 
 | 26282 | int | 
 | 26283 | main () | 
 | 26284 | { | 
 | 26285 |   pthread_t th; | 
 | 26286 |   pthread_join(th, 0); | 
 | 26287 |   pthread_attr_init(0); | 
 | 26288 |   pthread_cleanup_push(0, 0); | 
 | 26289 |   pthread_create(0,0,0,0); | 
 | 26290 |   pthread_cleanup_pop(0); | 
 | 26291 |   ; | 
 | 26292 |   return 0; | 
 | 26293 | } | 
 | 26294 | _ACEOF | 
 | 26295 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 26296 |   magick_pthread_lib_ok=yes | 
 | 26297 | fi | 
 | 26298 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26299 |     conftest$ac_exeext conftest.$ac_ext | 
 | 26300 |  | 
 | 26301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
 | 26302 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
 | 26303 | if test "$magick_pthread_lib_ok" = yes | 
 | 26304 | then | 
 | 26305 |   PTHREAD_LIBS=-lc_r | 
 | 26306 |   : | 
 | 26307 | else | 
 | 26308 |  | 
 | 26309 |   : | 
 | 26310 | fi | 
 | 26311 |  | 
 | 26312 | LIBS="$save_LIBS" | 
 | 26313 |  | 
 | 26314 | ac_ext=c | 
 | 26315 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26319 |  | 
 | 26320 |  ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26321 |     esac | 
 | 26322 |     fi | 
 | 26323 |  | 
 | 26324 |     for lib in pthread pthreads; do | 
 | 26325 |         if test "x$PTHREAD_LIBS" = "x"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26326 |  | 
 | 26327 |  | 
 | 26328 |  | 
 | 26329 | ac_ext=c | 
 | 26330 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26334 |  | 
 | 26335 | magick_pthread_lib_ok=no | 
 | 26336 |  | 
 | 26337 | LIB=-l$lib | 
 | 26338 | save_LIBS="$LIBS" | 
 | 26339 | LIBS="$LIBS $LIB" | 
 | 26340 |  | 
 | 26341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
 | 26342 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
 | 26343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 26344 | /* end confdefs.h.  */ | 
 | 26345 | #include <pthread.h> | 
 | 26346 | int | 
 | 26347 | main () | 
 | 26348 | { | 
 | 26349 |   pthread_t th; | 
 | 26350 |   pthread_join(th, 0); | 
 | 26351 |   pthread_attr_init(0); | 
 | 26352 |   pthread_cleanup_push(0, 0); | 
 | 26353 |   pthread_create(0,0,0,0); | 
 | 26354 |   pthread_cleanup_pop(0); | 
 | 26355 |   ; | 
 | 26356 |   return 0; | 
 | 26357 | } | 
 | 26358 | _ACEOF | 
 | 26359 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 26360 |   magick_pthread_lib_ok=yes | 
 | 26361 | fi | 
 | 26362 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26363 |     conftest$ac_exeext conftest.$ac_ext | 
 | 26364 |  | 
 | 26365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
 | 26366 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
 | 26367 | if test "$magick_pthread_lib_ok" = yes | 
 | 26368 | then | 
 | 26369 |   PTHREAD_LIBS=-l$lib | 
 | 26370 |   : | 
 | 26371 | else | 
 | 26372 |  | 
 | 26373 |   : | 
 | 26374 | fi | 
 | 26375 |  | 
 | 26376 | LIBS="$save_LIBS" | 
 | 26377 |  | 
 | 26378 | ac_ext=c | 
 | 26379 | ac_cpp='$CPP $CPPFLAGS' | 
 | 26380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 26381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 26382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 26383 |  | 
 | 26384 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26385 |         fi | 
 | 26386 |     done | 
 | 26387 |  | 
 | 26388 |     THREAD_LIBS="$PTHREAD_LIBS" | 
 | 26389 |     LIBS="$LIBS $THREAD_LIBS" | 
 | 26390 | fi | 
 | 26391 |  | 
 | 26392 |  | 
 | 26393 | # | 
 | 26394 | # Check for umem. | 
 | 26395 | # | 
 | 26396 | have_umem='no' | 
 | 26397 | UMEM_LIBS='' | 
 | 26398 | if test "$with_umem" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26399 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26400 | $as_echo_n "checking for UMEM support ... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26401 |   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 26402 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26403 |   failed=0 | 
 | 26404 |   passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26405 |   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26406 | if test "x$ac_cv_header_umem_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26407 |   passed=`expr $passed + 1` | 
 | 26408 | else | 
 | 26409 |   failed=`expr $failed + 1` | 
 | 26410 | fi | 
 | 26411 |  | 
 | 26412 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26413 |   { $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] | 26414 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26415 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26416 |   $as_echo_n "(cached) " >&6 | 
 | 26417 | else | 
 | 26418 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26419 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26421 | /* end confdefs.h.  */ | 
 | 26422 |  | 
 | 26423 | /* Override any GCC internal prototype to avoid an error. | 
 | 26424 |    Use char because int might match the return type of a GCC | 
 | 26425 |    builtin and then its argument prototype would still apply.  */ | 
 | 26426 | #ifdef __cplusplus | 
 | 26427 | extern "C" | 
 | 26428 | #endif | 
 | 26429 | char umem_alloc (); | 
 | 26430 | int | 
 | 26431 | main () | 
 | 26432 | { | 
 | 26433 | return umem_alloc (); | 
 | 26434 |   ; | 
 | 26435 |   return 0; | 
 | 26436 | } | 
 | 26437 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26438 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26439 |   ac_cv_lib_umem_umem_alloc=yes | 
 | 26440 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26441 |   ac_cv_lib_umem_umem_alloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26442 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26443 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26444 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26445 | LIBS=$ac_check_lib_save_LIBS | 
 | 26446 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26447 | { $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] | 26448 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26449 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26450 |   passed=`expr $passed + 1` | 
 | 26451 | else | 
 | 26452 |   failed=`expr $failed + 1` | 
 | 26453 | fi | 
 | 26454 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26455 |   { $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] | 26456 | $as_echo_n "checking for umem_free in -lumem... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26457 | if ${ac_cv_lib_umem_umem_free+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26458 |   $as_echo_n "(cached) " >&6 | 
 | 26459 | else | 
 | 26460 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26461 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26463 | /* end confdefs.h.  */ | 
 | 26464 |  | 
 | 26465 | /* Override any GCC internal prototype to avoid an error. | 
 | 26466 |    Use char because int might match the return type of a GCC | 
 | 26467 |    builtin and then its argument prototype would still apply.  */ | 
 | 26468 | #ifdef __cplusplus | 
 | 26469 | extern "C" | 
 | 26470 | #endif | 
 | 26471 | char umem_free (); | 
 | 26472 | int | 
 | 26473 | main () | 
 | 26474 | { | 
 | 26475 | return umem_free (); | 
 | 26476 |   ; | 
 | 26477 |   return 0; | 
 | 26478 | } | 
 | 26479 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26480 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26481 |   ac_cv_lib_umem_umem_free=yes | 
 | 26482 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26483 |   ac_cv_lib_umem_umem_free=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26484 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26485 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26486 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26487 | LIBS=$ac_check_lib_save_LIBS | 
 | 26488 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26489 | { $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] | 26490 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26491 | if test "x$ac_cv_lib_umem_umem_free" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26492 |   passed=`expr $passed + 1` | 
 | 26493 | else | 
 | 26494 |   failed=`expr $failed + 1` | 
 | 26495 | fi | 
 | 26496 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26497 |   { $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] | 26498 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } | 
 | 26499 |   if test $passed -gt 0; then | 
 | 26500 |     if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26501 |       { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 26502 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26503 |       have_umem='no (failed tests)' | 
 | 26504 |     else | 
 | 26505 |       UMEM_LIBS='-lumem' | 
 | 26506 |       LIBS="$UMEM_LIBS $LIBS" | 
 | 26507 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26508 | $as_echo "#define HasUMEM 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26509 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26510 |       { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 26511 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26512 |       have_umem='yes' | 
 | 26513 |     fi | 
 | 26514 |   else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26515 |     { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 26516 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26517 |   fi | 
 | 26518 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26519 |  if test "$have_umem" = 'yes'; then | 
 | 26520 |   HasUMEM_TRUE= | 
 | 26521 |   HasUMEM_FALSE='#' | 
 | 26522 | else | 
 | 26523 |   HasUMEM_TRUE='#' | 
 | 26524 |   HasUMEM_FALSE= | 
 | 26525 | fi | 
 | 26526 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26527 |  | 
 | 26528 |  | 
 | 26529 | # | 
 | 26530 | # Add support for ccmalloc memory debugging library if requested | 
 | 26531 | # | 
 | 26532 | have_ccmalloc='no' | 
 | 26533 | CCMALLOC_LIBS='' | 
 | 26534 | if test "$enable_ccmalloc" = 'yes'; then | 
 | 26535 |     # Extract the first word of "ccmalloc", so it can be a program name with args. | 
 | 26536 | set dummy ccmalloc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26538 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26539 | if ${ac_cv_path_CCMALLOCDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26540 |   $as_echo_n "(cached) " >&6 | 
 | 26541 | else | 
 | 26542 |   case $CCMALLOCDelegate in | 
 | 26543 |   [\\/]* | ?:[\\/]*) | 
 | 26544 |   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. | 
 | 26545 |   ;; | 
 | 26546 |   *) | 
 | 26547 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 26548 | for as_dir in $PATH | 
 | 26549 | do | 
 | 26550 |   IFS=$as_save_IFS | 
 | 26551 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26552 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26553 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 26554 |     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26555 |     $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] | 26556 |     break 2 | 
 | 26557 |   fi | 
 | 26558 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26559 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26560 | IFS=$as_save_IFS | 
 | 26561 |  | 
 | 26562 |   ;; | 
 | 26563 | esac | 
 | 26564 | fi | 
 | 26565 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate | 
 | 26566 | if test -n "$CCMALLOCDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26567 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26568 | $as_echo "$CCMALLOCDelegate" >&6; } | 
 | 26569 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26570 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26571 | $as_echo "no" >&6; } | 
 | 26572 | fi | 
 | 26573 |  | 
 | 26574 |  | 
 | 26575 |     if test -n "$CCMALLOCDelegate"; then | 
 | 26576 |         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` | 
 | 26577 |         OLIBS="$LIBS" | 
 | 26578 |         # Assume that gcc is used with ccmalloc. | 
 | 26579 |         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26580 |        { $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] | 26581 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26582 | if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26583 |   $as_echo_n "(cached) " >&6 | 
 | 26584 | else | 
 | 26585 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26586 | LIBS="-lccmalloc -ldl $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26588 | /* end confdefs.h.  */ | 
 | 26589 |  | 
 | 26590 | /* Override any GCC internal prototype to avoid an error. | 
 | 26591 |    Use char because int might match the return type of a GCC | 
 | 26592 |    builtin and then its argument prototype would still apply.  */ | 
 | 26593 | #ifdef __cplusplus | 
 | 26594 | extern "C" | 
 | 26595 | #endif | 
 | 26596 | char ccmalloc_malloc (); | 
 | 26597 | int | 
 | 26598 | main () | 
 | 26599 | { | 
 | 26600 | return ccmalloc_malloc (); | 
 | 26601 |   ; | 
 | 26602 |   return 0; | 
 | 26603 | } | 
 | 26604 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26605 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26606 |   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes | 
 | 26607 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26608 |   ac_cv_lib_ccmalloc_ccmalloc_malloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26609 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26610 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26611 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26612 | LIBS=$ac_check_lib_save_LIBS | 
 | 26613 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26614 | { $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] | 26615 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26616 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26617 |   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" | 
 | 26618 | fi | 
 | 26619 |  | 
 | 26620 |         if test -n "$CCMALLOC_LIBS"; then | 
 | 26621 |             LIBS="$OLIBS" | 
 | 26622 |             LIBS="$LIBS $CCMALLOC_LIBS" | 
 | 26623 |             have_ccmalloc='yes' | 
 | 26624 |         else | 
 | 26625 |             LIBS="$OLIBS" | 
 | 26626 |         fi | 
 | 26627 |     fi | 
 | 26628 | fi | 
 | 26629 |  | 
 | 26630 | # | 
 | 26631 | # Add support for efence memory debugging library if requested | 
 | 26632 | # | 
 | 26633 | if test "$enable_efence" = 'yes'; then | 
 | 26634 |     EFENCE_LIBS='-lefence' | 
 | 26635 |     LIBS="$EFENCE_LIBS $LIBS" | 
 | 26636 | fi | 
 | 26637 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26638 |  | 
 | 26639 | # | 
 | 26640 | # Check for BZLIB | 
 | 26641 | # | 
 | 26642 |  | 
 | 26643 |  | 
 | 26644 | # Check whether --with-bzlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26645 | if test "${with_bzlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26646 |   withval=$with_bzlib; with_bzlib=$withval | 
 | 26647 | else | 
 | 26648 |   with_bzlib='yes' | 
 | 26649 | fi | 
 | 26650 |  | 
 | 26651 |  | 
 | 26652 | if test "$with_bzlib" != 'yes'; then | 
 | 26653 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " | 
 | 26654 | fi | 
 | 26655 |  | 
 | 26656 | have_bzlib='no' | 
 | 26657 | if test "$with_bzlib" != 'no'; then | 
 | 26658 |     BZLIB_LIBS='' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26659 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 26660 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26661 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26662 | $as_echo_n "checking for BZLIB... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26663 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 26664 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26665 |     failed=0 | 
 | 26666 |     passed=0 | 
 | 26667 |     found_libbz=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26668 |     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26669 | if test "x$ac_cv_header_bzlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26670 |   passed=`expr $passed + 1` | 
 | 26671 | else | 
 | 26672 |   failed=`expr $failed + 1` | 
 | 26673 | fi | 
 | 26674 |  | 
 | 26675 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26676 |     { $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] | 26677 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26678 | if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26679 |   $as_echo_n "(cached) " >&6 | 
 | 26680 | else | 
 | 26681 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26682 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26684 | /* end confdefs.h.  */ | 
 | 26685 |  | 
 | 26686 | /* Override any GCC internal prototype to avoid an error. | 
 | 26687 |    Use char because int might match the return type of a GCC | 
 | 26688 |    builtin and then its argument prototype would still apply.  */ | 
 | 26689 | #ifdef __cplusplus | 
 | 26690 | extern "C" | 
 | 26691 | #endif | 
 | 26692 | char BZ2_bzDecompress (); | 
 | 26693 | int | 
 | 26694 | main () | 
 | 26695 | { | 
 | 26696 | return BZ2_bzDecompress (); | 
 | 26697 |   ; | 
 | 26698 |   return 0; | 
 | 26699 | } | 
 | 26700 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26701 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26702 |   ac_cv_lib_bz2_BZ2_bzDecompress=yes | 
 | 26703 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26704 |   ac_cv_lib_bz2_BZ2_bzDecompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26705 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26706 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26707 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26708 | LIBS=$ac_check_lib_save_LIBS | 
 | 26709 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26710 | { $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] | 26711 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26712 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26713 |   found_libbz=`expr $found_libbz + 1` | 
 | 26714 | fi | 
 | 26715 |  | 
 | 26716 |     if test "$native_win32_build" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26717 |       { $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] | 26718 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26719 | if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26720 |   $as_echo_n "(cached) " >&6 | 
 | 26721 | else | 
 | 26722 |   ac_check_lib_save_LIBS=$LIBS | 
 | 26723 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26725 | /* end confdefs.h.  */ | 
 | 26726 |  | 
 | 26727 | /* Override any GCC internal prototype to avoid an error. | 
 | 26728 |    Use char because int might match the return type of a GCC | 
 | 26729 |    builtin and then its argument prototype would still apply.  */ | 
 | 26730 | #ifdef __cplusplus | 
 | 26731 | extern "C" | 
 | 26732 | #endif | 
 | 26733 | char _imp__BZ2_decompress (); | 
 | 26734 | int | 
 | 26735 | main () | 
 | 26736 | { | 
 | 26737 | return _imp__BZ2_decompress (); | 
 | 26738 |   ; | 
 | 26739 |   return 0; | 
 | 26740 | } | 
 | 26741 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26742 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26743 |   ac_cv_lib_bz2__imp__BZ2_decompress=yes | 
 | 26744 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26745 |   ac_cv_lib_bz2__imp__BZ2_decompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26746 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26747 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26748 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26749 | LIBS=$ac_check_lib_save_LIBS | 
 | 26750 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26751 | { $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] | 26752 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26753 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26754 |   found_libbz=`expr $found_libbz + 1` | 
 | 26755 | fi | 
 | 26756 |  | 
 | 26757 |     fi | 
 | 26758 |     if test $found_libbz -gt 0; then | 
 | 26759 |       passed=`expr $passed + 1` | 
 | 26760 |     else | 
 | 26761 |       failed=`expr $failed + 1` | 
 | 26762 |     fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26763 |     { $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] | 26764 | $as_echo_n "checking if BZLIB package is complete... " >&6; } | 
 | 26765 |     if test $passed -gt 0; then | 
 | 26766 |       if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26767 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 26768 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26769 |         have_bzlib='no (failed tests)' | 
 | 26770 |       else | 
 | 26771 |         BZLIB_LIBS='-lbz2' | 
 | 26772 |         LIBS="$BZLIB_LIBS $LIBS" | 
 | 26773 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26774 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26775 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26776 |         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 26777 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26778 |         have_bzlib='yes' | 
 | 26779 |       fi | 
 | 26780 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 26781 |       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 26782 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26783 |     fi | 
 | 26784 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26785 |  if test "$have_bzlib" = 'yes'; then | 
 | 26786 |   BZLIB_DELEGATE_TRUE= | 
 | 26787 |   BZLIB_DELEGATE_FALSE='#' | 
 | 26788 | else | 
 | 26789 |   BZLIB_DELEGATE_TRUE='#' | 
 | 26790 |   BZLIB_DELEGATE_FALSE= | 
 | 26791 | fi | 
 | 26792 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26793 |  | 
 | 26794 |  | 
 | 26795 | # | 
 | 26796 | # Find the X11 include and library directories. | 
 | 26797 | # | 
 | 26798 | IPC_LIBS='' | 
 | 26799 | X11_LIBS='' | 
 | 26800 | XEXT_LIBS='' | 
 | 26801 | XT_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26803 | $as_echo_n "checking for X... " >&6; } | 
 | 26804 |  | 
 | 26805 |  | 
 | 26806 | # Check whether --with-x was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26807 | if test "${with_x+set}" = set; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26808 |   withval=$with_x; | 
 | 26809 | fi | 
 | 26810 |  | 
 | 26811 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 
 | 26812 | if test "x$with_x" = xno; then | 
 | 26813 |   # The user explicitly disabled X. | 
 | 26814 |   have_x=disabled | 
 | 26815 | else | 
 | 26816 |   case $x_includes,$x_libraries in #( | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26817 |     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26818 |     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26819 |   $as_echo_n "(cached) " >&6 | 
 | 26820 | else | 
 | 26821 |   # One or both of the vars are not set, and there is no cached value. | 
 | 26822 | ac_x_includes=no ac_x_libraries=no | 
 | 26823 | rm -f -r conftest.dir | 
 | 26824 | if mkdir conftest.dir; then | 
 | 26825 |   cd conftest.dir | 
 | 26826 |   cat >Imakefile <<'_ACEOF' | 
 | 26827 | incroot: | 
 | 26828 | 	@echo incroot='${INCROOT}' | 
 | 26829 | usrlibdir: | 
 | 26830 | 	@echo usrlibdir='${USRLIBDIR}' | 
 | 26831 | libdir: | 
 | 26832 | 	@echo libdir='${LIBDIR}' | 
 | 26833 | _ACEOF | 
 | 26834 |   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26835 |     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26836 |     for ac_var in incroot usrlibdir libdir; do | 
 | 26837 |       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | 
 | 26838 |     done | 
 | 26839 |     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 
 | 26840 |     for ac_extension in a so sl dylib la dll; do | 
 | 26841 |       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | 
 | 26842 | 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then | 
 | 26843 | 	ac_im_usrlibdir=$ac_im_libdir; break | 
 | 26844 |       fi | 
 | 26845 |     done | 
 | 26846 |     # Screen out bogus values from the imake configuration.  They are | 
 | 26847 |     # bogus both because they are the default anyway, and because | 
 | 26848 |     # using them would break gcc on systems where it needs fixed includes. | 
 | 26849 |     case $ac_im_incroot in | 
 | 26850 | 	/usr/include) ac_x_includes= ;; | 
 | 26851 | 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 
 | 26852 |     esac | 
 | 26853 |     case $ac_im_usrlibdir in | 
 | 26854 | 	/usr/lib | /usr/lib64 | /lib | /lib64) ;; | 
 | 26855 | 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 
 | 26856 |     esac | 
 | 26857 |   fi | 
 | 26858 |   cd .. | 
 | 26859 |   rm -f -r conftest.dir | 
 | 26860 | fi | 
 | 26861 |  | 
 | 26862 | # Standard set of common directories for X headers. | 
 | 26863 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
 | 26864 | ac_x_header_dirs=' | 
 | 26865 | /usr/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26866 | /usr/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26867 | /usr/X11R6/include | 
 | 26868 | /usr/X11R5/include | 
 | 26869 | /usr/X11R4/include | 
 | 26870 |  | 
 | 26871 | /usr/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26872 | /usr/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26873 | /usr/include/X11R6 | 
 | 26874 | /usr/include/X11R5 | 
 | 26875 | /usr/include/X11R4 | 
 | 26876 |  | 
 | 26877 | /usr/local/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26878 | /usr/local/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26879 | /usr/local/X11R6/include | 
 | 26880 | /usr/local/X11R5/include | 
 | 26881 | /usr/local/X11R4/include | 
 | 26882 |  | 
 | 26883 | /usr/local/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26884 | /usr/local/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26885 | /usr/local/include/X11R6 | 
 | 26886 | /usr/local/include/X11R5 | 
 | 26887 | /usr/local/include/X11R4 | 
 | 26888 |  | 
 | 26889 | /usr/X386/include | 
 | 26890 | /usr/x386/include | 
 | 26891 | /usr/XFree86/include/X11 | 
 | 26892 |  | 
 | 26893 | /usr/include | 
 | 26894 | /usr/local/include | 
 | 26895 | /usr/unsupported/include | 
 | 26896 | /usr/athena/include | 
 | 26897 | /usr/local/x11r5/include | 
 | 26898 | /usr/lpp/Xamples/include | 
 | 26899 |  | 
 | 26900 | /usr/openwin/include | 
 | 26901 | /usr/openwin/share/include' | 
 | 26902 |  | 
 | 26903 | if test "$ac_x_includes" = no; then | 
 | 26904 |   # Guess where to find include files, by looking for Xlib.h. | 
 | 26905 |   # First, try using that file with no special directory specified. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26906 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26907 | /* end confdefs.h.  */ | 
 | 26908 | #include <X11/Xlib.h> | 
 | 26909 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26910 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26911 |   # We can compile using X headers with no special include directory. | 
 | 26912 | ac_x_includes= | 
 | 26913 | else | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26914 |   for ac_dir in $ac_x_header_dirs; do | 
 | 26915 |   if test -r "$ac_dir/X11/Xlib.h"; then | 
 | 26916 |     ac_x_includes=$ac_dir | 
 | 26917 |     break | 
 | 26918 |   fi | 
 | 26919 | done | 
 | 26920 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26921 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26922 | fi # $ac_x_includes = no | 
 | 26923 |  | 
 | 26924 | if test "$ac_x_libraries" = no; then | 
 | 26925 |   # Check for the libraries. | 
 | 26926 |   # See if we find them without any special options. | 
 | 26927 |   # Don't add to $LIBS permanently. | 
 | 26928 |   ac_save_LIBS=$LIBS | 
 | 26929 |   LIBS="-lX11 $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26930 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26931 | /* end confdefs.h.  */ | 
 | 26932 | #include <X11/Xlib.h> | 
 | 26933 | int | 
 | 26934 | main () | 
 | 26935 | { | 
 | 26936 | XrmInitialize () | 
 | 26937 |   ; | 
 | 26938 |   return 0; | 
 | 26939 | } | 
 | 26940 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26941 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26942 |   LIBS=$ac_save_LIBS | 
 | 26943 | # We can link X programs with no special library path. | 
 | 26944 | ac_x_libraries= | 
 | 26945 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26946 |   LIBS=$ac_save_LIBS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26947 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | 
 | 26948 | do | 
 | 26949 |   # Don't even attempt the hair of trying to link an X program! | 
 | 26950 |   for ac_extension in a so sl dylib la dll; do | 
 | 26951 |     if test -r "$ac_dir/libX11.$ac_extension"; then | 
 | 26952 |       ac_x_libraries=$ac_dir | 
 | 26953 |       break 2 | 
 | 26954 |     fi | 
 | 26955 |   done | 
 | 26956 | done | 
 | 26957 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26958 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 26959 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26960 | fi # $ac_x_libraries = no | 
 | 26961 |  | 
 | 26962 | case $ac_x_includes,$ac_x_libraries in #( | 
 | 26963 |   no,* | *,no | *\'*) | 
 | 26964 |     # Didn't find X, or a directory has "'" in its name. | 
 | 26965 |     ac_cv_have_x="have_x=no";; #( | 
 | 26966 |   *) | 
 | 26967 |     # Record where we found X for the cache. | 
 | 26968 |     ac_cv_have_x="have_x=yes\ | 
 | 26969 | 	ac_x_includes='$ac_x_includes'\ | 
 | 26970 | 	ac_x_libraries='$ac_x_libraries'" | 
 | 26971 | esac | 
 | 26972 | fi | 
 | 26973 | ;; #( | 
 | 26974 |     *) have_x=yes;; | 
 | 26975 |   esac | 
 | 26976 |   eval "$ac_cv_have_x" | 
 | 26977 | fi # $with_x != no | 
 | 26978 |  | 
 | 26979 | if test "$have_x" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26981 | $as_echo "$have_x" >&6; } | 
 | 26982 |   no_x=yes | 
 | 26983 | else | 
 | 26984 |   # If each of the values was on the command line, it overrides each guess. | 
 | 26985 |   test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 
 | 26986 |   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 
 | 26987 |   # Update the cache value to reflect the command line values. | 
 | 26988 |   ac_cv_have_x="have_x=yes\ | 
 | 26989 | 	ac_x_includes='$x_includes'\ | 
 | 26990 | 	ac_x_libraries='$x_libraries'" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26991 |   { $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] | 26992 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 
 | 26993 | fi | 
 | 26994 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26995 | if test "$no_x" = yes; then | 
 | 26996 |   # Not all programs may use this symbol, but it does not hurt to define it. | 
 | 26997 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26998 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26999 |  | 
 | 27000 |   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | 
 | 27001 | else | 
 | 27002 |   if test -n "$x_includes"; then | 
 | 27003 |     X_CFLAGS="$X_CFLAGS -I$x_includes" | 
 | 27004 |   fi | 
 | 27005 |  | 
 | 27006 |   # It would also be nice to do this for all -L options, not just this one. | 
 | 27007 |   if test -n "$x_libraries"; then | 
 | 27008 |     X_LIBS="$X_LIBS -L$x_libraries" | 
 | 27009 |     # For Solaris; some versions of Sun CC require a space after -R and | 
 | 27010 |     # others require no space.  Words are not sufficient . . . . | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27011 |     { $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] | 27012 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | 
 | 27013 |     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | 
 | 27014 |     ac_xsave_c_werror_flag=$ac_c_werror_flag | 
 | 27015 |     ac_c_werror_flag=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27016 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27017 | /* end confdefs.h.  */ | 
 | 27018 |  | 
 | 27019 | int | 
 | 27020 | main () | 
 | 27021 | { | 
 | 27022 |  | 
 | 27023 |   ; | 
 | 27024 |   return 0; | 
 | 27025 | } | 
 | 27026 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27027 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 27028 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27029 | $as_echo "no" >&6; } | 
 | 27030 |        X_LIBS="$X_LIBS -R$x_libraries" | 
 | 27031 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27032 |   LIBS="$ac_xsave_LIBS -R $x_libraries" | 
 | 27033 |        cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27034 | /* end confdefs.h.  */ | 
 | 27035 |  | 
 | 27036 | int | 
 | 27037 | main () | 
 | 27038 | { | 
 | 27039 |  | 
 | 27040 |   ; | 
 | 27041 |   return 0; | 
 | 27042 | } | 
 | 27043 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27044 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 27045 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27046 | $as_echo "yes" >&6; } | 
 | 27047 | 	  X_LIBS="$X_LIBS -R $x_libraries" | 
 | 27048 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27049 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27050 | $as_echo "neither works" >&6; } | 
 | 27051 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27052 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27053 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27054 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27055 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27056 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27057 |     ac_c_werror_flag=$ac_xsave_c_werror_flag | 
 | 27058 |     LIBS=$ac_xsave_LIBS | 
 | 27059 |   fi | 
 | 27060 |  | 
 | 27061 |   # Check for system-dependent libraries X programs must link with. | 
 | 27062 |   # Do this before checking for the system-independent R6 libraries | 
 | 27063 |   # (-lICE), since we may need -lsocket or whatever for X linking. | 
 | 27064 |  | 
 | 27065 |   if test "$ISC" = yes; then | 
 | 27066 |     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 
 | 27067 |   else | 
 | 27068 |     # Martyn Johnson says this is needed for Ultrix, if the X | 
 | 27069 |     # libraries were built with DECnet support.  And Karl Berry says | 
 | 27070 |     # the Alpha needs dnet_stub (dnet does not exist). | 
 | 27071 |     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27072 |     cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27073 | /* end confdefs.h.  */ | 
 | 27074 |  | 
 | 27075 | /* Override any GCC internal prototype to avoid an error. | 
 | 27076 |    Use char because int might match the return type of a GCC | 
 | 27077 |    builtin and then its argument prototype would still apply.  */ | 
 | 27078 | #ifdef __cplusplus | 
 | 27079 | extern "C" | 
 | 27080 | #endif | 
 | 27081 | char XOpenDisplay (); | 
 | 27082 | int | 
 | 27083 | main () | 
 | 27084 | { | 
 | 27085 | return XOpenDisplay (); | 
 | 27086 |   ; | 
 | 27087 |   return 0; | 
 | 27088 | } | 
 | 27089 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27090 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27091 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27092 | else | 
 | 27093 |   { $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] | 27094 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27095 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27096 |   $as_echo_n "(cached) " >&6 | 
 | 27097 | else | 
 | 27098 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27099 | LIBS="-ldnet  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27101 | /* end confdefs.h.  */ | 
 | 27102 |  | 
 | 27103 | /* Override any GCC internal prototype to avoid an error. | 
 | 27104 |    Use char because int might match the return type of a GCC | 
 | 27105 |    builtin and then its argument prototype would still apply.  */ | 
 | 27106 | #ifdef __cplusplus | 
 | 27107 | extern "C" | 
 | 27108 | #endif | 
 | 27109 | char dnet_ntoa (); | 
 | 27110 | int | 
 | 27111 | main () | 
 | 27112 | { | 
 | 27113 | return dnet_ntoa (); | 
 | 27114 |   ; | 
 | 27115 |   return 0; | 
 | 27116 | } | 
 | 27117 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27118 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27119 |   ac_cv_lib_dnet_dnet_ntoa=yes | 
 | 27120 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27121 |   ac_cv_lib_dnet_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27122 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27123 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27124 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27125 | LIBS=$ac_check_lib_save_LIBS | 
 | 27126 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27127 | { $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] | 27128 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27129 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27130 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 
 | 27131 | fi | 
 | 27132 |  | 
 | 27133 |     if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27134 |       { $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] | 27135 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27136 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27137 |   $as_echo_n "(cached) " >&6 | 
 | 27138 | else | 
 | 27139 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27140 | LIBS="-ldnet_stub  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27142 | /* end confdefs.h.  */ | 
 | 27143 |  | 
 | 27144 | /* Override any GCC internal prototype to avoid an error. | 
 | 27145 |    Use char because int might match the return type of a GCC | 
 | 27146 |    builtin and then its argument prototype would still apply.  */ | 
 | 27147 | #ifdef __cplusplus | 
 | 27148 | extern "C" | 
 | 27149 | #endif | 
 | 27150 | char dnet_ntoa (); | 
 | 27151 | int | 
 | 27152 | main () | 
 | 27153 | { | 
 | 27154 | return dnet_ntoa (); | 
 | 27155 |   ; | 
 | 27156 |   return 0; | 
 | 27157 | } | 
 | 27158 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27159 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27160 |   ac_cv_lib_dnet_stub_dnet_ntoa=yes | 
 | 27161 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27162 |   ac_cv_lib_dnet_stub_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27163 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27164 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27165 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27166 | LIBS=$ac_check_lib_save_LIBS | 
 | 27167 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27168 | { $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] | 27169 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27170 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27171 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 
 | 27172 | fi | 
 | 27173 |  | 
 | 27174 |     fi | 
 | 27175 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27176 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27177 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27178 |     LIBS="$ac_xsave_LIBS" | 
 | 27179 |  | 
 | 27180 |     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | 
 | 27181 |     # to get the SysV transport functions. | 
 | 27182 |     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | 
 | 27183 |     # needs -lnsl. | 
 | 27184 |     # The nsl library prevents programs from opening the X display | 
 | 27185 |     # on Irix 5.2, according to T.E. Dickey. | 
 | 27186 |     # The functions gethostbyname, getservbyname, and inet_addr are | 
 | 27187 |     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27188 |     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27189 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27190 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27191 | fi | 
 | 27192 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27193 |     if test $ac_cv_func_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27194 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27195 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27196 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27197 |   $as_echo_n "(cached) " >&6 | 
 | 27198 | else | 
 | 27199 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27200 | LIBS="-lnsl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27202 | /* end confdefs.h.  */ | 
 | 27203 |  | 
 | 27204 | /* Override any GCC internal prototype to avoid an error. | 
 | 27205 |    Use char because int might match the return type of a GCC | 
 | 27206 |    builtin and then its argument prototype would still apply.  */ | 
 | 27207 | #ifdef __cplusplus | 
 | 27208 | extern "C" | 
 | 27209 | #endif | 
 | 27210 | char gethostbyname (); | 
 | 27211 | int | 
 | 27212 | main () | 
 | 27213 | { | 
 | 27214 | return gethostbyname (); | 
 | 27215 |   ; | 
 | 27216 |   return 0; | 
 | 27217 | } | 
 | 27218 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27219 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27220 |   ac_cv_lib_nsl_gethostbyname=yes | 
 | 27221 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27222 |   ac_cv_lib_nsl_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27223 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27224 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27225 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27226 | LIBS=$ac_check_lib_save_LIBS | 
 | 27227 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27228 | { $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] | 27229 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27230 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27231 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 
 | 27232 | fi | 
 | 27233 |  | 
 | 27234 |       if test $ac_cv_lib_nsl_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27235 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27236 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27237 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27238 |   $as_echo_n "(cached) " >&6 | 
 | 27239 | else | 
 | 27240 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27241 | LIBS="-lbsd  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27243 | /* end confdefs.h.  */ | 
 | 27244 |  | 
 | 27245 | /* Override any GCC internal prototype to avoid an error. | 
 | 27246 |    Use char because int might match the return type of a GCC | 
 | 27247 |    builtin and then its argument prototype would still apply.  */ | 
 | 27248 | #ifdef __cplusplus | 
 | 27249 | extern "C" | 
 | 27250 | #endif | 
 | 27251 | char gethostbyname (); | 
 | 27252 | int | 
 | 27253 | main () | 
 | 27254 | { | 
 | 27255 | return gethostbyname (); | 
 | 27256 |   ; | 
 | 27257 |   return 0; | 
 | 27258 | } | 
 | 27259 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27260 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27261 |   ac_cv_lib_bsd_gethostbyname=yes | 
 | 27262 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27263 |   ac_cv_lib_bsd_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27264 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27265 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27266 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27267 | LIBS=$ac_check_lib_save_LIBS | 
 | 27268 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27269 | { $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] | 27270 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27271 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27272 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | 
 | 27273 | fi | 
 | 27274 |  | 
 | 27275 |       fi | 
 | 27276 |     fi | 
 | 27277 |  | 
 | 27278 |     # lieder@skyler.mavd.honeywell.com says without -lsocket, | 
 | 27279 |     # socket/setsockopt and other routines are undefined under SCO ODT | 
 | 27280 |     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary | 
 | 27281 |     # on later versions), says Simon Leinen: it contains gethostby* | 
 | 27282 |     # variants that don't use the name server (or something).  -lsocket | 
 | 27283 |     # must be given before -lnsl if both are needed.  We assume that | 
 | 27284 |     # if connect needs -lnsl, so does gethostbyname. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27285 |     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27286 | if test "x$ac_cv_func_connect" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27287 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27288 | fi | 
 | 27289 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27290 |     if test $ac_cv_func_connect = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27291 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27292 | $as_echo_n "checking for connect in -lsocket... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27293 | if ${ac_cv_lib_socket_connect+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27294 |   $as_echo_n "(cached) " >&6 | 
 | 27295 | else | 
 | 27296 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27297 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27299 | /* end confdefs.h.  */ | 
 | 27300 |  | 
 | 27301 | /* Override any GCC internal prototype to avoid an error. | 
 | 27302 |    Use char because int might match the return type of a GCC | 
 | 27303 |    builtin and then its argument prototype would still apply.  */ | 
 | 27304 | #ifdef __cplusplus | 
 | 27305 | extern "C" | 
 | 27306 | #endif | 
 | 27307 | char connect (); | 
 | 27308 | int | 
 | 27309 | main () | 
 | 27310 | { | 
 | 27311 | return connect (); | 
 | 27312 |   ; | 
 | 27313 |   return 0; | 
 | 27314 | } | 
 | 27315 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27316 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27317 |   ac_cv_lib_socket_connect=yes | 
 | 27318 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27319 |   ac_cv_lib_socket_connect=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27320 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27321 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27322 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27323 | LIBS=$ac_check_lib_save_LIBS | 
 | 27324 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27325 | { $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] | 27326 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27327 | if test "x$ac_cv_lib_socket_connect" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27328 |   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 
 | 27329 | fi | 
 | 27330 |  | 
 | 27331 |     fi | 
 | 27332 |  | 
 | 27333 |     # Guillermo Gomez says -lposix is necessary on A/UX. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27334 |     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27335 | if test "x$ac_cv_func_remove" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27336 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27337 | fi | 
 | 27338 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27339 |     if test $ac_cv_func_remove = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27340 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27341 | $as_echo_n "checking for remove in -lposix... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27342 | if ${ac_cv_lib_posix_remove+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27343 |   $as_echo_n "(cached) " >&6 | 
 | 27344 | else | 
 | 27345 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27346 | LIBS="-lposix  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27348 | /* end confdefs.h.  */ | 
 | 27349 |  | 
 | 27350 | /* Override any GCC internal prototype to avoid an error. | 
 | 27351 |    Use char because int might match the return type of a GCC | 
 | 27352 |    builtin and then its argument prototype would still apply.  */ | 
 | 27353 | #ifdef __cplusplus | 
 | 27354 | extern "C" | 
 | 27355 | #endif | 
 | 27356 | char remove (); | 
 | 27357 | int | 
 | 27358 | main () | 
 | 27359 | { | 
 | 27360 | return remove (); | 
 | 27361 |   ; | 
 | 27362 |   return 0; | 
 | 27363 | } | 
 | 27364 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27365 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27366 |   ac_cv_lib_posix_remove=yes | 
 | 27367 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27368 |   ac_cv_lib_posix_remove=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27369 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27370 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27371 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27372 | LIBS=$ac_check_lib_save_LIBS | 
 | 27373 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27374 | { $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] | 27375 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27376 | if test "x$ac_cv_lib_posix_remove" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27377 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 
 | 27378 | fi | 
 | 27379 |  | 
 | 27380 |     fi | 
 | 27381 |  | 
 | 27382 |     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27383 |     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27384 | if test "x$ac_cv_func_shmat" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27385 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27386 | fi | 
 | 27387 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27388 |     if test $ac_cv_func_shmat = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27389 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27390 | $as_echo_n "checking for shmat in -lipc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27391 | if ${ac_cv_lib_ipc_shmat+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27392 |   $as_echo_n "(cached) " >&6 | 
 | 27393 | else | 
 | 27394 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27395 | LIBS="-lipc  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27397 | /* end confdefs.h.  */ | 
 | 27398 |  | 
 | 27399 | /* Override any GCC internal prototype to avoid an error. | 
 | 27400 |    Use char because int might match the return type of a GCC | 
 | 27401 |    builtin and then its argument prototype would still apply.  */ | 
 | 27402 | #ifdef __cplusplus | 
 | 27403 | extern "C" | 
 | 27404 | #endif | 
 | 27405 | char shmat (); | 
 | 27406 | int | 
 | 27407 | main () | 
 | 27408 | { | 
 | 27409 | return shmat (); | 
 | 27410 |   ; | 
 | 27411 |   return 0; | 
 | 27412 | } | 
 | 27413 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27414 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27415 |   ac_cv_lib_ipc_shmat=yes | 
 | 27416 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27417 |   ac_cv_lib_ipc_shmat=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27418 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27419 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27420 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27421 | LIBS=$ac_check_lib_save_LIBS | 
 | 27422 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27423 | { $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] | 27424 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27425 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27426 |   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 
 | 27427 | fi | 
 | 27428 |  | 
 | 27429 |     fi | 
 | 27430 |   fi | 
 | 27431 |  | 
 | 27432 |   # Check for libraries that X11R6 Xt/Xaw programs need. | 
 | 27433 |   ac_save_LDFLAGS=$LDFLAGS | 
 | 27434 |   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | 
 | 27435 |   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | 
 | 27436 |   # check for ICE first), but we must link in the order -lSM -lICE or | 
 | 27437 |   # we get undefined symbols.  So assume we have SM if we have ICE. | 
 | 27438 |   # These have to be linked with before -lX11, unlike the other | 
 | 27439 |   # libraries we check for below, so use a different variable. | 
 | 27440 |   # John Interrante, Karl Berry | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27441 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27442 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27443 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27444 |   $as_echo_n "(cached) " >&6 | 
 | 27445 | else | 
 | 27446 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27447 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27449 | /* end confdefs.h.  */ | 
 | 27450 |  | 
 | 27451 | /* Override any GCC internal prototype to avoid an error. | 
 | 27452 |    Use char because int might match the return type of a GCC | 
 | 27453 |    builtin and then its argument prototype would still apply.  */ | 
 | 27454 | #ifdef __cplusplus | 
 | 27455 | extern "C" | 
 | 27456 | #endif | 
 | 27457 | char IceConnectionNumber (); | 
 | 27458 | int | 
 | 27459 | main () | 
 | 27460 | { | 
 | 27461 | return IceConnectionNumber (); | 
 | 27462 |   ; | 
 | 27463 |   return 0; | 
 | 27464 | } | 
 | 27465 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27466 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27467 |   ac_cv_lib_ICE_IceConnectionNumber=yes | 
 | 27468 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27469 |   ac_cv_lib_ICE_IceConnectionNumber=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27470 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27471 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27472 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27473 | LIBS=$ac_check_lib_save_LIBS | 
 | 27474 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27475 | { $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] | 27476 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27477 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27478 |   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 
 | 27479 | fi | 
 | 27480 |  | 
 | 27481 |   LDFLAGS=$ac_save_LDFLAGS | 
 | 27482 |  | 
 | 27483 | fi | 
 | 27484 |  | 
 | 27485 | if test "$no_x" != 'yes'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27486 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 27487 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27488 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27489 | $as_echo_n "checking for X11... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27490 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 27491 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27492 |     LDFLAGS="$LDFLAGS $X_LIBS" | 
 | 27493 |     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" | 
 | 27494 |     LIBS="$X11_LIBS $LIBS" | 
 | 27495 |     CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 
 | 27496 |  | 
 | 27497 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27498 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27499 |  | 
 | 27500 |     # | 
 | 27501 |     # Check for X11 shared memory extension | 
 | 27502 |     # | 
 | 27503 |     # shmctl is required to support the shared memory extension | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27504 |     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27505 | if test "x$ac_cv_func_shmctl" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27506 |   have_shmctl='yes' | 
 | 27507 | fi | 
 | 27508 |  | 
 | 27509 |     if test "$have_shmctl" != 'yes'; then | 
 | 27510 |         PERSIST_LIBS=$LIBS | 
 | 27511 |         LIBS="$LIBS -lcygipc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27512 |         cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27513 | /* end confdefs.h.  */ | 
 | 27514 |  | 
 | 27515 | /* Override any GCC internal prototype to avoid an error. | 
 | 27516 |    Use char because int might match the return type of a GCC | 
 | 27517 |    builtin and then its argument prototype would still apply.  */ | 
 | 27518 | #ifdef __cplusplus | 
 | 27519 | extern "C" | 
 | 27520 | #endif | 
 | 27521 | char shmctl (); | 
 | 27522 | int | 
 | 27523 | main () | 
 | 27524 | { | 
 | 27525 | return shmctl (); | 
 | 27526 |   ; | 
 | 27527 |   return 0; | 
 | 27528 | } | 
 | 27529 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27530 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27531 |   have_shmctl='yes'; IPC_LIBS='-lcygipc' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27532 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27533 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27534 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27535 |         LIBS=$PERSIST_LIBS | 
 | 27536 |     fi | 
 | 27537 |  | 
 | 27538 |     if test "$have_shmctl" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27539 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27540 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27541 | if ${ac_cv_lib_Xext_XShmAttach+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27542 |   $as_echo_n "(cached) " >&6 | 
 | 27543 | else | 
 | 27544 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27545 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27547 | /* end confdefs.h.  */ | 
 | 27548 |  | 
 | 27549 | /* Override any GCC internal prototype to avoid an error. | 
 | 27550 |    Use char because int might match the return type of a GCC | 
 | 27551 |    builtin and then its argument prototype would still apply.  */ | 
 | 27552 | #ifdef __cplusplus | 
 | 27553 | extern "C" | 
 | 27554 | #endif | 
 | 27555 | char XShmAttach (); | 
 | 27556 | int | 
 | 27557 | main () | 
 | 27558 | { | 
 | 27559 | return XShmAttach (); | 
 | 27560 |   ; | 
 | 27561 |   return 0; | 
 | 27562 | } | 
 | 27563 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27564 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27565 |   ac_cv_lib_Xext_XShmAttach=yes | 
 | 27566 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27567 |   ac_cv_lib_Xext_XShmAttach=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27568 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27569 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27570 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27571 | LIBS=$ac_check_lib_save_LIBS | 
 | 27572 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27573 | { $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] | 27574 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27575 | if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27576 |   XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27577 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27578 |  | 
 | 27579 | fi | 
 | 27580 |  | 
 | 27581 |     fi | 
 | 27582 |  | 
 | 27583 |     # | 
 | 27584 |     # Check for X11 shape extension | 
 | 27585 |     # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27586 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27587 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27588 | if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27589 |   $as_echo_n "(cached) " >&6 | 
 | 27590 | else | 
 | 27591 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27592 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27594 | /* end confdefs.h.  */ | 
 | 27595 |  | 
 | 27596 | /* Override any GCC internal prototype to avoid an error. | 
 | 27597 |    Use char because int might match the return type of a GCC | 
 | 27598 |    builtin and then its argument prototype would still apply.  */ | 
 | 27599 | #ifdef __cplusplus | 
 | 27600 | extern "C" | 
 | 27601 | #endif | 
 | 27602 | char XShapeCombineMask (); | 
 | 27603 | int | 
 | 27604 | main () | 
 | 27605 | { | 
 | 27606 | return XShapeCombineMask (); | 
 | 27607 |   ; | 
 | 27608 |   return 0; | 
 | 27609 | } | 
 | 27610 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27611 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27612 |   ac_cv_lib_Xext_XShapeCombineMask=yes | 
 | 27613 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27614 |   ac_cv_lib_Xext_XShapeCombineMask=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27615 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27616 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27617 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27618 | LIBS=$ac_check_lib_save_LIBS | 
 | 27619 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27620 | { $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] | 27621 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27622 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27623 |   XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27624 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27625 |  | 
 | 27626 | fi | 
 | 27627 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27628 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27629 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27630 | if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27631 |   $as_echo_n "(cached) " >&6 | 
 | 27632 | else | 
 | 27633 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27634 | LIBS="-lXt  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27636 | /* end confdefs.h.  */ | 
 | 27637 |  | 
 | 27638 | /* Override any GCC internal prototype to avoid an error. | 
 | 27639 |    Use char because int might match the return type of a GCC | 
 | 27640 |    builtin and then its argument prototype would still apply.  */ | 
 | 27641 | #ifdef __cplusplus | 
 | 27642 | extern "C" | 
 | 27643 | #endif | 
 | 27644 | char XtSetEventDispatcher (); | 
 | 27645 | int | 
 | 27646 | main () | 
 | 27647 | { | 
 | 27648 | return XtSetEventDispatcher (); | 
 | 27649 |   ; | 
 | 27650 |   return 0; | 
 | 27651 | } | 
 | 27652 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27653 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27654 |   ac_cv_lib_Xt_XtSetEventDispatcher=yes | 
 | 27655 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27656 |   ac_cv_lib_Xt_XtSetEventDispatcher=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27657 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27658 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27659 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27660 | LIBS=$ac_check_lib_save_LIBS | 
 | 27661 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27662 | { $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] | 27663 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27664 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27665 |   XT_LIBS='-lXt' | 
 | 27666 | fi | 
 | 27667 |  | 
 | 27668 |     LIBS="$XEXT_LIBS $XT_LIBS $LIBS" | 
 | 27669 | fi | 
 | 27670 | if test "$no_x" != 'yes'; then | 
 | 27671 |   have_x='yes' | 
 | 27672 | else | 
 | 27673 |   have_x='no' | 
 | 27674 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27675 |  if test "$have_x" = 'yes'; then | 
 | 27676 |   X11_DELEGATE_TRUE= | 
 | 27677 |   X11_DELEGATE_FALSE='#' | 
 | 27678 | else | 
 | 27679 |   X11_DELEGATE_TRUE='#' | 
 | 27680 |   X11_DELEGATE_FALSE= | 
 | 27681 | fi | 
 | 27682 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27683 |  | 
 | 27684 |  | 
 | 27685 |  | 
 | 27686 |  | 
 | 27687 | # | 
 | 27688 | # Check for ZLIB | 
 | 27689 | # | 
 | 27690 |  | 
 | 27691 | # Check whether --with-zlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27692 | if test "${with_zlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27693 |   withval=$with_zlib; with_zlib=$withval | 
 | 27694 | else | 
 | 27695 |   with_zlib='yes' | 
 | 27696 | fi | 
 | 27697 |  | 
 | 27698 |  | 
 | 27699 | if test "$with_zlib" != 'yes'; then | 
 | 27700 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " | 
 | 27701 | fi | 
 | 27702 |  | 
 | 27703 | have_zlib='no' | 
 | 27704 | ZLIB_LIBS='' | 
 | 27705 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27706 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 27707 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27708 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27709 | $as_echo_n "checking for ZLIB... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27710 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 27711 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27712 |     ZLIB_LIBS='' | 
 | 27713 |     failed=0 | 
 | 27714 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27715 |     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27716 | if test "x$ac_cv_header_zconf_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27717 |   passed=`expr $passed + 1` | 
 | 27718 | else | 
 | 27719 |   failed=`expr $failed + 1` | 
 | 27720 | fi | 
 | 27721 |  | 
 | 27722 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27723 |     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27724 | if test "x$ac_cv_header_zlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27725 |   passed=`expr $passed + 1` | 
 | 27726 | else | 
 | 27727 |   failed=`expr $failed + 1` | 
 | 27728 | fi | 
 | 27729 |  | 
 | 27730 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27731 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27732 | $as_echo_n "checking for compress in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27733 | if ${ac_cv_lib_z_compress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27734 |   $as_echo_n "(cached) " >&6 | 
 | 27735 | else | 
 | 27736 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27737 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27739 | /* end confdefs.h.  */ | 
 | 27740 |  | 
 | 27741 | /* Override any GCC internal prototype to avoid an error. | 
 | 27742 |    Use char because int might match the return type of a GCC | 
 | 27743 |    builtin and then its argument prototype would still apply.  */ | 
 | 27744 | #ifdef __cplusplus | 
 | 27745 | extern "C" | 
 | 27746 | #endif | 
 | 27747 | char compress (); | 
 | 27748 | int | 
 | 27749 | main () | 
 | 27750 | { | 
 | 27751 | return compress (); | 
 | 27752 |   ; | 
 | 27753 |   return 0; | 
 | 27754 | } | 
 | 27755 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27756 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27757 |   ac_cv_lib_z_compress=yes | 
 | 27758 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27759 |   ac_cv_lib_z_compress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27760 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27761 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27762 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27763 | LIBS=$ac_check_lib_save_LIBS | 
 | 27764 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27765 | { $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] | 27766 | $as_echo "$ac_cv_lib_z_compress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27767 | if test "x$ac_cv_lib_z_compress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27768 |   passed=`expr $passed + 1` | 
 | 27769 | else | 
 | 27770 |   failed=`expr $failed + 1` | 
 | 27771 | fi | 
 | 27772 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27773 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27774 | $as_echo_n "checking for uncompress in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27775 | if ${ac_cv_lib_z_uncompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27776 |   $as_echo_n "(cached) " >&6 | 
 | 27777 | else | 
 | 27778 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27779 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27781 | /* end confdefs.h.  */ | 
 | 27782 |  | 
 | 27783 | /* Override any GCC internal prototype to avoid an error. | 
 | 27784 |    Use char because int might match the return type of a GCC | 
 | 27785 |    builtin and then its argument prototype would still apply.  */ | 
 | 27786 | #ifdef __cplusplus | 
 | 27787 | extern "C" | 
 | 27788 | #endif | 
 | 27789 | char uncompress (); | 
 | 27790 | int | 
 | 27791 | main () | 
 | 27792 | { | 
 | 27793 | return uncompress (); | 
 | 27794 |   ; | 
 | 27795 |   return 0; | 
 | 27796 | } | 
 | 27797 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27798 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27799 |   ac_cv_lib_z_uncompress=yes | 
 | 27800 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27801 |   ac_cv_lib_z_uncompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27802 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27803 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27804 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27805 | LIBS=$ac_check_lib_save_LIBS | 
 | 27806 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27807 | { $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] | 27808 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27809 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27810 |   passed=`expr $passed + 1` | 
 | 27811 | else | 
 | 27812 |   failed=`expr $failed + 1` | 
 | 27813 | fi | 
 | 27814 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27815 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27816 | $as_echo_n "checking for deflate in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27817 | if ${ac_cv_lib_z_deflate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27818 |   $as_echo_n "(cached) " >&6 | 
 | 27819 | else | 
 | 27820 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27821 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27823 | /* end confdefs.h.  */ | 
 | 27824 |  | 
 | 27825 | /* Override any GCC internal prototype to avoid an error. | 
 | 27826 |    Use char because int might match the return type of a GCC | 
 | 27827 |    builtin and then its argument prototype would still apply.  */ | 
 | 27828 | #ifdef __cplusplus | 
 | 27829 | extern "C" | 
 | 27830 | #endif | 
 | 27831 | char deflate (); | 
 | 27832 | int | 
 | 27833 | main () | 
 | 27834 | { | 
 | 27835 | return deflate (); | 
 | 27836 |   ; | 
 | 27837 |   return 0; | 
 | 27838 | } | 
 | 27839 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27840 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27841 |   ac_cv_lib_z_deflate=yes | 
 | 27842 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27843 |   ac_cv_lib_z_deflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27844 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27845 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27846 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27847 | LIBS=$ac_check_lib_save_LIBS | 
 | 27848 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27849 | { $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] | 27850 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27851 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27852 |   passed=`expr $passed + 1` | 
 | 27853 | else | 
 | 27854 |   failed=`expr $failed + 1` | 
 | 27855 | fi | 
 | 27856 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27857 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27858 | $as_echo_n "checking for inflate in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27859 | if ${ac_cv_lib_z_inflate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27860 |   $as_echo_n "(cached) " >&6 | 
 | 27861 | else | 
 | 27862 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27863 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27865 | /* end confdefs.h.  */ | 
 | 27866 |  | 
 | 27867 | /* Override any GCC internal prototype to avoid an error. | 
 | 27868 |    Use char because int might match the return type of a GCC | 
 | 27869 |    builtin and then its argument prototype would still apply.  */ | 
 | 27870 | #ifdef __cplusplus | 
 | 27871 | extern "C" | 
 | 27872 | #endif | 
 | 27873 | char inflate (); | 
 | 27874 | int | 
 | 27875 | main () | 
 | 27876 | { | 
 | 27877 | return inflate (); | 
 | 27878 |   ; | 
 | 27879 |   return 0; | 
 | 27880 | } | 
 | 27881 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27882 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27883 |   ac_cv_lib_z_inflate=yes | 
 | 27884 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27885 |   ac_cv_lib_z_inflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27886 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27887 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27888 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27889 | LIBS=$ac_check_lib_save_LIBS | 
 | 27890 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27891 | { $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] | 27892 | $as_echo "$ac_cv_lib_z_inflate" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27893 | if test "x$ac_cv_lib_z_inflate" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27894 |   passed=`expr $passed + 1` | 
 | 27895 | else | 
 | 27896 |   failed=`expr $failed + 1` | 
 | 27897 | fi | 
 | 27898 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27899 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27900 | $as_echo_n "checking for gzseek in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27901 | if ${ac_cv_lib_z_gzseek+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27902 |   $as_echo_n "(cached) " >&6 | 
 | 27903 | else | 
 | 27904 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27905 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27907 | /* end confdefs.h.  */ | 
 | 27908 |  | 
 | 27909 | /* Override any GCC internal prototype to avoid an error. | 
 | 27910 |    Use char because int might match the return type of a GCC | 
 | 27911 |    builtin and then its argument prototype would still apply.  */ | 
 | 27912 | #ifdef __cplusplus | 
 | 27913 | extern "C" | 
 | 27914 | #endif | 
 | 27915 | char gzseek (); | 
 | 27916 | int | 
 | 27917 | main () | 
 | 27918 | { | 
 | 27919 | return gzseek (); | 
 | 27920 |   ; | 
 | 27921 |   return 0; | 
 | 27922 | } | 
 | 27923 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27924 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27925 |   ac_cv_lib_z_gzseek=yes | 
 | 27926 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27927 |   ac_cv_lib_z_gzseek=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27928 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27929 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27930 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27931 | LIBS=$ac_check_lib_save_LIBS | 
 | 27932 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27933 | { $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] | 27934 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27935 | if test "x$ac_cv_lib_z_gzseek" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27936 |   passed=`expr $passed + 1` | 
 | 27937 | else | 
 | 27938 |   failed=`expr $failed + 1` | 
 | 27939 | fi | 
 | 27940 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27941 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27942 | $as_echo_n "checking for gztell in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27943 | if ${ac_cv_lib_z_gztell+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27944 |   $as_echo_n "(cached) " >&6 | 
 | 27945 | else | 
 | 27946 |   ac_check_lib_save_LIBS=$LIBS | 
 | 27947 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27949 | /* end confdefs.h.  */ | 
 | 27950 |  | 
 | 27951 | /* Override any GCC internal prototype to avoid an error. | 
 | 27952 |    Use char because int might match the return type of a GCC | 
 | 27953 |    builtin and then its argument prototype would still apply.  */ | 
 | 27954 | #ifdef __cplusplus | 
 | 27955 | extern "C" | 
 | 27956 | #endif | 
 | 27957 | char gztell (); | 
 | 27958 | int | 
 | 27959 | main () | 
 | 27960 | { | 
 | 27961 | return gztell (); | 
 | 27962 |   ; | 
 | 27963 |   return 0; | 
 | 27964 | } | 
 | 27965 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27966 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27967 |   ac_cv_lib_z_gztell=yes | 
 | 27968 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27969 |   ac_cv_lib_z_gztell=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27970 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27971 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 27972 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27973 | LIBS=$ac_check_lib_save_LIBS | 
 | 27974 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27975 | { $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] | 27976 | $as_echo "$ac_cv_lib_z_gztell" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27977 | if test "x$ac_cv_lib_z_gztell" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27978 |   passed=`expr $passed + 1` | 
 | 27979 | else | 
 | 27980 |   failed=`expr $failed + 1` | 
 | 27981 | fi | 
 | 27982 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27983 |     { $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] | 27984 | $as_echo_n "checking if ZLIB package is complete... " >&6; } | 
 | 27985 |     if test $passed -gt 0; then | 
 | 27986 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27987 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 27988 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27989 |             have_zlib='no (failed tests)' | 
 | 27990 |         else | 
 | 27991 |             ZLIB_LIBS='-lz' | 
 | 27992 |             LIBS="$ZLIB_LIBS $LIBS" | 
 | 27993 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27994 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27995 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 27996 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 27997 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27998 |             have_zlib='yes' | 
 | 27999 |         fi | 
 | 28000 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28001 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 28002 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28003 |     fi | 
 | 28004 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28005 |  if test "$have_zlib" = 'yes'; then | 
 | 28006 |   ZLIB_DELEGATE_TRUE= | 
 | 28007 |   ZLIB_DELEGATE_FALSE='#' | 
 | 28008 | else | 
 | 28009 |   ZLIB_DELEGATE_TRUE='#' | 
 | 28010 |   ZLIB_DELEGATE_FALSE= | 
 | 28011 | fi | 
 | 28012 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28013 |  | 
 | 28014 |  | 
 | 28015 | # | 
 | 28016 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) | 
 | 28017 | # | 
 | 28018 | LIB_DL='' | 
 | 28019 | if test "$enable_profiling" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28020 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28021 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28022 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28023 |   $as_echo_n "(cached) " >&6 | 
 | 28024 | else | 
 | 28025 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28026 | LIBS="-ldl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28028 | /* end confdefs.h.  */ | 
 | 28029 |  | 
 | 28030 | /* Override any GCC internal prototype to avoid an error. | 
 | 28031 |    Use char because int might match the return type of a GCC | 
 | 28032 |    builtin and then its argument prototype would still apply.  */ | 
 | 28033 | #ifdef __cplusplus | 
 | 28034 | extern "C" | 
 | 28035 | #endif | 
 | 28036 | char dlopen (); | 
 | 28037 | int | 
 | 28038 | main () | 
 | 28039 | { | 
 | 28040 | return dlopen (); | 
 | 28041 |   ; | 
 | 28042 |   return 0; | 
 | 28043 | } | 
 | 28044 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28045 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28046 |   ac_cv_lib_dl_dlopen=yes | 
 | 28047 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28048 |   ac_cv_lib_dl_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28049 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28050 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28051 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28052 | LIBS=$ac_check_lib_save_LIBS | 
 | 28053 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28054 | { $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] | 28055 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28056 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28057 |   LIB_DL='-ldl' | 
 | 28058 | fi | 
 | 28059 |  | 
 | 28060 |     LIBS="$LIB_DL $LIBS" | 
 | 28061 | fi | 
 | 28062 |  | 
 | 28063 |  | 
 | 28064 |  | 
 | 28065 | # | 
 | 28066 | # Check for Autotrace delegate library. | 
 | 28067 | # | 
 | 28068 |  | 
 | 28069 | # Check whether --with-autotrace was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28070 | if test "${with_autotrace+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28071 |   withval=$with_autotrace; with_autotrace=$withval | 
 | 28072 | else | 
 | 28073 |   with_autotrace='no' | 
 | 28074 | fi | 
 | 28075 |  | 
 | 28076 |  | 
 | 28077 | if test "$with_autotrace" != 'yes'; then | 
 | 28078 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " | 
 | 28079 | fi | 
 | 28080 |  | 
 | 28081 | have_autotrace='no' | 
 | 28082 | AUTOTRACE_CFLAGS="" | 
 | 28083 | AUTOTRACE_LIBS="" | 
 | 28084 | AUTOTRACE_PKG="" | 
 | 28085 | if test "x$with_autotrace" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28086 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28087 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28088 |  | 
 | 28089 | pkg_failed=no | 
 | 28090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 | 
 | 28091 | $as_echo_n "checking for AUTOTRACE... " >&6; } | 
 | 28092 |  | 
 | 28093 | if test -n "$AUTOTRACE_CFLAGS"; then | 
 | 28094 |     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" | 
 | 28095 |  elif test -n "$PKG_CONFIG"; then | 
 | 28096 |     if test -n "$PKG_CONFIG" && \ | 
 | 28097 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
 | 28098 |   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
 | 28099 |   ac_status=$? | 
 | 28100 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 28101 |   test $ac_status = 0; }; then | 
 | 28102 |   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` | 
 | 28103 | else | 
 | 28104 |   pkg_failed=yes | 
 | 28105 | fi | 
 | 28106 |  else | 
 | 28107 |     pkg_failed=untried | 
 | 28108 | fi | 
 | 28109 | if test -n "$AUTOTRACE_LIBS"; then | 
 | 28110 |     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" | 
 | 28111 |  elif test -n "$PKG_CONFIG"; then | 
 | 28112 |     if test -n "$PKG_CONFIG" && \ | 
 | 28113 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
 | 28114 |   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
 | 28115 |   ac_status=$? | 
 | 28116 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 28117 |   test $ac_status = 0; }; then | 
 | 28118 |   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` | 
 | 28119 | else | 
 | 28120 |   pkg_failed=yes | 
 | 28121 | fi | 
 | 28122 |  else | 
 | 28123 |     pkg_failed=untried | 
 | 28124 | fi | 
 | 28125 |  | 
 | 28126 |  | 
 | 28127 |  | 
 | 28128 | if test $pkg_failed = yes; then | 
 | 28129 |  | 
 | 28130 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 28131 |         _pkg_short_errors_supported=yes | 
 | 28132 | else | 
 | 28133 |         _pkg_short_errors_supported=no | 
 | 28134 | fi | 
 | 28135 |         if test $_pkg_short_errors_supported = yes; then | 
 | 28136 | 	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` | 
 | 28137 |         else | 
 | 28138 | 	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` | 
 | 28139 |         fi | 
 | 28140 | 	# Put the nasty error message in config.log where it belongs | 
 | 28141 | 	echo "$AUTOTRACE_PKG_ERRORS" >&5 | 
 | 28142 |  | 
 | 28143 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 28144 | $as_echo "no" >&6; } | 
 | 28145 |                 have_autotrace=no | 
 | 28146 | elif test $pkg_failed = untried; then | 
 | 28147 | 	have_autotrace=no | 
 | 28148 | else | 
 | 28149 | 	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS | 
 | 28150 | 	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS | 
 | 28151 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 28152 | $as_echo "yes" >&6; } | 
 | 28153 | 	have_autotrace=yes | 
 | 28154 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28155 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28156 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28157 | fi | 
 | 28158 |  | 
 | 28159 | if test "$have_autotrace" = 'yes'; then | 
 | 28160 |     failed=0 | 
 | 28161 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28162 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28163 |  | 
 | 28164 |     if test "$with_modules" = 'no'; then | 
 | 28165 |     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" | 
 | 28166 |     fi | 
 | 28167 | fi | 
 | 28168 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28169 |  if test "$have_autotrace" = 'yes'; then | 
 | 28170 |   AUTOTRACE_DELEGATE_TRUE= | 
 | 28171 |   AUTOTRACE_DELEGATE_FALSE='#' | 
 | 28172 | else | 
 | 28173 |   AUTOTRACE_DELEGATE_TRUE='#' | 
 | 28174 |   AUTOTRACE_DELEGATE_FALSE= | 
 | 28175 | fi | 
 | 28176 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28177 |  | 
 | 28178 |  | 
 | 28179 |  | 
 | 28180 |  | 
 | 28181 | # | 
 | 28182 | # Check for Display Postscript delegate library. | 
 | 28183 | # | 
 | 28184 |  | 
 | 28185 | # Check whether --with-dps was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28186 | if test "${with_dps+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28187 |   withval=$with_dps; with_dps=$withval | 
 | 28188 | else | 
 | 28189 |   with_dps='yes' | 
 | 28190 | fi | 
 | 28191 |  | 
 | 28192 |  | 
 | 28193 | if test "$with_dps" != 'yes'; then | 
 | 28194 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " | 
 | 28195 | fi | 
 | 28196 |  | 
 | 28197 | have_dps='no' | 
 | 28198 | DPS_LIBS='' | 
 | 28199 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28200 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28201 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28202 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28203 | $as_echo_n "checking for DPS... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28204 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28205 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28206 |     failed=0 | 
 | 28207 |     passed=0 | 
 | 28208 |     PERSIST_CPPFLAGS="$CPPFLAGS" | 
 | 28209 |     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28210 |     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28211 | if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28212 |   passed=`expr $passed + 1` | 
 | 28213 | else | 
 | 28214 |   failed=`expr $failed + 1` | 
 | 28215 | fi | 
 | 28216 |  | 
 | 28217 |  | 
 | 28218 |     # DPS issues: | 
 | 28219 |     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. | 
 | 28220 |     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. | 
 | 28221 |     # Adobe DPS (as delivered on Solaris) doesn't require -lXt. | 
 | 28222 |     # ImageMagick itself doesn't use -lXt. | 
 | 28223 |     have_libdps='no' | 
 | 28224 |     LIBDPS_XT='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28225 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28226 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28227 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28228 |   $as_echo_n "(cached) " >&6 | 
 | 28229 | else | 
 | 28230 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28231 | LIBS="-ldps  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28233 | /* end confdefs.h.  */ | 
 | 28234 |  | 
 | 28235 | /* Override any GCC internal prototype to avoid an error. | 
 | 28236 |    Use char because int might match the return type of a GCC | 
 | 28237 |    builtin and then its argument prototype would still apply.  */ | 
 | 28238 | #ifdef __cplusplus | 
 | 28239 | extern "C" | 
 | 28240 | #endif | 
 | 28241 | char DPSInitialize (); | 
 | 28242 | int | 
 | 28243 | main () | 
 | 28244 | { | 
 | 28245 | return DPSInitialize (); | 
 | 28246 |   ; | 
 | 28247 |   return 0; | 
 | 28248 | } | 
 | 28249 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28250 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28251 |   ac_cv_lib_dps_DPSInitialize=yes | 
 | 28252 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28253 |   ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28254 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28255 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28256 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28257 | LIBS=$ac_check_lib_save_LIBS | 
 | 28258 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28259 | { $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] | 28260 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28261 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28262 |   have_libdps='yes' | 
 | 28263 | else | 
 | 28264 |   have_libdps='no' | 
 | 28265 | fi | 
 | 28266 |  | 
 | 28267 |     if test "$have_libdps" != 'yes'; then | 
 | 28268 |         # Unset cache variable so we can try again. | 
 | 28269 |         unset ac_cv_lib_dps_DPSInitialize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28270 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28271 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28272 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28273 |   $as_echo_n "(cached) " >&6 | 
 | 28274 | else | 
 | 28275 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28276 | LIBS="-ldps -lXt $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28278 | /* end confdefs.h.  */ | 
 | 28279 |  | 
 | 28280 | /* Override any GCC internal prototype to avoid an error. | 
 | 28281 |    Use char because int might match the return type of a GCC | 
 | 28282 |    builtin and then its argument prototype would still apply.  */ | 
 | 28283 | #ifdef __cplusplus | 
 | 28284 | extern "C" | 
 | 28285 | #endif | 
 | 28286 | char DPSInitialize (); | 
 | 28287 | int | 
 | 28288 | main () | 
 | 28289 | { | 
 | 28290 | return DPSInitialize (); | 
 | 28291 |   ; | 
 | 28292 |   return 0; | 
 | 28293 | } | 
 | 28294 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28295 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28296 |   ac_cv_lib_dps_DPSInitialize=yes | 
 | 28297 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28298 |   ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28299 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28300 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28301 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28302 | LIBS=$ac_check_lib_save_LIBS | 
 | 28303 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28304 | { $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] | 28305 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28306 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28307 |   have_libdps='yes' | 
 | 28308 | else | 
 | 28309 |   have_libdps='no' | 
 | 28310 | fi | 
 | 28311 |  | 
 | 28312 |         if test "$have_libdps" = 'yes'; then | 
 | 28313 |             LIBDPS_XT='-lXt' | 
 | 28314 |         fi | 
 | 28315 |     fi | 
 | 28316 |     if test "$have_libdps" = 'yes'; then | 
 | 28317 |         passed=`expr $passed + 1` | 
 | 28318 |     else | 
 | 28319 |         failed=`expr $failed + 1` | 
 | 28320 |     fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28321 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28322 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28323 | if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28324 |   $as_echo_n "(cached) " >&6 | 
 | 28325 | else | 
 | 28326 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28327 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28329 | /* end confdefs.h.  */ | 
 | 28330 |  | 
 | 28331 | /* Override any GCC internal prototype to avoid an error. | 
 | 28332 |    Use char because int might match the return type of a GCC | 
 | 28333 |    builtin and then its argument prototype would still apply.  */ | 
 | 28334 | #ifdef __cplusplus | 
 | 28335 | extern "C" | 
 | 28336 | #endif | 
 | 28337 | char XDPSPixelsPerPoint (); | 
 | 28338 | int | 
 | 28339 | main () | 
 | 28340 | { | 
 | 28341 | return XDPSPixelsPerPoint (); | 
 | 28342 |   ; | 
 | 28343 |   return 0; | 
 | 28344 | } | 
 | 28345 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28346 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28347 |   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes | 
 | 28348 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28349 |   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28350 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28351 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28352 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28353 | LIBS=$ac_check_lib_save_LIBS | 
 | 28354 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28355 | { $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] | 28356 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28357 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28358 |   passed=`expr $passed + 1` | 
 | 28359 | else | 
 | 28360 |   failed=`expr $failed + 1` | 
 | 28361 | fi | 
 | 28362 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28363 |     { $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] | 28364 | $as_echo_n "checking if DPS package is complete... " >&6; } | 
 | 28365 |     if test $passed -gt 0; then | 
 | 28366 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28367 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 28368 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28369 |             have_dps='no (failed tests)' | 
 | 28370 |             CPPFLAGS="$PERSIST_CPPFLAGS" | 
 | 28371 |         else | 
 | 28372 |             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" | 
 | 28373 |             LIBS="$DPS_LIBS $LIBS" | 
 | 28374 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28375 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28376 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28377 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 28378 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28379 |             have_dps='yes' | 
 | 28380 |         fi | 
 | 28381 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28382 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 28383 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28384 |         CPPFLAGS=$PERSIST_CPPFLAGS | 
 | 28385 |     fi | 
 | 28386 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28387 |  if test "$have_dps" = 'yes'; then | 
 | 28388 |   DPS_DELEGATE_TRUE= | 
 | 28389 |   DPS_DELEGATE_FALSE='#' | 
 | 28390 | else | 
 | 28391 |   DPS_DELEGATE_TRUE='#' | 
 | 28392 |   DPS_DELEGATE_FALSE= | 
 | 28393 | fi | 
 | 28394 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28395 |  | 
 | 28396 |  | 
 | 28397 |  | 
 | 28398 | # | 
 | 28399 | # Check for DJVU delegate library. | 
 | 28400 | # | 
 | 28401 |  | 
 | 28402 | # Check whether --with-djvu was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28403 | if test "${with_djvu+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28404 |   withval=$with_djvu; with_djvu=$withval | 
 | 28405 | else | 
 | 28406 |   with_djvu='yes' | 
 | 28407 | fi | 
 | 28408 |  | 
 | 28409 |  | 
 | 28410 | if test "$with_djvu" != 'yes'; then | 
 | 28411 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " | 
 | 28412 | fi | 
 | 28413 |  | 
 | 28414 | have_djvu='no' | 
 | 28415 | DJVU_LIBS='' | 
 | 28416 | if test "$with_djvu" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28417 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28418 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28419 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28420 | $as_echo_n "checking for DJVU... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28421 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28422 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28423 |     failed=0 | 
 | 28424 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28425 |     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28426 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28427 |   passed=`expr $passed + 1` | 
 | 28428 | else | 
 | 28429 |   failed=`expr $failed + 1` | 
 | 28430 | fi | 
 | 28431 |  | 
 | 28432 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28433 |     { $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] | 28434 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28435 | if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28436 |   $as_echo_n "(cached) " >&6 | 
 | 28437 | else | 
 | 28438 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28439 | LIBS="-ldjvulibre  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28441 | /* end confdefs.h.  */ | 
 | 28442 |  | 
 | 28443 | /* Override any GCC internal prototype to avoid an error. | 
 | 28444 |    Use char because int might match the return type of a GCC | 
 | 28445 |    builtin and then its argument prototype would still apply.  */ | 
 | 28446 | #ifdef __cplusplus | 
 | 28447 | extern "C" | 
 | 28448 | #endif | 
 | 28449 | char ddjvu_context_create (); | 
 | 28450 | int | 
 | 28451 | main () | 
 | 28452 | { | 
 | 28453 | return ddjvu_context_create (); | 
 | 28454 |   ; | 
 | 28455 |   return 0; | 
 | 28456 | } | 
 | 28457 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28458 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28459 |   ac_cv_lib_djvulibre_ddjvu_context_create=yes | 
 | 28460 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28461 |   ac_cv_lib_djvulibre_ddjvu_context_create=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28462 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28463 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28464 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28465 | LIBS=$ac_check_lib_save_LIBS | 
 | 28466 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28467 | { $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] | 28468 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28469 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28470 |   passed=`expr $passed + 1` | 
 | 28471 | else | 
 | 28472 |   failed=`expr $failed + 1` | 
 | 28473 | fi | 
 | 28474 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28475 |     { $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] | 28476 | $as_echo_n "checking if DJVU package is complete... " >&6; } | 
 | 28477 |     if test $passed -gt 0; then | 
 | 28478 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28479 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 28480 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28481 |             have_djvu='no (failed tests)' | 
 | 28482 |         else | 
 | 28483 |             DJVU_LIBS='-ldjvulibre' | 
 | 28484 |             LIBS="$DJVU_LIBS $LIBS" | 
 | 28485 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28486 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28487 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28488 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 28489 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28490 |             have_djvu='yes' | 
 | 28491 |         fi | 
 | 28492 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28493 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 28494 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28495 |     fi | 
 | 28496 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28497 |  if test "$have_djvu" = 'yes'; then | 
 | 28498 |   DJVU_DELEGATE_TRUE= | 
 | 28499 |   DJVU_DELEGATE_FALSE='#' | 
 | 28500 | else | 
 | 28501 |   DJVU_DELEGATE_TRUE='#' | 
 | 28502 |   DJVU_DELEGATE_FALSE= | 
 | 28503 | fi | 
 | 28504 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28505 |  | 
 | 28506 |  | 
 | 28507 |  | 
 | 28508 | # | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 28509 | # Set DejaVu font directory. | 
 | 28510 | # | 
 | 28511 |  | 
 | 28512 | # Check whether --with-dejavu-font-dir was given. | 
 | 28513 | if test "${with_dejavu_font_dir+set}" = set; then : | 
 | 28514 |   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval | 
 | 28515 | else | 
 | 28516 |   with_dejavu_font_dir='default' | 
 | 28517 | fi | 
 | 28518 |  | 
 | 28519 |  | 
 | 28520 | if test "$with_dejavu_font_dir" != 'default'; then | 
 | 28521 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " | 
 | 28522 | fi | 
 | 28523 |  | 
 | 28524 |  | 
 | 28525 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28526 | # Check for FFTW delegate library. | 
 | 28527 | # | 
 | 28528 |  | 
 | 28529 | # Check whether --with-fftw was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28530 | if test "${with_fftw+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28531 |   withval=$with_fftw; with_fftw=$withval | 
 | 28532 | else | 
 | 28533 |   with_fftw='yes' | 
 | 28534 | fi | 
 | 28535 |  | 
 | 28536 |  | 
 | 28537 | if test "$with_fftw" != 'yes'; then | 
 | 28538 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " | 
 | 28539 | fi | 
 | 28540 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28541 | have_fftw='no' | 
 | 28542 | FFTW_LIBS='' | 
 | 28543 | if test "$with_fftw" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28544 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28545 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28546 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 | 
 | 28547 | $as_echo_n "checking for FFTW... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28548 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28549 | $as_echo "$as_me: " >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28550 |     failed=0 | 
 | 28551 |     passed=0 | 
 | 28552 |     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" | 
 | 28553 | if test "x$ac_cv_header_fftw3_h" = xyes; then : | 
 | 28554 |   passed=`expr $passed + 1` | 
 | 28555 | else | 
 | 28556 |   failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28557 | fi | 
 | 28558 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28559 |  | 
 | 28560 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 | 
 | 28561 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } | 
 | 28562 | if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : | 
 | 28563 |   $as_echo_n "(cached) " >&6 | 
 | 28564 | else | 
 | 28565 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28566 | LIBS="-lfftw3  $LIBS" | 
 | 28567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 28568 | /* end confdefs.h.  */ | 
 | 28569 |  | 
 | 28570 | /* Override any GCC internal prototype to avoid an error. | 
 | 28571 |    Use char because int might match the return type of a GCC | 
 | 28572 |    builtin and then its argument prototype would still apply.  */ | 
 | 28573 | #ifdef __cplusplus | 
 | 28574 | extern "C" | 
 | 28575 | #endif | 
 | 28576 | char fftw_execute (); | 
 | 28577 | int | 
 | 28578 | main () | 
 | 28579 | { | 
 | 28580 | return fftw_execute (); | 
 | 28581 |   ; | 
 | 28582 |   return 0; | 
 | 28583 | } | 
 | 28584 | _ACEOF | 
 | 28585 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 28586 |   ac_cv_lib_fftw3_fftw_execute=yes | 
 | 28587 | else | 
 | 28588 |   ac_cv_lib_fftw3_fftw_execute=no | 
 | 28589 | fi | 
 | 28590 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28591 |     conftest$ac_exeext conftest.$ac_ext | 
 | 28592 | LIBS=$ac_check_lib_save_LIBS | 
 | 28593 | fi | 
 | 28594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 | 
 | 28595 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } | 
 | 28596 | if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : | 
 | 28597 |   passed=`expr $passed + 1` | 
 | 28598 | else | 
 | 28599 |   failed=`expr $failed + 1` | 
 | 28600 | fi | 
 | 28601 |  | 
 | 28602 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 | 
 | 28603 | $as_echo_n "checking if FFTW package is complete... " >&6; } | 
 | 28604 |     if test $passed -gt 0; then | 
 | 28605 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28606 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 28607 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28608 |             have_fftw='no (failed tests)' | 
 | 28609 |         else | 
 | 28610 |             FFTW_LIBS='-lfftw3' | 
 | 28611 |             LIBS="$FFTW_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28612 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28613 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28614 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28615 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 28616 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28617 |             have_fftw='yes' | 
 | 28618 |         fi | 
 | 28619 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28620 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 28621 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28622 |     fi | 
 | 28623 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28624 |  if test "$have_fftw" = 'yes'; then | 
 | 28625 |   FFTW_DELEGATE_TRUE= | 
 | 28626 |   FFTW_DELEGATE_FALSE='#' | 
 | 28627 | else | 
 | 28628 |   FFTW_DELEGATE_TRUE='#' | 
 | 28629 |   FFTW_DELEGATE_FALSE= | 
 | 28630 | fi | 
 | 28631 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28632 |  | 
 | 28633 |  | 
 | 28634 |  | 
 | 28635 | # | 
 | 28636 | # Check for FlashPIX delegate library. | 
 | 28637 | # | 
 | 28638 |  | 
 | 28639 | # Check whether --with-fpx was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28640 | if test "${with_fpx+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28641 |   withval=$with_fpx; with_fpx=$withval | 
 | 28642 | else | 
 | 28643 |   with_fpx='yes' | 
 | 28644 | fi | 
 | 28645 |  | 
 | 28646 |  | 
 | 28647 | if test "$with_fpx" != 'yes'; then | 
 | 28648 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " | 
 | 28649 | fi | 
 | 28650 |  | 
 | 28651 | have_fpx='no' | 
 | 28652 | FPX_LIBS='' | 
 | 28653 | if test "$with_fpx" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28654 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28655 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28656 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28657 | $as_echo_n "checking for FlashPIX... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28658 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28659 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28660 |     failed=0 | 
 | 28661 |     passed=0 | 
 | 28662 |     ac_ext=cpp | 
 | 28663 | ac_cpp='$CXXCPP $CPPFLAGS' | 
 | 28664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
 | 28667 |  | 
 | 28668 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28669 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28670 | if test "x$ac_cv_header_fpxlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28671 |   passed=`expr $passed + 1` | 
 | 28672 | else | 
 | 28673 |   failed=`expr $failed + 1` | 
 | 28674 | fi | 
 | 28675 |  | 
 | 28676 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28677 |     { $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] | 28678 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28679 | if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28680 |   $as_echo_n "(cached) " >&6 | 
 | 28681 | else | 
 | 28682 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28683 | LIBS="-lfpx  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28685 | /* end confdefs.h.  */ | 
 | 28686 |  | 
 | 28687 | /* Override any GCC internal prototype to avoid an error. | 
 | 28688 |    Use char because int might match the return type of a GCC | 
 | 28689 |    builtin and then its argument prototype would still apply.  */ | 
 | 28690 | #ifdef __cplusplus | 
 | 28691 | extern "C" | 
 | 28692 | #endif | 
 | 28693 | char FPX_OpenImageByFilename (); | 
 | 28694 | int | 
 | 28695 | main () | 
 | 28696 | { | 
 | 28697 | return FPX_OpenImageByFilename (); | 
 | 28698 |   ; | 
 | 28699 |   return 0; | 
 | 28700 | } | 
 | 28701 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28702 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28703 |   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes | 
 | 28704 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28705 |   ac_cv_lib_fpx_FPX_OpenImageByFilename=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28706 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28707 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28708 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28709 | LIBS=$ac_check_lib_save_LIBS | 
 | 28710 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28711 | { $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] | 28712 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28713 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28714 |   passed=`expr $passed + 1` | 
 | 28715 | else | 
 | 28716 |   failed=`expr $failed + 1` | 
 | 28717 | fi | 
 | 28718 |  | 
 | 28719 |     ac_ext=c | 
 | 28720 | ac_cpp='$CPP $CPPFLAGS' | 
 | 28721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
 | 28722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
 | 28723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
 | 28724 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28725 |     { $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] | 28726 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } | 
 | 28727 |     if test $passed -gt 0; then | 
 | 28728 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28729 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 28730 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28731 |             have_fpx='no (failed tests)' | 
 | 28732 |         else | 
 | 28733 |             FPX_LIBS='-lfpx' | 
 | 28734 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28735 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28736 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28737 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 28738 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28739 |             have_fpx='yes' | 
 | 28740 |             PERLMAINCC="$CXX" | 
 | 28741 |         fi | 
 | 28742 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28743 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 28744 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28745 |     fi | 
 | 28746 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28747 |  if test "$have_fpx" = 'yes'; then | 
 | 28748 |   FPX_DELEGATE_TRUE= | 
 | 28749 |   FPX_DELEGATE_FALSE='#' | 
 | 28750 | else | 
 | 28751 |   FPX_DELEGATE_TRUE='#' | 
 | 28752 |   FPX_DELEGATE_FALSE= | 
 | 28753 | fi | 
 | 28754 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28755 |  | 
 | 28756 |  | 
 | 28757 |  | 
 | 28758 | # | 
 | 28759 | # Check for fontconfig delegate library. | 
 | 28760 | # | 
 | 28761 |  | 
 | 28762 | # Check whether --with-fontconfig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28763 | if test "${with_fontconfig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28764 |   withval=$with_fontconfig; with_fontconfig=$withval | 
 | 28765 | else | 
 | 28766 |   with_fontconfig=$have_x | 
 | 28767 | fi | 
 | 28768 |  | 
 | 28769 |  | 
 | 28770 | if test "$with_fontconfig" != 'yes'; then | 
 | 28771 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " | 
 | 28772 | fi | 
 | 28773 |  | 
 | 28774 | have_fontconfig='no' | 
 | 28775 | FONTCONFIG_CFLAGS="" | 
 | 28776 | FONTCONFIG_LIBS="" | 
 | 28777 | FONTCONFIG_PKG="" | 
 | 28778 | if test "x$with_fontconfig" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28779 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28780 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28781 |  | 
 | 28782 | pkg_failed=no | 
 | 28783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 | 
 | 28784 | $as_echo_n "checking for FONTCONFIG... " >&6; } | 
 | 28785 |  | 
 | 28786 | if test -n "$FONTCONFIG_CFLAGS"; then | 
 | 28787 |     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" | 
 | 28788 |  elif test -n "$PKG_CONFIG"; then | 
 | 28789 |     if test -n "$PKG_CONFIG" && \ | 
 | 28790 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
 | 28791 |   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
 | 28792 |   ac_status=$? | 
 | 28793 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 28794 |   test $ac_status = 0; }; then | 
 | 28795 |   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` | 
 | 28796 | else | 
 | 28797 |   pkg_failed=yes | 
 | 28798 | fi | 
 | 28799 |  else | 
 | 28800 |     pkg_failed=untried | 
 | 28801 | fi | 
 | 28802 | if test -n "$FONTCONFIG_LIBS"; then | 
 | 28803 |     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" | 
 | 28804 |  elif test -n "$PKG_CONFIG"; then | 
 | 28805 |     if test -n "$PKG_CONFIG" && \ | 
 | 28806 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
 | 28807 |   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
 | 28808 |   ac_status=$? | 
 | 28809 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 28810 |   test $ac_status = 0; }; then | 
 | 28811 |   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` | 
 | 28812 | else | 
 | 28813 |   pkg_failed=yes | 
 | 28814 | fi | 
 | 28815 |  else | 
 | 28816 |     pkg_failed=untried | 
 | 28817 | fi | 
 | 28818 |  | 
 | 28819 |  | 
 | 28820 |  | 
 | 28821 | if test $pkg_failed = yes; then | 
 | 28822 |  | 
 | 28823 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 28824 |         _pkg_short_errors_supported=yes | 
 | 28825 | else | 
 | 28826 |         _pkg_short_errors_supported=no | 
 | 28827 | fi | 
 | 28828 |         if test $_pkg_short_errors_supported = yes; then | 
 | 28829 | 	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` | 
 | 28830 |         else | 
 | 28831 | 	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` | 
 | 28832 |         fi | 
 | 28833 | 	# Put the nasty error message in config.log where it belongs | 
 | 28834 | 	echo "$FONTCONFIG_PKG_ERRORS" >&5 | 
 | 28835 |  | 
 | 28836 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 28837 | $as_echo "no" >&6; } | 
 | 28838 |                 have_fontconfig=no | 
 | 28839 | elif test $pkg_failed = untried; then | 
 | 28840 | 	have_fontconfig=no | 
 | 28841 | else | 
 | 28842 | 	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS | 
 | 28843 | 	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS | 
 | 28844 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 28845 | $as_echo "yes" >&6; } | 
 | 28846 | 	have_fontconfig=yes | 
 | 28847 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28848 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28849 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28850 | fi | 
 | 28851 |  | 
 | 28852 | if test "$have_fontconfig" = 'yes'; then | 
 | 28853 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28854 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28855 |  | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28856 |   if test "$with_modules" = 'no'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28857 |     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28858 |   fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28859 | fi | 
 | 28860 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28861 |  if test "$have_fontconfig" = 'yes'; then | 
 | 28862 |   FONTCONFIG_DELEGATE_TRUE= | 
 | 28863 |   FONTCONFIG_DELEGATE_FALSE='#' | 
 | 28864 | else | 
 | 28865 |   FONTCONFIG_DELEGATE_TRUE='#' | 
 | 28866 |   FONTCONFIG_DELEGATE_FALSE= | 
 | 28867 | fi | 
 | 28868 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28869 |  | 
 | 28870 |  | 
 | 28871 |  | 
 | 28872 |  | 
 | 28873 | # | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28874 | # Check for freetype delegate library. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28875 | # | 
 | 28876 |  | 
 | 28877 | # Check whether --with-freetype was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28878 | if test "${with_freetype+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28879 |   withval=$with_freetype; with_freetype=$withval | 
 | 28880 | else | 
 | 28881 |   with_freetype='yes' | 
 | 28882 | fi | 
 | 28883 |  | 
 | 28884 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28885 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28886 | if test "$with_freetype" != 'yes'; then | 
 | 28887 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " | 
 | 28888 | fi | 
 | 28889 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28890 | have_freetype='no' | 
 | 28891 | FREETYPE_LIBS='' | 
 | 28892 | if test "$with_freetype" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28893 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 28894 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28895 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5 | 
 | 28896 | $as_echo_n "checking for FreeType 2.0 ... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 28897 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 28898 | $as_echo "$as_me: " >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28899 |     failed=0 | 
 | 28900 |     passed=0 | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28901 |     PERSIST_LDFLAGS="$LDFLAGS" | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28902 |     PERSIST_CPPFLAGS="$CPPFLAGS" | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28903 |     freetype_config='' | 
 | 28904 |     # Allow the user to specify the location of freetype. | 
 | 28905 |     if test "$with_freetype" != 'yes'; then | 
 | 28906 |       if test -x "${with_freetype}/bin/freetype-config"; then | 
 | 28907 |         freetype_config="${with_freetype}/bin/freetype-config" | 
 | 28908 |       elif test -x "${with_freetype}"; then | 
 | 28909 |         freetype_config=${with_freetype} | 
 | 28910 |       fi | 
 | 28911 |     fi | 
 | 28912 |     if test -z "$freetype_config"; then | 
 | 28913 |       # Extract the first word of "freetype-config", so it can be a program name with args. | 
 | 28914 | set dummy freetype-config; ac_word=$2 | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 28916 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28917 | if ${ac_cv_path_freetype_config+:} false; then : | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28918 |   $as_echo_n "(cached) " >&6 | 
 | 28919 | else | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28920 |   case $freetype_config in | 
 | 28921 |   [\\/]* | ?:[\\/]*) | 
 | 28922 |   ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path. | 
 | 28923 |   ;; | 
 | 28924 |   *) | 
 | 28925 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28926 | for as_dir in $PATH | 
 | 28927 | do | 
 | 28928 |   IFS=$as_save_IFS | 
 | 28929 |   test -z "$as_dir" && as_dir=. | 
 | 28930 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 28931 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28932 |     ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28933 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 28934 |     break 2 | 
 | 28935 |   fi | 
 | 28936 | done | 
 | 28937 |   done | 
 | 28938 | IFS=$as_save_IFS | 
 | 28939 |  | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28940 |   ;; | 
 | 28941 | esac | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28942 | fi | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28943 | freetype_config=$ac_cv_path_freetype_config | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28944 | if test -n "$freetype_config"; then | 
 | 28945 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 | 
 | 28946 | $as_echo "$freetype_config" >&6; } | 
 | 28947 | else | 
 | 28948 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 28949 | $as_echo "no" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28950 | fi | 
 | 28951 |  | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28952 |     fi | 
 | 28953 |     if test -n "$freetype_config"; then | 
 | 28954 |       freetype_prefix=`${freetype_config} --prefix` | 
 | 28955 |       freetype_exec_prefix=`${freetype_config} --exec-prefix` | 
 | 28956 |       LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" | 
 | 28957 |       CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28958 |     fi | 
 | 28959 |  | 
 | 28960 |     if test "$FREETYPE_LIBS" = ''; then | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28961 |       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28962 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } | 
 | 28963 | if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : | 
 | 28964 |   $as_echo_n "(cached) " >&6 | 
 | 28965 | else | 
 | 28966 |   ac_check_lib_save_LIBS=$LIBS | 
 | 28967 | LIBS="-lfreetype  $LIBS" | 
 | 28968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 28969 | /* end confdefs.h.  */ | 
 | 28970 |  | 
 | 28971 | /* Override any GCC internal prototype to avoid an error. | 
 | 28972 |    Use char because int might match the return type of a GCC | 
 | 28973 |    builtin and then its argument prototype would still apply.  */ | 
 | 28974 | #ifdef __cplusplus | 
 | 28975 | extern "C" | 
 | 28976 | #endif | 
 | 28977 | char FT_Init_FreeType (); | 
 | 28978 | int | 
 | 28979 | main () | 
 | 28980 | { | 
 | 28981 | return FT_Init_FreeType (); | 
 | 28982 |   ; | 
 | 28983 |   return 0; | 
 | 28984 | } | 
 | 28985 | _ACEOF | 
 | 28986 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 28987 |   ac_cv_lib_freetype_FT_Init_FreeType=yes | 
 | 28988 | else | 
 | 28989 |   ac_cv_lib_freetype_FT_Init_FreeType=no | 
 | 28990 | fi | 
 | 28991 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 28992 |     conftest$ac_exeext conftest.$ac_ext | 
 | 28993 | LIBS=$ac_check_lib_save_LIBS | 
 | 28994 | fi | 
 | 28995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 | 
 | 28996 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } | 
 | 28997 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : | 
 | 28998 |   FREETYPE_LIBS='-lfreetype' | 
 | 28999 | fi | 
 | 29000 |  | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29001 |       if test "$FREETYPE_LIBS" != ''; then | 
 | 29002 |         passed=`expr $passed + 1` | 
 | 29003 |       else | 
 | 29004 |         failed=`expr $failed + 1` | 
 | 29005 |         LDFLAGS="$PERSIST_LDFLAGS" | 
 | 29006 |       fi | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29007 |     fi | 
 | 29008 |  | 
 | 29009 |     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" | 
 | 29010 | if test "x$ac_cv_header_ft2build_h" = xyes; then : | 
 | 29011 |   FT2BUILD_H='#include <ft2build.h>' | 
 | 29012 | else | 
 | 29013 |   ft2build='' | 
 | 29014 | fi | 
 | 29015 |  | 
 | 29016 |  | 
 | 29017 |     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H | 
 | 29018 | " | 
 | 29019 | if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : | 
 | 29020 |   have_freetype_h='yes' | 
 | 29021 | else | 
 | 29022 |   have_freetype_h='no' | 
 | 29023 | fi | 
 | 29024 |  | 
 | 29025 |  | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29026 |     if test "$have_freetype_h" = 'yes'; then | 
 | 29027 |       passed=`expr $passed + 1` | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29028 |     else | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29029 |       failed=`expr $failed + 1` | 
 | 29030 |       CPPFLAGS="$PERSIST_CPPFLAGS" | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29031 |     fi | 
 | 29032 |  | 
 | 29033 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 | 
 | 29034 | $as_echo_n "checking if FreeType package is complete... " >&6; } | 
 | 29035 |     if test $passed -gt 0; then | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29036 |       if test $failed -gt 0; then | 
 | 29037 |         FREETYPE_LIBS='' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29038 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29039 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29040 |         have_freetype='no (failed tests)' | 
 | 29041 |       else | 
 | 29042 |         LIBS="$FREETYPE_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29043 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29044 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29045 |  | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29046 |         if test "$ac_cv_header_ft2build_h" = 'yes'; then | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29047 |  | 
 | 29048 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h | 
 | 29049 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29050 |         fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29051 |         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 29052 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 29053 |         have_freetype='yes' | 
 | 29054 |       fi | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29055 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29056 |       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29057 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29058 |     fi | 
 | 29059 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29060 |  if test "$have_freetype" = 'yes'; then | 
 | 29061 |   FREETYPE_DELEGATE_TRUE= | 
 | 29062 |   FREETYPE_DELEGATE_FALSE='#' | 
 | 29063 | else | 
 | 29064 |   FREETYPE_DELEGATE_TRUE='#' | 
 | 29065 |   FREETYPE_DELEGATE_FALSE= | 
 | 29066 | fi | 
 | 29067 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29068 |  | 
 | 29069 |  | 
 | 29070 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29071 | # | 
 | 29072 | # Check for Ghostscript library or framework. | 
 | 29073 | # | 
 | 29074 | # Test for iapi.h & test for gsapi_new_instance in -lgs | 
 | 29075 | # or -framework Ghostscript | 
 | 29076 |  | 
 | 29077 |  | 
 | 29078 | # Check whether --with-gslib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29079 | if test "${with_gslib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29080 |   withval=$with_gslib; with_gslib=$withval | 
 | 29081 | else | 
 | 29082 |   with_gslib='no' | 
 | 29083 | fi | 
 | 29084 |  | 
 | 29085 |  | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29086 | gslib_framework='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29087 | if test "$with_gslib" != 'yes'; then | 
 | 29088 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " | 
 | 29089 | fi | 
 | 29090 |  | 
 | 29091 | have_gslib='no' | 
 | 29092 | GS_LIBS='' | 
 | 29093 | if test "$with_gslib" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29094 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29095 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29096 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29097 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29098 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29099 | $as_echo "$as_me: " >&6;} | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29100 |     framework=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29101 |     failed=0 | 
 | 29102 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29103 |     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29104 | if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29105 |   passed=`expr $passed + 1` | 
 | 29106 | else | 
 | 29107 |   failed=`expr $failed + 1` | 
 | 29108 | fi | 
 | 29109 |  | 
 | 29110 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29111 |     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29112 | if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29113 |   passed=`expr $passed + 1` | 
 | 29114 | else | 
 | 29115 |   failed=`expr $failed + 1` | 
 | 29116 | fi | 
 | 29117 |  | 
 | 29118 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29119 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 | 
 | 29120 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29121 | if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29122 |   $as_echo_n "(cached) " >&6 | 
 | 29123 | else | 
 | 29124 |   ac_check_framework_save_LIBS=$LIBS | 
 | 29125 | LIBS="-framework Ghostscript  $LIBS" | 
 | 29126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 29127 | /* end confdefs.h.  */ | 
 | 29128 |  | 
 | 29129 | /* Override any GCC internal prototype to avoid an error. | 
 | 29130 |    Use char because int might match the return type of a GCC | 
 | 29131 |    builtin and then its argument prototype would still apply.  */ | 
 | 29132 | #ifdef __cplusplus | 
 | 29133 | extern "C" | 
 | 29134 | #endif | 
 | 29135 | char gsapi_new_instance (); | 
 | 29136 | int | 
 | 29137 | main () | 
 | 29138 | { | 
 | 29139 | return gsapi_new_instance (); | 
 | 29140 |   ; | 
 | 29141 |   return 0; | 
 | 29142 | } | 
 | 29143 | _ACEOF | 
 | 29144 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 29145 |   ac_cv_framework_Ghostscript_gsapi_new_instance=yes | 
 | 29146 | else | 
 | 29147 |   ac_cv_framework_Ghostscript_gsapi_new_instance=no | 
 | 29148 | fi | 
 | 29149 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29150 |     conftest$ac_exeext conftest.$ac_ext | 
 | 29151 | LIBS=$ac_check_framework_save_LIBS | 
 | 29152 | fi | 
 | 29153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 | 
 | 29154 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } | 
 | 29155 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : | 
 | 29156 |   framework=`expr $framework + 1` | 
 | 29157 | else | 
 | 29158 |   { $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] | 29159 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29160 | if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29161 |   $as_echo_n "(cached) " >&6 | 
 | 29162 | else | 
 | 29163 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29164 | LIBS="-lgs  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29166 | /* end confdefs.h.  */ | 
 | 29167 |  | 
 | 29168 | /* Override any GCC internal prototype to avoid an error. | 
 | 29169 |    Use char because int might match the return type of a GCC | 
 | 29170 |    builtin and then its argument prototype would still apply.  */ | 
 | 29171 | #ifdef __cplusplus | 
 | 29172 | extern "C" | 
 | 29173 | #endif | 
 | 29174 | char gsapi_new_instance (); | 
 | 29175 | int | 
 | 29176 | main () | 
 | 29177 | { | 
 | 29178 | return gsapi_new_instance (); | 
 | 29179 |   ; | 
 | 29180 |   return 0; | 
 | 29181 | } | 
 | 29182 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29183 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29184 |   ac_cv_lib_gs_gsapi_new_instance=yes | 
 | 29185 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29186 |   ac_cv_lib_gs_gsapi_new_instance=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29187 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29188 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29189 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29190 | LIBS=$ac_check_lib_save_LIBS | 
 | 29191 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29192 | { $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] | 29193 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29194 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29195 |   passed=`expr $passed + 1` | 
 | 29196 | else | 
 | 29197 |   failed=`expr $failed + 1` | 
 | 29198 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29199 |  | 
 | 29200 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29201 |     { $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] | 29202 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } | 
 | 29203 |     if test $passed -gt 0; then | 
 | 29204 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29205 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29206 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29207 |             have_gslib='no (failed tests)' | 
 | 29208 |         else | 
 | 29209 |             if test $framework -gt 0; then | 
 | 29210 |                 GS_LIBS='-framework Ghostscript' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29211 |                 gslib_framework='yes' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29212 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5 | 
 | 29213 | $as_echo "$as_me: yes, using framework." >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29214 |             else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29215 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5 | 
 | 29216 | $as_echo "$as_me: yes, using library." >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29217 |                 GS_LIBS='-lgs' | 
 | 29218 |             fi | 
 | 29219 |             LIBS="$GS_LIBS $LIBS" | 
 | 29220 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29221 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29222 |  | 
 | 29223 |             have_gslib='yes' | 
 | 29224 |         fi | 
 | 29225 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29226 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29227 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29228 |     fi | 
 | 29229 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29230 |  if test "$have_gslib" = 'yes'; then | 
 | 29231 |   GS_DELEGATE_TRUE= | 
 | 29232 |   GS_DELEGATE_FALSE='#' | 
 | 29233 | else | 
 | 29234 |   GS_DELEGATE_TRUE='#' | 
 | 29235 |   GS_DELEGATE_FALSE= | 
 | 29236 | fi | 
 | 29237 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29238 |  | 
 | 29239 |  | 
 | 29240 | # Set default font search path | 
 | 29241 |  | 
 | 29242 | # Check whether --with-fontpath was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29243 | if test "${with_fontpath+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29244 |   withval=$with_fontpath; with_fontpath=$withval | 
 | 29245 | else | 
 | 29246 |   with_fontpath='' | 
 | 29247 | fi | 
 | 29248 |  | 
 | 29249 |  | 
 | 29250 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then | 
 | 29251 |     with_fontpath='' | 
 | 29252 | else | 
 | 29253 |  | 
 | 29254 | cat >>confdefs.h <<_ACEOF | 
 | 29255 | #define MAGICK_FONT_PATH "$with_fontpath" | 
 | 29256 | _ACEOF | 
 | 29257 |  | 
 | 29258 | fi | 
 | 29259 | if test "$with_fontpath=" != ''; then | 
 | 29260 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " | 
 | 29261 | fi | 
 | 29262 |  | 
 | 29263 | # Set Ghostscript font directory | 
 | 29264 |  | 
 | 29265 | # Check whether --with-gs-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29266 | if test "${with_gs_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29267 |   withval=$with_gs_font_dir; with_gs_font_dir=$withval | 
 | 29268 | else | 
 | 29269 |   with_gs_font_dir='default' | 
 | 29270 | fi | 
 | 29271 |  | 
 | 29272 |  | 
 | 29273 | if test "$with_gs_font_dir" != 'default'; then | 
 | 29274 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " | 
 | 29275 | fi | 
 | 29276 |  | 
 | 29277 |  | 
 | 29278 | # | 
 | 29279 | # Check for GVC delegate library. | 
 | 29280 | # | 
 | 29281 |  | 
 | 29282 | # Check whether --with-gvc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29283 | if test "${with_gvc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29284 |   withval=$with_gvc; with_gvc=$withval | 
 | 29285 | else | 
 | 29286 |   with_gvc='yes' | 
 | 29287 | fi | 
 | 29288 |  | 
 | 29289 |  | 
 | 29290 | if test "$with_gvc" != 'yes'; then | 
 | 29291 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " | 
 | 29292 | fi | 
 | 29293 |  | 
 | 29294 | GVC_PKG="" | 
 | 29295 | if test "x$with_gvc" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29296 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29297 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29298 |  | 
 | 29299 | pkg_failed=no | 
 | 29300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 | 
 | 29301 | $as_echo_n "checking for GVC... " >&6; } | 
 | 29302 |  | 
 | 29303 | if test -n "$GVC_CFLAGS"; then | 
 | 29304 |     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" | 
 | 29305 |  elif test -n "$PKG_CONFIG"; then | 
 | 29306 |     if test -n "$PKG_CONFIG" && \ | 
 | 29307 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
 | 29308 |   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
 | 29309 |   ac_status=$? | 
 | 29310 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 29311 |   test $ac_status = 0; }; then | 
 | 29312 |   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` | 
 | 29313 | else | 
 | 29314 |   pkg_failed=yes | 
 | 29315 | fi | 
 | 29316 |  else | 
 | 29317 |     pkg_failed=untried | 
 | 29318 | fi | 
 | 29319 | if test -n "$GVC_LIBS"; then | 
 | 29320 |     pkg_cv_GVC_LIBS="$GVC_LIBS" | 
 | 29321 |  elif test -n "$PKG_CONFIG"; then | 
 | 29322 |     if test -n "$PKG_CONFIG" && \ | 
 | 29323 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
 | 29324 |   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
 | 29325 |   ac_status=$? | 
 | 29326 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 29327 |   test $ac_status = 0; }; then | 
 | 29328 |   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` | 
 | 29329 | else | 
 | 29330 |   pkg_failed=yes | 
 | 29331 | fi | 
 | 29332 |  else | 
 | 29333 |     pkg_failed=untried | 
 | 29334 | fi | 
 | 29335 |  | 
 | 29336 |  | 
 | 29337 |  | 
 | 29338 | if test $pkg_failed = yes; then | 
 | 29339 |  | 
 | 29340 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 29341 |         _pkg_short_errors_supported=yes | 
 | 29342 | else | 
 | 29343 |         _pkg_short_errors_supported=no | 
 | 29344 | fi | 
 | 29345 |         if test $_pkg_short_errors_supported = yes; then | 
 | 29346 | 	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` | 
 | 29347 |         else | 
 | 29348 | 	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` | 
 | 29349 |         fi | 
 | 29350 | 	# Put the nasty error message in config.log where it belongs | 
 | 29351 | 	echo "$GVC_PKG_ERRORS" >&5 | 
 | 29352 |  | 
 | 29353 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 29354 | $as_echo "no" >&6; } | 
 | 29355 |                 have_gvc=no | 
 | 29356 | elif test $pkg_failed = untried; then | 
 | 29357 | 	have_gvc=no | 
 | 29358 | else | 
 | 29359 | 	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS | 
 | 29360 | 	GVC_LIBS=$pkg_cv_GVC_LIBS | 
 | 29361 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 29362 | $as_echo "yes" >&6; } | 
 | 29363 | 	have_gvc=yes | 
 | 29364 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29365 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29366 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29367 | fi | 
 | 29368 |  | 
 | 29369 | if test "$have_gvc" = 'yes'; then | 
 | 29370 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29371 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29372 |  | 
 | 29373 |     if test "$with_modules" = 'no'; then | 
 | 29374 |         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" | 
 | 29375 |     fi | 
 | 29376 | fi | 
 | 29377 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29378 |  if test "$have_gvc" = 'yes'; then | 
 | 29379 |   GVC_DELEGATE_TRUE= | 
 | 29380 |   GVC_DELEGATE_FALSE='#' | 
 | 29381 | else | 
 | 29382 |   GVC_DELEGATE_TRUE='#' | 
 | 29383 |   GVC_DELEGATE_FALSE= | 
 | 29384 | fi | 
 | 29385 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29386 |  | 
 | 29387 |  | 
 | 29388 |  | 
 | 29389 |  | 
 | 29390 | # | 
 | 29391 | # Check for JBIG delegate library. | 
 | 29392 | # | 
 | 29393 |  | 
 | 29394 |  | 
 | 29395 | # Check whether --with-jbig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29396 | if test "${with_jbig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29397 |   withval=$with_jbig; with_jbig=$withval | 
 | 29398 | else | 
 | 29399 |   with_jbig='yes' | 
 | 29400 | fi | 
 | 29401 |  | 
 | 29402 |  | 
 | 29403 | have_jbig='no' | 
 | 29404 | JBIG_LIBS='' | 
 | 29405 | if test "$with_jbig" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29406 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29407 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29408 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29409 | $as_echo_n "checking for JBIG... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29410 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29411 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29412 |     failed=0 | 
 | 29413 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29414 |     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29415 | if test "x$ac_cv_header_jbig_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29416 |   passed=`expr $passed + 1` | 
 | 29417 | else | 
 | 29418 |   failed=`expr $failed + 1` | 
 | 29419 | fi | 
 | 29420 |  | 
 | 29421 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29422 |     { $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] | 29423 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29424 | if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29425 |   $as_echo_n "(cached) " >&6 | 
 | 29426 | else | 
 | 29427 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29428 | LIBS="-ljbig  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29430 | /* end confdefs.h.  */ | 
 | 29431 |  | 
 | 29432 | /* Override any GCC internal prototype to avoid an error. | 
 | 29433 |    Use char because int might match the return type of a GCC | 
 | 29434 |    builtin and then its argument prototype would still apply.  */ | 
 | 29435 | #ifdef __cplusplus | 
 | 29436 | extern "C" | 
 | 29437 | #endif | 
 | 29438 | char jbg_dec_init (); | 
 | 29439 | int | 
 | 29440 | main () | 
 | 29441 | { | 
 | 29442 | return jbg_dec_init (); | 
 | 29443 |   ; | 
 | 29444 |   return 0; | 
 | 29445 | } | 
 | 29446 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29447 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29448 |   ac_cv_lib_jbig_jbg_dec_init=yes | 
 | 29449 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29450 |   ac_cv_lib_jbig_jbg_dec_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29451 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29452 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29453 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29454 | LIBS=$ac_check_lib_save_LIBS | 
 | 29455 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29456 | { $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] | 29457 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29458 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29459 |   passed=`expr $passed + 1` | 
 | 29460 | else | 
 | 29461 |   failed=`expr $failed + 1` | 
 | 29462 | fi | 
 | 29463 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29464 |     { $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] | 29465 | $as_echo_n "checking if JBIG package is complete... " >&6; } | 
 | 29466 |     if test $passed -gt 0; then | 
 | 29467 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29468 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29469 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29470 |             have_jbig='no (failed tests)' | 
 | 29471 |         else | 
 | 29472 |             JBIG_LIBS='-ljbig' | 
 | 29473 |             LIBS="$JBIG_LIBS $LIBS" | 
 | 29474 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29475 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29476 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29477 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 29478 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29479 |             have_jbig='yes' | 
 | 29480 |         fi | 
 | 29481 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29482 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29483 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29484 |     fi | 
 | 29485 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29486 |  if test "$have_jbig" = 'yes'; then | 
 | 29487 |   JBIG_DELEGATE_TRUE= | 
 | 29488 |   JBIG_DELEGATE_FALSE='#' | 
 | 29489 | else | 
 | 29490 |   JBIG_DELEGATE_TRUE='#' | 
 | 29491 |   JBIG_DELEGATE_FALSE= | 
 | 29492 | fi | 
 | 29493 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29494 |  | 
 | 29495 |  | 
 | 29496 |  | 
 | 29497 | # | 
 | 29498 | # Check for JPEG delegate library. | 
 | 29499 | # | 
 | 29500 |  | 
 | 29501 | # Check whether --with-jpeg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29502 | if test "${with_jpeg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29503 |   withval=$with_jpeg; with_jpeg=$withval | 
 | 29504 | else | 
 | 29505 |   with_jpeg='yes' | 
 | 29506 | fi | 
 | 29507 |  | 
 | 29508 |  | 
 | 29509 | if test "$with_jpeg" != 'yes'; then | 
 | 29510 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " | 
 | 29511 | fi | 
 | 29512 |  | 
 | 29513 | have_jpeg='no' | 
 | 29514 | JPEG_LIBS='' | 
 | 29515 | if test "$with_jpeg" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29516 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29517 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29518 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29519 | $as_echo_n "checking for JPEG... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29520 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29521 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29522 |     failed=0 | 
 | 29523 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29524 |     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29525 | if test "x$ac_cv_header_jconfig_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29526 |   passed=`expr $passed + 1` | 
 | 29527 | else | 
 | 29528 |   failed=`expr $failed + 1` | 
 | 29529 | fi | 
 | 29530 |  | 
 | 29531 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29532 |     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29533 | if test "x$ac_cv_header_jerror_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29534 |   passed=`expr $passed + 1` | 
 | 29535 | else | 
 | 29536 |   failed=`expr $failed + 1` | 
 | 29537 | fi | 
 | 29538 |  | 
 | 29539 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29540 |     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29541 | if test "x$ac_cv_header_jmorecfg_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29542 |   passed=`expr $passed + 1` | 
 | 29543 | else | 
 | 29544 |   failed=`expr $failed + 1` | 
 | 29545 | fi | 
 | 29546 |  | 
 | 29547 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29548 |     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29549 | if test "x$ac_cv_header_jpeglib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29550 |   passed=`expr $passed + 1` | 
 | 29551 | else | 
 | 29552 |   failed=`expr $failed + 1` | 
 | 29553 | fi | 
 | 29554 |  | 
 | 29555 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29556 |     { $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] | 29557 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29558 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29559 |   $as_echo_n "(cached) " >&6 | 
 | 29560 | else | 
 | 29561 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29562 | LIBS="-ljpeg  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29564 | /* end confdefs.h.  */ | 
 | 29565 |  | 
 | 29566 | /* Override any GCC internal prototype to avoid an error. | 
 | 29567 |    Use char because int might match the return type of a GCC | 
 | 29568 |    builtin and then its argument prototype would still apply.  */ | 
 | 29569 | #ifdef __cplusplus | 
 | 29570 | extern "C" | 
 | 29571 | #endif | 
 | 29572 | char jpeg_read_header (); | 
 | 29573 | int | 
 | 29574 | main () | 
 | 29575 | { | 
 | 29576 | return jpeg_read_header (); | 
 | 29577 |   ; | 
 | 29578 |   return 0; | 
 | 29579 | } | 
 | 29580 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29581 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29582 |   ac_cv_lib_jpeg_jpeg_read_header=yes | 
 | 29583 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29584 |   ac_cv_lib_jpeg_jpeg_read_header=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29585 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29586 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29587 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29588 | LIBS=$ac_check_lib_save_LIBS | 
 | 29589 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29590 | { $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] | 29591 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29592 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29593 |   passed=`expr $passed + 1` | 
 | 29594 | else | 
 | 29595 |   failed=`expr $failed + 1` | 
 | 29596 | fi | 
 | 29597 |  | 
 | 29598 |  | 
 | 29599 | # Test for compatible JPEG library | 
 | 29600 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29601 | { $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] | 29602 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29603 | if ${ac_cv_jpeg_version_ok+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29604 |   $as_echo_n "(cached) " >&6 | 
 | 29605 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29606 |   cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29607 | /* end confdefs.h.  */ | 
 | 29608 | #include <stdio.h> | 
 | 29609 | #include <stdlib.h> | 
 | 29610 | #include <jpeglib.h> | 
 | 29611 |  | 
 | 29612 | int | 
 | 29613 | main () | 
 | 29614 | { | 
 | 29615 |  | 
 | 29616 | #if JPEG_LIB_VERSION < 62 | 
 | 29617 | #error IJG JPEG library must be version 6b or newer! | 
 | 29618 | #endif | 
 | 29619 | return 0; | 
 | 29620 |  | 
 | 29621 |   ; | 
 | 29622 |   return 0; | 
 | 29623 | } | 
 | 29624 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29625 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29626 |   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` | 
 | 29627 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29628 |   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29629 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 29631 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29632 | { $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] | 29633 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } | 
 | 29634 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29635 |     { $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] | 29636 | $as_echo_n "checking if JPEG package is complete... " >&6; } | 
 | 29637 |     if test $passed -gt 0; then | 
 | 29638 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29639 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29640 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29641 |             have_jpeg='no (failed tests)' | 
 | 29642 |         else | 
 | 29643 |             JPEG_LIBS='-ljpeg' | 
 | 29644 |             LIBS="$JPEG_LIBS $LIBS" | 
 | 29645 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29646 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29647 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29648 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 29649 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29650 |             have_jpeg='yes' | 
 | 29651 |         fi | 
 | 29652 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29653 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29654 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29655 |     fi | 
 | 29656 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29657 |  if test "$have_jpeg" = 'yes'; then | 
 | 29658 |   JPEG_DELEGATE_TRUE= | 
 | 29659 |   JPEG_DELEGATE_FALSE='#' | 
 | 29660 | else | 
 | 29661 |   JPEG_DELEGATE_TRUE='#' | 
 | 29662 |   JPEG_DELEGATE_FALSE= | 
 | 29663 | fi | 
 | 29664 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29665 |  | 
 | 29666 |  | 
 | 29667 |  | 
 | 29668 | # | 
 | 29669 | # Check for JPEG Version 2 delegate library. | 
 | 29670 | # | 
 | 29671 |  | 
 | 29672 | # Check whether --with-jp2 was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29673 | if test "${with_jp2+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29674 |   withval=$with_jp2; with_jp2=$withval | 
 | 29675 | else | 
 | 29676 |   with_jp2='yes' | 
 | 29677 | fi | 
 | 29678 |  | 
 | 29679 |  | 
 | 29680 | if test "$with_jp2" != 'yes'; then | 
 | 29681 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " | 
 | 29682 | fi | 
 | 29683 |  | 
 | 29684 | have_jp2='no' | 
 | 29685 | JP2_LIBS='' | 
 | 29686 | if test "$with_jp2" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29687 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29688 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29689 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29690 | $as_echo_n "checking for JPEG Version 2... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29691 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29692 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29693 |     failed=0 | 
 | 29694 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29695 |     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29696 | if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29697 |   passed=`expr $passed + 1` | 
 | 29698 | else | 
 | 29699 |   failed=`expr $failed + 1` | 
 | 29700 | fi | 
 | 29701 |  | 
 | 29702 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29703 |     { $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] | 29704 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29705 | if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29706 |   $as_echo_n "(cached) " >&6 | 
 | 29707 | else | 
 | 29708 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29709 | LIBS="-ljasper  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29711 | /* end confdefs.h.  */ | 
 | 29712 |  | 
 | 29713 | /* Override any GCC internal prototype to avoid an error. | 
 | 29714 |    Use char because int might match the return type of a GCC | 
 | 29715 |    builtin and then its argument prototype would still apply.  */ | 
 | 29716 | #ifdef __cplusplus | 
 | 29717 | extern "C" | 
 | 29718 | #endif | 
 | 29719 | char jas_stream_fopen (); | 
 | 29720 | int | 
 | 29721 | main () | 
 | 29722 | { | 
 | 29723 | return jas_stream_fopen (); | 
 | 29724 |   ; | 
 | 29725 |   return 0; | 
 | 29726 | } | 
 | 29727 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29728 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29729 |   ac_cv_lib_jasper_jas_stream_fopen=yes | 
 | 29730 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29731 |   ac_cv_lib_jasper_jas_stream_fopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29732 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29733 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29734 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29735 | LIBS=$ac_check_lib_save_LIBS | 
 | 29736 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29737 | { $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] | 29738 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29739 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29740 |   passed=`expr $passed + 1` | 
 | 29741 | else | 
 | 29742 |   failed=`expr $failed + 1` | 
 | 29743 | fi | 
 | 29744 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29745 |     { $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] | 29746 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } | 
 | 29747 |     if test $passed -gt 0; then | 
 | 29748 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29749 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29750 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29751 |             have_jp2='no (failed tests)' | 
 | 29752 |         else | 
 | 29753 |             JP2_LIBS='-ljasper' | 
 | 29754 |             LIBS="$JP2_LIBS $LIBS" | 
 | 29755 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29756 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29757 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29758 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 29759 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29760 |             have_jp2='yes' | 
 | 29761 |         fi | 
 | 29762 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29763 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29764 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29765 |     fi | 
 | 29766 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29767 |  if test "$have_jp2" = 'yes'; then | 
 | 29768 |   JP2_DELEGATE_TRUE= | 
 | 29769 |   JP2_DELEGATE_FALSE='#' | 
 | 29770 | else | 
 | 29771 |   JP2_DELEGATE_TRUE='#' | 
 | 29772 |   JP2_DELEGATE_FALSE= | 
 | 29773 | fi | 
 | 29774 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29775 |  | 
 | 29776 |  | 
 | 29777 |  | 
 | 29778 | # | 
 | 29779 | # Check for LCMS delegate library. | 
 | 29780 | # | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29781 | # Disable LCMS. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29782 |  | 
 | 29783 | # Check whether --with-lcms was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29784 | if test "${with_lcms+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29785 |   withval=$with_lcms; with_lcms=$withval | 
 | 29786 | else | 
 | 29787 |   with_lcms='yes' | 
 | 29788 | fi | 
 | 29789 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29790 | if test "$with_lcms" != 'yes' ; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29791 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " | 
 | 29792 | fi | 
 | 29793 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29794 | # Disable LCMS2. | 
 | 29795 |  | 
 | 29796 | # Check whether --with-lcms2 was given. | 
 | 29797 | if test "${with_lcms2+set}" = set; then : | 
 | 29798 |   withval=$with_lcms2; with_lcms2=$withval | 
 | 29799 | else | 
 | 29800 |   with_lcms2='yes' | 
 | 29801 | fi | 
 | 29802 |  | 
 | 29803 | if test "$with_lcms2" != 'yes' ; then | 
 | 29804 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " | 
 | 29805 | fi | 
 | 29806 |  | 
 | 29807 | have_lcms2='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29808 | LCMS_LIBS='' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29809 | if test "$with_lcms2" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29810 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29811 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29812 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 | 
 | 29813 | $as_echo_n "checking for LCMS v2... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29814 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29815 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29816 |     failed=0 | 
 | 29817 |     passed=0 | 
 | 29818 |     have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29819 |  | 
 | 29820 |     # Check for <lcms2.h> | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29821 |     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29822 | if test "x$ac_cv_header_lcms2_h" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29823 |   have_lcms_header='yes' | 
 | 29824 | fi | 
 | 29825 |  | 
 | 29826 |  | 
 | 29827 |     if test "$have_lcms_header" = 'yes'; then | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29828 |  | 
 | 29829 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h | 
 | 29830 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29831 |        passed=`expr $passed + 1` | 
 | 29832 |     fi | 
 | 29833 |  | 
 | 29834 |     # Check for <lcms2/lcms2.h) | 
 | 29835 |     if test "$have_lcms_header" != 'yes'; then | 
 | 29836 |       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29837 | if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29838 |   have_lcms_header='yes' | 
 | 29839 | fi | 
 | 29840 |  | 
 | 29841 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29842 |       if test "$have_lcms_header" = 'yes'; then | 
 | 29843 |         passed=`expr $passed + 1` | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29844 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29845 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29846 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29847 |       fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29848 |     fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29849 |  | 
 | 29850 |     # Failed to find lcms header? | 
 | 29851 |     if test "$have_lcms_header" != 'yes'; then | 
 | 29852 |       failed=`expr $failed + 1` | 
 | 29853 |     fi | 
 | 29854 |  | 
 | 29855 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 | 
 | 29856 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29857 | if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29858 |   $as_echo_n "(cached) " >&6 | 
 | 29859 | else | 
 | 29860 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29861 | LIBS="-llcms2  $LIBS" | 
 | 29862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 29863 | /* end confdefs.h.  */ | 
 | 29864 |  | 
 | 29865 | /* Override any GCC internal prototype to avoid an error. | 
 | 29866 |    Use char because int might match the return type of a GCC | 
 | 29867 |    builtin and then its argument prototype would still apply.  */ | 
 | 29868 | #ifdef __cplusplus | 
 | 29869 | extern "C" | 
 | 29870 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29871 | char cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29872 | int | 
 | 29873 | main () | 
 | 29874 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29875 | return cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29876 |   ; | 
 | 29877 |   return 0; | 
 | 29878 | } | 
 | 29879 | _ACEOF | 
 | 29880 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29881 |   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29882 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29883 |   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29884 | fi | 
 | 29885 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 29886 |     conftest$ac_exeext conftest.$ac_ext | 
 | 29887 | LIBS=$ac_check_lib_save_LIBS | 
 | 29888 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 | 
 | 29890 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29891 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29892 |   passed=`expr $passed + 1` | 
 | 29893 | else | 
 | 29894 |   failed=`expr $failed + 1` | 
 | 29895 | fi | 
 | 29896 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29897 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 | 
 | 29898 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29899 |     if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29900 |       if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29901 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 29902 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29903 |         have_lcms2='no (failed tests)' | 
 | 29904 |       else | 
 | 29905 |         LCMS_LIBS='-llcms2' | 
 | 29906 |         LIBS="$LCMS_LIBS $LIBS" | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29907 |         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 29908 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29909 |         have_lcms2='yes' | 
 | 29910 |       fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29911 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29912 |       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 29913 | $as_echo "$as_me: no" >&6;} | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29914 |     fi | 
 | 29915 | fi | 
 | 29916 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29917 | # | 
 | 29918 | # Check for LCMS v1 (1.11 or later) | 
 | 29919 | # | 
 | 29920 | if test $have_lcms2 = 'yes'; then | 
 | 29921 |   with_lcms='no' | 
 | 29922 | fi | 
 | 29923 |  | 
 | 29924 | have_lcms='no' | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29925 | if test "$with_lcms" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29926 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 29927 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29928 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 | 
 | 29929 | $as_echo_n "checking for LCMS v1.1X... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 29930 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 29931 | $as_echo "$as_me: " >&6;} | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29932 |     failed=0 | 
 | 29933 |     passed=0 | 
 | 29934 |     have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29935 |  | 
 | 29936 |     # Check for <lcms.h> | 
 | 29937 |     if test "$have_lcms_header" != 'yes'; then | 
 | 29938 |       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29939 | if test "x$ac_cv_header_lcms_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29940 |   have_lcms_header='yes' | 
 | 29941 | fi | 
 | 29942 |  | 
 | 29943 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29944 |       if test "$have_lcms_header" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29945 |         passed=`expr $passed + 1` | 
 | 29946 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29947 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29948 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29949 |       fi | 
 | 29950 |     fi | 
 | 29951 |  | 
 | 29952 |     # Check for <lcms/lcms.h> | 
 | 29953 |     if test "$have_lcms_header" != 'yes'; then | 
 | 29954 |       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29955 | if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29956 |   have_lcms_header='yes' | 
 | 29957 | fi | 
 | 29958 |  | 
 | 29959 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29960 |       if test "$have_lcms_header" = 'yes'; then | 
 | 29961 |         passed=`expr $passed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29962 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29963 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29964 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29965 |       fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29966 |     fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29967 |  | 
 | 29968 |     # Failed to find lcms header? | 
 | 29969 |     if test "$have_lcms_header" != 'yes'; then | 
 | 29970 |       failed=`expr $failed + 1` | 
 | 29971 |     fi | 
 | 29972 |  | 
 | 29973 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 | 
 | 29974 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29975 | if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29976 |   $as_echo_n "(cached) " >&6 | 
 | 29977 | else | 
 | 29978 |   ac_check_lib_save_LIBS=$LIBS | 
 | 29979 | LIBS="-llcms  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29981 | /* end confdefs.h.  */ | 
 | 29982 |  | 
 | 29983 | /* Override any GCC internal prototype to avoid an error. | 
 | 29984 |    Use char because int might match the return type of a GCC | 
 | 29985 |    builtin and then its argument prototype would still apply.  */ | 
 | 29986 | #ifdef __cplusplus | 
 | 29987 | extern "C" | 
 | 29988 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29989 | char cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29990 | int | 
 | 29991 | main () | 
 | 29992 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29993 | return cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29994 |   ; | 
 | 29995 |   return 0; | 
 | 29996 | } | 
 | 29997 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29998 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29999 |   ac_cv_lib_lcms_cmsSetErrorHandler=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30000 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30001 |   ac_cv_lib_lcms_cmsSetErrorHandler=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30002 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30003 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30004 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30005 | LIBS=$ac_check_lib_save_LIBS | 
 | 30006 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 | 
 | 30008 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30009 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30010 |   passed=`expr $passed + 1` | 
 | 30011 | else | 
 | 30012 |   failed=`expr $failed + 1` | 
 | 30013 | fi | 
 | 30014 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30015 |     { $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] | 30016 | $as_echo_n "checking if LCMS package is complete... " >&6; } | 
 | 30017 |     if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30018 |       if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30019 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 30020 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30021 |         have_lcms='no (failed tests)' | 
 | 30022 |       else | 
 | 30023 |         LCMS_LIBS='-llcms' | 
 | 30024 |         LIBS="$LCMS_LIBS $LIBS" | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30025 |         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 30026 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30027 |         have_lcms='yes' | 
 | 30028 |       fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30029 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30030 |       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 30031 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30032 |     fi | 
 | 30033 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30034 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30035 |  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
 | 30036 |   LCMS_DELEGATE_TRUE= | 
 | 30037 |   LCMS_DELEGATE_FALSE='#' | 
 | 30038 | else | 
 | 30039 |   LCMS_DELEGATE_TRUE='#' | 
 | 30040 |   LCMS_DELEGATE_FALSE= | 
 | 30041 | fi | 
 | 30042 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30043 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
 | 30044 |  | 
 | 30045 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h | 
 | 30046 |  | 
 | 30047 | fi | 
 | 30048 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30049 |  | 
 | 30050 |  | 
 | 30051 |  | 
 | 30052 | # | 
 | 30053 | # Check for the LQR (Liquid Rescale) delegate library. | 
 | 30054 | # | 
 | 30055 |  | 
 | 30056 | # Check whether --with-lqr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30057 | if test "${with_lqr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30058 |   withval=$with_lqr; with_lqr=$withval | 
 | 30059 | else | 
 | 30060 |   with_lqr='yes' | 
 | 30061 | fi | 
 | 30062 |  | 
 | 30063 |  | 
 | 30064 | if test "$with_lqr" != 'yes'; then | 
 | 30065 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " | 
 | 30066 | fi | 
 | 30067 |  | 
 | 30068 | have_lqr='no' | 
 | 30069 | LQR_CFLAGS="" | 
 | 30070 | LQR_LIBS="" | 
 | 30071 | LQR_PKG="" | 
 | 30072 | if test "x$with_lqr" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30073 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 30074 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30075 |  | 
 | 30076 | pkg_failed=no | 
 | 30077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 | 
 | 30078 | $as_echo_n "checking for LQR... " >&6; } | 
 | 30079 |  | 
 | 30080 | if test -n "$LQR_CFLAGS"; then | 
 | 30081 |     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" | 
 | 30082 |  elif test -n "$PKG_CONFIG"; then | 
 | 30083 |     if test -n "$PKG_CONFIG" && \ | 
 | 30084 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
 | 30085 |   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
 | 30086 |   ac_status=$? | 
 | 30087 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30088 |   test $ac_status = 0; }; then | 
 | 30089 |   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` | 
 | 30090 | else | 
 | 30091 |   pkg_failed=yes | 
 | 30092 | fi | 
 | 30093 |  else | 
 | 30094 |     pkg_failed=untried | 
 | 30095 | fi | 
 | 30096 | if test -n "$LQR_LIBS"; then | 
 | 30097 |     pkg_cv_LQR_LIBS="$LQR_LIBS" | 
 | 30098 |  elif test -n "$PKG_CONFIG"; then | 
 | 30099 |     if test -n "$PKG_CONFIG" && \ | 
 | 30100 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
 | 30101 |   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
 | 30102 |   ac_status=$? | 
 | 30103 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30104 |   test $ac_status = 0; }; then | 
 | 30105 |   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` | 
 | 30106 | else | 
 | 30107 |   pkg_failed=yes | 
 | 30108 | fi | 
 | 30109 |  else | 
 | 30110 |     pkg_failed=untried | 
 | 30111 | fi | 
 | 30112 |  | 
 | 30113 |  | 
 | 30114 |  | 
 | 30115 | if test $pkg_failed = yes; then | 
 | 30116 |  | 
 | 30117 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 30118 |         _pkg_short_errors_supported=yes | 
 | 30119 | else | 
 | 30120 |         _pkg_short_errors_supported=no | 
 | 30121 | fi | 
 | 30122 |         if test $_pkg_short_errors_supported = yes; then | 
 | 30123 | 	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
 | 30124 |         else | 
 | 30125 | 	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
 | 30126 |         fi | 
 | 30127 | 	# Put the nasty error message in config.log where it belongs | 
 | 30128 | 	echo "$LQR_PKG_ERRORS" >&5 | 
 | 30129 |  | 
 | 30130 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 30131 | $as_echo "no" >&6; } | 
 | 30132 |                 have_lqr=no | 
 | 30133 | elif test $pkg_failed = untried; then | 
 | 30134 | 	have_lqr=no | 
 | 30135 | else | 
 | 30136 | 	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS | 
 | 30137 | 	LQR_LIBS=$pkg_cv_LQR_LIBS | 
 | 30138 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 30139 | $as_echo "yes" >&6; } | 
 | 30140 | 	have_lqr=yes | 
 | 30141 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30142 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 30143 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30144 | fi | 
 | 30145 |  | 
 | 30146 | if test "$have_lqr" = 'yes'; then | 
 | 30147 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30148 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30149 |  | 
 | 30150 |     CFLAGS="$LQR_CFLAGS $CFLAGS" | 
 | 30151 | fi | 
 | 30152 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30153 |  if test "$have_lqr" = 'yes'; then | 
 | 30154 |   LQR_DELEGATE_TRUE= | 
 | 30155 |   LQR_DELEGATE_FALSE='#' | 
 | 30156 | else | 
 | 30157 |   LQR_DELEGATE_TRUE='#' | 
 | 30158 |   LQR_DELEGATE_FALSE= | 
 | 30159 | fi | 
 | 30160 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30161 |  | 
 | 30162 |  | 
 | 30163 |  | 
 | 30164 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30165 | # Disable LZMA (lzma library) | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30166 |  | 
 | 30167 | # Check whether --with-lzma was given. | 
 | 30168 | if test "${with_lzma+set}" = set; then : | 
 | 30169 |   withval=$with_lzma; with_lzma=$withval | 
 | 30170 | else | 
 | 30171 |   with_lzma='yes' | 
 | 30172 | fi | 
 | 30173 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30174 | if test "$with_lzma" != 'yes' ; then | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30175 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " | 
 | 30176 | fi | 
 | 30177 |  | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30178 | LZMA_PKG="" | 
 | 30179 | if test "x$with_lzma" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30180 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 30181 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30182 |  | 
 | 30183 | pkg_failed=no | 
 | 30184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30185 | $as_echo_n "checking for LZMA... " >&6; } | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30186 |  | 
 | 30187 | if test -n "$LZMA_CFLAGS"; then | 
 | 30188 |     pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" | 
 | 30189 |  elif test -n "$PKG_CONFIG"; then | 
 | 30190 |     if test -n "$PKG_CONFIG" && \ | 
 | 30191 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 | 
 | 30192 |   ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 | 
 | 30193 |   ac_status=$? | 
 | 30194 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30195 |   test $ac_status = 0; }; then | 
 | 30196 |   pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` | 
 | 30197 | else | 
 | 30198 |   pkg_failed=yes | 
 | 30199 | fi | 
 | 30200 |  else | 
 | 30201 |     pkg_failed=untried | 
 | 30202 | fi | 
 | 30203 | if test -n "$LZMA_LIBS"; then | 
 | 30204 |     pkg_cv_LZMA_LIBS="$LZMA_LIBS" | 
 | 30205 |  elif test -n "$PKG_CONFIG"; then | 
 | 30206 |     if test -n "$PKG_CONFIG" && \ | 
 | 30207 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 | 
 | 30208 |   ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 | 
 | 30209 |   ac_status=$? | 
 | 30210 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30211 |   test $ac_status = 0; }; then | 
 | 30212 |   pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` | 
 | 30213 | else | 
 | 30214 |   pkg_failed=yes | 
 | 30215 | fi | 
 | 30216 |  else | 
 | 30217 |     pkg_failed=untried | 
 | 30218 | fi | 
 | 30219 |  | 
 | 30220 |  | 
 | 30221 |  | 
 | 30222 | if test $pkg_failed = yes; then | 
 | 30223 |  | 
 | 30224 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 30225 |         _pkg_short_errors_supported=yes | 
 | 30226 | else | 
 | 30227 |         _pkg_short_errors_supported=no | 
 | 30228 | fi | 
 | 30229 |         if test $_pkg_short_errors_supported = yes; then | 
 | 30230 | 	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1` | 
 | 30231 |         else | 
 | 30232 | 	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1` | 
 | 30233 |         fi | 
 | 30234 | 	# Put the nasty error message in config.log where it belongs | 
 | 30235 | 	echo "$LZMA_PKG_ERRORS" >&5 | 
 | 30236 |  | 
 | 30237 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 30238 | $as_echo "no" >&6; } | 
 | 30239 |                 have_lzma=no | 
 | 30240 | elif test $pkg_failed = untried; then | 
 | 30241 | 	have_lzma=no | 
 | 30242 | else | 
 | 30243 | 	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS | 
 | 30244 | 	LZMA_LIBS=$pkg_cv_LZMA_LIBS | 
 | 30245 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 30246 | $as_echo "yes" >&6; } | 
 | 30247 | 	have_lzma=yes | 
 | 30248 | fi | 
 | 30249 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30250 | $as_echo "$as_me: " >&6;} | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30251 | fi | 
 | 30252 |  | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30253 | if test "$have_lzma" = 'yes'; then | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30254 |  | 
 | 30255 | $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h | 
 | 30256 |  | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30257 |     if test "$with_modules" = 'no'; then | 
 | 30258 |         CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS" | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30259 |     fi | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30260 | fi | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30261 |  | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30262 |  if test "$have_lzma" = 'yes'; then | 
 | 30263 |   LZMA_DELEGATE_TRUE= | 
 | 30264 |   LZMA_DELEGATE_FALSE='#' | 
 | 30265 | else | 
 | 30266 |   LZMA_DELEGATE_TRUE='#' | 
 | 30267 |   LZMA_DELEGATE_FALSE= | 
 | 30268 | fi | 
 | 30269 |  | 
 | 30270 |  | 
 | 30271 |  | 
 | 30272 |  | 
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30273 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30274 | # | 
 | 30275 | # Check for the OpenEXR delegate library. | 
 | 30276 | # | 
 | 30277 |  | 
 | 30278 | # Check whether --with-openexr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30279 | if test "${with_openexr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30280 |   withval=$with_openexr; with_openexr=$withval | 
 | 30281 | else | 
 | 30282 |   with_openexr='yes' | 
 | 30283 | fi | 
 | 30284 |  | 
 | 30285 |  | 
 | 30286 | if test "$with_openexr" != 'yes'; then | 
 | 30287 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " | 
 | 30288 | fi | 
 | 30289 |  | 
 | 30290 | have_openexr='no' | 
 | 30291 | OPENEXR_CFLAGS="" | 
 | 30292 | OPENEXR_LIBS="" | 
 | 30293 | OPENEXR_PKG="" | 
 | 30294 | if test "x$with_openexr" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30295 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 30296 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30297 |  | 
 | 30298 | pkg_failed=no | 
 | 30299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 | 
 | 30300 | $as_echo_n "checking for OPENEXR... " >&6; } | 
 | 30301 |  | 
 | 30302 | if test -n "$OPENEXR_CFLAGS"; then | 
 | 30303 |     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" | 
 | 30304 |  elif test -n "$PKG_CONFIG"; then | 
 | 30305 |     if test -n "$PKG_CONFIG" && \ | 
 | 30306 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
 | 30307 |   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
 | 30308 |   ac_status=$? | 
 | 30309 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30310 |   test $ac_status = 0; }; then | 
 | 30311 |   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` | 
 | 30312 | else | 
 | 30313 |   pkg_failed=yes | 
 | 30314 | fi | 
 | 30315 |  else | 
 | 30316 |     pkg_failed=untried | 
 | 30317 | fi | 
 | 30318 | if test -n "$OPENEXR_LIBS"; then | 
 | 30319 |     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" | 
 | 30320 |  elif test -n "$PKG_CONFIG"; then | 
 | 30321 |     if test -n "$PKG_CONFIG" && \ | 
 | 30322 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
 | 30323 |   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
 | 30324 |   ac_status=$? | 
 | 30325 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30326 |   test $ac_status = 0; }; then | 
 | 30327 |   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` | 
 | 30328 | else | 
 | 30329 |   pkg_failed=yes | 
 | 30330 | fi | 
 | 30331 |  else | 
 | 30332 |     pkg_failed=untried | 
 | 30333 | fi | 
 | 30334 |  | 
 | 30335 |  | 
 | 30336 |  | 
 | 30337 | if test $pkg_failed = yes; then | 
 | 30338 |  | 
 | 30339 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 30340 |         _pkg_short_errors_supported=yes | 
 | 30341 | else | 
 | 30342 |         _pkg_short_errors_supported=no | 
 | 30343 | fi | 
 | 30344 |         if test $_pkg_short_errors_supported = yes; then | 
 | 30345 | 	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
 | 30346 |         else | 
 | 30347 | 	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
 | 30348 |         fi | 
 | 30349 | 	# Put the nasty error message in config.log where it belongs | 
 | 30350 | 	echo "$OPENEXR_PKG_ERRORS" >&5 | 
 | 30351 |  | 
 | 30352 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 30353 | $as_echo "no" >&6; } | 
 | 30354 |                 have_openexr=no | 
 | 30355 | elif test $pkg_failed = untried; then | 
 | 30356 | 	have_openexr=no | 
 | 30357 | else | 
 | 30358 | 	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS | 
 | 30359 | 	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS | 
 | 30360 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 30361 | $as_echo "yes" >&6; } | 
 | 30362 | 	have_openexr=yes | 
 | 30363 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30364 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 30365 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30366 | fi | 
 | 30367 |  | 
 | 30368 | if test "$have_openexr" = 'yes'; then | 
 | 30369 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30370 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30371 |  | 
 | 30372 |     if test "$with_modules" = 'no'; then | 
 | 30373 |         CFLAGS="$OPENEXR_CFLAGS $CFLAGS" | 
 | 30374 |     fi | 
 | 30375 | fi | 
 | 30376 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30377 |  if test "$have_openexr" = 'yes'; then | 
 | 30378 |   OPENEXR_DELEGATE_TRUE= | 
 | 30379 |   OPENEXR_DELEGATE_FALSE='#' | 
 | 30380 | else | 
 | 30381 |   OPENEXR_DELEGATE_TRUE='#' | 
 | 30382 |   OPENEXR_DELEGATE_FALSE= | 
 | 30383 | fi | 
 | 30384 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30385 |  | 
 | 30386 |  | 
 | 30387 |  | 
 | 30388 |  | 
 | 30389 | # | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30390 | # Check for PANGO delegate library. | 
 | 30391 | # | 
 | 30392 |  | 
 | 30393 | # Check whether --with-pango was given. | 
 | 30394 | if test "${with_pango+set}" = set; then : | 
 | 30395 |   withval=$with_pango; with_pango=$withval | 
 | 30396 | else | 
 | 30397 |   with_pango=$have_x | 
 | 30398 | fi | 
 | 30399 |  | 
 | 30400 |  | 
 | 30401 | if test "$with_pango" != 'yes'; then | 
 | 30402 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " | 
 | 30403 | fi | 
 | 30404 |  | 
 | 30405 | have_pango='no' | 
 | 30406 | have_pangoft2='no' | 
 | 30407 | PANGO_CFLAGS="" | 
 | 30408 | PANGO_LIBS="" | 
 | 30409 | PANGO_PKG="" | 
 | 30410 | if test "x$with_pango" = "xyes"; then | 
 | 30411 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
 | 30412 | $as_echo "-------------------------------------------------------------" >&6; } | 
 | 30413 |  | 
 | 30414 | pkg_failed=no | 
 | 30415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 | 
 | 30416 | $as_echo_n "checking for PANGO... " >&6; } | 
 | 30417 |  | 
 | 30418 | if test -n "$PANGO_CFLAGS"; then | 
 | 30419 |     pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" | 
 | 30420 |  elif test -n "$PKG_CONFIG"; then | 
 | 30421 |     if test -n "$PKG_CONFIG" && \ | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30422 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5 | 
 | 30423 |   ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5 | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30424 |   ac_status=$? | 
 | 30425 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30426 |   test $ac_status = 0; }; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30427 |   pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null` | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30428 | else | 
 | 30429 |   pkg_failed=yes | 
 | 30430 | fi | 
 | 30431 |  else | 
 | 30432 |     pkg_failed=untried | 
 | 30433 | fi | 
 | 30434 | if test -n "$PANGO_LIBS"; then | 
 | 30435 |     pkg_cv_PANGO_LIBS="$PANGO_LIBS" | 
 | 30436 |  elif test -n "$PKG_CONFIG"; then | 
 | 30437 |     if test -n "$PKG_CONFIG" && \ | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30438 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5 | 
 | 30439 |   ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5 | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30440 |   ac_status=$? | 
 | 30441 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30442 |   test $ac_status = 0; }; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30443 |   pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null` | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30444 | else | 
 | 30445 |   pkg_failed=yes | 
 | 30446 | fi | 
 | 30447 |  else | 
 | 30448 |     pkg_failed=untried | 
 | 30449 | fi | 
 | 30450 |  | 
 | 30451 |  | 
 | 30452 |  | 
 | 30453 | if test $pkg_failed = yes; then | 
 | 30454 |  | 
 | 30455 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 30456 |         _pkg_short_errors_supported=yes | 
 | 30457 | else | 
 | 30458 |         _pkg_short_errors_supported=no | 
 | 30459 | fi | 
 | 30460 |         if test $_pkg_short_errors_supported = yes; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30461 | 	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1` | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30462 |         else | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30463 | 	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1` | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30464 |         fi | 
 | 30465 | 	# Put the nasty error message in config.log where it belongs | 
 | 30466 | 	echo "$PANGO_PKG_ERRORS" >&5 | 
 | 30467 |  | 
 | 30468 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 30469 | $as_echo "no" >&6; } | 
 | 30470 |                 have_pangoft2=no | 
 | 30471 | elif test $pkg_failed = untried; then | 
 | 30472 | 	have_pangoft2=no | 
 | 30473 | else | 
 | 30474 | 	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS | 
 | 30475 | 	PANGO_LIBS=$pkg_cv_PANGO_LIBS | 
 | 30476 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 30477 | $as_echo "yes" >&6; } | 
 | 30478 | 	have_pangoft2=yes | 
 | 30479 | fi | 
 | 30480 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
 | 30481 | $as_echo "" >&6; } | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30482 |  | 
 | 30483 | pkg_failed=no | 
 | 30484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 | 
 | 30485 | $as_echo_n "checking for PANGO... " >&6; } | 
 | 30486 |  | 
 | 30487 | if test -n "$PANGO_CFLAGS"; then | 
 | 30488 |     pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" | 
 | 30489 |  elif test -n "$PKG_CONFIG"; then | 
 | 30490 |     if test -n "$PKG_CONFIG" && \ | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30491 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 | 
 | 30492 |   ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30493 |   ac_status=$? | 
 | 30494 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30495 |   test $ac_status = 0; }; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30496 |   pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30497 | else | 
 | 30498 |   pkg_failed=yes | 
 | 30499 | fi | 
 | 30500 |  else | 
 | 30501 |     pkg_failed=untried | 
 | 30502 | fi | 
 | 30503 | if test -n "$PANGO_LIBS"; then | 
 | 30504 |     pkg_cv_PANGO_LIBS="$PANGO_LIBS" | 
 | 30505 |  elif test -n "$PKG_CONFIG"; then | 
 | 30506 |     if test -n "$PKG_CONFIG" && \ | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30507 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 | 
 | 30508 |   ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30509 |   ac_status=$? | 
 | 30510 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 30511 |   test $ac_status = 0; }; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30512 |   pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30513 | else | 
 | 30514 |   pkg_failed=yes | 
 | 30515 | fi | 
 | 30516 |  else | 
 | 30517 |     pkg_failed=untried | 
 | 30518 | fi | 
 | 30519 |  | 
 | 30520 |  | 
 | 30521 |  | 
 | 30522 | if test $pkg_failed = yes; then | 
 | 30523 |  | 
 | 30524 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 30525 |         _pkg_short_errors_supported=yes | 
 | 30526 | else | 
 | 30527 |         _pkg_short_errors_supported=no | 
 | 30528 | fi | 
 | 30529 |         if test $_pkg_short_errors_supported = yes; then | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30530 | 	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1` | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30531 |         else | 
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30532 | 	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1` | 
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30533 |         fi | 
 | 30534 | 	# Put the nasty error message in config.log where it belongs | 
 | 30535 | 	echo "$PANGO_PKG_ERRORS" >&5 | 
 | 30536 |  | 
 | 30537 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 30538 | $as_echo "no" >&6; } | 
 | 30539 |                 have_pango=no | 
 | 30540 | elif test $pkg_failed = untried; then | 
 | 30541 | 	have_pango=no | 
 | 30542 | else | 
 | 30543 | 	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS | 
 | 30544 | 	PANGO_LIBS=$pkg_cv_PANGO_LIBS | 
 | 30545 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 30546 | $as_echo "yes" >&6; } | 
 | 30547 | 	have_pango=yes | 
 | 30548 | fi | 
 | 30549 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
 | 30550 | $as_echo "" >&6; } | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30551 | fi | 
 | 30552 |  | 
 | 30553 | if test "$have_pango" = 'yes'; then | 
 | 30554 |  | 
 | 30555 | $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h | 
 | 30556 |  | 
 | 30557 |     if test "$with_modules" = 'no'; then | 
 | 30558 |         CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" | 
 | 30559 |     fi | 
 | 30560 | fi | 
 | 30561 |  | 
 | 30562 | if test "$have_pangoft2" = 'yes'; then | 
 | 30563 |  | 
 | 30564 | $as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h | 
 | 30565 |  | 
 | 30566 |     if test "$with_modules" = 'no'; then | 
 | 30567 |         CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS" | 
 | 30568 |     fi | 
 | 30569 | fi | 
 | 30570 |  | 
 | 30571 |  if test "$have_pango" = 'yes'; then | 
 | 30572 |   PANGO_DELEGATE_TRUE= | 
 | 30573 |   PANGO_DELEGATE_FALSE='#' | 
 | 30574 | else | 
 | 30575 |   PANGO_DELEGATE_TRUE='#' | 
 | 30576 |   PANGO_DELEGATE_FALSE= | 
 | 30577 | fi | 
 | 30578 |  | 
 | 30579 |  if test "$have_pangoft2" = 'yes'; then | 
 | 30580 |   PANGOFT2_DELEGATE_TRUE= | 
 | 30581 |   PANGOFT2_DELEGATE_FALSE='#' | 
 | 30582 | else | 
 | 30583 |   PANGOFT2_DELEGATE_TRUE='#' | 
 | 30584 |   PANGOFT2_DELEGATE_FALSE= | 
 | 30585 | fi | 
 | 30586 |  | 
 | 30587 |  | 
 | 30588 |  | 
 | 30589 |  | 
 | 30590 |  | 
 | 30591 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30592 | # Check for PNG delegate library. | 
 | 30593 | # | 
 | 30594 |  | 
 | 30595 | # Check whether --with-png was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30596 | if test "${with_png+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30597 |   withval=$with_png; with_png=$withval | 
 | 30598 | else | 
 | 30599 |   with_png='yes' | 
 | 30600 | fi | 
 | 30601 |  | 
 | 30602 |  | 
 | 30603 | if test "$with_png" != 'yes'; then | 
 | 30604 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " | 
 | 30605 | fi | 
 | 30606 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30607 | have_png='no' | 
 | 30608 | PNG_LIBS='' | 
 | 30609 |  | 
 | 30610 | if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30611 |   { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 30612 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30613 |   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 | 
 | 30614 | $as_echo_n "checking for PNG support ... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30615 |   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 30616 | $as_echo "$as_me: " >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30617 |   failed=0 | 
 | 30618 |   passed=0 | 
 | 30619 |   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" | 
 | 30620 | if test "x$ac_cv_header_png_h" = xyes; then : | 
 | 30621 |   passed=`expr $passed + 1` | 
 | 30622 | else | 
 | 30623 |   failed=`expr $failed + 1` | 
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30624 | fi | 
 | 30625 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30626 |  | 
 | 30627 |  | 
 | 30628 |   if test $passed -gt 0; then | 
 | 30629 |     for var in 5 4 2 '' ; do | 
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30630 |       if test "$have_png" = 'no' ; then | 
 | 30631 |         if test "x${var}" = 'x' ; then | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30632 |           pnglib='png' | 
 | 30633 |         else | 
 | 30634 |           pnglib="png1${var}" | 
 | 30635 |         fi | 
 | 30636 |  | 
 | 30637 | #       Test for compatible LIBPNG library | 
 | 30638 |         failed=0 | 
 | 30639 |         passed=0 | 
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30640 |         if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30641 |           if test "${pnglib}" != 'png' ; then | 
 | 30642 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 | 
 | 30643 | $as_echo_n "checking for LIBPNG1${var} support ... " >&6; } | 
 | 30644 |             cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30645 | /* end confdefs.h.  */ | 
 | 30646 | #include <stdio.h> | 
 | 30647 | #include <stdlib.h> | 
 | 30648 | #include <png.h> | 
 | 30649 |  | 
 | 30650 | int | 
 | 30651 | main () | 
 | 30652 | { | 
 | 30653 |  | 
 | 30654 | #if PNG_LIBPNG_VER_MINOR != ${var} | 
 | 30655 | #error LIBPNG library must be version 1${var}! | 
 | 30656 | Kaboom, Kaboom | 
 | 30657 | #endif | 
 | 30658 | return 0; | 
 | 30659 |  | 
 | 30660 |   ; | 
 | 30661 |   return 0; | 
 | 30662 | } | 
 | 30663 | _ACEOF | 
 | 30664 | if ac_fn_c_try_compile "$LINENO"; then : | 
 | 30665 |               ac_cv_libpng_ok='yes' | 
 | 30666 | else | 
 | 30667 |   ac_cv_libpng_ok='no' | 
 | 30668 | fi | 
 | 30669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
 | 30670 |             if test "$ac_cv_libpng_ok" = 'yes' ; then | 
 | 30671 |               passed=`expr $passed + 1` | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30672 |               { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 30673 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30674 |             else | 
 | 30675 |               failed=`expr $failed + 1` | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30676 |               { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 30677 | $as_echo "$as_me: no" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30678 |             fi | 
 | 30679 |           else | 
 | 30680 |             passed=`expr $passed + 1` | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30681 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 30682 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30683 |           fi | 
 | 30684 |         fi | 
 | 30685 |  | 
 | 30686 |         if test $passed -gt 0 -a $failed -le 0; then | 
 | 30687 |           if test "1${var}" = '15' ; then | 
 | 30688 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 | 
 | 30689 | $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } | 
 | 30690 | if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : | 
 | 30691 |   $as_echo_n "(cached) " >&6 | 
 | 30692 | else | 
 | 30693 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30694 | LIBS="-lpng15  $LIBS" | 
 | 30695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30696 | /* end confdefs.h.  */ | 
 | 30697 |  | 
 | 30698 | /* Override any GCC internal prototype to avoid an error. | 
 | 30699 |    Use char because int might match the return type of a GCC | 
 | 30700 |    builtin and then its argument prototype would still apply.  */ | 
 | 30701 | #ifdef __cplusplus | 
 | 30702 | extern "C" | 
 | 30703 | #endif | 
 | 30704 | char png_get_io_ptr (); | 
 | 30705 | int | 
 | 30706 | main () | 
 | 30707 | { | 
 | 30708 | return png_get_io_ptr (); | 
 | 30709 |   ; | 
 | 30710 |   return 0; | 
 | 30711 | } | 
 | 30712 | _ACEOF | 
 | 30713 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30714 |   ac_cv_lib_png15_png_get_io_ptr=yes | 
 | 30715 | else | 
 | 30716 |   ac_cv_lib_png15_png_get_io_ptr=no | 
 | 30717 | fi | 
 | 30718 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30719 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30720 | LIBS=$ac_check_lib_save_LIBS | 
 | 30721 | fi | 
 | 30722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 | 
 | 30723 | $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } | 
 | 30724 | if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : | 
 | 30725 |   passed=`expr $passed + 1` | 
 | 30726 | else | 
 | 30727 |   failed=`expr $failed + 1` | 
 | 30728 | fi | 
 | 30729 |  | 
 | 30730 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 | 
 | 30731 | $as_echo_n "checking for png_longjmp in -lpng15... " >&6; } | 
 | 30732 | if ${ac_cv_lib_png15_png_longjmp+:} false; then : | 
 | 30733 |   $as_echo_n "(cached) " >&6 | 
 | 30734 | else | 
 | 30735 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30736 | LIBS="-lpng15  $LIBS" | 
 | 30737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30738 | /* end confdefs.h.  */ | 
 | 30739 |  | 
 | 30740 | /* Override any GCC internal prototype to avoid an error. | 
 | 30741 |    Use char because int might match the return type of a GCC | 
 | 30742 |    builtin and then its argument prototype would still apply.  */ | 
 | 30743 | #ifdef __cplusplus | 
 | 30744 | extern "C" | 
 | 30745 | #endif | 
 | 30746 | char png_longjmp (); | 
 | 30747 | int | 
 | 30748 | main () | 
 | 30749 | { | 
 | 30750 | return png_longjmp (); | 
 | 30751 |   ; | 
 | 30752 |   return 0; | 
 | 30753 | } | 
 | 30754 | _ACEOF | 
 | 30755 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30756 |   ac_cv_lib_png15_png_longjmp=yes | 
 | 30757 | else | 
 | 30758 |   ac_cv_lib_png15_png_longjmp=no | 
 | 30759 | fi | 
 | 30760 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30761 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30762 | LIBS=$ac_check_lib_save_LIBS | 
 | 30763 | fi | 
 | 30764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 | 
 | 30765 | $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } | 
 | 30766 | if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : | 
 | 30767 |   passed=`expr $passed + 1` | 
 | 30768 | else | 
 | 30769 |   failed=`expr $failed + 1` | 
 | 30770 | fi | 
 | 30771 |  | 
 | 30772 |           fi | 
 | 30773 |           if test "1${var}" = '14' ; then | 
 | 30774 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 | 
 | 30775 | $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } | 
 | 30776 | if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : | 
 | 30777 |   $as_echo_n "(cached) " >&6 | 
 | 30778 | else | 
 | 30779 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30780 | LIBS="-lpng14  $LIBS" | 
 | 30781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30782 | /* end confdefs.h.  */ | 
 | 30783 |  | 
 | 30784 | /* Override any GCC internal prototype to avoid an error. | 
 | 30785 |    Use char because int might match the return type of a GCC | 
 | 30786 |    builtin and then its argument prototype would still apply.  */ | 
 | 30787 | #ifdef __cplusplus | 
 | 30788 | extern "C" | 
 | 30789 | #endif | 
 | 30790 | char png_get_io_ptr (); | 
 | 30791 | int | 
 | 30792 | main () | 
 | 30793 | { | 
 | 30794 | return png_get_io_ptr (); | 
 | 30795 |   ; | 
 | 30796 |   return 0; | 
 | 30797 | } | 
 | 30798 | _ACEOF | 
 | 30799 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30800 |   ac_cv_lib_png14_png_get_io_ptr=yes | 
 | 30801 | else | 
 | 30802 |   ac_cv_lib_png14_png_get_io_ptr=no | 
 | 30803 | fi | 
 | 30804 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30805 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30806 | LIBS=$ac_check_lib_save_LIBS | 
 | 30807 | fi | 
 | 30808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 | 
 | 30809 | $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } | 
 | 30810 | if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : | 
 | 30811 |   passed=`expr $passed + 1` | 
 | 30812 | else | 
 | 30813 |   failed=`expr $failed + 1` | 
 | 30814 | fi | 
 | 30815 |  | 
 | 30816 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 | 
 | 30817 | $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } | 
 | 30818 | if ${ac_cv_lib_png14_png_get_io_state+:} false; then : | 
 | 30819 |   $as_echo_n "(cached) " >&6 | 
 | 30820 | else | 
 | 30821 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30822 | LIBS="-lpng14  $LIBS" | 
 | 30823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30824 | /* end confdefs.h.  */ | 
 | 30825 |  | 
 | 30826 | /* Override any GCC internal prototype to avoid an error. | 
 | 30827 |    Use char because int might match the return type of a GCC | 
 | 30828 |    builtin and then its argument prototype would still apply.  */ | 
 | 30829 | #ifdef __cplusplus | 
 | 30830 | extern "C" | 
 | 30831 | #endif | 
 | 30832 | char png_get_io_state (); | 
 | 30833 | int | 
 | 30834 | main () | 
 | 30835 | { | 
 | 30836 | return png_get_io_state (); | 
 | 30837 |   ; | 
 | 30838 |   return 0; | 
 | 30839 | } | 
 | 30840 | _ACEOF | 
 | 30841 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30842 |   ac_cv_lib_png14_png_get_io_state=yes | 
 | 30843 | else | 
 | 30844 |   ac_cv_lib_png14_png_get_io_state=no | 
 | 30845 | fi | 
 | 30846 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30847 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30848 | LIBS=$ac_check_lib_save_LIBS | 
 | 30849 | fi | 
 | 30850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 | 
 | 30851 | $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } | 
 | 30852 | if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : | 
 | 30853 |   passed=`expr $passed + 1` | 
 | 30854 | else | 
 | 30855 |   failed=`expr $failed + 1` | 
 | 30856 | fi | 
 | 30857 |  | 
 | 30858 |           fi | 
 | 30859 |           if test "1${var}" = '12' ; then | 
 | 30860 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 | 
 | 30861 | $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } | 
 | 30862 | if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : | 
 | 30863 |   $as_echo_n "(cached) " >&6 | 
 | 30864 | else | 
 | 30865 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30866 | LIBS="-lpng12  $LIBS" | 
 | 30867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30868 | /* end confdefs.h.  */ | 
 | 30869 |  | 
 | 30870 | /* Override any GCC internal prototype to avoid an error. | 
 | 30871 |    Use char because int might match the return type of a GCC | 
 | 30872 |    builtin and then its argument prototype would still apply.  */ | 
 | 30873 | #ifdef __cplusplus | 
 | 30874 | extern "C" | 
 | 30875 | #endif | 
 | 30876 | char png_get_io_ptr (); | 
 | 30877 | int | 
 | 30878 | main () | 
 | 30879 | { | 
 | 30880 | return png_get_io_ptr (); | 
 | 30881 |   ; | 
 | 30882 |   return 0; | 
 | 30883 | } | 
 | 30884 | _ACEOF | 
 | 30885 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30886 |   ac_cv_lib_png12_png_get_io_ptr=yes | 
 | 30887 | else | 
 | 30888 |   ac_cv_lib_png12_png_get_io_ptr=no | 
 | 30889 | fi | 
 | 30890 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30891 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30892 | LIBS=$ac_check_lib_save_LIBS | 
 | 30893 | fi | 
 | 30894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 | 
 | 30895 | $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } | 
 | 30896 | if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : | 
 | 30897 |   passed=`expr $passed + 1` | 
 | 30898 | else | 
 | 30899 |   failed=`expr $failed + 1` | 
 | 30900 | fi | 
 | 30901 |  | 
 | 30902 |           fi | 
 | 30903 |           if test "1${var}" = '1' ; then | 
 | 30904 |               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 | 
 | 30905 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } | 
 | 30906 | if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : | 
 | 30907 |   $as_echo_n "(cached) " >&6 | 
 | 30908 | else | 
 | 30909 |   ac_check_lib_save_LIBS=$LIBS | 
 | 30910 | LIBS="-lpng  $LIBS" | 
 | 30911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 30912 | /* end confdefs.h.  */ | 
 | 30913 |  | 
 | 30914 | /* Override any GCC internal prototype to avoid an error. | 
 | 30915 |    Use char because int might match the return type of a GCC | 
 | 30916 |    builtin and then its argument prototype would still apply.  */ | 
 | 30917 | #ifdef __cplusplus | 
 | 30918 | extern "C" | 
 | 30919 | #endif | 
 | 30920 | char png_get_io_ptr (); | 
 | 30921 | int | 
 | 30922 | main () | 
 | 30923 | { | 
 | 30924 | return png_get_io_ptr (); | 
 | 30925 |   ; | 
 | 30926 |   return 0; | 
 | 30927 | } | 
 | 30928 | _ACEOF | 
 | 30929 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 30930 |   ac_cv_lib_png_png_get_io_ptr=yes | 
 | 30931 | else | 
 | 30932 |   ac_cv_lib_png_png_get_io_ptr=no | 
 | 30933 | fi | 
 | 30934 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 30935 |     conftest$ac_exeext conftest.$ac_ext | 
 | 30936 | LIBS=$ac_check_lib_save_LIBS | 
 | 30937 | fi | 
 | 30938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 | 
 | 30939 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } | 
 | 30940 | if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : | 
 | 30941 |   passed=`expr $passed + 1` | 
 | 30942 | else | 
 | 30943 |   failed=`expr $failed + 1` | 
 | 30944 | fi | 
 | 30945 |  | 
 | 30946 |           fi | 
 | 30947 |           if test $passed -gt 0 -a $failed -le 0 ; then | 
 | 30948 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 | 
 | 30949 | $as_echo_n "checking if ${pnglib} package is complete... " >&6; } | 
 | 30950 |             if test $passed -gt 0 ; then | 
 | 30951 |               if test $failed -gt 0 ; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30952 |                   { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 30953 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30954 |                   have_png='no (failed tests)' | 
 | 30955 |               else | 
 | 30956 |                   PNG_LIBS="-l${pnglib}" | 
 | 30957 |                   LIBS="$PNG_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30958 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30959 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30960 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 30961 |                   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 30962 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30963 |                   have_png='yes' | 
 | 30964 |               fi | 
 | 30965 |             fi | 
 | 30966 |           fi | 
 | 30967 |         fi | 
 | 30968 |       fi | 
 | 30969 |     done | 
 | 30970 |   fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30971 | fi | 
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30972 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30973 |  if test "$have_png" = 'yes'; then | 
 | 30974 |   PNG_DELEGATE_TRUE= | 
 | 30975 |   PNG_DELEGATE_FALSE='#' | 
 | 30976 | else | 
 | 30977 |   PNG_DELEGATE_TRUE='#' | 
 | 30978 |   PNG_DELEGATE_FALSE= | 
 | 30979 | fi | 
 | 30980 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30981 |  | 
| cristy | 50d3f5c | 2011-09-10 20:09:06 +0000 | [diff] [blame] | 30982 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30983 |  | 
 | 30984 |  | 
 | 30985 | # | 
 | 30986 | # Check for RSVG delegate library. | 
 | 30987 | # | 
 | 30988 |  | 
 | 30989 | # Check whether --with-rsvg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30990 | if test "${with_rsvg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30991 |   withval=$with_rsvg; with_rsvg=$withval | 
 | 30992 | else | 
 | 30993 |   with_rsvg=$have_x | 
 | 30994 | fi | 
 | 30995 |  | 
 | 30996 |  | 
 | 30997 | if test "$with_rsvg" != 'yes'; then | 
 | 30998 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " | 
 | 30999 | fi | 
 | 31000 |  | 
 | 31001 | have_rsvg='no' | 
 | 31002 | have_cairo='no' | 
 | 31003 | RSVG_CFLAGS="" | 
 | 31004 | RSVG_LIBS="" | 
 | 31005 | RSVG_PKG="" | 
 | 31006 | if test "x$with_rsvg" = "xyes"; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31007 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 31008 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31009 |  | 
 | 31010 | pkg_failed=no | 
 | 31011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 | 
 | 31012 | $as_echo_n "checking for RSVG... " >&6; } | 
 | 31013 |  | 
 | 31014 | if test -n "$RSVG_CFLAGS"; then | 
 | 31015 |     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" | 
 | 31016 |  elif test -n "$PKG_CONFIG"; then | 
 | 31017 |     if test -n "$PKG_CONFIG" && \ | 
 | 31018 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
 | 31019 |   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
 | 31020 |   ac_status=$? | 
 | 31021 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 31022 |   test $ac_status = 0; }; then | 
 | 31023 |   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
 | 31024 | else | 
 | 31025 |   pkg_failed=yes | 
 | 31026 | fi | 
 | 31027 |  else | 
 | 31028 |     pkg_failed=untried | 
 | 31029 | fi | 
 | 31030 | if test -n "$RSVG_LIBS"; then | 
 | 31031 |     pkg_cv_RSVG_LIBS="$RSVG_LIBS" | 
 | 31032 |  elif test -n "$PKG_CONFIG"; then | 
 | 31033 |     if test -n "$PKG_CONFIG" && \ | 
 | 31034 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
 | 31035 |   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
 | 31036 |   ac_status=$? | 
 | 31037 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 31038 |   test $ac_status = 0; }; then | 
 | 31039 |   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
 | 31040 | else | 
 | 31041 |   pkg_failed=yes | 
 | 31042 | fi | 
 | 31043 |  else | 
 | 31044 |     pkg_failed=untried | 
 | 31045 | fi | 
 | 31046 |  | 
 | 31047 |  | 
 | 31048 |  | 
 | 31049 | if test $pkg_failed = yes; then | 
 | 31050 |  | 
 | 31051 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 31052 |         _pkg_short_errors_supported=yes | 
 | 31053 | else | 
 | 31054 |         _pkg_short_errors_supported=no | 
 | 31055 | fi | 
 | 31056 |         if test $_pkg_short_errors_supported = yes; then | 
 | 31057 | 	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
 | 31058 |         else | 
 | 31059 | 	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
 | 31060 |         fi | 
 | 31061 | 	# Put the nasty error message in config.log where it belongs | 
 | 31062 | 	echo "$RSVG_PKG_ERRORS" >&5 | 
 | 31063 |  | 
 | 31064 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 31065 | $as_echo "no" >&6; } | 
 | 31066 |                 have_rsvg=no | 
 | 31067 | elif test $pkg_failed = untried; then | 
 | 31068 | 	have_rsvg=no | 
 | 31069 | else | 
 | 31070 | 	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS | 
 | 31071 | 	RSVG_LIBS=$pkg_cv_RSVG_LIBS | 
 | 31072 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 31073 | $as_echo "yes" >&6; } | 
 | 31074 | 	have_rsvg=yes | 
 | 31075 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31076 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 31077 | $as_echo "$as_me: " >&6;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31078 |  | 
 | 31079 | pkg_failed=no | 
 | 31080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 | 
 | 31081 | $as_echo_n "checking for CAIRO_SVG... " >&6; } | 
 | 31082 |  | 
 | 31083 | if test -n "$CAIRO_SVG_CFLAGS"; then | 
 | 31084 |     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" | 
 | 31085 |  elif test -n "$PKG_CONFIG"; then | 
 | 31086 |     if test -n "$PKG_CONFIG" && \ | 
 | 31087 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
 | 31088 |   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
 | 31089 |   ac_status=$? | 
 | 31090 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 31091 |   test $ac_status = 0; }; then | 
 | 31092 |   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` | 
 | 31093 | else | 
 | 31094 |   pkg_failed=yes | 
 | 31095 | fi | 
 | 31096 |  else | 
 | 31097 |     pkg_failed=untried | 
 | 31098 | fi | 
 | 31099 | if test -n "$CAIRO_SVG_LIBS"; then | 
 | 31100 |     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" | 
 | 31101 |  elif test -n "$PKG_CONFIG"; then | 
 | 31102 |     if test -n "$PKG_CONFIG" && \ | 
 | 31103 |     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
 | 31104 |   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
 | 31105 |   ac_status=$? | 
 | 31106 |   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
 | 31107 |   test $ac_status = 0; }; then | 
 | 31108 |   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` | 
 | 31109 | else | 
 | 31110 |   pkg_failed=yes | 
 | 31111 | fi | 
 | 31112 |  else | 
 | 31113 |     pkg_failed=untried | 
 | 31114 | fi | 
 | 31115 |  | 
 | 31116 |  | 
 | 31117 |  | 
 | 31118 | if test $pkg_failed = yes; then | 
 | 31119 |  | 
 | 31120 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
 | 31121 |         _pkg_short_errors_supported=yes | 
 | 31122 | else | 
 | 31123 |         _pkg_short_errors_supported=no | 
 | 31124 | fi | 
 | 31125 |         if test $_pkg_short_errors_supported = yes; then | 
 | 31126 | 	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` | 
 | 31127 |         else | 
 | 31128 | 	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` | 
 | 31129 |         fi | 
 | 31130 | 	# Put the nasty error message in config.log where it belongs | 
 | 31131 | 	echo "$CAIRO_SVG_PKG_ERRORS" >&5 | 
 | 31132 |  | 
 | 31133 | 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 31134 | $as_echo "no" >&6; } | 
 | 31135 |                 have_cairo=no | 
 | 31136 | elif test $pkg_failed = untried; then | 
 | 31137 | 	have_cairo=no | 
 | 31138 | else | 
 | 31139 | 	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS | 
 | 31140 | 	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS | 
 | 31141 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 31142 | $as_echo "yes" >&6; } | 
 | 31143 | 	have_cairo=yes | 
 | 31144 | fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31145 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 31146 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31147 | fi | 
 | 31148 |  | 
 | 31149 | if test "$have_rsvg" = 'yes'; then | 
 | 31150 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31151 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31152 |  | 
 | 31153 |     if test "$with_modules" = 'no'; then | 
 | 31154 |         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" | 
 | 31155 |     fi | 
 | 31156 | fi | 
 | 31157 |  | 
 | 31158 | if test "$have_cairo" = 'yes'; then | 
 | 31159 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31160 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31161 |  | 
 | 31162 |     if test "$with_modules" = 'no'; then | 
 | 31163 |         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" | 
 | 31164 |     fi | 
 | 31165 | fi | 
 | 31166 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31167 |  if test "$have_rsvg" = 'yes'; then | 
 | 31168 |   RSVG_DELEGATE_TRUE= | 
 | 31169 |   RSVG_DELEGATE_FALSE='#' | 
 | 31170 | else | 
 | 31171 |   RSVG_DELEGATE_TRUE='#' | 
 | 31172 |   RSVG_DELEGATE_FALSE= | 
 | 31173 | fi | 
 | 31174 |  | 
 | 31175 |  if test "$have_cairo" = 'yes'; then | 
 | 31176 |   CAIRO_DELEGATE_TRUE= | 
 | 31177 |   CAIRO_DELEGATE_FALSE='#' | 
 | 31178 | else | 
 | 31179 |   CAIRO_DELEGATE_TRUE='#' | 
 | 31180 |   CAIRO_DELEGATE_FALSE= | 
 | 31181 | fi | 
 | 31182 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31183 |  | 
 | 31184 |  | 
 | 31185 |  | 
 | 31186 |  | 
 | 31187 | # | 
 | 31188 | # Check for TIFF delegate library. | 
 | 31189 | # | 
 | 31190 |  | 
 | 31191 | # Check whether --with-tiff was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31192 | if test "${with_tiff+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31193 |   withval=$with_tiff; with_tiff=$withval | 
 | 31194 | else | 
 | 31195 |   with_tiff='yes' | 
 | 31196 | fi | 
 | 31197 |  | 
 | 31198 |  | 
 | 31199 | if test "$with_tiff" != 'yes'; then | 
 | 31200 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " | 
 | 31201 | fi | 
 | 31202 |  | 
 | 31203 | have_tiff='no' | 
 | 31204 | TIFF_LIBS='' | 
 | 31205 | if test "$with_tiff" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31206 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 31207 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31208 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31209 | $as_echo_n "checking for TIFF... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31210 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 31211 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31212 |     failed=0 | 
 | 31213 |     passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31214 |     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31215 | if test "x$ac_cv_header_tiff_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31216 |   passed=`expr $passed + 1` | 
 | 31217 | else | 
 | 31218 |   failed=`expr $failed + 1` | 
 | 31219 | fi | 
 | 31220 |  | 
 | 31221 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31222 |     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31223 | if test "x$ac_cv_header_tiffio_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31224 |   passed=`expr $passed + 1` | 
 | 31225 | else | 
 | 31226 |   failed=`expr $failed + 1` | 
 | 31227 | fi | 
 | 31228 |  | 
 | 31229 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31230 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31231 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31232 | if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31233 |   $as_echo_n "(cached) " >&6 | 
 | 31234 | else | 
 | 31235 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31236 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31238 | /* end confdefs.h.  */ | 
 | 31239 |  | 
 | 31240 | /* Override any GCC internal prototype to avoid an error. | 
 | 31241 |    Use char because int might match the return type of a GCC | 
 | 31242 |    builtin and then its argument prototype would still apply.  */ | 
 | 31243 | #ifdef __cplusplus | 
 | 31244 | extern "C" | 
 | 31245 | #endif | 
 | 31246 | char TIFFOpen (); | 
 | 31247 | int | 
 | 31248 | main () | 
 | 31249 | { | 
 | 31250 | return TIFFOpen (); | 
 | 31251 |   ; | 
 | 31252 |   return 0; | 
 | 31253 | } | 
 | 31254 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31255 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31256 |   ac_cv_lib_tiff_TIFFOpen=yes | 
 | 31257 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31258 |   ac_cv_lib_tiff_TIFFOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31259 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31260 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31261 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31262 | LIBS=$ac_check_lib_save_LIBS | 
 | 31263 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31265 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31266 | if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31267 |   passed=`expr $passed + 1` | 
 | 31268 | else | 
 | 31269 |   failed=`expr $failed + 1` | 
 | 31270 | fi | 
 | 31271 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31272 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31273 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31274 | if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31275 |   $as_echo_n "(cached) " >&6 | 
 | 31276 | else | 
 | 31277 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31278 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31280 | /* end confdefs.h.  */ | 
 | 31281 |  | 
 | 31282 | /* Override any GCC internal prototype to avoid an error. | 
 | 31283 |    Use char because int might match the return type of a GCC | 
 | 31284 |    builtin and then its argument prototype would still apply.  */ | 
 | 31285 | #ifdef __cplusplus | 
 | 31286 | extern "C" | 
 | 31287 | #endif | 
 | 31288 | char TIFFClientOpen (); | 
 | 31289 | int | 
 | 31290 | main () | 
 | 31291 | { | 
 | 31292 | return TIFFClientOpen (); | 
 | 31293 |   ; | 
 | 31294 |   return 0; | 
 | 31295 | } | 
 | 31296 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31297 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31298 |   ac_cv_lib_tiff_TIFFClientOpen=yes | 
 | 31299 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31300 |   ac_cv_lib_tiff_TIFFClientOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31301 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31302 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31303 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31304 | LIBS=$ac_check_lib_save_LIBS | 
 | 31305 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31307 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31308 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31309 |   passed=`expr $passed + 1` | 
 | 31310 | else | 
 | 31311 |   failed=`expr $failed + 1` | 
 | 31312 | fi | 
 | 31313 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31314 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31315 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31316 | if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31317 |   $as_echo_n "(cached) " >&6 | 
 | 31318 | else | 
 | 31319 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31320 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31322 | /* end confdefs.h.  */ | 
 | 31323 |  | 
 | 31324 | /* Override any GCC internal prototype to avoid an error. | 
 | 31325 |    Use char because int might match the return type of a GCC | 
 | 31326 |    builtin and then its argument prototype would still apply.  */ | 
 | 31327 | #ifdef __cplusplus | 
 | 31328 | extern "C" | 
 | 31329 | #endif | 
 | 31330 | char TIFFIsByteSwapped (); | 
 | 31331 | int | 
 | 31332 | main () | 
 | 31333 | { | 
 | 31334 | return TIFFIsByteSwapped (); | 
 | 31335 |   ; | 
 | 31336 |   return 0; | 
 | 31337 | } | 
 | 31338 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31339 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31340 |   ac_cv_lib_tiff_TIFFIsByteSwapped=yes | 
 | 31341 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31342 |   ac_cv_lib_tiff_TIFFIsByteSwapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31343 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31344 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31345 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31346 | LIBS=$ac_check_lib_save_LIBS | 
 | 31347 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31349 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31350 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31351 |   passed=`expr $passed + 1` | 
 | 31352 | else | 
 | 31353 |   failed=`expr $failed + 1` | 
 | 31354 | fi | 
 | 31355 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31356 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31357 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31358 | if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31359 |   $as_echo_n "(cached) " >&6 | 
 | 31360 | else | 
 | 31361 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31362 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31364 | /* end confdefs.h.  */ | 
 | 31365 |  | 
 | 31366 | /* Override any GCC internal prototype to avoid an error. | 
 | 31367 |    Use char because int might match the return type of a GCC | 
 | 31368 |    builtin and then its argument prototype would still apply.  */ | 
 | 31369 | #ifdef __cplusplus | 
 | 31370 | extern "C" | 
 | 31371 | #endif | 
 | 31372 | char TIFFReadRGBATile (); | 
 | 31373 | int | 
 | 31374 | main () | 
 | 31375 | { | 
 | 31376 | return TIFFReadRGBATile (); | 
 | 31377 |   ; | 
 | 31378 |   return 0; | 
 | 31379 | } | 
 | 31380 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31381 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31382 |   ac_cv_lib_tiff_TIFFReadRGBATile=yes | 
 | 31383 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31384 |   ac_cv_lib_tiff_TIFFReadRGBATile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31385 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31386 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31387 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31388 | LIBS=$ac_check_lib_save_LIBS | 
 | 31389 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31390 | { $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] | 31391 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31392 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31393 |   passed=`expr $passed + 1` | 
 | 31394 | else | 
 | 31395 |   failed=`expr $failed + 1` | 
 | 31396 | fi | 
 | 31397 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31398 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31399 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31400 | if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31401 |   $as_echo_n "(cached) " >&6 | 
 | 31402 | else | 
 | 31403 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31404 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31406 | /* end confdefs.h.  */ | 
 | 31407 |  | 
 | 31408 | /* Override any GCC internal prototype to avoid an error. | 
 | 31409 |    Use char because int might match the return type of a GCC | 
 | 31410 |    builtin and then its argument prototype would still apply.  */ | 
 | 31411 | #ifdef __cplusplus | 
 | 31412 | extern "C" | 
 | 31413 | #endif | 
 | 31414 | char TIFFReadRGBAStrip (); | 
 | 31415 | int | 
 | 31416 | main () | 
 | 31417 | { | 
 | 31418 | return TIFFReadRGBAStrip (); | 
 | 31419 |   ; | 
 | 31420 |   return 0; | 
 | 31421 | } | 
 | 31422 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31423 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31424 |   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes | 
 | 31425 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31426 |   ac_cv_lib_tiff_TIFFReadRGBAStrip=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31427 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31428 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31429 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31430 | LIBS=$ac_check_lib_save_LIBS | 
 | 31431 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31432 | { $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] | 31433 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31434 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31435 |   passed=`expr $passed + 1` | 
 | 31436 | else | 
 | 31437 |   failed=`expr $failed + 1` | 
 | 31438 | fi | 
 | 31439 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31440 |     { $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] | 31441 | $as_echo_n "checking if TIFF package is complete... " >&6; } | 
 | 31442 |     if test $passed -gt 0; then | 
 | 31443 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31444 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 31445 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31446 |             have_tiff='no (failed tests)' | 
 | 31447 |         else | 
 | 31448 |             TIFF_LIBS='-ltiff' | 
 | 31449 |             LIBS="$TIFF_LIBS $LIBS" | 
 | 31450 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31451 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31452 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31453 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 31454 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31455 |             have_tiff='yes' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31456 |             for ac_header in tiffconf.h | 
 | 31457 | do : | 
 | 31458 |   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31459 | if test "x$ac_cv_header_tiffconf_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31460 |   cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31461 | #define HAVE_TIFFCONF_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31462 | _ACEOF | 
 | 31463 |  | 
 | 31464 | fi | 
 | 31465 |  | 
 | 31466 | done | 
 | 31467 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31468 |             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ | 
| cristy | 3f590e5 | 2011-11-14 14:29:44 +0000 | [diff] [blame] | 31469 |               TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ | 
 | 31470 |               TIFFSetTagExtender TIFFSetWarningHandlerExt \ | 
 | 31471 |               TIFFSwabArrayOfTriples | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31472 | do : | 
 | 31473 |   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
 | 31474 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 31475 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31476 |   cat >>confdefs.h <<_ACEOF | 
 | 31477 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
 | 31478 | _ACEOF | 
 | 31479 |  | 
 | 31480 | fi | 
 | 31481 | done | 
 | 31482 |  | 
 | 31483 |         fi | 
 | 31484 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31485 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 31486 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31487 |     fi | 
 | 31488 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31489 |  if test "$have_tiff" = 'yes'; then | 
 | 31490 |   TIFF_DELEGATE_TRUE= | 
 | 31491 |   TIFF_DELEGATE_FALSE='#' | 
 | 31492 | else | 
 | 31493 |   TIFF_DELEGATE_TRUE='#' | 
 | 31494 |   TIFF_DELEGATE_FALSE= | 
 | 31495 | fi | 
 | 31496 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31497 |  | 
 | 31498 |  | 
 | 31499 |  | 
 | 31500 | # | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31501 | # Check for WEBP delegate library. | 
 | 31502 | # | 
 | 31503 |  | 
 | 31504 | # Check whether --with-webp was given. | 
 | 31505 | if test "${with_webp+set}" = set; then : | 
 | 31506 |   withval=$with_webp; with_webp=$withval | 
 | 31507 | else | 
 | 31508 |   with_webp='yes' | 
 | 31509 | fi | 
 | 31510 |  | 
 | 31511 |  | 
 | 31512 | if test "$with_webp" != 'yes'; then | 
 | 31513 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " | 
 | 31514 | fi | 
 | 31515 |  | 
 | 31516 | have_webp='no' | 
 | 31517 | WEBP_LIBS='' | 
 | 31518 | if test "$with_webp" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31519 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 31520 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31521 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 | 
 | 31522 | $as_echo_n "checking for WEBP... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31523 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 31524 | $as_echo "$as_me: " >&6;} | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31525 |     failed=0 | 
 | 31526 |     passed=0 | 
 | 31527 |     ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" | 
 | 31528 | if test "x$ac_cv_header_webp_decode_h" = xyes; then : | 
 | 31529 |   passed=`expr $passed + 1` | 
 | 31530 | else | 
 | 31531 |   failed=`expr $failed + 1` | 
 | 31532 | fi | 
 | 31533 |  | 
 | 31534 |  | 
 | 31535 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5 | 
 | 31536 | $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; } | 
 | 31537 | if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then : | 
 | 31538 |   $as_echo_n "(cached) " >&6 | 
 | 31539 | else | 
 | 31540 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31541 | LIBS="-lwebp  $LIBS" | 
 | 31542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 31543 | /* end confdefs.h.  */ | 
 | 31544 |  | 
 | 31545 | /* Override any GCC internal prototype to avoid an error. | 
 | 31546 |    Use char because int might match the return type of a GCC | 
 | 31547 |    builtin and then its argument prototype would still apply.  */ | 
 | 31548 | #ifdef __cplusplus | 
 | 31549 | extern "C" | 
 | 31550 | #endif | 
 | 31551 | char WebPDecodeRGB (); | 
 | 31552 | int | 
 | 31553 | main () | 
 | 31554 | { | 
 | 31555 | return WebPDecodeRGB (); | 
 | 31556 |   ; | 
 | 31557 |   return 0; | 
 | 31558 | } | 
 | 31559 | _ACEOF | 
 | 31560 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 31561 |   ac_cv_lib_webp_WebPDecodeRGB=yes | 
 | 31562 | else | 
 | 31563 |   ac_cv_lib_webp_WebPDecodeRGB=no | 
 | 31564 | fi | 
 | 31565 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31566 |     conftest$ac_exeext conftest.$ac_ext | 
 | 31567 | LIBS=$ac_check_lib_save_LIBS | 
 | 31568 | fi | 
 | 31569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5 | 
 | 31570 | $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; } | 
 | 31571 | if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then : | 
 | 31572 |   passed=`expr $passed + 1` | 
 | 31573 | else | 
 | 31574 |   failed=`expr $failed + 1` | 
 | 31575 | fi | 
 | 31576 |  | 
 | 31577 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 | 
 | 31578 | $as_echo_n "checking if WEBP package is complete... " >&6; } | 
 | 31579 |     if test $passed -gt 0; then | 
 | 31580 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31581 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 31582 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31583 |             have_webp='no (failed tests)' | 
 | 31584 |         else | 
 | 31585 |             WEBP_LIBS='-lwebp' | 
 | 31586 |             LIBS="$WEBP_LIBS $LIBS" | 
 | 31587 |  | 
 | 31588 | $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h | 
 | 31589 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31590 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 31591 | $as_echo "$as_me: yes" >&6;} | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31592 |             have_webp='yes' | 
 | 31593 |         fi | 
 | 31594 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31595 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 31596 | $as_echo "$as_me: no" >&6;} | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31597 |     fi | 
 | 31598 | fi | 
 | 31599 |  if test "$have_webp" = 'yes'; then | 
 | 31600 |   WEBP_DELEGATE_TRUE= | 
 | 31601 |   WEBP_DELEGATE_FALSE='#' | 
 | 31602 | else | 
 | 31603 |   WEBP_DELEGATE_TRUE='#' | 
 | 31604 |   WEBP_DELEGATE_FALSE= | 
 | 31605 | fi | 
 | 31606 |  | 
 | 31607 |  | 
 | 31608 |  | 
 | 31609 |  | 
 | 31610 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31611 | # Set Windows font directory. | 
 | 31612 | # | 
 | 31613 |  | 
 | 31614 | # Check whether --with-windows-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31615 | if test "${with_windows_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31616 |   withval=$with_windows_font_dir; with_windows_font_dir=$withval | 
 | 31617 | else | 
 | 31618 |   with_windows_font_dir='' | 
 | 31619 | fi | 
 | 31620 |  | 
 | 31621 | if test "$with_windows_font_dir" != '' ; then | 
 | 31622 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " | 
 | 31623 | fi | 
 | 31624 |  | 
 | 31625 |  | 
 | 31626 | # | 
 | 31627 | # Check for WMF delegate library. | 
 | 31628 | # | 
 | 31629 |  | 
 | 31630 | # Check whether --with-wmf was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31631 | if test "${with_wmf+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31632 |   withval=$with_wmf; with_wmf=$withval | 
 | 31633 | else | 
| cristy | 38eaa7e | 2012-02-05 23:24:01 +0000 | [diff] [blame^] | 31634 |   with_wmf='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31635 | fi | 
 | 31636 |  | 
 | 31637 |  | 
 | 31638 | if test "$with_wmf" != 'yes'; then | 
 | 31639 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " | 
 | 31640 | fi | 
 | 31641 |  | 
 | 31642 | have_wmf='no' | 
 | 31643 | WMF_LIBS='' | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31644 | WMF_LIBS_DEPS='' | 
 | 31645 | OLIBS="$LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31646 | if test "$with_wmf" != 'no'; then | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31647 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
 | 31648 | $as_echo "-------------------------------------------------------------" >&6; } | 
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31649 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31650 | $as_echo_n "checking for WMF... " >&6; } | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31651 |     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
 | 31652 | $as_echo "" >&6; } | 
 | 31653 |     have_libwmf='no' | 
 | 31654 |     have_libwmflite='no' | 
 | 31655 |     have_libwmf_ipa_h='no' | 
 | 31656 |  | 
 | 31657 |     ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H | 
 | 31658 | " | 
 | 31659 | if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : | 
 | 31660 |   have_libwmf_ipa_h='yes' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31661 | fi | 
 | 31662 |  | 
 | 31663 |  | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31664 |     if test "$have_libwmf_ipa_h" = 'yes'; then | 
 | 31665 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 | 
 | 31666 | $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } | 
 | 31667 | if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31668 |   $as_echo_n "(cached) " >&6 | 
 | 31669 | else | 
 | 31670 |   ac_check_lib_save_LIBS=$LIBS | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31671 | LIBS="-lwmflite  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31673 | /* end confdefs.h.  */ | 
 | 31674 |  | 
 | 31675 | /* Override any GCC internal prototype to avoid an error. | 
 | 31676 |    Use char because int might match the return type of a GCC | 
 | 31677 |    builtin and then its argument prototype would still apply.  */ | 
 | 31678 | #ifdef __cplusplus | 
 | 31679 | extern "C" | 
 | 31680 | #endif | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31681 | char wmf_lite_create (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31682 | int | 
 | 31683 | main () | 
 | 31684 | { | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31685 | return wmf_lite_create (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31686 |   ; | 
 | 31687 |   return 0; | 
 | 31688 | } | 
 | 31689 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31690 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31691 |   ac_cv_lib_wmflite_wmf_lite_create=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31692 | else | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31693 |   ac_cv_lib_wmflite_wmf_lite_create=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31694 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31695 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31696 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31697 | LIBS=$ac_check_lib_save_LIBS | 
 | 31698 | fi | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 | 
 | 31700 | $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } | 
 | 31701 | if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : | 
 | 31702 |   have_libwmflite='yes' | 
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31703 | fi | 
 | 31704 |  | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31705 |         if test "$have_libwmflite" = 'yes'; then | 
 | 31706 |  | 
 | 31707 | $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h | 
 | 31708 |  | 
 | 31709 |             WMF_LIBS='-lwmflite' | 
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31710 |             LIBS="$WMF_LIBS $LIBS" | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31711 |             have_wmf='yes' | 
 | 31712 |         else | 
 | 31713 |             WMF_LIBS_DEPS='' | 
 | 31714 |             WMF_CONFIG_LIBS=`libwmf-config --libs` | 
 | 31715 |             for lib in xml2 expat freetype jpeg png z; do | 
 | 31716 |                 testlib="-l${lib}" | 
 | 31717 |                 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" | 
 | 31718 |             done | 
 | 31719 |             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 | 
 | 31720 | $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } | 
 | 31721 | if ${ac_cv_lib_wmf_wmf_api_create+:} false; then : | 
 | 31722 |   $as_echo_n "(cached) " >&6 | 
 | 31723 | else | 
 | 31724 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31725 | LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" | 
 | 31726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 31727 | /* end confdefs.h.  */ | 
 | 31728 |  | 
 | 31729 | /* Override any GCC internal prototype to avoid an error. | 
 | 31730 |    Use char because int might match the return type of a GCC | 
 | 31731 |    builtin and then its argument prototype would still apply.  */ | 
 | 31732 | #ifdef __cplusplus | 
 | 31733 | extern "C" | 
 | 31734 | #endif | 
 | 31735 | char wmf_api_create (); | 
 | 31736 | int | 
 | 31737 | main () | 
 | 31738 | { | 
 | 31739 | return wmf_api_create (); | 
 | 31740 |   ; | 
 | 31741 |   return 0; | 
 | 31742 | } | 
 | 31743 | _ACEOF | 
 | 31744 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 31745 |   ac_cv_lib_wmf_wmf_api_create=yes | 
 | 31746 | else | 
 | 31747 |   ac_cv_lib_wmf_wmf_api_create=no | 
 | 31748 | fi | 
 | 31749 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31750 |     conftest$ac_exeext conftest.$ac_ext | 
 | 31751 | LIBS=$ac_check_lib_save_LIBS | 
 | 31752 | fi | 
 | 31753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 | 
 | 31754 | $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } | 
 | 31755 | if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then : | 
 | 31756 |   have_libwmf='yes' | 
 | 31757 | fi | 
 | 31758 |  | 
 | 31759 |             if test "$have_libwmf" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31760 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31761 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31762 |  | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31763 |                 WMF_LIBS='-lwmf' | 
 | 31764 |                 LIBS="$WMF_LIBS $LIBS" | 
 | 31765 |                 have_wmf='yes' | 
 | 31766 |             else | 
 | 31767 |                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
 | 31768 | $as_echo "no -- some components failed test" >&6; } | 
 | 31769 |                 have_wmf='no (failed tests)' | 
 | 31770 |                 have_wmflite='no (failed tests)' | 
 | 31771 |                 LIBS="$OLIBS" | 
 | 31772 |                 WMF_LIBS='' | 
 | 31773 |             fi | 
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31774 |         fi | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31775 |     fi | 
 | 31776 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 | 
 | 31777 | $as_echo_n "checking if WMF package is complete... " >&6; } | 
 | 31778 |     if test "$have_wmf" = 'yes'; then | 
 | 31779 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
 | 31780 | $as_echo "yes" >&6; } | 
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31781 |     else | 
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 31782 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 31783 | $as_echo "no" >&6; } | 
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31784 |     fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31785 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31786 |  if test "$have_wmf" = 'yes'; then | 
 | 31787 |   WMF_DELEGATE_TRUE= | 
 | 31788 |   WMF_DELEGATE_FALSE='#' | 
 | 31789 | else | 
 | 31790 |   WMF_DELEGATE_TRUE='#' | 
 | 31791 |   WMF_DELEGATE_FALSE= | 
 | 31792 | fi | 
 | 31793 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31794 |  | 
 | 31795 |  | 
 | 31796 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31797 |  | 
 | 31798 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31799 | # | 
 | 31800 | # Check for XML delegate library. | 
 | 31801 | # | 
 | 31802 |  | 
 | 31803 | # Check whether --with-xml was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31804 | if test "${with_xml+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31805 |   withval=$with_xml; with_xml=$withval | 
 | 31806 | else | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31807 |   with_xml=$have_x | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31808 | fi | 
 | 31809 |  | 
 | 31810 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31811 | if test "$with_xml" != 'yes' ; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31812 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " | 
 | 31813 | fi | 
 | 31814 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31815 | have_xml='no' | 
 | 31816 | XML_LIBS='' | 
 | 31817 | if test "$with_xml" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31818 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 31819 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31820 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 | 
 | 31821 | $as_echo_n "checking for XML... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 31822 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 31823 | $as_echo "$as_me: " >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31824 |     PERSIST_LDFLAGS=$LDFLAGS | 
 | 31825 |     PERSIST_CPPFLAGS=$CPPFLAGS | 
 | 31826 |     xml2_config='' | 
 | 31827 |     # Extract the first word of "xml2-config", so it can be a program name with args. | 
 | 31828 | set dummy xml2-config; ac_word=$2 | 
 | 31829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 31830 | $as_echo_n "checking for $ac_word... " >&6; } | 
 | 31831 | if ${ac_cv_path_xml2_config+:} false; then : | 
 | 31832 |   $as_echo_n "(cached) " >&6 | 
 | 31833 | else | 
 | 31834 |   case $xml2_config in | 
 | 31835 |   [\\/]* | ?:[\\/]*) | 
 | 31836 |   ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. | 
 | 31837 |   ;; | 
 | 31838 |   *) | 
 | 31839 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 31840 | for as_dir in $PATH | 
 | 31841 | do | 
 | 31842 |   IFS=$as_save_IFS | 
 | 31843 |   test -z "$as_dir" && as_dir=. | 
 | 31844 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 31845 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 31846 |     ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" | 
 | 31847 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 31848 |     break 2 | 
 | 31849 |   fi | 
 | 31850 | done | 
 | 31851 |   done | 
 | 31852 | IFS=$as_save_IFS | 
 | 31853 |  | 
 | 31854 |   ;; | 
 | 31855 | esac | 
 | 31856 | fi | 
 | 31857 | xml2_config=$ac_cv_path_xml2_config | 
 | 31858 | if test -n "$xml2_config"; then | 
 | 31859 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 | 
 | 31860 | $as_echo "$xml2_config" >&6; } | 
 | 31861 | else | 
 | 31862 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 31863 | $as_echo "no" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31864 | fi | 
 | 31865 |  | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31866 |     if test -n "$xml2_config"; then | 
 | 31867 |         # Debian installs libxml headers under /usr/include/libxml2/libxml with | 
 | 31868 |         # the shared library installed under /usr/lib, whereas the package | 
 | 31869 |         # installs itself under $prefix/libxml and $prefix/lib. | 
 | 31870 |         xml2_prefix=`xml2-config --prefix` | 
 | 31871 |         if test -d "${xml2_prefix}/include/libxml2"; then | 
 | 31872 |             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" | 
 | 31873 |         fi | 
 | 31874 |         if test "${xml2_prefix}" != '/usr'; then | 
 | 31875 |             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" | 
 | 31876 |         fi | 
 | 31877 |     fi | 
 | 31878 |     failed=0 | 
 | 31879 |     passed=0 | 
 | 31880 |     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" | 
 | 31881 | if test "x$ac_cv_header_libxml_parser_h" = xyes; then : | 
 | 31882 |   passed=`expr $passed + 1` | 
 | 31883 | else | 
 | 31884 |   failed=`expr $failed + 1` | 
 | 31885 | fi | 
 | 31886 |  | 
 | 31887 |  | 
 | 31888 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 | 
 | 31889 | $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } | 
 | 31890 | if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : | 
 | 31891 |   $as_echo_n "(cached) " >&6 | 
 | 31892 | else | 
 | 31893 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31894 | LIBS="-lxml2  $LIBS" | 
 | 31895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 31896 | /* end confdefs.h.  */ | 
 | 31897 |  | 
 | 31898 | /* Override any GCC internal prototype to avoid an error. | 
 | 31899 |    Use char because int might match the return type of a GCC | 
 | 31900 |    builtin and then its argument prototype would still apply.  */ | 
 | 31901 | #ifdef __cplusplus | 
 | 31902 | extern "C" | 
 | 31903 | #endif | 
 | 31904 | char xmlSAXVersion (); | 
 | 31905 | int | 
 | 31906 | main () | 
 | 31907 | { | 
 | 31908 | return xmlSAXVersion (); | 
 | 31909 |   ; | 
 | 31910 |   return 0; | 
 | 31911 | } | 
 | 31912 | _ACEOF | 
 | 31913 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 31914 |   ac_cv_lib_xml2_xmlSAXVersion=yes | 
 | 31915 | else | 
 | 31916 |   ac_cv_lib_xml2_xmlSAXVersion=no | 
 | 31917 | fi | 
 | 31918 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31919 |     conftest$ac_exeext conftest.$ac_ext | 
 | 31920 | LIBS=$ac_check_lib_save_LIBS | 
 | 31921 | fi | 
 | 31922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 | 
 | 31923 | $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } | 
 | 31924 | if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : | 
 | 31925 |   passed=`expr $passed + 1` | 
 | 31926 | else | 
 | 31927 |   failed=`expr $failed + 1` | 
 | 31928 | fi | 
 | 31929 |  | 
 | 31930 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 | 
 | 31931 | $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } | 
 | 31932 | if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : | 
 | 31933 |   $as_echo_n "(cached) " >&6 | 
 | 31934 | else | 
 | 31935 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31936 | LIBS="-lxml2  $LIBS" | 
 | 31937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 31938 | /* end confdefs.h.  */ | 
 | 31939 |  | 
 | 31940 | /* Override any GCC internal prototype to avoid an error. | 
 | 31941 |    Use char because int might match the return type of a GCC | 
 | 31942 |    builtin and then its argument prototype would still apply.  */ | 
 | 31943 | #ifdef __cplusplus | 
 | 31944 | extern "C" | 
 | 31945 | #endif | 
 | 31946 | char xmlParseChunk (); | 
 | 31947 | int | 
 | 31948 | main () | 
 | 31949 | { | 
 | 31950 | return xmlParseChunk (); | 
 | 31951 |   ; | 
 | 31952 |   return 0; | 
 | 31953 | } | 
 | 31954 | _ACEOF | 
 | 31955 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 31956 |   ac_cv_lib_xml2_xmlParseChunk=yes | 
 | 31957 | else | 
 | 31958 |   ac_cv_lib_xml2_xmlParseChunk=no | 
 | 31959 | fi | 
 | 31960 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 31961 |     conftest$ac_exeext conftest.$ac_ext | 
 | 31962 | LIBS=$ac_check_lib_save_LIBS | 
 | 31963 | fi | 
 | 31964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 | 
 | 31965 | $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } | 
 | 31966 | if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : | 
 | 31967 |   passed=`expr $passed + 1` | 
 | 31968 | else | 
 | 31969 |   failed=`expr $failed + 1` | 
 | 31970 | fi | 
 | 31971 |  | 
 | 31972 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 | 
 | 31973 | $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } | 
 | 31974 | if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : | 
 | 31975 |   $as_echo_n "(cached) " >&6 | 
 | 31976 | else | 
 | 31977 |   ac_check_lib_save_LIBS=$LIBS | 
 | 31978 | LIBS="-lxml2  $LIBS" | 
 | 31979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
 | 31980 | /* end confdefs.h.  */ | 
 | 31981 |  | 
 | 31982 | /* Override any GCC internal prototype to avoid an error. | 
 | 31983 |    Use char because int might match the return type of a GCC | 
 | 31984 |    builtin and then its argument prototype would still apply.  */ | 
 | 31985 | #ifdef __cplusplus | 
 | 31986 | extern "C" | 
 | 31987 | #endif | 
 | 31988 | char xmlCreatePushParserCtxt (); | 
 | 31989 | int | 
 | 31990 | main () | 
 | 31991 | { | 
 | 31992 | return xmlCreatePushParserCtxt (); | 
 | 31993 |   ; | 
 | 31994 |   return 0; | 
 | 31995 | } | 
 | 31996 | _ACEOF | 
 | 31997 | if ac_fn_c_try_link "$LINENO"; then : | 
 | 31998 |   ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes | 
 | 31999 | else | 
 | 32000 |   ac_cv_lib_xml2_xmlCreatePushParserCtxt=no | 
 | 32001 | fi | 
 | 32002 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 32003 |     conftest$ac_exeext conftest.$ac_ext | 
 | 32004 | LIBS=$ac_check_lib_save_LIBS | 
 | 32005 | fi | 
 | 32006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 | 
 | 32007 | $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } | 
 | 32008 | if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : | 
 | 32009 |   passed=`expr $passed + 1` | 
 | 32010 | else | 
 | 32011 |   failed=`expr $failed + 1` | 
 | 32012 | fi | 
 | 32013 |  | 
 | 32014 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 | 
 | 32015 | $as_echo_n "checking if XML package is complete... " >&6; } | 
 | 32016 |     if test $passed -gt 0; then | 
 | 32017 |         if test $failed -gt 0; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32018 |             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 | 
 | 32019 | $as_echo "$as_me: no -- some components failed test" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32020 |             have_xml='no (failed tests)' | 
 | 32021 |             LDFLAGS="$PERSIST_LDFLAGS" | 
 | 32022 |             CPPFLAGS="$PERSIST_CPPFLAGS" | 
 | 32023 |         else | 
 | 32024 |             XML_LIBS='-lxml2' | 
 | 32025 |             LIBS="$XML_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32026 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32027 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32028 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32029 |             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 | 
 | 32030 | $as_echo "$as_me: yes" >&6;} | 
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32031 |             have_xml='yes' | 
 | 32032 |         fi | 
 | 32033 |     else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32034 |         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 | 
 | 32035 | $as_echo "$as_me: no" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32036 |     fi | 
 | 32037 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32038 |  if test "$have_xml" = 'yes'; then | 
 | 32039 |   XML_DELEGATE_TRUE= | 
 | 32040 |   XML_DELEGATE_FALSE='#' | 
 | 32041 | else | 
 | 32042 |   XML_DELEGATE_TRUE='#' | 
 | 32043 |   XML_DELEGATE_FALSE= | 
 | 32044 | fi | 
 | 32045 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32046 |  | 
 | 32047 |  | 
 | 32048 |  | 
 | 32049 | # Substitute compiler name to build/link PerlMagick | 
 | 32050 | # | 
 | 32051 |  | 
 | 32052 |  | 
 | 32053 | # | 
 | 32054 | # Configure install Paths | 
 | 32055 | # | 
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 32056 |  | 
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32057 | # Path to ImageMagick header files | 
 | 32058 | INCLUDE_RELATIVE_PATH="ImageMagick" | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32059 | INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" | 
 | 32060 | DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" | 
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32061 | case "${build_os}" in | 
 | 32062 |   mingw* ) | 
 | 32063 |     DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` | 
 | 32064 |     ;; | 
 | 32065 | esac | 
 | 32066 |  | 
 | 32067 | cat >>confdefs.h <<_ACEOF | 
 | 32068 | #define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" | 
 | 32069 | _ACEOF | 
 | 32070 |  | 
 | 32071 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32072 |  | 
 | 32073 | # Subdirectory under lib to place ImageMagick lib files | 
 | 32074 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" | 
 | 32075 |  | 
 | 32076 | cat >>confdefs.h <<_ACEOF | 
 | 32077 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" | 
 | 32078 | _ACEOF | 
 | 32079 |  | 
 | 32080 |  | 
 | 32081 | # Path to ImageMagick bin directory | 
 | 32082 | EXECUTABLE_PATH="${BIN_DIR}" | 
 | 32083 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" | 
 | 32084 | case "${build_os}" in | 
 | 32085 |   mingw* ) | 
 | 32086 |     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` | 
 | 32087 |     ;; | 
 | 32088 | esac | 
 | 32089 |  | 
 | 32090 | cat >>confdefs.h <<_ACEOF | 
 | 32091 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" | 
 | 32092 | _ACEOF | 
 | 32093 |  | 
 | 32094 |  | 
 | 32095 |  | 
 | 32096 | # Path to ImageMagick lib | 
 | 32097 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" | 
 | 32098 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" | 
 | 32099 | case "${build_os}" in | 
 | 32100 |   mingw* ) | 
 | 32101 |     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` | 
 | 32102 |     ;; | 
 | 32103 | esac | 
 | 32104 |  | 
 | 32105 | cat >>confdefs.h <<_ACEOF | 
 | 32106 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" | 
 | 32107 | _ACEOF | 
 | 32108 |  | 
 | 32109 |  | 
 | 32110 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32111 | # | 
 | 32112 | # Subdirectory under lib to place ImageMagick coder module files | 
 | 32113 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" | 
 | 32114 |  | 
 | 32115 | cat >>confdefs.h <<_ACEOF | 
 | 32116 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" | 
 | 32117 | _ACEOF | 
 | 32118 |  | 
 | 32119 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" | 
 | 32120 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" | 
 | 32121 | case "${build_os}" in | 
 | 32122 |   mingw* ) | 
 | 32123 |     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` | 
 | 32124 |     ;; | 
 | 32125 | esac | 
 | 32126 |  | 
 | 32127 | cat >>confdefs.h <<_ACEOF | 
 | 32128 | #define CODER_PATH "$DEFINE_CODER_PATH" | 
 | 32129 | _ACEOF | 
 | 32130 |  | 
 | 32131 |  | 
 | 32132 |  | 
 | 32133 | # | 
 | 32134 | # Subdirectory under lib to place ImageMagick filter module files | 
 | 32135 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" | 
 | 32136 |  | 
 | 32137 | cat >>confdefs.h <<_ACEOF | 
 | 32138 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" | 
 | 32139 | _ACEOF | 
 | 32140 |  | 
 | 32141 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" | 
 | 32142 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" | 
 | 32143 | case "${build_os}" in | 
 | 32144 |   mingw* ) | 
 | 32145 |     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` | 
 | 32146 |     ;; | 
 | 32147 | esac | 
 | 32148 |  | 
 | 32149 | cat >>confdefs.h <<_ACEOF | 
 | 32150 | #define FILTER_PATH "$DEFINE_FILTER_PATH" | 
 | 32151 | _ACEOF | 
 | 32152 |  | 
 | 32153 |  | 
 | 32154 |  | 
 | 32155 | # | 
 | 32156 | # Path to ImageMagick documentation files | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 32157 | DOCUMENTATION_RELATIVE_PATH="" | 
 | 32158 | DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" | 
 | 32159 | DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32160 | case "${build_os}" in | 
 | 32161 |   mingw* ) | 
 | 32162 |     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` | 
 | 32163 |     ;; | 
 | 32164 | esac | 
 | 32165 |  | 
 | 32166 | cat >>confdefs.h <<_ACEOF | 
 | 32167 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" | 
 | 32168 | _ACEOF | 
 | 32169 |  | 
 | 32170 |  | 
 | 32171 |  | 
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32172 | # Subdirectory to place architecture-dependent configuration files | 
| cristy | ba0f197 | 2011-03-28 12:42:52 +0000 | [diff] [blame] | 32173 | CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32174 |  | 
 | 32175 | cat >>confdefs.h <<_ACEOF | 
 | 32176 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" | 
 | 32177 | _ACEOF | 
 | 32178 |  | 
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 32179 | CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32180 | DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
 | 32181 | case "${build_os}" in | 
 | 32182 |   mingw* ) | 
 | 32183 |     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` | 
 | 32184 |     ;; | 
 | 32185 | esac | 
 | 32186 |  | 
 | 32187 | cat >>confdefs.h <<_ACEOF | 
 | 32188 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" | 
 | 32189 | _ACEOF | 
 | 32190 |  | 
 | 32191 |  | 
 | 32192 |  | 
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32193 | # Subdirectory to place architecture-independent configuration files | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32194 | SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32195 |  | 
 | 32196 | cat >>confdefs.h <<_ACEOF | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32197 | #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32198 | _ACEOF | 
 | 32199 |  | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32200 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32201 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32202 | case "${build_os}" in | 
 | 32203 |   mingw* ) | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32204 |     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32205 |     ;; | 
 | 32206 | esac | 
 | 32207 |  | 
 | 32208 | cat >>confdefs.h <<_ACEOF | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32209 | #define SHARE_PATH "$DEFINE_SHARE_PATH" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32210 | _ACEOF | 
 | 32211 |  | 
 | 32212 |  | 
 | 32213 |  | 
| cristy | 408ebcd | 2011-11-14 01:36:57 +0000 | [diff] [blame] | 32214 | # Subdirectory to place architecture-dependent configuration files | 
 | 32215 | SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32216 |  | 
 | 32217 | cat >>confdefs.h <<_ACEOF | 
 | 32218 | #define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH" | 
 | 32219 | _ACEOF | 
 | 32220 |  | 
| cristy | 408ebcd | 2011-11-14 01:36:57 +0000 | [diff] [blame] | 32221 | SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}" | 
 | 32222 | DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/" | 
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32223 | case "${build_os}" in | 
 | 32224 |   mingw* ) | 
 | 32225 |     DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1` | 
 | 32226 |     ;; | 
 | 32227 | esac | 
 | 32228 |  | 
 | 32229 | cat >>confdefs.h <<_ACEOF | 
 | 32230 | #define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH" | 
 | 32231 | _ACEOF | 
 | 32232 |  | 
 | 32233 |  | 
 | 32234 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32235 | # | 
 | 32236 | # program_transform_name is formed for use in a Makefile, so create a | 
 | 32237 | # modified version for use in a shell script. | 
 | 32238 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` | 
 | 32239 |  | 
 | 32240 | # Default delegate definitions | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32241 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 32242 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32244 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 32245 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 32246 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32247 | AutotraceDecodeDelegateDefault='autotrace' | 
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 32248 | BlenderDecodeDelegateDefault='blender' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32249 | BZIPDelegateDefault='bzip2' | 
 | 32250 | BrowseDelegateDefault='xdg-open' | 
 | 32251 | CGMDecodeDelegateDefault='ralcgm' | 
 | 32252 | CatDelegateDefault='cat' | 
 | 32253 | DNGDecodeDelegateDefault='ufraw-batch' | 
 | 32254 | GVCDecodeDelegateDefault='dot' | 
 | 32255 | DVIDecodeDelegateDefault='dvips' | 
 | 32256 | EchoDelegateDefault='echo' | 
 | 32257 | EditorDelegateDefault='xterm' | 
 | 32258 | FIGDecodeDelegateDefault='fig2dev' | 
 | 32259 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` | 
 | 32260 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` | 
 | 32261 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` | 
 | 32262 | GnuplotDecodeDelegateDefault='gnuplot' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32263 | HPGLDecodeDelegateDefault='hp2xx' | 
 | 32264 | HTMLDecodeDelegateDefault='html2ps' | 
 | 32265 | ILBMDecodeDelegateDefault='ilbmtoppm' | 
 | 32266 | ILBMEncodeDelegateDefault='ppmtoilbm' | 
 | 32267 | LPDelegateDefault='lp' | 
 | 32268 | LPRDelegateDefault='lpr' | 
 | 32269 | LZWDecodeDelegateDefault='uncompress' | 
 | 32270 | LZWEncodeDelegateDefault='compress' | 
 | 32271 | LaunchDelegateDefault='gimp' | 
 | 32272 | MANDelegateDefault='groff' | 
 | 32273 | MPEGDecodeDelegateDefault='ffmpeg' | 
 | 32274 | MPEGEncodeDelegateDefault='ffmpeg' | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32275 | MrSIDDecodeDelegateDefault='mrsidgeodecode' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32276 | MVDelegateDefault='mv' | 
 | 32277 | PCLDelegateDefault='pcl6' | 
 | 32278 | PGPDecodeDelegateDefault='pgpv' | 
 | 32279 | POVDelegateDefault='povray' | 
 | 32280 | if test "$native_win32_build" = 'yes'; then | 
 | 32281 |     PSDelegateDefault='gswin32c' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 32282 | elif test "$gslib_framework" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32283 |     PSDelegateDefault='gsc' | 
 | 32284 | else | 
 | 32285 |     PSDelegateDefault='gs' | 
 | 32286 | fi | 
 | 32287 | RLEEncodeDelegateDefault='rawtorle' | 
 | 32288 | RMDelegateDefault='rm' | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 32289 | RSVGDecodeDelegateDefault='rsvg' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32290 | SCANDecodeDelegateDefault='scanimage' | 
 | 32291 | TXTDelegateDefault='enscript' | 
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 32292 | UniconvertorDelegateDefault='uniconvertor' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32293 | WMFDecodeDelegateDefault='wmf2eps' | 
 | 32294 | WWWDecodeDelegateDefault='curl' | 
 | 32295 | XPSDelegateDefault='gxps' | 
 | 32296 | ZipDelegateDefault='gzip' | 
 | 32297 |  | 
 | 32298 | # Search for delegates | 
 | 32299 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32300 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32302 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32303 | if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32304 |   $as_echo_n "(cached) " >&6 | 
 | 32305 | else | 
 | 32306 |   case $AutotraceDecodeDelegate in | 
 | 32307 |   [\\/]* | ?:[\\/]*) | 
 | 32308 |   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. | 
 | 32309 |   ;; | 
 | 32310 |   *) | 
 | 32311 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32312 | for as_dir in $PATH | 
 | 32313 | do | 
 | 32314 |   IFS=$as_save_IFS | 
 | 32315 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32316 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32317 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32318 |     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32319 |     $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] | 32320 |     break 2 | 
 | 32321 |   fi | 
 | 32322 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32323 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32324 | IFS=$as_save_IFS | 
 | 32325 |  | 
 | 32326 |   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" | 
 | 32327 |   ;; | 
 | 32328 | esac | 
 | 32329 | fi | 
 | 32330 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate | 
 | 32331 | if test -n "$AutotraceDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32332 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32333 | $as_echo "$AutotraceDecodeDelegate" >&6; } | 
 | 32334 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32335 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32336 | $as_echo "no" >&6; } | 
 | 32337 | fi | 
 | 32338 |  | 
 | 32339 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32340 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32341 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32343 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32344 | if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32345 |   $as_echo_n "(cached) " >&6 | 
 | 32346 | else | 
 | 32347 |   case $BlenderDecodeDelegate in | 
 | 32348 |   [\\/]* | ?:[\\/]*) | 
 | 32349 |   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. | 
 | 32350 |   ;; | 
 | 32351 |   *) | 
 | 32352 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32353 | for as_dir in $PATH | 
 | 32354 | do | 
 | 32355 |   IFS=$as_save_IFS | 
 | 32356 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32357 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32358 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32359 |     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32360 |     $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] | 32361 |     break 2 | 
 | 32362 |   fi | 
 | 32363 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32364 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32365 | IFS=$as_save_IFS | 
 | 32366 |  | 
 | 32367 |   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" | 
 | 32368 |   ;; | 
 | 32369 | esac | 
 | 32370 | fi | 
 | 32371 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate | 
 | 32372 | if test -n "$BlenderDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32373 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32374 | $as_echo "$BlenderDecodeDelegate" >&6; } | 
 | 32375 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32376 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32377 | $as_echo "no" >&6; } | 
 | 32378 | fi | 
 | 32379 |  | 
 | 32380 |  | 
 | 32381 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. | 
 | 32382 | set dummy "$BZIPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32384 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32385 | if ${ac_cv_path_BZIPDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32386 |   $as_echo_n "(cached) " >&6 | 
 | 32387 | else | 
 | 32388 |   case $BZIPDelegate in | 
 | 32389 |   [\\/]* | ?:[\\/]*) | 
 | 32390 |   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. | 
 | 32391 |   ;; | 
 | 32392 |   *) | 
 | 32393 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32394 | for as_dir in $PATH | 
 | 32395 | do | 
 | 32396 |   IFS=$as_save_IFS | 
 | 32397 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32398 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32399 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32400 |     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32401 |     $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] | 32402 |     break 2 | 
 | 32403 |   fi | 
 | 32404 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32405 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32406 | IFS=$as_save_IFS | 
 | 32407 |  | 
 | 32408 |   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" | 
 | 32409 |   ;; | 
 | 32410 | esac | 
 | 32411 | fi | 
 | 32412 | BZIPDelegate=$ac_cv_path_BZIPDelegate | 
 | 32413 | if test -n "$BZIPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32414 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32415 | $as_echo "$BZIPDelegate" >&6; } | 
 | 32416 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32417 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32418 | $as_echo "no" >&6; } | 
 | 32419 | fi | 
 | 32420 |  | 
 | 32421 |  | 
 | 32422 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. | 
 | 32423 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32425 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32426 | if ${ac_cv_path_BrowseDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32427 |   $as_echo_n "(cached) " >&6 | 
 | 32428 | else | 
 | 32429 |   case $BrowseDelegate in | 
 | 32430 |   [\\/]* | ?:[\\/]*) | 
 | 32431 |   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. | 
 | 32432 |   ;; | 
 | 32433 |   *) | 
 | 32434 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32435 | for as_dir in $PATH | 
 | 32436 | do | 
 | 32437 |   IFS=$as_save_IFS | 
 | 32438 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32439 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32440 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32441 |     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32442 |     $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] | 32443 |     break 2 | 
 | 32444 |   fi | 
 | 32445 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32446 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32447 | IFS=$as_save_IFS | 
 | 32448 |  | 
 | 32449 |   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" | 
 | 32450 |   ;; | 
 | 32451 | esac | 
 | 32452 | fi | 
 | 32453 | BrowseDelegate=$ac_cv_path_BrowseDelegate | 
 | 32454 | if test -n "$BrowseDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32455 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32456 | $as_echo "$BrowseDelegate" >&6; } | 
 | 32457 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32458 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32459 | $as_echo "no" >&6; } | 
 | 32460 | fi | 
 | 32461 |  | 
 | 32462 |  | 
 | 32463 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32464 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32466 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32467 | if ${ac_cv_path_CGMDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32468 |   $as_echo_n "(cached) " >&6 | 
 | 32469 | else | 
 | 32470 |   case $CGMDecodeDelegate in | 
 | 32471 |   [\\/]* | ?:[\\/]*) | 
 | 32472 |   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. | 
 | 32473 |   ;; | 
 | 32474 |   *) | 
 | 32475 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32476 | for as_dir in $PATH | 
 | 32477 | do | 
 | 32478 |   IFS=$as_save_IFS | 
 | 32479 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32480 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32481 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32482 |     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32483 |     $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] | 32484 |     break 2 | 
 | 32485 |   fi | 
 | 32486 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32487 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32488 | IFS=$as_save_IFS | 
 | 32489 |  | 
 | 32490 |   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" | 
 | 32491 |   ;; | 
 | 32492 | esac | 
 | 32493 | fi | 
 | 32494 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate | 
 | 32495 | if test -n "$CGMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32496 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32497 | $as_echo "$CGMDecodeDelegate" >&6; } | 
 | 32498 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32499 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32500 | $as_echo "no" >&6; } | 
 | 32501 | fi | 
 | 32502 |  | 
 | 32503 |  | 
 | 32504 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. | 
 | 32505 | set dummy "$CatDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32507 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32508 | if ${ac_cv_path_CatDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32509 |   $as_echo_n "(cached) " >&6 | 
 | 32510 | else | 
 | 32511 |   case $CatDelegate in | 
 | 32512 |   [\\/]* | ?:[\\/]*) | 
 | 32513 |   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. | 
 | 32514 |   ;; | 
 | 32515 |   *) | 
 | 32516 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32517 | for as_dir in $PATH | 
 | 32518 | do | 
 | 32519 |   IFS=$as_save_IFS | 
 | 32520 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32521 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32522 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32523 |     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32524 |     $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] | 32525 |     break 2 | 
 | 32526 |   fi | 
 | 32527 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32528 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32529 | IFS=$as_save_IFS | 
 | 32530 |  | 
 | 32531 |   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" | 
 | 32532 |   ;; | 
 | 32533 | esac | 
 | 32534 | fi | 
 | 32535 | CatDelegate=$ac_cv_path_CatDelegate | 
 | 32536 | if test -n "$CatDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32537 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32538 | $as_echo "$CatDelegate" >&6; } | 
 | 32539 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32540 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32541 | $as_echo "no" >&6; } | 
 | 32542 | fi | 
 | 32543 |  | 
 | 32544 |  | 
 | 32545 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32546 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32548 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32549 | if ${ac_cv_path_DNGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32550 |   $as_echo_n "(cached) " >&6 | 
 | 32551 | else | 
 | 32552 |   case $DNGDecodeDelegate in | 
 | 32553 |   [\\/]* | ?:[\\/]*) | 
 | 32554 |   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. | 
 | 32555 |   ;; | 
 | 32556 |   *) | 
 | 32557 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32558 | for as_dir in $PATH | 
 | 32559 | do | 
 | 32560 |   IFS=$as_save_IFS | 
 | 32561 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32562 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32563 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32564 |     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32565 |     $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] | 32566 |     break 2 | 
 | 32567 |   fi | 
 | 32568 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32569 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32570 | IFS=$as_save_IFS | 
 | 32571 |  | 
 | 32572 |   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" | 
 | 32573 |   ;; | 
 | 32574 | esac | 
 | 32575 | fi | 
 | 32576 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate | 
 | 32577 | if test -n "$DNGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32578 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32579 | $as_echo "$DNGDecodeDelegate" >&6; } | 
 | 32580 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32581 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32582 | $as_echo "no" >&6; } | 
 | 32583 | fi | 
 | 32584 |  | 
 | 32585 |  | 
 | 32586 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32587 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32589 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32590 | if ${ac_cv_path_GVCDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32591 |   $as_echo_n "(cached) " >&6 | 
 | 32592 | else | 
 | 32593 |   case $GVCDecodeDelegate in | 
 | 32594 |   [\\/]* | ?:[\\/]*) | 
 | 32595 |   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. | 
 | 32596 |   ;; | 
 | 32597 |   *) | 
 | 32598 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32599 | for as_dir in $PATH | 
 | 32600 | do | 
 | 32601 |   IFS=$as_save_IFS | 
 | 32602 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32603 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32604 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32605 |     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32606 |     $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] | 32607 |     break 2 | 
 | 32608 |   fi | 
 | 32609 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32610 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32611 | IFS=$as_save_IFS | 
 | 32612 |  | 
 | 32613 |   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" | 
 | 32614 |   ;; | 
 | 32615 | esac | 
 | 32616 | fi | 
 | 32617 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate | 
 | 32618 | if test -n "$GVCDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32619 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32620 | $as_echo "$GVCDecodeDelegate" >&6; } | 
 | 32621 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32622 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32623 | $as_echo "no" >&6; } | 
 | 32624 | fi | 
 | 32625 |  | 
 | 32626 |  | 
 | 32627 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32628 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32630 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32631 | if ${ac_cv_path_DVIDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32632 |   $as_echo_n "(cached) " >&6 | 
 | 32633 | else | 
 | 32634 |   case $DVIDecodeDelegate in | 
 | 32635 |   [\\/]* | ?:[\\/]*) | 
 | 32636 |   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. | 
 | 32637 |   ;; | 
 | 32638 |   *) | 
 | 32639 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32640 | for as_dir in $PATH | 
 | 32641 | do | 
 | 32642 |   IFS=$as_save_IFS | 
 | 32643 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32644 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32645 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32646 |     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32647 |     $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] | 32648 |     break 2 | 
 | 32649 |   fi | 
 | 32650 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32651 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32652 | IFS=$as_save_IFS | 
 | 32653 |  | 
 | 32654 |   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" | 
 | 32655 |   ;; | 
 | 32656 | esac | 
 | 32657 | fi | 
 | 32658 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate | 
 | 32659 | if test -n "$DVIDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32660 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32661 | $as_echo "$DVIDecodeDelegate" >&6; } | 
 | 32662 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32663 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32664 | $as_echo "no" >&6; } | 
 | 32665 | fi | 
 | 32666 |  | 
 | 32667 |  | 
 | 32668 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. | 
 | 32669 | set dummy "$EchoDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32671 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32672 | if ${ac_cv_path_EchoDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32673 |   $as_echo_n "(cached) " >&6 | 
 | 32674 | else | 
 | 32675 |   case $EchoDelegate in | 
 | 32676 |   [\\/]* | ?:[\\/]*) | 
 | 32677 |   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. | 
 | 32678 |   ;; | 
 | 32679 |   *) | 
 | 32680 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32681 | for as_dir in $PATH | 
 | 32682 | do | 
 | 32683 |   IFS=$as_save_IFS | 
 | 32684 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32685 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32686 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32687 |     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32688 |     $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] | 32689 |     break 2 | 
 | 32690 |   fi | 
 | 32691 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32692 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32693 | IFS=$as_save_IFS | 
 | 32694 |  | 
 | 32695 |   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" | 
 | 32696 |   ;; | 
 | 32697 | esac | 
 | 32698 | fi | 
 | 32699 | EchoDelegate=$ac_cv_path_EchoDelegate | 
 | 32700 | if test -n "$EchoDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32701 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32702 | $as_echo "$EchoDelegate" >&6; } | 
 | 32703 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32704 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32705 | $as_echo "no" >&6; } | 
 | 32706 | fi | 
 | 32707 |  | 
 | 32708 |  | 
 | 32709 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. | 
 | 32710 | set dummy "$EditorDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32712 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32713 | if ${ac_cv_path_EditorDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32714 |   $as_echo_n "(cached) " >&6 | 
 | 32715 | else | 
 | 32716 |   case $EditorDelegate in | 
 | 32717 |   [\\/]* | ?:[\\/]*) | 
 | 32718 |   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. | 
 | 32719 |   ;; | 
 | 32720 |   *) | 
 | 32721 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32722 | for as_dir in $PATH | 
 | 32723 | do | 
 | 32724 |   IFS=$as_save_IFS | 
 | 32725 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32726 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32727 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32728 |     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32729 |     $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] | 32730 |     break 2 | 
 | 32731 |   fi | 
 | 32732 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32733 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32734 | IFS=$as_save_IFS | 
 | 32735 |  | 
 | 32736 |   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" | 
 | 32737 |   ;; | 
 | 32738 | esac | 
 | 32739 | fi | 
 | 32740 | EditorDelegate=$ac_cv_path_EditorDelegate | 
 | 32741 | if test -n "$EditorDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32742 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32743 | $as_echo "$EditorDelegate" >&6; } | 
 | 32744 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32745 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32746 | $as_echo "no" >&6; } | 
 | 32747 | fi | 
 | 32748 |  | 
 | 32749 |  | 
 | 32750 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32751 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32753 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32754 | if ${ac_cv_path_FIGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32755 |   $as_echo_n "(cached) " >&6 | 
 | 32756 | else | 
 | 32757 |   case $FIGDecodeDelegate in | 
 | 32758 |   [\\/]* | ?:[\\/]*) | 
 | 32759 |   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. | 
 | 32760 |   ;; | 
 | 32761 |   *) | 
 | 32762 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32763 | for as_dir in $PATH | 
 | 32764 | do | 
 | 32765 |   IFS=$as_save_IFS | 
 | 32766 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32767 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32768 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32769 |     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32770 |     $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] | 32771 |     break 2 | 
 | 32772 |   fi | 
 | 32773 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32774 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32775 | IFS=$as_save_IFS | 
 | 32776 |  | 
 | 32777 |   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" | 
 | 32778 |   ;; | 
 | 32779 | esac | 
 | 32780 | fi | 
 | 32781 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate | 
 | 32782 | if test -n "$FIGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32783 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32784 | $as_echo "$FIGDecodeDelegate" >&6; } | 
 | 32785 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32786 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32787 | $as_echo "no" >&6; } | 
 | 32788 | fi | 
 | 32789 |  | 
 | 32790 |  | 
 | 32791 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. | 
 | 32792 | set dummy "$ConvertDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32794 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32795 | if ${ac_cv_path_ConvertDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32796 |   $as_echo_n "(cached) " >&6 | 
 | 32797 | else | 
 | 32798 |   case $ConvertDelegate in | 
 | 32799 |   [\\/]* | ?:[\\/]*) | 
 | 32800 |   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. | 
 | 32801 |   ;; | 
 | 32802 |   *) | 
 | 32803 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32804 | for as_dir in $PATH | 
 | 32805 | do | 
 | 32806 |   IFS=$as_save_IFS | 
 | 32807 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32808 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32809 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32810 |     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32811 |     $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] | 32812 |     break 2 | 
 | 32813 |   fi | 
 | 32814 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32815 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32816 | IFS=$as_save_IFS | 
 | 32817 |  | 
 | 32818 |   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" | 
 | 32819 |   ;; | 
 | 32820 | esac | 
 | 32821 | fi | 
 | 32822 | ConvertDelegate=$ac_cv_path_ConvertDelegate | 
 | 32823 | if test -n "$ConvertDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32824 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32825 | $as_echo "$ConvertDelegate" >&6; } | 
 | 32826 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32827 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32828 | $as_echo "no" >&6; } | 
 | 32829 | fi | 
 | 32830 |  | 
 | 32831 |  | 
 | 32832 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. | 
 | 32833 | set dummy "$DisplayDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32835 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32836 | if ${ac_cv_path_DisplayDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32837 |   $as_echo_n "(cached) " >&6 | 
 | 32838 | else | 
 | 32839 |   case $DisplayDelegate in | 
 | 32840 |   [\\/]* | ?:[\\/]*) | 
 | 32841 |   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. | 
 | 32842 |   ;; | 
 | 32843 |   *) | 
 | 32844 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32845 | for as_dir in $PATH | 
 | 32846 | do | 
 | 32847 |   IFS=$as_save_IFS | 
 | 32848 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32849 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32850 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32851 |     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32852 |     $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] | 32853 |     break 2 | 
 | 32854 |   fi | 
 | 32855 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32856 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32857 | IFS=$as_save_IFS | 
 | 32858 |  | 
 | 32859 |   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" | 
 | 32860 |   ;; | 
 | 32861 | esac | 
 | 32862 | fi | 
 | 32863 | DisplayDelegate=$ac_cv_path_DisplayDelegate | 
 | 32864 | if test -n "$DisplayDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32865 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32866 | $as_echo "$DisplayDelegate" >&6; } | 
 | 32867 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32868 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32869 | $as_echo "no" >&6; } | 
 | 32870 | fi | 
 | 32871 |  | 
 | 32872 |  | 
 | 32873 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. | 
 | 32874 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32876 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32877 | if ${ac_cv_path_MogrifyDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32878 |   $as_echo_n "(cached) " >&6 | 
 | 32879 | else | 
 | 32880 |   case $MogrifyDelegate in | 
 | 32881 |   [\\/]* | ?:[\\/]*) | 
 | 32882 |   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. | 
 | 32883 |   ;; | 
 | 32884 |   *) | 
 | 32885 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32886 | for as_dir in $PATH | 
 | 32887 | do | 
 | 32888 |   IFS=$as_save_IFS | 
 | 32889 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32890 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32891 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32892 |     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32893 |     $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] | 32894 |     break 2 | 
 | 32895 |   fi | 
 | 32896 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32897 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32898 | IFS=$as_save_IFS | 
 | 32899 |  | 
 | 32900 |   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" | 
 | 32901 |   ;; | 
 | 32902 | esac | 
 | 32903 | fi | 
 | 32904 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate | 
 | 32905 | if test -n "$MogrifyDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32906 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32907 | $as_echo "$MogrifyDelegate" >&6; } | 
 | 32908 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32909 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32910 | $as_echo "no" >&6; } | 
 | 32911 | fi | 
 | 32912 |  | 
 | 32913 |  | 
 | 32914 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32915 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32917 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32918 | if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32919 |   $as_echo_n "(cached) " >&6 | 
 | 32920 | else | 
 | 32921 |   case $GnuplotDecodeDelegate in | 
 | 32922 |   [\\/]* | ?:[\\/]*) | 
 | 32923 |   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. | 
 | 32924 |   ;; | 
 | 32925 |   *) | 
 | 32926 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32927 | for as_dir in $PATH | 
 | 32928 | do | 
 | 32929 |   IFS=$as_save_IFS | 
 | 32930 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32931 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32932 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32933 |     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32934 |     $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] | 32935 |     break 2 | 
 | 32936 |   fi | 
 | 32937 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32938 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32939 | IFS=$as_save_IFS | 
 | 32940 |  | 
 | 32941 |   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" | 
 | 32942 |   ;; | 
 | 32943 | esac | 
 | 32944 | fi | 
 | 32945 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate | 
 | 32946 | if test -n "$GnuplotDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32947 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32948 | $as_echo "$GnuplotDecodeDelegate" >&6; } | 
 | 32949 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32950 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32951 | $as_echo "no" >&6; } | 
 | 32952 | fi | 
 | 32953 |  | 
 | 32954 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32955 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32956 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32958 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32959 | if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32960 |   $as_echo_n "(cached) " >&6 | 
 | 32961 | else | 
 | 32962 |   case $HPGLDecodeDelegate in | 
 | 32963 |   [\\/]* | ?:[\\/]*) | 
 | 32964 |   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. | 
 | 32965 |   ;; | 
 | 32966 |   *) | 
 | 32967 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 32968 | for as_dir in $PATH | 
 | 32969 | do | 
 | 32970 |   IFS=$as_save_IFS | 
 | 32971 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32972 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32973 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 32974 |     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32975 |     $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] | 32976 |     break 2 | 
 | 32977 |   fi | 
 | 32978 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32979 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32980 | IFS=$as_save_IFS | 
 | 32981 |  | 
 | 32982 |   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" | 
 | 32983 |   ;; | 
 | 32984 | esac | 
 | 32985 | fi | 
 | 32986 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate | 
 | 32987 | if test -n "$HPGLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32988 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32989 | $as_echo "$HPGLDecodeDelegate" >&6; } | 
 | 32990 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32991 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32992 | $as_echo "no" >&6; } | 
 | 32993 | fi | 
 | 32994 |  | 
 | 32995 |  | 
 | 32996 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. | 
 | 32997 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32999 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33000 | if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33001 |   $as_echo_n "(cached) " >&6 | 
 | 33002 | else | 
 | 33003 |   case $HTMLDecodeDelegate in | 
 | 33004 |   [\\/]* | ?:[\\/]*) | 
 | 33005 |   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. | 
 | 33006 |   ;; | 
 | 33007 |   *) | 
 | 33008 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33009 | for as_dir in $PATH | 
 | 33010 | do | 
 | 33011 |   IFS=$as_save_IFS | 
 | 33012 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33013 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33014 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33015 |     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33016 |     $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] | 33017 |     break 2 | 
 | 33018 |   fi | 
 | 33019 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33020 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33021 | IFS=$as_save_IFS | 
 | 33022 |  | 
 | 33023 |   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" | 
 | 33024 |   ;; | 
 | 33025 | esac | 
 | 33026 | fi | 
 | 33027 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate | 
 | 33028 | if test -n "$HTMLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33029 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33030 | $as_echo "$HTMLDecodeDelegate" >&6; } | 
 | 33031 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33032 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33033 | $as_echo "no" >&6; } | 
 | 33034 | fi | 
 | 33035 |  | 
 | 33036 |  | 
 | 33037 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33038 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33040 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33041 | if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33042 |   $as_echo_n "(cached) " >&6 | 
 | 33043 | else | 
 | 33044 |   case $ILBMDecodeDelegate in | 
 | 33045 |   [\\/]* | ?:[\\/]*) | 
 | 33046 |   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. | 
 | 33047 |   ;; | 
 | 33048 |   *) | 
 | 33049 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33050 | for as_dir in $PATH | 
 | 33051 | do | 
 | 33052 |   IFS=$as_save_IFS | 
 | 33053 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33054 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33055 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33056 |     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33057 |     $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] | 33058 |     break 2 | 
 | 33059 |   fi | 
 | 33060 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33061 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33062 | IFS=$as_save_IFS | 
 | 33063 |  | 
 | 33064 |   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" | 
 | 33065 |   ;; | 
 | 33066 | esac | 
 | 33067 | fi | 
 | 33068 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate | 
 | 33069 | if test -n "$ILBMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33070 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33071 | $as_echo "$ILBMDecodeDelegate" >&6; } | 
 | 33072 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33073 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33074 | $as_echo "no" >&6; } | 
 | 33075 | fi | 
 | 33076 |  | 
 | 33077 |  | 
 | 33078 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. | 
 | 33079 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33081 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33082 | if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33083 |   $as_echo_n "(cached) " >&6 | 
 | 33084 | else | 
 | 33085 |   case $ILBMEncodeDelegate in | 
 | 33086 |   [\\/]* | ?:[\\/]*) | 
 | 33087 |   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. | 
 | 33088 |   ;; | 
 | 33089 |   *) | 
 | 33090 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33091 | for as_dir in $PATH | 
 | 33092 | do | 
 | 33093 |   IFS=$as_save_IFS | 
 | 33094 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33095 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33096 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33097 |     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33098 |     $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] | 33099 |     break 2 | 
 | 33100 |   fi | 
 | 33101 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33102 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33103 | IFS=$as_save_IFS | 
 | 33104 |  | 
 | 33105 |   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" | 
 | 33106 |   ;; | 
 | 33107 | esac | 
 | 33108 | fi | 
 | 33109 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate | 
 | 33110 | if test -n "$ILBMEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33111 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33112 | $as_echo "$ILBMEncodeDelegate" >&6; } | 
 | 33113 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33114 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33115 | $as_echo "no" >&6; } | 
 | 33116 | fi | 
 | 33117 |  | 
 | 33118 |  | 
 | 33119 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. | 
 | 33120 | set dummy "$LPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33122 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33123 | if ${ac_cv_path_LPDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33124 |   $as_echo_n "(cached) " >&6 | 
 | 33125 | else | 
 | 33126 |   case $LPDelegate in | 
 | 33127 |   [\\/]* | ?:[\\/]*) | 
 | 33128 |   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. | 
 | 33129 |   ;; | 
 | 33130 |   *) | 
 | 33131 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33132 | for as_dir in $PATH | 
 | 33133 | do | 
 | 33134 |   IFS=$as_save_IFS | 
 | 33135 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33136 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33137 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33138 |     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33139 |     $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] | 33140 |     break 2 | 
 | 33141 |   fi | 
 | 33142 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33143 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33144 | IFS=$as_save_IFS | 
 | 33145 |  | 
 | 33146 |   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" | 
 | 33147 |   ;; | 
 | 33148 | esac | 
 | 33149 | fi | 
 | 33150 | LPDelegate=$ac_cv_path_LPDelegate | 
 | 33151 | if test -n "$LPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33152 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33153 | $as_echo "$LPDelegate" >&6; } | 
 | 33154 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33155 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33156 | $as_echo "no" >&6; } | 
 | 33157 | fi | 
 | 33158 |  | 
 | 33159 |  | 
 | 33160 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. | 
 | 33161 | set dummy "$LPRDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33163 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33164 | if ${ac_cv_path_LPRDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33165 |   $as_echo_n "(cached) " >&6 | 
 | 33166 | else | 
 | 33167 |   case $LPRDelegate in | 
 | 33168 |   [\\/]* | ?:[\\/]*) | 
 | 33169 |   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. | 
 | 33170 |   ;; | 
 | 33171 |   *) | 
 | 33172 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33173 | for as_dir in $PATH | 
 | 33174 | do | 
 | 33175 |   IFS=$as_save_IFS | 
 | 33176 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33177 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33178 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33179 |     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33180 |     $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] | 33181 |     break 2 | 
 | 33182 |   fi | 
 | 33183 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33184 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33185 | IFS=$as_save_IFS | 
 | 33186 |  | 
 | 33187 |   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" | 
 | 33188 |   ;; | 
 | 33189 | esac | 
 | 33190 | fi | 
 | 33191 | LPRDelegate=$ac_cv_path_LPRDelegate | 
 | 33192 | if test -n "$LPRDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33193 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33194 | $as_echo "$LPRDelegate" >&6; } | 
 | 33195 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33196 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33197 | $as_echo "no" >&6; } | 
 | 33198 | fi | 
 | 33199 |  | 
 | 33200 |  | 
 | 33201 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33202 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33204 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33205 | if ${ac_cv_path_LZWDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33206 |   $as_echo_n "(cached) " >&6 | 
 | 33207 | else | 
 | 33208 |   case $LZWDecodeDelegate in | 
 | 33209 |   [\\/]* | ?:[\\/]*) | 
 | 33210 |   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. | 
 | 33211 |   ;; | 
 | 33212 |   *) | 
 | 33213 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33214 | for as_dir in $PATH | 
 | 33215 | do | 
 | 33216 |   IFS=$as_save_IFS | 
 | 33217 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33218 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33219 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33220 |     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33221 |     $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] | 33222 |     break 2 | 
 | 33223 |   fi | 
 | 33224 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33225 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33226 | IFS=$as_save_IFS | 
 | 33227 |  | 
 | 33228 |   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" | 
 | 33229 |   ;; | 
 | 33230 | esac | 
 | 33231 | fi | 
 | 33232 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate | 
 | 33233 | if test -n "$LZWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33234 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33235 | $as_echo "$LZWDecodeDelegate" >&6; } | 
 | 33236 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33237 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33238 | $as_echo "no" >&6; } | 
 | 33239 | fi | 
 | 33240 |  | 
 | 33241 |  | 
 | 33242 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. | 
 | 33243 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33245 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33246 | if ${ac_cv_path_LZWEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33247 |   $as_echo_n "(cached) " >&6 | 
 | 33248 | else | 
 | 33249 |   case $LZWEncodeDelegate in | 
 | 33250 |   [\\/]* | ?:[\\/]*) | 
 | 33251 |   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. | 
 | 33252 |   ;; | 
 | 33253 |   *) | 
 | 33254 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33255 | for as_dir in $PATH | 
 | 33256 | do | 
 | 33257 |   IFS=$as_save_IFS | 
 | 33258 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33259 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33260 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33261 |     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33262 |     $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] | 33263 |     break 2 | 
 | 33264 |   fi | 
 | 33265 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33266 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33267 | IFS=$as_save_IFS | 
 | 33268 |  | 
 | 33269 |   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" | 
 | 33270 |   ;; | 
 | 33271 | esac | 
 | 33272 | fi | 
 | 33273 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate | 
 | 33274 | if test -n "$LZWEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33275 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33276 | $as_echo "$LZWEncodeDelegate" >&6; } | 
 | 33277 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33278 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33279 | $as_echo "no" >&6; } | 
 | 33280 | fi | 
 | 33281 |  | 
 | 33282 |  | 
 | 33283 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. | 
 | 33284 | set dummy "$LaunchDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33286 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33287 | if ${ac_cv_path_LaunchDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33288 |   $as_echo_n "(cached) " >&6 | 
 | 33289 | else | 
 | 33290 |   case $LaunchDelegate in | 
 | 33291 |   [\\/]* | ?:[\\/]*) | 
 | 33292 |   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. | 
 | 33293 |   ;; | 
 | 33294 |   *) | 
 | 33295 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33296 | for as_dir in $PATH | 
 | 33297 | do | 
 | 33298 |   IFS=$as_save_IFS | 
 | 33299 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33300 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33301 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33302 |     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33303 |     $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] | 33304 |     break 2 | 
 | 33305 |   fi | 
 | 33306 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33307 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33308 | IFS=$as_save_IFS | 
 | 33309 |  | 
 | 33310 |   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" | 
 | 33311 |   ;; | 
 | 33312 | esac | 
 | 33313 | fi | 
 | 33314 | LaunchDelegate=$ac_cv_path_LaunchDelegate | 
 | 33315 | if test -n "$LaunchDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33316 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33317 | $as_echo "$LaunchDelegate" >&6; } | 
 | 33318 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33319 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33320 | $as_echo "no" >&6; } | 
 | 33321 | fi | 
 | 33322 |  | 
 | 33323 |  | 
 | 33324 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. | 
 | 33325 | set dummy "$MANDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33327 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33328 | if ${ac_cv_path_MANDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33329 |   $as_echo_n "(cached) " >&6 | 
 | 33330 | else | 
 | 33331 |   case $MANDelegate in | 
 | 33332 |   [\\/]* | ?:[\\/]*) | 
 | 33333 |   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. | 
 | 33334 |   ;; | 
 | 33335 |   *) | 
 | 33336 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33337 | for as_dir in $PATH | 
 | 33338 | do | 
 | 33339 |   IFS=$as_save_IFS | 
 | 33340 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33341 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33342 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33343 |     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33344 |     $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] | 33345 |     break 2 | 
 | 33346 |   fi | 
 | 33347 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33348 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33349 | IFS=$as_save_IFS | 
 | 33350 |  | 
 | 33351 |   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" | 
 | 33352 |   ;; | 
 | 33353 | esac | 
 | 33354 | fi | 
 | 33355 | MANDelegate=$ac_cv_path_MANDelegate | 
 | 33356 | if test -n "$MANDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33357 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33358 | $as_echo "$MANDelegate" >&6; } | 
 | 33359 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33360 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33361 | $as_echo "no" >&6; } | 
 | 33362 | fi | 
 | 33363 |  | 
 | 33364 |  | 
 | 33365 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33366 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33368 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33369 | if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33370 |   $as_echo_n "(cached) " >&6 | 
 | 33371 | else | 
 | 33372 |   case $MPEGDecodeDelegate in | 
 | 33373 |   [\\/]* | ?:[\\/]*) | 
 | 33374 |   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. | 
 | 33375 |   ;; | 
 | 33376 |   *) | 
 | 33377 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33378 | for as_dir in $PATH | 
 | 33379 | do | 
 | 33380 |   IFS=$as_save_IFS | 
 | 33381 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33382 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33383 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33384 |     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33385 |     $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] | 33386 |     break 2 | 
 | 33387 |   fi | 
 | 33388 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33389 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33390 | IFS=$as_save_IFS | 
 | 33391 |  | 
 | 33392 |   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" | 
 | 33393 |   ;; | 
 | 33394 | esac | 
 | 33395 | fi | 
 | 33396 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate | 
 | 33397 | if test -n "$MPEGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33398 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33399 | $as_echo "$MPEGDecodeDelegate" >&6; } | 
 | 33400 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33401 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33402 | $as_echo "no" >&6; } | 
 | 33403 | fi | 
 | 33404 |  | 
 | 33405 |  | 
 | 33406 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. | 
 | 33407 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33409 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33410 | if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33411 |   $as_echo_n "(cached) " >&6 | 
 | 33412 | else | 
 | 33413 |   case $MPEGEncodeDelegate in | 
 | 33414 |   [\\/]* | ?:[\\/]*) | 
 | 33415 |   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. | 
 | 33416 |   ;; | 
 | 33417 |   *) | 
 | 33418 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33419 | for as_dir in $PATH | 
 | 33420 | do | 
 | 33421 |   IFS=$as_save_IFS | 
 | 33422 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33423 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33424 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33425 |     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33426 |     $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] | 33427 |     break 2 | 
 | 33428 |   fi | 
 | 33429 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33430 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33431 | IFS=$as_save_IFS | 
 | 33432 |  | 
 | 33433 |   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" | 
 | 33434 |   ;; | 
 | 33435 | esac | 
 | 33436 | fi | 
 | 33437 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate | 
 | 33438 | if test -n "$MPEGEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33439 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33440 | $as_echo "$MPEGEncodeDelegate" >&6; } | 
 | 33441 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33442 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33443 | $as_echo "no" >&6; } | 
 | 33444 | fi | 
 | 33445 |  | 
 | 33446 |  | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33447 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33448 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 | 
 | 33449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 33450 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33451 | if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33452 |   $as_echo_n "(cached) " >&6 | 
 | 33453 | else | 
 | 33454 |   case $MrSIDDecodeDelegate in | 
 | 33455 |   [\\/]* | ?:[\\/]*) | 
 | 33456 |   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. | 
 | 33457 |   ;; | 
 | 33458 |   *) | 
 | 33459 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33460 | for as_dir in $PATH | 
 | 33461 | do | 
 | 33462 |   IFS=$as_save_IFS | 
 | 33463 |   test -z "$as_dir" && as_dir=. | 
 | 33464 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 33465 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33466 |     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
 | 33467 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 33468 |     break 2 | 
 | 33469 |   fi | 
 | 33470 | done | 
 | 33471 |   done | 
 | 33472 | IFS=$as_save_IFS | 
 | 33473 |  | 
 | 33474 |   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" | 
 | 33475 |   ;; | 
 | 33476 | esac | 
 | 33477 | fi | 
 | 33478 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate | 
 | 33479 | if test -n "$MrSIDDecodeDelegate"; then | 
 | 33480 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 | 
 | 33481 | $as_echo "$MrSIDDecodeDelegate" >&6; } | 
 | 33482 | else | 
 | 33483 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 33484 | $as_echo "no" >&6; } | 
 | 33485 | fi | 
 | 33486 |  | 
 | 33487 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33488 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. | 
 | 33489 | set dummy "$MVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33491 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33492 | if ${ac_cv_path_MVDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33493 |   $as_echo_n "(cached) " >&6 | 
 | 33494 | else | 
 | 33495 |   case $MVDelegate in | 
 | 33496 |   [\\/]* | ?:[\\/]*) | 
 | 33497 |   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. | 
 | 33498 |   ;; | 
 | 33499 |   *) | 
 | 33500 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33501 | for as_dir in $PATH | 
 | 33502 | do | 
 | 33503 |   IFS=$as_save_IFS | 
 | 33504 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33505 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33506 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33507 |     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33508 |     $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] | 33509 |     break 2 | 
 | 33510 |   fi | 
 | 33511 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33512 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33513 | IFS=$as_save_IFS | 
 | 33514 |  | 
 | 33515 |   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" | 
 | 33516 |   ;; | 
 | 33517 | esac | 
 | 33518 | fi | 
 | 33519 | MVDelegate=$ac_cv_path_MVDelegate | 
 | 33520 | if test -n "$MVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33521 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33522 | $as_echo "$MVDelegate" >&6; } | 
 | 33523 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33524 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33525 | $as_echo "no" >&6; } | 
 | 33526 | fi | 
 | 33527 |  | 
 | 33528 |  | 
 | 33529 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. | 
 | 33530 | set dummy "$PCLDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33532 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33533 | if ${ac_cv_path_PCLDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33534 |   $as_echo_n "(cached) " >&6 | 
 | 33535 | else | 
 | 33536 |   case $PCLDelegate in | 
 | 33537 |   [\\/]* | ?:[\\/]*) | 
 | 33538 |   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. | 
 | 33539 |   ;; | 
 | 33540 |   *) | 
 | 33541 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33542 | for as_dir in $PATH | 
 | 33543 | do | 
 | 33544 |   IFS=$as_save_IFS | 
 | 33545 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33546 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33547 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33548 |     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33549 |     $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] | 33550 |     break 2 | 
 | 33551 |   fi | 
 | 33552 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33553 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33554 | IFS=$as_save_IFS | 
 | 33555 |  | 
 | 33556 |   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" | 
 | 33557 |   ;; | 
 | 33558 | esac | 
 | 33559 | fi | 
 | 33560 | PCLDelegate=$ac_cv_path_PCLDelegate | 
 | 33561 | if test -n "$PCLDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33562 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33563 | $as_echo "$PCLDelegate" >&6; } | 
 | 33564 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33565 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33566 | $as_echo "no" >&6; } | 
 | 33567 | fi | 
 | 33568 |  | 
 | 33569 |  | 
 | 33570 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33571 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33573 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33574 | if ${ac_cv_path_PGPDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33575 |   $as_echo_n "(cached) " >&6 | 
 | 33576 | else | 
 | 33577 |   case $PGPDecodeDelegate in | 
 | 33578 |   [\\/]* | ?:[\\/]*) | 
 | 33579 |   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. | 
 | 33580 |   ;; | 
 | 33581 |   *) | 
 | 33582 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33583 | for as_dir in $PATH | 
 | 33584 | do | 
 | 33585 |   IFS=$as_save_IFS | 
 | 33586 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33587 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33588 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33589 |     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33590 |     $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] | 33591 |     break 2 | 
 | 33592 |   fi | 
 | 33593 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33594 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33595 | IFS=$as_save_IFS | 
 | 33596 |  | 
 | 33597 |   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" | 
 | 33598 |   ;; | 
 | 33599 | esac | 
 | 33600 | fi | 
 | 33601 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate | 
 | 33602 | if test -n "$PGPDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33603 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33604 | $as_echo "$PGPDecodeDelegate" >&6; } | 
 | 33605 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33606 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33607 | $as_echo "no" >&6; } | 
 | 33608 | fi | 
 | 33609 |  | 
 | 33610 |  | 
 | 33611 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. | 
 | 33612 | set dummy "$POVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33614 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33615 | if ${ac_cv_path_POVDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33616 |   $as_echo_n "(cached) " >&6 | 
 | 33617 | else | 
 | 33618 |   case $POVDelegate in | 
 | 33619 |   [\\/]* | ?:[\\/]*) | 
 | 33620 |   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. | 
 | 33621 |   ;; | 
 | 33622 |   *) | 
 | 33623 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33624 | for as_dir in $PATH | 
 | 33625 | do | 
 | 33626 |   IFS=$as_save_IFS | 
 | 33627 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33628 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33629 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33630 |     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33631 |     $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] | 33632 |     break 2 | 
 | 33633 |   fi | 
 | 33634 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33635 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33636 | IFS=$as_save_IFS | 
 | 33637 |  | 
 | 33638 |   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" | 
 | 33639 |   ;; | 
 | 33640 | esac | 
 | 33641 | fi | 
 | 33642 | POVDelegate=$ac_cv_path_POVDelegate | 
 | 33643 | if test -n "$POVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33644 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33645 | $as_echo "$POVDelegate" >&6; } | 
 | 33646 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33647 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33648 | $as_echo "no" >&6; } | 
 | 33649 | fi | 
 | 33650 |  | 
 | 33651 |  | 
 | 33652 | for ac_prog in gsx gsc "$PSDelegateDefault" | 
 | 33653 | do | 
 | 33654 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 33655 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33657 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33658 | if ${ac_cv_path_PSDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33659 |   $as_echo_n "(cached) " >&6 | 
 | 33660 | else | 
 | 33661 |   case $PSDelegate in | 
 | 33662 |   [\\/]* | ?:[\\/]*) | 
 | 33663 |   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. | 
 | 33664 |   ;; | 
 | 33665 |   *) | 
 | 33666 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33667 | for as_dir in $PATH | 
 | 33668 | do | 
 | 33669 |   IFS=$as_save_IFS | 
 | 33670 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33671 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33672 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33673 |     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33674 |     $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] | 33675 |     break 2 | 
 | 33676 |   fi | 
 | 33677 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33678 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33679 | IFS=$as_save_IFS | 
 | 33680 |  | 
 | 33681 |   ;; | 
 | 33682 | esac | 
 | 33683 | fi | 
 | 33684 | PSDelegate=$ac_cv_path_PSDelegate | 
 | 33685 | if test -n "$PSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33686 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33687 | $as_echo "$PSDelegate" >&6; } | 
 | 33688 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33689 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33690 | $as_echo "no" >&6; } | 
 | 33691 | fi | 
 | 33692 |  | 
 | 33693 |  | 
 | 33694 |   test -n "$PSDelegate" && break | 
 | 33695 | done | 
 | 33696 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" | 
 | 33697 |  | 
 | 33698 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. | 
 | 33699 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33701 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33702 | if ${ac_cv_path_RLEEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33703 |   $as_echo_n "(cached) " >&6 | 
 | 33704 | else | 
 | 33705 |   case $RLEEncodeDelegate in | 
 | 33706 |   [\\/]* | ?:[\\/]*) | 
 | 33707 |   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. | 
 | 33708 |   ;; | 
 | 33709 |   *) | 
 | 33710 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33711 | for as_dir in $PATH | 
 | 33712 | do | 
 | 33713 |   IFS=$as_save_IFS | 
 | 33714 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33715 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33716 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33717 |     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33718 |     $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] | 33719 |     break 2 | 
 | 33720 |   fi | 
 | 33721 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33722 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33723 | IFS=$as_save_IFS | 
 | 33724 |  | 
 | 33725 |   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" | 
 | 33726 |   ;; | 
 | 33727 | esac | 
 | 33728 | fi | 
 | 33729 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate | 
 | 33730 | if test -n "$RLEEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33731 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33732 | $as_echo "$RLEEncodeDelegate" >&6; } | 
 | 33733 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33734 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33735 | $as_echo "no" >&6; } | 
 | 33736 | fi | 
 | 33737 |  | 
 | 33738 |  | 
 | 33739 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. | 
 | 33740 | set dummy "$RMDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33742 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33743 | if ${ac_cv_path_RMDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33744 |   $as_echo_n "(cached) " >&6 | 
 | 33745 | else | 
 | 33746 |   case $RMDelegate in | 
 | 33747 |   [\\/]* | ?:[\\/]*) | 
 | 33748 |   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. | 
 | 33749 |   ;; | 
 | 33750 |   *) | 
 | 33751 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33752 | for as_dir in $PATH | 
 | 33753 | do | 
 | 33754 |   IFS=$as_save_IFS | 
 | 33755 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33756 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33757 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33758 |     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33759 |     $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] | 33760 |     break 2 | 
 | 33761 |   fi | 
 | 33762 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33763 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33764 | IFS=$as_save_IFS | 
 | 33765 |  | 
 | 33766 |   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" | 
 | 33767 |   ;; | 
 | 33768 | esac | 
 | 33769 | fi | 
 | 33770 | RMDelegate=$ac_cv_path_RMDelegate | 
 | 33771 | if test -n "$RMDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33772 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33773 | $as_echo "$RMDelegate" >&6; } | 
 | 33774 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33775 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33776 | $as_echo "no" >&6; } | 
 | 33777 | fi | 
 | 33778 |  | 
 | 33779 |  | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33780 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33781 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 | 
 | 33782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 33783 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33784 | if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33785 |   $as_echo_n "(cached) " >&6 | 
 | 33786 | else | 
 | 33787 |   case $RSVGDecodeDelegate in | 
 | 33788 |   [\\/]* | ?:[\\/]*) | 
 | 33789 |   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. | 
 | 33790 |   ;; | 
 | 33791 |   *) | 
 | 33792 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33793 | for as_dir in $PATH | 
 | 33794 | do | 
 | 33795 |   IFS=$as_save_IFS | 
 | 33796 |   test -z "$as_dir" && as_dir=. | 
 | 33797 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 33798 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33799 |     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
 | 33800 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 33801 |     break 2 | 
 | 33802 |   fi | 
 | 33803 | done | 
 | 33804 |   done | 
 | 33805 | IFS=$as_save_IFS | 
 | 33806 |  | 
 | 33807 |   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" | 
 | 33808 |   ;; | 
 | 33809 | esac | 
 | 33810 | fi | 
 | 33811 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate | 
 | 33812 | if test -n "$RSVGDecodeDelegate"; then | 
 | 33813 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 | 
 | 33814 | $as_echo "$RSVGDecodeDelegate" >&6; } | 
 | 33815 | else | 
 | 33816 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 33817 | $as_echo "no" >&6; } | 
 | 33818 | fi | 
 | 33819 |  | 
 | 33820 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33821 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33822 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33824 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33825 | if ${ac_cv_path_SCANDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33826 |   $as_echo_n "(cached) " >&6 | 
 | 33827 | else | 
 | 33828 |   case $SCANDecodeDelegate in | 
 | 33829 |   [\\/]* | ?:[\\/]*) | 
 | 33830 |   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. | 
 | 33831 |   ;; | 
 | 33832 |   *) | 
 | 33833 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33834 | for as_dir in $PATH | 
 | 33835 | do | 
 | 33836 |   IFS=$as_save_IFS | 
 | 33837 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33838 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33839 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33840 |     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33841 |     $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] | 33842 |     break 2 | 
 | 33843 |   fi | 
 | 33844 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33845 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33846 | IFS=$as_save_IFS | 
 | 33847 |  | 
 | 33848 |   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" | 
 | 33849 |   ;; | 
 | 33850 | esac | 
 | 33851 | fi | 
 | 33852 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate | 
 | 33853 | if test -n "$SCANDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33854 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33855 | $as_echo "$SCANDecodeDelegate" >&6; } | 
 | 33856 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33857 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33858 | $as_echo "no" >&6; } | 
 | 33859 | fi | 
 | 33860 |  | 
 | 33861 |  | 
 | 33862 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. | 
 | 33863 | set dummy "$TXTDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33865 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33866 | if ${ac_cv_path_TXTDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33867 |   $as_echo_n "(cached) " >&6 | 
 | 33868 | else | 
 | 33869 |   case $TXTDelegate in | 
 | 33870 |   [\\/]* | ?:[\\/]*) | 
 | 33871 |   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. | 
 | 33872 |   ;; | 
 | 33873 |   *) | 
 | 33874 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33875 | for as_dir in $PATH | 
 | 33876 | do | 
 | 33877 |   IFS=$as_save_IFS | 
 | 33878 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33879 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33880 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33881 |     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33882 |     $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] | 33883 |     break 2 | 
 | 33884 |   fi | 
 | 33885 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33886 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33887 | IFS=$as_save_IFS | 
 | 33888 |  | 
 | 33889 |   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" | 
 | 33890 |   ;; | 
 | 33891 | esac | 
 | 33892 | fi | 
 | 33893 | TXTDelegate=$ac_cv_path_TXTDelegate | 
 | 33894 | if test -n "$TXTDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33895 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33896 | $as_echo "$TXTDelegate" >&6; } | 
 | 33897 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33898 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33899 | $as_echo "no" >&6; } | 
 | 33900 | fi | 
 | 33901 |  | 
 | 33902 |  | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33903 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. | 
 | 33904 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 | 
 | 33905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
 | 33906 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33907 | if ${ac_cv_path_UniconvertorDelegate+:} false; then : | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33908 |   $as_echo_n "(cached) " >&6 | 
 | 33909 | else | 
 | 33910 |   case $UniconvertorDelegate in | 
 | 33911 |   [\\/]* | ?:[\\/]*) | 
 | 33912 |   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. | 
 | 33913 |   ;; | 
 | 33914 |   *) | 
 | 33915 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33916 | for as_dir in $PATH | 
 | 33917 | do | 
 | 33918 |   IFS=$as_save_IFS | 
 | 33919 |   test -z "$as_dir" && as_dir=. | 
 | 33920 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
 | 33921 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33922 |     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
 | 33923 |     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
 | 33924 |     break 2 | 
 | 33925 |   fi | 
 | 33926 | done | 
 | 33927 |   done | 
 | 33928 | IFS=$as_save_IFS | 
 | 33929 |  | 
 | 33930 |   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" | 
 | 33931 |   ;; | 
 | 33932 | esac | 
 | 33933 | fi | 
 | 33934 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate | 
 | 33935 | if test -n "$UniconvertorDelegate"; then | 
 | 33936 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 | 
 | 33937 | $as_echo "$UniconvertorDelegate" >&6; } | 
 | 33938 | else | 
 | 33939 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
 | 33940 | $as_echo "no" >&6; } | 
 | 33941 | fi | 
 | 33942 |  | 
 | 33943 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33944 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33945 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33947 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33948 | if ${ac_cv_path_WMFDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33949 |   $as_echo_n "(cached) " >&6 | 
 | 33950 | else | 
 | 33951 |   case $WMFDecodeDelegate in | 
 | 33952 |   [\\/]* | ?:[\\/]*) | 
 | 33953 |   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. | 
 | 33954 |   ;; | 
 | 33955 |   *) | 
 | 33956 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33957 | for as_dir in $PATH | 
 | 33958 | do | 
 | 33959 |   IFS=$as_save_IFS | 
 | 33960 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33961 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33962 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 33963 |     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33964 |     $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] | 33965 |     break 2 | 
 | 33966 |   fi | 
 | 33967 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33968 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33969 | IFS=$as_save_IFS | 
 | 33970 |  | 
 | 33971 |   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" | 
 | 33972 |   ;; | 
 | 33973 | esac | 
 | 33974 | fi | 
 | 33975 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate | 
 | 33976 | if test -n "$WMFDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33977 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33978 | $as_echo "$WMFDecodeDelegate" >&6; } | 
 | 33979 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33980 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33981 | $as_echo "no" >&6; } | 
 | 33982 | fi | 
 | 33983 |  | 
 | 33984 |  | 
 | 33985 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. | 
 | 33986 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33988 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33989 | if ${ac_cv_path_WWWDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33990 |   $as_echo_n "(cached) " >&6 | 
 | 33991 | else | 
 | 33992 |   case $WWWDecodeDelegate in | 
 | 33993 |   [\\/]* | ?:[\\/]*) | 
 | 33994 |   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. | 
 | 33995 |   ;; | 
 | 33996 |   *) | 
 | 33997 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 33998 | for as_dir in $PATH | 
 | 33999 | do | 
 | 34000 |   IFS=$as_save_IFS | 
 | 34001 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34002 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34003 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34004 |     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34005 |     $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] | 34006 |     break 2 | 
 | 34007 |   fi | 
 | 34008 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34009 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34010 | IFS=$as_save_IFS | 
 | 34011 |  | 
 | 34012 |   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" | 
 | 34013 |   ;; | 
 | 34014 | esac | 
 | 34015 | fi | 
 | 34016 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate | 
 | 34017 | if test -n "$WWWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34018 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34019 | $as_echo "$WWWDecodeDelegate" >&6; } | 
 | 34020 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34021 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34022 | $as_echo "no" >&6; } | 
 | 34023 | fi | 
 | 34024 |  | 
 | 34025 |  | 
 | 34026 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. | 
 | 34027 | set dummy "$XPSDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34029 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34030 | if ${ac_cv_path_XPSDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34031 |   $as_echo_n "(cached) " >&6 | 
 | 34032 | else | 
 | 34033 |   case $XPSDelegate in | 
 | 34034 |   [\\/]* | ?:[\\/]*) | 
 | 34035 |   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. | 
 | 34036 |   ;; | 
 | 34037 |   *) | 
 | 34038 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34039 | for as_dir in $PATH | 
 | 34040 | do | 
 | 34041 |   IFS=$as_save_IFS | 
 | 34042 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34043 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34044 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34045 |     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34046 |     $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] | 34047 |     break 2 | 
 | 34048 |   fi | 
 | 34049 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34050 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34051 | IFS=$as_save_IFS | 
 | 34052 |  | 
 | 34053 |   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" | 
 | 34054 |   ;; | 
 | 34055 | esac | 
 | 34056 | fi | 
 | 34057 | XPSDelegate=$ac_cv_path_XPSDelegate | 
 | 34058 | if test -n "$XPSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34059 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34060 | $as_echo "$XPSDelegate" >&6; } | 
 | 34061 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34062 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34063 | $as_echo "no" >&6; } | 
 | 34064 | fi | 
 | 34065 |  | 
 | 34066 |  | 
 | 34067 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. | 
 | 34068 | set dummy "$ZipDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34070 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34071 | if ${ac_cv_path_ZipDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34072 |   $as_echo_n "(cached) " >&6 | 
 | 34073 | else | 
 | 34074 |   case $ZipDelegate in | 
 | 34075 |   [\\/]* | ?:[\\/]*) | 
 | 34076 |   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. | 
 | 34077 |   ;; | 
 | 34078 |   *) | 
 | 34079 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34080 | for as_dir in $PATH | 
 | 34081 | do | 
 | 34082 |   IFS=$as_save_IFS | 
 | 34083 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34084 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34085 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34086 |     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34087 |     $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] | 34088 |     break 2 | 
 | 34089 |   fi | 
 | 34090 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34091 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34092 | IFS=$as_save_IFS | 
 | 34093 |  | 
 | 34094 |   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" | 
 | 34095 |   ;; | 
 | 34096 | esac | 
 | 34097 | fi | 
 | 34098 | ZipDelegate=$ac_cv_path_ZipDelegate | 
 | 34099 | if test -n "$ZipDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34100 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34101 | $as_echo "$ZipDelegate" >&6; } | 
 | 34102 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34103 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34104 | $as_echo "no" >&6; } | 
 | 34105 | fi | 
 | 34106 |  | 
 | 34107 |  | 
 | 34108 |  | 
 | 34109 | # Prefer lpr to lp; lp needs options tacked on. | 
 | 34110 | if test "$LPRDelegate" != no; then | 
 | 34111 |     PrintDelegate="$LPRDelegate" | 
 | 34112 | else | 
 | 34113 |     PrintDelegate="$LPDelegate -c -s" | 
 | 34114 | fi | 
 | 34115 |  | 
 | 34116 |  | 
 | 34117 | # Installed ImageMagick utiltity paths | 
 | 34118 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" | 
 | 34119 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" | 
 | 34120 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" | 
 | 34121 |  | 
 | 34122 | # Set delegate booleans | 
 | 34123 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi | 
 | 34124 | have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi | 
 | 34125 | have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi | 
 | 34126 | have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi | 
 | 34127 | have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 34128 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34129 | have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi | 
 | 34130 | have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34131 | have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi | 
 | 34132 | have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi | 
 | 34133 |  | 
 | 34134 | # | 
 | 34135 | # Test for font directories | 
 | 34136 | # | 
 | 34137 | type_include_files='' | 
 | 34138 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34139 | # Dejavu fonts. | 
 | 34140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 | 
 | 34141 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } | 
 | 34142 | dejavu_font_dir='' | 
 | 34143 | if test "${with_dejavu_font_dir}" != 'default'; then | 
 | 34144 |   dejavu_font_dir="${with_dejavu_font_dir}/" | 
 | 34145 | else | 
 | 34146 |   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do | 
 | 34147 |     if test -f "${font_dir}DejaVuSerif.ttf"; then | 
 | 34148 |       dejavu_font_dir="${font_dir}" | 
 | 34149 |       break 1 | 
 | 34150 |     fi | 
 | 34151 |   done | 
 | 34152 | fi | 
 | 34153 | if test "${dejavu_font_dir}x" != 'x'; then | 
 | 34154 |   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34155 |   { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5 | 
 | 34156 | $as_echo "$as_me: $dejavu_font_dir" >&6;} | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34157 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34158 |   { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 | 
 | 34159 | $as_echo "$as_me: not found!" >&6;}; | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34160 | fi | 
 | 34161 |  | 
 | 34162 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34163 | # Windows | 
 | 34164 | windows_font_dir='' | 
 | 34165 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then | 
 | 34166 |    windows_font_dir="${with_windows_font_dir}/" | 
 | 34167 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34168 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34169 |     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then | 
 | 34170 |       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' | 
 | 34171 |     fi | 
 | 34172 |     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then | 
 | 34173 |       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' | 
 | 34174 |     fi | 
 | 34175 |     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then | 
 | 34176 |       windows_font_dir='/usr/share/fonts/msttcore/truetype/' | 
 | 34177 |     fi | 
 | 34178 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34179 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34180 |   type_include_files="$type_include_files "'<include file="type-windows.xml" />' | 
 | 34181 | fi | 
 | 34182 |  | 
 | 34183 |  | 
 | 34184 | # Ghostscript | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34186 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } | 
 | 34187 | ghostscript_font_dir='' | 
 | 34188 | if test "${with_gs_font_dir}" != 'default'; then | 
 | 34189 |   ghostscript_font_dir="${with_gs_font_dir}/" | 
 | 34190 | else | 
 | 34191 |   if test "${native_win32_build}" = 'yes'; then | 
 | 34192 |     # Native Windows Build | 
 | 34193 |     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do | 
 | 34194 |       if test -f "${font_dir}a010013l.pfb"; then | 
 | 34195 |         ghostscript_font_dir="$font_dir" | 
 | 34196 |         break 1 | 
 | 34197 |       fi | 
 | 34198 |     done | 
 | 34199 |     if test "${PSDelegate}" != 'gswin32c'; then | 
 | 34200 |       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" | 
 | 34201 |     fi | 
 | 34202 |   else | 
 | 34203 |     # Linux / Mac OS X / Unix Build | 
 | 34204 |     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 | 
 | 34205 |       if test -f "${font_dir}a010013l.pfb"; then | 
 | 34206 |         ghostscript_font_dir="${font_dir}" | 
 | 34207 |         break 1 | 
 | 34208 |       fi | 
 | 34209 |     done | 
 | 34210 |     if test "${ghostscript_font_dir}x" = 'x'; then | 
 | 34211 |       if test "$PSDelegate" != 'gs'; then | 
 | 34212 |         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" | 
 | 34213 |       fi | 
 | 34214 |     fi | 
 | 34215 |   fi | 
 | 34216 | fi | 
 | 34217 | if test "${ghostscript_font_dir}x" != 'x'; then | 
 | 34218 |   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34219 |   { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5 | 
 | 34220 | $as_echo "$as_me: $ghostscript_font_dir" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34221 | else | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34222 |   { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 | 
 | 34223 | $as_echo "$as_me: not found!" >&6;}; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34224 | fi | 
 | 34225 |  | 
 | 34226 | case "${build_os}" in | 
 | 34227 |   mingw* ) | 
 | 34228 |     PSDelegate=`$WinPathScript "$PSDelegate" 1` | 
 | 34229 |     ;; | 
 | 34230 | esac | 
 | 34231 |  | 
 | 34232 |  | 
 | 34233 |  | 
 | 34234 | # | 
 | 34235 | # Handle case where user doesn't want frozen paths | 
 | 34236 | # | 
 | 34237 | if test "$with_frozenpaths" != 'yes'; then | 
 | 34238 |   # Re-set delegate definitions to default (no paths) | 
 | 34239 |   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34240 |   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" | 
 | 34241 |   BZIPDelegate="$BZIPDelegateDefault" | 
 | 34242 |   BrowseDelegate="$BrowseDelegateDefault" | 
 | 34243 |   CGMDecodeDelegate="$CGMDecodeDelegateDefault" | 
 | 34244 |   CatDelegate="$CatDelegateDefault" | 
 | 34245 |   ConvertDelegate="$ConvertDelegateDefault" | 
 | 34246 |   GVCDecodeDelegate="$GVCDecodeDelegateDefault" | 
 | 34247 |   DVIDecodeDelegate="$DVIDecodeDelegateDefault" | 
 | 34248 |   EchoDelegate="$EchoDelegateDefault" | 
 | 34249 |   EditorDelegate="$EditorDelegateDefault" | 
 | 34250 |   FIGDecodeDelegate="$FIGDecodeDelegateDefault" | 
 | 34251 |   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" | 
 | 34252 |   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" | 
 | 34253 |   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" | 
 | 34254 |   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" | 
 | 34255 |   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" | 
 | 34256 |   LPDelegate="$LPDelegateDefault" | 
 | 34257 |   LZWDecodeDelegate="$LZWDecodeDelegateDefault" | 
 | 34258 |   LZWEncodeDelegate="$LZWEncodeDelegateDefault" | 
 | 34259 |   LaunchDelegate="$LaunchDelegateDefault" | 
 | 34260 |   MANDelegate="$MANDelegateDefault" | 
 | 34261 |   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" | 
 | 34262 |   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34263 |   MogrifyDelegate="$MogrifyDelegateDefault" | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 34264 |   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" | 
 | 34265 |   MVDelegate="$MVDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34266 |   PCLDelegate="$PCLDelegateDefault" | 
 | 34267 |   PGPDecodeDelegate="$PGPDecodeDelegateDefault" | 
 | 34268 |   POVDelegate="$POVDelegateDefault" | 
 | 34269 |   PSDelegate="$PSDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34270 |   RLEEncodeDelegate="$RLEEncodeDelegateDefault" | 
 | 34271 |   RMDelegate="$RMDelegateDefault" | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34272 |   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34273 |   SCANDecodeDelegate="$SCANDecodeDelegateDefault" | 
 | 34274 |   ShowImageDelegate="$ShowImageDelegateDefault" | 
 | 34275 |   TXTDelegate="$TXTDelegateDefault" | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34276 |   UniconvertorDelegate="$UniconvertorDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34277 |   WMFDecodeDelegate="$WMFDecodeDelegateDefault" | 
 | 34278 |   WWWDecodeDelegate="$WWWDecodeDelegateDefault" | 
 | 34279 |   XPSDelegate="$XPSDelegateDefault" | 
 | 34280 |   ZipDelegate="$ZipDelegateDefault" | 
 | 34281 | fi | 
 | 34282 |  | 
 | 34283 | # Delegate substitutions | 
 | 34284 |  | 
 | 34285 |  | 
 | 34286 |  | 
 | 34287 |  | 
 | 34288 |  | 
 | 34289 |  | 
 | 34290 |  | 
 | 34291 |  | 
 | 34292 |  | 
 | 34293 |  | 
 | 34294 |  | 
 | 34295 |  | 
 | 34296 |  | 
 | 34297 |  | 
 | 34298 |  | 
 | 34299 |  | 
 | 34300 |  | 
 | 34301 |  | 
 | 34302 |  | 
 | 34303 |  | 
 | 34304 |  | 
 | 34305 |  | 
 | 34306 |  | 
 | 34307 |  | 
 | 34308 |  | 
 | 34309 |  | 
 | 34310 |  | 
 | 34311 |  | 
 | 34312 |  | 
 | 34313 |  | 
 | 34314 |  | 
 | 34315 |  | 
 | 34316 |  | 
 | 34317 |  | 
 | 34318 |  | 
 | 34319 |  | 
 | 34320 |  | 
 | 34321 |  | 
 | 34322 |  | 
 | 34323 |  | 
 | 34324 |  | 
 | 34325 |  | 
 | 34326 | # | 
 | 34327 | # RPM support. | 
 | 34328 | # | 
 | 34329 | RPM='' | 
 | 34330 | for ac_prog in gnutar gtar tar | 
 | 34331 | do | 
 | 34332 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34333 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34335 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34336 | if ${ac_cv_prog_TAR+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34337 |   $as_echo_n "(cached) " >&6 | 
 | 34338 | else | 
 | 34339 |   if test -n "$TAR"; then | 
 | 34340 |   ac_cv_prog_TAR="$TAR" # Let the user override the test. | 
 | 34341 | else | 
 | 34342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34343 | for as_dir in $PATH | 
 | 34344 | do | 
 | 34345 |   IFS=$as_save_IFS | 
 | 34346 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34347 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34348 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34349 |     ac_cv_prog_TAR="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34350 |     $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] | 34351 |     break 2 | 
 | 34352 |   fi | 
 | 34353 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34354 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34355 | IFS=$as_save_IFS | 
 | 34356 |  | 
 | 34357 | fi | 
 | 34358 | fi | 
 | 34359 | TAR=$ac_cv_prog_TAR | 
 | 34360 | if test -n "$TAR"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34361 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34362 | $as_echo "$TAR" >&6; } | 
 | 34363 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34364 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34365 | $as_echo "no" >&6; } | 
 | 34366 | fi | 
 | 34367 |  | 
 | 34368 |  | 
 | 34369 |   test -n "$TAR" && break | 
 | 34370 | done | 
 | 34371 |  | 
 | 34372 | for ac_prog in perl | 
 | 34373 | do | 
 | 34374 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34375 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34377 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34378 | if ${ac_cv_prog_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34379 |   $as_echo_n "(cached) " >&6 | 
 | 34380 | else | 
 | 34381 |   if test -n "$PERL"; then | 
 | 34382 |   ac_cv_prog_PERL="$PERL" # Let the user override the test. | 
 | 34383 | else | 
 | 34384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34385 | for as_dir in $PATH | 
 | 34386 | do | 
 | 34387 |   IFS=$as_save_IFS | 
 | 34388 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34389 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34390 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34391 |     ac_cv_prog_PERL="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34392 |     $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] | 34393 |     break 2 | 
 | 34394 |   fi | 
 | 34395 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34396 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34397 | IFS=$as_save_IFS | 
 | 34398 |  | 
 | 34399 | fi | 
 | 34400 | fi | 
 | 34401 | PERL=$ac_cv_prog_PERL | 
 | 34402 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34403 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34404 | $as_echo "$PERL" >&6; } | 
 | 34405 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34406 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34407 | $as_echo "no" >&6; } | 
 | 34408 | fi | 
 | 34409 |  | 
 | 34410 |  | 
 | 34411 |   test -n "$PERL" && break | 
 | 34412 | done | 
 | 34413 |  | 
 | 34414 | for ac_prog in rpmbuild rpm | 
 | 34415 | do | 
 | 34416 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34417 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34419 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34420 | if ${ac_cv_prog_RPM+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34421 |   $as_echo_n "(cached) " >&6 | 
 | 34422 | else | 
 | 34423 |   if test -n "$RPM"; then | 
 | 34424 |   ac_cv_prog_RPM="$RPM" # Let the user override the test. | 
 | 34425 | else | 
 | 34426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34427 | for as_dir in $PATH | 
 | 34428 | do | 
 | 34429 |   IFS=$as_save_IFS | 
 | 34430 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34431 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34432 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34433 |     ac_cv_prog_RPM="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34434 |     $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] | 34435 |     break 2 | 
 | 34436 |   fi | 
 | 34437 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34438 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34439 | IFS=$as_save_IFS | 
 | 34440 |  | 
 | 34441 | fi | 
 | 34442 | fi | 
 | 34443 | RPM=$ac_cv_prog_RPM | 
 | 34444 | if test -n "$RPM"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34445 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34446 | $as_echo "$RPM" >&6; } | 
 | 34447 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34448 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34449 | $as_echo "no" >&6; } | 
 | 34450 | fi | 
 | 34451 |  | 
 | 34452 |  | 
 | 34453 |   test -n "$RPM" && break | 
 | 34454 | done | 
 | 34455 |  | 
 | 34456 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34457 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | 
 | 34458 |  | 
 | 34459 |  | 
 | 34460 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
 | 34461 |  | 
 | 34462 |  | 
 | 34463 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | 
 | 34464 |  | 
 | 34465 |  | 
 | 34466 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
 | 34467 |  | 
 | 34468 |  | 
 | 34469 |  if test "x$RPM" != "x" ; then | 
 | 34470 |   RPM_DELEGATE_TRUE= | 
 | 34471 |   RPM_DELEGATE_FALSE='#' | 
 | 34472 | else | 
 | 34473 |   RPM_DELEGATE_TRUE='#' | 
 | 34474 |   RPM_DELEGATE_FALSE= | 
 | 34475 | fi | 
 | 34476 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34477 |  | 
 | 34478 | # | 
 | 34479 | # 7ZIP support (http://p7zip.sourceforge.net/) | 
 | 34480 | # | 
 | 34481 | P7ZIP='' | 
 | 34482 | for ac_prog in 7za | 
 | 34483 | do | 
 | 34484 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34485 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34487 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34488 | if ${ac_cv_prog_P7ZIP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34489 |   $as_echo_n "(cached) " >&6 | 
 | 34490 | else | 
 | 34491 |   if test -n "$P7ZIP"; then | 
 | 34492 |   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. | 
 | 34493 | else | 
 | 34494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34495 | for as_dir in $PATH | 
 | 34496 | do | 
 | 34497 |   IFS=$as_save_IFS | 
 | 34498 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34499 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34500 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34501 |     ac_cv_prog_P7ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34502 |     $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] | 34503 |     break 2 | 
 | 34504 |   fi | 
 | 34505 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34506 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34507 | IFS=$as_save_IFS | 
 | 34508 |  | 
 | 34509 | fi | 
 | 34510 | fi | 
 | 34511 | P7ZIP=$ac_cv_prog_P7ZIP | 
 | 34512 | if test -n "$P7ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34513 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34514 | $as_echo "$P7ZIP" >&6; } | 
 | 34515 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34516 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34517 | $as_echo "no" >&6; } | 
 | 34518 | fi | 
 | 34519 |  | 
 | 34520 |  | 
 | 34521 |   test -n "$P7ZIP" && break | 
 | 34522 | done | 
 | 34523 |  | 
 | 34524 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34525 |  if test "x$P7ZIP" != "x" ; then | 
 | 34526 |   P7ZIP_DELEGATE_TRUE= | 
 | 34527 |   P7ZIP_DELEGATE_FALSE='#' | 
 | 34528 | else | 
 | 34529 |   P7ZIP_DELEGATE_TRUE='#' | 
 | 34530 |   P7ZIP_DELEGATE_FALSE= | 
 | 34531 | fi | 
 | 34532 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34533 |  | 
 | 34534 | # | 
 | 34535 | # ZIP support (http://www.info-zip.org/Zip.html) | 
 | 34536 | # | 
 | 34537 | ZIP='' | 
 | 34538 | for ac_prog in zip | 
 | 34539 | do | 
 | 34540 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34541 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34543 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34544 | if ${ac_cv_prog_ZIP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34545 |   $as_echo_n "(cached) " >&6 | 
 | 34546 | else | 
 | 34547 |   if test -n "$ZIP"; then | 
 | 34548 |   ac_cv_prog_ZIP="$ZIP" # Let the user override the test. | 
 | 34549 | else | 
 | 34550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34551 | for as_dir in $PATH | 
 | 34552 | do | 
 | 34553 |   IFS=$as_save_IFS | 
 | 34554 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34555 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34556 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34557 |     ac_cv_prog_ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34558 |     $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] | 34559 |     break 2 | 
 | 34560 |   fi | 
 | 34561 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34562 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34563 | IFS=$as_save_IFS | 
 | 34564 |  | 
 | 34565 | fi | 
 | 34566 | fi | 
 | 34567 | ZIP=$ac_cv_prog_ZIP | 
 | 34568 | if test -n "$ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34569 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34570 | $as_echo "$ZIP" >&6; } | 
 | 34571 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34572 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34573 | $as_echo "no" >&6; } | 
 | 34574 | fi | 
 | 34575 |  | 
 | 34576 |  | 
 | 34577 |   test -n "$ZIP" && break | 
 | 34578 | done | 
 | 34579 |  | 
 | 34580 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34581 |  if test "x$ZIP" != "x" ; then | 
 | 34582 |   ZIP_DELEGATE_TRUE= | 
 | 34583 |   ZIP_DELEGATE_FALSE='#' | 
 | 34584 | else | 
 | 34585 |   ZIP_DELEGATE_TRUE='#' | 
 | 34586 |   ZIP_DELEGATE_FALSE= | 
 | 34587 | fi | 
 | 34588 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34589 |  | 
 | 34590 | # | 
 | 34591 | # GhostPCL related configuration. | 
 | 34592 | # | 
 | 34593 | PCLColorDevice=ppmraw | 
| cristy | 8bc8408 | 2011-09-07 13:57:00 +0000 | [diff] [blame] | 34594 | PCLCMYKDevice=pamcmyk32 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34595 | PCLMonoDevice=pbmraw | 
 | 34596 | if test -z "$PCLVersion"; then | 
 | 34597 |     PCLVersion='unknown' | 
 | 34598 | fi | 
 | 34599 | if test $have_pcl = 'yes'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34600 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 34601 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34602 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34603 | $as_echo_n "checking for PCL... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34604 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 34605 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34606 |     # PCLColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34607 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34608 | $as_echo_n "checking for pcl color device... " >&6; } | 
 | 34609 |     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34610 |         : | 
 | 34611 |     else | 
 | 34612 |         PCLColorDevice=ppmraw | 
 | 34613 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34614 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5 | 
 | 34615 | $as_echo "$as_me: $PCLColorDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34616 |  | 
 | 34617 |     # PCLCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34618 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34619 | $as_echo_n "checking for pcl CMYK device... " >&6; } | 
 | 34620 |     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34621 |         : | 
 | 34622 |     else | 
 | 34623 |         PCLCMYKDevice=$PCLColorDevice | 
 | 34624 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34625 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5 | 
 | 34626 | $as_echo "$as_me: $PCLCMYKDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34627 |  | 
 | 34628 |     # PCLMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34629 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34630 | $as_echo_n "checking for pcl mono device... " >&6; } | 
 | 34631 |     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34632 |         : | 
 | 34633 |     else | 
 | 34634 |         PCLMonoDevice=$PCLColorDevice | 
 | 34635 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34636 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5 | 
 | 34637 | $as_echo "$as_me: $PCLMonoDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34638 | fi | 
 | 34639 |  | 
 | 34640 |  | 
 | 34641 |  | 
 | 34642 |  | 
 | 34643 |  | 
 | 34644 |  | 
 | 34645 | # | 
 | 34646 | # GhostXPS related configuration. | 
 | 34647 | # | 
 | 34648 | XPSColorDevice=ppmraw | 
 | 34649 | XPSCMYKDevice=bmpsep8 | 
 | 34650 | XPSMonoDevice=pbmraw | 
 | 34651 | if test -z "$XPSVersion"; then | 
 | 34652 |     XPSVersion='unknown' | 
 | 34653 | fi | 
 | 34654 | if test $have_xps = 'yes'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34655 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 34656 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34657 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34658 | $as_echo_n "checking for XPS... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34659 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 34660 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34661 |     # XPSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34662 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34663 | $as_echo_n "checking for xps color device... " >&6; } | 
 | 34664 |     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34665 |         : | 
 | 34666 |     else | 
 | 34667 |         XPSColorDevice=ppmraw | 
 | 34668 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34669 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5 | 
 | 34670 | $as_echo "$as_me: $XPSColorDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34671 |  | 
 | 34672 |     # XPSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34673 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34674 | $as_echo_n "checking for xps CMYK device... " >&6; } | 
 | 34675 |     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34676 |         : | 
 | 34677 |     else | 
 | 34678 |         XPSCMYKDevice=$XPSColorDevice | 
 | 34679 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34680 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5 | 
 | 34681 | $as_echo "$as_me: $XPSCMYKDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34682 |  | 
 | 34683 |     # XPSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34684 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34685 | $as_echo_n "checking for xps mono device... " >&6; } | 
 | 34686 |     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34687 |         : | 
 | 34688 |     else | 
 | 34689 |         XPSMonoDevice=$XPSColorDevice | 
 | 34690 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34691 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5 | 
 | 34692 | $as_echo "$as_me: $XPSMonoDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34693 | fi | 
 | 34694 |  | 
 | 34695 |  | 
 | 34696 |  | 
 | 34697 |  | 
 | 34698 |  | 
 | 34699 |  | 
 | 34700 | # | 
 | 34701 | # Ghostscript related configuration. | 
 | 34702 | # | 
| cristy | a97426c | 2011-02-04 01:41:27 +0000 | [diff] [blame] | 34703 | GSAlphaDevice=pngalpha | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34704 | GSColorDevice=pnmraw | 
 | 34705 | GSCMYKDevice=pam | 
 | 34706 | GSMonoDevice=pbmraw | 
 | 34707 | GSPDFDevice=pdfwrite | 
 | 34708 | GSPSDevice=pswrite | 
 | 34709 | GSEPSDevice=epswrite | 
 | 34710 | GSVersion='unknown' | 
 | 34711 | if test $have_gs = 'yes'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34712 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 34713 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34714 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34715 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34716 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 34717 | $as_echo "$as_me: " >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34718 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34719 | $as_echo_n "checking for Ghostscript version... " >&6; } | 
 | 34720 |     if GSVersion=`$PSDelegate --version`; then | 
 | 34721 |         : | 
 | 34722 |     else | 
 | 34723 |         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` | 
 | 34724 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34725 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5 | 
 | 34726 | $as_echo "$as_me: $GSVersion" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34727 |  | 
 | 34728 |     # GSAlphaDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34729 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34730 | $as_echo_n "checking for gs alpha device... " >&6; } | 
 | 34731 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34732 |         : | 
 | 34733 |     else | 
 | 34734 |         GSAlphaDevice=pnmraw | 
 | 34735 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34736 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5 | 
 | 34737 | $as_echo "$as_me: $GSAlphaDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34738 |  | 
 | 34739 |     # GSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34740 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34741 | $as_echo_n "checking for gs color device... " >&6; } | 
 | 34742 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34743 |         : | 
 | 34744 |     else | 
 | 34745 |         GSColorDevice=pnmraw | 
 | 34746 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34747 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5 | 
 | 34748 | $as_echo "$as_me: $GSColorDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34749 |  | 
 | 34750 |     # GSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34751 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34752 | $as_echo_n "checking for gs CMYK device... " >&6; } | 
 | 34753 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34754 |         : | 
 | 34755 |     else | 
 | 34756 |         GSCMYKDevice=bmpsep8 | 
 | 34757 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34758 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5 | 
 | 34759 | $as_echo "$as_me: $GSCMYKDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34760 |  | 
 | 34761 |     # GSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34762 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34763 | $as_echo_n "checking for gs mono device... " >&6; } | 
 | 34764 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34765 |         : | 
 | 34766 |     else | 
 | 34767 |         GSMonoDevice=$GSColorDevice | 
 | 34768 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34769 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5 | 
 | 34770 | $as_echo "$as_me: $GSMonoDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34771 |  | 
 | 34772 |     # GSPDFDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34773 |     { $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] | 34774 | $as_echo_n "checking for gs PDF writing device... " >&6; } | 
 | 34775 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34776 |         : | 
 | 34777 |     else | 
 | 34778 |         GSPDFDevice=nodevice | 
 | 34779 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34780 |         { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5 | 
 | 34781 | $as_echo "$as_me: $GSPDFDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34782 |  | 
 | 34783 |     # GSPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34784 |     { $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] | 34785 | $as_echo_n "checking for gs PS writing device... " >&6; } | 
 | 34786 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34787 |         : | 
 | 34788 |     else | 
 | 34789 |         GSPSDevice=nodevice | 
 | 34790 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34791 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5 | 
 | 34792 | $as_echo "$as_me: $GSPSDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34793 |  | 
 | 34794 |     # GSEPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34795 |     { $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] | 34796 | $as_echo_n "checking for gs EPS writing device... " >&6; } | 
 | 34797 |     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
 | 34798 |         : | 
 | 34799 |     else | 
 | 34800 |         GSEPSDevice=nodevice | 
 | 34801 |     fi | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34802 |     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5 | 
 | 34803 | $as_echo "$as_me: $GSEPSDevice" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34804 | fi | 
 | 34805 |  | 
 | 34806 |  | 
 | 34807 |  | 
 | 34808 |  | 
 | 34809 |  | 
 | 34810 |  | 
 | 34811 |  | 
 | 34812 |  | 
 | 34813 |  | 
 | 34814 |  | 
 | 34815 | # | 
 | 34816 | # PerlMagick-related configuration | 
 | 34817 | # | 
 | 34818 |  | 
 | 34819 | # Look for PERL if PerlMagick requested | 
 | 34820 | # If name/path of desired PERL interpreter is specified, look for that one first | 
 | 34821 | have_perl='no' | 
 | 34822 | if test "$with_perl" != 'no'; then | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34823 |     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 34824 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34825 |     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34826 | $as_echo_n "checking for Perl... " >&6; } | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 34827 |     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 | 
 | 34828 | $as_echo "$as_me: " >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34829 |     if test "$with_perl" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34830 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34831 | $as_echo_n "checking for perl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34832 | if ${ac_cv_path_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34833 |   $as_echo_n "(cached) " >&6 | 
 | 34834 | else | 
 | 34835 |   ac_cv_path_PERL="$with_perl" | 
 | 34836 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34838 | $as_echo "$ac_cv_path_PERL" >&6; }; | 
 | 34839 |         PERL=$ac_cv_path_PERL | 
 | 34840 |                 have_perl="$ac_cv_path_PERL" | 
 | 34841 |     else | 
 | 34842 |         for ac_prog in perl perl5 | 
 | 34843 | do | 
 | 34844 |   # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 34845 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34847 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34848 | if ${ac_cv_path_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34849 |   $as_echo_n "(cached) " >&6 | 
 | 34850 | else | 
 | 34851 |   case $PERL in | 
 | 34852 |   [\\/]* | ?:[\\/]*) | 
 | 34853 |   ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
 | 34854 |   ;; | 
 | 34855 |   *) | 
 | 34856 |   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 34857 | for as_dir in $PATH | 
 | 34858 | do | 
 | 34859 |   IFS=$as_save_IFS | 
 | 34860 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34861 |     for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34862 |   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
 | 34863 |     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34864 |     $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] | 34865 |     break 2 | 
 | 34866 |   fi | 
 | 34867 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34868 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34869 | IFS=$as_save_IFS | 
 | 34870 |  | 
 | 34871 |   ;; | 
 | 34872 | esac | 
 | 34873 | fi | 
 | 34874 | PERL=$ac_cv_path_PERL | 
 | 34875 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34876 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34877 | $as_echo "$PERL" >&6; } | 
 | 34878 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34879 |   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34880 | $as_echo "no" >&6; } | 
 | 34881 | fi | 
 | 34882 |  | 
 | 34883 |  | 
 | 34884 |   test -n "$PERL" && break | 
 | 34885 | done | 
 | 34886 |         if test "$ac_cv_path_PERL"; then | 
 | 34887 |             have_perl="$ac_cv_path_PERL" | 
 | 34888 |         fi | 
 | 34889 |     fi | 
 | 34890 | fi | 
 | 34891 |  | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 34892 | if test "$with_perl" != 'yes' ; then | 
 | 34893 |     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " | 
 | 34894 | fi | 
 | 34895 |  | 
 | 34896 | PERL_SUPPORTS_DESTDIR='no' | 
 | 34897 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34898 | with_perl_static='no' | 
 | 34899 | with_perl_dynamic='no' | 
 | 34900 | if test "$have_perl" != 'no'; then | 
 | 34901 |     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then | 
 | 34902 |         with_perl_static='yes' | 
 | 34903 |     fi | 
 | 34904 |     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then | 
 | 34905 |         with_perl_dynamic='yes' | 
 | 34906 |     fi | 
 | 34907 |     # Is PERL's MakeMaker new enough to support DESTDIR? | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34908 |  | 
 | 34909 |  | 
 | 34910 |  | 
 | 34911 |  | 
 | 34912 |     if test -n "$PERL"; then : | 
 | 34913 |  | 
 | 34914 |         ax_perl_version="5.8.1" | 
 | 34915 |  | 
 | 34916 |         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 | 
 | 34917 | $as_echo_n "checking for perl version... " >&6; } | 
 | 34918 |  | 
 | 34919 |         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` | 
 | 34920 |  | 
 | 34921 |         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 | 
 | 34922 | $as_echo "$perl_version" >&6; } | 
 | 34923 |  | 
 | 34924 | 	PERL_VERSION=$perl_version | 
 | 34925 |  | 
 | 34926 |  | 
 | 34927 |  | 
 | 34928 |  | 
 | 34929 |  | 
 | 34930 |   # Used to indicate true or false condition | 
 | 34931 |   ax_compare_version=false | 
 | 34932 |  | 
 | 34933 |   # Convert the two version strings to be compared into a format that | 
 | 34934 |   # allows a simple string comparison.  The end result is that a version | 
 | 34935 |   # string of the form 1.12.5-r617 will be converted to the form | 
 | 34936 |   # 0001001200050617.  In other words, each number is zero padded to four | 
 | 34937 |   # digits, and non digits are removed. | 
 | 34938 |  | 
 | 34939 |   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
 | 34940 |                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
 | 34941 |                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
 | 34942 |                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
 | 34943 |                      -e 's/[^0-9]//g'` | 
 | 34944 |  | 
 | 34945 |  | 
 | 34946 |   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
 | 34947 |                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
 | 34948 |                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
 | 34949 |                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
 | 34950 |                      -e 's/[^0-9]//g'` | 
 | 34951 |  | 
 | 34952 |  | 
 | 34953 |     ax_compare_version=`echo "x$ax_compare_version_A | 
 | 34954 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | 
 | 34955 |  | 
 | 34956 |  | 
 | 34957 |  | 
 | 34958 |     if test "$ax_compare_version" = "true" ; then | 
 | 34959 |  | 
 | 34960 | 	    : | 
 | 34961 |             PERL_SUPPORTS_DESTDIR='yes' | 
 | 34962 |  | 
 | 34963 |     else | 
 | 34964 | 	    : | 
 | 34965 |             PERL_SUPPORTS_DESTDIR='no' | 
 | 34966 |  | 
 | 34967 |   fi | 
 | 34968 |  | 
 | 34969 |  | 
 | 34970 | else | 
 | 34971 |  | 
 | 34972 |         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 | 
 | 34973 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} | 
 | 34974 |         PERL_SUPPORTS_DESTDIR='no' | 
 | 34975 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34976 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34977 |  | 
 | 34978 | fi | 
 | 34979 |  if test "$have_perl" != 'no'; then | 
 | 34980 |   WITH_PERL_TRUE= | 
 | 34981 |   WITH_PERL_FALSE='#' | 
 | 34982 | else | 
 | 34983 |   WITH_PERL_TRUE='#' | 
 | 34984 |   WITH_PERL_FALSE= | 
 | 34985 | fi | 
 | 34986 |  | 
 | 34987 |  if test $with_perl_static = 'yes'; then | 
 | 34988 |   WITH_PERL_STATIC_TRUE= | 
 | 34989 |   WITH_PERL_STATIC_FALSE='#' | 
 | 34990 | else | 
 | 34991 |   WITH_PERL_STATIC_TRUE='#' | 
 | 34992 |   WITH_PERL_STATIC_FALSE= | 
 | 34993 | fi | 
 | 34994 |  | 
 | 34995 |  if test $with_perl_dynamic = 'yes'; then | 
 | 34996 |   WITH_PERL_DYNAMIC_TRUE= | 
 | 34997 |   WITH_PERL_DYNAMIC_FALSE='#' | 
 | 34998 | else | 
 | 34999 |   WITH_PERL_DYNAMIC_TRUE='#' | 
 | 35000 |   WITH_PERL_DYNAMIC_FALSE= | 
 | 35001 | fi | 
 | 35002 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35003 |  | 
 | 35004 |  | 
 | 35005 | # Determine path to pick up MagickCore library from for use with building PerlMagick | 
 | 35006 | MAGICKCORE_PATH="${LIB_DIR}" | 
 | 35007 | if test $with_perl_static = 'yes'; then | 
 | 35008 |     # Find out where libtool hides its uninstalled libraries (as libtool_objdir) | 
 | 35009 |     libtool_objdir=$objdir | 
 | 35010 |  | 
 | 35011 |     # Linker search path to library, followed by -lMagickCore | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 35012 |     MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35013 | fi | 
 | 35014 |  | 
 | 35015 |  | 
 | 35016 | # Create a simple string containing format names for all delegate libraries | 
 | 35017 | DELEGATES='' | 
 | 35018 | if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi | 
 | 35019 | if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi | 
 | 35020 | if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi | 
 | 35021 | if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi | 
 | 35022 | if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi | 
 | 35023 | if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi | 
 | 35024 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi | 
 | 35025 | if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi | 
 | 35026 | if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi | 
 | 35027 | if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi | 
 | 35028 | if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi | 
 | 35029 | if test "$have_jpeg"       = 'yes'; then | 
 | 35030 |   DELEGATES="$DELEGATES jpeg"; | 
 | 35031 |   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi | 
 | 35032 | fi | 
 | 35033 | if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 35034 | if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35035 | if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi | 
 | 35036 | if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35037 | if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35038 | if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi | 
 | 35039 | if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi | 
 | 35040 | if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi | 
 | 35041 | if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi | 
 | 35042 | if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi | 
 | 35043 | if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi | 
 | 35044 | if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi | 
 | 35045 | if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi | 
 | 35046 | if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi | 
 | 35047 |  | 
 | 35048 |  | 
 | 35049 |  | 
 | 35050 | # | 
 | 35051 | # Handle special compiler flags | 
 | 35052 | # | 
 | 35053 |  | 
 | 35054 | # Add '-p' if prof source profiling support enabled | 
 | 35055 | if test "$enable_prof" = 'yes'; then | 
 | 35056 |     CFLAGS="-p $CFLAGS" | 
 | 35057 |     CXXFLAGS="-p $CXXFLAGS" | 
 | 35058 |     LDFLAGS="-p $LDFLAGS" | 
 | 35059 | fi | 
 | 35060 |  | 
 | 35061 | # Add '-pg' if gprof source profiling support enabled | 
 | 35062 | if test "$enable_gprof" = 'yes'; then | 
 | 35063 |     CFLAGS="-pg $CFLAGS" | 
 | 35064 |     CXXFLAGS="-pg $CXXFLAGS" | 
 | 35065 |     LDFLAGS="-pg $LDFLAGS" | 
 | 35066 | fi | 
 | 35067 |  | 
 | 35068 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled | 
 | 35069 | # This is a gcc-specific feature | 
 | 35070 | if test "$enable_gcov" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35071 |     { $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] | 35072 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35073 | if ${ac_cv_lib_gcov__gcov_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35074 |   $as_echo_n "(cached) " >&6 | 
 | 35075 | else | 
 | 35076 |   ac_check_lib_save_LIBS=$LIBS | 
 | 35077 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35079 | /* end confdefs.h.  */ | 
 | 35080 |  | 
 | 35081 | /* Override any GCC internal prototype to avoid an error. | 
 | 35082 |    Use char because int might match the return type of a GCC | 
 | 35083 |    builtin and then its argument prototype would still apply.  */ | 
 | 35084 | #ifdef __cplusplus | 
 | 35085 | extern "C" | 
 | 35086 | #endif | 
 | 35087 | char _gcov_init (); | 
 | 35088 | int | 
 | 35089 | main () | 
 | 35090 | { | 
 | 35091 | return _gcov_init (); | 
 | 35092 |   ; | 
 | 35093 |   return 0; | 
 | 35094 | } | 
 | 35095 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35096 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35097 |   ac_cv_lib_gcov__gcov_init=yes | 
 | 35098 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35099 |   ac_cv_lib_gcov__gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35100 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35101 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 35102 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35103 | LIBS=$ac_check_lib_save_LIBS | 
 | 35104 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35105 | { $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] | 35106 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35107 | if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35108 |   cat >>confdefs.h <<_ACEOF | 
 | 35109 | #define HAVE_LIBGCOV 1 | 
 | 35110 | _ACEOF | 
 | 35111 |  | 
 | 35112 |   LIBS="-lgcov $LIBS" | 
 | 35113 |  | 
 | 35114 | fi | 
 | 35115 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35116 |     { $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] | 35117 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35118 | if ${ac_cv_lib_gcov___gcov_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35119 |   $as_echo_n "(cached) " >&6 | 
 | 35120 | else | 
 | 35121 |   ac_check_lib_save_LIBS=$LIBS | 
 | 35122 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35124 | /* end confdefs.h.  */ | 
 | 35125 |  | 
 | 35126 | /* Override any GCC internal prototype to avoid an error. | 
 | 35127 |    Use char because int might match the return type of a GCC | 
 | 35128 |    builtin and then its argument prototype would still apply.  */ | 
 | 35129 | #ifdef __cplusplus | 
 | 35130 | extern "C" | 
 | 35131 | #endif | 
 | 35132 | char __gcov_init (); | 
 | 35133 | int | 
 | 35134 | main () | 
 | 35135 | { | 
 | 35136 | return __gcov_init (); | 
 | 35137 |   ; | 
 | 35138 |   return 0; | 
 | 35139 | } | 
 | 35140 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35141 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35142 |   ac_cv_lib_gcov___gcov_init=yes | 
 | 35143 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35144 |   ac_cv_lib_gcov___gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35145 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35146 | rm -f core conftest.err conftest.$ac_objext \ | 
 | 35147 |     conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35148 | LIBS=$ac_check_lib_save_LIBS | 
 | 35149 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35150 | { $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] | 35151 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35152 | if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35153 |   cat >>confdefs.h <<_ACEOF | 
 | 35154 | #define HAVE_LIBGCOV 1 | 
 | 35155 | _ACEOF | 
 | 35156 |  | 
 | 35157 |   LIBS="-lgcov $LIBS" | 
 | 35158 |  | 
 | 35159 | fi | 
 | 35160 |  | 
 | 35161 |     case "$target_os" in | 
 | 35162 |         darwin*) | 
 | 35163 |             OSX_GCOV_LDFLAG="-Wl,-single_module" | 
 | 35164 |         ;; | 
 | 35165 |         *) | 
 | 35166 |             OSX_GCOV_LDFLAG="" | 
 | 35167 |         ;; | 
 | 35168 |     esac | 
 | 35169 |  | 
 | 35170 |     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS" | 
 | 35171 |     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS" | 
 | 35172 |     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" | 
 | 35173 | fi | 
 | 35174 |  | 
 | 35175 | # | 
 | 35176 | # Build library dependency list for libMagickCore | 
 | 35177 | # | 
 | 35178 |  | 
 | 35179 | MAGICK_LIBLTDL='' # Libltdl for build | 
 | 35180 | MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build | 
 | 35181 | MAGICK_LTDLDEPS=''      # extra libltdl dependencies | 
 | 35182 | if test "$with_ltdl" != 'no' | 
 | 35183 | then | 
 | 35184 |   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then | 
 | 35185 |     MAGICK_API_LIBLTDL='-lltdl' | 
 | 35186 |   fi | 
 | 35187 |   MAGICK_LIBLTDL=${LIBLTDL} | 
 | 35188 |   MAGICK_LTDLDEPS=${LTDLDEPS} | 
 | 35189 | fi | 
 | 35190 |  | 
 | 35191 |  | 
 | 35192 |  | 
 | 35193 | if test "$with_modules" != 'no'; then | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35194 |     MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35195 | else | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 35196 |     MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35197 | fi | 
 | 35198 |  | 
 | 35199 |  | 
 | 35200 | # | 
 | 35201 | # Remove extraneous spaces from output variables (asthetic) | 
 | 35202 | # | 
 | 35203 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'` | 
 | 35204 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'` | 
 | 35205 | X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'` | 
 | 35206 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'` | 
 | 35207 |  | 
 | 35208 | CC=`echo $CC | sed -e 's/  */ /g'` | 
 | 35209 | CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'` | 
 | 35210 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'` | 
 | 35211 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'` | 
 | 35212 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` | 
 | 35213 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'` | 
 | 35214 | LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'` | 
 | 35215 | TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
 | 35216 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'` | 
 | 35217 | #LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
 | 35218 |  | 
 | 35219 | # Pass only user-provided LIBS as "global" libraries | 
 | 35220 | LIBS=$USER_LIBS | 
 | 35221 |  | 
 | 35222 | #AC_SUBST(CPPFLAGS) | 
 | 35223 |  | 
 | 35224 | #AC_SUBST(LDFLAGS) | 
 | 35225 | #AC_SUBST(X_PRE_LIBS) | 
 | 35226 | #AC_SUBST(X_LIBS) | 
 | 35227 | #AC_SUBST(X_EXTRA_LIBS) | 
 | 35228 |  | 
 | 35229 | MAGICK_CFLAGS=$CFLAGS | 
 | 35230 | MAGICK_CXXFLAGS="$CXXFLAGS" | 
 | 35231 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'` | 
 | 35232 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'` | 
 | 35233 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" | 
 | 35234 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" | 
 | 35235 |  | 
 | 35236 |  | 
 | 35237 |  | 
 | 35238 |  | 
 | 35239 |  | 
 | 35240 |  | 
 | 35241 |  | 
 | 35242 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 35243 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35244 | # Set configured scripts to executable. | 
 | 35245 | ac_config_commands="$ac_config_commands default" | 
 | 35246 |  | 
 | 35247 | ac_config_commands="$ac_config_commands MagickCore-config.in" | 
 | 35248 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35249 | ac_config_commands="$ac_config_commands MagickWand-config.in" | 
 | 35250 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35251 | ac_config_commands="$ac_config_commands Magick++-config.in" | 
 | 35252 |  | 
 | 35253 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" | 
 | 35254 |  | 
 | 35255 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 35256 | { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 | 
 | 35257 | $as_echo "$as_me: -------------------------------------------------------------" >&6;} | 
 | 35258 | { $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5 | 
 | 35259 | $as_echo "$as_me: Update ImageMagick configuration" >&6;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35260 | cat >confcache <<\_ACEOF | 
 | 35261 | # This file is a shell script that caches the results of configure | 
 | 35262 | # tests run on this system so they can be shared between configure | 
 | 35263 | # scripts and configure runs, see configure's option --config-cache. | 
 | 35264 | # It is not useful on other systems.  If it contains results you don't | 
 | 35265 | # want to keep, you may remove or edit it. | 
 | 35266 | # | 
 | 35267 | # config.status only pays attention to the cache file if you give it | 
 | 35268 | # the --recheck option to rerun configure. | 
 | 35269 | # | 
 | 35270 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
 | 35271 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
 | 35272 | # following values. | 
 | 35273 |  | 
 | 35274 | _ACEOF | 
 | 35275 |  | 
 | 35276 | # The following way of writing the cache mishandles newlines in values, | 
 | 35277 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 35278 | # So, we kill variables containing newlines. | 
 | 35279 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 35280 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 35281 | ( | 
 | 35282 |   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
 | 35283 |     eval ac_val=\$$ac_var | 
 | 35284 |     case $ac_val in #( | 
 | 35285 |     *${as_nl}*) | 
 | 35286 |       case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35287 |       *_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] | 35288 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
 | 35289 |       esac | 
 | 35290 |       case $ac_var in #( | 
 | 35291 |       _ | IFS | as_nl) ;; #( | 
 | 35292 |       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35293 |       *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35294 |       esac ;; | 
 | 35295 |     esac | 
 | 35296 |   done | 
 | 35297 |  | 
 | 35298 |   (set) 2>&1 | | 
 | 35299 |     case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
 | 35300 |     *${as_nl}ac_space=\ *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35301 |       # `set' does not quote correctly, so add quotes: double-quote | 
 | 35302 |       # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35303 |       sed -n \ | 
 | 35304 | 	"s/'/'\\\\''/g; | 
 | 35305 | 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
 | 35306 |       ;; #( | 
 | 35307 |     *) | 
 | 35308 |       # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 35309 |       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
 | 35310 |       ;; | 
 | 35311 |     esac | | 
 | 35312 |     sort | 
 | 35313 | ) | | 
 | 35314 |   sed ' | 
 | 35315 |      /^ac_cv_env_/b end | 
 | 35316 |      t clear | 
 | 35317 |      :clear | 
 | 35318 |      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
 | 35319 |      t end | 
 | 35320 |      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
 | 35321 |      :end' >>confcache | 
 | 35322 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
 | 35323 |   if test -w "$cache_file"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35324 |     if test "x$cache_file" != "x/dev/null"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35325 |       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35326 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35327 |       if test ! -f "$cache_file" || test -h "$cache_file"; then | 
 | 35328 | 	cat confcache >"$cache_file" | 
 | 35329 |       else | 
 | 35330 |         case $cache_file in #( | 
 | 35331 |         */* | ?:*) | 
 | 35332 | 	  mv -f confcache "$cache_file"$$ && | 
 | 35333 | 	  mv -f "$cache_file"$$ "$cache_file" ;; #( | 
 | 35334 |         *) | 
 | 35335 | 	  mv -f confcache "$cache_file" ;; | 
 | 35336 | 	esac | 
 | 35337 |       fi | 
 | 35338 |     fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35339 |   else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35340 |     { $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] | 35341 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
 | 35342 |   fi | 
 | 35343 | fi | 
 | 35344 | rm -f confcache | 
 | 35345 |  | 
 | 35346 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 35347 | # Let make expand exec_prefix. | 
 | 35348 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 35349 |  | 
 | 35350 | DEFS=-DHAVE_CONFIG_H | 
 | 35351 |  | 
 | 35352 | ac_libobjs= | 
 | 35353 | ac_ltlibobjs= | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35354 | U= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35355 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
 | 35356 |   # 1. Remove the extension, and $U if already installed. | 
 | 35357 |   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
 | 35358 |   ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
 | 35359 |   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
 | 35360 |   #    will be set to the directory where LIBOBJS objects are built. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35361 |   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
 | 35362 |   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35363 | done | 
 | 35364 | LIBOBJS=$ac_libobjs | 
 | 35365 |  | 
 | 35366 | LTLIBOBJS=$ac_ltlibobjs | 
 | 35367 |  | 
 | 35368 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35369 |  if test -n "$EXEEXT"; then | 
 | 35370 |   am__EXEEXT_TRUE= | 
 | 35371 |   am__EXEEXT_FALSE='#' | 
 | 35372 | else | 
 | 35373 |   am__EXEEXT_TRUE='#' | 
 | 35374 |   am__EXEEXT_FALSE= | 
 | 35375 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35376 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35377 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35378 |   as_fn_error $? "conditional \"AMDEP\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35379 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35380 | fi | 
 | 35381 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35382 |   as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35383 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35384 | fi | 
 | 35385 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35386 |   as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35387 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35388 | fi | 
 | 35389 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35390 |   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35391 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35392 | fi | 
 | 35393 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35394 |   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35396 | fi | 
 | 35397 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35398 |   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35400 | fi | 
 | 35401 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35402 |   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35403 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35404 | fi | 
 | 35405 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35406 |   as_fn_error $? "conditional \"USING_CL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35407 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35408 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35409 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35410 |   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35411 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35412 | fi | 
 | 35413 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35414 |   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35415 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35416 | fi | 
 | 35417 | LT_CONFIG_H=config/config.h | 
 | 35418 |  | 
 | 35419 |     _ltdl_libobjs= | 
 | 35420 |     _ltdl_ltlibobjs= | 
 | 35421 |     if test -n "$_LT_LIBOBJS"; then | 
 | 35422 |       # Remove the extension. | 
 | 35423 |       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | 
 | 35424 |       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | 
 | 35425 |         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | 
 | 35426 |         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | 
 | 35427 |       done | 
 | 35428 |     fi | 
 | 35429 |     ltdl_LIBOBJS=$_ltdl_libobjs | 
 | 35430 |  | 
 | 35431 |     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | 
 | 35432 |  | 
 | 35433 |  | 
 | 35434 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35435 |   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35437 | fi | 
 | 35438 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35439 |   as_fn_error $? "conditional \"WITH_MODULES\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35441 | fi | 
 | 35442 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35443 |   as_fn_error $? "conditional \"WITH_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35445 | fi | 
 | 35446 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35447 |   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35449 | fi | 
 | 35450 |  | 
 | 35451 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35452 |   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35453 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35454 | fi | 
 | 35455 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35456 |   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35457 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35458 | fi | 
 | 35459 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35460 |   as_fn_error $? "conditional \"HasUMEM\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35461 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35462 | fi | 
 | 35463 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35464 |   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35465 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35466 | fi | 
 | 35467 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35468 |   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35469 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35470 | fi | 
 | 35471 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35472 |   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35473 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35474 | fi | 
 | 35475 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35476 |   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35477 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35478 | fi | 
 | 35479 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35480 |   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35481 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35482 | fi | 
 | 35483 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35484 |   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35485 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35486 | fi | 
 | 35487 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35488 |   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35489 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35490 | fi | 
 | 35491 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35492 |   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35493 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35494 | fi | 
 | 35495 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35496 |   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35497 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35498 | fi | 
 | 35499 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35500 |   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35501 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35502 | fi | 
 | 35503 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35504 |   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35505 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35506 | fi | 
 | 35507 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35508 |   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35509 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35510 | fi | 
 | 35511 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35512 |   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35513 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35514 | fi | 
 | 35515 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35516 |   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35517 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35518 | fi | 
 | 35519 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35520 |   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35521 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35522 | fi | 
 | 35523 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35524 |   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35525 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35526 | fi | 
 | 35527 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35528 |   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35529 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35530 | fi | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35531 | if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then | 
 | 35532 |   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. | 
 | 35533 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35534 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35535 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35536 |   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35537 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35538 | fi | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 35539 | if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then | 
 | 35540 |   as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. | 
 | 35541 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35542 | fi | 
 | 35543 | if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then | 
 | 35544 |   as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined. | 
 | 35545 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35546 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35547 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35548 |   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35549 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35550 | fi | 
 | 35551 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35552 |   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35553 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35554 | fi | 
 | 35555 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35556 |   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35557 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35558 | fi | 
 | 35559 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35560 |   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35561 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35562 | fi | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 35563 | if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then | 
 | 35564 |   as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. | 
 | 35565 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35566 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35567 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35568 |   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35569 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35570 | fi | 
 | 35571 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35572 |   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35573 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35574 | fi | 
 | 35575 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35576 |   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35577 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35578 | fi | 
 | 35579 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35580 |   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35581 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35582 | fi | 
 | 35583 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35584 |   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35585 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35586 | fi | 
 | 35587 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35588 |   as_fn_error $? "conditional \"WITH_PERL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35589 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35590 | fi | 
 | 35591 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35592 |   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35593 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35594 | fi | 
 | 35595 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35596 |   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35597 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
 | 35598 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35599 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35600 | : "${CONFIG_STATUS=./config.status}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35601 | ac_write_fail=0 | 
 | 35602 | ac_clean_files_save=$ac_clean_files | 
 | 35603 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35604 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35605 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35606 | as_write_fail=0 | 
 | 35607 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35608 | #! $SHELL | 
 | 35609 | # Generated by $as_me. | 
 | 35610 | # Run this file to recreate the current configuration. | 
 | 35611 | # Compiler output produced by configure, useful for debugging | 
 | 35612 | # configure, is in config.log if it exists. | 
 | 35613 |  | 
 | 35614 | debug=false | 
 | 35615 | ac_cs_recheck=false | 
 | 35616 | ac_cs_silent=false | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35617 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35618 | SHELL=\${CONFIG_SHELL-$SHELL} | 
 | 35619 | export SHELL | 
 | 35620 | _ASEOF | 
 | 35621 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
 | 35622 | ## -------------------- ## | 
 | 35623 | ## M4sh Initialization. ## | 
 | 35624 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35625 |  | 
 | 35626 | # Be more Bourne compatible | 
 | 35627 | DUALCASE=1; export DUALCASE # for MKS sh | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35628 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35629 |   emulate sh | 
 | 35630 |   NULLCMD=: | 
 | 35631 |   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
 | 35632 |   # is contrary to our usage.  Disable this feature. | 
 | 35633 |   alias -g '${1+"$@"}'='"$@"' | 
 | 35634 |   setopt NO_GLOB_SUBST | 
 | 35635 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35636 |   case `(set -o) 2>/dev/null` in #( | 
 | 35637 |   *posix*) : | 
 | 35638 |     set -o posix ;; #( | 
 | 35639 |   *) : | 
 | 35640 |      ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35641 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35642 | fi | 
 | 35643 |  | 
 | 35644 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35645 | as_nl=' | 
 | 35646 | ' | 
 | 35647 | export as_nl | 
 | 35648 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
 | 35649 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
 | 35650 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
 | 35651 | 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] | 35652 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
 | 35653 | # but without wasting forks for bash or zsh. | 
 | 35654 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
 | 35655 |     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
 | 35656 |   as_echo='print -r --' | 
 | 35657 |   as_echo_n='print -rn --' | 
 | 35658 | 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] | 35659 |   as_echo='printf %s\n' | 
 | 35660 |   as_echo_n='printf %s' | 
 | 35661 | else | 
 | 35662 |   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
 | 35663 |     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
 | 35664 |     as_echo_n='/usr/ucb/echo -n' | 
 | 35665 |   else | 
 | 35666 |     as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
 | 35667 |     as_echo_n_body='eval | 
 | 35668 |       arg=$1; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35669 |       case $arg in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35670 |       *"$as_nl"*) | 
 | 35671 | 	expr "X$arg" : "X\\(.*\\)$as_nl"; | 
 | 35672 | 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
 | 35673 |       esac; | 
 | 35674 |       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
 | 35675 |     ' | 
 | 35676 |     export as_echo_n_body | 
 | 35677 |     as_echo_n='sh -c $as_echo_n_body as_echo' | 
 | 35678 |   fi | 
 | 35679 |   export as_echo_body | 
 | 35680 |   as_echo='sh -c $as_echo_body as_echo' | 
 | 35681 | fi | 
 | 35682 |  | 
 | 35683 | # The user is always right. | 
 | 35684 | if test "${PATH_SEPARATOR+set}" != set; then | 
 | 35685 |   PATH_SEPARATOR=: | 
 | 35686 |   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
 | 35687 |     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
 | 35688 |       PATH_SEPARATOR=';' | 
 | 35689 |   } | 
 | 35690 | fi | 
 | 35691 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35692 |  | 
 | 35693 | # IFS | 
 | 35694 | # We need space, tab and new line, in precisely that order.  Quoting is | 
 | 35695 | # there to prevent editors from complaining about space-tab. | 
 | 35696 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
 | 35697 | # splitting by setting IFS to empty value.) | 
 | 35698 | IFS=" ""	$as_nl" | 
 | 35699 |  | 
 | 35700 | # Find who we are.  Look in the path if we contain no directory separator. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35701 | as_myself= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35702 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35703 |   *[\\/]* ) as_myself=$0 ;; | 
 | 35704 |   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
 | 35705 | for as_dir in $PATH | 
 | 35706 | do | 
 | 35707 |   IFS=$as_save_IFS | 
 | 35708 |   test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35709 |     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
 | 35710 |   done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35711 | IFS=$as_save_IFS | 
 | 35712 |  | 
 | 35713 |      ;; | 
 | 35714 | esac | 
 | 35715 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
 | 35716 | # in which case we are not to be found in the path. | 
 | 35717 | if test "x$as_myself" = x; then | 
 | 35718 |   as_myself=$0 | 
 | 35719 | fi | 
 | 35720 | if test ! -f "$as_myself"; then | 
 | 35721 |   $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] | 35722 |   exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35723 | fi | 
 | 35724 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35725 | # Unset variables that we do not need and which cause bugs (e.g. in | 
 | 35726 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
 | 35727 | # suppresses any "Segmentation fault" message there.  '((' could | 
 | 35728 | # trigger a bug in pdksh 5.2.14. | 
 | 35729 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
 | 35730 | do eval test x\${$as_var+set} = xset \ | 
 | 35731 |   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35732 | done | 
 | 35733 | PS1='$ ' | 
 | 35734 | PS2='> ' | 
 | 35735 | PS4='+ ' | 
 | 35736 |  | 
 | 35737 | # NLS nuisances. | 
 | 35738 | LC_ALL=C | 
 | 35739 | export LC_ALL | 
 | 35740 | LANGUAGE=C | 
 | 35741 | export LANGUAGE | 
 | 35742 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35743 | # CDPATH. | 
 | 35744 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 35745 |  | 
 | 35746 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35747 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
 | 35748 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35749 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
 | 35750 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35751 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35752 | as_fn_error () | 
 | 35753 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35754 |   as_status=$1; test $as_status -eq 0 && as_status=1 | 
 | 35755 |   if test "$4"; then | 
 | 35756 |     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
 | 35757 |     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35758 |   fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35759 |   $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35760 |   as_fn_exit $as_status | 
 | 35761 | } # as_fn_error | 
 | 35762 |  | 
 | 35763 |  | 
 | 35764 | # as_fn_set_status STATUS | 
 | 35765 | # ----------------------- | 
 | 35766 | # Set $? to STATUS, without forking. | 
 | 35767 | as_fn_set_status () | 
 | 35768 | { | 
 | 35769 |   return $1 | 
 | 35770 | } # as_fn_set_status | 
 | 35771 |  | 
 | 35772 | # as_fn_exit STATUS | 
 | 35773 | # ----------------- | 
 | 35774 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
 | 35775 | as_fn_exit () | 
 | 35776 | { | 
 | 35777 |   set +e | 
 | 35778 |   as_fn_set_status $1 | 
 | 35779 |   exit $1 | 
 | 35780 | } # as_fn_exit | 
 | 35781 |  | 
 | 35782 | # as_fn_unset VAR | 
 | 35783 | # --------------- | 
 | 35784 | # Portably unset VAR. | 
 | 35785 | as_fn_unset () | 
 | 35786 | { | 
 | 35787 |   { eval $1=; unset $1;} | 
 | 35788 | } | 
 | 35789 | as_unset=as_fn_unset | 
 | 35790 | # as_fn_append VAR VALUE | 
 | 35791 | # ---------------------- | 
 | 35792 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
 | 35793 | # advantage of any shell optimizations that allow amortized linear growth over | 
 | 35794 | # repeated appends, instead of the typical quadratic growth present in naive | 
 | 35795 | # implementations. | 
 | 35796 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
 | 35797 |   eval 'as_fn_append () | 
 | 35798 |   { | 
 | 35799 |     eval $1+=\$2 | 
 | 35800 |   }' | 
 | 35801 | else | 
 | 35802 |   as_fn_append () | 
 | 35803 |   { | 
 | 35804 |     eval $1=\$$1\$2 | 
 | 35805 |   } | 
 | 35806 | fi # as_fn_append | 
 | 35807 |  | 
 | 35808 | # as_fn_arith ARG... | 
 | 35809 | # ------------------ | 
 | 35810 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
 | 35811 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
 | 35812 | # must be portable across $(()) and expr. | 
 | 35813 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
 | 35814 |   eval 'as_fn_arith () | 
 | 35815 |   { | 
 | 35816 |     as_val=$(( $* )) | 
 | 35817 |   }' | 
 | 35818 | else | 
 | 35819 |   as_fn_arith () | 
 | 35820 |   { | 
 | 35821 |     as_val=`expr "$@" || test $? -eq 1` | 
 | 35822 |   } | 
 | 35823 | fi # as_fn_arith | 
 | 35824 |  | 
 | 35825 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35826 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
 | 35827 |    test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
 | 35828 |   as_expr=expr | 
 | 35829 | else | 
 | 35830 |   as_expr=false | 
 | 35831 | fi | 
 | 35832 |  | 
 | 35833 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
 | 35834 |   as_basename=basename | 
 | 35835 | else | 
 | 35836 |   as_basename=false | 
 | 35837 | fi | 
 | 35838 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35839 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
 | 35840 |   as_dirname=dirname | 
 | 35841 | else | 
 | 35842 |   as_dirname=false | 
 | 35843 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35844 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35845 | as_me=`$as_basename -- "$0" || | 
 | 35846 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
 | 35847 | 	 X"$0" : 'X\(//\)$' \| \ | 
 | 35848 | 	 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
 | 35849 | $as_echo X/"$0" | | 
 | 35850 |     sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
 | 35851 | 	    s//\1/ | 
 | 35852 | 	    q | 
 | 35853 | 	  } | 
 | 35854 | 	  /^X\/\(\/\/\)$/{ | 
 | 35855 | 	    s//\1/ | 
 | 35856 | 	    q | 
 | 35857 | 	  } | 
 | 35858 | 	  /^X\/\(\/\).*/{ | 
 | 35859 | 	    s//\1/ | 
 | 35860 | 	    q | 
 | 35861 | 	  } | 
 | 35862 | 	  s/.*/./; q'` | 
 | 35863 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35864 | # Avoid depending upon Character Ranges. | 
 | 35865 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
 | 35866 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
 | 35867 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
 | 35868 | as_cr_digits='0123456789' | 
 | 35869 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35870 |  | 
 | 35871 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35872 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35873 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35874 |   case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35875 |   *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35876 |   xy)  ECHO_C='\c';; | 
 | 35877 |   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
 | 35878 |        ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35879 |   esac;; | 
 | 35880 | *) | 
 | 35881 |   ECHO_N='-n';; | 
 | 35882 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35883 |  | 
 | 35884 | rm -f conf$$ conf$$.exe conf$$.file | 
 | 35885 | if test -d conf$$.dir; then | 
 | 35886 |   rm -f conf$$.dir/conf$$.file | 
 | 35887 | else | 
 | 35888 |   rm -f conf$$.dir | 
 | 35889 |   mkdir conf$$.dir 2>/dev/null | 
 | 35890 | fi | 
 | 35891 | if (echo >conf$$.file) 2>/dev/null; then | 
 | 35892 |   if ln -s conf$$.file conf$$ 2>/dev/null; then | 
 | 35893 |     as_ln_s='ln -s' | 
 | 35894 |     # ... but there are two gotchas: | 
 | 35895 |     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
 | 35896 |     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
 | 35897 |     # In both cases, we have to default to `cp -p'. | 
 | 35898 |     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
 | 35899 |       as_ln_s='cp -p' | 
 | 35900 |   elif ln conf$$.file conf$$ 2>/dev/null; then | 
 | 35901 |     as_ln_s=ln | 
 | 35902 |   else | 
 | 35903 |     as_ln_s='cp -p' | 
 | 35904 |   fi | 
 | 35905 | else | 
 | 35906 |   as_ln_s='cp -p' | 
 | 35907 | fi | 
 | 35908 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
 | 35909 | rmdir conf$$.dir 2>/dev/null | 
 | 35910 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35911 |  | 
 | 35912 | # as_fn_mkdir_p | 
 | 35913 | # ------------- | 
 | 35914 | # Create "$as_dir" as a directory, including parents if necessary. | 
 | 35915 | as_fn_mkdir_p () | 
 | 35916 | { | 
 | 35917 |  | 
 | 35918 |   case $as_dir in #( | 
 | 35919 |   -*) as_dir=./$as_dir;; | 
 | 35920 |   esac | 
 | 35921 |   test -d "$as_dir" || eval $as_mkdir_p || { | 
 | 35922 |     as_dirs= | 
 | 35923 |     while :; do | 
 | 35924 |       case $as_dir in #( | 
 | 35925 |       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
 | 35926 |       *) as_qdir=$as_dir;; | 
 | 35927 |       esac | 
 | 35928 |       as_dirs="'$as_qdir' $as_dirs" | 
 | 35929 |       as_dir=`$as_dirname -- "$as_dir" || | 
 | 35930 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 35931 | 	 X"$as_dir" : 'X\(//\)[^/]' \| \ | 
 | 35932 | 	 X"$as_dir" : 'X\(//\)$' \| \ | 
 | 35933 | 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
 | 35934 | $as_echo X"$as_dir" | | 
 | 35935 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 35936 | 	    s//\1/ | 
 | 35937 | 	    q | 
 | 35938 | 	  } | 
 | 35939 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 35940 | 	    s//\1/ | 
 | 35941 | 	    q | 
 | 35942 | 	  } | 
 | 35943 | 	  /^X\(\/\/\)$/{ | 
 | 35944 | 	    s//\1/ | 
 | 35945 | 	    q | 
 | 35946 | 	  } | 
 | 35947 | 	  /^X\(\/\).*/{ | 
 | 35948 | 	    s//\1/ | 
 | 35949 | 	    q | 
 | 35950 | 	  } | 
 | 35951 | 	  s/.*/./; q'` | 
 | 35952 |       test -d "$as_dir" && break | 
 | 35953 |     done | 
 | 35954 |     test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35955 |   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35956 |  | 
 | 35957 |  | 
 | 35958 | } # as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35959 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35960 |   as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35961 | else | 
 | 35962 |   test -d ./-p && rmdir ./-p | 
 | 35963 |   as_mkdir_p=false | 
 | 35964 | fi | 
 | 35965 |  | 
 | 35966 | if test -x / >/dev/null 2>&1; then | 
 | 35967 |   as_test_x='test -x' | 
 | 35968 | else | 
 | 35969 |   if ls -dL / >/dev/null 2>&1; then | 
 | 35970 |     as_ls_L_option=L | 
 | 35971 |   else | 
 | 35972 |     as_ls_L_option= | 
 | 35973 |   fi | 
 | 35974 |   as_test_x=' | 
 | 35975 |     eval sh -c '\'' | 
 | 35976 |       if test -d "$1"; then | 
 | 35977 | 	test -d "$1/."; | 
 | 35978 |       else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35979 | 	case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35980 | 	-*)set "./$1";; | 
 | 35981 | 	esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35982 | 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35983 | 	???[sx]*):;;*)false;;esac;fi | 
 | 35984 |     '\'' sh | 
 | 35985 |   ' | 
 | 35986 | fi | 
 | 35987 | as_executable_p=$as_test_x | 
 | 35988 |  | 
 | 35989 | # Sed expression to map a string onto a valid CPP name. | 
 | 35990 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
 | 35991 |  | 
 | 35992 | # Sed expression to map a string onto a valid variable name. | 
 | 35993 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
 | 35994 |  | 
 | 35995 |  | 
 | 35996 | exec 6>&1 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35997 | ## ----------------------------------- ## | 
 | 35998 | ## Main body of $CONFIG_STATUS script. ## | 
 | 35999 | ## ----------------------------------- ## | 
 | 36000 | _ASEOF | 
 | 36001 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36002 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36004 | # Save the log message, to keep $0 and so on meaningful, and to | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36005 | # report actual input values of CONFIG_FILES etc. instead of their | 
 | 36006 | # values after options handling. | 
 | 36007 | ac_log=" | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 36008 | This file was extended by ImageMagick $as_me 7.0.0-0, which was | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36009 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36010 |  | 
 | 36011 |   CONFIG_FILES    = $CONFIG_FILES | 
 | 36012 |   CONFIG_HEADERS  = $CONFIG_HEADERS | 
 | 36013 |   CONFIG_LINKS    = $CONFIG_LINKS | 
 | 36014 |   CONFIG_COMMANDS = $CONFIG_COMMANDS | 
 | 36015 |   $ $0 $@ | 
 | 36016 |  | 
 | 36017 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
 | 36018 | " | 
 | 36019 |  | 
 | 36020 | _ACEOF | 
 | 36021 |  | 
 | 36022 | case $ac_config_files in *" | 
 | 36023 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
 | 36024 | esac | 
 | 36025 |  | 
 | 36026 | case $ac_config_headers in *" | 
 | 36027 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
 | 36028 | esac | 
 | 36029 |  | 
 | 36030 |  | 
 | 36031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 36032 | # Files that config.status was made for. | 
 | 36033 | config_files="$ac_config_files" | 
 | 36034 | config_headers="$ac_config_headers" | 
 | 36035 | config_commands="$ac_config_commands" | 
 | 36036 |  | 
 | 36037 | _ACEOF | 
 | 36038 |  | 
 | 36039 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36040 | ac_cs_usage="\ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36041 | \`$as_me' instantiates files and other configuration actions | 
 | 36042 | from templates according to the current configuration.  Unless the files | 
 | 36043 | and actions are specified as TAGs, all are instantiated by default. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36044 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36045 | Usage: $0 [OPTION]... [TAG]... | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36046 |  | 
 | 36047 |   -h, --help       print this help, then exit | 
 | 36048 |   -V, --version    print version number and configuration settings, then exit | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36049 |       --config     print configuration, then exit | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36050 |   -q, --quiet, --silent | 
 | 36051 |                    do not print progress messages | 
 | 36052 |   -d, --debug      don't remove temporary files | 
 | 36053 |       --recheck    update $as_me by reconfiguring in the same conditions | 
 | 36054 |       --file=FILE[:TEMPLATE] | 
 | 36055 |                    instantiate the configuration file FILE | 
 | 36056 |       --header=FILE[:TEMPLATE] | 
 | 36057 |                    instantiate the configuration header FILE | 
 | 36058 |  | 
 | 36059 | Configuration files: | 
 | 36060 | $config_files | 
 | 36061 |  | 
 | 36062 | Configuration headers: | 
 | 36063 | $config_headers | 
 | 36064 |  | 
 | 36065 | Configuration commands: | 
 | 36066 | $config_commands | 
 | 36067 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36068 | Report bugs to <http://www.imagemagick.org>." | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36069 |  | 
 | 36070 | _ACEOF | 
 | 36071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36072 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36073 | ac_cs_version="\\ | 
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 36074 | ImageMagick config.status 7.0.0-0 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36075 | configured by $0, generated by GNU Autoconf 2.68, | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36076 |   with options \\"\$ac_cs_config\\" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36077 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36078 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36079 | This config.status script is free software; the Free Software Foundation | 
 | 36080 | gives unlimited permission to copy, distribute and modify it." | 
 | 36081 |  | 
 | 36082 | ac_pwd='$ac_pwd' | 
 | 36083 | srcdir='$srcdir' | 
 | 36084 | INSTALL='$INSTALL' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36085 | MKDIR_P='$MKDIR_P' | 
 | 36086 | AWK='$AWK' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36087 | test -n "\$AWK" || AWK=awk | 
 | 36088 | _ACEOF | 
 | 36089 |  | 
 | 36090 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36091 | # The default lists apply if the user does not specify any file. | 
 | 36092 | ac_need_defaults=: | 
 | 36093 | while test $# != 0 | 
 | 36094 | do | 
 | 36095 |   case $1 in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36096 |   --*=?*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36097 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 36098 |     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
 | 36099 |     ac_shift=: | 
 | 36100 |     ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36101 |   --*=) | 
 | 36102 |     ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
 | 36103 |     ac_optarg= | 
 | 36104 |     ac_shift=: | 
 | 36105 |     ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36106 |   *) | 
 | 36107 |     ac_option=$1 | 
 | 36108 |     ac_optarg=$2 | 
 | 36109 |     ac_shift=shift | 
 | 36110 |     ;; | 
 | 36111 |   esac | 
 | 36112 |  | 
 | 36113 |   case $ac_option in | 
 | 36114 |   # Handling of the options. | 
 | 36115 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 36116 |     ac_cs_recheck=: ;; | 
 | 36117 |   --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
 | 36118 |     $as_echo "$ac_cs_version"; exit ;; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36119 |   --config | --confi | --conf | --con | --co | --c ) | 
 | 36120 |     $as_echo "$ac_cs_config"; exit ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36121 |   --debug | --debu | --deb | --de | --d | -d ) | 
 | 36122 |     debug=: ;; | 
 | 36123 |   --file | --fil | --fi | --f ) | 
 | 36124 |     $ac_shift | 
 | 36125 |     case $ac_optarg in | 
 | 36126 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36127 |     '') as_fn_error $? "missing file argument" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36128 |     esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36129 |     as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36130 |     ac_need_defaults=false;; | 
 | 36131 |   --header | --heade | --head | --hea ) | 
 | 36132 |     $ac_shift | 
 | 36133 |     case $ac_optarg in | 
 | 36134 |     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
 | 36135 |     esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36136 |     as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36137 |     ac_need_defaults=false;; | 
 | 36138 |   --he | --h) | 
 | 36139 |     # Conflict between --help and --header | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36140 |     as_fn_error $? "ambiguous option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36141 | Try \`$0 --help' for more information.";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36142 |   --help | --hel | -h ) | 
 | 36143 |     $as_echo "$ac_cs_usage"; exit ;; | 
 | 36144 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 36145 |   | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
 | 36146 |     ac_cs_silent=: ;; | 
 | 36147 |  | 
 | 36148 |   # This is an error. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36149 |   -*) as_fn_error $? "unrecognized option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36150 | Try \`$0 --help' for more information." ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36151 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36152 |   *) as_fn_append ac_config_targets " $1" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36153 |      ac_need_defaults=false ;; | 
 | 36154 |  | 
 | 36155 |   esac | 
 | 36156 |   shift | 
 | 36157 | done | 
 | 36158 |  | 
 | 36159 | ac_configure_extra_args= | 
 | 36160 |  | 
 | 36161 | if $ac_cs_silent; then | 
 | 36162 |   exec 6>/dev/null | 
 | 36163 |   ac_configure_extra_args="$ac_configure_extra_args --silent" | 
 | 36164 | fi | 
 | 36165 |  | 
 | 36166 | _ACEOF | 
 | 36167 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 36168 | if \$ac_cs_recheck; then | 
 | 36169 |   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
 | 36170 |   shift | 
 | 36171 |   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
 | 36172 |   CONFIG_SHELL='$SHELL' | 
 | 36173 |   export CONFIG_SHELL | 
 | 36174 |   exec "\$@" | 
 | 36175 | fi | 
 | 36176 |  | 
 | 36177 | _ACEOF | 
 | 36178 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36179 | exec 5>>config.log | 
 | 36180 | { | 
 | 36181 |   echo | 
 | 36182 |   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
 | 36183 | ## Running $as_me. ## | 
 | 36184 | _ASBOX | 
 | 36185 |   $as_echo "$ac_log" | 
 | 36186 | } >&5 | 
 | 36187 |  | 
 | 36188 | _ACEOF | 
 | 36189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36190 | # | 
 | 36191 | # INIT-COMMANDS | 
 | 36192 | # | 
 | 36193 | PACKAGE="$PACKAGE" | 
 | 36194 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 
 | 36195 |  | 
 | 36196 |  | 
 | 36197 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
 | 36198 | # if CDPATH is set. | 
 | 36199 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
 | 36200 |  | 
 | 36201 | sed_quote_subst='$sed_quote_subst' | 
 | 36202 | double_quote_subst='$double_quote_subst' | 
 | 36203 | delay_variable_subst='$delay_variable_subst' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36204 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | 
 | 36205 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | 
 | 36206 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | 
 | 36207 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | 
 | 36208 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | 
 | 36209 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | 
 | 36210 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | 
 | 36211 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | 
 | 36212 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | 
 | 36213 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | 
 | 36214 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | 
 | 36215 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | 
 | 36216 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | 
 | 36217 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | 
 | 36218 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | 
 | 36219 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | 
 | 36220 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 36221 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36222 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | 
 | 36223 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | 
 | 36224 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | 
 | 36225 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | 
 | 36226 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | 
 | 36227 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | 
 | 36228 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | 
 | 36229 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | 
 | 36230 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | 
 | 36231 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | 
 | 36232 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | 
 | 36233 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | 
 | 36234 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | 
 | 36235 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36236 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | 
 | 36237 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36238 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | 
 | 36239 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36240 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | 
 | 36241 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36242 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | 
 | 36243 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | 
 | 36244 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36245 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | 
 | 36246 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36247 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36248 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | 
 | 36249 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | 
 | 36250 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36251 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36252 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36253 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | 
 | 36254 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | 
 | 36255 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | 
 | 36256 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | 
 | 36257 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | 
 | 36258 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | 
 | 36259 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | 
 | 36260 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | 
 | 36261 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36262 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36263 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36264 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | 
 | 36265 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | 
 | 36266 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36267 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36268 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36269 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | 
 | 36270 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | 
 | 36271 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36272 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36273 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | 
 | 36274 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | 
 | 36275 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | 
 | 36276 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | 
 | 36277 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | 
 | 36278 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | 
 | 36279 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36280 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36281 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | 
 | 36282 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | 
 | 36283 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36284 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36285 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | 
 | 36286 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36287 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36288 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36289 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36290 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36291 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36292 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | 
 | 36293 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
 | 36294 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
 | 36295 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36296 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | 
 | 36297 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | 
 | 36298 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | 
 | 36299 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | 
 | 36300 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
 | 36301 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | 
 | 36302 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | 
 | 36303 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36304 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | 
 | 36305 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36306 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | 
 | 36307 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | 
 | 36308 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36309 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36310 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36311 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | 
 | 36312 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | 
 | 36313 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | 
 | 36314 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | 
 | 36315 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | 
 | 36316 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
 | 36317 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | 
 | 36318 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36319 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36320 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36321 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | 
 | 36322 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36323 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36324 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | 
 | 36325 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | 
 | 36326 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | 
 | 36327 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36328 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | 
 | 36329 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | 
 | 36330 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | 
 | 36331 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | 
 | 36332 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | 
 | 36333 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | 
 | 36334 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | 
 | 36335 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | 
 | 36336 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | 
 | 36337 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | 
 | 36338 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | 
 | 36339 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | 
 | 36340 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | 
 | 36341 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36342 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36343 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36344 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36345 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36346 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36347 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36348 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36349 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36350 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36351 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36352 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36353 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36354 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36355 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36356 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36357 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36358 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36359 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36360 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36361 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36362 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36363 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36364 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36365 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36366 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36367 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36368 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36369 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36370 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36371 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36372 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36373 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36374 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36375 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36376 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36377 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36378 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36379 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36380 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36381 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36382 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36383 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36384 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36385 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36386 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36387 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | 
 | 36388 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36389 |  | 
 | 36390 | LTCC='$LTCC' | 
 | 36391 | LTCFLAGS='$LTCFLAGS' | 
 | 36392 | compiler='$compiler_DEFAULT' | 
 | 36393 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36394 | # A function that is used when there is no print builtin or printf. | 
 | 36395 | func_fallback_echo () | 
 | 36396 | { | 
 | 36397 |   eval 'cat <<_LTECHO_EOF | 
 | 36398 | \$1 | 
 | 36399 | _LTECHO_EOF' | 
 | 36400 | } | 
 | 36401 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36402 | # Quote evaled strings. | 
 | 36403 | for var in SED \ | 
 | 36404 | GREP \ | 
 | 36405 | EGREP \ | 
 | 36406 | FGREP \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36407 | SHELL \ | 
 | 36408 | ECHO \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36409 | LD \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36410 | AS \ | 
 | 36411 | DLLTOOL \ | 
 | 36412 | OBJDUMP \ | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 36413 | PATH_SEPARATOR \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36414 | NM \ | 
 | 36415 | LN_S \ | 
 | 36416 | lt_SP2NL \ | 
 | 36417 | lt_NL2SP \ | 
 | 36418 | reload_flag \ | 
 | 36419 | deplibs_check_method \ | 
 | 36420 | file_magic_cmd \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36421 | file_magic_glob \ | 
 | 36422 | want_nocaseglob \ | 
 | 36423 | sharedlib_from_linklib_cmd \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36424 | AR \ | 
 | 36425 | AR_FLAGS \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36426 | archiver_list_spec \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36427 | STRIP \ | 
 | 36428 | RANLIB \ | 
 | 36429 | CC \ | 
 | 36430 | CFLAGS \ | 
 | 36431 | compiler \ | 
 | 36432 | lt_cv_sys_global_symbol_pipe \ | 
 | 36433 | lt_cv_sys_global_symbol_to_cdecl \ | 
 | 36434 | lt_cv_sys_global_symbol_to_c_name_address \ | 
 | 36435 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36436 | nm_file_list_spec \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36437 | lt_prog_compiler_no_builtin_flag \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36438 | lt_prog_compiler_pic \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36439 | lt_prog_compiler_wl \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36440 | lt_prog_compiler_static \ | 
 | 36441 | lt_cv_prog_compiler_c_o \ | 
 | 36442 | need_locks \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36443 | MANIFEST_TOOL \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36444 | DSYMUTIL \ | 
 | 36445 | NMEDIT \ | 
 | 36446 | LIPO \ | 
 | 36447 | OTOOL \ | 
 | 36448 | OTOOL64 \ | 
 | 36449 | shrext_cmds \ | 
 | 36450 | export_dynamic_flag_spec \ | 
 | 36451 | whole_archive_flag_spec \ | 
 | 36452 | compiler_needs_object \ | 
 | 36453 | with_gnu_ld \ | 
 | 36454 | allow_undefined_flag \ | 
 | 36455 | no_undefined_flag \ | 
 | 36456 | hardcode_libdir_flag_spec \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36457 | hardcode_libdir_separator \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36458 | exclude_expsyms \ | 
 | 36459 | include_expsyms \ | 
 | 36460 | file_list_spec \ | 
 | 36461 | variables_saved_for_relink \ | 
 | 36462 | libname_spec \ | 
 | 36463 | library_names_spec \ | 
 | 36464 | soname_spec \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36465 | install_override_mode \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36466 | finish_eval \ | 
 | 36467 | old_striplib \ | 
 | 36468 | striplib \ | 
 | 36469 | compiler_lib_search_dirs \ | 
 | 36470 | predep_objects \ | 
 | 36471 | postdep_objects \ | 
 | 36472 | predeps \ | 
 | 36473 | postdeps \ | 
 | 36474 | compiler_lib_search_path \ | 
 | 36475 | LD_CXX \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36476 | reload_flag_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36477 | compiler_CXX \ | 
 | 36478 | lt_prog_compiler_no_builtin_flag_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36479 | lt_prog_compiler_pic_CXX \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36480 | lt_prog_compiler_wl_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36481 | lt_prog_compiler_static_CXX \ | 
 | 36482 | lt_cv_prog_compiler_c_o_CXX \ | 
 | 36483 | export_dynamic_flag_spec_CXX \ | 
 | 36484 | whole_archive_flag_spec_CXX \ | 
 | 36485 | compiler_needs_object_CXX \ | 
 | 36486 | with_gnu_ld_CXX \ | 
 | 36487 | allow_undefined_flag_CXX \ | 
 | 36488 | no_undefined_flag_CXX \ | 
 | 36489 | hardcode_libdir_flag_spec_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36490 | hardcode_libdir_separator_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36491 | exclude_expsyms_CXX \ | 
 | 36492 | include_expsyms_CXX \ | 
 | 36493 | file_list_spec_CXX \ | 
 | 36494 | compiler_lib_search_dirs_CXX \ | 
 | 36495 | predep_objects_CXX \ | 
 | 36496 | postdep_objects_CXX \ | 
 | 36497 | predeps_CXX \ | 
 | 36498 | postdeps_CXX \ | 
 | 36499 | compiler_lib_search_path_CXX; do | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36500 |     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36501 |     *[\\\\\\\`\\"\\\$]*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36502 |       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36503 |       ;; | 
 | 36504 |     *) | 
 | 36505 |       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
 | 36506 |       ;; | 
 | 36507 |     esac | 
 | 36508 | done | 
 | 36509 |  | 
 | 36510 | # Double-quote double-evaled strings. | 
 | 36511 | for var in reload_cmds \ | 
 | 36512 | old_postinstall_cmds \ | 
 | 36513 | old_postuninstall_cmds \ | 
 | 36514 | old_archive_cmds \ | 
 | 36515 | extract_expsyms_cmds \ | 
 | 36516 | old_archive_from_new_cmds \ | 
 | 36517 | old_archive_from_expsyms_cmds \ | 
 | 36518 | archive_cmds \ | 
 | 36519 | archive_expsym_cmds \ | 
 | 36520 | module_cmds \ | 
 | 36521 | module_expsym_cmds \ | 
 | 36522 | export_symbols_cmds \ | 
 | 36523 | prelink_cmds \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36524 | postlink_cmds \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36525 | postinstall_cmds \ | 
 | 36526 | postuninstall_cmds \ | 
 | 36527 | finish_cmds \ | 
 | 36528 | sys_lib_search_path_spec \ | 
 | 36529 | sys_lib_dlsearch_path_spec \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36530 | reload_cmds_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36531 | old_archive_cmds_CXX \ | 
 | 36532 | old_archive_from_new_cmds_CXX \ | 
 | 36533 | old_archive_from_expsyms_cmds_CXX \ | 
 | 36534 | archive_cmds_CXX \ | 
 | 36535 | archive_expsym_cmds_CXX \ | 
 | 36536 | module_cmds_CXX \ | 
 | 36537 | module_expsym_cmds_CXX \ | 
 | 36538 | export_symbols_cmds_CXX \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36539 | prelink_cmds_CXX \ | 
 | 36540 | postlink_cmds_CXX; do | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36541 |     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36542 |     *[\\\\\\\`\\"\\\$]*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36543 |       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36544 |       ;; | 
 | 36545 |     *) | 
 | 36546 |       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
 | 36547 |       ;; | 
 | 36548 |     esac | 
 | 36549 | done | 
 | 36550 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36551 | ac_aux_dir='$ac_aux_dir' | 
 | 36552 | xsi_shell='$xsi_shell' | 
 | 36553 | lt_shell_append='$lt_shell_append' | 
 | 36554 |  | 
 | 36555 | # See if we are running on zsh, and set the options which allow our | 
 | 36556 | # commands through without removal of \ escapes INIT. | 
 | 36557 | if test -n "\${ZSH_VERSION+set}" ; then | 
 | 36558 |    setopt NO_GLOB_SUBST | 
 | 36559 | fi | 
 | 36560 |  | 
 | 36561 |  | 
 | 36562 |     PACKAGE='$PACKAGE' | 
 | 36563 |     VERSION='$VERSION' | 
 | 36564 |     TIMESTAMP='$TIMESTAMP' | 
 | 36565 |     RM='$RM' | 
 | 36566 |     ofile='$ofile' | 
 | 36567 |  | 
 | 36568 |  | 
 | 36569 |  | 
 | 36570 |  | 
 | 36571 |  | 
 | 36572 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36573 | _ACEOF | 
 | 36574 |  | 
 | 36575 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36576 |  | 
 | 36577 | # Handling of arguments. | 
 | 36578 | for ac_config_target in $ac_config_targets | 
 | 36579 | do | 
 | 36580 |   case $ac_config_target in | 
 | 36581 |     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36582 |     "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36583 |     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; | 
 | 36584 |     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; | 
 | 36585 |     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; | 
 | 36586 |     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; | 
 | 36587 |     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36588 |     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36589 |     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; | 
 | 36590 |     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; | 
 | 36591 |     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; | 
 | 36592 |     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; | 
 | 36593 |     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36594 |     "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36595 |     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; | 
 | 36596 |     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36597 |     "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; | 
 | 36598 |     "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; | 
 | 36599 |     "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36600 |     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 
 | 36601 |     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; | 
 | 36602 |     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; | 
 | 36603 |     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; | 
 | 36604 |     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; | 
 | 36605 |     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; | 
 | 36606 |     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; | 
 | 36607 |     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; | 
 | 36608 |     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; | 
 | 36609 |     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; | 
 | 36610 |     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; | 
 | 36611 |     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; | 
 | 36612 |     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; | 
 | 36613 |     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; | 
 | 36614 |     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; | 
 | 36615 |     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; | 
 | 36616 |     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36617 |     "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; | 
 | 36618 |     "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36619 |     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | 
 | 36620 |     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36621 |     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 
 | 36622 |     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36623 |     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36624 |     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; | 
 | 36625 |     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; | 
 | 36626 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36627 |   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36628 |   esac | 
 | 36629 | done | 
 | 36630 |  | 
 | 36631 |  | 
 | 36632 | # If the user did not use the arguments to specify the items to instantiate, | 
 | 36633 | # then the envvar interface is used.  Set only those that are not. | 
 | 36634 | # We use the long form for the default assignment because of an extremely | 
 | 36635 | # bizarre bug on SunOS 4.1.3. | 
 | 36636 | if $ac_need_defaults; then | 
 | 36637 |   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
 | 36638 |   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
 | 36639 |   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
 | 36640 | fi | 
 | 36641 |  | 
 | 36642 | # Have a temporary directory for convenience.  Make it in the build tree | 
 | 36643 | # simply because there is no reason against having it here, and in addition, | 
 | 36644 | # creating and moving files from /tmp can sometimes cause problems. | 
 | 36645 | # Hook for its removal unless debugging. | 
 | 36646 | # Note that there is a small window in which the directory will not be cleaned: | 
 | 36647 | # after its creation but before its name has been assigned to `$tmp'. | 
 | 36648 | $debug || | 
 | 36649 | { | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36650 |   tmp= ac_tmp= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36651 |   trap 'exit_status=$? | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36652 |   : "${ac_tmp:=$tmp}" | 
 | 36653 |   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36654 | ' 0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36655 |   trap 'as_fn_exit 1' 1 2 13 15 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36656 | } | 
 | 36657 | # Create a (secure) tmp directory for tmp files. | 
 | 36658 |  | 
 | 36659 | { | 
 | 36660 |   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36661 |   test -d "$tmp" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36662 | }  || | 
 | 36663 | { | 
 | 36664 |   tmp=./conf$$-$RANDOM | 
 | 36665 |   (umask 077 && mkdir "$tmp") | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36666 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36667 | ac_tmp=$tmp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36668 |  | 
 | 36669 | # Set up the scripts for CONFIG_FILES section. | 
 | 36670 | # No need to generate them if there are no CONFIG_FILES. | 
 | 36671 | # This happens for instance with `./config.status config.h'. | 
 | 36672 | if test -n "$CONFIG_FILES"; then | 
 | 36673 |  | 
 | 36674 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36675 | ac_cr=`echo X | tr X '\015'` | 
 | 36676 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
 | 36677 | # But we know of no other shell where ac_cr would be empty at this | 
 | 36678 | # point, so we can use a bashism as a fallback. | 
 | 36679 | if test "x$ac_cr" = x; then | 
 | 36680 |   eval ac_cr=\$\'\\r\' | 
 | 36681 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36682 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
 | 36683 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36684 |   ac_cs_awk_cr='\\r' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36685 | else | 
 | 36686 |   ac_cs_awk_cr=$ac_cr | 
 | 36687 | fi | 
 | 36688 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36689 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36690 | _ACEOF | 
 | 36691 |  | 
 | 36692 |  | 
 | 36693 | { | 
 | 36694 |   echo "cat >conf$$subs.awk <<_ACEOF" && | 
 | 36695 |   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
 | 36696 |   echo "_ACEOF" | 
 | 36697 | } >conf$$subs.sh || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36698 |   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
 | 36699 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36700 | ac_delim='%!_!# ' | 
 | 36701 | for ac_last_try in false false false false false :; do | 
 | 36702 |   . ./conf$$subs.sh || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36703 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36704 |  | 
 | 36705 |   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
 | 36706 |   if test $ac_delim_n = $ac_delim_num; then | 
 | 36707 |     break | 
 | 36708 |   elif $ac_last_try; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36709 |     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36710 |   else | 
 | 36711 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 36712 |   fi | 
 | 36713 | done | 
 | 36714 | rm -f conf$$subs.sh | 
 | 36715 |  | 
 | 36716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36717 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36718 | _ACEOF | 
 | 36719 | sed -n ' | 
 | 36720 | h | 
 | 36721 | s/^/S["/; s/!.*/"]=/ | 
 | 36722 | p | 
 | 36723 | g | 
 | 36724 | s/^[^!]*!// | 
 | 36725 | :repl | 
 | 36726 | t repl | 
 | 36727 | s/'"$ac_delim"'$// | 
 | 36728 | t delim | 
 | 36729 | :nl | 
 | 36730 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36731 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36732 | t more1 | 
 | 36733 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
 | 36734 | p | 
 | 36735 | n | 
 | 36736 | b repl | 
 | 36737 | :more1 | 
 | 36738 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 36739 | p | 
 | 36740 | g | 
 | 36741 | s/.\{148\}// | 
 | 36742 | t nl | 
 | 36743 | :delim | 
 | 36744 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36745 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36746 | t more2 | 
 | 36747 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
 | 36748 | p | 
 | 36749 | b | 
 | 36750 | :more2 | 
 | 36751 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
 | 36752 | p | 
 | 36753 | g | 
 | 36754 | s/.\{148\}// | 
 | 36755 | t delim | 
 | 36756 | ' <conf$$subs.awk | sed ' | 
 | 36757 | /^[^""]/{ | 
 | 36758 |   N | 
 | 36759 |   s/\n// | 
 | 36760 | } | 
 | 36761 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 36762 | rm -f conf$$subs.awk | 
 | 36763 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 36764 | _ACAWK | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36765 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36766 |   for (key in S) S_is_set[key] = 1 | 
 | 36767 |   FS = "" | 
 | 36768 |  | 
 | 36769 | } | 
 | 36770 | { | 
 | 36771 |   line = $ 0 | 
 | 36772 |   nfields = split(line, field, "@") | 
 | 36773 |   substed = 0 | 
 | 36774 |   len = length(field[1]) | 
 | 36775 |   for (i = 2; i < nfields; i++) { | 
 | 36776 |     key = field[i] | 
 | 36777 |     keylen = length(key) | 
 | 36778 |     if (S_is_set[key]) { | 
 | 36779 |       value = S[key] | 
 | 36780 |       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
 | 36781 |       len += length(value) + length(field[++i]) | 
 | 36782 |       substed = 1 | 
 | 36783 |     } else | 
 | 36784 |       len += 1 + keylen | 
 | 36785 |   } | 
 | 36786 |  | 
 | 36787 |   print line | 
 | 36788 | } | 
 | 36789 |  | 
 | 36790 | _ACAWK | 
 | 36791 | _ACEOF | 
 | 36792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36793 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
 | 36794 |   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
 | 36795 | else | 
 | 36796 |   cat | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36797 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36798 |   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36799 | _ACEOF | 
 | 36800 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36801 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
 | 36802 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36803 | # trailing colons and then remove the whole line if VPATH becomes empty | 
 | 36804 | # (actually we leave an empty line to preserve line numbers). | 
 | 36805 | if test "x$srcdir" = x.; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36806 |   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
 | 36807 | h | 
 | 36808 | s/// | 
 | 36809 | s/^/:/ | 
 | 36810 | s/[	 ]*$/:/ | 
 | 36811 | s/:\$(srcdir):/:/g | 
 | 36812 | s/:\${srcdir}:/:/g | 
 | 36813 | s/:@srcdir@:/:/g | 
 | 36814 | s/^:*// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36815 | s/:*$// | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36816 | x | 
 | 36817 | s/\(=[	 ]*\).*/\1/ | 
 | 36818 | G | 
 | 36819 | s/\n// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36820 | s/^[^=]*=[	 ]*$// | 
 | 36821 | }' | 
 | 36822 | fi | 
 | 36823 |  | 
 | 36824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 36825 | fi # test -n "$CONFIG_FILES" | 
 | 36826 |  | 
 | 36827 | # Set up the scripts for CONFIG_HEADERS section. | 
 | 36828 | # No need to generate them if there are no CONFIG_HEADERS. | 
 | 36829 | # This happens for instance with `./config.status Makefile'. | 
 | 36830 | if test -n "$CONFIG_HEADERS"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36831 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36832 | BEGIN { | 
 | 36833 | _ACEOF | 
 | 36834 |  | 
 | 36835 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
 | 36836 | # here-document in config.status, that substitutes the proper values into | 
 | 36837 | # config.h.in to produce config.h. | 
 | 36838 |  | 
 | 36839 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
 | 36840 | # handling of long lines. | 
 | 36841 | ac_delim='%!_!# ' | 
 | 36842 | for ac_last_try in false false :; do | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36843 |   ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
 | 36844 |   if test -z "$ac_tt"; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36845 |     break | 
 | 36846 |   elif $ac_last_try; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36847 |     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36848 |   else | 
 | 36849 |     ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
 | 36850 |   fi | 
 | 36851 | done | 
 | 36852 |  | 
 | 36853 | # For the awk script, D is an array of macro values keyed by name, | 
 | 36854 | # likewise P contains macro parameters if any.  Preserve backslash | 
 | 36855 | # newline sequences. | 
 | 36856 |  | 
 | 36857 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
 | 36858 | sed -n ' | 
 | 36859 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 36860 | t rset | 
 | 36861 | :rset | 
 | 36862 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
 | 36863 | t def | 
 | 36864 | d | 
 | 36865 | :def | 
 | 36866 | s/\\$// | 
 | 36867 | t bsnl | 
 | 36868 | s/["\\]/\\&/g | 
 | 36869 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 36870 | D["\1"]=" \3"/p | 
 | 36871 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
 | 36872 | d | 
 | 36873 | :bsnl | 
 | 36874 | s/["\\]/\\&/g | 
 | 36875 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
 | 36876 | D["\1"]=" \3\\\\\\n"\\/p | 
 | 36877 | t cont | 
 | 36878 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
 | 36879 | t cont | 
 | 36880 | d | 
 | 36881 | :cont | 
 | 36882 | n | 
 | 36883 | s/.\{148\}/&'"$ac_delim"'/g | 
 | 36884 | t clear | 
 | 36885 | :clear | 
 | 36886 | s/\\$// | 
 | 36887 | t bsnlc | 
 | 36888 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
 | 36889 | d | 
 | 36890 | :bsnlc | 
 | 36891 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
 | 36892 | b cont | 
 | 36893 | ' <confdefs.h | sed ' | 
 | 36894 | s/'"$ac_delim"'/"\\\ | 
 | 36895 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
 | 36896 |  | 
 | 36897 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 36898 |   for (key in D) D_is_set[key] = 1 | 
 | 36899 |   FS = "" | 
 | 36900 | } | 
 | 36901 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
 | 36902 |   line = \$ 0 | 
 | 36903 |   split(line, arg, " ") | 
 | 36904 |   if (arg[1] == "#") { | 
 | 36905 |     defundef = arg[2] | 
 | 36906 |     mac1 = arg[3] | 
 | 36907 |   } else { | 
 | 36908 |     defundef = substr(arg[1], 2) | 
 | 36909 |     mac1 = arg[2] | 
 | 36910 |   } | 
 | 36911 |   split(mac1, mac2, "(") #) | 
 | 36912 |   macro = mac2[1] | 
 | 36913 |   prefix = substr(line, 1, index(line, defundef) - 1) | 
 | 36914 |   if (D_is_set[macro]) { | 
 | 36915 |     # Preserve the white space surrounding the "#". | 
 | 36916 |     print prefix "define", macro P[macro] D[macro] | 
 | 36917 |     next | 
 | 36918 |   } else { | 
 | 36919 |     # Replace #undef with comments.  This is necessary, for example, | 
 | 36920 |     # in the case of _POSIX_SOURCE, which is predefined and required | 
 | 36921 |     # on some systems where configure will not decide to define it. | 
 | 36922 |     if (defundef == "undef") { | 
 | 36923 |       print "/*", prefix defundef, macro, "*/" | 
 | 36924 |       next | 
 | 36925 |     } | 
 | 36926 |   } | 
 | 36927 | } | 
 | 36928 | { print } | 
 | 36929 | _ACAWK | 
 | 36930 | _ACEOF | 
 | 36931 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36932 |   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36933 | fi # test -n "$CONFIG_HEADERS" | 
 | 36934 |  | 
 | 36935 |  | 
 | 36936 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS" | 
 | 36937 | shift | 
 | 36938 | for ac_tag | 
 | 36939 | do | 
 | 36940 |   case $ac_tag in | 
 | 36941 |   :[FHLC]) ac_mode=$ac_tag; continue;; | 
 | 36942 |   esac | 
 | 36943 |   case $ac_mode$ac_tag in | 
 | 36944 |   :[FHL]*:*);; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36945 |   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36946 |   :[FH]-) ac_tag=-:-;; | 
 | 36947 |   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
 | 36948 |   esac | 
 | 36949 |   ac_save_IFS=$IFS | 
 | 36950 |   IFS=: | 
 | 36951 |   set x $ac_tag | 
 | 36952 |   IFS=$ac_save_IFS | 
 | 36953 |   shift | 
 | 36954 |   ac_file=$1 | 
 | 36955 |   shift | 
 | 36956 |  | 
 | 36957 |   case $ac_mode in | 
 | 36958 |   :L) ac_source=$1;; | 
 | 36959 |   :[FH]) | 
 | 36960 |     ac_file_inputs= | 
 | 36961 |     for ac_f | 
 | 36962 |     do | 
 | 36963 |       case $ac_f in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36964 |       -) ac_f="$ac_tmp/stdin";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36965 |       *) # Look for the file first in the build tree, then in the source tree | 
 | 36966 | 	 # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
 | 36967 | 	 # because $ac_f cannot contain `:'. | 
 | 36968 | 	 test -f "$ac_f" || | 
 | 36969 | 	   case $ac_f in | 
 | 36970 | 	   [\\/$]*) false;; | 
 | 36971 | 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
 | 36972 | 	   esac || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36973 | 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36974 |       esac | 
 | 36975 |       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] | 36976 |       as_fn_append ac_file_inputs " '$ac_f'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36977 |     done | 
 | 36978 |  | 
 | 36979 |     # Let's still pretend it is `configure' which instantiates (i.e., don't | 
 | 36980 |     # use $as_me), people would be surprised to read: | 
 | 36981 |     #    /* config.h.  Generated by config.status.  */ | 
 | 36982 |     configure_input='Generated from '` | 
 | 36983 | 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
 | 36984 | 	`' by configure.' | 
 | 36985 |     if test x"$ac_file" != x-; then | 
 | 36986 |       configure_input="$ac_file.  $configure_input" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36987 |       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36988 | $as_echo "$as_me: creating $ac_file" >&6;} | 
 | 36989 |     fi | 
 | 36990 |     # Neutralize special characters interpreted by sed in replacement strings. | 
 | 36991 |     case $configure_input in #( | 
 | 36992 |     *\&* | *\|* | *\\* ) | 
 | 36993 |        ac_sed_conf_input=`$as_echo "$configure_input" | | 
 | 36994 |        sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
 | 36995 |     *) ac_sed_conf_input=$configure_input;; | 
 | 36996 |     esac | 
 | 36997 |  | 
 | 36998 |     case $ac_tag in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36999 |     *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37000 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37001 |     esac | 
 | 37002 |     ;; | 
 | 37003 |   esac | 
 | 37004 |  | 
 | 37005 |   ac_dir=`$as_dirname -- "$ac_file" || | 
 | 37006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 37007 | 	 X"$ac_file" : 'X\(//\)[^/]' \| \ | 
 | 37008 | 	 X"$ac_file" : 'X\(//\)$' \| \ | 
 | 37009 | 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
 | 37010 | $as_echo X"$ac_file" | | 
 | 37011 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 37012 | 	    s//\1/ | 
 | 37013 | 	    q | 
 | 37014 | 	  } | 
 | 37015 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 37016 | 	    s//\1/ | 
 | 37017 | 	    q | 
 | 37018 | 	  } | 
 | 37019 | 	  /^X\(\/\/\)$/{ | 
 | 37020 | 	    s//\1/ | 
 | 37021 | 	    q | 
 | 37022 | 	  } | 
 | 37023 | 	  /^X\(\/\).*/{ | 
 | 37024 | 	    s//\1/ | 
 | 37025 | 	    q | 
 | 37026 | 	  } | 
 | 37027 | 	  s/.*/./; q'` | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37028 |   as_dir="$ac_dir"; as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37029 |   ac_builddir=. | 
 | 37030 |  | 
 | 37031 | case "$ac_dir" in | 
 | 37032 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 37033 | *) | 
 | 37034 |   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
 | 37035 |   # A ".." for each directory in $ac_dir_suffix. | 
 | 37036 |   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
 | 37037 |   case $ac_top_builddir_sub in | 
 | 37038 |   "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
 | 37039 |   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
 | 37040 |   esac ;; | 
 | 37041 | esac | 
 | 37042 | ac_abs_top_builddir=$ac_pwd | 
 | 37043 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
 | 37044 | # for backward compatibility: | 
 | 37045 | ac_top_builddir=$ac_top_build_prefix | 
 | 37046 |  | 
 | 37047 | case $srcdir in | 
 | 37048 |   .)  # We are building in place. | 
 | 37049 |     ac_srcdir=. | 
 | 37050 |     ac_top_srcdir=$ac_top_builddir_sub | 
 | 37051 |     ac_abs_top_srcdir=$ac_pwd ;; | 
 | 37052 |   [\\/]* | ?:[\\/]* )  # Absolute name. | 
 | 37053 |     ac_srcdir=$srcdir$ac_dir_suffix; | 
 | 37054 |     ac_top_srcdir=$srcdir | 
 | 37055 |     ac_abs_top_srcdir=$srcdir ;; | 
 | 37056 |   *) # Relative name. | 
 | 37057 |     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
 | 37058 |     ac_top_srcdir=$ac_top_build_prefix$srcdir | 
 | 37059 |     ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
 | 37060 | esac | 
 | 37061 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
 | 37062 |  | 
 | 37063 |  | 
 | 37064 |   case $ac_mode in | 
 | 37065 |   :F) | 
 | 37066 |   # | 
 | 37067 |   # CONFIG_FILE | 
 | 37068 |   # | 
 | 37069 |  | 
 | 37070 |   case $INSTALL in | 
 | 37071 |   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
 | 37072 |   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
 | 37073 |   esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37074 |   ac_MKDIR_P=$MKDIR_P | 
 | 37075 |   case $MKDIR_P in | 
 | 37076 |   [\\/$]* | ?:[\\/]* ) ;; | 
 | 37077 |   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
 | 37078 |   esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37079 | _ACEOF | 
 | 37080 |  | 
 | 37081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 37082 | # If the template does not know about datarootdir, expand it. | 
 | 37083 | # FIXME: This hack should be removed a few years after 2.60. | 
 | 37084 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37085 | ac_sed_dataroot=' | 
 | 37086 | /datarootdir/ { | 
 | 37087 |   p | 
 | 37088 |   q | 
 | 37089 | } | 
 | 37090 | /@datadir@/p | 
 | 37091 | /@docdir@/p | 
 | 37092 | /@infodir@/p | 
 | 37093 | /@localedir@/p | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37094 | /@mandir@/p' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37095 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
 | 37096 | *datarootdir*) ac_datarootdir_seen=yes;; | 
 | 37097 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37098 |   { $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] | 37099 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
 | 37100 | _ACEOF | 
 | 37101 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 37102 |   ac_datarootdir_hack=' | 
 | 37103 |   s&@datadir@&$datadir&g | 
 | 37104 |   s&@docdir@&$docdir&g | 
 | 37105 |   s&@infodir@&$infodir&g | 
 | 37106 |   s&@localedir@&$localedir&g | 
 | 37107 |   s&@mandir@&$mandir&g | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37108 |   s&\\\${datarootdir}&$datarootdir&g' ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37109 | esac | 
 | 37110 | _ACEOF | 
 | 37111 |  | 
 | 37112 | # Neutralize VPATH when `$srcdir' = `.'. | 
 | 37113 | # Shell code in configure.ac might set extrasub. | 
 | 37114 | # FIXME: do we really want to maintain this feature? | 
 | 37115 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
 | 37116 | ac_sed_extra="$ac_vpsub | 
 | 37117 | $extrasub | 
 | 37118 | _ACEOF | 
 | 37119 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
 | 37120 | :t | 
 | 37121 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
 | 37122 | s|@configure_input@|$ac_sed_conf_input|;t t | 
 | 37123 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
 | 37124 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
 | 37125 | s&@srcdir@&$ac_srcdir&;t t | 
 | 37126 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
 | 37127 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
 | 37128 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
 | 37129 | s&@builddir@&$ac_builddir&;t t | 
 | 37130 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
 | 37131 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
 | 37132 | s&@INSTALL@&$ac_INSTALL&;t t | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37133 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37134 | $ac_datarootdir_hack | 
 | 37135 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37136 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
 | 37137 |   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37138 |  | 
 | 37139 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37140 |   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
 | 37141 |   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
 | 37142 |       "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37143 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37144 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37145 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37146 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37147 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37148 |   rm -f "$ac_tmp/stdin" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37149 |   case $ac_file in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37150 |   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
 | 37151 |   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37152 |   esac \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37153 |   || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37154 |  ;; | 
 | 37155 |   :H) | 
 | 37156 |   # | 
 | 37157 |   # CONFIG_HEADER | 
 | 37158 |   # | 
 | 37159 |   if test x"$ac_file" != x-; then | 
 | 37160 |     { | 
 | 37161 |       $as_echo "/* $configure_input  */" \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37162 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
 | 37163 |     } >"$ac_tmp/config.h" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37164 |       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37165 |     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37166 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37167 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
 | 37168 |     else | 
 | 37169 |       rm -f "$ac_file" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37170 |       mv "$ac_tmp/config.h" "$ac_file" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37171 | 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37172 |     fi | 
 | 37173 |   else | 
 | 37174 |     $as_echo "/* $configure_input  */" \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37175 |       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37176 |       || as_fn_error $? "could not create -" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37177 |   fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37178 | # Compute "$ac_file"'s index in $config_headers. | 
 | 37179 | _am_arg="$ac_file" | 
 | 37180 | _am_stamp_count=1 | 
 | 37181 | for _am_header in $config_headers :; do | 
 | 37182 |   case $_am_header in | 
 | 37183 |     $_am_arg | $_am_arg:* ) | 
 | 37184 |       break ;; | 
 | 37185 |     * ) | 
 | 37186 |       _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 
 | 37187 |   esac | 
 | 37188 | done | 
 | 37189 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | 
 | 37190 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 37191 | 	 X"$_am_arg" : 'X\(//\)[^/]' \| \ | 
 | 37192 | 	 X"$_am_arg" : 'X\(//\)$' \| \ | 
 | 37193 | 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | 
 | 37194 | $as_echo X"$_am_arg" | | 
 | 37195 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 37196 | 	    s//\1/ | 
 | 37197 | 	    q | 
 | 37198 | 	  } | 
 | 37199 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 37200 | 	    s//\1/ | 
 | 37201 | 	    q | 
 | 37202 | 	  } | 
 | 37203 | 	  /^X\(\/\/\)$/{ | 
 | 37204 | 	    s//\1/ | 
 | 37205 | 	    q | 
 | 37206 | 	  } | 
 | 37207 | 	  /^X\(\/\).*/{ | 
 | 37208 | 	    s//\1/ | 
 | 37209 | 	    q | 
 | 37210 | 	  } | 
 | 37211 | 	  s/.*/./; q'`/stamp-h$_am_stamp_count | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37212 |  ;; | 
 | 37213 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37214 |   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37215 | $as_echo "$as_me: executing $ac_file commands" >&6;} | 
 | 37216 |  ;; | 
 | 37217 |   esac | 
 | 37218 |  | 
 | 37219 |  | 
 | 37220 |   case $ac_file$ac_mode in | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37221 |     "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37222 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` | 
 | 37223 | ac_prefix_conf_PKG=`echo MagickCore` | 
 | 37224 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` | 
 | 37225 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"` | 
 | 37226 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` | 
 | 37227 | if test ".$ac_prefix_conf_INP" = "."; then | 
 | 37228 |    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue | 
 | 37229 |      case "$ac_file" in | 
 | 37230 |         *.h) ac_prefix_conf_INP=$ac_file ;; | 
 | 37231 |         *) | 
 | 37232 |      esac | 
 | 37233 |      test ".$ac_prefix_conf_INP" != "." && break | 
 | 37234 |    done | 
 | 37235 | fi | 
 | 37236 | if test ".$ac_prefix_conf_INP" = "."; then | 
 | 37237 |    case "$ac_prefix_conf_OUT" in | 
 | 37238 |       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` | 
 | 37239 |       ;; | 
 | 37240 |       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` | 
 | 37241 |       ;; | 
 | 37242 |       *) ac_prefix_conf_INP=config.h | 
 | 37243 |       ;; | 
 | 37244 |    esac | 
 | 37245 | fi | 
 | 37246 | if test -z "$ac_prefix_conf_PKG" ; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37247 |    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37248 | else | 
 | 37249 |   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then | 
 | 37250 |      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" | 
 | 37251 |   fi fi | 
 | 37252 |   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 | 
 | 37253 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} | 
 | 37254 |   if test -f $ac_prefix_conf_INP ; then | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 37255 |     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix | 
 | 37256 |     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix | 
 | 37257 |     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix | 
 | 37258 |     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix | 
 | 37259 |     $as_echo "#endif/" >> conftest.prefix | 
 | 37260 |     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix | 
 | 37261 |     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix | 
 | 37262 |     $as_echo "#endif/" >> conftest.prefix | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37263 |     # now executing _script on _DEF input to create _OUT output file | 
 | 37264 |     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h | 
 | 37265 |     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h | 
 | 37266 |     echo ' ' >>$tmp/pconfig.h | 
 | 37267 |     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h | 
 | 37268 |  | 
 | 37269 |     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h | 
 | 37270 |     echo ' ' >>$tmp/pconfig.h | 
 | 37271 |     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h | 
 | 37272 |     echo "#endif" >>$tmp/pconfig.h | 
 | 37273 |     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then | 
 | 37274 |       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 | 
 | 37275 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} | 
 | 37276 |     else | 
 | 37277 |       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || | 
 | 37278 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 37279 | 	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ | 
 | 37280 | 	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ | 
 | 37281 | 	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || | 
 | 37282 | $as_echo X"$ac_prefix_conf_OUT" | | 
 | 37283 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 37284 | 	    s//\1/ | 
 | 37285 | 	    q | 
 | 37286 | 	  } | 
 | 37287 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 37288 | 	    s//\1/ | 
 | 37289 | 	    q | 
 | 37290 | 	  } | 
 | 37291 | 	  /^X\(\/\/\)$/{ | 
 | 37292 | 	    s//\1/ | 
 | 37293 | 	    q | 
 | 37294 | 	  } | 
 | 37295 | 	  /^X\(\/\).*/{ | 
 | 37296 | 	    s//\1/ | 
 | 37297 | 	    q | 
 | 37298 | 	  } | 
 | 37299 | 	  s/.*/./; q'` | 
 | 37300 |       as_dir="$ac_dir"; as_fn_mkdir_p | 
 | 37301 |       rm -f "$ac_prefix_conf_OUT" | 
 | 37302 |       mv $tmp/pconfig.h "$ac_prefix_conf_OUT" | 
 | 37303 |     fi | 
 | 37304 |     cp conftest.prefix _configs.sed | 
 | 37305 |   else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37306 |     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37307 |   fi | 
 | 37308 |   rm -f conftest.* | 
 | 37309 | fi | 
 | 37310 |  ;; | 
 | 37311 |     "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | 
 | 37312 |   # Autoconf 2.62 quotes --file arguments for eval, but not when files | 
 | 37313 |   # are listed without --file.  Let's play safe and only enable the eval | 
 | 37314 |   # if we detect the quoting. | 
 | 37315 |   case $CONFIG_FILES in | 
 | 37316 |   *\'*) eval set x "$CONFIG_FILES" ;; | 
 | 37317 |   *)   set x $CONFIG_FILES ;; | 
 | 37318 |   esac | 
 | 37319 |   shift | 
 | 37320 |   for mf | 
 | 37321 |   do | 
 | 37322 |     # Strip MF so we end up with the name of the file. | 
 | 37323 |     mf=`echo "$mf" | sed -e 's/:.*$//'` | 
 | 37324 |     # Check whether this is an Automake generated Makefile or not. | 
 | 37325 |     # We used to match only the files named `Makefile.in', but | 
 | 37326 |     # some people rename them; so instead we look at the file content. | 
 | 37327 |     # Grep'ing the first line is not enough: some people post-process | 
 | 37328 |     # each Makefile.in and add a new line on top of each file to say so. | 
 | 37329 |     # Grep'ing the whole file is not good either: AIX grep has a line | 
 | 37330 |     # limit of 2048, but all sed's we know have understand at least 4000. | 
 | 37331 |     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | 
 | 37332 |       dirpart=`$as_dirname -- "$mf" || | 
 | 37333 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 37334 | 	 X"$mf" : 'X\(//\)[^/]' \| \ | 
 | 37335 | 	 X"$mf" : 'X\(//\)$' \| \ | 
 | 37336 | 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | 
 | 37337 | $as_echo X"$mf" | | 
 | 37338 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 37339 | 	    s//\1/ | 
 | 37340 | 	    q | 
 | 37341 | 	  } | 
 | 37342 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 37343 | 	    s//\1/ | 
 | 37344 | 	    q | 
 | 37345 | 	  } | 
 | 37346 | 	  /^X\(\/\/\)$/{ | 
 | 37347 | 	    s//\1/ | 
 | 37348 | 	    q | 
 | 37349 | 	  } | 
 | 37350 | 	  /^X\(\/\).*/{ | 
 | 37351 | 	    s//\1/ | 
 | 37352 | 	    q | 
 | 37353 | 	  } | 
 | 37354 | 	  s/.*/./; q'` | 
 | 37355 |     else | 
 | 37356 |       continue | 
 | 37357 |     fi | 
 | 37358 |     # Extract the definition of DEPDIR, am__include, and am__quote | 
 | 37359 |     # from the Makefile without running `make'. | 
 | 37360 |     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 
 | 37361 |     test -z "$DEPDIR" && continue | 
 | 37362 |     am__include=`sed -n 's/^am__include = //p' < "$mf"` | 
 | 37363 |     test -z "am__include" && continue | 
 | 37364 |     am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | 
 | 37365 |     # When using ansi2knr, U may be empty or an underscore; expand it | 
 | 37366 |     U=`sed -n 's/^U = //p' < "$mf"` | 
 | 37367 |     # Find all dependency output files, they are included files with | 
 | 37368 |     # $(DEPDIR) in their names.  We invoke sed twice because it is the | 
 | 37369 |     # simplest approach to changing $(DEPDIR) to its actual value in the | 
 | 37370 |     # expansion. | 
 | 37371 |     for file in `sed -n " | 
 | 37372 |       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | 
 | 37373 | 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 
 | 37374 |       # Make sure the directory exists. | 
 | 37375 |       test -f "$dirpart/$file" && continue | 
 | 37376 |       fdir=`$as_dirname -- "$file" || | 
 | 37377 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
 | 37378 | 	 X"$file" : 'X\(//\)[^/]' \| \ | 
 | 37379 | 	 X"$file" : 'X\(//\)$' \| \ | 
 | 37380 | 	 X"$file" : 'X\(/\)' \| . 2>/dev/null || | 
 | 37381 | $as_echo X"$file" | | 
 | 37382 |     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
 | 37383 | 	    s//\1/ | 
 | 37384 | 	    q | 
 | 37385 | 	  } | 
 | 37386 | 	  /^X\(\/\/\)[^/].*/{ | 
 | 37387 | 	    s//\1/ | 
 | 37388 | 	    q | 
 | 37389 | 	  } | 
 | 37390 | 	  /^X\(\/\/\)$/{ | 
 | 37391 | 	    s//\1/ | 
 | 37392 | 	    q | 
 | 37393 | 	  } | 
 | 37394 | 	  /^X\(\/\).*/{ | 
 | 37395 | 	    s//\1/ | 
 | 37396 | 	    q | 
 | 37397 | 	  } | 
 | 37398 | 	  s/.*/./; q'` | 
 | 37399 |       as_dir=$dirpart/$fdir; as_fn_mkdir_p | 
 | 37400 |       # echo "creating $dirpart/$file" | 
 | 37401 |       echo '# dummy' > "$dirpart/$file" | 
 | 37402 |     done | 
 | 37403 |   done | 
 | 37404 | } | 
 | 37405 |  ;; | 
 | 37406 |     "libtool":C) | 
 | 37407 |  | 
 | 37408 |     # See if we are running on zsh, and set the options which allow our | 
 | 37409 |     # commands through without removal of \ escapes. | 
 | 37410 |     if test -n "${ZSH_VERSION+set}" ; then | 
 | 37411 |       setopt NO_GLOB_SUBST | 
 | 37412 |     fi | 
 | 37413 |  | 
 | 37414 |     cfgfile="${ofile}T" | 
 | 37415 |     trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | 
 | 37416 |     $RM "$cfgfile" | 
 | 37417 |  | 
 | 37418 |     cat <<_LT_EOF >> "$cfgfile" | 
 | 37419 | #! $SHELL | 
 | 37420 |  | 
 | 37421 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
 | 37422 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | 
 | 37423 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 37424 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
 | 37425 | # | 
 | 37426 | #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 37427 | #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software | 
 | 37428 | #                 Foundation, Inc. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37429 | #   Written by Gordon Matzigkeit, 1996 | 
 | 37430 | # | 
 | 37431 | #   This file is part of GNU Libtool. | 
 | 37432 | # | 
 | 37433 | # GNU Libtool is free software; you can redistribute it and/or | 
 | 37434 | # modify it under the terms of the GNU General Public License as | 
 | 37435 | # published by the Free Software Foundation; either version 2 of | 
 | 37436 | # the License, or (at your option) any later version. | 
 | 37437 | # | 
 | 37438 | # As a special exception to the GNU General Public License, | 
 | 37439 | # if you distribute this file as part of a program or library that | 
 | 37440 | # is built using GNU Libtool, you may include this file under the | 
 | 37441 | # same distribution terms that you use for the rest of that program. | 
 | 37442 | # | 
 | 37443 | # GNU Libtool is distributed in the hope that it will be useful, | 
 | 37444 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 37445 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 | 37446 | # GNU General Public License for more details. | 
 | 37447 | # | 
 | 37448 | # You should have received a copy of the GNU General Public License | 
 | 37449 | # along with GNU Libtool; see the file COPYING.  If not, a copy | 
 | 37450 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | 
 | 37451 | # obtained by writing to the Free Software Foundation, Inc., | 
 | 37452 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
 | 37453 |  | 
 | 37454 |  | 
 | 37455 | # The names of the tagged configurations supported by this script. | 
 | 37456 | available_tags="CXX " | 
 | 37457 |  | 
 | 37458 | # ### BEGIN LIBTOOL CONFIG | 
 | 37459 |  | 
 | 37460 | # A sed program that does not truncate output. | 
 | 37461 | SED=$lt_SED | 
 | 37462 |  | 
 | 37463 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
 | 37464 | Xsed="\$SED -e 1s/^X//" | 
 | 37465 |  | 
 | 37466 | # A grep program that handles long lines. | 
 | 37467 | GREP=$lt_GREP | 
 | 37468 |  | 
 | 37469 | # An ERE matcher. | 
 | 37470 | EGREP=$lt_EGREP | 
 | 37471 |  | 
 | 37472 | # A literal string matcher. | 
 | 37473 | FGREP=$lt_FGREP | 
 | 37474 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37475 | # Shell to use when invoking shell scripts. | 
 | 37476 | SHELL=$lt_SHELL | 
 | 37477 |  | 
 | 37478 | # An echo program that protects backslashes. | 
 | 37479 | ECHO=$lt_ECHO | 
 | 37480 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37481 | # Which release of libtool.m4 was used? | 
 | 37482 | macro_version=$macro_version | 
 | 37483 | macro_revision=$macro_revision | 
 | 37484 |  | 
 | 37485 | # Assembler program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37486 | AS=$lt_AS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37487 |  | 
 | 37488 | # DLL creation program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37489 | DLLTOOL=$lt_DLLTOOL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37490 |  | 
 | 37491 | # Object dumper program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37492 | OBJDUMP=$lt_OBJDUMP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37493 |  | 
 | 37494 | # Whether or not to build shared libraries. | 
 | 37495 | build_libtool_libs=$enable_shared | 
 | 37496 |  | 
 | 37497 | # Whether or not to build static libraries. | 
 | 37498 | build_old_libs=$enable_static | 
 | 37499 |  | 
 | 37500 | # What type of objects to build. | 
 | 37501 | pic_mode=$pic_mode | 
 | 37502 |  | 
 | 37503 | # Whether or not to optimize for fast installation. | 
 | 37504 | fast_install=$enable_fast_install | 
 | 37505 |  | 
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 37506 | # The PATH separator for the build system. | 
 | 37507 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | 
 | 37508 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37509 | # The host system. | 
 | 37510 | host_alias=$host_alias | 
 | 37511 | host=$host | 
 | 37512 | host_os=$host_os | 
 | 37513 |  | 
 | 37514 | # The build system. | 
 | 37515 | build_alias=$build_alias | 
 | 37516 | build=$build | 
 | 37517 | build_os=$build_os | 
 | 37518 |  | 
 | 37519 | # A BSD- or MS-compatible name lister. | 
 | 37520 | NM=$lt_NM | 
 | 37521 |  | 
 | 37522 | # Whether we need soft or hard links. | 
 | 37523 | LN_S=$lt_LN_S | 
 | 37524 |  | 
 | 37525 | # What is the maximum length of a command? | 
 | 37526 | max_cmd_len=$max_cmd_len | 
 | 37527 |  | 
 | 37528 | # Object file suffix (normally "o"). | 
 | 37529 | objext=$ac_objext | 
 | 37530 |  | 
 | 37531 | # Executable file suffix (normally ""). | 
 | 37532 | exeext=$exeext | 
 | 37533 |  | 
 | 37534 | # whether the shell understands "unset". | 
 | 37535 | lt_unset=$lt_unset | 
 | 37536 |  | 
 | 37537 | # turn spaces into newlines. | 
 | 37538 | SP2NL=$lt_lt_SP2NL | 
 | 37539 |  | 
 | 37540 | # turn newlines into spaces. | 
 | 37541 | NL2SP=$lt_lt_NL2SP | 
 | 37542 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37543 | # convert \$build file names to \$host format. | 
 | 37544 | to_host_file_cmd=$lt_cv_to_host_file_cmd | 
 | 37545 |  | 
 | 37546 | # convert \$build files to toolchain format. | 
 | 37547 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | 
 | 37548 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37549 | # Method to check whether dependent libraries are shared objects. | 
 | 37550 | deplibs_check_method=$lt_deplibs_check_method | 
 | 37551 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37552 | # Command to use when deplibs_check_method = "file_magic". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37553 | file_magic_cmd=$lt_file_magic_cmd | 
 | 37554 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37555 | # How to find potential files when deplibs_check_method = "file_magic". | 
 | 37556 | file_magic_glob=$lt_file_magic_glob | 
 | 37557 |  | 
 | 37558 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | 
 | 37559 | want_nocaseglob=$lt_want_nocaseglob | 
 | 37560 |  | 
 | 37561 | # Command to associate shared and link libraries. | 
 | 37562 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | 
 | 37563 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37564 | # The archiver. | 
 | 37565 | AR=$lt_AR | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37566 |  | 
 | 37567 | # Flags to create an archive. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37568 | AR_FLAGS=$lt_AR_FLAGS | 
 | 37569 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37570 | # How to feed a file listing to the archiver. | 
 | 37571 | archiver_list_spec=$lt_archiver_list_spec | 
 | 37572 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37573 | # A symbol stripping program. | 
 | 37574 | STRIP=$lt_STRIP | 
 | 37575 |  | 
 | 37576 | # Commands used to install an old-style archive. | 
 | 37577 | RANLIB=$lt_RANLIB | 
 | 37578 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
 | 37579 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
 | 37580 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37581 | # Whether to use a lock for old archive extraction. | 
 | 37582 | lock_old_archive_extraction=$lock_old_archive_extraction | 
 | 37583 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37584 | # A C compiler. | 
 | 37585 | LTCC=$lt_CC | 
 | 37586 |  | 
 | 37587 | # LTCC compiler flags. | 
 | 37588 | LTCFLAGS=$lt_CFLAGS | 
 | 37589 |  | 
 | 37590 | # Take the output of nm and produce a listing of raw symbols and C names. | 
 | 37591 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
 | 37592 |  | 
 | 37593 | # Transform the output of nm in a proper C declaration. | 
 | 37594 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
 | 37595 |  | 
 | 37596 | # Transform the output of nm in a C name address pair. | 
 | 37597 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
 | 37598 |  | 
 | 37599 | # Transform the output of nm in a C name address pair when lib prefix is needed. | 
 | 37600 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | 
 | 37601 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37602 | # Specify filename containing input files for \$NM. | 
 | 37603 | nm_file_list_spec=$lt_nm_file_list_spec | 
 | 37604 |  | 
 | 37605 | # The root where to search for dependent libraries,and in which our libraries should be installed. | 
 | 37606 | lt_sysroot=$lt_sysroot | 
 | 37607 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37608 | # The name of the directory that contains temporary libtool files. | 
 | 37609 | objdir=$objdir | 
 | 37610 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37611 | # Used to examine libraries when file_magic_cmd begins with "file". | 
 | 37612 | MAGIC_CMD=$MAGIC_CMD | 
 | 37613 |  | 
 | 37614 | # Must we lock files when doing compilation? | 
 | 37615 | need_locks=$lt_need_locks | 
 | 37616 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37617 | # Manifest tool. | 
 | 37618 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | 
 | 37619 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37620 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | 
 | 37621 | DSYMUTIL=$lt_DSYMUTIL | 
 | 37622 |  | 
 | 37623 | # Tool to change global to local symbols on Mac OS X. | 
 | 37624 | NMEDIT=$lt_NMEDIT | 
 | 37625 |  | 
 | 37626 | # Tool to manipulate fat objects and archives on Mac OS X. | 
 | 37627 | LIPO=$lt_LIPO | 
 | 37628 |  | 
 | 37629 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | 
 | 37630 | OTOOL=$lt_OTOOL | 
 | 37631 |  | 
 | 37632 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | 
 | 37633 | OTOOL64=$lt_OTOOL64 | 
 | 37634 |  | 
 | 37635 | # Old archive suffix (normally "a"). | 
 | 37636 | libext=$libext | 
 | 37637 |  | 
 | 37638 | # Shared library suffix (normally ".so"). | 
 | 37639 | shrext_cmds=$lt_shrext_cmds | 
 | 37640 |  | 
 | 37641 | # The commands to extract the exported symbol list from a shared archive. | 
 | 37642 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
 | 37643 |  | 
 | 37644 | # Variables whose values should be saved in libtool wrapper scripts and | 
 | 37645 | # restored at link time. | 
 | 37646 | variables_saved_for_relink=$lt_variables_saved_for_relink | 
 | 37647 |  | 
 | 37648 | # Do we need the "lib" prefix for modules? | 
 | 37649 | need_lib_prefix=$need_lib_prefix | 
 | 37650 |  | 
 | 37651 | # Do we need a version for libraries? | 
 | 37652 | need_version=$need_version | 
 | 37653 |  | 
 | 37654 | # Library versioning type. | 
 | 37655 | version_type=$version_type | 
 | 37656 |  | 
 | 37657 | # Shared library runtime path variable. | 
 | 37658 | runpath_var=$runpath_var | 
 | 37659 |  | 
 | 37660 | # Shared library path variable. | 
 | 37661 | shlibpath_var=$shlibpath_var | 
 | 37662 |  | 
 | 37663 | # Is shlibpath searched before the hard-coded library search path? | 
 | 37664 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
 | 37665 |  | 
 | 37666 | # Format of library name prefix. | 
 | 37667 | libname_spec=$lt_libname_spec | 
 | 37668 |  | 
 | 37669 | # List of archive names.  First name is the real one, the rest are links. | 
 | 37670 | # The last name is the one that the linker finds with -lNAME | 
 | 37671 | library_names_spec=$lt_library_names_spec | 
 | 37672 |  | 
 | 37673 | # The coded name of the library, if different from the real name. | 
 | 37674 | soname_spec=$lt_soname_spec | 
 | 37675 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37676 | # Permission mode override for installation of shared libraries. | 
 | 37677 | install_override_mode=$lt_install_override_mode | 
 | 37678 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37679 | # Command to use after installation of a shared archive. | 
 | 37680 | postinstall_cmds=$lt_postinstall_cmds | 
 | 37681 |  | 
 | 37682 | # Command to use after uninstallation of a shared archive. | 
 | 37683 | postuninstall_cmds=$lt_postuninstall_cmds | 
 | 37684 |  | 
 | 37685 | # Commands used to finish a libtool library installation in a directory. | 
 | 37686 | finish_cmds=$lt_finish_cmds | 
 | 37687 |  | 
 | 37688 | # As "finish_cmds", except a single script fragment to be evaled but | 
 | 37689 | # not shown. | 
 | 37690 | finish_eval=$lt_finish_eval | 
 | 37691 |  | 
 | 37692 | # Whether we should hardcode library paths into libraries. | 
 | 37693 | hardcode_into_libs=$hardcode_into_libs | 
 | 37694 |  | 
 | 37695 | # Compile-time system search path for libraries. | 
 | 37696 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
 | 37697 |  | 
 | 37698 | # Run-time system search path for libraries. | 
 | 37699 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
 | 37700 |  | 
 | 37701 | # Whether dlopen is supported. | 
 | 37702 | dlopen_support=$enable_dlopen | 
 | 37703 |  | 
 | 37704 | # Whether dlopen of programs is supported. | 
 | 37705 | dlopen_self=$enable_dlopen_self | 
 | 37706 |  | 
 | 37707 | # Whether dlopen of statically linked programs is supported. | 
 | 37708 | dlopen_self_static=$enable_dlopen_self_static | 
 | 37709 |  | 
 | 37710 | # Commands to strip libraries. | 
 | 37711 | old_striplib=$lt_old_striplib | 
 | 37712 | striplib=$lt_striplib | 
 | 37713 |  | 
 | 37714 |  | 
 | 37715 | # The linker used to build libraries. | 
 | 37716 | LD=$lt_LD | 
 | 37717 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37718 | # How to create reloadable object files. | 
 | 37719 | reload_flag=$lt_reload_flag | 
 | 37720 | reload_cmds=$lt_reload_cmds | 
 | 37721 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37722 | # Commands used to build an old-style archive. | 
 | 37723 | old_archive_cmds=$lt_old_archive_cmds | 
 | 37724 |  | 
 | 37725 | # A language specific compiler. | 
 | 37726 | CC=$lt_compiler | 
 | 37727 |  | 
 | 37728 | # Is the compiler the GNU compiler? | 
 | 37729 | with_gcc=$GCC | 
 | 37730 |  | 
 | 37731 | # Compiler flag to turn off builtin functions. | 
 | 37732 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
 | 37733 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37734 | # Additional compiler flags for building library objects. | 
 | 37735 | pic_flag=$lt_lt_prog_compiler_pic | 
 | 37736 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37737 | # How to pass a linker flag through the compiler. | 
 | 37738 | wl=$lt_lt_prog_compiler_wl | 
 | 37739 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37740 | # Compiler flag to prevent dynamic linking. | 
 | 37741 | link_static_flag=$lt_lt_prog_compiler_static | 
 | 37742 |  | 
 | 37743 | # Does compiler simultaneously support -c and -o options? | 
 | 37744 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
 | 37745 |  | 
 | 37746 | # Whether or not to add -lc for building shared libraries. | 
 | 37747 | build_libtool_need_lc=$archive_cmds_need_lc | 
 | 37748 |  | 
 | 37749 | # Whether or not to disallow shared libs when runtime libs are static. | 
 | 37750 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
 | 37751 |  | 
 | 37752 | # Compiler flag to allow reflexive dlopens. | 
 | 37753 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
 | 37754 |  | 
 | 37755 | # Compiler flag to generate shared objects directly from archives. | 
 | 37756 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
 | 37757 |  | 
 | 37758 | # Whether the compiler copes with passing no objects directly. | 
 | 37759 | compiler_needs_object=$lt_compiler_needs_object | 
 | 37760 |  | 
 | 37761 | # Create an old-style archive from a shared archive. | 
 | 37762 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
 | 37763 |  | 
 | 37764 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 37765 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
 | 37766 |  | 
 | 37767 | # Commands used to build a shared archive. | 
 | 37768 | archive_cmds=$lt_archive_cmds | 
 | 37769 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
 | 37770 |  | 
 | 37771 | # Commands used to build a loadable module if different from building | 
 | 37772 | # a shared archive. | 
 | 37773 | module_cmds=$lt_module_cmds | 
 | 37774 | module_expsym_cmds=$lt_module_expsym_cmds | 
 | 37775 |  | 
 | 37776 | # Whether we are building with GNU ld or not. | 
 | 37777 | with_gnu_ld=$lt_with_gnu_ld | 
 | 37778 |  | 
 | 37779 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 37780 | allow_undefined_flag=$lt_allow_undefined_flag | 
 | 37781 |  | 
 | 37782 | # Flag that enforces no undefined symbols. | 
 | 37783 | no_undefined_flag=$lt_no_undefined_flag | 
 | 37784 |  | 
 | 37785 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 37786 | # This must work even if \$libdir does not exist | 
 | 37787 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
 | 37788 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37789 | # Whether we need a single "-rpath" flag with a separated argument. | 
 | 37790 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
 | 37791 |  | 
 | 37792 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
 | 37793 | # DIR into the resulting binary. | 
 | 37794 | hardcode_direct=$hardcode_direct | 
 | 37795 |  | 
 | 37796 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
 | 37797 | # DIR into the resulting binary and the resulting library dependency is | 
 | 37798 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
 | 37799 | # library is relocated. | 
 | 37800 | hardcode_direct_absolute=$hardcode_direct_absolute | 
 | 37801 |  | 
 | 37802 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
 | 37803 | # into the resulting binary. | 
 | 37804 | hardcode_minus_L=$hardcode_minus_L | 
 | 37805 |  | 
 | 37806 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
 | 37807 | # into the resulting binary. | 
 | 37808 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
 | 37809 |  | 
 | 37810 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
 | 37811 | # into the library and all subsequent libraries and executables linked | 
 | 37812 | # against it. | 
 | 37813 | hardcode_automatic=$hardcode_automatic | 
 | 37814 |  | 
 | 37815 | # Set to yes if linker adds runtime paths of dependent libraries | 
 | 37816 | # to runtime path list. | 
 | 37817 | inherit_rpath=$inherit_rpath | 
 | 37818 |  | 
 | 37819 | # Whether libtool must link a program against all its dependency libraries. | 
 | 37820 | link_all_deplibs=$link_all_deplibs | 
 | 37821 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37822 | # Set to "yes" if exported symbols are required. | 
 | 37823 | always_export_symbols=$always_export_symbols | 
 | 37824 |  | 
 | 37825 | # The commands to list exported symbols. | 
 | 37826 | export_symbols_cmds=$lt_export_symbols_cmds | 
 | 37827 |  | 
 | 37828 | # Symbols that should not be listed in the preloaded symbols. | 
 | 37829 | exclude_expsyms=$lt_exclude_expsyms | 
 | 37830 |  | 
 | 37831 | # Symbols that must always be exported. | 
 | 37832 | include_expsyms=$lt_include_expsyms | 
 | 37833 |  | 
 | 37834 | # Commands necessary for linking programs (against libraries) with templates. | 
 | 37835 | prelink_cmds=$lt_prelink_cmds | 
 | 37836 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37837 | # Commands necessary for finishing linking programs. | 
 | 37838 | postlink_cmds=$lt_postlink_cmds | 
 | 37839 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37840 | # Specify filename containing input files. | 
 | 37841 | file_list_spec=$lt_file_list_spec | 
 | 37842 |  | 
 | 37843 | # How to hardcode a shared library path into an executable. | 
 | 37844 | hardcode_action=$hardcode_action | 
 | 37845 |  | 
 | 37846 | # The directories searched by this compiler when creating a shared library. | 
 | 37847 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | 
 | 37848 |  | 
 | 37849 | # Dependencies to place before and after the objects being linked to | 
 | 37850 | # create a shared library. | 
 | 37851 | predep_objects=$lt_predep_objects | 
 | 37852 | postdep_objects=$lt_postdep_objects | 
 | 37853 | predeps=$lt_predeps | 
 | 37854 | postdeps=$lt_postdeps | 
 | 37855 |  | 
 | 37856 | # The library search path used internally by the compiler when linking | 
 | 37857 | # a shared library. | 
 | 37858 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
 | 37859 |  | 
 | 37860 | # ### END LIBTOOL CONFIG | 
 | 37861 |  | 
 | 37862 | _LT_EOF | 
 | 37863 |  | 
 | 37864 |   case $host_os in | 
 | 37865 |   aix3*) | 
 | 37866 |     cat <<\_LT_EOF >> "$cfgfile" | 
 | 37867 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
 | 37868 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
 | 37869 | # vanish in a puff of smoke. | 
 | 37870 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
 | 37871 |   COLLECT_NAMES= | 
 | 37872 |   export COLLECT_NAMES | 
 | 37873 | fi | 
 | 37874 | _LT_EOF | 
 | 37875 |     ;; | 
 | 37876 |   esac | 
 | 37877 |  | 
 | 37878 |  | 
 | 37879 | ltmain="$ac_aux_dir/ltmain.sh" | 
 | 37880 |  | 
 | 37881 |  | 
 | 37882 |   # We use sed instead of cat because bash on DJGPP gets confused if | 
 | 37883 |   # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
 | 37884 |   # text mode, it properly converts lines to CR/LF.  This bash problem | 
 | 37885 |   # is reportedly fixed, but why not run on old versions too? | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37886 |   sed '$q' "$ltmain" >> "$cfgfile" \ | 
 | 37887 |      || (rm -f "$cfgfile"; exit 1) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37888 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37889 |   if test x"$xsi_shell" = xyes; then | 
 | 37890 |   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | 
 | 37891 | func_dirname ()\ | 
 | 37892 | {\ | 
 | 37893 | \    case ${1} in\ | 
 | 37894 | \      */*) func_dirname_result="${1%/*}${2}" ;;\ | 
 | 37895 | \      *  ) func_dirname_result="${3}" ;;\ | 
 | 37896 | \    esac\ | 
 | 37897 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37898 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37899 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37900 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37901 |  | 
 | 37902 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37903 |   sed -e '/^func_basename ()$/,/^} # func_basename /c\ | 
 | 37904 | func_basename ()\ | 
 | 37905 | {\ | 
 | 37906 | \    func_basename_result="${1##*/}"\ | 
 | 37907 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37908 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37909 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37910 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37911 |  | 
 | 37912 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37913 |   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | 
 | 37914 | func_dirname_and_basename ()\ | 
 | 37915 | {\ | 
 | 37916 | \    case ${1} in\ | 
 | 37917 | \      */*) func_dirname_result="${1%/*}${2}" ;;\ | 
 | 37918 | \      *  ) func_dirname_result="${3}" ;;\ | 
 | 37919 | \    esac\ | 
 | 37920 | \    func_basename_result="${1##*/}"\ | 
 | 37921 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37922 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37923 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37924 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37925 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37926 |  | 
 | 37927 |   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | 
 | 37928 | func_stripname ()\ | 
 | 37929 | {\ | 
 | 37930 | \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | 
 | 37931 | \    # positional parameters, so assign one to ordinary parameter first.\ | 
 | 37932 | \    func_stripname_result=${3}\ | 
 | 37933 | \    func_stripname_result=${func_stripname_result#"${1}"}\ | 
 | 37934 | \    func_stripname_result=${func_stripname_result%"${2}"}\ | 
 | 37935 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37936 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37937 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37938 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37939 |  | 
 | 37940 |  | 
 | 37941 |   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | 
 | 37942 | func_split_long_opt ()\ | 
 | 37943 | {\ | 
 | 37944 | \    func_split_long_opt_name=${1%%=*}\ | 
 | 37945 | \    func_split_long_opt_arg=${1#*=}\ | 
 | 37946 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37947 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37948 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37949 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37950 |  | 
 | 37951 |  | 
 | 37952 |   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | 
 | 37953 | func_split_short_opt ()\ | 
 | 37954 | {\ | 
 | 37955 | \    func_split_short_opt_arg=${1#??}\ | 
 | 37956 | \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | 
 | 37957 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37958 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37959 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37960 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37961 |  | 
 | 37962 |  | 
 | 37963 |   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | 
 | 37964 | func_lo2o ()\ | 
 | 37965 | {\ | 
 | 37966 | \    case ${1} in\ | 
 | 37967 | \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | 
 | 37968 | \      *)    func_lo2o_result=${1} ;;\ | 
 | 37969 | \    esac\ | 
 | 37970 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37971 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37972 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37973 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37974 |  | 
 | 37975 |  | 
 | 37976 |   sed -e '/^func_xform ()$/,/^} # func_xform /c\ | 
 | 37977 | func_xform ()\ | 
 | 37978 | {\ | 
 | 37979 |     func_xform_result=${1%.*}.lo\ | 
 | 37980 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37981 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37982 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37983 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37984 |  | 
 | 37985 |  | 
 | 37986 |   sed -e '/^func_arith ()$/,/^} # func_arith /c\ | 
 | 37987 | func_arith ()\ | 
 | 37988 | {\ | 
 | 37989 |     func_arith_result=$(( $* ))\ | 
 | 37990 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 37991 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 37992 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 37993 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 37994 |  | 
 | 37995 |  | 
 | 37996 |   sed -e '/^func_len ()$/,/^} # func_len /c\ | 
 | 37997 | func_len ()\ | 
 | 37998 | {\ | 
 | 37999 |     func_len_result=${#1}\ | 
 | 38000 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 38001 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 38002 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 38003 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 38004 |  | 
 | 38005 | fi | 
 | 38006 |  | 
 | 38007 | if test x"$lt_shell_append" = xyes; then | 
 | 38008 |   sed -e '/^func_append ()$/,/^} # func_append /c\ | 
 | 38009 | func_append ()\ | 
 | 38010 | {\ | 
 | 38011 |     eval "${1}+=\\${2}"\ | 
 | 38012 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 38013 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 38014 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 38015 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 38016 |  | 
 | 38017 |  | 
 | 38018 |   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | 
 | 38019 | func_append_quoted ()\ | 
 | 38020 | {\ | 
 | 38021 | \    func_quote_for_eval "${2}"\ | 
 | 38022 | \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | 
 | 38023 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | 
 | 38024 |   && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 38025 |     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 38026 | test 0 -eq $? || _lt_function_replace_fail=: | 
 | 38027 |  | 
 | 38028 |  | 
 | 38029 |   # Save a `func_append' function call where possible by direct use of '+=' | 
 | 38030 |   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | 
 | 38031 |     && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 38032 |       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 38033 |   test 0 -eq $? || _lt_function_replace_fail=: | 
 | 38034 | else | 
 | 38035 |   # Save a `func_append' function call even when '+=' is not available | 
 | 38036 |   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | 
 | 38037 |     && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
 | 38038 |       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
 | 38039 |   test 0 -eq $? || _lt_function_replace_fail=: | 
 | 38040 | fi | 
 | 38041 |  | 
 | 38042 | if test x"$_lt_function_replace_fail" = x":"; then | 
 | 38043 |   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | 
 | 38044 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | 
 | 38045 | fi | 
 | 38046 |  | 
 | 38047 |  | 
 | 38048 |    mv -f "$cfgfile" "$ofile" || | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38049 |     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
 | 38050 |   chmod +x "$ofile" | 
 | 38051 |  | 
 | 38052 |  | 
 | 38053 |     cat <<_LT_EOF >> "$ofile" | 
 | 38054 |  | 
 | 38055 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | 
 | 38056 |  | 
 | 38057 | # The linker used to build libraries. | 
 | 38058 | LD=$lt_LD_CXX | 
 | 38059 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38060 | # How to create reloadable object files. | 
 | 38061 | reload_flag=$lt_reload_flag_CXX | 
 | 38062 | reload_cmds=$lt_reload_cmds_CXX | 
 | 38063 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38064 | # Commands used to build an old-style archive. | 
 | 38065 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
 | 38066 |  | 
 | 38067 | # A language specific compiler. | 
 | 38068 | CC=$lt_compiler_CXX | 
 | 38069 |  | 
 | 38070 | # Is the compiler the GNU compiler? | 
 | 38071 | with_gcc=$GCC_CXX | 
 | 38072 |  | 
 | 38073 | # Compiler flag to turn off builtin functions. | 
 | 38074 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
 | 38075 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38076 | # Additional compiler flags for building library objects. | 
 | 38077 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
 | 38078 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38079 | # How to pass a linker flag through the compiler. | 
 | 38080 | wl=$lt_lt_prog_compiler_wl_CXX | 
 | 38081 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38082 | # Compiler flag to prevent dynamic linking. | 
 | 38083 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
 | 38084 |  | 
 | 38085 | # Does compiler simultaneously support -c and -o options? | 
 | 38086 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
 | 38087 |  | 
 | 38088 | # Whether or not to add -lc for building shared libraries. | 
 | 38089 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
 | 38090 |  | 
 | 38091 | # Whether or not to disallow shared libs when runtime libs are static. | 
 | 38092 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
 | 38093 |  | 
 | 38094 | # Compiler flag to allow reflexive dlopens. | 
 | 38095 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
 | 38096 |  | 
 | 38097 | # Compiler flag to generate shared objects directly from archives. | 
 | 38098 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
 | 38099 |  | 
 | 38100 | # Whether the compiler copes with passing no objects directly. | 
 | 38101 | compiler_needs_object=$lt_compiler_needs_object_CXX | 
 | 38102 |  | 
 | 38103 | # Create an old-style archive from a shared archive. | 
 | 38104 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
 | 38105 |  | 
 | 38106 | # Create a temporary old-style archive to link instead of a shared archive. | 
 | 38107 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
 | 38108 |  | 
 | 38109 | # Commands used to build a shared archive. | 
 | 38110 | archive_cmds=$lt_archive_cmds_CXX | 
 | 38111 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
 | 38112 |  | 
 | 38113 | # Commands used to build a loadable module if different from building | 
 | 38114 | # a shared archive. | 
 | 38115 | module_cmds=$lt_module_cmds_CXX | 
 | 38116 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
 | 38117 |  | 
 | 38118 | # Whether we are building with GNU ld or not. | 
 | 38119 | with_gnu_ld=$lt_with_gnu_ld_CXX | 
 | 38120 |  | 
 | 38121 | # Flag that allows shared libraries with undefined symbols to be built. | 
 | 38122 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
 | 38123 |  | 
 | 38124 | # Flag that enforces no undefined symbols. | 
 | 38125 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
 | 38126 |  | 
 | 38127 | # Flag to hardcode \$libdir into a binary during linking. | 
 | 38128 | # This must work even if \$libdir does not exist | 
 | 38129 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
 | 38130 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38131 | # Whether we need a single "-rpath" flag with a separated argument. | 
 | 38132 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
 | 38133 |  | 
 | 38134 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
 | 38135 | # DIR into the resulting binary. | 
 | 38136 | hardcode_direct=$hardcode_direct_CXX | 
 | 38137 |  | 
 | 38138 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
 | 38139 | # DIR into the resulting binary and the resulting library dependency is | 
 | 38140 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
 | 38141 | # library is relocated. | 
 | 38142 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | 
 | 38143 |  | 
 | 38144 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
 | 38145 | # into the resulting binary. | 
 | 38146 | hardcode_minus_L=$hardcode_minus_L_CXX | 
 | 38147 |  | 
 | 38148 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
 | 38149 | # into the resulting binary. | 
 | 38150 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
 | 38151 |  | 
 | 38152 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
 | 38153 | # into the library and all subsequent libraries and executables linked | 
 | 38154 | # against it. | 
 | 38155 | hardcode_automatic=$hardcode_automatic_CXX | 
 | 38156 |  | 
 | 38157 | # Set to yes if linker adds runtime paths of dependent libraries | 
 | 38158 | # to runtime path list. | 
 | 38159 | inherit_rpath=$inherit_rpath_CXX | 
 | 38160 |  | 
 | 38161 | # Whether libtool must link a program against all its dependency libraries. | 
 | 38162 | link_all_deplibs=$link_all_deplibs_CXX | 
 | 38163 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38164 | # Set to "yes" if exported symbols are required. | 
 | 38165 | always_export_symbols=$always_export_symbols_CXX | 
 | 38166 |  | 
 | 38167 | # The commands to list exported symbols. | 
 | 38168 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
 | 38169 |  | 
 | 38170 | # Symbols that should not be listed in the preloaded symbols. | 
 | 38171 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
 | 38172 |  | 
 | 38173 | # Symbols that must always be exported. | 
 | 38174 | include_expsyms=$lt_include_expsyms_CXX | 
 | 38175 |  | 
 | 38176 | # Commands necessary for linking programs (against libraries) with templates. | 
 | 38177 | prelink_cmds=$lt_prelink_cmds_CXX | 
 | 38178 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38179 | # Commands necessary for finishing linking programs. | 
 | 38180 | postlink_cmds=$lt_postlink_cmds_CXX | 
 | 38181 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38182 | # Specify filename containing input files. | 
 | 38183 | file_list_spec=$lt_file_list_spec_CXX | 
 | 38184 |  | 
 | 38185 | # How to hardcode a shared library path into an executable. | 
 | 38186 | hardcode_action=$hardcode_action_CXX | 
 | 38187 |  | 
 | 38188 | # The directories searched by this compiler when creating a shared library. | 
 | 38189 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | 
 | 38190 |  | 
 | 38191 | # Dependencies to place before and after the objects being linked to | 
 | 38192 | # create a shared library. | 
 | 38193 | predep_objects=$lt_predep_objects_CXX | 
 | 38194 | postdep_objects=$lt_postdep_objects_CXX | 
 | 38195 | predeps=$lt_predeps_CXX | 
 | 38196 | postdeps=$lt_postdeps_CXX | 
 | 38197 |  | 
 | 38198 | # The library search path used internally by the compiler when linking | 
 | 38199 | # a shared library. | 
 | 38200 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
 | 38201 |  | 
 | 38202 | # ### END LIBTOOL TAG CONFIG: CXX | 
 | 38203 | _LT_EOF | 
 | 38204 |  | 
 | 38205 |  ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38206 |     "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; | 
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38207 |     "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38208 |     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; | 
 | 38209 |     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; | 
 | 38210 |  | 
 | 38211 |   esac | 
 | 38212 | done # for ac_tag | 
 | 38213 |  | 
 | 38214 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38215 | as_fn_exit 0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38216 | _ACEOF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38217 | ac_clean_files=$ac_clean_files_save | 
 | 38218 |  | 
 | 38219 | test $ac_write_fail = 0 || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38220 |   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38221 |  | 
 | 38222 |  | 
 | 38223 | # configure is writing to config.log, and then calls config.status. | 
 | 38224 | # config.status does its own redirection, appending to config.log. | 
 | 38225 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
 | 38226 | # by configure, so config.status won't be able to write to it; its | 
 | 38227 | # output is simply discarded.  So we exec the FD to /dev/null, | 
 | 38228 | # effectively closing config.log, so it can be properly (re)opened and | 
 | 38229 | # appended to by config.status.  When coming back to configure, we | 
 | 38230 | # need to make the FD available again. | 
 | 38231 | if test "$no_create" != yes; then | 
 | 38232 |   ac_cs_success=: | 
 | 38233 |   ac_config_status_args= | 
 | 38234 |   test "$silent" = yes && | 
 | 38235 |     ac_config_status_args="$ac_config_status_args --quiet" | 
 | 38236 |   exec 5>/dev/null | 
 | 38237 |   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
 | 38238 |   exec 5>>config.log | 
 | 38239 |   # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
 | 38240 |   # would make configure fail if this is the last instruction. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38241 |   $ac_cs_success || as_fn_exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38242 | fi | 
 | 38243 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38244 |   { $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] | 38245 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
 | 38246 | fi | 
 | 38247 |  | 
 | 38248 |  | 
 | 38249 | rm -f magick-version | 
 | 38250 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38251 | result_dejavu_font_dir='none' | 
 | 38252 | if test "${dejavu_font_dir}x" != 'x'; then | 
 | 38253 |     result_dejavu_font_dir=$dejavu_font_dir | 
 | 38254 | fi | 
 | 38255 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38256 | result_ghostscript_font_dir='none' | 
 | 38257 | if test "${ghostscript_font_dir}x" != 'x'; then | 
 | 38258 |     result_ghostscript_font_dir=$ghostscript_font_dir | 
 | 38259 | fi | 
 | 38260 |  | 
 | 38261 | result_windows_font_dir='none' | 
 | 38262 | if test "${windows_font_dir}x" != 'x'; then | 
 | 38263 |     result_windows_font_dir=${windows_font_dir} | 
 | 38264 | fi | 
 | 38265 |  | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38266 | { $as_echo "$as_me:${as_lineno-$LINENO}: | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38267 | ImageMagick is configured as follows. Please verify that this configuration | 
 | 38268 | matches your expectations. | 
 | 38269 |  | 
 | 38270 | Host system type: $host | 
 | 38271 | Build system type: $build | 
 | 38272 |  | 
 | 38273 |                   Option                        Value | 
 | 38274 | ------------------------------------------------------------------------------- | 
 | 38275 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
 | 38276 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
 | 38277 | Module support    --with-modules=$with_modules		$with_modules | 
 | 38278 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
 | 38279 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
 | 38280 | High Dynamic Range Imagery | 
 | 38281 |                   --enable-hdri=$enable_hdri		$enable_hdri | 
 | 38282 |  | 
 | 38283 | Delegate Configuration: | 
 | 38284 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
 | 38285 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38286 | 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] | 38287 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
 | 38288 | DPS               --with-dps=$with_dps		$have_dps | 
 | 38289 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
 | 38290 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
 | 38291 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
 | 38292 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
 | 38293 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
 | 38294 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
 | 38295 | Ghostscript       None				$PSDelegate ($GSVersion) | 
 | 38296 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
 | 38297 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
 | 38298 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
 | 38299 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
 | 38300 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
 | 38301 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38302 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
 | 38303 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38304 | LQR               --with-lqr=$with_lqr		$have_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38305 | LZMA              --with-lzma=$with_lzma		$have_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38306 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
 | 38307 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38308 | PANGO             --with-pango=$with_pango		$have_pango | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38309 | PERL              --with-perl=$with_perl		$have_perl | 
 | 38310 | PNG               --with-png=$with_png		$have_png | 
 | 38311 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
 | 38312 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38313 | WEBP              --with-webp=$with_webp		$have_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38314 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
 | 38315 | WMF               --with-wmf=$with_wmf		$have_wmf | 
 | 38316 | X11               --with-x=$with_x			$have_x | 
 | 38317 | XML               --with-xml=$with_xml		$have_xml | 
 | 38318 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
 | 38319 |  | 
 | 38320 | X11 Configuration: | 
 | 38321 |       X_CFLAGS        = $X_CFLAGS | 
 | 38322 |       X_PRE_LIBS      = $X_PRE_LIBS | 
 | 38323 |       X_LIBS          = $X_LIBS | 
 | 38324 |       X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
 | 38325 |  | 
 | 38326 | Options used to compile and link: | 
 | 38327 |   PREFIX          = $PREFIX_DIR | 
 | 38328 |   EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
 | 38329 |   VERSION         = $PACKAGE_VERSION | 
 | 38330 |   CC              = $CC | 
 | 38331 |   CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38332 |   CPPFLAGS        = $MAGICK_CPPFLAGS | 
 | 38333 |   PCFLAGS         = $MAGICK_PCFLAGS | 
 | 38334 |   DEFS            = $DEFS | 
 | 38335 |   LDFLAGS         = $LDFLAGS | 
 | 38336 |   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
 | 38337 |   LIBS            = $MAGICK_LIBS | 
 | 38338 |   CXX             = $CXX | 
 | 38339 |   CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38340 |   FEATURES        = $MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38341 | " >&5 | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38342 | $as_echo "$as_me: | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38343 | ImageMagick is configured as follows. Please verify that this configuration | 
 | 38344 | matches your expectations. | 
 | 38345 |  | 
 | 38346 | Host system type: $host | 
 | 38347 | Build system type: $build | 
 | 38348 |  | 
 | 38349 |                   Option                        Value | 
 | 38350 | ------------------------------------------------------------------------------- | 
 | 38351 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
 | 38352 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
 | 38353 | Module support    --with-modules=$with_modules		$with_modules | 
 | 38354 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
 | 38355 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
 | 38356 | High Dynamic Range Imagery | 
 | 38357 |                   --enable-hdri=$enable_hdri		$enable_hdri | 
 | 38358 |  | 
 | 38359 | Delegate Configuration: | 
 | 38360 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
 | 38361 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38362 | 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] | 38363 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
 | 38364 | DPS               --with-dps=$with_dps		$have_dps | 
 | 38365 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
 | 38366 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
 | 38367 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
 | 38368 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
 | 38369 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
 | 38370 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
 | 38371 | Ghostscript       None				$PSDelegate ($GSVersion) | 
 | 38372 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
 | 38373 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
 | 38374 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
 | 38375 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
 | 38376 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
 | 38377 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38378 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
 | 38379 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38380 | LQR               --with-lqr=$with_lqr		$have_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38381 | LZMA              --with-lzma=$with_lzma		$have_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38382 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
 | 38383 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38384 | PANGO             --with-pango=$with_pango		$have_pango | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38385 | PERL              --with-perl=$with_perl		$have_perl | 
 | 38386 | PNG               --with-png=$with_png		$have_png | 
 | 38387 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
 | 38388 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38389 | WEBP              --with-webp=$with_webp		$have_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38390 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
 | 38391 | WMF               --with-wmf=$with_wmf		$have_wmf | 
 | 38392 | X11               --with-x=$with_x			$have_x | 
 | 38393 | XML               --with-xml=$with_xml		$have_xml | 
 | 38394 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
 | 38395 |  | 
 | 38396 | X11 Configuration: | 
 | 38397 |       X_CFLAGS        = $X_CFLAGS | 
 | 38398 |       X_PRE_LIBS      = $X_PRE_LIBS | 
 | 38399 |       X_LIBS          = $X_LIBS | 
 | 38400 |       X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
 | 38401 |  | 
 | 38402 | Options used to compile and link: | 
 | 38403 |   PREFIX          = $PREFIX_DIR | 
 | 38404 |   EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
 | 38405 |   VERSION         = $PACKAGE_VERSION | 
 | 38406 |   CC              = $CC | 
 | 38407 |   CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38408 |   CPPFLAGS        = $MAGICK_CPPFLAGS | 
 | 38409 |   PCFLAGS         = $MAGICK_PCFLAGS | 
 | 38410 |   DEFS            = $DEFS | 
 | 38411 |   LDFLAGS         = $LDFLAGS | 
 | 38412 |   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
 | 38413 |   LIBS            = $MAGICK_LIBS | 
 | 38414 |   CXX             = $CXX | 
 | 38415 |   CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38416 |   FEATURES        = $MAGICK_FEATURES | 
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 38417 | " >&6;} |