blob: fd6f515aac6828a3d8a93480b45df25e0ad53401 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 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
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if 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 --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
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;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$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'
74fi
75
76# The user is always right.
77if 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 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
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.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
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.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# 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.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if 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
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test 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
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 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"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
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
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
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
220fi; }
221IFS=$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.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 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+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
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
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_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.
288as_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.
298as_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"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
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.
348if (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 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # 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.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# 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
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 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
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_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
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 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. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 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" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
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
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (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
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
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
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_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.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_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
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000869LEGACY_SUPPORT_FALSE
870LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000871MAINT
872MAINTAINER_MODE_FALSE
873MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874MAGICK_HDRI
875DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000876WITH_LTDL_FALSE
877WITH_LTDL_TRUE
878WITH_MODULES_FALSE
879WITH_MODULES_TRUE
880WITH_SHARED_LIBS_FALSE
881WITH_SHARED_LIBS_TRUE
882LTDLOPEN
883LT_CONFIG_H
884CONVENIENCE_LTDL_FALSE
885CONVENIENCE_LTDL_TRUE
886INSTALL_LTDL_FALSE
887INSTALL_LTDL_TRUE
888ARGZ_H
889sys_symbol_underscore
890LIBADD_DL
891LT_DLPREOPEN
892LIBADD_DLD_LINK
893LIBADD_SHL_LOAD
894LIBADD_DLOPEN
895LT_DLLOADERS
896INCLTDL
897LTDLINCL
898LTDLDEPS
899LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000900LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000901CXXCPP
902OTOOL64
903OTOOL
904LIPO
905NMEDIT
906DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000907MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000908RANLIB
cristyda16f162011-02-19 23:52:17 +0000909ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000910AR
911NM
912ac_ct_DUMPBIN
913DUMPBIN
914LIBTOOL
915OBJDUMP
916DLLTOOL
917AS
cristy3ed852e2009-09-05 21:47:34 +0000918LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000919CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000920CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000921OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922PTHREAD_CFLAGS
923PTHREAD_LIBS
924PTHREAD_CC
925ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000926SHAREARCH_DIR
927INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000928WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000929USING_CL_FALSE
930USING_CL_TRUE
931CYGWIN_BUILD_FALSE
932CYGWIN_BUILD_TRUE
933WIN32_NATIVE_BUILD_FALSE
934WIN32_NATIVE_BUILD_TRUE
935WINGDI32_DELEGATE_FALSE
936WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000937GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000938PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000939PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000940LN_S
cristy3ed852e2009-09-05 21:47:34 +0000941LD
cristy73bd4a52010-10-05 11:24:23 +0000942FGREP
943SED
944am__fastdepCXX_FALSE
945am__fastdepCXX_TRUE
946CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000947ac_ct_CXX
948CXXFLAGS
949CXX
cristya0b81c32010-01-22 02:54:33 +0000950EGREP
951GREP
952CPP
cristy73bd4a52010-10-05 11:24:23 +0000953am__fastdepCC_FALSE
954am__fastdepCC_TRUE
955CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000956am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000957AMDEPBACKSLASH
958AMDEP_FALSE
959AMDEP_TRUE
960am__quote
961am__include
962DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000963OBJEXT
964EXEEXT
965ac_ct_CC
966CPPFLAGS
967LDFLAGS
968CFLAGS
969CC
970DIRSEP
971MAGICK_FILTER_MODULE_PATH
972MAGICK_CONFIGURE_BUILD_PATH
973MAGICK_CONFIGURE_SRC_PATH
974MAGICK_CODER_MODULE_PATH
975MAN_DIR
976INFO_DIR
977PERSISTINCLUDE_DIR
978INCLUDE_DIR
979LIB_DIR
980LOCALSTATE_DIR
981SHAREDSTATE_DIR
982SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000983DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000984DATA_DIR
985LIBEXEC_DIR
986SBIN_DIR
987BIN_DIR
988EXEC_PREFIX_DIR
989PREFIX_DIR
990CONFIG_STATUS_DEPENDENCIES
991MAGICK_LIB_VERSION_NUMBER
992MAGICK_LIB_VERSION_TEXT
993MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000994AM_BACKSLASH
995AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000996AM_DEFAULT_V
997AM_V
cristy73bd4a52010-10-05 11:24:23 +0000998am__untar
999am__tar
1000AMTAR
1001am__leading_dot
1002SET_MAKE
1003AWK
1004mkdir_p
1005MKDIR_P
1006INSTALL_STRIP_PROGRAM
1007STRIP
1008install_sh
1009MAKEINFO
1010AUTOHEADER
1011AUTOMAKE
1012AUTOCONF
1013ACLOCAL
1014VERSION
1015PACKAGE
1016CYGPATH_W
1017am__isrc
1018INSTALL_DATA
1019INSTALL_SCRIPT
1020INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001021PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001022PACKAGE_RELEASE_DATE
1023PACKAGE_LIB_VERSION_NUMBER
1024PACKAGE_LIB_VERSION
1025PACKAGE_CHANGE_DATE
1026PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001027PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001028MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001029MAGICK_LIBRARY_VERSION_INFO
1030MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001031MAGICK_LIBRARY_AGE
1032MAGICK_LIBRARY_REVISION
1033MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001034MAGICK_TARGET_OS
1035MAGICK_TARGET_VENDOR
1036MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001037target_os
1038target_vendor
1039target_cpu
1040target
1041host_os
1042host_vendor
1043host_cpu
1044host
1045build_os
1046build_vendor
1047build_cpu
1048build
1049CONFIGURE_ARGS
1050DISTCHECK_CONFIG_FLAGS
1051target_alias
1052host_alias
1053build_alias
1054LIBS
1055ECHO_T
1056ECHO_N
1057ECHO_C
1058DEFS
1059mandir
1060localedir
1061libdir
1062psdir
1063pdfdir
1064dvidir
1065htmldir
1066infodir
1067docdir
1068oldincludedir
1069includedir
1070localstatedir
1071sharedstatedir
1072sysconfdir
1073datadir
1074datarootdir
1075libexecdir
1076sbindir
1077bindir
1078program_transform_name
1079prefix
1080exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001081PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001082PACKAGE_BUGREPORT
1083PACKAGE_STRING
1084PACKAGE_VERSION
1085PACKAGE_TARNAME
1086PACKAGE_NAME
1087PATH_SEPARATOR
1088SHELL'
1089ac_subst_files=''
1090ac_user_opts='
1091enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001092enable_silent_rules
1093enable_dependency_tracking
1094with_gnu_ld
1095with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001096with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001097enable_bounds_checking
1098enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001099with_includearch_dir
1100with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_threads
1102enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001103enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001104enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001105enable_shared
1106enable_static
1107with_pic
1108enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001109with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001110enable_libtool_lock
1111with_included_ltdl
1112with_ltdl_include
1113with_ltdl_lib
1114enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001115with_modules
1116enable_delegate_build
1117enable_deprecated
1118enable_installed
1119enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001120enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001121enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001122enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001123enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001124enable_ccmalloc
1125enable_efence
1126enable_prof
1127enable_gprof
1128enable_gcov
1129with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001130enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001131with_quantum_depth
1132with_cache
1133with_frozenpaths
1134with_magick_plus_plus
1135with_perl
1136with_perl_options
1137with_umem
1138with_libstdc
1139with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001140with_x
cristy3ed852e2009-09-05 21:47:34 +00001141with_zlib
1142with_autotrace
1143with_dps
1144with_djvu
cristy430a7312010-01-21 20:44:04 +00001145with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001146with_fftw
1147with_fpx
1148with_fontconfig
1149with_freetype
1150with_gslib
1151with_fontpath
1152with_gs_font_dir
1153with_gvc
1154with_jbig
1155with_jpeg
1156with_jp2
1157with_lcms
cristy71203402010-06-18 13:12:03 +00001158with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001159with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001160with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001161with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001162with_pango
cristy3ed852e2009-09-05 21:47:34 +00001163with_png
1164with_rsvg
1165with_tiff
cristyb1860752011-03-14 00:27:46 +00001166with_webp
cristy3ed852e2009-09-05 21:47:34 +00001167with_windows_font_dir
1168with_wmf
1169with_xml
1170'
1171 ac_precious_vars='build_alias
1172host_alias
1173target_alias
1174CC
1175CFLAGS
1176LDFLAGS
1177LIBS
1178CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001179CPP
cristy3ed852e2009-09-05 21:47:34 +00001180CXX
1181CXXFLAGS
1182CCC
cristy73bd4a52010-10-05 11:24:23 +00001183PKG_CONFIG
1184CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001185XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001186AUTOTRACE_CFLAGS
1187AUTOTRACE_LIBS
1188FONTCONFIG_CFLAGS
1189FONTCONFIG_LIBS
1190GVC_CFLAGS
1191GVC_LIBS
1192LQR_CFLAGS
1193LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001194LZMA_CFLAGS
1195LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001196OPENEXR_CFLAGS
1197OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001198PANGO_CFLAGS
1199PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001200RSVG_CFLAGS
1201RSVG_LIBS
1202CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001203CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001204
1205
1206# Initialize some variables set by options.
1207ac_init_help=
1208ac_init_version=false
1209ac_unrecognized_opts=
1210ac_unrecognized_sep=
1211# The variables have the same names as the options, with
1212# dashes changed to underlines.
1213cache_file=/dev/null
1214exec_prefix=NONE
1215no_create=
1216no_recursion=
1217prefix=NONE
1218program_prefix=NONE
1219program_suffix=NONE
1220program_transform_name=s,x,x,
1221silent=
1222site=
1223srcdir=
1224verbose=
1225x_includes=NONE
1226x_libraries=NONE
1227
1228# Installation directory options.
1229# These are left unexpanded so users can "make install exec_prefix=/foo"
1230# and all the variables that are supposed to be based on exec_prefix
1231# by default will actually change.
1232# Use braces instead of parens because sh, perl, etc. also accept them.
1233# (The list follows the same order as the GNU Coding Standards.)
1234bindir='${exec_prefix}/bin'
1235sbindir='${exec_prefix}/sbin'
1236libexecdir='${exec_prefix}/libexec'
1237datarootdir='${prefix}/share'
1238datadir='${datarootdir}'
1239sysconfdir='${prefix}/etc'
1240sharedstatedir='${prefix}/com'
1241localstatedir='${prefix}/var'
1242includedir='${prefix}/include'
1243oldincludedir='/usr/include'
1244docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1245infodir='${datarootdir}/info'
1246htmldir='${docdir}'
1247dvidir='${docdir}'
1248pdfdir='${docdir}'
1249psdir='${docdir}'
1250libdir='${exec_prefix}/lib'
1251localedir='${datarootdir}/locale'
1252mandir='${datarootdir}/man'
1253
1254ac_prev=
1255ac_dashdash=
1256for ac_option
1257do
1258 # If the previous option needs an argument, assign it.
1259 if test -n "$ac_prev"; then
1260 eval $ac_prev=\$ac_option
1261 ac_prev=
1262 continue
1263 fi
1264
1265 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001266 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1267 *=) ac_optarg= ;;
1268 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001269 esac
1270
1271 # Accept the important Cygnus configure options, so we can diagnose typos.
1272
1273 case $ac_dashdash$ac_option in
1274 --)
1275 ac_dashdash=yes ;;
1276
1277 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1278 ac_prev=bindir ;;
1279 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1280 bindir=$ac_optarg ;;
1281
1282 -build | --build | --buil | --bui | --bu)
1283 ac_prev=build_alias ;;
1284 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1285 build_alias=$ac_optarg ;;
1286
1287 -cache-file | --cache-file | --cache-fil | --cache-fi \
1288 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1289 ac_prev=cache_file ;;
1290 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1291 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1292 cache_file=$ac_optarg ;;
1293
1294 --config-cache | -C)
1295 cache_file=config.cache ;;
1296
1297 -datadir | --datadir | --datadi | --datad)
1298 ac_prev=datadir ;;
1299 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1300 datadir=$ac_optarg ;;
1301
1302 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1303 | --dataroo | --dataro | --datar)
1304 ac_prev=datarootdir ;;
1305 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1306 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1307 datarootdir=$ac_optarg ;;
1308
1309 -disable-* | --disable-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001313 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318"enable_$ac_useropt"
1319"*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval enable_$ac_useropt=no ;;
1324
1325 -docdir | --docdir | --docdi | --doc | --do)
1326 ac_prev=docdir ;;
1327 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1328 docdir=$ac_optarg ;;
1329
1330 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1331 ac_prev=dvidir ;;
1332 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1333 dvidir=$ac_optarg ;;
1334
1335 -enable-* | --enable-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001339 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344"enable_$ac_useropt"
1345"*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval enable_$ac_useropt=\$ac_optarg ;;
1350
1351 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1352 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1353 | --exec | --exe | --ex)
1354 ac_prev=exec_prefix ;;
1355 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1356 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1357 | --exec=* | --exe=* | --ex=*)
1358 exec_prefix=$ac_optarg ;;
1359
1360 -gas | --gas | --ga | --g)
1361 # Obsolete; use --with-gas.
1362 with_gas=yes ;;
1363
1364 -help | --help | --hel | --he | -h)
1365 ac_init_help=long ;;
1366 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1367 ac_init_help=recursive ;;
1368 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1369 ac_init_help=short ;;
1370
1371 -host | --host | --hos | --ho)
1372 ac_prev=host_alias ;;
1373 -host=* | --host=* | --hos=* | --ho=*)
1374 host_alias=$ac_optarg ;;
1375
1376 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1377 ac_prev=htmldir ;;
1378 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1379 | --ht=*)
1380 htmldir=$ac_optarg ;;
1381
1382 -includedir | --includedir | --includedi | --included | --include \
1383 | --includ | --inclu | --incl | --inc)
1384 ac_prev=includedir ;;
1385 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1386 | --includ=* | --inclu=* | --incl=* | --inc=*)
1387 includedir=$ac_optarg ;;
1388
1389 -infodir | --infodir | --infodi | --infod | --info | --inf)
1390 ac_prev=infodir ;;
1391 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1392 infodir=$ac_optarg ;;
1393
1394 -libdir | --libdir | --libdi | --libd)
1395 ac_prev=libdir ;;
1396 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1397 libdir=$ac_optarg ;;
1398
1399 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1400 | --libexe | --libex | --libe)
1401 ac_prev=libexecdir ;;
1402 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1403 | --libexe=* | --libex=* | --libe=*)
1404 libexecdir=$ac_optarg ;;
1405
1406 -localedir | --localedir | --localedi | --localed | --locale)
1407 ac_prev=localedir ;;
1408 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1409 localedir=$ac_optarg ;;
1410
1411 -localstatedir | --localstatedir | --localstatedi | --localstated \
1412 | --localstate | --localstat | --localsta | --localst | --locals)
1413 ac_prev=localstatedir ;;
1414 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1415 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1416 localstatedir=$ac_optarg ;;
1417
1418 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1419 ac_prev=mandir ;;
1420 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1421 mandir=$ac_optarg ;;
1422
1423 -nfp | --nfp | --nf)
1424 # Obsolete; use --without-fp.
1425 with_fp=no ;;
1426
1427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1428 | --no-cr | --no-c | -n)
1429 no_create=yes ;;
1430
1431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1433 no_recursion=yes ;;
1434
1435 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1436 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1437 | --oldin | --oldi | --old | --ol | --o)
1438 ac_prev=oldincludedir ;;
1439 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1440 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1441 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1442 oldincludedir=$ac_optarg ;;
1443
1444 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1445 ac_prev=prefix ;;
1446 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1447 prefix=$ac_optarg ;;
1448
1449 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1450 | --program-pre | --program-pr | --program-p)
1451 ac_prev=program_prefix ;;
1452 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1453 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1454 program_prefix=$ac_optarg ;;
1455
1456 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1457 | --program-suf | --program-su | --program-s)
1458 ac_prev=program_suffix ;;
1459 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1460 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1461 program_suffix=$ac_optarg ;;
1462
1463 -program-transform-name | --program-transform-name \
1464 | --program-transform-nam | --program-transform-na \
1465 | --program-transform-n | --program-transform- \
1466 | --program-transform | --program-transfor \
1467 | --program-transfo | --program-transf \
1468 | --program-trans | --program-tran \
1469 | --progr-tra | --program-tr | --program-t)
1470 ac_prev=program_transform_name ;;
1471 -program-transform-name=* | --program-transform-name=* \
1472 | --program-transform-nam=* | --program-transform-na=* \
1473 | --program-transform-n=* | --program-transform-=* \
1474 | --program-transform=* | --program-transfor=* \
1475 | --program-transfo=* | --program-transf=* \
1476 | --program-trans=* | --program-tran=* \
1477 | --progr-tra=* | --program-tr=* | --program-t=*)
1478 program_transform_name=$ac_optarg ;;
1479
1480 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1481 ac_prev=pdfdir ;;
1482 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1483 pdfdir=$ac_optarg ;;
1484
1485 -psdir | --psdir | --psdi | --psd | --ps)
1486 ac_prev=psdir ;;
1487 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1488 psdir=$ac_optarg ;;
1489
1490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1491 | -silent | --silent | --silen | --sile | --sil)
1492 silent=yes ;;
1493
1494 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1495 ac_prev=sbindir ;;
1496 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1497 | --sbi=* | --sb=*)
1498 sbindir=$ac_optarg ;;
1499
1500 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1501 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1502 | --sharedst | --shareds | --shared | --share | --shar \
1503 | --sha | --sh)
1504 ac_prev=sharedstatedir ;;
1505 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1506 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1507 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1508 | --sha=* | --sh=*)
1509 sharedstatedir=$ac_optarg ;;
1510
1511 -site | --site | --sit)
1512 ac_prev=site ;;
1513 -site=* | --site=* | --sit=*)
1514 site=$ac_optarg ;;
1515
1516 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1517 ac_prev=srcdir ;;
1518 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1519 srcdir=$ac_optarg ;;
1520
1521 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1522 | --syscon | --sysco | --sysc | --sys | --sy)
1523 ac_prev=sysconfdir ;;
1524 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1525 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1526 sysconfdir=$ac_optarg ;;
1527
1528 -target | --target | --targe | --targ | --tar | --ta | --t)
1529 ac_prev=target_alias ;;
1530 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1531 target_alias=$ac_optarg ;;
1532
1533 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1534 verbose=yes ;;
1535
1536 -version | --version | --versio | --versi | --vers | -V)
1537 ac_init_version=: ;;
1538
1539 -with-* | --with-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001543 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1547 *"
1548"with_$ac_useropt"
1549"*) ;;
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1552 esac
1553 eval with_$ac_useropt=\$ac_optarg ;;
1554
1555 -without-* | --without-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001559 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1563 *"
1564"with_$ac_useropt"
1565"*) ;;
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1568 esac
1569 eval with_$ac_useropt=no ;;
1570
1571 --x)
1572 # Obsolete; use --with-x.
1573 with_x=yes ;;
1574
1575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1576 | --x-incl | --x-inc | --x-in | --x-i)
1577 ac_prev=x_includes ;;
1578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1580 x_includes=$ac_optarg ;;
1581
1582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1584 ac_prev=x_libraries ;;
1585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1587 x_libraries=$ac_optarg ;;
1588
cristy98dddb52010-11-04 00:30:15 +00001589 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1590Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001591 ;;
1592
1593 *=*)
1594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1595 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001596 case $ac_envvar in #(
1597 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001598 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001599 esac
cristy3ed852e2009-09-05 21:47:34 +00001600 eval $ac_envvar=\$ac_optarg
1601 export $ac_envvar ;;
1602
1603 *)
1604 # FIXME: should be removed in autoconf 3.0.
1605 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1607 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001608 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001609 ;;
1610
1611 esac
1612done
1613
1614if test -n "$ac_prev"; then
1615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001616 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001617fi
1618
1619if test -n "$ac_unrecognized_opts"; then
1620 case $enable_option_checking in
1621 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001622 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001623 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1624 esac
1625fi
1626
1627# Check all directory arguments for consistency.
1628for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1629 datadir sysconfdir sharedstatedir localstatedir includedir \
1630 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1631 libdir localedir mandir
1632do
1633 eval ac_val=\$$ac_var
1634 # Remove trailing slashes.
1635 case $ac_val in
1636 */ )
1637 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1638 eval $ac_var=\$ac_val;;
1639 esac
1640 # Be sure to have absolute directory names.
1641 case $ac_val in
1642 [\\/$]* | ?:[\\/]* ) continue;;
1643 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1644 esac
cristy98dddb52010-11-04 00:30:15 +00001645 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001646done
1647
1648# There might be people who depend on the old broken behavior: `$host'
1649# used to hold the argument of --host etc.
1650# FIXME: To remove some day.
1651build=$build_alias
1652host=$host_alias
1653target=$target_alias
1654
1655# FIXME: To remove some day.
1656if test "x$host_alias" != x; then
1657 if test "x$build_alias" = x; then
1658 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001659 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1660 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001661 elif test "x$build_alias" != "x$host_alias"; then
1662 cross_compiling=yes
1663 fi
1664fi
1665
1666ac_tool_prefix=
1667test -n "$host_alias" && ac_tool_prefix=$host_alias-
1668
1669test "$silent" = yes && exec 6>/dev/null
1670
1671
1672ac_pwd=`pwd` && test -n "$ac_pwd" &&
1673ac_ls_di=`ls -di .` &&
1674ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001675 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001676test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001678
1679
1680# Find the source files, if location was not specified.
1681if test -z "$srcdir"; then
1682 ac_srcdir_defaulted=yes
1683 # Try the directory containing this script, then the parent directory.
1684 ac_confdir=`$as_dirname -- "$as_myself" ||
1685$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1686 X"$as_myself" : 'X\(//\)[^/]' \| \
1687 X"$as_myself" : 'X\(//\)$' \| \
1688 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1689$as_echo X"$as_myself" |
1690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1691 s//\1/
1692 q
1693 }
1694 /^X\(\/\/\)[^/].*/{
1695 s//\1/
1696 q
1697 }
1698 /^X\(\/\/\)$/{
1699 s//\1/
1700 q
1701 }
1702 /^X\(\/\).*/{
1703 s//\1/
1704 q
1705 }
1706 s/.*/./; q'`
1707 srcdir=$ac_confdir
1708 if test ! -r "$srcdir/$ac_unique_file"; then
1709 srcdir=..
1710 fi
1711else
1712 ac_srcdir_defaulted=no
1713fi
1714if test ! -r "$srcdir/$ac_unique_file"; then
1715 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001717fi
1718ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1719ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001720 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001721 pwd)`
1722# When building in place, set srcdir=.
1723if test "$ac_abs_confdir" = "$ac_pwd"; then
1724 srcdir=.
1725fi
1726# Remove unnecessary trailing slashes from srcdir.
1727# Double slashes in file names in object file debugging info
1728# mess up M-x gdb in Emacs.
1729case $srcdir in
1730*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1731esac
1732for ac_var in $ac_precious_vars; do
1733 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1734 eval ac_env_${ac_var}_value=\$${ac_var}
1735 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1736 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1737done
1738
1739#
1740# Report the --help message.
1741#
1742if test "$ac_init_help" = "long"; then
1743 # Omit some internal or obsolete options to make the list less imposing.
1744 # This message is too long to be a string in the A/UX 3.1 sh.
1745 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001746\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001747
1748Usage: $0 [OPTION]... [VAR=VALUE]...
1749
1750To assign environment variables (e.g., CC, CFLAGS...), specify them as
1751VAR=VALUE. See below for descriptions of some of the useful variables.
1752
1753Defaults for the options are specified in brackets.
1754
1755Configuration:
1756 -h, --help display this help and exit
1757 --help=short display options specific to this package
1758 --help=recursive display the short help of all the included packages
1759 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001760 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001761 --cache-file=FILE cache test results in FILE [disabled]
1762 -C, --config-cache alias for \`--cache-file=config.cache'
1763 -n, --no-create do not create output files
1764 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1765
1766Installation directories:
1767 --prefix=PREFIX install architecture-independent files in PREFIX
1768 [$ac_default_prefix]
1769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1770 [PREFIX]
1771
1772By default, \`make install' will install all the files in
1773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1774an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1775for instance \`--prefix=\$HOME'.
1776
1777For better control, use the options below.
1778
1779Fine tuning of the installation directories:
1780 --bindir=DIR user executables [EPREFIX/bin]
1781 --sbindir=DIR system admin executables [EPREFIX/sbin]
1782 --libexecdir=DIR program executables [EPREFIX/libexec]
1783 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1784 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1785 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1786 --libdir=DIR object code libraries [EPREFIX/lib]
1787 --includedir=DIR C header files [PREFIX/include]
1788 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1789 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1790 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1791 --infodir=DIR info documentation [DATAROOTDIR/info]
1792 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1793 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001794 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001795 --htmldir=DIR html documentation [DOCDIR]
1796 --dvidir=DIR dvi documentation [DOCDIR]
1797 --pdfdir=DIR pdf documentation [DOCDIR]
1798 --psdir=DIR ps documentation [DOCDIR]
1799_ACEOF
1800
1801 cat <<\_ACEOF
1802
cristy73bd4a52010-10-05 11:24:23 +00001803Program names:
1804 --program-prefix=PREFIX prepend PREFIX to installed program names
1805 --program-suffix=SUFFIX append SUFFIX to installed program names
1806 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1807
cristy3ed852e2009-09-05 21:47:34 +00001808X features:
1809 --x-includes=DIR X include files are in DIR
1810 --x-libraries=DIR X library files are in DIR
1811
1812System types:
1813 --build=BUILD configure for building on BUILD [guessed]
1814 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1815 --target=TARGET configure for building compilers for TARGET [HOST]
1816_ACEOF
1817fi
1818
1819if test -n "$ac_init_help"; then
1820 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001821 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001822 esac
1823 cat <<\_ACEOF
1824
1825Optional Features:
1826 --disable-option-checking ignore unrecognized --enable/--with options
1827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-silent-rules less verbose build output (undo: `make V=1')
1830 --disable-silent-rules verbose build output (undo: `make V=0')
1831 --disable-dependency-tracking speeds up one-time build
1832 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001833 --bounds-checking enable run-time bounds-checking
1834 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001835 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001836 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001837 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001838 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001839 --enable-shared[=PKGS] build shared libraries [default=yes]
1840 --enable-static[=PKGS] build static libraries [default=yes]
1841 --enable-fast-install[=PKGS]
1842 optimize for fast installation [default=yes]
1843 --disable-libtool-lock avoid locking (might break parallel builds)
1844 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001845 --enable-delegate-build look for delegate libraries in build directory
1846 --disable-deprecated exclude deprecated methods in MagickCore and
1847 MagickWand API's
1848 --disable-installed Formally install ImageMagick under PREFIX
1849 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001850 --enable-zero-configuration
1851 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001852 zero-configuration ImageMagick
1853 --enable-hdri accurately represent the wide range of intensity
1854 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001855 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001856 --enable-maintainer-mode enable make rules and dependencies not useful
1857 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001858 --enable-ccmalloc enable 'ccmalloc' memory debug support
1859 --enable-efence enable 'efence' memory debug support
1860 --enable-prof enable 'prof' profiling support
1861 --enable-gprof enable 'gprof' profiling support
1862 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001863 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001864 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001865
1866Optional Packages:
1867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001869 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001870 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001871 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1872 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001873 --includearch-dir=DIR ARCH specific include directory
1874 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001875 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001876 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001877 both]
cristyda16f162011-02-19 23:52:17 +00001878 --with-sysroot=DIR Search for dependent libraries within DIR
1879 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001880 --with-included-ltdl use the GNU ltdl sources included here
1881 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1882 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001883 --with-modules enable building dynamically loadable modules
1884 --with-method-prefix=PREFIX
1885 prefix MagickCore API methods
1886 --with-quantum-depth=DEPTH
1887 number of bits in a pixel quantum (default 16)
1888 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1889 memory)
1890 --with-frozenpaths freeze delegate paths
1891 --without-magick-plus-plus
1892 disable build/install of Magick++
1893 --with-perl enable build/install of PerlMagick
1894 --with-perl-options=OPTIONS
1895 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001896 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001897 --with-umem enable umem memory allocation library support
1898 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1899 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001900 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001901 --without-zlib disable ZLIB support
1902 --with-autotrace enable autotrace support
1903 --without-dps disable Display Postscript support
1904 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001905 --with-dejavu-font-dir=DIR
1906 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-fftw disable FFTW support
1908 --without-fpx disable FlashPIX support
1909 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001910 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-gslib enable Ghostscript library support
1912 --with-fontpath=DIR prepend to default font search path
1913 --with-gs-font-dir=DIR Ghostscript font directory
1914 --without-gvc disable GVC support
1915 --without-jbig disable JBIG support
1916 --without-jpeg disable JPEG support
1917 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001918 --without-lcms disable lcms (v1.1X) support
1919 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001920 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001921 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001922 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001923 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-png disable PNG support
1925 --without-rsvg disable RSVG support
1926 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001927 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-windows-font-dir=DIR
1929 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001930 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-xml disable XML support
1932
1933Some influential environment variables:
1934 CC C compiler command
1935 CFLAGS C compiler flags
1936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1937 nonstandard directory <lib dir>
1938 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001939 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001940 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001941 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001942 CXX C++ compiler command
1943 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001944 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001945 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001946 XMKMF Path to xmkmf, Makefile generator for X Window System
1947 AUTOTRACE_CFLAGS
1948 C compiler flags for AUTOTRACE, overriding pkg-config
1949 AUTOTRACE_LIBS
1950 linker flags for AUTOTRACE, overriding pkg-config
1951 FONTCONFIG_CFLAGS
1952 C compiler flags for FONTCONFIG, overriding pkg-config
1953 FONTCONFIG_LIBS
1954 linker flags for FONTCONFIG, overriding pkg-config
1955 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1956 GVC_LIBS linker flags for GVC, overriding pkg-config
1957 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1958 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001959 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1960 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001961 OPENEXR_CFLAGS
1962 C compiler flags for OPENEXR, overriding pkg-config
1963 OPENEXR_LIBS
1964 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001965 PANGO_CFLAGS
1966 C compiler flags for PANGO, overriding pkg-config
1967 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001968 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1969 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1970 CAIRO_SVG_CFLAGS
1971 C compiler flags for CAIRO_SVG, overriding pkg-config
1972 CAIRO_SVG_LIBS
1973 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001974
1975Use these variables to override the choices made by `configure' or to help
1976it to find libraries and programs with nonstandard names/locations.
1977
1978Report bugs to <http://www.imagemagick.org>.
1979_ACEOF
1980ac_status=$?
1981fi
1982
1983if test "$ac_init_help" = "recursive"; then
1984 # If there are subdirs, report their specific --help.
1985 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1986 test -d "$ac_dir" ||
1987 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1988 continue
1989 ac_builddir=.
1990
1991case "$ac_dir" in
1992.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1993*)
1994 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1995 # A ".." for each directory in $ac_dir_suffix.
1996 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1997 case $ac_top_builddir_sub in
1998 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1999 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2000 esac ;;
2001esac
2002ac_abs_top_builddir=$ac_pwd
2003ac_abs_builddir=$ac_pwd$ac_dir_suffix
2004# for backward compatibility:
2005ac_top_builddir=$ac_top_build_prefix
2006
2007case $srcdir in
2008 .) # We are building in place.
2009 ac_srcdir=.
2010 ac_top_srcdir=$ac_top_builddir_sub
2011 ac_abs_top_srcdir=$ac_pwd ;;
2012 [\\/]* | ?:[\\/]* ) # Absolute name.
2013 ac_srcdir=$srcdir$ac_dir_suffix;
2014 ac_top_srcdir=$srcdir
2015 ac_abs_top_srcdir=$srcdir ;;
2016 *) # Relative name.
2017 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2018 ac_top_srcdir=$ac_top_build_prefix$srcdir
2019 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2020esac
2021ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2022
2023 cd "$ac_dir" || { ac_status=$?; continue; }
2024 # Check for guested configure.
2025 if test -f "$ac_srcdir/configure.gnu"; then
2026 echo &&
2027 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2028 elif test -f "$ac_srcdir/configure"; then
2029 echo &&
2030 $SHELL "$ac_srcdir/configure" --help=recursive
2031 else
2032 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2033 fi || ac_status=$?
2034 cd "$ac_pwd" || { ac_status=$?; break; }
2035 done
2036fi
2037
2038test -n "$ac_init_help" && exit $ac_status
2039if $ac_init_version; then
2040 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002041ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002042generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002043
cristy98dddb52010-11-04 00:30:15 +00002044Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002045This configure script is free software; the Free Software Foundation
2046gives unlimited permission to copy, distribute and modify it.
2047_ACEOF
2048 exit
2049fi
cristy8b350f62009-11-15 23:12:43 +00002050
2051## ------------------------ ##
2052## Autoconf initialization. ##
2053## ------------------------ ##
2054
2055# ac_fn_c_try_compile LINENO
2056# --------------------------
2057# Try to compile conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_c_try_compile ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext
2062 if { { ac_try="$ac_compile"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_compile") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest.$ac_objext; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
cristyda16f162011-02-19 23:52:17 +00002088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002089 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002090
2091} # ac_fn_c_try_compile
2092
cristy95646052009-11-28 23:05:30 +00002093# ac_fn_c_try_cpp LINENO
2094# ----------------------
2095# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2096ac_fn_c_try_cpp ()
2097{
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if { { ac_try="$ac_cpp conftest.$ac_ext"
2100case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103esac
2104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105$as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2112 fi
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002114 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 }; then :
2118 ac_retval=0
2119else
2120 $as_echo "$as_me: failed program was:" >&5
2121sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 ac_retval=1
2124fi
cristyda16f162011-02-19 23:52:17 +00002125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002126 as_fn_set_status $ac_retval
2127
2128} # ac_fn_c_try_cpp
2129
cristy8b350f62009-11-15 23:12:43 +00002130# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2131# -------------------------------------------------------
2132# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2133# the include files in INCLUDES and setting the cache variable VAR
2134# accordingly.
2135ac_fn_c_check_header_mongrel ()
2136{
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002138 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002141if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002142 $as_echo_n "(cached) " >&6
2143fi
2144eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147else
2148 # Is the header compilable?
2149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2150$as_echo_n "checking $2 usability... " >&6; }
2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h. */
2153$4
2154#include <$2>
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_header_compiler=yes
2158else
2159 ac_header_compiler=no
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2163$as_echo "$ac_header_compiler" >&6; }
2164
2165# Is the header present?
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2167$as_echo_n "checking $2 presence... " >&6; }
2168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169/* end confdefs.h. */
2170#include <$2>
2171_ACEOF
2172if ac_fn_c_try_cpp "$LINENO"; then :
2173 ac_header_preproc=yes
2174else
2175 ac_header_preproc=no
2176fi
cristyda16f162011-02-19 23:52:17 +00002177rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2179$as_echo "$ac_header_preproc" >&6; }
2180
2181# So? What about this header?
2182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2183 yes:no: )
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2185$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2187$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2188 ;;
2189 no:yes:* )
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2191$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2193$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2195$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2197$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002200( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002201## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002202## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002203 ) | sed "s/^/$as_me: WARNING: /" >&2
2204 ;;
2205esac
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002208if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002209 $as_echo_n "(cached) " >&6
2210else
2211 eval "$3=\$ac_header_compiler"
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216fi
cristyda16f162011-02-19 23:52:17 +00002217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002218
2219} # ac_fn_c_check_header_mongrel
2220
2221# ac_fn_c_try_run LINENO
2222# ----------------------
2223# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2224# that executables *can* be run.
2225ac_fn_c_try_run ()
2226{
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_link"
2229case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2239 { { case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242esac
2243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244$as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_try") 2>&5
2246 ac_status=$?
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; }; }; then :
2249 ac_retval=0
2250else
2251 $as_echo "$as_me: program exited with status $ac_status" >&5
2252 $as_echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=$ac_status
2256fi
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002259 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002260
2261} # ac_fn_c_try_run
2262
2263# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2264# -------------------------------------------------------
2265# Tests whether HEADER exists and can be compiled using the include files in
2266# INCLUDES, setting the cache variable VAR accordingly.
2267ac_fn_c_check_header_compile ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002272if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002273 $as_echo_n "(cached) " >&6
2274else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277$4
2278#include <$2>
2279_ACEOF
2280if ac_fn_c_try_compile "$LINENO"; then :
2281 eval "$3=yes"
2282else
2283 eval "$3=no"
2284fi
2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286fi
2287eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002291
2292} # ac_fn_c_check_header_compile
2293
cristya0b81c32010-01-22 02:54:33 +00002294# ac_fn_cxx_try_compile LINENO
2295# ----------------------------
2296# Try to compile conftest.$ac_ext, and return whether this succeeded.
2297ac_fn_cxx_try_compile ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext
2301 if { { ac_try="$ac_compile"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_compile") 2>conftest.err
2309 ac_status=$?
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2314 fi
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_cxx_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest.$ac_objext; then :
2320 ac_retval=0
2321else
2322 $as_echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_retval=1
2326fi
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002328 as_fn_set_status $ac_retval
2329
2330} # ac_fn_cxx_try_compile
2331
cristy8b350f62009-11-15 23:12:43 +00002332# ac_fn_c_try_link LINENO
2333# -----------------------
2334# Try to link conftest.$ac_ext, and return whether this succeeded.
2335ac_fn_c_try_link ()
2336{
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 rm -f conftest.$ac_objext conftest$ac_exeext
2339 if { { ac_try="$ac_link"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
2344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345$as_echo "$ac_try_echo"; } >&5
2346 (eval "$ac_link") 2>conftest.err
2347 ac_status=$?
2348 if test -s conftest.err; then
2349 grep -v '^ *+' conftest.err >conftest.er1
2350 cat conftest.er1 >&5
2351 mv -f conftest.er1 conftest.err
2352 fi
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; } && {
2355 test -z "$ac_c_werror_flag" ||
2356 test ! -s conftest.err
2357 } && test -s conftest$ac_exeext && {
2358 test "$cross_compiling" = yes ||
2359 $as_test_x conftest$ac_exeext
2360 }; then :
2361 ac_retval=0
2362else
2363 $as_echo "$as_me: failed program was:" >&5
2364sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 ac_retval=1
2367fi
2368 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2369 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2370 # interfere with the next link command; also delete a directory that is
2371 # left behind by Apple's compiler. We do this before executing the actions.
2372 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002374 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002375
2376} # ac_fn_c_try_link
2377
cristy73bd4a52010-10-05 11:24:23 +00002378# ac_fn_c_check_func LINENO FUNC VAR
2379# ----------------------------------
2380# Tests whether FUNC exists, setting the cache variable VAR accordingly
2381ac_fn_c_check_func ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002386if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002387 $as_echo_n "(cached) " >&6
2388else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2393#define $2 innocuous_$2
2394
2395/* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char $2 (); below.
2397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2398 <limits.h> exists even on freestanding compilers. */
2399
2400#ifdef __STDC__
2401# include <limits.h>
2402#else
2403# include <assert.h>
2404#endif
2405
2406#undef $2
2407
2408/* Override any GCC internal prototype to avoid an error.
2409 Use char because int might match the return type of a GCC
2410 builtin and then its argument prototype would still apply. */
2411#ifdef __cplusplus
2412extern "C"
2413#endif
2414char $2 ();
2415/* The GNU C library defines this for functions which it implements
2416 to always fail with ENOSYS. Some functions are actually named
2417 something starting with __ and the normal name is an alias. */
2418#if defined __stub_$2 || defined __stub___$2
2419choke me
2420#endif
2421
2422int
2423main ()
2424{
2425return $2 ();
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430if ac_fn_c_try_link "$LINENO"; then :
2431 eval "$3=yes"
2432else
2433 eval "$3=no"
2434fi
2435rm -f core conftest.err conftest.$ac_objext \
2436 conftest$ac_exeext conftest.$ac_ext
2437fi
2438eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002442
2443} # ac_fn_c_check_func
2444
2445# ac_fn_cxx_try_cpp LINENO
2446# ------------------------
2447# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2448ac_fn_cxx_try_cpp ()
2449{
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 if { { ac_try="$ac_cpp conftest.$ac_ext"
2452case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457$as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2464 fi
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002466 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002467 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 }; then :
2470 ac_retval=0
2471else
2472 $as_echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_retval=1
2476fi
cristyda16f162011-02-19 23:52:17 +00002477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002478 as_fn_set_status $ac_retval
2479
2480} # ac_fn_cxx_try_cpp
2481
2482# ac_fn_cxx_try_link LINENO
2483# -------------------------
2484# Try to link conftest.$ac_ext, and return whether this succeeded.
2485ac_fn_cxx_try_link ()
2486{
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 rm -f conftest.$ac_objext conftest$ac_exeext
2489 if { { ac_try="$ac_link"
2490case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493esac
2494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495$as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_link") 2>conftest.err
2497 ac_status=$?
2498 if test -s conftest.err; then
2499 grep -v '^ *+' conftest.err >conftest.er1
2500 cat conftest.er1 >&5
2501 mv -f conftest.er1 conftest.err
2502 fi
2503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504 test $ac_status = 0; } && {
2505 test -z "$ac_cxx_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest$ac_exeext && {
2508 test "$cross_compiling" = yes ||
2509 $as_test_x conftest$ac_exeext
2510 }; then :
2511 ac_retval=0
2512else
2513 $as_echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 ac_retval=1
2517fi
2518 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2519 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2520 # interfere with the next link command; also delete a directory that is
2521 # left behind by Apple's compiler. We do this before executing the actions.
2522 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002524 as_fn_set_status $ac_retval
2525
2526} # ac_fn_cxx_try_link
2527
cristy98dddb52010-11-04 00:30:15 +00002528# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2529# ---------------------------------------------
2530# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2531# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002532ac_fn_c_check_decl ()
2533{
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002535 as_decl_name=`echo $2|sed 's/ *(.*//'`
2536 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2538$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543/* end confdefs.h. */
2544$4
2545int
2546main ()
2547{
cristy98dddb52010-11-04 00:30:15 +00002548#ifndef $as_decl_name
2549#ifdef __cplusplus
2550 (void) $as_decl_use;
2551#else
2552 (void) $as_decl_name;
2553#endif
cristy73bd4a52010-10-05 11:24:23 +00002554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560if ac_fn_c_try_compile "$LINENO"; then :
2561 eval "$3=yes"
2562else
2563 eval "$3=no"
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566fi
2567eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002571
2572} # ac_fn_c_check_decl
2573
cristy8b350f62009-11-15 23:12:43 +00002574# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2575# -------------------------------------------
2576# Tests whether TYPE exists after having included INCLUDES, setting cache
2577# variable VAR accordingly.
2578ac_fn_c_check_type ()
2579{
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002583if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002584 $as_echo_n "(cached) " >&6
2585else
2586 eval "$3=no"
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588/* end confdefs.h. */
2589$4
2590int
2591main ()
2592{
2593if (sizeof ($2))
2594 return 0;
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599if ac_fn_c_try_compile "$LINENO"; then :
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601/* end confdefs.h. */
2602$4
2603int
2604main ()
2605{
2606if (sizeof (($2)))
2607 return 0;
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613
2614else
2615 eval "$3=yes"
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620fi
2621eval ac_res=\$$3
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002625
2626} # ac_fn_c_check_type
2627
cristy92703d82010-04-26 00:18:18 +00002628# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2629# ----------------------------------------------------
2630# Tries to find if the field MEMBER exists in type AGGR, after including
2631# INCLUDES, setting cache variable VAR accordingly.
2632ac_fn_c_check_member ()
2633{
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2636$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002637if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002638 $as_echo_n "(cached) " >&6
2639else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641/* end confdefs.h. */
2642$5
2643int
2644main ()
2645{
2646static $2 ac_aggr;
2647if (ac_aggr.$3)
2648return 0;
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653if ac_fn_c_try_compile "$LINENO"; then :
2654 eval "$4=yes"
2655else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657/* end confdefs.h. */
2658$5
2659int
2660main ()
2661{
2662static $2 ac_aggr;
2663if (sizeof ac_aggr.$3)
2664return 0;
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669if ac_fn_c_try_compile "$LINENO"; then :
2670 eval "$4=yes"
2671else
2672 eval "$4=no"
2673fi
2674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675fi
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677fi
2678eval ac_res=\$$4
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002682
2683} # ac_fn_c_check_member
2684
cristy501c8042011-05-26 17:46:28 +00002685# ac_fn_c_find_intX_t LINENO BITS VAR
2686# -----------------------------------
2687# Finds a signed integer type with width BITS, setting cache variable VAR
2688# accordingly.
2689ac_fn_c_find_intX_t ()
2690{
2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2693$as_echo_n "checking for int$2_t... " >&6; }
2694if eval \${$3+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696else
2697 eval "$3=no"
2698 # Order is important - never check a type that is potentially smaller
2699 # than half of the expected target width.
2700 for ac_type in int$2_t 'int' 'long int' \
2701 'long long int' 'short int' 'signed char'; do
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703/* end confdefs.h. */
2704$ac_includes_default
2705 enum { N = $2 / 2 - 1 };
2706int
2707main ()
2708{
2709static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2710test_array [0] = 0
2711
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h. */
2719$ac_includes_default
2720 enum { N = $2 / 2 - 1 };
2721int
2722main ()
2723{
2724static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2725 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733
2734else
2735 case $ac_type in #(
2736 int$2_t) :
2737 eval "$3=yes" ;; #(
2738 *) :
2739 eval "$3=\$ac_type" ;;
2740esac
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 if eval test \"x\$"$3"\" = x"no"; then :
2746
2747else
2748 break
2749fi
2750 done
2751fi
2752eval ac_res=\$$3
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754$as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2756
2757} # ac_fn_c_find_intX_t
2758
2759# ac_fn_c_find_uintX_t LINENO BITS VAR
2760# ------------------------------------
2761# Finds an unsigned integer type with width BITS, setting cache variable VAR
2762# accordingly.
2763ac_fn_c_find_uintX_t ()
2764{
2765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2767$as_echo_n "checking for uint$2_t... " >&6; }
2768if eval \${$3+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 eval "$3=no"
2772 # Order is important - never check a type that is potentially smaller
2773 # than half of the expected target width.
2774 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2775 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h. */
2778$ac_includes_default
2779int
2780main ()
2781{
2782static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2783test_array [0] = 0
2784
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789if ac_fn_c_try_compile "$LINENO"; then :
2790 case $ac_type in #(
2791 uint$2_t) :
2792 eval "$3=yes" ;; #(
2793 *) :
2794 eval "$3=\$ac_type" ;;
2795esac
2796fi
2797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 if eval test \"x\$"$3"\" = x"no"; then :
2799
2800else
2801 break
2802fi
2803 done
2804fi
2805eval ac_res=\$$3
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2807$as_echo "$ac_res" >&6; }
2808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2809
2810} # ac_fn_c_find_uintX_t
2811
cristy8b350f62009-11-15 23:12:43 +00002812# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2813# --------------------------------------------
2814# Tries to find the compile-time value of EXPR in a program that includes
2815# INCLUDES, setting VAR accordingly. Returns whether the value could be
2816# computed
2817ac_fn_c_compute_int ()
2818{
2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2820 if test "$cross_compiling" = yes; then
2821 # Depending upon the size, compute the lo and hi bounds.
2822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823/* end confdefs.h. */
2824$4
2825int
2826main ()
2827{
2828static int test_array [1 - 2 * !(($2) >= 0)];
2829test_array [0] = 0
2830
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_lo=0 ac_mid=0
2837 while :; do
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$4
2841int
2842main ()
2843{
2844static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2845test_array [0] = 0
2846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 ac_hi=$ac_mid; break
2853else
2854 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2855 if test $ac_lo -le $ac_mid; then
2856 ac_lo= ac_hi=
2857 break
2858 fi
2859 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 done
2863else
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h. */
2866$4
2867int
2868main ()
2869{
2870static int test_array [1 - 2 * !(($2) < 0)];
2871test_array [0] = 0
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878 ac_hi=-1 ac_mid=-1
2879 while :; do
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h. */
2882$4
2883int
2884main ()
2885{
2886static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2887test_array [0] = 0
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_lo=$ac_mid; break
2895else
2896 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2897 if test $ac_mid -le $ac_hi; then
2898 ac_lo= ac_hi=
2899 break
2900 fi
2901 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2902fi
2903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 done
2905else
2906 ac_lo= ac_hi=
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911# Binary search between lo and hi bounds.
2912while test "x$ac_lo" != "x$ac_hi"; do
2913 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915/* end confdefs.h. */
2916$4
2917int
2918main ()
2919{
2920static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2921test_array [0] = 0
2922
2923 ;
2924 return 0;
2925}
2926_ACEOF
2927if ac_fn_c_try_compile "$LINENO"; then :
2928 ac_hi=$ac_mid
2929else
2930 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2931fi
2932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2933done
2934case $ac_lo in #((
2935?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2936'') ac_retval=1 ;;
2937esac
2938 else
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h. */
2941$4
2942static long int longval () { return $2; }
2943static unsigned long int ulongval () { return $2; }
2944#include <stdio.h>
2945#include <stdlib.h>
2946int
2947main ()
2948{
2949
2950 FILE *f = fopen ("conftest.val", "w");
2951 if (! f)
2952 return 1;
2953 if (($2) < 0)
2954 {
2955 long int i = longval ();
2956 if (i != ($2))
2957 return 1;
2958 fprintf (f, "%ld", i);
2959 }
2960 else
2961 {
2962 unsigned long int i = ulongval ();
2963 if (i != ($2))
2964 return 1;
2965 fprintf (f, "%lu", i);
2966 }
2967 /* Do not output a trailing newline, as this causes \r\n confusion
2968 on some platforms. */
2969 return ferror (f) || fclose (f) != 0;
2970
2971 ;
2972 return 0;
2973}
2974_ACEOF
2975if ac_fn_c_try_run "$LINENO"; then :
2976 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2977else
2978 ac_retval=1
2979fi
2980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2981 conftest.$ac_objext conftest.beam conftest.$ac_ext
2982rm -f conftest.val
2983
2984 fi
cristyda16f162011-02-19 23:52:17 +00002985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002986 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002987
2988} # ac_fn_c_compute_int
2989
2990# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2991# ---------------------------------------------------------
2992# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2993# the include files in INCLUDES and setting the cache variable VAR
2994# accordingly.
2995ac_fn_cxx_check_header_mongrel ()
2996{
2997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002998 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3000$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003001if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003002 $as_echo_n "(cached) " >&6
3003fi
3004eval ac_res=\$$3
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3006$as_echo "$ac_res" >&6; }
3007else
3008 # Is the header compilable?
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3010$as_echo_n "checking $2 usability... " >&6; }
3011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h. */
3013$4
3014#include <$2>
3015_ACEOF
3016if ac_fn_cxx_try_compile "$LINENO"; then :
3017 ac_header_compiler=yes
3018else
3019 ac_header_compiler=no
3020fi
3021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3023$as_echo "$ac_header_compiler" >&6; }
3024
3025# Is the header present?
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3027$as_echo_n "checking $2 presence... " >&6; }
3028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h. */
3030#include <$2>
3031_ACEOF
3032if ac_fn_cxx_try_cpp "$LINENO"; then :
3033 ac_header_preproc=yes
3034else
3035 ac_header_preproc=no
3036fi
cristyda16f162011-02-19 23:52:17 +00003037rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3039$as_echo "$ac_header_preproc" >&6; }
3040
3041# So? What about this header?
3042case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3043 yes:no: )
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3045$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3048 ;;
3049 no:yes:* )
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3051$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3053$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3055$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3057$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3059$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003060( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003061## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003062## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003063 ) | sed "s/^/$as_me: WARNING: /" >&2
3064 ;;
3065esac
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3067$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003068if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003069 $as_echo_n "(cached) " >&6
3070else
3071 eval "$3=\$ac_header_compiler"
3072fi
3073eval ac_res=\$$3
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3075$as_echo "$ac_res" >&6; }
3076fi
cristyda16f162011-02-19 23:52:17 +00003077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003078
3079} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003080cat >config.log <<_ACEOF
3081This file contains any messages produced by compilers while
3082running configure, to aid debugging if configure makes a mistake.
3083
cristy29eb34e2011-10-16 00:46:08 +00003084It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003085generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003086
3087 $ $0 $@
3088
3089_ACEOF
3090exec 5>>config.log
3091{
3092cat <<_ASUNAME
3093## --------- ##
3094## Platform. ##
3095## --------- ##
3096
3097hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3098uname -m = `(uname -m) 2>/dev/null || echo unknown`
3099uname -r = `(uname -r) 2>/dev/null || echo unknown`
3100uname -s = `(uname -s) 2>/dev/null || echo unknown`
3101uname -v = `(uname -v) 2>/dev/null || echo unknown`
3102
3103/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3104/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3105
3106/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3107/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3108/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3109/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3110/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3111/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3112/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3113
3114_ASUNAME
3115
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003121 $as_echo "PATH: $as_dir"
3122 done
cristy3ed852e2009-09-05 21:47:34 +00003123IFS=$as_save_IFS
3124
3125} >&5
3126
3127cat >&5 <<_ACEOF
3128
3129
3130## ----------- ##
3131## Core tests. ##
3132## ----------- ##
3133
3134_ACEOF
3135
3136
3137# Keep a trace of the command line.
3138# Strip out --no-create and --no-recursion so they do not pile up.
3139# Strip out --silent because we don't want to record it for future runs.
3140# Also quote any args containing shell meta-characters.
3141# Make two passes to allow for proper duplicate-argument suppression.
3142ac_configure_args=
3143ac_configure_args0=
3144ac_configure_args1=
3145ac_must_keep_next=false
3146for ac_pass in 1 2
3147do
3148 for ac_arg
3149 do
3150 case $ac_arg in
3151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3153 | -silent | --silent | --silen | --sile | --sil)
3154 continue ;;
3155 *\'*)
3156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 esac
3158 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003160 2)
cristy8b350f62009-11-15 23:12:43 +00003161 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003162 if test $ac_must_keep_next = true; then
3163 ac_must_keep_next=false # Got value, back to normal.
3164 else
3165 case $ac_arg in
3166 *=* | --config-cache | -C | -disable-* | --disable-* \
3167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3169 | -with-* | --with-* | -without-* | --without-* | --x)
3170 case "$ac_configure_args0 " in
3171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3172 esac
3173 ;;
3174 -* ) ac_must_keep_next=true ;;
3175 esac
3176 fi
cristy8b350f62009-11-15 23:12:43 +00003177 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003178 ;;
3179 esac
3180 done
3181done
cristy8b350f62009-11-15 23:12:43 +00003182{ ac_configure_args0=; unset ac_configure_args0;}
3183{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003184
3185# When interrupted or exit'd, cleanup temporary files, and complete
3186# config.log. We remove comments because anyway the quotes in there
3187# would cause problems or look ugly.
3188# WARNING: Use '\'' to represent an apostrophe within the trap.
3189# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3190trap 'exit_status=$?
3191 # Save into config.log some information that might help in debugging.
3192 {
3193 echo
3194
cristy98dddb52010-11-04 00:30:15 +00003195 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003196## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003197## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003198 echo
3199 # The following way of writing the cache mishandles newlines in values,
3200(
3201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3202 eval ac_val=\$$ac_var
3203 case $ac_val in #(
3204 *${as_nl}*)
3205 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3208 esac
3209 case $ac_var in #(
3210 _ | IFS | as_nl) ;; #(
3211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003212 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003213 esac ;;
3214 esac
3215 done
3216 (set) 2>&1 |
3217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3218 *${as_nl}ac_space=\ *)
3219 sed -n \
3220 "s/'\''/'\''\\\\'\'''\''/g;
3221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3222 ;; #(
3223 *)
3224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3225 ;;
3226 esac |
3227 sort
3228)
3229 echo
3230
cristy98dddb52010-11-04 00:30:15 +00003231 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003233## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003234 echo
3235 for ac_var in $ac_subst_vars
3236 do
3237 eval ac_val=\$$ac_var
3238 case $ac_val in
3239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3240 esac
3241 $as_echo "$ac_var='\''$ac_val'\''"
3242 done | sort
3243 echo
3244
3245 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003246 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003247## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003248## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003249 echo
3250 for ac_var in $ac_subst_files
3251 do
3252 eval ac_val=\$$ac_var
3253 case $ac_val in
3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255 esac
3256 $as_echo "$ac_var='\''$ac_val'\''"
3257 done | sort
3258 echo
3259 fi
3260
3261 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003262 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003263## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003264## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003265 echo
3266 cat confdefs.h
3267 echo
3268 fi
3269 test "$ac_signal" != 0 &&
3270 $as_echo "$as_me: caught signal $ac_signal"
3271 $as_echo "$as_me: exit $exit_status"
3272 } >&5
3273 rm -f core *.core core.conftest.* &&
3274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3275 exit $exit_status
3276' 0
3277for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003279done
3280ac_signal=0
3281
3282# confdefs.h avoids OS command line length limits that DEFS can exceed.
3283rm -f -r conftest* confdefs.h
3284
cristy8b350f62009-11-15 23:12:43 +00003285$as_echo "/* confdefs.h */" > confdefs.h
3286
cristy3ed852e2009-09-05 21:47:34 +00003287# Predefined preprocessor variables.
3288
3289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_NAME "$PACKAGE_NAME"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297cat >>confdefs.h <<_ACEOF
3298#define PACKAGE_VERSION "$PACKAGE_VERSION"
3299_ACEOF
3300
cristy3ed852e2009-09-05 21:47:34 +00003301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_STRING "$PACKAGE_STRING"
3303_ACEOF
3304
cristy3ed852e2009-09-05 21:47:34 +00003305cat >>confdefs.h <<_ACEOF
3306#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3307_ACEOF
3308
cristy8b350f62009-11-15 23:12:43 +00003309cat >>confdefs.h <<_ACEOF
3310#define PACKAGE_URL "$PACKAGE_URL"
3311_ACEOF
3312
cristy3ed852e2009-09-05 21:47:34 +00003313
3314# Let the site file select an alternate cache file if it wants to.
3315# Prefer an explicitly selected file to automatically selected ones.
3316ac_site_file1=NONE
3317ac_site_file2=NONE
3318if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003319 # We do not want a PATH search for config.site.
3320 case $CONFIG_SITE in #((
3321 -*) ac_site_file1=./$CONFIG_SITE;;
3322 */*) ac_site_file1=$CONFIG_SITE;;
3323 *) ac_site_file1=./$CONFIG_SITE;;
3324 esac
cristy3ed852e2009-09-05 21:47:34 +00003325elif test "x$prefix" != xNONE; then
3326 ac_site_file1=$prefix/share/config.site
3327 ac_site_file2=$prefix/etc/config.site
3328else
3329 ac_site_file1=$ac_default_prefix/share/config.site
3330 ac_site_file2=$ac_default_prefix/etc/config.site
3331fi
3332for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3333do
3334 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003337$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3338 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003339 . "$ac_site_file" \
3340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342as_fn_error $? "failed to load site script $ac_site_file
3343See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003344 fi
3345done
3346
3347if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003348 # Some versions of bash will fail to source /dev/null (special files
3349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003352$as_echo "$as_me: loading cache $cache_file" >&6;}
3353 case $cache_file in
3354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3355 *) . "./$cache_file";;
3356 esac
3357 fi
3358else
cristy8b350f62009-11-15 23:12:43 +00003359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003360$as_echo "$as_me: creating cache $cache_file" >&6;}
3361 >$cache_file
3362fi
3363
cristycd4c5312009-11-22 01:19:08 +00003364as_fn_append ac_header_list " stdlib.h"
3365as_fn_append ac_header_list " unistd.h"
3366as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003367# Check that the precious variables saved in the cache have kept the same
3368# value.
3369ac_cache_corrupted=false
3370for ac_var in $ac_precious_vars; do
3371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3372 eval ac_new_set=\$ac_env_${ac_var}_set
3373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3374 eval ac_new_val=\$ac_env_${ac_var}_value
3375 case $ac_old_set,$ac_new_set in
3376 set,)
cristy8b350f62009-11-15 23:12:43 +00003377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3379 ac_cache_corrupted=: ;;
3380 ,set)
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3383 ac_cache_corrupted=: ;;
3384 ,);;
3385 *)
3386 if test "x$ac_old_val" != "x$ac_new_val"; then
3387 # differences in whitespace do not lead to failure.
3388 ac_old_val_w=`echo x $ac_old_val`
3389 ac_new_val_w=`echo x $ac_new_val`
3390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3393 ac_cache_corrupted=:
3394 else
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3397 eval $ac_var=\$ac_old_val
3398 fi
cristy8b350f62009-11-15 23:12:43 +00003399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003400$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3403 fi;;
3404 esac
3405 # Pass precious variables to config.status.
3406 if test "$ac_new_set" = set; then
3407 case $ac_new_val in
3408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3409 *) ac_arg=$ac_var=$ac_new_val ;;
3410 esac
3411 case " $ac_configure_args " in
3412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003414 esac
3415 fi
3416done
3417if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003421$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003423fi
cristy8b350f62009-11-15 23:12:43 +00003424## -------------------- ##
3425## Main body of script. ##
3426## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003427
3428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434
3435
3436ac_aux_dir=
3437for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003438 if test -f "$ac_dir/install-sh"; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/install-sh -c"
3441 break
3442 elif test -f "$ac_dir/install.sh"; then
3443 ac_aux_dir=$ac_dir
3444 ac_install_sh="$ac_aux_dir/install.sh -c"
3445 break
3446 elif test -f "$ac_dir/shtool"; then
3447 ac_aux_dir=$ac_dir
3448 ac_install_sh="$ac_aux_dir/shtool install -c"
3449 break
3450 fi
cristy3ed852e2009-09-05 21:47:34 +00003451done
3452if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003453 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003454fi
3455
3456# These three variables are undocumented and unsupported,
3457# and are intended to be withdrawn in a future Autoconf release.
3458# They can cause serious problems if a builder's source tree is in a directory
3459# whose full name contains unusual characters.
3460ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3461ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3462ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3463
3464
3465
3466
3467ac_config_headers="$ac_config_headers config/config.h"
3468
cristy24fc1fe2010-10-23 21:13:01 +00003469
cristy4c08aed2011-07-01 19:47:50 +00003470ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003471
cristy4c08aed2011-07-01 19:47:50 +00003472ac_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"
cristy3ed852e2009-09-05 21:47:34 +00003473
3474
3475#
3476# Save initial user-tunable values
3477#
3478USER_LIBS=$LIBS
3479for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3480 eval isset=\${$var+set}
3481 if test "$isset" = 'set'; then
3482 eval val=$`echo $var`
3483 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3484 fi
3485done
3486
3487
3488CONFIGURE_ARGS="$0 ${ac_configure_args}"
3489
3490
3491# Source file containing package/library versioning information.
3492. ${srcdir}/version.sh
3493
cristy15a88782010-01-31 23:24:49 +00003494echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003495# Make sure we can run config.sub.
3496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003498
cristy8b350f62009-11-15 23:12:43 +00003499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003500$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003501if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003502 $as_echo_n "(cached) " >&6
3503else
3504 ac_build_alias=$build_alias
3505test "x$ac_build_alias" = x &&
3506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3507test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003511
3512fi
cristy8b350f62009-11-15 23:12:43 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$ac_cv_build" >&6; }
3515case $ac_cv_build in
3516*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003517*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003518esac
3519build=$ac_cv_build
3520ac_save_IFS=$IFS; IFS='-'
3521set x $ac_cv_build
3522shift
3523build_cpu=$1
3524build_vendor=$2
3525shift; shift
3526# Remember, the first character of IFS is used to create $*,
3527# except with old shells:
3528build_os=$*
3529IFS=$ac_save_IFS
3530case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3531
3532
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003535if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003536 $as_echo_n "(cached) " >&6
3537else
3538 if test "x$host_alias" = x; then
3539 ac_cv_host=$ac_cv_build
3540else
3541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543fi
3544
3545fi
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo "$ac_cv_host" >&6; }
3548case $ac_cv_host in
3549*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003550*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003551esac
3552host=$ac_cv_host
3553ac_save_IFS=$IFS; IFS='-'
3554set x $ac_cv_host
3555shift
3556host_cpu=$1
3557host_vendor=$2
3558shift; shift
3559# Remember, the first character of IFS is used to create $*,
3560# except with old shells:
3561host_os=$*
3562IFS=$ac_save_IFS
3563case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3564
3565
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003568if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003569 $as_echo_n "(cached) " >&6
3570else
3571 if test "x$target_alias" = x; then
3572 ac_cv_target=$ac_cv_host
3573else
3574 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003576fi
3577
3578fi
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo "$ac_cv_target" >&6; }
3581case $ac_cv_target in
3582*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003583*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003584esac
3585target=$ac_cv_target
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_target
3588shift
3589target_cpu=$1
3590target_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594target_os=$*
3595IFS=$ac_save_IFS
3596case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3597
3598
3599# The aliases save the names the user supplied, while $host etc.
3600# will get canonicalized.
3601test -n "$target_alias" &&
3602 test "$program_prefix$program_suffix$program_transform_name" = \
3603 NONENONEs,x,x, &&
3604 program_prefix=${target_alias}-
3605
cristy837d6dc2010-02-27 01:16:57 +00003606
3607
3608
cristy19615b82011-04-13 20:02:01 +00003609MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003610
3611
cristy19615b82011-04-13 20:02:01 +00003612MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003613
3614
cristy19615b82011-04-13 20:02:01 +00003615MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003616
3617
cristy3ed852e2009-09-05 21:47:34 +00003618# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003619MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3620
3621MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3622
cristy71d8c202012-03-20 17:05:01 +00003623MAGICK_SVN_REVISION=7178
cristyd694ca32011-03-27 21:42:54 +00003624
3625
cristy3ed852e2009-09-05 21:47:34 +00003626
3627
3628# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3630$as_echo_n "checking whether build environment is sane... " >&6; }
3631# Just in case
3632sleep 1
3633echo timestamp > conftest.file
3634# Reject unsafe characters in $srcdir or the absolute working directory
3635# name. Accept space and tab only in the latter.
3636am_lf='
3637'
3638case `pwd` in
3639 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003640 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003641esac
3642case $srcdir in
3643 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003644 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003645esac
cristy3ed852e2009-09-05 21:47:34 +00003646
cristy73bd4a52010-10-05 11:24:23 +00003647# Do `set' in a subshell so we don't clobber the current shell's
3648# arguments. Must try -L first in case configure is actually a
3649# symlink; some systems play weird games with the mod time of symlinks
3650# (eg FreeBSD returns the mod time of the symlink's containing
3651# directory).
3652if (
3653 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3654 if test "$*" = "X"; then
3655 # -L didn't work.
3656 set X `ls -t "$srcdir/configure" conftest.file`
3657 fi
3658 rm -f conftest.file
3659 if test "$*" != "X $srcdir/configure conftest.file" \
3660 && test "$*" != "X conftest.file $srcdir/configure"; then
3661
3662 # If neither matched, then we have a broken ls. This can happen
3663 # if, for instance, CONFIG_SHELL is bash and it inherits a
3664 # broken ls alias from the environment. This has actually
3665 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003667alias in your environment" "$LINENO" 5
3668 fi
3669
3670 test "$2" = conftest.file
3671 )
3672then
3673 # Ok.
3674 :
3675else
cristy98dddb52010-11-04 00:30:15 +00003676 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003677Check your system clock" "$LINENO" 5
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680$as_echo "yes" >&6; }
3681
3682am__api_version='1.11'
3683
3684# Find a good install program. We prefer a C program (faster),
3685# so one script is as good as another. But avoid the broken or
3686# incompatible versions:
3687# SysV /etc/install, /usr/sbin/install
3688# SunOS /usr/etc/install
3689# IRIX /sbin/install
3690# AIX /bin/install
3691# AmigaOS /C/install, which installs bootblocks on floppy discs
3692# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3693# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3694# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3695# OS/2's system install, which has a completely different semantic
3696# ./install, which can be erroneously created by make from ./install.sh.
3697# Reject install programs that cannot install multiple files.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3699$as_echo_n "checking for a BSD-compatible install... " >&6; }
3700if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003701if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003702 $as_echo_n "(cached) " >&6
3703else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 # Account for people who put trailing slashes in PATH elements.
3710case $as_dir/ in #((
3711 ./ | .// | /[cC]/* | \
3712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3713 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3714 /usr/ucb/* ) ;;
3715 *)
3716 # OSF1 and SCO ODT 3.0 have their own names for install.
3717 # Don't use installbsd from OSF since it installs stuff as root
3718 # by default.
3719 for ac_prog in ginstall scoinst install; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3722 if test $ac_prog = install &&
3723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # AIX install. It has an incompatible calling convention.
3725 :
3726 elif test $ac_prog = install &&
3727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3728 # program-specific install script used by HP pwplus--don't use.
3729 :
3730 else
3731 rm -rf conftest.one conftest.two conftest.dir
3732 echo one > conftest.one
3733 echo two > conftest.two
3734 mkdir conftest.dir
3735 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3736 test -s conftest.one && test -s conftest.two &&
3737 test -s conftest.dir/conftest.one &&
3738 test -s conftest.dir/conftest.two
3739 then
3740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3741 break 3
3742 fi
3743 fi
3744 fi
3745 done
3746 done
3747 ;;
3748esac
3749
3750 done
3751IFS=$as_save_IFS
3752
3753rm -rf conftest.one conftest.two conftest.dir
3754
3755fi
3756 if test "${ac_cv_path_install+set}" = set; then
3757 INSTALL=$ac_cv_path_install
3758 else
3759 # As a last resort, use the slow shell script. Don't cache a
3760 # value for INSTALL within a source directory, because that will
3761 # break other packages using the cache if that directory is
3762 # removed, or if the value is a relative name.
3763 INSTALL=$ac_install_sh
3764 fi
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3767$as_echo "$INSTALL" >&6; }
3768
3769# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3770# It thinks the first close brace ends the variable substitution.
3771test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3772
3773test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3774
3775test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3776
3777test "$program_prefix" != NONE &&
3778 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3779# Use a double $ so make ignores it.
3780test "$program_suffix" != NONE &&
3781 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3782# Double any \ or $.
3783# By default was `s,x,x', remove it if useless.
3784ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3785program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3786
3787# expand $ac_aux_dir to an absolute path
3788am_aux_dir=`cd $ac_aux_dir && pwd`
3789
3790if test x"${MISSING+set}" != xset; then
3791 case $am_aux_dir in
3792 *\ * | *\ *)
3793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3794 *)
3795 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3796 esac
3797fi
3798# Use eval to expand $SHELL
3799if eval "$MISSING --run true"; then
3800 am_missing_run="$MISSING --run "
3801else
3802 am_missing_run=
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3804$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3805fi
3806
3807if test x"${install_sh}" != xset; then
3808 case $am_aux_dir in
3809 *\ * | *\ *)
3810 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3811 *)
3812 install_sh="\${SHELL} $am_aux_dir/install-sh"
3813 esac
3814fi
3815
3816# Installed binaries are usually stripped using `strip' when the user
3817# run `make install-strip'. However `strip' might not be the right
3818# tool to use in cross-compilation environments, therefore Automake
3819# will honor the `STRIP' environment variable to overrule this program.
3820if test "$cross_compiling" != no; then
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3823set dummy ${ac_tool_prefix}strip; ac_word=$2
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003826if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003827 $as_echo_n "(cached) " >&6
3828else
3829 if test -n "$STRIP"; then
3830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843done
3844 done
3845IFS=$as_save_IFS
3846
3847fi
3848fi
3849STRIP=$ac_cv_prog_STRIP
3850if test -n "$STRIP"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3852$as_echo "$STRIP" >&6; }
3853else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858
3859fi
3860if test -z "$ac_cv_prog_STRIP"; then
3861 ac_ct_STRIP=$STRIP
3862 # Extract the first word of "strip", so it can be a program name with args.
3863set dummy strip; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003866if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003867 $as_echo_n "(cached) " >&6
3868else
3869 if test -n "$ac_ct_STRIP"; then
3870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_prog_ac_ct_STRIP="strip"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884 done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3890if test -n "$ac_ct_STRIP"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3892$as_echo "$ac_ct_STRIP" >&6; }
3893else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898 if test "x$ac_ct_STRIP" = x; then
3899 STRIP=":"
3900 else
3901 case $cross_compiling:$ac_tool_warned in
3902yes:)
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905ac_tool_warned=yes ;;
3906esac
3907 STRIP=$ac_ct_STRIP
3908 fi
3909else
3910 STRIP="$ac_cv_prog_STRIP"
3911fi
3912
3913fi
3914INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3915
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3917$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3918if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003919 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003920 $as_echo_n "(cached) " >&6
3921else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_prog in mkdir gmkdir; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3930 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3931 'mkdir (GNU coreutils) '* | \
3932 'mkdir (coreutils) '* | \
3933 'mkdir (fileutils) '4.1*)
3934 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3935 break 3;;
3936 esac
3937 done
3938 done
3939 done
3940IFS=$as_save_IFS
3941
3942fi
3943
3944 test -d ./--version && rmdir ./--version
3945 if test "${ac_cv_path_mkdir+set}" = set; then
3946 MKDIR_P="$ac_cv_path_mkdir -p"
3947 else
3948 # As a last resort, use the slow shell script. Don't cache a
3949 # value for MKDIR_P within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the value is a relative name.
3952 MKDIR_P="$ac_install_sh -d"
3953 fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3956$as_echo "$MKDIR_P" >&6; }
3957
3958mkdir_p="$MKDIR_P"
3959case $mkdir_p in
3960 [\\/$]* | ?:[\\/]*) ;;
3961 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3962esac
3963
3964for ac_prog in gawk mawk nawk awk
3965do
3966 # Extract the first word of "$ac_prog", so it can be a program name with args.
3967set dummy $ac_prog; ac_word=$2
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003970if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003971 $as_echo_n "(cached) " >&6
3972else
3973 if test -n "$AWK"; then
3974 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3975else
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_prog_AWK="$ac_prog"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987done
3988 done
3989IFS=$as_save_IFS
3990
3991fi
3992fi
3993AWK=$ac_cv_prog_AWK
3994if test -n "$AWK"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3996$as_echo "$AWK" >&6; }
3997else
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999$as_echo "no" >&6; }
4000fi
4001
4002
4003 test -n "$AWK" && break
4004done
4005
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4007$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4008set x ${MAKE-make}
4009ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004010if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 cat >conftest.make <<\_ACEOF
4014SHELL = /bin/sh
4015all:
4016 @echo '@@@%%%=$(MAKE)=@@@%%%'
4017_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004018# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004019case `${MAKE-make} -f conftest.make 2>/dev/null` in
4020 *@@@%%%=?*=@@@%%%*)
4021 eval ac_cv_prog_make_${ac_make}_set=yes;;
4022 *)
4023 eval ac_cv_prog_make_${ac_make}_set=no;;
4024esac
4025rm -f conftest.make
4026fi
4027if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029$as_echo "yes" >&6; }
4030 SET_MAKE=
4031else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034 SET_MAKE="MAKE=${MAKE-make}"
4035fi
4036
4037rm -rf .tst 2>/dev/null
4038mkdir .tst 2>/dev/null
4039if test -d .tst; then
4040 am__leading_dot=.
4041else
4042 am__leading_dot=_
4043fi
4044rmdir .tst 2>/dev/null
4045
cristya448bd22011-10-14 12:38:13 +00004046# Check whether --enable-silent-rules was given.
4047if test "${enable_silent_rules+set}" = set; then :
4048 enableval=$enable_silent_rules;
4049fi
4050
4051case $enable_silent_rules in
4052yes) AM_DEFAULT_VERBOSITY=0;;
4053no) AM_DEFAULT_VERBOSITY=1;;
4054*) AM_DEFAULT_VERBOSITY=1;;
4055esac
cristyc3fb77b2012-02-06 01:49:41 +00004056am_make=${MAKE-make}
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4058$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4059if ${am_cv_make_support_nested_variables+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061else
4062 if $as_echo 'TRUE=$(BAR$(V))
4063BAR0=false
4064BAR1=true
4065V=1
4066am__doit:
4067 @$(TRUE)
4068.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4069 am_cv_make_support_nested_variables=yes
4070else
4071 am_cv_make_support_nested_variables=no
4072fi
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4075$as_echo "$am_cv_make_support_nested_variables" >&6; }
4076if test $am_cv_make_support_nested_variables = yes; then
4077 AM_V='$(V)'
4078 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4079else
4080 AM_V=$AM_DEFAULT_VERBOSITY
4081 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4082fi
cristya448bd22011-10-14 12:38:13 +00004083AM_BACKSLASH='\'
4084
cristy73bd4a52010-10-05 11:24:23 +00004085if test "`cd $srcdir && pwd`" != "`pwd`"; then
4086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4087 # is not polluted with repeated "-I."
4088 am__isrc=' -I$(srcdir)'
4089 # test to see if srcdir already configured
4090 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004092 fi
4093fi
4094
4095# test whether we have cygpath
4096if test -z "$CYGPATH_W"; then
4097 if (cygpath --version) >/dev/null 2>/dev/null; then
4098 CYGPATH_W='cygpath -w'
4099 else
4100 CYGPATH_W=echo
4101 fi
4102fi
4103
4104
4105# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004106 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004107 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004108
4109
cristya448bd22011-10-14 12:38:13 +00004110cat >>confdefs.h <<_ACEOF
4111#define PACKAGE "$PACKAGE"
4112_ACEOF
4113
4114
4115cat >>confdefs.h <<_ACEOF
4116#define VERSION "$VERSION"
4117_ACEOF
4118
cristy73bd4a52010-10-05 11:24:23 +00004119# Some tools Automake needs.
4120
4121ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4122
4123
4124AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4125
4126
4127AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4128
4129
4130AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4131
4132
4133MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4134
4135# We need awk for the "check" target. The system "awk" is bad on
4136# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004137# Always define AMTAR for backward compatibility. Yes, it's still used
4138# in the wild :-( We should find a proper way to deprecate it ...
4139AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004140
cristyc3fb77b2012-02-06 01:49:41 +00004141am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004142
4143
4144
4145
4146
cristy3ed852e2009-09-05 21:47:34 +00004147
4148# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004149# Check whether --enable-silent-rules was given.
4150if test "${enable_silent_rules+set}" = set; then :
4151 enableval=$enable_silent_rules;
4152fi
4153
4154case $enable_silent_rules in
4155yes) AM_DEFAULT_VERBOSITY=0;;
4156no) AM_DEFAULT_VERBOSITY=1;;
4157*) AM_DEFAULT_VERBOSITY=0;;
4158esac
cristyc3fb77b2012-02-06 01:49:41 +00004159am_make=${MAKE-make}
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4161$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4162if ${am_cv_make_support_nested_variables+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 if $as_echo 'TRUE=$(BAR$(V))
4166BAR0=false
4167BAR1=true
4168V=1
4169am__doit:
4170 @$(TRUE)
4171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4172 am_cv_make_support_nested_variables=yes
4173else
4174 am_cv_make_support_nested_variables=no
4175fi
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4178$as_echo "$am_cv_make_support_nested_variables" >&6; }
4179if test $am_cv_make_support_nested_variables = yes; then
4180 AM_V='$(V)'
4181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4182else
4183 AM_V=$AM_DEFAULT_VERBOSITY
4184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4185fi
cristy73bd4a52010-10-05 11:24:23 +00004186AM_BACKSLASH='\'
4187
cristy3ed852e2009-09-05 21:47:34 +00004188
4189MAGICK_LIB_VERSION="0x"
4190if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4191 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4192fi
4193MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4194if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4195 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4196fi
4197MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4198if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4199 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4200fi
4201MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4202
4203
4204# Definition used to define MagickLibVersionText in version.h
4205MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4206
4207
4208# Definition used to define MagickLibVersionNumber in version.h
4209MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4210
4211
4212# Regenerate config.status if ChangeLog or version.sh is updated.
4213CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4214
4215
4216PERLMAINCC=$CC
4217
4218MAGICK_CFLAGS=''
4219MAGICK_CPPFLAGS=$CPPFLAGS_USER
4220MAGICK_PCFLAGS=$CPPFLAGS_USER
4221MAGICK_LDFLAGS=''
4222MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004223MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004224
4225#
4226# Evaluate shell variable equivalents to Makefile directory variables
4227#
4228if test "x$prefix" = xNONE; then
4229 prefix=$ac_default_prefix
4230fi
4231# Let make expand exec_prefix.
4232if test "x$exec_prefix" = xNONE; then
4233 exec_prefix='${prefix}'
4234fi
4235
4236#
4237eval "eval PREFIX_DIR=${prefix}"
4238
4239eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4240
4241eval "eval BIN_DIR=$bindir"
4242
4243eval "eval SBIN_DIR=$sbindir"
4244
4245eval "eval LIBEXEC_DIR=$libexecdir"
4246
4247eval "eval DATA_DIR=$datadir"
4248
cristyd55889c2011-03-27 00:50:24 +00004249eval "eval DOC_DIR=$docdir"
4250
cristy3ed852e2009-09-05 21:47:34 +00004251eval "eval SYSCONF_DIR=$sysconfdir"
4252
4253eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4254
4255eval "eval LOCALSTATE_DIR=$localstatedir"
4256
4257eval "eval LIB_DIR=$libdir"
4258
4259eval "eval INCLUDE_DIR=$includedir"
4260
4261eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4262
4263eval "eval INFO_DIR=$infodir"
4264
4265eval "eval MAN_DIR=$mandir"
4266
4267
4268# Get full paths to source and build directories
4269srcdirfull="`cd $srcdir && pwd`"
4270builddir="`pwd`"
4271
4272#
4273# Compute variables useful for running uninstalled software.
4274#
4275MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4276MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4277MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4278MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4279DIRSEP=':'
4280case "${build_os}" in
4281 mingw* )
4282 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4283 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4284 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4285 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4286 DIRSEP=';'
4287 ;;
4288esac
4289case "${host_os}" in
4290 mingw* )
4291 DIRSEP=';'
4292 ;;
4293esac
4294
4295
4296
4297
4298
4299
cristya0b81c32010-01-22 02:54:33 +00004300
4301#
4302# Enable OS features.
4303#
cristy73bd4a52010-10-05 11:24:23 +00004304DEPDIR="${am__leading_dot}deps"
4305
4306ac_config_commands="$ac_config_commands depfiles"
4307
4308
4309am_make=${MAKE-make}
4310cat > confinc << 'END'
4311am__doit:
4312 @echo this is the am__doit target
4313.PHONY: am__doit
4314END
4315# If we don't find an include directive, just comment out the code.
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4317$as_echo_n "checking for style of include used by $am_make... " >&6; }
4318am__include="#"
4319am__quote=
4320_am_result=none
4321# First try GNU make style include.
4322echo "include confinc" > confmf
4323# Ignore all kinds of additional output from `make'.
4324case `$am_make -s -f confmf 2> /dev/null` in #(
4325*the\ am__doit\ target*)
4326 am__include=include
4327 am__quote=
4328 _am_result=GNU
4329 ;;
4330esac
4331# Now try BSD make style include.
4332if test "$am__include" = "#"; then
4333 echo '.include "confinc"' > confmf
4334 case `$am_make -s -f confmf 2> /dev/null` in #(
4335 *the\ am__doit\ target*)
4336 am__include=.include
4337 am__quote="\""
4338 _am_result=BSD
4339 ;;
4340 esac
4341fi
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4345$as_echo "$_am_result" >&6; }
4346rm -f confinc confmf
4347
4348# Check whether --enable-dependency-tracking was given.
4349if test "${enable_dependency_tracking+set}" = set; then :
4350 enableval=$enable_dependency_tracking;
4351fi
4352
4353if test "x$enable_dependency_tracking" != xno; then
4354 am_depcomp="$ac_aux_dir/depcomp"
4355 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004356 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004357fi
4358 if test "x$enable_dependency_tracking" != xno; then
4359 AMDEP_TRUE=
4360 AMDEP_FALSE='#'
4361else
4362 AMDEP_TRUE='#'
4363 AMDEP_FALSE=
4364fi
4365
4366
cristy3ed852e2009-09-05 21:47:34 +00004367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4374set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004377if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004378 $as_echo_n "(cached) " >&6
4379else
4380 if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004392 break 2
4393 fi
4394done
cristy8b350f62009-11-15 23:12:43 +00004395 done
cristy3ed852e2009-09-05 21:47:34 +00004396IFS=$as_save_IFS
4397
4398fi
4399fi
4400CC=$ac_cv_prog_CC
4401if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004403$as_echo "$CC" >&6; }
4404else
cristy8b350f62009-11-15 23:12:43 +00004405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004406$as_echo "no" >&6; }
4407fi
4408
4409
4410fi
4411if test -z "$ac_cv_prog_CC"; then
4412 ac_ct_CC=$CC
4413 # Extract the first word of "gcc", so it can be a program name with args.
4414set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004417if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$ac_ct_CC"; then
4421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432 break 2
4433 fi
4434done
cristy8b350f62009-11-15 23:12:43 +00004435 done
cristy3ed852e2009-09-05 21:47:34 +00004436IFS=$as_save_IFS
4437
4438fi
4439fi
4440ac_ct_CC=$ac_cv_prog_ac_ct_CC
4441if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$ac_ct_CC" >&6; }
4444else
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "no" >&6; }
4447fi
4448
4449 if test "x$ac_ct_CC" = x; then
4450 CC=""
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453yes:)
cristy8b350f62009-11-15 23:12:43 +00004454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456ac_tool_warned=yes ;;
4457esac
4458 CC=$ac_ct_CC
4459 fi
4460else
4461 CC="$ac_cv_prog_CC"
4462fi
4463
4464if test -z "$CC"; then
4465 if test -n "$ac_tool_prefix"; then
4466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4467set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004470if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004471 $as_echo_n "(cached) " >&6
4472else
4473 if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004485 break 2
4486 fi
4487done
cristy8b350f62009-11-15 23:12:43 +00004488 done
cristy3ed852e2009-09-05 21:47:34 +00004489IFS=$as_save_IFS
4490
4491fi
4492fi
4493CC=$ac_cv_prog_CC
4494if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo "$CC" >&6; }
4497else
cristy8b350f62009-11-15 23:12:43 +00004498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499$as_echo "no" >&6; }
4500fi
4501
4502
4503 fi
4504fi
4505if test -z "$CC"; then
4506 # Extract the first word of "cc", so it can be a program name with args.
4507set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004510if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004511 $as_echo_n "(cached) " >&6
4512else
4513 if test -n "$CC"; then
4514 ac_cv_prog_CC="$CC" # Let the user override the test.
4515else
4516 ac_prog_rejected=no
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4525 ac_prog_rejected=yes
4526 continue
4527 fi
4528 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530 break 2
4531 fi
4532done
cristy8b350f62009-11-15 23:12:43 +00004533 done
cristy3ed852e2009-09-05 21:47:34 +00004534IFS=$as_save_IFS
4535
4536if test $ac_prog_rejected = yes; then
4537 # We found a bogon in the path, so make sure we never use it.
4538 set dummy $ac_cv_prog_CC
4539 shift
4540 if test $# != 0; then
4541 # We chose a different compiler from the bogus one.
4542 # However, it has the same basename, so the bogon will be chosen
4543 # first if we set CC to just the basename; use the full file name.
4544 shift
4545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4546 fi
4547fi
4548fi
4549fi
4550CC=$ac_cv_prog_CC
4551if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553$as_echo "$CC" >&6; }
4554else
cristy8b350f62009-11-15 23:12:43 +00004555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo "no" >&6; }
4557fi
4558
4559
4560fi
4561if test -z "$CC"; then
4562 if test -n "$ac_tool_prefix"; then
4563 for ac_prog in cl.exe
4564 do
4565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004569if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004570 $as_echo_n "(cached) " >&6
4571else
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584 break 2
4585 fi
4586done
cristy8b350f62009-11-15 23:12:43 +00004587 done
cristy3ed852e2009-09-05 21:47:34 +00004588IFS=$as_save_IFS
4589
4590fi
4591fi
4592CC=$ac_cv_prog_CC
4593if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo "$CC" >&6; }
4596else
cristy8b350f62009-11-15 23:12:43 +00004597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004598$as_echo "no" >&6; }
4599fi
4600
4601
4602 test -n "$CC" && break
4603 done
4604fi
4605if test -z "$CC"; then
4606 ac_ct_CC=$CC
4607 for ac_prog in cl.exe
4608do
4609 # Extract the first word of "$ac_prog", so it can be a program name with args.
4610set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004613if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004614 $as_echo_n "(cached) " >&6
4615else
4616 if test -n "$ac_ct_CC"; then
4617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628 break 2
4629 fi
4630done
cristy8b350f62009-11-15 23:12:43 +00004631 done
cristy3ed852e2009-09-05 21:47:34 +00004632IFS=$as_save_IFS
4633
4634fi
4635fi
4636ac_ct_CC=$ac_cv_prog_ac_ct_CC
4637if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo "$ac_ct_CC" >&6; }
4640else
cristy8b350f62009-11-15 23:12:43 +00004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo "no" >&6; }
4643fi
4644
4645
4646 test -n "$ac_ct_CC" && break
4647done
4648
4649 if test "x$ac_ct_CC" = x; then
4650 CC=""
4651 else
4652 case $cross_compiling:$ac_tool_warned in
4653yes:)
cristy8b350f62009-11-15 23:12:43 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656ac_tool_warned=yes ;;
4657esac
4658 CC=$ac_ct_CC
4659 fi
4660fi
4661
4662fi
4663
4664
cristy8b350f62009-11-15 23:12:43 +00004665test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004667as_fn_error $? "no acceptable C compiler found in \$PATH
4668See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004669
4670# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004671$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672set X $ac_compile
4673ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004674for ac_option in --version -v -V -qversion; do
4675 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
cristy8b350f62009-11-15 23:12:43 +00004680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681$as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004683 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004684 if test -s conftest.err; then
4685 sed '10a\
4686... rest of stderr output deleted ...
4687 10q' conftest.err >conftest.er1
4688 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004689 fi
cristycd4c5312009-11-22 01:19:08 +00004690 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693done
cristy3ed852e2009-09-05 21:47:34 +00004694
cristy8b350f62009-11-15 23:12:43 +00004695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004696/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004697
cristy3ed852e2009-09-05 21:47:34 +00004698int
4699main ()
4700{
4701
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004707ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004708# Try to create an executable without -o first, disregard a.out.
4709# It will help us diagnose broken compilers, and finding out an intuition
4710# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4712$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004713ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4714
4715# The possible output files:
4716ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4717
4718ac_rmfiles=
4719for ac_file in $ac_files
4720do
4721 case $ac_file in
4722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4724 esac
4725done
4726rm -f $ac_rmfiles
4727
cristy8b350f62009-11-15 23:12:43 +00004728if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004729case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732esac
cristy8b350f62009-11-15 23:12:43 +00004733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4734$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004735 (eval "$ac_link_default") 2>&5
4736 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4740# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4741# in a Makefile. We should not override ac_cv_exeext if it was cached,
4742# so that the user can short-circuit this test for compilers unknown to
4743# Autoconf.
4744for ac_file in $ac_files ''
4745do
4746 test -f "$ac_file" || continue
4747 case $ac_file in
4748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4749 ;;
4750 [ab].out )
4751 # We found the default executable, but exeext='' is most
4752 # certainly right.
4753 break;;
4754 *.* )
cristy8b350f62009-11-15 23:12:43 +00004755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004756 then :; else
4757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4758 fi
4759 # We set ac_cv_exeext here because the later test for it is not
4760 # safe: cross compilers may not add the suffix if given an `-o'
4761 # argument, so we may need to know it at that point already.
4762 # Even if this section looks crufty: it has the advantage of
4763 # actually working.
4764 break;;
4765 * )
4766 break;;
4767 esac
4768done
4769test "$ac_cv_exeext" = no && ac_cv_exeext=
4770
4771else
4772 ac_file=''
4773fi
cristy8b350f62009-11-15 23:12:43 +00004774if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
4777$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778sed 's/^/| /' conftest.$ac_ext >&5
4779
cristy8b350f62009-11-15 23:12:43 +00004780{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004782as_fn_error 77 "C compiler cannot create executables
4783See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004784else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004787fi
cristycd4c5312009-11-22 01:19:08 +00004788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4789$as_echo_n "checking for C compiler default output file name... " >&6; }
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4791$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004792ac_exeext=$ac_cv_exeext
4793
cristycd4c5312009-11-22 01:19:08 +00004794rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004795ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004797$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004798if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004799case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802esac
cristy8b350f62009-11-15 23:12:43 +00004803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004805 (eval "$ac_link") 2>&5
4806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004809 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4810# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4811# work properly (i.e., refer to `conftest.exe'), while it won't with
4812# `rm'.
4813for ac_file in conftest.exe conftest conftest.*; do
4814 test -f "$ac_file" || continue
4815 case $ac_file in
4816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4817 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4818 break;;
4819 * ) break;;
4820 esac
4821done
4822else
cristy8b350f62009-11-15 23:12:43 +00004823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004825as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4826See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004827fi
cristycd4c5312009-11-22 01:19:08 +00004828rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo "$ac_cv_exeext" >&6; }
4831
4832rm -f conftest.$ac_ext
4833EXEEXT=$ac_cv_exeext
4834ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837#include <stdio.h>
4838int
4839main ()
4840{
4841FILE *f = fopen ("conftest.out", "w");
4842 return ferror (f) || fclose (f) != 0;
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848ac_clean_files="$ac_clean_files conftest.out"
4849# Check that the compiler produces executables we can run. If not, either
4850# the compiler is broken, or we cross compile.
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4852$as_echo_n "checking whether we are cross compiling... " >&6; }
4853if test "$cross_compiling" != yes; then
4854 { { ac_try="$ac_link"
4855case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858esac
4859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4860$as_echo "$ac_try_echo"; } >&5
4861 (eval "$ac_link") 2>&5
4862 ac_status=$?
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865 if { ac_try='./conftest$ac_cv_exeext'
4866 { { case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871$as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_try") 2>&5
4873 ac_status=$?
4874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }; }; then
4876 cross_compiling=no
4877 else
4878 if test "$cross_compiling" = maybe; then
4879 cross_compiling=yes
4880 else
4881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004883as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004884If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004885See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004886 fi
4887 fi
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4890$as_echo "$cross_compiling" >&6; }
4891
4892rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4893ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004895$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004896if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004897 $as_echo_n "(cached) " >&6
4898else
cristy8b350f62009-11-15 23:12:43 +00004899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004900/* end confdefs.h. */
4901
4902int
4903main ()
4904{
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
4910rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004911if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004912case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915esac
cristy8b350f62009-11-15 23:12:43 +00004916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4917$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004918 (eval "$ac_compile") 2>&5
4919 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4921 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004922 for ac_file in conftest.o conftest.obj conftest.*; do
4923 test -f "$ac_file" || continue;
4924 case $ac_file in
4925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4926 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4927 break;;
4928 esac
4929done
4930else
4931 $as_echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
cristy8b350f62009-11-15 23:12:43 +00004934{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004936as_fn_error $? "cannot compute suffix of object files: cannot compile
4937See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004938fi
cristy3ed852e2009-09-05 21:47:34 +00004939rm -f conftest.$ac_cv_objext conftest.$ac_ext
4940fi
cristy8b350f62009-11-15 23:12:43 +00004941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004942$as_echo "$ac_cv_objext" >&6; }
4943OBJEXT=$ac_cv_objext
4944ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004947if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004948 $as_echo_n "(cached) " >&6
4949else
cristy8b350f62009-11-15 23:12:43 +00004950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004951/* end confdefs.h. */
4952
4953int
4954main ()
4955{
4956#ifndef __GNUC__
4957 choke me
4958#endif
4959
4960 ;
4961 return 0;
4962}
4963_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004964if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004965 ac_compiler_gnu=yes
4966else
cristy8b350f62009-11-15 23:12:43 +00004967 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004968fi
cristy3ed852e2009-09-05 21:47:34 +00004969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970ac_cv_c_compiler_gnu=$ac_compiler_gnu
4971
4972fi
cristy8b350f62009-11-15 23:12:43 +00004973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004974$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4975if test $ac_compiler_gnu = yes; then
4976 GCC=yes
4977else
4978 GCC=
4979fi
4980ac_test_CFLAGS=${CFLAGS+set}
4981ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004983$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004984if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004985 $as_echo_n "(cached) " >&6
4986else
4987 ac_save_c_werror_flag=$ac_c_werror_flag
4988 ac_c_werror_flag=yes
4989 ac_cv_prog_cc_g=no
4990 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004992/* end confdefs.h. */
4993
4994int
4995main ()
4996{
4997
4998 ;
4999 return 0;
5000}
5001_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005002if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005003 ac_cv_prog_cc_g=yes
5004else
cristy8b350f62009-11-15 23:12:43 +00005005 CFLAGS=""
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005007/* end confdefs.h. */
5008
5009int
5010main ()
5011{
5012
5013 ;
5014 return 0;
5015}
5016_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005017if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005018
cristy8b350f62009-11-15 23:12:43 +00005019else
5020 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005021 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005023/* end confdefs.h. */
5024
5025int
5026main ()
5027{
5028
5029 ;
5030 return 0;
5031}
5032_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005033if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005034 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005035fi
cristy3ed852e2009-09-05 21:47:34 +00005036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
cristy3ed852e2009-09-05 21:47:34 +00005038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
cristy3ed852e2009-09-05 21:47:34 +00005040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_c_werror_flag=$ac_save_c_werror_flag
5042fi
cristy8b350f62009-11-15 23:12:43 +00005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005044$as_echo "$ac_cv_prog_cc_g" >&6; }
5045if test "$ac_test_CFLAGS" = set; then
5046 CFLAGS=$ac_save_CFLAGS
5047elif test $ac_cv_prog_cc_g = yes; then
5048 if test "$GCC" = yes; then
5049 CFLAGS="-g -O2"
5050 else
5051 CFLAGS="-g"
5052 fi
5053else
5054 if test "$GCC" = yes; then
5055 CFLAGS="-O2"
5056 else
5057 CFLAGS=
5058 fi
5059fi
cristy8b350f62009-11-15 23:12:43 +00005060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005061$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005062if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005063 $as_echo_n "(cached) " >&6
5064else
5065 ac_cv_prog_cc_c89=no
5066ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005068/* end confdefs.h. */
5069#include <stdarg.h>
5070#include <stdio.h>
5071#include <sys/types.h>
5072#include <sys/stat.h>
5073/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5074struct buf { int x; };
5075FILE * (*rcsopen) (struct buf *, struct stat *, int);
5076static char *e (p, i)
5077 char **p;
5078 int i;
5079{
5080 return p[i];
5081}
5082static char *f (char * (*g) (char **, int), char **p, ...)
5083{
5084 char *s;
5085 va_list v;
5086 va_start (v,p);
5087 s = g (p, va_arg (v,int));
5088 va_end (v);
5089 return s;
5090}
5091
5092/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5093 function prototypes and stuff, but not '\xHH' hex character constants.
5094 These don't provoke an error unfortunately, instead are silently treated
5095 as 'x'. The following induces an error, until -std is added to get
5096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5097 array size at least. It's necessary to write '\x00'==0 to get something
5098 that's true only with -std. */
5099int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5100
5101/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5102 inside strings and character constants. */
5103#define FOO(x) 'x'
5104int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5105
5106int test (int i, double x);
5107struct s1 {int (*f) (int a);};
5108struct s2 {int (*f) (double a);};
5109int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5110int argc;
5111char **argv;
5112int
5113main ()
5114{
5115return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5116 ;
5117 return 0;
5118}
5119_ACEOF
5120for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5122do
5123 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005124 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005125 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005126fi
cristy3ed852e2009-09-05 21:47:34 +00005127rm -f core conftest.err conftest.$ac_objext
5128 test "x$ac_cv_prog_cc_c89" != "xno" && break
5129done
5130rm -f conftest.$ac_ext
5131CC=$ac_save_CC
5132
5133fi
5134# AC_CACHE_VAL
5135case "x$ac_cv_prog_cc_c89" in
5136 x)
cristy8b350f62009-11-15 23:12:43 +00005137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005138$as_echo "none needed" >&6; } ;;
5139 xno)
cristy8b350f62009-11-15 23:12:43 +00005140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo "unsupported" >&6; } ;;
5142 *)
5143 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005145$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5146esac
cristy8b350f62009-11-15 23:12:43 +00005147if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005148
cristy8b350f62009-11-15 23:12:43 +00005149fi
cristy3ed852e2009-09-05 21:47:34 +00005150
5151ac_ext=c
5152ac_cpp='$CPP $CPPFLAGS'
5153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005156
cristy73bd4a52010-10-05 11:24:23 +00005157depcc="$CC" am_compiler_list=
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5160$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005161if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005162 $as_echo_n "(cached) " >&6
5163else
5164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5165 # We make a subdir and do the tests there. Otherwise we can end up
5166 # making bogus files that we don't know about and never remove. For
5167 # instance it was reported that on HP-UX the gcc test will end up
5168 # making a dummy file named `D' -- because `-MD' means `put the output
5169 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005170 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005171 mkdir conftest.dir
5172 # Copy depcomp to subdir because otherwise we won't find it if we're
5173 # using a relative directory.
5174 cp "$am_depcomp" conftest.dir
5175 cd conftest.dir
5176 # We will build objects and dependencies in a subdirectory because
5177 # it helps to detect inapplicable dependency modes. For instance
5178 # both Tru64's cc and ICC support -MD to output dependencies as a
5179 # side effect of compilation, but ICC will put the dependencies in
5180 # the current directory while Tru64 will put them in the object
5181 # directory.
5182 mkdir sub
5183
5184 am_cv_CC_dependencies_compiler_type=none
5185 if test "$am_compiler_list" = ""; then
5186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5187 fi
5188 am__universal=false
5189 case " $depcc " in #(
5190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5191 esac
5192
5193 for depmode in $am_compiler_list; do
5194 # Setup a source with many dependencies, because some compilers
5195 # like to wrap large dependency lists on column 80 (with \), and
5196 # we should not choose a depcomp mode which is confused by this.
5197 #
5198 # We need to recreate these files for each test, as the compiler may
5199 # overwrite some of them when testing with obscure command lines.
5200 # This happens at least with the AIX C compiler.
5201 : > sub/conftest.c
5202 for i in 1 2 3 4 5 6; do
5203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5204 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5205 # Solaris 8's {/usr,}/bin/sh.
5206 touch sub/conftst$i.h
5207 done
5208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5209
5210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5211 # mode. It turns out that the SunPro C++ compiler does not properly
5212 # handle `-M -o', and we need to detect this. Also, some Intel
5213 # versions had trouble with output in subdirs
5214 am__obj=sub/conftest.${OBJEXT-o}
5215 am__minus_obj="-o $am__obj"
5216 case $depmode in
5217 gcc)
5218 # This depmode causes a compiler race in universal mode.
5219 test "$am__universal" = false || continue
5220 ;;
5221 nosideeffect)
5222 # after this tag, mechanisms are not by side-effect, so they'll
5223 # only be used when explicitly requested
5224 if test "x$enable_dependency_tracking" = xyes; then
5225 continue
5226 else
5227 break
5228 fi
5229 ;;
cristy7247bba2012-02-05 16:37:27 +00005230 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005231 # This compiler won't grok `-c -o', but also, the minuso test has
5232 # not run yet. These depmodes are late enough in the game, and
5233 # so weak that their functioning should not be impacted.
5234 am__obj=conftest.${OBJEXT-o}
5235 am__minus_obj=
5236 ;;
5237 none) break ;;
5238 esac
5239 if depmode=$depmode \
5240 source=sub/conftest.c object=$am__obj \
5241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5243 >/dev/null 2>conftest.err &&
5244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5248 # icc doesn't choke on unknown options, it will just issue warnings
5249 # or remarks (even with -Werror). So we grep stderr for any message
5250 # that says an option was ignored or not supported.
5251 # When given -MP, icc 7.0 and 7.1 complain thusly:
5252 # icc: Command line warning: ignoring option '-M'; no argument required
5253 # The diagnosis changed in icc 8.0:
5254 # icc: Command line remark: option '-MP' not supported
5255 if (grep 'ignoring option' conftest.err ||
5256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5257 am_cv_CC_dependencies_compiler_type=$depmode
5258 break
5259 fi
5260 fi
5261 done
5262
5263 cd ..
5264 rm -rf conftest.dir
5265else
5266 am_cv_CC_dependencies_compiler_type=none
5267fi
5268
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5273
5274 if
5275 test "x$enable_dependency_tracking" != xno \
5276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5277 am__fastdepCC_TRUE=
5278 am__fastdepCC_FALSE='#'
5279else
5280 am__fastdepCC_TRUE='#'
5281 am__fastdepCC_FALSE=
5282fi
5283
5284
cristy3ed852e2009-09-05 21:47:34 +00005285
cristya0b81c32010-01-22 02:54:33 +00005286ac_ext=c
5287ac_cpp='$CPP $CPPFLAGS'
5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5292$as_echo_n "checking how to run the C preprocessor... " >&6; }
5293# On Suns, sometimes $CPP names a directory.
5294if test -n "$CPP" && test -d "$CPP"; then
5295 CPP=
5296fi
5297if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005298 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005299 $as_echo_n "(cached) " >&6
5300else
5301 # Double quotes because CPP needs to be expanded
5302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5303 do
5304 ac_preproc_ok=false
5305for ac_c_preproc_warn_flag in '' yes
5306do
5307 # Use a header file that comes with gcc, so configuring glibc
5308 # with a fresh cross-compiler works.
5309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5310 # <limits.h> exists even on freestanding compilers.
5311 # On the NeXT, cc -E runs the code through the compiler's parser,
5312 # not just through cpp. "Syntax error" is here to catch this case.
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h. */
5315#ifdef __STDC__
5316# include <limits.h>
5317#else
5318# include <assert.h>
5319#endif
5320 Syntax error
5321_ACEOF
5322if ac_fn_c_try_cpp "$LINENO"; then :
5323
5324else
5325 # Broken: fails on valid input.
5326continue
5327fi
cristyda16f162011-02-19 23:52:17 +00005328rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005329
5330 # OK, works on sane cases. Now check whether nonexistent headers
5331 # can be detected and how.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <ac_nonexistent.h>
5335_ACEOF
5336if ac_fn_c_try_cpp "$LINENO"; then :
5337 # Broken: success on invalid input.
5338continue
5339else
5340 # Passes both tests.
5341ac_preproc_ok=:
5342break
5343fi
cristyda16f162011-02-19 23:52:17 +00005344rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005345
5346done
5347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005348rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005349if $ac_preproc_ok; then :
5350 break
5351fi
5352
5353 done
5354 ac_cv_prog_CPP=$CPP
5355
5356fi
5357 CPP=$ac_cv_prog_CPP
5358else
5359 ac_cv_prog_CPP=$CPP
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5362$as_echo "$CPP" >&6; }
5363ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379 Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384 # Broken: fails on valid input.
5385continue
5386fi
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5397continue
5398else
5399 # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
cristyda16f162011-02-19 23:52:17 +00005403rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005407rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005408if $ac_preproc_ok; then :
5409
5410else
5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005413as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5414See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005415fi
5416
5417ac_ext=c
5418ac_cpp='$CPP $CPPFLAGS'
5419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421ac_compiler_gnu=$ac_cv_c_compiler_gnu
5422
5423
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5425$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005426if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005427 $as_echo_n "(cached) " >&6
5428else
5429 if test -z "$GREP"; then
5430 ac_path_GREP_found=false
5431 # Loop through the user's path and test for each of PROGNAME-LIST
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_prog in grep ggrep; do
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5440 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5441# Check for GNU ac_path_GREP and select it if it is found.
5442 # Check for GNU $ac_path_GREP
5443case `"$ac_path_GREP" --version 2>&1` in
5444*GNU*)
5445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5446*)
5447 ac_count=0
5448 $as_echo_n 0123456789 >"conftest.in"
5449 while :
5450 do
5451 cat "conftest.in" "conftest.in" >"conftest.tmp"
5452 mv "conftest.tmp" "conftest.in"
5453 cp "conftest.in" "conftest.nl"
5454 $as_echo 'GREP' >> "conftest.nl"
5455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5457 as_fn_arith $ac_count + 1 && ac_count=$as_val
5458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5459 # Best one so far, save it but keep looking for a better one
5460 ac_cv_path_GREP="$ac_path_GREP"
5461 ac_path_GREP_max=$ac_count
5462 fi
5463 # 10*(2^10) chars as input seems more than enough
5464 test $ac_count -gt 10 && break
5465 done
5466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5467esac
5468
5469 $ac_path_GREP_found && break 3
5470 done
5471 done
5472 done
5473IFS=$as_save_IFS
5474 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005475 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005476 fi
5477else
5478 ac_cv_path_GREP=$GREP
5479fi
5480
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5483$as_echo "$ac_cv_path_GREP" >&6; }
5484 GREP="$ac_cv_path_GREP"
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5488$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005489if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005490 $as_echo_n "(cached) " >&6
5491else
5492 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5493 then ac_cv_path_EGREP="$GREP -E"
5494 else
5495 if test -z "$EGREP"; then
5496 ac_path_EGREP_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_prog in egrep; do
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5506 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5507# Check for GNU ac_path_EGREP and select it if it is found.
5508 # Check for GNU $ac_path_EGREP
5509case `"$ac_path_EGREP" --version 2>&1` in
5510*GNU*)
5511 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5512*)
5513 ac_count=0
5514 $as_echo_n 0123456789 >"conftest.in"
5515 while :
5516 do
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo 'EGREP' >> "conftest.nl"
5521 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_EGREP="$ac_path_EGREP"
5527 ac_path_EGREP_max=$ac_count
5528 fi
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5531 done
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533esac
5534
5535 $ac_path_EGREP_found && break 3
5536 done
5537 done
5538 done
5539IFS=$as_save_IFS
5540 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005541 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005542 fi
5543else
5544 ac_cv_path_EGREP=$EGREP
5545fi
5546
5547 fi
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5550$as_echo "$ac_cv_path_EGREP" >&6; }
5551 EGREP="$ac_cv_path_EGREP"
5552
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5555$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005556if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005557 $as_echo_n "(cached) " >&6
5558else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h. */
5561#include <stdlib.h>
5562#include <stdarg.h>
5563#include <string.h>
5564#include <float.h>
5565
5566int
5567main ()
5568{
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_header_stdc=yes
5576else
5577 ac_cv_header_stdc=no
5578fi
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580
5581if test $ac_cv_header_stdc = yes; then
5582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h. */
5585#include <string.h>
5586
5587_ACEOF
5588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589 $EGREP "memchr" >/dev/null 2>&1; then :
5590
5591else
5592 ac_cv_header_stdc=no
5593fi
5594rm -f conftest*
5595
5596fi
5597
5598if test $ac_cv_header_stdc = yes; then
5599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h. */
5602#include <stdlib.h>
5603
5604_ACEOF
5605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5606 $EGREP "free" >/dev/null 2>&1; then :
5607
5608else
5609 ac_cv_header_stdc=no
5610fi
5611rm -f conftest*
5612
5613fi
5614
5615if test $ac_cv_header_stdc = yes; then
5616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5617 if test "$cross_compiling" = yes; then :
5618 :
5619else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h. */
5622#include <ctype.h>
5623#include <stdlib.h>
5624#if ((' ' & 0x0FF) == 0x020)
5625# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5626# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5627#else
5628# define ISLOWER(c) \
5629 (('a' <= (c) && (c) <= 'i') \
5630 || ('j' <= (c) && (c) <= 'r') \
5631 || ('s' <= (c) && (c) <= 'z'))
5632# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5633#endif
5634
5635#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5636int
5637main ()
5638{
5639 int i;
5640 for (i = 0; i < 256; i++)
5641 if (XOR (islower (i), ISLOWER (i))
5642 || toupper (i) != TOUPPER (i))
5643 return 2;
5644 return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_run "$LINENO"; then :
5648
5649else
5650 ac_cv_header_stdc=no
5651fi
5652rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5653 conftest.$ac_objext conftest.beam conftest.$ac_ext
5654fi
5655
5656fi
5657fi
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5659$as_echo "$ac_cv_header_stdc" >&6; }
5660if test $ac_cv_header_stdc = yes; then
5661
5662$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5663
5664fi
5665
5666# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5667for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5668 inttypes.h stdint.h unistd.h
5669do :
5670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5671ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5672"
cristy98dddb52010-11-04 00:30:15 +00005673if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005674 cat >>confdefs.h <<_ACEOF
5675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676_ACEOF
5677
5678fi
5679
5680done
5681
5682
5683
5684 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005685if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005686 MINIX=yes
5687else
5688 MINIX=
5689fi
5690
5691
5692 if test "$MINIX" = yes; then
5693
5694$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5695
5696
5697$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5698
5699
5700$as_echo "#define _MINIX 1" >>confdefs.h
5701
5702 fi
5703
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5706$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005707if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005708 $as_echo_n "(cached) " >&6
5709else
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h. */
5712
5713# define __EXTENSIONS__ 1
5714 $ac_includes_default
5715int
5716main ()
5717{
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_safe_to_define___extensions__=yes
5725else
5726 ac_cv_safe_to_define___extensions__=no
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5731$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5732 test $ac_cv_safe_to_define___extensions__ = yes &&
5733 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5734
5735 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5736
5737 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5738
5739 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5740
5741 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5742
5743
5744
5745# Check for programs
5746ac_ext=c
5747ac_cpp='$CPP $CPPFLAGS'
5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}gcc; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005756if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005757 $as_echo_n "(cached) " >&6
5758else
5759 if test -n "$CC"; then
5760 ac_cv_prog_CC="$CC" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774 done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789fi
5790if test -z "$ac_cv_prog_CC"; then
5791 ac_ct_CC=$CC
5792 # Extract the first word of "gcc", so it can be a program name with args.
5793set dummy gcc; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005796if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005797 $as_echo_n "(cached) " >&6
5798else
5799 if test -n "$ac_ct_CC"; then
5800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_prog_ac_ct_CC="gcc"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814 done
5815IFS=$as_save_IFS
5816
5817fi
5818fi
5819ac_ct_CC=$ac_cv_prog_ac_ct_CC
5820if test -n "$ac_ct_CC"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5822$as_echo "$ac_ct_CC" >&6; }
5823else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828 if test "x$ac_ct_CC" = x; then
5829 CC=""
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832yes:)
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835ac_tool_warned=yes ;;
5836esac
5837 CC=$ac_ct_CC
5838 fi
5839else
5840 CC="$ac_cv_prog_CC"
5841fi
5842
5843if test -z "$CC"; then
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5846set dummy ${ac_tool_prefix}cc; ac_word=$2
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005849if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005850 $as_echo_n "(cached) " >&6
5851else
5852 if test -n "$CC"; then
5853 ac_cv_prog_CC="$CC" # Let the user override the test.
5854else
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_CC="${ac_tool_prefix}cc"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866done
5867 done
5868IFS=$as_save_IFS
5869
5870fi
5871fi
5872CC=$ac_cv_prog_CC
5873if test -n "$CC"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5875$as_echo "$CC" >&6; }
5876else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878$as_echo "no" >&6; }
5879fi
5880
5881
5882 fi
5883fi
5884if test -z "$CC"; then
5885 # Extract the first word of "cc", so it can be a program name with args.
5886set dummy cc; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005889if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005890 $as_echo_n "(cached) " >&6
5891else
5892 if test -n "$CC"; then
5893 ac_cv_prog_CC="$CC" # Let the user override the test.
5894else
5895 ac_prog_rejected=no
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5904 ac_prog_rejected=yes
5905 continue
5906 fi
5907 ac_cv_prog_CC="cc"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912 done
5913IFS=$as_save_IFS
5914
5915if test $ac_prog_rejected = yes; then
5916 # We found a bogon in the path, so make sure we never use it.
5917 set dummy $ac_cv_prog_CC
5918 shift
5919 if test $# != 0; then
5920 # We chose a different compiler from the bogus one.
5921 # However, it has the same basename, so the bogon will be chosen
5922 # first if we set CC to just the basename; use the full file name.
5923 shift
5924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5925 fi
5926fi
5927fi
5928fi
5929CC=$ac_cv_prog_CC
5930if test -n "$CC"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5932$as_echo "$CC" >&6; }
5933else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
5936fi
5937
5938
5939fi
5940if test -z "$CC"; then
5941 if test -n "$ac_tool_prefix"; then
5942 for ac_prog in cl.exe
5943 do
5944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005948if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005949 $as_echo_n "(cached) " >&6
5950else
5951 if test -n "$CC"; then
5952 ac_cv_prog_CC="$CC" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965done
5966 done
5967IFS=$as_save_IFS
5968
5969fi
5970fi
5971CC=$ac_cv_prog_CC
5972if test -n "$CC"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5974$as_echo "$CC" >&6; }
5975else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977$as_echo "no" >&6; }
5978fi
5979
5980
5981 test -n "$CC" && break
5982 done
5983fi
5984if test -z "$CC"; then
5985 ac_ct_CC=$CC
5986 for ac_prog in cl.exe
5987do
5988 # Extract the first word of "$ac_prog", so it can be a program name with args.
5989set dummy $ac_prog; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005992if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005993 $as_echo_n "(cached) " >&6
5994else
5995 if test -n "$ac_ct_CC"; then
5996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_ac_ct_CC="$ac_prog"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010 done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015ac_ct_CC=$ac_cv_prog_ac_ct_CC
6016if test -n "$ac_ct_CC"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6018$as_echo "$ac_ct_CC" >&6; }
6019else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025 test -n "$ac_ct_CC" && break
6026done
6027
6028 if test "x$ac_ct_CC" = x; then
6029 CC=""
6030 else
6031 case $cross_compiling:$ac_tool_warned in
6032yes:)
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6035ac_tool_warned=yes ;;
6036esac
6037 CC=$ac_ct_CC
6038 fi
6039fi
6040
6041fi
6042
6043
6044test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006046as_fn_error $? "no acceptable C compiler found in \$PATH
6047See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006048
6049# Provide some information about the compiler.
6050$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6051set X $ac_compile
6052ac_compiler=$2
6053for ac_option in --version -v -V -qversion; do
6054 { { ac_try="$ac_compiler $ac_option >&5"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6060$as_echo "$ac_try_echo"; } >&5
6061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6062 ac_status=$?
6063 if test -s conftest.err; then
6064 sed '10a\
6065... rest of stderr output deleted ...
6066 10q' conftest.err >conftest.er1
6067 cat conftest.er1 >&5
6068 fi
6069 rm -f conftest.er1 conftest.err
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }
6072done
6073
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006076if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h. */
6081
6082int
6083main ()
6084{
6085#ifndef __GNUC__
6086 choke me
6087#endif
6088
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094 ac_compiler_gnu=yes
6095else
6096 ac_compiler_gnu=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099ac_cv_c_compiler_gnu=$ac_compiler_gnu
6100
6101fi
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6103$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6104if test $ac_compiler_gnu = yes; then
6105 GCC=yes
6106else
6107 GCC=
6108fi
6109ac_test_CFLAGS=${CFLAGS+set}
6110ac_save_CFLAGS=$CFLAGS
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6112$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006113if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006114 $as_echo_n "(cached) " >&6
6115else
6116 ac_save_c_werror_flag=$ac_c_werror_flag
6117 ac_c_werror_flag=yes
6118 ac_cv_prog_cc_g=no
6119 CFLAGS="-g"
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h. */
6122
6123int
6124main ()
6125{
6126
6127 ;
6128 return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"; then :
6132 ac_cv_prog_cc_g=yes
6133else
6134 CFLAGS=""
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h. */
6137
6138int
6139main ()
6140{
6141
6142 ;
6143 return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_compile "$LINENO"; then :
6147
6148else
6149 ac_c_werror_flag=$ac_save_c_werror_flag
6150 CFLAGS="-g"
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h. */
6153
6154int
6155main ()
6156{
6157
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163 ac_cv_prog_cc_g=yes
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168fi
6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 ac_c_werror_flag=$ac_save_c_werror_flag
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6173$as_echo "$ac_cv_prog_cc_g" >&6; }
6174if test "$ac_test_CFLAGS" = set; then
6175 CFLAGS=$ac_save_CFLAGS
6176elif test $ac_cv_prog_cc_g = yes; then
6177 if test "$GCC" = yes; then
6178 CFLAGS="-g -O2"
6179 else
6180 CFLAGS="-g"
6181 fi
6182else
6183 if test "$GCC" = yes; then
6184 CFLAGS="-O2"
6185 else
6186 CFLAGS=
6187 fi
6188fi
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6190$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006191if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006192 $as_echo_n "(cached) " >&6
6193else
6194 ac_cv_prog_cc_c89=no
6195ac_save_CC=$CC
6196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h. */
6198#include <stdarg.h>
6199#include <stdio.h>
6200#include <sys/types.h>
6201#include <sys/stat.h>
6202/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6203struct buf { int x; };
6204FILE * (*rcsopen) (struct buf *, struct stat *, int);
6205static char *e (p, i)
6206 char **p;
6207 int i;
6208{
6209 return p[i];
6210}
6211static char *f (char * (*g) (char **, int), char **p, ...)
6212{
6213 char *s;
6214 va_list v;
6215 va_start (v,p);
6216 s = g (p, va_arg (v,int));
6217 va_end (v);
6218 return s;
6219}
6220
6221/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6222 function prototypes and stuff, but not '\xHH' hex character constants.
6223 These don't provoke an error unfortunately, instead are silently treated
6224 as 'x'. The following induces an error, until -std is added to get
6225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6226 array size at least. It's necessary to write '\x00'==0 to get something
6227 that's true only with -std. */
6228int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6229
6230/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6231 inside strings and character constants. */
6232#define FOO(x) 'x'
6233int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6234
6235int test (int i, double x);
6236struct s1 {int (*f) (int a);};
6237struct s2 {int (*f) (double a);};
6238int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6239int argc;
6240char **argv;
6241int
6242main ()
6243{
6244return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6251do
6252 CC="$ac_save_CC $ac_arg"
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_prog_cc_c89=$ac_arg
6255fi
6256rm -f core conftest.err conftest.$ac_objext
6257 test "x$ac_cv_prog_cc_c89" != "xno" && break
6258done
6259rm -f conftest.$ac_ext
6260CC=$ac_save_CC
6261
6262fi
6263# AC_CACHE_VAL
6264case "x$ac_cv_prog_cc_c89" in
6265 x)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6267$as_echo "none needed" >&6; } ;;
6268 xno)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6270$as_echo "unsupported" >&6; } ;;
6271 *)
6272 CC="$CC $ac_cv_prog_cc_c89"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6274$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6275esac
6276if test "x$ac_cv_prog_cc_c89" != xno; then :
6277
6278fi
6279
6280ac_ext=c
6281ac_cpp='$CPP $CPPFLAGS'
6282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285
cristy73bd4a52010-10-05 11:24:23 +00006286depcc="$CC" am_compiler_list=
6287
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6289$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006290if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006291 $as_echo_n "(cached) " >&6
6292else
6293 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6294 # We make a subdir and do the tests there. Otherwise we can end up
6295 # making bogus files that we don't know about and never remove. For
6296 # instance it was reported that on HP-UX the gcc test will end up
6297 # making a dummy file named `D' -- because `-MD' means `put the output
6298 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006299 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006300 mkdir conftest.dir
6301 # Copy depcomp to subdir because otherwise we won't find it if we're
6302 # using a relative directory.
6303 cp "$am_depcomp" conftest.dir
6304 cd conftest.dir
6305 # We will build objects and dependencies in a subdirectory because
6306 # it helps to detect inapplicable dependency modes. For instance
6307 # both Tru64's cc and ICC support -MD to output dependencies as a
6308 # side effect of compilation, but ICC will put the dependencies in
6309 # the current directory while Tru64 will put them in the object
6310 # directory.
6311 mkdir sub
6312
6313 am_cv_CC_dependencies_compiler_type=none
6314 if test "$am_compiler_list" = ""; then
6315 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6316 fi
6317 am__universal=false
6318 case " $depcc " in #(
6319 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6320 esac
6321
6322 for depmode in $am_compiler_list; do
6323 # Setup a source with many dependencies, because some compilers
6324 # like to wrap large dependency lists on column 80 (with \), and
6325 # we should not choose a depcomp mode which is confused by this.
6326 #
6327 # We need to recreate these files for each test, as the compiler may
6328 # overwrite some of them when testing with obscure command lines.
6329 # This happens at least with the AIX C compiler.
6330 : > sub/conftest.c
6331 for i in 1 2 3 4 5 6; do
6332 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6333 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6334 # Solaris 8's {/usr,}/bin/sh.
6335 touch sub/conftst$i.h
6336 done
6337 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6338
6339 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6340 # mode. It turns out that the SunPro C++ compiler does not properly
6341 # handle `-M -o', and we need to detect this. Also, some Intel
6342 # versions had trouble with output in subdirs
6343 am__obj=sub/conftest.${OBJEXT-o}
6344 am__minus_obj="-o $am__obj"
6345 case $depmode in
6346 gcc)
6347 # This depmode causes a compiler race in universal mode.
6348 test "$am__universal" = false || continue
6349 ;;
6350 nosideeffect)
6351 # after this tag, mechanisms are not by side-effect, so they'll
6352 # only be used when explicitly requested
6353 if test "x$enable_dependency_tracking" = xyes; then
6354 continue
6355 else
6356 break
6357 fi
6358 ;;
cristy7247bba2012-02-05 16:37:27 +00006359 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006360 # This compiler won't grok `-c -o', but also, the minuso test has
6361 # not run yet. These depmodes are late enough in the game, and
6362 # so weak that their functioning should not be impacted.
6363 am__obj=conftest.${OBJEXT-o}
6364 am__minus_obj=
6365 ;;
6366 none) break ;;
6367 esac
6368 if depmode=$depmode \
6369 source=sub/conftest.c object=$am__obj \
6370 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6371 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6372 >/dev/null 2>conftest.err &&
6373 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6375 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6377 # icc doesn't choke on unknown options, it will just issue warnings
6378 # or remarks (even with -Werror). So we grep stderr for any message
6379 # that says an option was ignored or not supported.
6380 # When given -MP, icc 7.0 and 7.1 complain thusly:
6381 # icc: Command line warning: ignoring option '-M'; no argument required
6382 # The diagnosis changed in icc 8.0:
6383 # icc: Command line remark: option '-MP' not supported
6384 if (grep 'ignoring option' conftest.err ||
6385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6386 am_cv_CC_dependencies_compiler_type=$depmode
6387 break
6388 fi
6389 fi
6390 done
6391
6392 cd ..
6393 rm -rf conftest.dir
6394else
6395 am_cv_CC_dependencies_compiler_type=none
6396fi
6397
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6400$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6401CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6402
6403 if
6404 test "x$enable_dependency_tracking" != xno \
6405 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6406 am__fastdepCC_TRUE=
6407 am__fastdepCC_FALSE='#'
6408else
6409 am__fastdepCC_TRUE='#'
6410 am__fastdepCC_FALSE=
6411fi
6412
6413
cristy95646052009-11-28 23:05:30 +00006414ac_ext=cpp
6415ac_cpp='$CXXCPP $CPPFLAGS'
6416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6419if test -z "$CXX"; then
6420 if test -n "$CCC"; then
6421 CXX=$CCC
6422 else
6423 if test -n "$ac_tool_prefix"; then
6424 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6425 do
6426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6427set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006430if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006431 $as_echo_n "(cached) " >&6
6432else
6433 if test -n "$CXX"; then
6434 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447done
6448 done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453CXX=$ac_cv_prog_CXX
6454if test -n "$CXX"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6456$as_echo "$CXX" >&6; }
6457else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462
6463 test -n "$CXX" && break
6464 done
6465fi
6466if test -z "$CXX"; then
6467 ac_ct_CXX=$CXX
6468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6469do
6470 # Extract the first word of "$ac_prog", so it can be a program name with args.
6471set dummy $ac_prog; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006474if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006475 $as_echo_n "(cached) " >&6
6476else
6477 if test -n "$ac_ct_CXX"; then
6478 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_CXX="$ac_prog"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491done
6492 done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6498if test -n "$ac_ct_CXX"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6500$as_echo "$ac_ct_CXX" >&6; }
6501else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507 test -n "$ac_ct_CXX" && break
6508done
6509
6510 if test "x$ac_ct_CXX" = x; then
6511 CXX="g++"
6512 else
6513 case $cross_compiling:$ac_tool_warned in
6514yes:)
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517ac_tool_warned=yes ;;
6518esac
6519 CXX=$ac_ct_CXX
6520 fi
6521fi
6522
6523 fi
6524fi
6525# Provide some information about the compiler.
6526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6527set X $ac_compile
6528ac_compiler=$2
6529for ac_option in --version -v -V -qversion; do
6530 { { ac_try="$ac_compiler $ac_option >&5"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6536$as_echo "$ac_try_echo"; } >&5
6537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6538 ac_status=$?
6539 if test -s conftest.err; then
6540 sed '10a\
6541... rest of stderr output deleted ...
6542 10q' conftest.err >conftest.er1
6543 cat conftest.er1 >&5
6544 fi
6545 rm -f conftest.er1 conftest.err
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }
6548done
6549
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6551$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006552if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006553 $as_echo_n "(cached) " >&6
6554else
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556/* end confdefs.h. */
6557
6558int
6559main ()
6560{
6561#ifndef __GNUC__
6562 choke me
6563#endif
6564
6565 ;
6566 return 0;
6567}
6568_ACEOF
6569if ac_fn_cxx_try_compile "$LINENO"; then :
6570 ac_compiler_gnu=yes
6571else
6572 ac_compiler_gnu=no
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6576
6577fi
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6579$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6580if test $ac_compiler_gnu = yes; then
6581 GXX=yes
6582else
6583 GXX=
6584fi
6585ac_test_CXXFLAGS=${CXXFLAGS+set}
6586ac_save_CXXFLAGS=$CXXFLAGS
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6588$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006589if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006590 $as_echo_n "(cached) " >&6
6591else
6592 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6593 ac_cxx_werror_flag=yes
6594 ac_cv_prog_cxx_g=no
6595 CXXFLAGS="-g"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h. */
6598
6599int
6600main ()
6601{
6602
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607if ac_fn_cxx_try_compile "$LINENO"; then :
6608 ac_cv_prog_cxx_g=yes
6609else
6610 CXXFLAGS=""
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h. */
6613
6614int
6615main ()
6616{
6617
6618 ;
6619 return 0;
6620}
6621_ACEOF
6622if ac_fn_cxx_try_compile "$LINENO"; then :
6623
6624else
6625 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6626 CXXFLAGS="-g"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h. */
6629
6630int
6631main ()
6632{
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
6638if ac_fn_cxx_try_compile "$LINENO"; then :
6639 ac_cv_prog_cxx_g=yes
6640fi
6641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642fi
6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644fi
6645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6647fi
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6649$as_echo "$ac_cv_prog_cxx_g" >&6; }
6650if test "$ac_test_CXXFLAGS" = set; then
6651 CXXFLAGS=$ac_save_CXXFLAGS
6652elif test $ac_cv_prog_cxx_g = yes; then
6653 if test "$GXX" = yes; then
6654 CXXFLAGS="-g -O2"
6655 else
6656 CXXFLAGS="-g"
6657 fi
6658else
6659 if test "$GXX" = yes; then
6660 CXXFLAGS="-O2"
6661 else
6662 CXXFLAGS=
6663 fi
6664fi
6665ac_ext=c
6666ac_cpp='$CPP $CPPFLAGS'
6667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6669ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670
cristy73bd4a52010-10-05 11:24:23 +00006671depcc="$CXX" am_compiler_list=
6672
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6674$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006675if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006676 $as_echo_n "(cached) " >&6
6677else
6678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6679 # We make a subdir and do the tests there. Otherwise we can end up
6680 # making bogus files that we don't know about and never remove. For
6681 # instance it was reported that on HP-UX the gcc test will end up
6682 # making a dummy file named `D' -- because `-MD' means `put the output
6683 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006684 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006685 mkdir conftest.dir
6686 # Copy depcomp to subdir because otherwise we won't find it if we're
6687 # using a relative directory.
6688 cp "$am_depcomp" conftest.dir
6689 cd conftest.dir
6690 # We will build objects and dependencies in a subdirectory because
6691 # it helps to detect inapplicable dependency modes. For instance
6692 # both Tru64's cc and ICC support -MD to output dependencies as a
6693 # side effect of compilation, but ICC will put the dependencies in
6694 # the current directory while Tru64 will put them in the object
6695 # directory.
6696 mkdir sub
6697
6698 am_cv_CXX_dependencies_compiler_type=none
6699 if test "$am_compiler_list" = ""; then
6700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6701 fi
6702 am__universal=false
6703 case " $depcc " in #(
6704 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6705 esac
6706
6707 for depmode in $am_compiler_list; do
6708 # Setup a source with many dependencies, because some compilers
6709 # like to wrap large dependency lists on column 80 (with \), and
6710 # we should not choose a depcomp mode which is confused by this.
6711 #
6712 # We need to recreate these files for each test, as the compiler may
6713 # overwrite some of them when testing with obscure command lines.
6714 # This happens at least with the AIX C compiler.
6715 : > sub/conftest.c
6716 for i in 1 2 3 4 5 6; do
6717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6718 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6719 # Solaris 8's {/usr,}/bin/sh.
6720 touch sub/conftst$i.h
6721 done
6722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6723
6724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6725 # mode. It turns out that the SunPro C++ compiler does not properly
6726 # handle `-M -o', and we need to detect this. Also, some Intel
6727 # versions had trouble with output in subdirs
6728 am__obj=sub/conftest.${OBJEXT-o}
6729 am__minus_obj="-o $am__obj"
6730 case $depmode in
6731 gcc)
6732 # This depmode causes a compiler race in universal mode.
6733 test "$am__universal" = false || continue
6734 ;;
6735 nosideeffect)
6736 # after this tag, mechanisms are not by side-effect, so they'll
6737 # only be used when explicitly requested
6738 if test "x$enable_dependency_tracking" = xyes; then
6739 continue
6740 else
6741 break
6742 fi
6743 ;;
cristy7247bba2012-02-05 16:37:27 +00006744 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006745 # This compiler won't grok `-c -o', but also, the minuso test has
6746 # not run yet. These depmodes are late enough in the game, and
6747 # so weak that their functioning should not be impacted.
6748 am__obj=conftest.${OBJEXT-o}
6749 am__minus_obj=
6750 ;;
6751 none) break ;;
6752 esac
6753 if depmode=$depmode \
6754 source=sub/conftest.c object=$am__obj \
6755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6757 >/dev/null 2>conftest.err &&
6758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6762 # icc doesn't choke on unknown options, it will just issue warnings
6763 # or remarks (even with -Werror). So we grep stderr for any message
6764 # that says an option was ignored or not supported.
6765 # When given -MP, icc 7.0 and 7.1 complain thusly:
6766 # icc: Command line warning: ignoring option '-M'; no argument required
6767 # The diagnosis changed in icc 8.0:
6768 # icc: Command line remark: option '-MP' not supported
6769 if (grep 'ignoring option' conftest.err ||
6770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6771 am_cv_CXX_dependencies_compiler_type=$depmode
6772 break
6773 fi
6774 fi
6775 done
6776
6777 cd ..
6778 rm -rf conftest.dir
6779else
6780 am_cv_CXX_dependencies_compiler_type=none
6781fi
6782
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6785$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6786CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6787
6788 if
6789 test "x$enable_dependency_tracking" != xno \
6790 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6791 am__fastdepCXX_TRUE=
6792 am__fastdepCXX_FALSE='#'
6793else
6794 am__fastdepCXX_TRUE='#'
6795 am__fastdepCXX_FALSE=
6796fi
6797
6798
cristy8b350f62009-11-15 23:12:43 +00006799 case $ac_cv_prog_cc_stdc in #(
6800 no) :
6801 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6802 *) :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006804$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006805if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006806 $as_echo_n "(cached) " >&6
6807else
6808 ac_cv_prog_cc_c99=no
6809ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006811/* end confdefs.h. */
6812#include <stdarg.h>
6813#include <stdbool.h>
6814#include <stdlib.h>
6815#include <wchar.h>
6816#include <stdio.h>
6817
6818// Check varargs macros. These examples are taken from C99 6.10.3.5.
6819#define debug(...) fprintf (stderr, __VA_ARGS__)
6820#define showlist(...) puts (#__VA_ARGS__)
6821#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6822static void
6823test_varargs_macros (void)
6824{
6825 int x = 1234;
6826 int y = 5678;
6827 debug ("Flag");
6828 debug ("X = %d\n", x);
6829 showlist (The first, second, and third items.);
6830 report (x>y, "x is %d but y is %d", x, y);
6831}
6832
6833// Check long long types.
6834#define BIG64 18446744073709551615ull
6835#define BIG32 4294967295ul
6836#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6837#if !BIG_OK
6838 your preprocessor is broken;
6839#endif
6840#if BIG_OK
6841#else
6842 your preprocessor is broken;
6843#endif
6844static long long int bignum = -9223372036854775807LL;
6845static unsigned long long int ubignum = BIG64;
6846
6847struct incomplete_array
6848{
6849 int datasize;
6850 double data[];
6851};
6852
6853struct named_init {
6854 int number;
6855 const wchar_t *name;
6856 double average;
6857};
6858
6859typedef const char *ccp;
6860
6861static inline int
6862test_restrict (ccp restrict text)
6863{
6864 // See if C++-style comments work.
6865 // Iterate through items via the restricted pointer.
6866 // Also check for declarations in for loops.
6867 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6868 continue;
6869 return 0;
6870}
6871
6872// Check varargs and va_copy.
6873static void
6874test_varargs (const char *format, ...)
6875{
6876 va_list args;
6877 va_start (args, format);
6878 va_list args_copy;
6879 va_copy (args_copy, args);
6880
6881 const char *str;
6882 int number;
6883 float fnumber;
6884
6885 while (*format)
6886 {
6887 switch (*format++)
6888 {
6889 case 's': // string
6890 str = va_arg (args_copy, const char *);
6891 break;
6892 case 'd': // int
6893 number = va_arg (args_copy, int);
6894 break;
6895 case 'f': // float
6896 fnumber = va_arg (args_copy, double);
6897 break;
6898 default:
6899 break;
6900 }
6901 }
6902 va_end (args_copy);
6903 va_end (args);
6904}
6905
6906int
6907main ()
6908{
6909
6910 // Check bool.
6911 _Bool success = false;
6912
6913 // Check restrict.
6914 if (test_restrict ("String literal") == 0)
6915 success = true;
6916 char *restrict newvar = "Another string";
6917
6918 // Check varargs.
6919 test_varargs ("s, d' f .", "string", 65, 34.234);
6920 test_varargs_macros ();
6921
6922 // Check flexible array members.
6923 struct incomplete_array *ia =
6924 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6925 ia->datasize = 10;
6926 for (int i = 0; i < ia->datasize; ++i)
6927 ia->data[i] = i * 1.234;
6928
6929 // Check named initializers.
6930 struct named_init ni = {
6931 .number = 34,
6932 .name = L"Test wide string",
6933 .average = 543.34343,
6934 };
6935
6936 ni.number = 58;
6937
6938 int dynamic_array[ni.number];
6939 dynamic_array[ni.number - 1] = 543;
6940
6941 // work around unused variable warnings
6942 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6943 || dynamic_array[ni.number - 1] != 543);
6944
6945 ;
6946 return 0;
6947}
6948_ACEOF
6949for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6950do
6951 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006952 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006954fi
cristy3ed852e2009-09-05 21:47:34 +00006955rm -f core conftest.err conftest.$ac_objext
6956 test "x$ac_cv_prog_cc_c99" != "xno" && break
6957done
6958rm -f conftest.$ac_ext
6959CC=$ac_save_CC
6960
6961fi
6962# AC_CACHE_VAL
6963case "x$ac_cv_prog_cc_c99" in
6964 x)
cristy8b350f62009-11-15 23:12:43 +00006965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006966$as_echo "none needed" >&6; } ;;
6967 xno)
cristy8b350f62009-11-15 23:12:43 +00006968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006969$as_echo "unsupported" >&6; } ;;
6970 *)
6971 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006973$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6974esac
cristy8b350f62009-11-15 23:12:43 +00006975if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006976 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6977else
cristy8b350f62009-11-15 23:12:43 +00006978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006979$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006980if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006981 $as_echo_n "(cached) " >&6
6982else
6983 ac_cv_prog_cc_c89=no
6984ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006986/* end confdefs.h. */
6987#include <stdarg.h>
6988#include <stdio.h>
6989#include <sys/types.h>
6990#include <sys/stat.h>
6991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6992struct buf { int x; };
6993FILE * (*rcsopen) (struct buf *, struct stat *, int);
6994static char *e (p, i)
6995 char **p;
6996 int i;
6997{
6998 return p[i];
6999}
7000static char *f (char * (*g) (char **, int), char **p, ...)
7001{
7002 char *s;
7003 va_list v;
7004 va_start (v,p);
7005 s = g (p, va_arg (v,int));
7006 va_end (v);
7007 return s;
7008}
7009
7010/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7011 function prototypes and stuff, but not '\xHH' hex character constants.
7012 These don't provoke an error unfortunately, instead are silently treated
7013 as 'x'. The following induces an error, until -std is added to get
7014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7015 array size at least. It's necessary to write '\x00'==0 to get something
7016 that's true only with -std. */
7017int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7018
7019/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7020 inside strings and character constants. */
7021#define FOO(x) 'x'
7022int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7023
7024int test (int i, double x);
7025struct s1 {int (*f) (int a);};
7026struct s2 {int (*f) (double a);};
7027int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7028int argc;
7029char **argv;
7030int
7031main ()
7032{
7033return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7034 ;
7035 return 0;
7036}
7037_ACEOF
7038for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7040do
7041 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007042 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007043 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007044fi
cristy3ed852e2009-09-05 21:47:34 +00007045rm -f core conftest.err conftest.$ac_objext
7046 test "x$ac_cv_prog_cc_c89" != "xno" && break
7047done
7048rm -f conftest.$ac_ext
7049CC=$ac_save_CC
7050
7051fi
7052# AC_CACHE_VAL
7053case "x$ac_cv_prog_cc_c89" in
7054 x)
cristy8b350f62009-11-15 23:12:43 +00007055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007056$as_echo "none needed" >&6; } ;;
7057 xno)
cristy8b350f62009-11-15 23:12:43 +00007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007059$as_echo "unsupported" >&6; } ;;
7060 *)
7061 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007063$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7064esac
cristy8b350f62009-11-15 23:12:43 +00007065if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007066 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7067else
7068 ac_cv_prog_cc_stdc=no
7069fi
7070
cristy3ed852e2009-09-05 21:47:34 +00007071fi
cristy3ed852e2009-09-05 21:47:34 +00007072 ;;
7073esac
cristy8b350f62009-11-15 23:12:43 +00007074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007075$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007076 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007077 $as_echo_n "(cached) " >&6
7078fi
7079
cristy8b350f62009-11-15 23:12:43 +00007080 case $ac_cv_prog_cc_stdc in #(
7081 no) :
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7083$as_echo "unsupported" >&6; } ;; #(
7084 '') :
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7086$as_echo "none needed" >&6; } ;; #(
7087 *) :
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7090esac
7091
cristy3ed852e2009-09-05 21:47:34 +00007092ac_ext=c
7093ac_cpp='$CPP $CPPFLAGS'
7094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007098$as_echo_n "checking how to run the C preprocessor... " >&6; }
7099# On Suns, sometimes $CPP names a directory.
7100if test -n "$CPP" && test -d "$CPP"; then
7101 CPP=
7102fi
7103if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007104 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007105 $as_echo_n "(cached) " >&6
7106else
7107 # Double quotes because CPP needs to be expanded
7108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7109 do
7110 ac_preproc_ok=false
7111for ac_c_preproc_warn_flag in '' yes
7112do
7113 # Use a header file that comes with gcc, so configuring glibc
7114 # with a fresh cross-compiler works.
7115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7116 # <limits.h> exists even on freestanding compilers.
7117 # On the NeXT, cc -E runs the code through the compiler's parser,
7118 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007120/* end confdefs.h. */
7121#ifdef __STDC__
7122# include <limits.h>
7123#else
7124# include <assert.h>
7125#endif
7126 Syntax error
7127_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007128if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007129
cristy8b350f62009-11-15 23:12:43 +00007130else
cristy3ed852e2009-09-05 21:47:34 +00007131 # Broken: fails on valid input.
7132continue
7133fi
cristyda16f162011-02-19 23:52:17 +00007134rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007135
7136 # OK, works on sane cases. Now check whether nonexistent headers
7137 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007139/* end confdefs.h. */
7140#include <ac_nonexistent.h>
7141_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007142if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007143 # Broken: success on invalid input.
7144continue
7145else
cristy3ed852e2009-09-05 21:47:34 +00007146 # Passes both tests.
7147ac_preproc_ok=:
7148break
7149fi
cristyda16f162011-02-19 23:52:17 +00007150rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007151
7152done
7153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007154rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007155if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007156 break
7157fi
7158
7159 done
7160 ac_cv_prog_CPP=$CPP
7161
7162fi
7163 CPP=$ac_cv_prog_CPP
7164else
7165 ac_cv_prog_CPP=$CPP
7166fi
cristy8b350f62009-11-15 23:12:43 +00007167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007168$as_echo "$CPP" >&6; }
7169ac_preproc_ok=false
7170for ac_c_preproc_warn_flag in '' yes
7171do
7172 # Use a header file that comes with gcc, so configuring glibc
7173 # with a fresh cross-compiler works.
7174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7175 # <limits.h> exists even on freestanding compilers.
7176 # On the NeXT, cc -E runs the code through the compiler's parser,
7177 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007179/* end confdefs.h. */
7180#ifdef __STDC__
7181# include <limits.h>
7182#else
7183# include <assert.h>
7184#endif
7185 Syntax error
7186_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007187if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007188
cristy8b350f62009-11-15 23:12:43 +00007189else
cristy3ed852e2009-09-05 21:47:34 +00007190 # Broken: fails on valid input.
7191continue
7192fi
cristyda16f162011-02-19 23:52:17 +00007193rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007194
7195 # OK, works on sane cases. Now check whether nonexistent headers
7196 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007198/* end confdefs.h. */
7199#include <ac_nonexistent.h>
7200_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007201if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007202 # Broken: success on invalid input.
7203continue
7204else
cristy3ed852e2009-09-05 21:47:34 +00007205 # Passes both tests.
7206ac_preproc_ok=:
7207break
7208fi
cristyda16f162011-02-19 23:52:17 +00007209rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007210
7211done
7212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007213rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007214if $ac_preproc_ok; then :
7215
cristy3ed852e2009-09-05 21:47:34 +00007216else
cristy8b350f62009-11-15 23:12:43 +00007217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007219as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7220See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007221fi
7222
7223ac_ext=c
7224ac_cpp='$CPP $CPPFLAGS'
7225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
cristy73bd4a52010-10-05 11:24:23 +00007229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7230$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007231if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007232 $as_echo_n "(cached) " >&6
7233else
7234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7235 for ac_i in 1 2 3 4 5 6 7; do
7236 ac_script="$ac_script$as_nl$ac_script"
7237 done
7238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7239 { ac_script=; unset ac_script;}
7240 if test -z "$SED"; then
7241 ac_path_SED_found=false
7242 # Loop through the user's path and test for each of PROGNAME-LIST
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_prog in sed gsed; do
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7252# Check for GNU ac_path_SED and select it if it is found.
7253 # Check for GNU $ac_path_SED
7254case `"$ac_path_SED" --version 2>&1` in
7255*GNU*)
7256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7257*)
7258 ac_count=0
7259 $as_echo_n 0123456789 >"conftest.in"
7260 while :
7261 do
7262 cat "conftest.in" "conftest.in" >"conftest.tmp"
7263 mv "conftest.tmp" "conftest.in"
7264 cp "conftest.in" "conftest.nl"
7265 $as_echo '' >> "conftest.nl"
7266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7268 as_fn_arith $ac_count + 1 && ac_count=$as_val
7269 if test $ac_count -gt ${ac_path_SED_max-0}; then
7270 # Best one so far, save it but keep looking for a better one
7271 ac_cv_path_SED="$ac_path_SED"
7272 ac_path_SED_max=$ac_count
7273 fi
7274 # 10*(2^10) chars as input seems more than enough
7275 test $ac_count -gt 10 && break
7276 done
7277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7278esac
7279
7280 $ac_path_SED_found && break 3
7281 done
7282 done
7283 done
7284IFS=$as_save_IFS
7285 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007286 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007287 fi
7288else
7289 ac_cv_path_SED=$SED
7290fi
7291
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7294$as_echo "$ac_cv_path_SED" >&6; }
7295 SED="$ac_cv_path_SED"
7296 rm -f conftest.sed
7297
7298test -z "$SED" && SED=sed
7299Xsed="$SED -e 1s/^X//"
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7312$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007313if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007314 $as_echo_n "(cached) " >&6
7315else
7316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7317 then ac_cv_path_FGREP="$GREP -F"
7318 else
7319 if test -z "$FGREP"; then
7320 ac_path_FGREP_found=false
7321 # Loop through the user's path and test for each of PROGNAME-LIST
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_prog in fgrep; do
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7330 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7331# Check for GNU ac_path_FGREP and select it if it is found.
7332 # Check for GNU $ac_path_FGREP
7333case `"$ac_path_FGREP" --version 2>&1` in
7334*GNU*)
7335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7336*)
7337 ac_count=0
7338 $as_echo_n 0123456789 >"conftest.in"
7339 while :
7340 do
7341 cat "conftest.in" "conftest.in" >"conftest.tmp"
7342 mv "conftest.tmp" "conftest.in"
7343 cp "conftest.in" "conftest.nl"
7344 $as_echo 'FGREP' >> "conftest.nl"
7345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7347 as_fn_arith $ac_count + 1 && ac_count=$as_val
7348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7349 # Best one so far, save it but keep looking for a better one
7350 ac_cv_path_FGREP="$ac_path_FGREP"
7351 ac_path_FGREP_max=$ac_count
7352 fi
7353 # 10*(2^10) chars as input seems more than enough
7354 test $ac_count -gt 10 && break
7355 done
7356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7357esac
7358
7359 $ac_path_FGREP_found && break 3
7360 done
7361 done
7362 done
7363IFS=$as_save_IFS
7364 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007365 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007366 fi
7367else
7368 ac_cv_path_FGREP=$FGREP
7369fi
7370
7371 fi
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7374$as_echo "$ac_cv_path_FGREP" >&6; }
7375 FGREP="$ac_cv_path_FGREP"
7376
7377
7378test -z "$GREP" && GREP=grep
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
cristy0c60a692010-11-04 01:09:47 +00007396ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7397ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7398ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7399
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7401$as_echo_n "checking how to print strings... " >&6; }
7402# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007403if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007404 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7405 ECHO='print -r --'
7406elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7407 ECHO='printf %s\n'
7408else
7409 # Use this function as a fallback that always works.
7410 func_fallback_echo ()
7411 {
7412 eval 'cat <<_LTECHO_EOF
7413$1
7414_LTECHO_EOF'
7415 }
7416 ECHO='func_fallback_echo'
7417fi
7418
7419# func_echo_all arg...
7420# Invoke $ECHO with all args, space-separated.
7421func_echo_all ()
7422{
7423 $ECHO ""
7424}
7425
7426case "$ECHO" in
7427 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7428$as_echo "printf" >&6; } ;;
7429 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7430$as_echo "print -r" >&6; } ;;
7431 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7432$as_echo "cat" >&6; } ;;
7433esac
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
cristy73bd4a52010-10-05 11:24:23 +00007448
7449
7450# Check whether --with-gnu-ld was given.
7451if test "${with_gnu_ld+set}" = set; then :
7452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7453else
7454 with_gnu_ld=no
7455fi
7456
7457ac_prog=ld
7458if test "$GCC" = yes; then
7459 # Check if gcc -print-prog-name=ld gives a path.
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7461$as_echo_n "checking for ld used by $CC... " >&6; }
7462 case $host in
7463 *-*-mingw*)
7464 # gcc leaves a trailing carriage return which upsets mingw
7465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7466 *)
7467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7468 esac
7469 case $ac_prog in
7470 # Accept absolute paths.
7471 [\\/]* | ?:[\\/]*)
7472 re_direlt='/[^/][^/]*/\.\./'
7473 # Canonicalize the pathname of ld
7474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7477 done
7478 test -z "$LD" && LD="$ac_prog"
7479 ;;
7480 "")
7481 # If it fails, then pretend we aren't using GCC.
7482 ac_prog=ld
7483 ;;
7484 *)
7485 # If it is relative, then search for the first ld in PATH.
7486 with_gnu_ld=unknown
7487 ;;
7488 esac
7489elif test "$with_gnu_ld" = yes; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7491$as_echo_n "checking for GNU ld... " >&6; }
7492else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7494$as_echo_n "checking for non-GNU ld... " >&6; }
7495fi
cristyda16f162011-02-19 23:52:17 +00007496if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007497 $as_echo_n "(cached) " >&6
7498else
7499 if test -z "$LD"; then
7500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7501 for ac_dir in $PATH; do
7502 IFS="$lt_save_ifs"
7503 test -z "$ac_dir" && ac_dir=.
7504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7505 lt_cv_path_LD="$ac_dir/$ac_prog"
7506 # Check to see if the program is GNU ld. I'd rather use --version,
7507 # but apparently some variants of GNU ld only accept -v.
7508 # Break only if it was the GNU/non-GNU ld that we prefer.
7509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7510 *GNU* | *'with BFD'*)
7511 test "$with_gnu_ld" != no && break
7512 ;;
7513 *)
7514 test "$with_gnu_ld" != yes && break
7515 ;;
7516 esac
7517 fi
7518 done
7519 IFS="$lt_save_ifs"
7520else
7521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7522fi
7523fi
7524
7525LD="$lt_cv_path_LD"
7526if test -n "$LD"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7528$as_echo "$LD" >&6; }
7529else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531$as_echo "no" >&6; }
7532fi
cristy98dddb52010-11-04 00:30:15 +00007533test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7535$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007536if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007537 $as_echo_n "(cached) " >&6
7538else
7539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7540case `$LD -v 2>&1 </dev/null` in
7541*GNU* | *'with BFD'*)
7542 lt_cv_prog_gnu_ld=yes
7543 ;;
7544*)
7545 lt_cv_prog_gnu_ld=no
7546 ;;
7547esac
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7550$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7551with_gnu_ld=$lt_cv_prog_gnu_ld
7552
7553
7554
7555
7556
7557
7558
7559
7560
cristy3ed852e2009-09-05 21:47:34 +00007561
cristy837d6dc2010-02-27 01:16:57 +00007562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7563$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007564if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007565 $as_echo_n "(cached) " >&6
7566else
7567 ac_cv_prog_cc_c99=no
7568ac_save_CC=$CC
7569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h. */
7571#include <stdarg.h>
7572#include <stdbool.h>
7573#include <stdlib.h>
7574#include <wchar.h>
7575#include <stdio.h>
7576
7577// Check varargs macros. These examples are taken from C99 6.10.3.5.
7578#define debug(...) fprintf (stderr, __VA_ARGS__)
7579#define showlist(...) puts (#__VA_ARGS__)
7580#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7581static void
7582test_varargs_macros (void)
7583{
7584 int x = 1234;
7585 int y = 5678;
7586 debug ("Flag");
7587 debug ("X = %d\n", x);
7588 showlist (The first, second, and third items.);
7589 report (x>y, "x is %d but y is %d", x, y);
7590}
7591
7592// Check long long types.
7593#define BIG64 18446744073709551615ull
7594#define BIG32 4294967295ul
7595#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7596#if !BIG_OK
7597 your preprocessor is broken;
7598#endif
7599#if BIG_OK
7600#else
7601 your preprocessor is broken;
7602#endif
7603static long long int bignum = -9223372036854775807LL;
7604static unsigned long long int ubignum = BIG64;
7605
7606struct incomplete_array
7607{
7608 int datasize;
7609 double data[];
7610};
7611
7612struct named_init {
7613 int number;
7614 const wchar_t *name;
7615 double average;
7616};
7617
7618typedef const char *ccp;
7619
7620static inline int
7621test_restrict (ccp restrict text)
7622{
7623 // See if C++-style comments work.
7624 // Iterate through items via the restricted pointer.
7625 // Also check for declarations in for loops.
7626 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7627 continue;
7628 return 0;
7629}
7630
7631// Check varargs and va_copy.
7632static void
7633test_varargs (const char *format, ...)
7634{
7635 va_list args;
7636 va_start (args, format);
7637 va_list args_copy;
7638 va_copy (args_copy, args);
7639
7640 const char *str;
7641 int number;
7642 float fnumber;
7643
7644 while (*format)
7645 {
7646 switch (*format++)
7647 {
7648 case 's': // string
7649 str = va_arg (args_copy, const char *);
7650 break;
7651 case 'd': // int
7652 number = va_arg (args_copy, int);
7653 break;
7654 case 'f': // float
7655 fnumber = va_arg (args_copy, double);
7656 break;
7657 default:
7658 break;
7659 }
7660 }
7661 va_end (args_copy);
7662 va_end (args);
7663}
7664
7665int
7666main ()
7667{
7668
7669 // Check bool.
7670 _Bool success = false;
7671
7672 // Check restrict.
7673 if (test_restrict ("String literal") == 0)
7674 success = true;
7675 char *restrict newvar = "Another string";
7676
7677 // Check varargs.
7678 test_varargs ("s, d' f .", "string", 65, 34.234);
7679 test_varargs_macros ();
7680
7681 // Check flexible array members.
7682 struct incomplete_array *ia =
7683 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7684 ia->datasize = 10;
7685 for (int i = 0; i < ia->datasize; ++i)
7686 ia->data[i] = i * 1.234;
7687
7688 // Check named initializers.
7689 struct named_init ni = {
7690 .number = 34,
7691 .name = L"Test wide string",
7692 .average = 543.34343,
7693 };
7694
7695 ni.number = 58;
7696
7697 int dynamic_array[ni.number];
7698 dynamic_array[ni.number - 1] = 543;
7699
7700 // work around unused variable warnings
7701 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7702 || dynamic_array[ni.number - 1] != 543);
7703
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7709do
7710 CC="$ac_save_CC $ac_arg"
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712 ac_cv_prog_cc_c99=$ac_arg
7713fi
7714rm -f core conftest.err conftest.$ac_objext
7715 test "x$ac_cv_prog_cc_c99" != "xno" && break
7716done
7717rm -f conftest.$ac_ext
7718CC=$ac_save_CC
7719
7720fi
7721# AC_CACHE_VAL
7722case "x$ac_cv_prog_cc_c99" in
7723 x)
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7725$as_echo "none needed" >&6; } ;;
7726 xno)
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7728$as_echo "unsupported" >&6; } ;;
7729 *)
7730 CC="$CC $ac_cv_prog_cc_c99"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7732$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7733esac
7734if test "x$ac_cv_prog_cc_c99" != xno; then :
7735
7736fi
7737
7738
cristy73bd4a52010-10-05 11:24:23 +00007739if test "x$CC" != xcc; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7741$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7742else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7744$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7745fi
7746set dummy $CC; ac_cc=`$as_echo "$2" |
7747 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007748if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007749 $as_echo_n "(cached) " >&6
7750else
cristy73bd4a52010-10-05 11:24:23 +00007751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h. */
7753
7754int
7755main ()
7756{
7757
7758 ;
7759 return 0;
7760}
7761_ACEOF
7762# Make sure it works both with $CC and with simple cc.
7763# We do the test twice because some compilers refuse to overwrite an
7764# existing .o file with -o, though they will create one.
7765ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7766rm -f conftest2.*
7767if { { case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770esac
7771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7772$as_echo "$ac_try_echo"; } >&5
7773 (eval "$ac_try") 2>&5
7774 ac_status=$?
7775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776 test $ac_status = 0; } &&
7777 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779 *) ac_try_echo=$ac_try;;
7780esac
7781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7782$as_echo "$ac_try_echo"; } >&5
7783 (eval "$ac_try") 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; };
7787then
7788 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7789 if test "x$CC" != xcc; then
7790 # Test first that cc exists at all.
7791 if { ac_try='cc -c conftest.$ac_ext >&5'
7792 { { case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
7796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7797$as_echo "$ac_try_echo"; } >&5
7798 (eval "$ac_try") 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }; }; then
7802 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7803 rm -f conftest2.*
7804 if { { case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7809$as_echo "$ac_try_echo"; } >&5
7810 (eval "$ac_try") 2>&5
7811 ac_status=$?
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; } &&
7814 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817esac
7818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7819$as_echo "$ac_try_echo"; } >&5
7820 (eval "$ac_try") 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; };
7824 then
7825 # cc works too.
7826 :
7827 else
7828 # cc exists but doesn't like -o.
7829 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7830 fi
7831 fi
7832 fi
7833else
7834 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7835fi
7836rm -f core conftest*
7837
7838fi
7839if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841$as_echo "yes" >&6; }
7842else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
7845
7846$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7847
7848fi
7849
7850# FIXME: we rely on the cache variable name because
7851# there is no other way.
7852set dummy $CC
7853am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7854eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7855if test "$am_t" != yes; then
7856 # Losing compiler, so override with the script.
7857 # FIXME: It is wrong to rewrite CC.
7858 # But if we don't then we get into trouble of one sort or another.
7859 # A longer-term fix would be to have automake use am__CC in this case,
7860 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7861 CC="$am_aux_dir/compile $CC"
7862fi
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7866$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007867if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007868 $as_echo_n "(cached) " >&6
7869else
7870 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007871 ac_ext=c
7872ac_cpp='$CPP $CPPFLAGS'
7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877 ac_save_CFLAGS="$CFLAGS"
7878for 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" #
7879do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881/* end confdefs.h. */
7882
7883int
7884main ()
7885{
cristy24fc1fe2010-10-23 21:13:01 +00007886
cristy73bd4a52010-10-05 11:24:23 +00007887 ;
7888 return 0;
7889}
7890_ACEOF
7891if ac_fn_c_try_compile "$LINENO"; then :
7892 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7893fi
7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895done
7896 CFLAGS="$ac_save_CFLAGS"
7897 ac_ext=c
7898ac_cpp='$CPP $CPPFLAGS'
7899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7906$as_echo "$ac_cv_cflags_warn_all" >&6; }
7907case ".$ac_cv_cflags_warn_all" in
7908 .ok|.ok,*) ;;
7909 .|.no|.no,*)
7910 ;;
7911 *)
7912 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7913 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7914 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7915 ac_status=$?
7916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7917 test $ac_status = 0; }
7918 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7919 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7920 ac_status=$?
7921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7922 test $ac_status = 0; }
7923 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7924 fi
7925 ;;
nicolas6237c462010-10-05 06:11:49 +00007926esac
cristy3ed852e2009-09-05 21:47:34 +00007927
cristya0b81c32010-01-22 02:54:33 +00007928
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7930$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7931set x ${MAKE-make}
7932ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007933if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007934 $as_echo_n "(cached) " >&6
7935else
7936 cat >conftest.make <<\_ACEOF
7937SHELL = /bin/sh
7938all:
7939 @echo '@@@%%%=$(MAKE)=@@@%%%'
7940_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007941# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007942case `${MAKE-make} -f conftest.make 2>/dev/null` in
7943 *@@@%%%=?*=@@@%%%*)
7944 eval ac_cv_prog_make_${ac_make}_set=yes;;
7945 *)
7946 eval ac_cv_prog_make_${ac_make}_set=no;;
7947esac
7948rm -f conftest.make
7949fi
7950if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7952$as_echo "yes" >&6; }
7953 SET_MAKE=
7954else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957 SET_MAKE="MAKE=${MAKE-make}"
7958fi
7959
cristy8b350f62009-11-15 23:12:43 +00007960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007961$as_echo_n "checking whether ln -s works... " >&6; }
7962LN_S=$as_ln_s
7963if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007965$as_echo "yes" >&6; }
7966else
cristy8b350f62009-11-15 23:12:43 +00007967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007968$as_echo "no, using $LN_S" >&6; }
7969fi
7970
cristy73bd4a52010-10-05 11:24:23 +00007971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7972$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7973
7974# Check whether --with-dmalloc was given.
7975if test "${with_dmalloc+set}" = set; then :
7976 withval=$with_dmalloc; if test "$withval" = yes; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978$as_echo "yes" >&6; }
7979
7980$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7981
7982 LIBS="$LIBS -ldmalloc"
7983 LDFLAGS="$LDFLAGS -g"
7984else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
7991fi
7992
7993
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7996$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007997if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007998 $as_echo_n "(cached) " >&6
7999else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h. */
8002#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008003 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008004 static void
8005 foo(void) {
8006 exit(1);
8007 }
8008
8009int
8010main ()
8011{
8012
8013 ;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"; then :
8018 ax_cv___attribute__=yes
8019else
8020 ax_cv___attribute__=no
8021
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8027$as_echo "$ax_cv___attribute__" >&6; }
8028 if test "$ax_cv___attribute__" = "yes"; then
8029
8030$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8031
8032 fi
8033
8034
8035
cristy37110d62012-03-01 18:38:20 +00008036
8037
8038# Check whether --with-gcc-arch was given.
8039if test "${with_gcc_arch+set}" = set; then :
8040 withval=$with_gcc_arch; ax_gcc_arch=$withval
8041else
cristya32d1812012-03-02 19:24:21 +00008042 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008043fi
8044
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8047$as_echo_n "checking for gcc architecture flag... " >&6; }
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8049$as_echo "" >&6; }
8050if ${ax_cv_gcc_archflag+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052else
8053
8054ax_cv_gcc_archflag="unknown"
8055
8056if test "$GCC" = yes; then
8057
8058if test "x$ax_gcc_arch" = xyes; then
8059ax_gcc_arch=""
8060if test "$cross_compiling" = no; then
8061case $host_cpu in
8062 i[3456]86*|x86_64*) # use cpuid codes
8063
8064ac_ext=c
8065ac_cpp='$CPP $CPPFLAGS'
8066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8071$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8072if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074else
8075 if test "$cross_compiling" = yes; then :
8076 ax_cv_gcc_x86_cpuid_0=unknown
8077else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h. */
8080#include <stdio.h>
8081int
8082main ()
8083{
8084
8085 int op = 0, eax, ebx, ecx, edx;
8086 FILE *f;
8087 __asm__("cpuid"
8088 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8089 : "a" (op));
8090 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8091 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8092 fclose(f);
8093 return 0;
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_run "$LINENO"; then :
8100 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8101else
8102 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8103fi
8104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8105 conftest.$ac_objext conftest.beam conftest.$ac_ext
8106fi
8107
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8110$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8111ac_ext=c
8112ac_cpp='$CPP $CPPFLAGS'
8113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
8117
8118
8119ac_ext=c
8120ac_cpp='$CPP $CPPFLAGS'
8121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8126$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8127if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129else
8130 if test "$cross_compiling" = yes; then :
8131 ax_cv_gcc_x86_cpuid_1=unknown
8132else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h. */
8135#include <stdio.h>
8136int
8137main ()
8138{
8139
8140 int op = 1, eax, ebx, ecx, edx;
8141 FILE *f;
8142 __asm__("cpuid"
8143 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8144 : "a" (op));
8145 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8146 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8147 fclose(f);
8148 return 0;
8149
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_run "$LINENO"; then :
8155 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8156else
8157 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8158fi
8159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8160 conftest.$ac_objext conftest.beam conftest.$ac_ext
8161fi
8162
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8165$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8166ac_ext=c
8167ac_cpp='$CPP $CPPFLAGS'
8168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171
8172
8173 case $ax_cv_gcc_x86_cpuid_0 in
8174 *:756e6547:*:*) # Intel
8175 case $ax_cv_gcc_x86_cpuid_1 in
8176 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8177 *5??:*:*:*) ax_gcc_arch=pentium ;;
8178 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8179 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8180 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8181 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8182 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8183 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8184 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8185 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8186 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8187 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8188 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8189 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8190 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8191 case $host_cpu in
8192 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8193 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8194 esac ;;
8195 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8196 esac ;;
8197 *:68747541:*:*) # AMD
8198 case $ax_cv_gcc_x86_cpuid_1 in
8199 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8200 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8201 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8202 *60?:*:*:*) ax_gcc_arch=k7 ;;
8203 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8204 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8205 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8206 *6[68a]?:*:*:*)
8207
8208ac_ext=c
8209ac_cpp='$CPP $CPPFLAGS'
8210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8215$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8216if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218else
8219 if test "$cross_compiling" = yes; then :
8220 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8221else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h. */
8224#include <stdio.h>
8225int
8226main ()
8227{
8228
8229 int op = 0x80000006, eax, ebx, ecx, edx;
8230 FILE *f;
8231 __asm__("cpuid"
8232 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8233 : "a" (op));
8234 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8235 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8236 fclose(f);
8237 return 0;
8238
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243if ac_fn_c_try_run "$LINENO"; then :
8244 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8245else
8246 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8247fi
8248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8249 conftest.$ac_objext conftest.beam conftest.$ac_ext
8250fi
8251
8252fi
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8254$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8255ac_ext=c
8256ac_cpp='$CPP $CPPFLAGS'
8257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261 # L2 cache size
8262 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8263 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8264 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8265 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8266 esac ;;
8267 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8268 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8269 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8270 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8271 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8272 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8273 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8274 esac ;;
8275 *:746e6543:*:*) # IDT
8276 case $ax_cv_gcc_x86_cpuid_1 in
8277 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8278 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8279 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8280 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8281 esac ;;
8282 esac
8283 if test x"$ax_gcc_arch" = x; then # fallback
8284 case $host_cpu in
8285 i586*) ax_gcc_arch=pentium ;;
8286 i686*) ax_gcc_arch=pentiumpro ;;
8287 esac
8288 fi
8289 ;;
8290
8291 sparc*)
8292 # Extract the first word of "prtdiag", so it can be a program name with args.
8293set dummy prtdiag; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if ${ac_cv_path_PRTDIAG+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298else
8299 case $PRTDIAG in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8306for as_dir in $as_dummy
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316done
8317 done
8318IFS=$as_save_IFS
8319
8320 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8321 ;;
8322esac
8323fi
8324PRTDIAG=$ac_cv_path_PRTDIAG
8325if test -n "$PRTDIAG"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8327$as_echo "$PRTDIAG" >&6; }
8328else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
8332
8333
8334 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8335 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8336 case $cputype in
8337 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8338 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8339 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8340 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8341 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8342 *cypress*) ax_gcc_arch=cypress ;;
8343 esac ;;
8344
8345 alphaev5) ax_gcc_arch=ev5 ;;
8346 alphaev56) ax_gcc_arch=ev56 ;;
8347 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8348 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8349 alphaev6) ax_gcc_arch=ev6 ;;
8350 alphaev67) ax_gcc_arch=ev67 ;;
8351 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8352 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8353 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8354 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8355
8356 powerpc*)
8357 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8358 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8359 case $cputype in
8360 *750*) ax_gcc_arch="750 G3" ;;
8361 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8362 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8363 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8364 *970*) ax_gcc_arch="970 G5 power4";;
8365 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8366 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8367 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8368 *) ax_gcc_arch=$cputype ;;
8369 esac
8370 ax_gcc_arch="$ax_gcc_arch powerpc"
8371 ;;
8372esac
8373fi # not cross-compiling
8374fi # guess arch
8375
8376if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8377for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008378 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008379 flags="-mtune=$arch"
8380 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8381 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8382 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8383 else
8384 flags="-march=$arch -mcpu=$arch -m$arch"
8385 fi
8386 for flag in $flags; do
8387 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8389$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8390if eval \${$as_CACHEVAR+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392else
8393
8394 ax_check_save_flags=$CFLAGS
8395 CFLAGS="$CFLAGS $flag"
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h. */
8398
8399int
8400main ()
8401{
8402
8403 ;
8404 return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_compile "$LINENO"; then :
8408 eval "$as_CACHEVAR=yes"
8409else
8410 eval "$as_CACHEVAR=no"
8411fi
8412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8413 CFLAGS=$ax_check_save_flags
8414fi
8415eval ac_res=\$$as_CACHEVAR
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8417$as_echo "$ac_res" >&6; }
8418if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8419 ax_cv_gcc_archflag=$flag; break
8420else
8421 :
8422fi
8423
8424 done
8425 test "x$ax_cv_gcc_archflag" = xunknown || break
8426done
8427fi
8428
8429fi # $GCC=yes
8430
8431fi
8432
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8434$as_echo_n "checking for gcc architecture flag... " >&6; }
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8436$as_echo "$ax_cv_gcc_archflag" >&6; }
8437if test "x$ax_cv_gcc_archflag" = xunknown; then
8438 :
8439else
8440 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8441fi
8442
8443
8444
cristy73bd4a52010-10-05 11:24:23 +00008445if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8446 if test -n "$ac_tool_prefix"; then
8447 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8448set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008451if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008452 $as_echo_n "(cached) " >&6
8453else
8454 case $PKG_CONFIG in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8457 ;;
8458 *)
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460for as_dir in $PATH
8461do
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8469 fi
8470done
8471 done
8472IFS=$as_save_IFS
8473
8474 ;;
8475esac
8476fi
8477PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8478if test -n "$PKG_CONFIG"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8480$as_echo "$PKG_CONFIG" >&6; }
8481else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484fi
8485
8486
8487fi
8488if test -z "$ac_cv_path_PKG_CONFIG"; then
8489 ac_pt_PKG_CONFIG=$PKG_CONFIG
8490 # Extract the first word of "pkg-config", so it can be a program name with args.
8491set dummy pkg-config; ac_word=$2
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008494if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008495 $as_echo_n "(cached) " >&6
8496else
8497 case $ac_pt_PKG_CONFIG in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8500 ;;
8501 *)
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503for as_dir in $PATH
8504do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513done
8514 done
8515IFS=$as_save_IFS
8516
8517 ;;
8518esac
8519fi
8520ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8521if test -n "$ac_pt_PKG_CONFIG"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8523$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8524else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
8527fi
8528
8529 if test "x$ac_pt_PKG_CONFIG" = x; then
8530 PKG_CONFIG=""
8531 else
8532 case $cross_compiling:$ac_tool_warned in
8533yes:)
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536ac_tool_warned=yes ;;
8537esac
8538 PKG_CONFIG=$ac_pt_PKG_CONFIG
8539 fi
8540else
8541 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8542fi
8543
8544fi
8545if test -n "$PKG_CONFIG"; then
8546 _pkg_min_version=0.9.0
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8548$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8549 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8551$as_echo "yes" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
8555 PKG_CONFIG=""
8556 fi
8557
8558fi
cristy3ed852e2009-09-05 21:47:34 +00008559
8560#
cristy3ed852e2009-09-05 21:47:34 +00008561# Enable run-time checking.
8562#
8563# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008564if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008565 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8566else
8567 enable_bounds_checking='no'
8568fi
8569
8570
8571if test "$enable_bounds_checking" = yes; then
8572
cristy8b350f62009-11-15 23:12:43 +00008573$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008574
8575fi
8576
8577#
8578# Tests for Windows
8579#
8580
8581
cristy73bd4a52010-10-05 11:24:23 +00008582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8583$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008584if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008585 $as_echo_n "(cached) " >&6
8586else
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h. */
8589
8590int
8591main ()
8592{
8593#ifndef _MSC_VER
8594 choke me
8595#endif
8596
8597 ;
8598 return 0;
8599}
8600_ACEOF
8601if ac_fn_c_try_compile "$LINENO"; then :
8602 ax_compiler_ms=yes
8603else
8604 ax_compiler_ms=no
8605fi
8606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607ax_cv_c_compiler_ms=$ax_compiler_ms
8608
8609fi
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8611$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008612
8613GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008614native_win32_build='no'
8615cygwin_build='no'
8616case "${host_os}" in
8617 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008618 cygwin_build='yes'
8619 GDI32_LIBS='-lgdi32'
8620 ;;
8621 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008622 native_win32_build='yes'
8623 GDI32_LIBS='-lgdi32'
8624 ;;
8625esac
8626if test "${GDI32_LIBS}x" != 'x'; then
8627
cristy8b350f62009-11-15 23:12:43 +00008628$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008629
8630fi
8631
cristy73bd4a52010-10-05 11:24:23 +00008632 if test "${GDI32_LIBS}x" != 'x' ; then
8633 WINGDI32_DELEGATE_TRUE=
8634 WINGDI32_DELEGATE_FALSE='#'
8635else
8636 WINGDI32_DELEGATE_TRUE='#'
8637 WINGDI32_DELEGATE_FALSE=
8638fi
8639
8640 if test "${native_win32_build}" = 'yes' ; then
8641 WIN32_NATIVE_BUILD_TRUE=
8642 WIN32_NATIVE_BUILD_FALSE='#'
8643else
8644 WIN32_NATIVE_BUILD_TRUE='#'
8645 WIN32_NATIVE_BUILD_FALSE=
8646fi
8647
8648 if test "${cygwin_build}" = 'yes' ; then
8649 CYGWIN_BUILD_TRUE=
8650 CYGWIN_BUILD_FALSE='#'
8651else
8652 CYGWIN_BUILD_TRUE='#'
8653 CYGWIN_BUILD_FALSE=
8654fi
8655
8656 if test "x${CC}" = 'xcl.exe' ; then
8657 USING_CL_TRUE=
8658 USING_CL_FALSE='#'
8659else
8660 USING_CL_TRUE='#'
8661 USING_CL_FALSE=
8662fi
8663
cristy3ed852e2009-09-05 21:47:34 +00008664
8665WinPathScript="${srcdirfull}/winpath.sh"
8666
8667
8668#
8669# Compiler flags tweaks
8670#
8671if test "${GCC}" != "yes"; then
8672 case "${host}" in
8673 *-*-hpux* )
8674 # aCC: HP ANSI C++ B3910B A.03.34
8675 CFLAGS="${CFLAGS} -Wp,-H30000"
8676 if test -n "${CXXFLAGS}"; then
8677 CXXFLAGS='-AA'
8678 else
8679 CXXFLAGS="${CXXFLAGS} -AA"
8680 fi
8681 ;;
8682 *-dec-osf5.* )
8683 # Compaq alphaev68-dec-osf5.1 compiler
8684 if test -n "${CXXFLAGS}"; then
8685 CXXFLAGS='-std strict_ansi -noimplicit_include'
8686 else
8687 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8688 fi
8689 esac
8690fi
8691
8692# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008694$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008695if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008696 $as_echo_n "(cached) " >&6
8697else
8698
8699im_cv_ld_lazyload='none'
8700case "${host}" in
8701 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8702 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8703 im_cv_ld_lazyload='-Wl,-zlazyload'
8704 fi
8705 ;;
8706esac
8707
8708fi
cristy8b350f62009-11-15 23:12:43 +00008709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008710$as_echo "$im_cv_ld_lazyload" >&6; }
8711if test "${im_cv_ld_lazyload}" != 'none' ; then
8712 if test -z "${LDFLAGS}" ; then
8713 LDFLAGS="${im_cv_ld_lazyload}"
8714 else
8715 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8716 fi
8717fi
8718
8719case "$host" in
8720*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008721 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008722if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8724else
8725 build_osxuniversal=no
8726fi
8727
8728
8729 if test "${build_osxuniversal}" != no ; then
8730 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008731 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008732Please re-run configure with these options:
8733 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008734 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008735 fi
8736 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8737 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8738 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8739 fi
8740 ;;
8741esac
8742
cristy0151ae12011-10-28 16:32:29 +00008743#
8744# ARCH specific include directory
8745#
8746
cristy670aa3c2011-11-03 00:54:00 +00008747# Check whether --with-includearch-dir was given.
8748if test "${with_includearch_dir+set}" = set; then :
8749 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008750else
cristy670aa3c2011-11-03 00:54:00 +00008751 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008752fi
8753
8754
cristy670aa3c2011-11-03 00:54:00 +00008755eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008756
cristy0151ae12011-10-28 16:32:29 +00008757
8758#
8759# ARCH specific configuration directory
8760#
8761
cristy670aa3c2011-11-03 00:54:00 +00008762# Check whether --with-sharearch-dir was given.
8763if test "${with_sharearch_dir+set}" = set; then :
8764 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008765else
cristy408ebcd2011-11-14 01:36:57 +00008766 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008767fi
8768
8769
cristy670aa3c2011-11-03 00:54:00 +00008770eval "eval SHAREARCH_DIR=$sharearch_dir"
8771SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008772
cristy0151ae12011-10-28 16:32:29 +00008773
8774#
cristy3ed852e2009-09-05 21:47:34 +00008775# Enable support for threads
8776
8777# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008778if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008779 withval=$with_threads; with_threads=$withval
8780else
8781 with_threads='yes'
8782fi
8783
8784
8785have_threads=no
8786if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008787
8788
cristy73bd4a52010-10-05 11:24:23 +00008789ac_ext=c
8790ac_cpp='$CPP $CPPFLAGS'
8791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793ac_compiler_gnu=$ac_cv_c_compiler_gnu
8794
8795ax_pthread_ok=no
8796
8797# We used to check for pthread.h first, but this fails if pthread.h
8798# requires special compiler flags (e.g. on True64 or Sequent).
8799# It gets checked for in the link test anyway.
8800
8801# First of all, check if the user has set any of the PTHREAD_LIBS,
8802# etcetera environment variables, and if threads linking works using
8803# them:
8804if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8805 save_CFLAGS="$CFLAGS"
8806 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8807 save_LIBS="$LIBS"
8808 LIBS="$PTHREAD_LIBS $LIBS"
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8810$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812/* end confdefs.h. */
8813
8814/* Override any GCC internal prototype to avoid an error.
8815 Use char because int might match the return type of a GCC
8816 builtin and then its argument prototype would still apply. */
8817#ifdef __cplusplus
8818extern "C"
8819#endif
8820char pthread_join ();
8821int
8822main ()
8823{
8824return pthread_join ();
8825 ;
8826 return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830 ax_pthread_ok=yes
8831fi
8832rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8835$as_echo "$ax_pthread_ok" >&6; }
8836 if test x"$ax_pthread_ok" = xno; then
8837 PTHREAD_LIBS=""
8838 PTHREAD_CFLAGS=""
8839 fi
8840 LIBS="$save_LIBS"
8841 CFLAGS="$save_CFLAGS"
8842fi
8843
8844# We must check for the threads library under a number of different
8845# names; the ordering is very important because some systems
8846# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8847# libraries is broken (non-POSIX).
8848
8849# Create a list of thread flags to try. Items starting with a "-" are
8850# C compiler flags, and other items are library names, except for "none"
8851# which indicates that we try without any flags at all, and "pthread-config"
8852# which is a program returning the flags for the Pth emulation library.
8853
cristy18307f12011-12-30 01:20:16 +00008854ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008855
8856# The ordering *is* (sometimes) important. Some notes on the
8857# individual items follow:
8858
8859# pthreads: AIX (must check this before -lpthread)
8860# none: in case threads are in libc; should be tried before -Kthread and
8861# other compiler flags to prevent continual compiler warnings
8862# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8863# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8864# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8865# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8866# -pthreads: Solaris/gcc
8867# -mthreads: Mingw32/gcc, Lynx/gcc
8868# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8869# doesn't hurt to check since this sometimes defines pthreads too;
8870# also defines -D_REENTRANT)
8871# ... -mt is also the pthreads flag for HP/aCC
8872# pthread: Linux, etcetera
8873# --thread-safe: KAI C++
8874# pthread-config: use pthread-config program (for GNU Pth library)
8875
8876case "${host_cpu}-${host_os}" in
8877 *solaris*)
8878
8879 # On Solaris (at least, for some versions), libc contains stubbed
8880 # (non-functional) versions of the pthreads routines, so link-based
8881 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8882 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8883 # a function called by this macro, so we could check for that, but
8884 # who knows whether they'll stub that too in a future libc.) So,
8885 # we'll just look for -pthreads and -lpthread first:
8886
8887 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8888 ;;
8889
cristya316db12011-10-24 00:49:45 +00008890 *-darwin*)
8891 ax_pthread_flags="-pthread $ax_pthread_flags"
8892 ;;
cristy73bd4a52010-10-05 11:24:23 +00008893esac
8894
8895if test x"$ax_pthread_ok" = xno; then
8896for flag in $ax_pthread_flags; do
8897
8898 case $flag in
8899 none)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8901$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8902 ;;
8903
8904 -*)
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8906$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8907 PTHREAD_CFLAGS="$flag"
8908 ;;
8909
cristya316db12011-10-24 00:49:45 +00008910 pthread-config)
8911 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008912set dummy pthread-config; ac_word=$2
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008915if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008916 $as_echo_n "(cached) " >&6
8917else
8918 if test -n "$ax_pthread_config"; then
8919 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8920else
8921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922for as_dir in $PATH
8923do
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_ax_pthread_config="yes"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8931 fi
8932done
8933 done
8934IFS=$as_save_IFS
8935
8936 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8937fi
8938fi
8939ax_pthread_config=$ac_cv_prog_ax_pthread_config
8940if test -n "$ax_pthread_config"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8942$as_echo "$ax_pthread_config" >&6; }
8943else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
8946fi
8947
8948
cristya316db12011-10-24 00:49:45 +00008949 if test x"$ax_pthread_config" = xno; then continue; fi
8950 PTHREAD_CFLAGS="`pthread-config --cflags`"
8951 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8952 ;;
cristy73bd4a52010-10-05 11:24:23 +00008953
8954 *)
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8956$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8957 PTHREAD_LIBS="-l$flag"
8958 ;;
8959 esac
8960
8961 save_LIBS="$LIBS"
8962 save_CFLAGS="$CFLAGS"
8963 LIBS="$PTHREAD_LIBS $LIBS"
8964 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8965
8966 # Check for various functions. We must include pthread.h,
8967 # since some functions may be macros. (On the Sequent, we
8968 # need a special flag -Kthread to make this header compile.)
8969 # We check for pthread_join because it is in -lpthread on IRIX
8970 # while pthread_create is in libc. We check for pthread_attr_init
8971 # due to DEC craziness with -lpthreads. We check for
8972 # pthread_cleanup_push because it is one of the few pthread
8973 # functions on Solaris that doesn't have a non-functional libc stub.
8974 # We try pthread_create on general principles.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h. */
8977#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008978 static void routine(void *a) { a = 0; }
8979 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008980int
8981main ()
8982{
8983pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008984 pthread_create(&th, 0, start_routine, 0);
8985 pthread_join(th, 0);
8986 pthread_attr_init(&attr);
8987 pthread_cleanup_push(routine, 0);
8988 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008989 ;
8990 return 0;
8991}
8992_ACEOF
8993if ac_fn_c_try_link "$LINENO"; then :
8994 ax_pthread_ok=yes
8995fi
8996rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998
8999 LIBS="$save_LIBS"
9000 CFLAGS="$save_CFLAGS"
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9003$as_echo "$ax_pthread_ok" >&6; }
9004 if test "x$ax_pthread_ok" = xyes; then
9005 break;
9006 fi
9007
9008 PTHREAD_LIBS=""
9009 PTHREAD_CFLAGS=""
9010done
9011fi
9012
9013# Various other checks:
9014if test "x$ax_pthread_ok" = xyes; then
9015 save_LIBS="$LIBS"
9016 LIBS="$PTHREAD_LIBS $LIBS"
9017 save_CFLAGS="$CFLAGS"
9018 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9019
9020 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009022$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009023 attr_name=unknown
9024 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009026/* end confdefs.h. */
9027#include <pthread.h>
9028int
9029main ()
9030{
cristya316db12011-10-24 00:49:45 +00009031int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009032 ;
9033 return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"; then :
9037 attr_name=$attr; break
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009041 done
cristy73bd4a52010-10-05 11:24:23 +00009042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9043$as_echo "$attr_name" >&6; }
9044 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9045
9046cat >>confdefs.h <<_ACEOF
9047#define PTHREAD_CREATE_JOINABLE $attr_name
9048_ACEOF
9049
9050 fi
9051
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9053$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9054 flag=no
9055 case "${host_cpu}-${host_os}" in
9056 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9057 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9058 esac
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9060$as_echo "${flag}" >&6; }
9061 if test "x$flag" != xno; then
9062 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9063 fi
9064
cristya316db12011-10-24 00:49:45 +00009065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9066$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9067if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h. */
9073
9074 #include <pthread.h>
9075int
9076main ()
9077{
9078int i = PTHREAD_PRIO_INHERIT;
9079 ;
9080 return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084 ax_cv_PTHREAD_PRIO_INHERIT=yes
9085else
9086 ax_cv_PTHREAD_PRIO_INHERIT=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9093$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9094 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9095
9096$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9097
9098fi
9099
cristy73bd4a52010-10-05 11:24:23 +00009100 LIBS="$save_LIBS"
9101 CFLAGS="$save_CFLAGS"
9102
9103 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009104 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009105 for ac_prog in xlc_r cc_r
9106do
9107 # Extract the first word of "$ac_prog", so it can be a program name with args.
9108set dummy $ac_prog; ac_word=$2
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009111if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009112 $as_echo_n "(cached) " >&6
9113else
9114 if test -n "$PTHREAD_CC"; then
9115 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9116else
9117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118for as_dir in $PATH
9119do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_PTHREAD_CC="$ac_prog"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128done
9129 done
9130IFS=$as_save_IFS
9131
9132fi
9133fi
9134PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9135if test -n "$PTHREAD_CC"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9137$as_echo "$PTHREAD_CC" >&6; }
9138else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140$as_echo "no" >&6; }
9141fi
9142
9143
9144 test -n "$PTHREAD_CC" && break
9145done
9146test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9147
9148 else
9149 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009150 fi
cristy73bd4a52010-10-05 11:24:23 +00009151else
9152 PTHREAD_CC="$CC"
9153fi
9154
9155
9156
9157
9158
9159# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9160if test x"$ax_pthread_ok" = xyes; then
9161
9162$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9163
9164 :
9165else
9166 ax_pthread_ok=no
9167
9168fi
9169ac_ext=c
9170ac_cpp='$CPP $CPPFLAGS'
9171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173ac_compiler_gnu=$ac_cv_c_compiler_gnu
9174
9175
cristy7acf8fb2010-09-23 19:58:53 +00009176 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009177 have_threads=yes
9178 DEF_THREAD="$PTHREAD_CFLAGS"
9179 CFLAGS="$CFLAGS $DEF_THREAD"
9180 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9181 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00009183$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9184 CC="$PTHREAD_CC"
9185 fi
cristy55bf91c2010-09-24 00:29:41 +00009186
9187$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9188
cristy3ed852e2009-09-05 21:47:34 +00009189 fi
9190fi
9191
9192# Enable support for OpenMP
9193if test "$have_threads" != 'yes'; then
9194 ac_cv_prog_c_openmp=unsupported
9195fi
9196
9197 OPENMP_CFLAGS=
9198 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009199if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009200 enableval=$enable_openmp;
9201fi
9202
9203 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009205$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009206if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009207 $as_echo_n "(cached) " >&6
9208else
cristy8b350f62009-11-15 23:12:43 +00009209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009211
9212#ifndef _OPENMP
9213 choke me
9214#endif
9215#include <omp.h>
9216int main () { return omp_get_num_threads (); }
9217
9218_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009220 ac_cv_prog_c_openmp='none needed'
9221else
cristy8b350f62009-11-15 23:12:43 +00009222 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00009223 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
9224 ac_save_CFLAGS=$CFLAGS
9225 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009228
9229#ifndef _OPENMP
9230 choke me
9231#endif
9232#include <omp.h>
9233int main () { return omp_get_num_threads (); }
9234
9235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009236if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009238fi
cristy8b350f62009-11-15 23:12:43 +00009239rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009241 CFLAGS=$ac_save_CFLAGS
9242 if test "$ac_cv_prog_c_openmp" != unsupported; then
9243 break
9244 fi
9245 done
9246fi
cristy8b350f62009-11-15 23:12:43 +00009247rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009249fi
cristy8b350f62009-11-15 23:12:43 +00009250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009251$as_echo "$ac_cv_prog_c_openmp" >&6; }
9252 case $ac_cv_prog_c_openmp in #(
9253 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009254 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009255 *)
cristy8b350f62009-11-15 23:12:43 +00009256 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009257 esac
9258 fi
9259
9260
9261CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9262MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9263
cristy391f1ce2010-09-09 17:23:28 +00009264if test "$enable_openmp" != no; then
9265 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9266 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9267 fi
9268fi
cristy3ed852e2009-09-05 21:47:34 +00009269
cristy736173a2009-09-20 21:18:22 +00009270# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009271
9272
cristy73bd4a52010-10-05 11:24:23 +00009273ac_ext=c
9274ac_cpp='$CPP $CPPFLAGS'
9275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9277ac_compiler_gnu=$ac_cv_c_compiler_gnu
9278
9279ax_pthread_ok=no
9280
9281# We used to check for pthread.h first, but this fails if pthread.h
9282# requires special compiler flags (e.g. on True64 or Sequent).
9283# It gets checked for in the link test anyway.
9284
9285# First of all, check if the user has set any of the PTHREAD_LIBS,
9286# etcetera environment variables, and if threads linking works using
9287# them:
9288if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9289 save_CFLAGS="$CFLAGS"
9290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9291 save_LIBS="$LIBS"
9292 LIBS="$PTHREAD_LIBS $LIBS"
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9294$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h. */
9297
9298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301#ifdef __cplusplus
9302extern "C"
9303#endif
9304char pthread_join ();
9305int
9306main ()
9307{
9308return pthread_join ();
9309 ;
9310 return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314 ax_pthread_ok=yes
9315fi
9316rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9319$as_echo "$ax_pthread_ok" >&6; }
9320 if test x"$ax_pthread_ok" = xno; then
9321 PTHREAD_LIBS=""
9322 PTHREAD_CFLAGS=""
9323 fi
9324 LIBS="$save_LIBS"
9325 CFLAGS="$save_CFLAGS"
9326fi
9327
9328# We must check for the threads library under a number of different
9329# names; the ordering is very important because some systems
9330# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9331# libraries is broken (non-POSIX).
9332
9333# Create a list of thread flags to try. Items starting with a "-" are
9334# C compiler flags, and other items are library names, except for "none"
9335# which indicates that we try without any flags at all, and "pthread-config"
9336# which is a program returning the flags for the Pth emulation library.
9337
cristy18307f12011-12-30 01:20:16 +00009338ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009339
9340# The ordering *is* (sometimes) important. Some notes on the
9341# individual items follow:
9342
9343# pthreads: AIX (must check this before -lpthread)
9344# none: in case threads are in libc; should be tried before -Kthread and
9345# other compiler flags to prevent continual compiler warnings
9346# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9347# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9348# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9349# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9350# -pthreads: Solaris/gcc
9351# -mthreads: Mingw32/gcc, Lynx/gcc
9352# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9353# doesn't hurt to check since this sometimes defines pthreads too;
9354# also defines -D_REENTRANT)
9355# ... -mt is also the pthreads flag for HP/aCC
9356# pthread: Linux, etcetera
9357# --thread-safe: KAI C++
9358# pthread-config: use pthread-config program (for GNU Pth library)
9359
9360case "${host_cpu}-${host_os}" in
9361 *solaris*)
9362
9363 # On Solaris (at least, for some versions), libc contains stubbed
9364 # (non-functional) versions of the pthreads routines, so link-based
9365 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9366 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9367 # a function called by this macro, so we could check for that, but
9368 # who knows whether they'll stub that too in a future libc.) So,
9369 # we'll just look for -pthreads and -lpthread first:
9370
9371 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9372 ;;
9373
cristya316db12011-10-24 00:49:45 +00009374 *-darwin*)
9375 ax_pthread_flags="-pthread $ax_pthread_flags"
9376 ;;
cristy73bd4a52010-10-05 11:24:23 +00009377esac
9378
9379if test x"$ax_pthread_ok" = xno; then
9380for flag in $ax_pthread_flags; do
9381
9382 case $flag in
9383 none)
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9385$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9386 ;;
9387
9388 -*)
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9390$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9391 PTHREAD_CFLAGS="$flag"
9392 ;;
9393
cristya316db12011-10-24 00:49:45 +00009394 pthread-config)
9395 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009396set dummy pthread-config; ac_word=$2
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009399if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009400 $as_echo_n "(cached) " >&6
9401else
9402 if test -n "$ax_pthread_config"; then
9403 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9404else
9405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $PATH
9407do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9412 ac_cv_prog_ax_pthread_config="yes"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416done
9417 done
9418IFS=$as_save_IFS
9419
9420 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9421fi
9422fi
9423ax_pthread_config=$ac_cv_prog_ax_pthread_config
9424if test -n "$ax_pthread_config"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9426$as_echo "$ax_pthread_config" >&6; }
9427else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429$as_echo "no" >&6; }
9430fi
9431
9432
cristya316db12011-10-24 00:49:45 +00009433 if test x"$ax_pthread_config" = xno; then continue; fi
9434 PTHREAD_CFLAGS="`pthread-config --cflags`"
9435 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9436 ;;
cristy73bd4a52010-10-05 11:24:23 +00009437
9438 *)
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9440$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9441 PTHREAD_LIBS="-l$flag"
9442 ;;
9443 esac
9444
9445 save_LIBS="$LIBS"
9446 save_CFLAGS="$CFLAGS"
9447 LIBS="$PTHREAD_LIBS $LIBS"
9448 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9449
9450 # Check for various functions. We must include pthread.h,
9451 # since some functions may be macros. (On the Sequent, we
9452 # need a special flag -Kthread to make this header compile.)
9453 # We check for pthread_join because it is in -lpthread on IRIX
9454 # while pthread_create is in libc. We check for pthread_attr_init
9455 # due to DEC craziness with -lpthreads. We check for
9456 # pthread_cleanup_push because it is one of the few pthread
9457 # functions on Solaris that doesn't have a non-functional libc stub.
9458 # We try pthread_create on general principles.
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h. */
9461#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009462 static void routine(void *a) { a = 0; }
9463 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009464int
9465main ()
9466{
9467pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009468 pthread_create(&th, 0, start_routine, 0);
9469 pthread_join(th, 0);
9470 pthread_attr_init(&attr);
9471 pthread_cleanup_push(routine, 0);
9472 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009473 ;
9474 return 0;
9475}
9476_ACEOF
9477if ac_fn_c_try_link "$LINENO"; then :
9478 ax_pthread_ok=yes
9479fi
9480rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482
9483 LIBS="$save_LIBS"
9484 CFLAGS="$save_CFLAGS"
9485
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9487$as_echo "$ax_pthread_ok" >&6; }
9488 if test "x$ax_pthread_ok" = xyes; then
9489 break;
9490 fi
9491
9492 PTHREAD_LIBS=""
9493 PTHREAD_CFLAGS=""
9494done
9495fi
9496
9497# Various other checks:
9498if test "x$ax_pthread_ok" = xyes; then
9499 save_LIBS="$LIBS"
9500 LIBS="$PTHREAD_LIBS $LIBS"
9501 save_CFLAGS="$CFLAGS"
9502 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9503
9504 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009506$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009507 attr_name=unknown
9508 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009510/* end confdefs.h. */
9511#include <pthread.h>
9512int
9513main ()
9514{
cristya316db12011-10-24 00:49:45 +00009515int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009516 ;
9517 return 0;
9518}
9519_ACEOF
9520if ac_fn_c_try_link "$LINENO"; then :
9521 attr_name=$attr; break
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009525 done
cristy73bd4a52010-10-05 11:24:23 +00009526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9527$as_echo "$attr_name" >&6; }
9528 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9529
9530cat >>confdefs.h <<_ACEOF
9531#define PTHREAD_CREATE_JOINABLE $attr_name
9532_ACEOF
9533
9534 fi
9535
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9537$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9538 flag=no
9539 case "${host_cpu}-${host_os}" in
9540 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9541 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9542 esac
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9544$as_echo "${flag}" >&6; }
9545 if test "x$flag" != xno; then
9546 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9547 fi
9548
cristya316db12011-10-24 00:49:45 +00009549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9550$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9551if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9552 $as_echo_n "(cached) " >&6
9553else
9554
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h. */
9557
9558 #include <pthread.h>
9559int
9560main ()
9561{
9562int i = PTHREAD_PRIO_INHERIT;
9563 ;
9564 return 0;
9565}
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568 ax_cv_PTHREAD_PRIO_INHERIT=yes
9569else
9570 ax_cv_PTHREAD_PRIO_INHERIT=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9577$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9578 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9579
9580$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9581
9582fi
9583
cristy73bd4a52010-10-05 11:24:23 +00009584 LIBS="$save_LIBS"
9585 CFLAGS="$save_CFLAGS"
9586
9587 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009588 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009589 for ac_prog in xlc_r cc_r
9590do
9591 # Extract the first word of "$ac_prog", so it can be a program name with args.
9592set dummy $ac_prog; ac_word=$2
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009595if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009596 $as_echo_n "(cached) " >&6
9597else
9598 if test -n "$PTHREAD_CC"; then
9599 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9600else
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_prog_PTHREAD_CC="$ac_prog"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9611 fi
9612done
9613 done
9614IFS=$as_save_IFS
9615
9616fi
9617fi
9618PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9619if test -n "$PTHREAD_CC"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9621$as_echo "$PTHREAD_CC" >&6; }
9622else
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624$as_echo "no" >&6; }
9625fi
9626
9627
9628 test -n "$PTHREAD_CC" && break
9629done
9630test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9631
9632 else
9633 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009634 fi
cristy73bd4a52010-10-05 11:24:23 +00009635else
9636 PTHREAD_CC="$CC"
9637fi
9638
9639
9640
9641
9642
9643# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9644if test x"$ax_pthread_ok" = xyes; then
9645
9646$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9647
9648 :
9649else
9650 ax_pthread_ok=no
9651
9652fi
9653ac_ext=c
9654ac_cpp='$CPP $CPPFLAGS'
9655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657ac_compiler_gnu=$ac_cv_c_compiler_gnu
9658
9659
9660
9661# Check whether --enable-opencl was given.
9662if test "${enable_opencl+set}" = set; then :
9663 enableval=$enable_opencl; disable_opencl=$enableval
9664else
9665 disable_opencl='yes'
9666fi
9667
9668
9669if test "$disable_opencl" = 'yes'; then
9670 ac_ext=c
9671ac_cpp='$CPP $CPPFLAGS'
9672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9674ac_compiler_gnu=$ac_cv_c_compiler_gnu
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9677$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009678if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009679 $as_echo_n "(cached) " >&6
9680else
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h. */
9683
9684int
9685main ()
9686{
9687#ifndef _MSC_VER
9688 choke me
9689#endif
9690
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695if ac_fn_c_try_compile "$LINENO"; then :
9696 ax_compiler_ms=yes
9697else
9698 ax_compiler_ms=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701ax_cv_c_compiler_ms=$ax_compiler_ms
9702
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9705$as_echo "$ax_cv_c_compiler_ms" >&6; }
9706 if test X$ax_compiler_ms = Xno; then :
9707 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9708fi
9709
9710 ax_save_CPPFLAGS=$CPPFLAGS
9711 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9712 for ac_header in CL/cl.h OpenCL/cl.h
9713do :
9714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009717 cat >>confdefs.h <<_ACEOF
9718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9719_ACEOF
9720
9721fi
9722
9723done
9724
9725 CPPFLAGS=$ax_save_CPPFLAGS
9726
9727 for ac_header in windows.h
9728do :
9729 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009730if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009731 cat >>confdefs.h <<_ACEOF
9732#define HAVE_WINDOWS_H 1
9733_ACEOF
9734
9735fi
9736
9737done
9738
9739
9740
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9743$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009744if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009745 $as_echo_n "(cached) " >&6
9746else
9747 ax_cv_check_cl_libcl=no
9748 case $host_cpu in
9749 x86_64) ax_check_cl_libdir=lib64 ;;
9750 *) ax_check_cl_libdir=lib ;;
9751 esac
9752 ax_save_CPPFLAGS=$CPPFLAGS
9753 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9754 ax_save_LIBS=$LIBS
9755 LIBS=""
9756 ax_check_libs="-lOpenCL -lCL -lclparser"
9757 for ax_lib in $ax_check_libs; do
9758 if test X$ax_compiler_ms = Xyes; then :
9759 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9760else
9761 ax_try_lib=$ax_lib
9762fi
9763 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
9766
9767 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9768 # include <windows.h>
9769 # endif
9770 # ifdef HAVE_CL_CL_H
9771 # include <CL/cl.h>
9772 # elif defined(HAVE_OPENCL_CL_H)
9773 # include <OpenCL/cl.h>
9774 # else
9775 # error no CL.h
9776 # endif
9777int
9778main ()
9779{
9780clCreateContextFromType(0,0,0,0,0)
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"; then :
9786 ax_cv_check_cl_libcl=$ax_try_lib; break
9787else
9788 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"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790/* end confdefs.h. */
9791
9792 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9793 # include <windows.h>
9794 # endif
9795 # ifdef HAVE_CL_CL_H
9796 # include <CL/cl.h>
9797 # elif defined(HAVE_OPENCL_CL_H)
9798 # include <OpenCL/cl.h>
9799 # else
9800 # error no CL.h
9801 # endif
9802int
9803main ()
9804{
9805clCreateContextFromType(0,0,0,0,0)
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810if ac_fn_c_try_link "$LINENO"; then :
9811 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9812else
cristy78c5a0c2010-12-04 20:00:59 +00009813 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"
cristy73bd4a52010-10-05 11:24:23 +00009814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h. */
9816
9817 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9818 # include <windows.h>
9819 # endif
9820 # ifdef HAVE_CL_CL_H
9821 # include <CL/cl.h>
9822 # elif defined(HAVE_OPENCL_CL_H)
9823 # include <OpenCL/cl.h>
9824 # else
9825 # error no CL.h
9826 # endif
9827int
9828main ()
9829{
9830clCreateContextFromType(0,0,0,0,0)
9831 ;
9832 return 0;
9833}
9834_ACEOF
9835if ac_fn_c_try_link "$LINENO"; then :
9836 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9837fi
9838rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840fi
9841rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843fi
9844rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 done
9847
cristyc3f8b8e2011-12-22 14:55:16 +00009848 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009849 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
9852
9853 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9854 # include <windows.h>
9855 # endif
9856 # ifdef HAVE_CL_CL_H
9857 # include <CL/cl.h>
9858 # elif defined(HAVE_OPENCL_CL_H)
9859 # include <OpenCL/cl.h>
9860 # else
9861 # error no CL.h
9862 # endif
9863int
9864main ()
9865{
9866clCreateContextFromType(0,0,0,0,0)
9867 ;
9868 return 0;
9869}
9870_ACEOF
9871if ac_fn_c_try_link "$LINENO"; then :
9872 ax_cv_check_cl_libcl=$LIBS
9873fi
9874rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876fi
9877
9878 LIBS=$ax_save_LIBS
9879 CPPFLAGS=$ax_save_CPPFLAGS
9880fi
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9882$as_echo "$ax_cv_check_cl_libcl" >&6; }
9883
9884 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9885 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9886else
9887 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9888$as_echo "#define _OPENCL 1" >>confdefs.h
9889
9890fi
9891 ac_ext=c
9892ac_cpp='$CPP $CPPFLAGS'
9893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9895ac_compiler_gnu=$ac_cv_c_compiler_gnu
9896
9897fi
9898
9899
9900
9901
cristyc7083c12009-10-14 03:16:55 +00009902CFLAGS="$CL_CFLAGS $CFLAGS"
9903LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009904
cristy391f1ce2010-09-09 17:23:28 +00009905if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009906 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009907 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9908 fi
cristyfd9dcd42010-08-08 18:07:02 +00009909fi
cristy2e8b51d2009-10-17 18:26:15 +00009910
cristy3ed852e2009-09-05 21:47:34 +00009911########
9912#
9913# Check for large file support
9914#
9915########
9916# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009917if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009918 enableval=$enable_largefile;
9919fi
9920
9921if test "$enable_largefile" != no; then
9922
cristy8b350f62009-11-15 23:12:43 +00009923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009924$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009925if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009926 $as_echo_n "(cached) " >&6
9927else
9928 ac_cv_sys_largefile_CC=no
9929 if test "$GCC" != yes; then
9930 ac_save_CC=$CC
9931 while :; do
9932 # IRIX 6.2 and later do not support large files by default,
9933 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009935/* end confdefs.h. */
9936#include <sys/types.h>
9937 /* Check that off_t can represent 2**63 - 1 correctly.
9938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9939 since some C++ compilers masquerading as C compilers
9940 incorrectly reject 9223372036854775807. */
9941#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9943 && LARGE_OFF_T % 2147483647 == 1)
9944 ? 1 : -1];
9945int
9946main ()
9947{
9948
9949 ;
9950 return 0;
9951}
9952_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009953 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009954 break
cristy3ed852e2009-09-05 21:47:34 +00009955fi
cristy3ed852e2009-09-05 21:47:34 +00009956rm -f core conftest.err conftest.$ac_objext
9957 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009958 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009959 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009960fi
cristy3ed852e2009-09-05 21:47:34 +00009961rm -f core conftest.err conftest.$ac_objext
9962 break
9963 done
9964 CC=$ac_save_CC
9965 rm -f conftest.$ac_ext
9966 fi
9967fi
cristy8b350f62009-11-15 23:12:43 +00009968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009969$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9970 if test "$ac_cv_sys_largefile_CC" != no; then
9971 CC=$CC$ac_cv_sys_largefile_CC
9972 fi
9973
cristy8b350f62009-11-15 23:12:43 +00009974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009975$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009976if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009977 $as_echo_n "(cached) " >&6
9978else
9979 while :; do
cristy8b350f62009-11-15 23:12:43 +00009980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009981/* end confdefs.h. */
9982#include <sys/types.h>
9983 /* Check that off_t can represent 2**63 - 1 correctly.
9984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9985 since some C++ compilers masquerading as C compilers
9986 incorrectly reject 9223372036854775807. */
9987#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9989 && LARGE_OFF_T % 2147483647 == 1)
9990 ? 1 : -1];
9991int
9992main ()
9993{
9994
9995 ;
9996 return 0;
9997}
9998_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009999if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010000 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010001fi
cristy3ed852e2009-09-05 21:47:34 +000010002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010004/* end confdefs.h. */
10005#define _FILE_OFFSET_BITS 64
10006#include <sys/types.h>
10007 /* Check that off_t can represent 2**63 - 1 correctly.
10008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10009 since some C++ compilers masquerading as C compilers
10010 incorrectly reject 9223372036854775807. */
10011#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10013 && LARGE_OFF_T % 2147483647 == 1)
10014 ? 1 : -1];
10015int
10016main ()
10017{
10018
10019 ;
10020 return 0;
10021}
10022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010023if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010024 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010025fi
cristy3ed852e2009-09-05 21:47:34 +000010026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 ac_cv_sys_file_offset_bits=unknown
10028 break
10029done
10030fi
cristy8b350f62009-11-15 23:12:43 +000010031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010032$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10033case $ac_cv_sys_file_offset_bits in #(
10034 no | unknown) ;;
10035 *)
10036cat >>confdefs.h <<_ACEOF
10037#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10038_ACEOF
10039;;
10040esac
10041rm -rf conftest*
10042 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010044$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010045if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010046 $as_echo_n "(cached) " >&6
10047else
10048 while :; do
cristy8b350f62009-11-15 23:12:43 +000010049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010050/* end confdefs.h. */
10051#include <sys/types.h>
10052 /* Check that off_t can represent 2**63 - 1 correctly.
10053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10054 since some C++ compilers masquerading as C compilers
10055 incorrectly reject 9223372036854775807. */
10056#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10058 && LARGE_OFF_T % 2147483647 == 1)
10059 ? 1 : -1];
10060int
10061main ()
10062{
10063
10064 ;
10065 return 0;
10066}
10067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010068if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010069 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010070fi
cristy3ed852e2009-09-05 21:47:34 +000010071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010073/* end confdefs.h. */
10074#define _LARGE_FILES 1
10075#include <sys/types.h>
10076 /* Check that off_t can represent 2**63 - 1 correctly.
10077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10078 since some C++ compilers masquerading as C compilers
10079 incorrectly reject 9223372036854775807. */
10080#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10082 && LARGE_OFF_T % 2147483647 == 1)
10083 ? 1 : -1];
10084int
10085main ()
10086{
10087
10088 ;
10089 return 0;
10090}
10091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010093 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010094fi
cristy3ed852e2009-09-05 21:47:34 +000010095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 ac_cv_sys_large_files=unknown
10097 break
10098done
10099fi
cristy8b350f62009-11-15 23:12:43 +000010100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010101$as_echo "$ac_cv_sys_large_files" >&6; }
10102case $ac_cv_sys_large_files in #(
10103 no | unknown) ;;
10104 *)
10105cat >>confdefs.h <<_ACEOF
10106#define _LARGE_FILES $ac_cv_sys_large_files
10107_ACEOF
10108;;
10109esac
10110rm -rf conftest*
10111 fi
10112fi
10113
cristy8b350f62009-11-15 23:12:43 +000010114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010115$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010116if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010117 $as_echo_n "(cached) " >&6
10118else
10119 while :; do
cristy8b350f62009-11-15 23:12:43 +000010120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010121/* end confdefs.h. */
10122#include <sys/types.h> /* for off_t */
10123 #include <stdio.h>
10124int
10125main ()
10126{
10127int (*fp) (FILE *, off_t, int) = fseeko;
10128 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10129 ;
10130 return 0;
10131}
10132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010133if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010134 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010135fi
cristy8b350f62009-11-15 23:12:43 +000010136rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010139/* end confdefs.h. */
10140#define _LARGEFILE_SOURCE 1
10141#include <sys/types.h> /* for off_t */
10142 #include <stdio.h>
10143int
10144main ()
10145{
10146int (*fp) (FILE *, off_t, int) = fseeko;
10147 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10148 ;
10149 return 0;
10150}
10151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010153 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010154fi
cristy8b350f62009-11-15 23:12:43 +000010155rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010157 ac_cv_sys_largefile_source=unknown
10158 break
10159done
10160fi
cristy8b350f62009-11-15 23:12:43 +000010161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010162$as_echo "$ac_cv_sys_largefile_source" >&6; }
10163case $ac_cv_sys_largefile_source in #(
10164 no | unknown) ;;
10165 *)
10166cat >>confdefs.h <<_ACEOF
10167#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10168_ACEOF
10169;;
10170esac
10171rm -rf conftest*
10172
10173# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10174# in glibc 2.1.3, but that breaks too many other things.
10175# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10176if test $ac_cv_sys_largefile_source != unknown; then
10177
cristy8b350f62009-11-15 23:12:43 +000010178$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010179
10180fi
10181
10182LFS_CPPFLAGS=''
10183if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010184 case $ac_cv_sys_file_offset_bits in
10185 no)
10186 # nothing to do here as the host supports LFS fine
10187 ;;
10188 unknown)
cristy8b350f62009-11-15 23:12:43 +000010189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010190$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010191 if test "$cross_compiling" = yes; then :
10192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010194as_fn_error $? "cannot run test program while cross compiling
10195See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010196else
cristy8b350f62009-11-15 23:12:43 +000010197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010199#include <unistd.h>
10200 main () {
10201 exit(!(sizeof(off_t) == 8));
10202 }
cristyda16f162011-02-19 23:52:17 +000010203int
10204main ()
10205{
10206
10207 ;
10208 return 0;
10209}
cristy3ed852e2009-09-05 21:47:34 +000010210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010211if ac_fn_c_try_run "$LINENO"; then :
10212 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010213
cristy09b53e12011-10-14 12:47:22 +000010214 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10215$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010216else
cristy09b53e12011-10-14 12:47:22 +000010217 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10218$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010219fi
cristy8b350f62009-11-15 23:12:43 +000010220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010222fi
10223
cristyc1e0cc12011-09-21 16:41:16 +000010224 ;;
10225 *)
10226 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10227 ;;
10228 esac
cristy3ed852e2009-09-05 21:47:34 +000010229 if test "$ac_cv_sys_large_files" != 'no'; then
10230 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10231 fi
10232 if test "$ac_cv_sys_largefile_source" != 'no'; then
10233 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10234 fi
10235fi
10236
10237
cristy3ed852e2009-09-05 21:47:34 +000010238# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010239enable_dlopen=yes
10240
10241
10242
10243case `pwd` in
10244 *\ * | *\ *)
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10246$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10247esac
10248
10249
10250
cristy99bd5232011-12-07 14:38:20 +000010251macro_version='2.4.2'
10252macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266ltmain="$ac_aux_dir/ltmain.sh"
10267
cristy0c60a692010-11-04 01:09:47 +000010268# Backslashify metacharacters that are still active within
10269# double-quoted strings.
10270sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10271
10272# Same as above, but do not quote variable references.
10273double_quote_subst='s/\(["`\\]\)/\\\1/g'
10274
10275# Sed substitution to delay expansion of an escaped shell variable in a
10276# double_quote_subst'ed string.
10277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10278
10279# Sed substitution to delay expansion of an escaped single quote.
10280delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10281
10282# Sed substitution to avoid accidental globbing in evaled expressions
10283no_glob_subst='s/\*/\\\*/g'
10284
cristy73bd4a52010-10-05 11:24:23 +000010285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10286$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010287if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010288 $as_echo_n "(cached) " >&6
10289else
10290 if test -n "$NM"; then
10291 # Let the user override the test.
10292 lt_cv_path_NM="$NM"
10293else
10294 lt_nm_to_check="${ac_tool_prefix}nm"
10295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10296 lt_nm_to_check="$lt_nm_to_check nm"
10297 fi
10298 for lt_tmp_nm in $lt_nm_to_check; do
10299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10301 IFS="$lt_save_ifs"
10302 test -z "$ac_dir" && ac_dir=.
10303 tmp_nm="$ac_dir/$lt_tmp_nm"
10304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10305 # Check to see if the nm accepts a BSD-compat flag.
10306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10307 # nm: unknown option "B" ignored
10308 # Tru64's nm complains that /dev/null is an invalid object file
10309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10310 */dev/null* | *'Invalid file or object type'*)
10311 lt_cv_path_NM="$tmp_nm -B"
10312 break
10313 ;;
10314 *)
10315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10316 */dev/null*)
10317 lt_cv_path_NM="$tmp_nm -p"
10318 break
10319 ;;
10320 *)
10321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10322 continue # so that we can try to find one that supports BSD flags
10323 ;;
10324 esac
10325 ;;
10326 esac
10327 fi
10328 done
10329 IFS="$lt_save_ifs"
10330 done
10331 : ${lt_cv_path_NM=no}
10332fi
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10335$as_echo "$lt_cv_path_NM" >&6; }
10336if test "$lt_cv_path_NM" != "no"; then
10337 NM="$lt_cv_path_NM"
10338else
10339 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010340 if test -n "$DUMPBIN"; then :
10341 # Let the user override the test.
10342 else
10343 if test -n "$ac_tool_prefix"; then
10344 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010345 do
10346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010350if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010351 $as_echo_n "(cached) " >&6
10352else
10353 if test -n "$DUMPBIN"; then
10354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10355else
10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357for as_dir in $PATH
10358do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367done
10368 done
10369IFS=$as_save_IFS
10370
10371fi
10372fi
10373DUMPBIN=$ac_cv_prog_DUMPBIN
10374if test -n "$DUMPBIN"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10376$as_echo "$DUMPBIN" >&6; }
10377else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379$as_echo "no" >&6; }
10380fi
10381
10382
10383 test -n "$DUMPBIN" && break
10384 done
10385fi
10386if test -z "$DUMPBIN"; then
10387 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010388 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010389do
10390 # Extract the first word of "$ac_prog", so it can be a program name with args.
10391set dummy $ac_prog; ac_word=$2
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010394if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010395 $as_echo_n "(cached) " >&6
10396else
10397 if test -n "$ac_ct_DUMPBIN"; then
10398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10399else
10400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401for as_dir in $PATH
10402do
10403 IFS=$as_save_IFS
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 break 2
10410 fi
10411done
10412 done
10413IFS=$as_save_IFS
10414
10415fi
10416fi
10417ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10418if test -n "$ac_ct_DUMPBIN"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10420$as_echo "$ac_ct_DUMPBIN" >&6; }
10421else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423$as_echo "no" >&6; }
10424fi
10425
10426
10427 test -n "$ac_ct_DUMPBIN" && break
10428done
10429
10430 if test "x$ac_ct_DUMPBIN" = x; then
10431 DUMPBIN=":"
10432 else
10433 case $cross_compiling:$ac_tool_warned in
10434yes:)
10435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10437ac_tool_warned=yes ;;
10438esac
10439 DUMPBIN=$ac_ct_DUMPBIN
10440 fi
10441fi
10442
cristy0c60a692010-11-04 01:09:47 +000010443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10444 *COFF*)
10445 DUMPBIN="$DUMPBIN -symbols"
10446 ;;
10447 *)
10448 DUMPBIN=:
10449 ;;
10450 esac
10451 fi
cristy73bd4a52010-10-05 11:24:23 +000010452
10453 if test "$DUMPBIN" != ":"; then
10454 NM="$DUMPBIN"
10455 fi
10456fi
10457test -z "$NM" && NM=nm
10458
10459
10460
10461
10462
10463
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10465$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010466if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010467 $as_echo_n "(cached) " >&6
10468else
10469 lt_cv_nm_interface="BSD nm"
10470 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010472 (eval "$ac_compile" 2>conftest.err)
10473 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10476 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010478 cat conftest.out >&5
10479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10480 lt_cv_nm_interface="MS dumpbin"
10481 fi
10482 rm -f conftest*
10483fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10485$as_echo "$lt_cv_nm_interface" >&6; }
10486
10487# find the maximum length of command line arguments
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10489$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010490if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010491 $as_echo_n "(cached) " >&6
10492else
10493 i=0
10494 teststring="ABCD"
10495
10496 case $build_os in
10497 msdosdjgpp*)
10498 # On DJGPP, this test can blow up pretty badly due to problems in libc
10499 # (any single argument exceeding 2000 bytes causes a buffer overrun
10500 # during glob expansion). Even if it were fixed, the result of this
10501 # check would be larger than it should be.
10502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10503 ;;
10504
10505 gnu*)
10506 # Under GNU Hurd, this test is not required because there is
10507 # no limit to the length of command line arguments.
10508 # Libtool will interpret -1 as no limit whatsoever
10509 lt_cv_sys_max_cmd_len=-1;
10510 ;;
10511
10512 cygwin* | mingw* | cegcc*)
10513 # On Win9x/ME, this test blows up -- it succeeds, but takes
10514 # about 5 minutes as the teststring grows exponentially.
10515 # Worse, since 9x/ME are not pre-emptively multitasking,
10516 # you end up with a "frozen" computer, even though with patience
10517 # the test eventually succeeds (with a max line length of 256k).
10518 # Instead, let's just punt: use the minimum linelength reported by
10519 # all of the supported platforms: 8192 (on NT/2K/XP).
10520 lt_cv_sys_max_cmd_len=8192;
10521 ;;
10522
cristy0c60a692010-11-04 01:09:47 +000010523 mint*)
10524 # On MiNT this can take a long time and run out of memory.
10525 lt_cv_sys_max_cmd_len=8192;
10526 ;;
10527
cristy73bd4a52010-10-05 11:24:23 +000010528 amigaos*)
10529 # On AmigaOS with pdksh, this test takes hours, literally.
10530 # So we just punt and use a minimum line length of 8192.
10531 lt_cv_sys_max_cmd_len=8192;
10532 ;;
10533
10534 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10535 # This has been around since 386BSD, at least. Likely further.
10536 if test -x /sbin/sysctl; then
10537 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10538 elif test -x /usr/sbin/sysctl; then
10539 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10540 else
10541 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10542 fi
10543 # And add a safety zone
10544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10546 ;;
10547
10548 interix*)
10549 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10550 lt_cv_sys_max_cmd_len=196608
10551 ;;
10552
cristy99bd5232011-12-07 14:38:20 +000010553 os2*)
10554 # The test takes a long time on OS/2.
10555 lt_cv_sys_max_cmd_len=8192
10556 ;;
10557
cristy73bd4a52010-10-05 11:24:23 +000010558 osf*)
10559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10561 # nice to cause kernel panics so lets avoid the loop below.
10562 # First set a reasonable default.
10563 lt_cv_sys_max_cmd_len=16384
10564 #
10565 if test -x /sbin/sysconfig; then
10566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10568 esac
10569 fi
10570 ;;
10571 sco3.2v5*)
10572 lt_cv_sys_max_cmd_len=102400
10573 ;;
10574 sysv5* | sco5v6* | sysv4.2uw2*)
10575 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10576 if test -n "$kargmax"; then
10577 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10578 else
10579 lt_cv_sys_max_cmd_len=32768
10580 fi
10581 ;;
10582 *)
10583 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10584 if test -n "$lt_cv_sys_max_cmd_len"; then
10585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10587 else
10588 # Make teststring a little bigger before we do anything with it.
10589 # a 1K string should be a reasonable start.
10590 for i in 1 2 3 4 5 6 7 8 ; do
10591 teststring=$teststring$teststring
10592 done
10593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10594 # If test is not a shell built-in, we'll probably end up computing a
10595 # maximum length that is only half of the actual maximum length, but
10596 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010597 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010598 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010599 test $i != 17 # 1/2 MB should be enough
10600 do
10601 i=`expr $i + 1`
10602 teststring=$teststring$teststring
10603 done
10604 # Only check the string length outside the loop.
10605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10606 teststring=
10607 # Add a significant safety factor because C++ compilers can tack on
10608 # massive amounts of additional arguments before passing them to the
10609 # linker. It appears as though 1/2 is a usable value.
10610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10611 fi
10612 ;;
10613 esac
10614
10615fi
10616
10617if test -n $lt_cv_sys_max_cmd_len ; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10619$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10620else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10622$as_echo "none" >&6; }
10623fi
10624max_cmd_len=$lt_cv_sys_max_cmd_len
10625
10626
10627
10628
10629
10630
10631: ${CP="cp -f"}
10632: ${MV="mv -f"}
10633: ${RM="rm -f"}
10634
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10636$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10637# Try some XSI features
10638xsi_shell=no
10639( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010640 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10641 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010642 && eval 'test $(( 1 + 1 )) -eq 2 \
10643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10644 && xsi_shell=yes
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10646$as_echo "$xsi_shell" >&6; }
10647
10648
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10650$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10651lt_shell_append=no
10652( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10653 >/dev/null 2>&1 \
10654 && lt_shell_append=yes
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10656$as_echo "$lt_shell_append" >&6; }
10657
10658
10659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10660 lt_unset=unset
10661else
10662 lt_unset=false
10663fi
10664
10665
10666
10667
10668
10669# test EBCDIC or ASCII
10670case `echo X|tr X '\101'` in
10671 A) # ASCII based system
10672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10673 lt_SP2NL='tr \040 \012'
10674 lt_NL2SP='tr \015\012 \040\040'
10675 ;;
10676 *) # EBCDIC based system
10677 lt_SP2NL='tr \100 \n'
10678 lt_NL2SP='tr \r\n \100\100'
10679 ;;
10680esac
10681
10682
10683
10684
10685
10686
10687
10688
10689
cristyda16f162011-02-19 23:52:17 +000010690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10691$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10692if ${lt_cv_to_host_file_cmd+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694else
10695 case $host in
10696 *-*-mingw* )
10697 case $build in
10698 *-*-mingw* ) # actually msys
10699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10700 ;;
10701 *-*-cygwin* )
10702 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10703 ;;
10704 * ) # otherwise, assume *nix
10705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10706 ;;
10707 esac
10708 ;;
10709 *-*-cygwin* )
10710 case $build in
10711 *-*-mingw* ) # actually msys
10712 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10713 ;;
10714 *-*-cygwin* )
10715 lt_cv_to_host_file_cmd=func_convert_file_noop
10716 ;;
10717 * ) # otherwise, assume *nix
10718 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10719 ;;
10720 esac
10721 ;;
10722 * ) # unhandled hosts (and "normal" native builds)
10723 lt_cv_to_host_file_cmd=func_convert_file_noop
10724 ;;
10725esac
10726
10727fi
10728
10729to_host_file_cmd=$lt_cv_to_host_file_cmd
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10731$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10732
10733
10734
10735
10736
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10738$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10739if ${lt_cv_to_tool_file_cmd+:} false; then :
10740 $as_echo_n "(cached) " >&6
10741else
10742 #assume ordinary cross tools, or native build.
10743lt_cv_to_tool_file_cmd=func_convert_file_noop
10744case $host in
10745 *-*-mingw* )
10746 case $build in
10747 *-*-mingw* ) # actually msys
10748 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10749 ;;
10750 esac
10751 ;;
10752esac
10753
10754fi
10755
10756to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10758$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10759
10760
10761
10762
10763
cristy73bd4a52010-10-05 11:24:23 +000010764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10765$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010766if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010767 $as_echo_n "(cached) " >&6
10768else
10769 lt_cv_ld_reload_flag='-r'
10770fi
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10772$as_echo "$lt_cv_ld_reload_flag" >&6; }
10773reload_flag=$lt_cv_ld_reload_flag
10774case $reload_flag in
10775"" | " "*) ;;
10776*) reload_flag=" $reload_flag" ;;
10777esac
10778reload_cmds='$LD$reload_flag -o $output$reload_objs'
10779case $host_os in
cristyda16f162011-02-19 23:52:17 +000010780 cygwin* | mingw* | pw32* | cegcc*)
10781 if test "$GCC" != yes; then
10782 reload_cmds=false
10783 fi
10784 ;;
cristy73bd4a52010-10-05 11:24:23 +000010785 darwin*)
10786 if test "$GCC" = yes; then
10787 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10788 else
10789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10790 fi
10791 ;;
10792esac
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802if test -n "$ac_tool_prefix"; then
10803 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10804set dummy ${ac_tool_prefix}objdump; ac_word=$2
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010807if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010808 $as_echo_n "(cached) " >&6
10809else
10810 if test -n "$OBJDUMP"; then
10811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10812else
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824done
10825 done
10826IFS=$as_save_IFS
10827
10828fi
10829fi
10830OBJDUMP=$ac_cv_prog_OBJDUMP
10831if test -n "$OBJDUMP"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10833$as_echo "$OBJDUMP" >&6; }
10834else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
10837fi
10838
10839
10840fi
10841if test -z "$ac_cv_prog_OBJDUMP"; then
10842 ac_ct_OBJDUMP=$OBJDUMP
10843 # Extract the first word of "objdump", so it can be a program name with args.
10844set dummy objdump; ac_word=$2
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010847if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010848 $as_echo_n "(cached) " >&6
10849else
10850 if test -n "$ac_ct_OBJDUMP"; then
10851 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10852else
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864done
10865 done
10866IFS=$as_save_IFS
10867
10868fi
10869fi
10870ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10871if test -n "$ac_ct_OBJDUMP"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10873$as_echo "$ac_ct_OBJDUMP" >&6; }
10874else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
10877fi
10878
10879 if test "x$ac_ct_OBJDUMP" = x; then
10880 OBJDUMP="false"
10881 else
10882 case $cross_compiling:$ac_tool_warned in
10883yes:)
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10886ac_tool_warned=yes ;;
10887esac
10888 OBJDUMP=$ac_ct_OBJDUMP
10889 fi
10890else
10891 OBJDUMP="$ac_cv_prog_OBJDUMP"
10892fi
10893
10894test -z "$OBJDUMP" && OBJDUMP=objdump
10895
10896
10897
10898
10899
10900
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10902$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010903if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010904 $as_echo_n "(cached) " >&6
10905else
10906 lt_cv_file_magic_cmd='$MAGIC_CMD'
10907lt_cv_file_magic_test_file=
10908lt_cv_deplibs_check_method='unknown'
10909# Need to set the preceding variable on all platforms that support
10910# interlibrary dependencies.
10911# 'none' -- dependencies not supported.
10912# `unknown' -- same as none, but documents that we really don't know.
10913# 'pass_all' -- all dependencies passed with no checks.
10914# 'test_compile' -- check by making test program.
10915# 'file_magic [[regex]]' -- check by looking for files in library path
10916# which responds to the $file_magic_cmd with a given extended regex.
10917# If you have `file' or equivalent on your system and you're not sure
10918# whether `pass_all' will *always* work, you probably want this one.
10919
10920case $host_os in
10921aix[4-9]*)
10922 lt_cv_deplibs_check_method=pass_all
10923 ;;
10924
10925beos*)
10926 lt_cv_deplibs_check_method=pass_all
10927 ;;
10928
10929bsdi[45]*)
10930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10931 lt_cv_file_magic_cmd='/usr/bin/file -L'
10932 lt_cv_file_magic_test_file=/shlib/libc.so
10933 ;;
10934
10935cygwin*)
10936 # func_win32_libid is a shell function defined in ltmain.sh
10937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10938 lt_cv_file_magic_cmd='func_win32_libid'
10939 ;;
10940
10941mingw* | pw32*)
10942 # Base MSYS/MinGW do not provide the 'file' command needed by
10943 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10944 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010945 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10946 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10948 lt_cv_file_magic_cmd='func_win32_libid'
10949 else
cristy0c60a692010-11-04 01:09:47 +000010950 # Keep this pattern in sync with the one in func_win32_libid.
10951 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010952 lt_cv_file_magic_cmd='$OBJDUMP -f'
10953 fi
10954 ;;
10955
cristy0c60a692010-11-04 01:09:47 +000010956cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010957 # use the weaker test based on 'objdump'. See mingw*.
10958 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10959 lt_cv_file_magic_cmd='$OBJDUMP -f'
10960 ;;
10961
10962darwin* | rhapsody*)
10963 lt_cv_deplibs_check_method=pass_all
10964 ;;
10965
10966freebsd* | dragonfly*)
10967 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10968 case $host_cpu in
10969 i*86 )
10970 # Not sure whether the presence of OpenBSD here was a mistake.
10971 # Let's accept both of them until this is cleared up.
10972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10973 lt_cv_file_magic_cmd=/usr/bin/file
10974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10975 ;;
10976 esac
10977 else
10978 lt_cv_deplibs_check_method=pass_all
10979 fi
10980 ;;
10981
10982gnu*)
10983 lt_cv_deplibs_check_method=pass_all
10984 ;;
10985
cristy0c60a692010-11-04 01:09:47 +000010986haiku*)
10987 lt_cv_deplibs_check_method=pass_all
10988 ;;
10989
cristy73bd4a52010-10-05 11:24:23 +000010990hpux10.20* | hpux11*)
10991 lt_cv_file_magic_cmd=/usr/bin/file
10992 case $host_cpu in
10993 ia64*)
10994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10995 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10996 ;;
10997 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010998 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]'
cristy73bd4a52010-10-05 11:24:23 +000010999 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11000 ;;
11001 *)
cristy0c60a692010-11-04 01:09:47 +000011002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11004 ;;
11005 esac
11006 ;;
11007
11008interix[3-9]*)
11009 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11011 ;;
11012
11013irix5* | irix6* | nonstopux*)
11014 case $LD in
11015 *-32|*"-32 ") libmagic=32-bit;;
11016 *-n32|*"-n32 ") libmagic=N32;;
11017 *-64|*"-64 ") libmagic=64-bit;;
11018 *) libmagic=never-match;;
11019 esac
11020 lt_cv_deplibs_check_method=pass_all
11021 ;;
11022
cristy99bd5232011-12-07 14:38:20 +000011023# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011024linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011025 lt_cv_deplibs_check_method=pass_all
11026 ;;
11027
11028netbsd*)
11029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11031 else
11032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11033 fi
11034 ;;
11035
11036newos6*)
11037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11038 lt_cv_file_magic_cmd=/usr/bin/file
11039 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11040 ;;
11041
11042*nto* | *qnx*)
11043 lt_cv_deplibs_check_method=pass_all
11044 ;;
11045
11046openbsd*)
11047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11049 else
11050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11051 fi
11052 ;;
11053
11054osf3* | osf4* | osf5*)
11055 lt_cv_deplibs_check_method=pass_all
11056 ;;
11057
11058rdos*)
11059 lt_cv_deplibs_check_method=pass_all
11060 ;;
11061
11062solaris*)
11063 lt_cv_deplibs_check_method=pass_all
11064 ;;
11065
11066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11067 lt_cv_deplibs_check_method=pass_all
11068 ;;
11069
11070sysv4 | sysv4.3*)
11071 case $host_vendor in
11072 motorola)
11073 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]'
11074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11075 ;;
11076 ncr)
11077 lt_cv_deplibs_check_method=pass_all
11078 ;;
11079 sequent)
11080 lt_cv_file_magic_cmd='/bin/file'
11081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11082 ;;
11083 sni)
11084 lt_cv_file_magic_cmd='/bin/file'
11085 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11086 lt_cv_file_magic_test_file=/lib/libc.so
11087 ;;
11088 siemens)
11089 lt_cv_deplibs_check_method=pass_all
11090 ;;
11091 pc)
11092 lt_cv_deplibs_check_method=pass_all
11093 ;;
11094 esac
11095 ;;
11096
11097tpf*)
11098 lt_cv_deplibs_check_method=pass_all
11099 ;;
11100esac
11101
11102fi
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11104$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011105
11106file_magic_glob=
11107want_nocaseglob=no
11108if test "$build" = "$host"; then
11109 case $host_os in
11110 mingw* | pw32*)
11111 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11112 want_nocaseglob=yes
11113 else
11114 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11115 fi
11116 ;;
11117 esac
11118fi
11119
cristy73bd4a52010-10-05 11:24:23 +000011120file_magic_cmd=$lt_cv_file_magic_cmd
11121deplibs_check_method=$lt_cv_deplibs_check_method
11122test -z "$deplibs_check_method" && deplibs_check_method=unknown
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
cristyda16f162011-02-19 23:52:17 +000011135
11136
11137
11138
11139
11140
11141
11142
11143
11144
cristy73bd4a52010-10-05 11:24:23 +000011145if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011146 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11147set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011150if ${ac_cv_prog_DLLTOOL+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152else
11153 if test -n "$DLLTOOL"; then
11154 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11155else
11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167done
11168 done
11169IFS=$as_save_IFS
11170
11171fi
11172fi
11173DLLTOOL=$ac_cv_prog_DLLTOOL
11174if test -n "$DLLTOOL"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11176$as_echo "$DLLTOOL" >&6; }
11177else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179$as_echo "no" >&6; }
11180fi
11181
11182
11183fi
11184if test -z "$ac_cv_prog_DLLTOOL"; then
11185 ac_ct_DLLTOOL=$DLLTOOL
11186 # Extract the first word of "dlltool", so it can be a program name with args.
11187set dummy dlltool; ac_word=$2
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189$as_echo_n "checking for $ac_word... " >&6; }
11190if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192else
11193 if test -n "$ac_ct_DLLTOOL"; then
11194 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11195else
11196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197for as_dir in $PATH
11198do
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11206 fi
11207done
11208 done
11209IFS=$as_save_IFS
11210
11211fi
11212fi
11213ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11214if test -n "$ac_ct_DLLTOOL"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11216$as_echo "$ac_ct_DLLTOOL" >&6; }
11217else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219$as_echo "no" >&6; }
11220fi
11221
11222 if test "x$ac_ct_DLLTOOL" = x; then
11223 DLLTOOL="false"
11224 else
11225 case $cross_compiling:$ac_tool_warned in
11226yes:)
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11229ac_tool_warned=yes ;;
11230esac
11231 DLLTOOL=$ac_ct_DLLTOOL
11232 fi
11233else
11234 DLLTOOL="$ac_cv_prog_DLLTOOL"
11235fi
11236
11237test -z "$DLLTOOL" && DLLTOOL=dlltool
11238
11239
11240
11241
11242
11243
11244
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11246$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11247if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249else
11250 lt_cv_sharedlib_from_linklib_cmd='unknown'
11251
11252case $host_os in
11253cygwin* | mingw* | pw32* | cegcc*)
11254 # two different shell functions defined in ltmain.sh
11255 # decide which to use based on capabilities of $DLLTOOL
11256 case `$DLLTOOL --help 2>&1` in
11257 *--identify-strict*)
11258 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11259 ;;
11260 *)
11261 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11262 ;;
11263 esac
11264 ;;
11265*)
11266 # fallback: assume linklib IS sharedlib
11267 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11268 ;;
11269esac
11270
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11273$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11274sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11275test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11276
11277
11278
11279
11280
11281
11282
11283if test -n "$ac_tool_prefix"; then
11284 for ac_prog in ar
11285 do
11286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
11290if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011291 $as_echo_n "(cached) " >&6
11292else
11293 if test -n "$AR"; then
11294 ac_cv_prog_AR="$AR" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000011303 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308 done
11309IFS=$as_save_IFS
11310
11311fi
11312fi
11313AR=$ac_cv_prog_AR
11314if test -n "$AR"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11316$as_echo "$AR" >&6; }
11317else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
11320fi
11321
11322
cristyda16f162011-02-19 23:52:17 +000011323 test -n "$AR" && break
11324 done
cristy73bd4a52010-10-05 11:24:23 +000011325fi
cristyda16f162011-02-19 23:52:17 +000011326if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011327 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011328 for ac_prog in ar
11329do
11330 # Extract the first word of "$ac_prog", so it can be a program name with args.
11331set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011334if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011335 $as_echo_n "(cached) " >&6
11336else
11337 if test -n "$ac_ct_AR"; then
11338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11339else
11340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341for as_dir in $PATH
11342do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000011347 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 break 2
11350 fi
11351done
11352 done
11353IFS=$as_save_IFS
11354
11355fi
11356fi
11357ac_ct_AR=$ac_cv_prog_ac_ct_AR
11358if test -n "$ac_ct_AR"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11360$as_echo "$ac_ct_AR" >&6; }
11361else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363$as_echo "no" >&6; }
11364fi
11365
cristyda16f162011-02-19 23:52:17 +000011366
11367 test -n "$ac_ct_AR" && break
11368done
11369
cristy73bd4a52010-10-05 11:24:23 +000011370 if test "x$ac_ct_AR" = x; then
11371 AR="false"
11372 else
11373 case $cross_compiling:$ac_tool_warned in
11374yes:)
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11377ac_tool_warned=yes ;;
11378esac
11379 AR=$ac_ct_AR
11380 fi
cristy73bd4a52010-10-05 11:24:23 +000011381fi
11382
cristyda16f162011-02-19 23:52:17 +000011383: ${AR=ar}
11384: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
cristyda16f162011-02-19 23:52:17 +000011396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11397$as_echo_n "checking for archiver @FILE support... " >&6; }
11398if ${lt_cv_ar_at_file+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400else
11401 lt_cv_ar_at_file=no
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403/* end confdefs.h. */
11404
11405int
11406main ()
11407{
11408
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413if ac_fn_c_try_compile "$LINENO"; then :
11414 echo conftest.$ac_objext > conftest.lst
11415 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11417 (eval $lt_ar_try) 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; }
11421 if test "$ac_status" -eq 0; then
11422 # Ensure the archiver fails upon bogus file names.
11423 rm -f conftest.$ac_objext libconftest.a
11424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11425 (eval $lt_ar_try) 2>&5
11426 ac_status=$?
11427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11428 test $ac_status = 0; }
11429 if test "$ac_status" -ne 0; then
11430 lt_cv_ar_at_file=@
11431 fi
11432 fi
11433 rm -f conftest.* libconftest.a
11434
11435fi
11436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11440$as_echo "$lt_cv_ar_at_file" >&6; }
11441
11442if test "x$lt_cv_ar_at_file" = xno; then
11443 archiver_list_spec=
11444else
11445 archiver_list_spec=$lt_cv_ar_at_file
11446fi
11447
11448
11449
11450
11451
11452
11453
cristy73bd4a52010-10-05 11:24:23 +000011454if test -n "$ac_tool_prefix"; then
11455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11456set dummy ${ac_tool_prefix}strip; ac_word=$2
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011459if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011460 $as_echo_n "(cached) " >&6
11461else
11462 if test -n "$STRIP"; then
11463 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11464else
11465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466for as_dir in $PATH
11467do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11475 fi
11476done
11477 done
11478IFS=$as_save_IFS
11479
11480fi
11481fi
11482STRIP=$ac_cv_prog_STRIP
11483if test -n "$STRIP"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11485$as_echo "$STRIP" >&6; }
11486else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
11489fi
11490
11491
11492fi
11493if test -z "$ac_cv_prog_STRIP"; then
11494 ac_ct_STRIP=$STRIP
11495 # Extract the first word of "strip", so it can be a program name with args.
11496set dummy strip; ac_word=$2
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011499if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011500 $as_echo_n "(cached) " >&6
11501else
11502 if test -n "$ac_ct_STRIP"; then
11503 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11504else
11505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506for as_dir in $PATH
11507do
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11512 ac_cv_prog_ac_ct_STRIP="strip"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11515 fi
11516done
11517 done
11518IFS=$as_save_IFS
11519
11520fi
11521fi
11522ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11523if test -n "$ac_ct_STRIP"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11525$as_echo "$ac_ct_STRIP" >&6; }
11526else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
11529fi
11530
11531 if test "x$ac_ct_STRIP" = x; then
11532 STRIP=":"
11533 else
11534 case $cross_compiling:$ac_tool_warned in
11535yes:)
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11538ac_tool_warned=yes ;;
11539esac
11540 STRIP=$ac_ct_STRIP
11541 fi
11542else
11543 STRIP="$ac_cv_prog_STRIP"
11544fi
11545
11546test -z "$STRIP" && STRIP=:
11547
11548
11549
11550
11551
11552
11553if test -n "$ac_tool_prefix"; then
11554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11555set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011558if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011559 $as_echo_n "(cached) " >&6
11560else
11561 if test -n "$RANLIB"; then
11562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11563else
11564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
11566do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575done
11576 done
11577IFS=$as_save_IFS
11578
11579fi
11580fi
11581RANLIB=$ac_cv_prog_RANLIB
11582if test -n "$RANLIB"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11584$as_echo "$RANLIB" >&6; }
11585else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587$as_echo "no" >&6; }
11588fi
11589
11590
11591fi
11592if test -z "$ac_cv_prog_RANLIB"; then
11593 ac_ct_RANLIB=$RANLIB
11594 # Extract the first word of "ranlib", so it can be a program name with args.
11595set dummy ranlib; ac_word=$2
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011598if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011599 $as_echo_n "(cached) " >&6
11600else
11601 if test -n "$ac_ct_RANLIB"; then
11602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11603else
11604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH
11606do
11607 IFS=$as_save_IFS
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11611 ac_cv_prog_ac_ct_RANLIB="ranlib"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11613 break 2
11614 fi
11615done
11616 done
11617IFS=$as_save_IFS
11618
11619fi
11620fi
11621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11622if test -n "$ac_ct_RANLIB"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11624$as_echo "$ac_ct_RANLIB" >&6; }
11625else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627$as_echo "no" >&6; }
11628fi
11629
11630 if test "x$ac_ct_RANLIB" = x; then
11631 RANLIB=":"
11632 else
11633 case $cross_compiling:$ac_tool_warned in
11634yes:)
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11637ac_tool_warned=yes ;;
11638esac
11639 RANLIB=$ac_ct_RANLIB
11640 fi
11641else
11642 RANLIB="$ac_cv_prog_RANLIB"
11643fi
11644
11645test -z "$RANLIB" && RANLIB=:
11646
11647
11648
11649
11650
11651
11652# Determine commands to create old-style static archives.
11653old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11654old_postinstall_cmds='chmod 644 $oldlib'
11655old_postuninstall_cmds=
11656
11657if test -n "$RANLIB"; then
11658 case $host_os in
11659 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011661 ;;
11662 *)
cristy99bd5232011-12-07 14:38:20 +000011663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011664 ;;
11665 esac
cristy99bd5232011-12-07 14:38:20 +000011666 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011667fi
11668
cristy0c60a692010-11-04 01:09:47 +000011669case $host_os in
11670 darwin*)
11671 lock_old_archive_extraction=yes ;;
11672 *)
11673 lock_old_archive_extraction=no ;;
11674esac
11675
11676
11677
11678
11679
11680
cristy73bd4a52010-10-05 11:24:23 +000011681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714# If no C compiler was specified, use CC.
11715LTCC=${LTCC-"$CC"}
11716
11717# If no C compiler flags were specified, use CFLAGS.
11718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11719
11720# Allow CC to be a program name with arguments.
11721compiler=$CC
11722
11723
11724# Check for command to grab the raw symbol name followed by C symbol from nm.
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11726$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011727if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011728 $as_echo_n "(cached) " >&6
11729else
11730
11731# These are sane defaults that work on at least a few old systems.
11732# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11733
11734# Character class describing NM global symbol codes.
11735symcode='[BCDEGRST]'
11736
11737# Regexp to match symbols that can be accessed directly from C.
11738sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11739
11740# Define system-specific variables.
11741case $host_os in
11742aix*)
11743 symcode='[BCDT]'
11744 ;;
11745cygwin* | mingw* | pw32* | cegcc*)
11746 symcode='[ABCDGISTW]'
11747 ;;
11748hpux*)
11749 if test "$host_cpu" = ia64; then
11750 symcode='[ABCDEGRST]'
11751 fi
11752 ;;
11753irix* | nonstopux*)
11754 symcode='[BCDEGRST]'
11755 ;;
11756osf*)
11757 symcode='[BCDEGQRST]'
11758 ;;
11759solaris*)
11760 symcode='[BDRT]'
11761 ;;
11762sco3.2v5*)
11763 symcode='[DT]'
11764 ;;
11765sysv4.2uw2*)
11766 symcode='[DT]'
11767 ;;
11768sysv5* | sco5v6* | unixware* | OpenUNIX*)
11769 symcode='[ABDT]'
11770 ;;
11771sysv4)
11772 symcode='[DFNSTU]'
11773 ;;
11774esac
11775
11776# If we're using GNU nm, then use its standard symbol codes.
11777case `$NM -V 2>&1` in
11778*GNU* | *'with BFD'*)
11779 symcode='[ABCDGIRSTW]' ;;
11780esac
11781
11782# Transform an extracted symbol line into a proper C declaration.
11783# Some systems (esp. on ia64) link data and code symbols differently,
11784# so use this general approach.
11785lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11786
11787# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011788lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11789lt_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'"
cristy73bd4a52010-10-05 11:24:23 +000011790
11791# Handle CRLF in mingw tool chain
11792opt_cr=
11793case $build_os in
11794mingw*)
11795 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11796 ;;
11797esac
11798
11799# Try without a prefix underscore, then with it.
11800for ac_symprfx in "" "_"; do
11801
11802 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11803 symxfrm="\\1 $ac_symprfx\\2 \\2"
11804
11805 # Write the raw and C identifiers.
11806 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11807 # Fake it for dumpbin and say T for any non-static function
11808 # and D for any global variable.
11809 # Also find C++ and __fastcall symbols from MSVC++,
11810 # which start with @ or ?.
11811 lt_cv_sys_global_symbol_pipe="$AWK '"\
11812" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011813" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011814" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11815" \$ 0!~/External *\|/{next};"\
11816" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11817" {if(hide[section]) next};"\
11818" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11819" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11820" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11821" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11822" ' prfx=^$ac_symprfx"
11823 else
11824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11825 fi
cristyda16f162011-02-19 23:52:17 +000011826 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011827
11828 # Check to see that the pipe works correctly.
11829 pipe_works=no
11830
11831 rm -f conftest*
11832 cat > conftest.$ac_ext <<_LT_EOF
11833#ifdef __cplusplus
11834extern "C" {
11835#endif
11836char nm_test_var;
11837void nm_test_func(void);
11838void nm_test_func(void){}
11839#ifdef __cplusplus
11840}
11841#endif
11842int main(){nm_test_var='a';nm_test_func();return(0);}
11843_LT_EOF
11844
11845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11846 (eval $ac_compile) 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11849 test $ac_status = 0; }; then
11850 # Now try to grab the symbols.
11851 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11853 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011854 ac_status=$?
11855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856 test $ac_status = 0; } && test -s "$nlist"; then
11857 # Try sorting and uniquifying the output.
11858 if sort "$nlist" | uniq > "$nlist"T; then
11859 mv -f "$nlist"T "$nlist"
11860 else
11861 rm -f "$nlist"T
11862 fi
11863
11864 # Make sure that we snagged all the symbols we need.
11865 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11866 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11867 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011868/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11869#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11870/* DATA imports from DLLs on WIN32 con't be const, because runtime
11871 relocations are performed -- see ld's documentation on pseudo-relocs. */
11872# define LT_DLSYM_CONST
11873#elif defined(__osf__)
11874/* This system does not cope well with relocations in const data. */
11875# define LT_DLSYM_CONST
11876#else
11877# define LT_DLSYM_CONST const
11878#endif
11879
cristy73bd4a52010-10-05 11:24:23 +000011880#ifdef __cplusplus
11881extern "C" {
11882#endif
11883
11884_LT_EOF
11885 # Now generate the symbol file.
11886 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11887
11888 cat <<_LT_EOF >> conftest.$ac_ext
11889
11890/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011891LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011892 const char *name;
11893 void *address;
11894}
11895lt__PROGRAM__LTX_preloaded_symbols[] =
11896{
11897 { "@PROGRAM@", (void *) 0 },
11898_LT_EOF
11899 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11900 cat <<\_LT_EOF >> conftest.$ac_ext
11901 {0, (void *) 0}
11902};
11903
11904/* This works around a problem in FreeBSD linker */
11905#ifdef FREEBSD_WORKAROUND
11906static const void *lt_preloaded_setup() {
11907 return lt__PROGRAM__LTX_preloaded_symbols;
11908}
11909#endif
11910
11911#ifdef __cplusplus
11912}
11913#endif
11914_LT_EOF
11915 # Now try linking the two files.
11916 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011917 lt_globsym_save_LIBS=$LIBS
11918 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011919 LIBS="conftstm.$ac_objext"
11920 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11926 pipe_works=yes
11927 fi
cristyda16f162011-02-19 23:52:17 +000011928 LIBS=$lt_globsym_save_LIBS
11929 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011930 else
11931 echo "cannot find nm_test_func in $nlist" >&5
11932 fi
11933 else
11934 echo "cannot find nm_test_var in $nlist" >&5
11935 fi
11936 else
11937 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11938 fi
11939 else
11940 echo "$progname: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 fi
11943 rm -rf conftest* conftst*
11944
11945 # Do not use the global_symbol_pipe unless it works.
11946 if test "$pipe_works" = yes; then
11947 break
11948 else
11949 lt_cv_sys_global_symbol_pipe=
11950 fi
11951done
11952
11953fi
11954
11955if test -z "$lt_cv_sys_global_symbol_pipe"; then
11956 lt_cv_sys_global_symbol_to_cdecl=
11957fi
11958if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11960$as_echo "failed" >&6; }
11961else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11963$as_echo "ok" >&6; }
11964fi
11965
cristyda16f162011-02-19 23:52:17 +000011966# Response file support.
11967if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11968 nm_file_list_spec='@'
11969elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11970 nm_file_list_spec='@'
11971fi
cristy73bd4a52010-10-05 11:24:23 +000011972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
cristyda16f162011-02-19 23:52:17 +000011993
11994
11995
11996
11997
11998
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12000$as_echo_n "checking for sysroot... " >&6; }
12001
12002# Check whether --with-sysroot was given.
12003if test "${with_sysroot+set}" = set; then :
12004 withval=$with_sysroot;
12005else
12006 with_sysroot=no
12007fi
12008
12009
12010lt_sysroot=
12011case ${with_sysroot} in #(
12012 yes)
12013 if test "$GCC" = yes; then
12014 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12015 fi
12016 ;; #(
12017 /*)
12018 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12019 ;; #(
12020 no|'')
12021 ;; #(
12022 *)
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12024$as_echo "${with_sysroot}" >&6; }
12025 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12026 ;;
12027esac
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12030$as_echo "${lt_sysroot:-no}" >&6; }
12031
12032
12033
12034
12035
cristy73bd4a52010-10-05 11:24:23 +000012036# Check whether --enable-libtool-lock was given.
12037if test "${enable_libtool_lock+set}" = set; then :
12038 enableval=$enable_libtool_lock;
12039fi
12040
12041test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12042
12043# Some flags need to be propagated to the compiler or linker for good
12044# libtool support.
12045case $host in
12046ia64-*-hpux*)
12047 # Find out which ABI we are using.
12048 echo 'int i;' > conftest.$ac_ext
12049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12050 (eval $ac_compile) 2>&5
12051 ac_status=$?
12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; }; then
12054 case `/usr/bin/file conftest.$ac_objext` in
12055 *ELF-32*)
12056 HPUX_IA64_MODE="32"
12057 ;;
12058 *ELF-64*)
12059 HPUX_IA64_MODE="64"
12060 ;;
12061 esac
12062 fi
12063 rm -rf conftest*
12064 ;;
12065*-*-irix6*)
12066 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012067 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12069 (eval $ac_compile) 2>&5
12070 ac_status=$?
12071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12072 test $ac_status = 0; }; then
12073 if test "$lt_cv_prog_gnu_ld" = yes; then
12074 case `/usr/bin/file conftest.$ac_objext` in
12075 *32-bit*)
12076 LD="${LD-ld} -melf32bsmip"
12077 ;;
12078 *N32*)
12079 LD="${LD-ld} -melf32bmipn32"
12080 ;;
12081 *64-bit*)
12082 LD="${LD-ld} -melf64bmip"
12083 ;;
12084 esac
12085 else
12086 case `/usr/bin/file conftest.$ac_objext` in
12087 *32-bit*)
12088 LD="${LD-ld} -32"
12089 ;;
12090 *N32*)
12091 LD="${LD-ld} -n32"
12092 ;;
12093 *64-bit*)
12094 LD="${LD-ld} -64"
12095 ;;
12096 esac
12097 fi
12098 fi
12099 rm -rf conftest*
12100 ;;
12101
12102x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12103s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12104 # Find out which ABI we are using.
12105 echo 'int i;' > conftest.$ac_ext
12106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12107 (eval $ac_compile) 2>&5
12108 ac_status=$?
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }; then
12111 case `/usr/bin/file conftest.o` in
12112 *32-bit*)
12113 case $host in
12114 x86_64-*kfreebsd*-gnu)
12115 LD="${LD-ld} -m elf_i386_fbsd"
12116 ;;
12117 x86_64-*linux*)
12118 LD="${LD-ld} -m elf_i386"
12119 ;;
12120 ppc64-*linux*|powerpc64-*linux*)
12121 LD="${LD-ld} -m elf32ppclinux"
12122 ;;
12123 s390x-*linux*)
12124 LD="${LD-ld} -m elf_s390"
12125 ;;
12126 sparc64-*linux*)
12127 LD="${LD-ld} -m elf32_sparc"
12128 ;;
12129 esac
12130 ;;
12131 *64-bit*)
12132 case $host in
12133 x86_64-*kfreebsd*-gnu)
12134 LD="${LD-ld} -m elf_x86_64_fbsd"
12135 ;;
12136 x86_64-*linux*)
12137 LD="${LD-ld} -m elf_x86_64"
12138 ;;
12139 ppc*-*linux*|powerpc*-*linux*)
12140 LD="${LD-ld} -m elf64ppc"
12141 ;;
12142 s390*-*linux*|s390*-*tpf*)
12143 LD="${LD-ld} -m elf64_s390"
12144 ;;
12145 sparc*-*linux*)
12146 LD="${LD-ld} -m elf64_sparc"
12147 ;;
12148 esac
12149 ;;
12150 esac
12151 fi
12152 rm -rf conftest*
12153 ;;
12154
12155*-*-sco3.2v5*)
12156 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12157 SAVE_CFLAGS="$CFLAGS"
12158 CFLAGS="$CFLAGS -belf"
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12160$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012161if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012162 $as_echo_n "(cached) " >&6
12163else
12164 ac_ext=c
12165ac_cpp='$CPP $CPPFLAGS'
12166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h. */
12172
12173int
12174main ()
12175{
12176
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181if ac_fn_c_try_link "$LINENO"; then :
12182 lt_cv_cc_needs_belf=yes
12183else
12184 lt_cv_cc_needs_belf=no
12185fi
12186rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 ac_ext=c
12189ac_cpp='$CPP $CPPFLAGS'
12190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192ac_compiler_gnu=$ac_cv_c_compiler_gnu
12193
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12196$as_echo "$lt_cv_cc_needs_belf" >&6; }
12197 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12198 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12199 CFLAGS="$SAVE_CFLAGS"
12200 fi
12201 ;;
cristy99bd5232011-12-07 14:38:20 +000012202*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012203 # Find out which ABI we are using.
12204 echo 'int i;' > conftest.$ac_ext
12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12206 (eval $ac_compile) 2>&5
12207 ac_status=$?
12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12209 test $ac_status = 0; }; then
12210 case `/usr/bin/file conftest.o` in
12211 *64-bit*)
12212 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012213 yes*)
12214 case $host in
12215 i?86-*-solaris*)
12216 LD="${LD-ld} -m elf_x86_64"
12217 ;;
12218 sparc*-*-solaris*)
12219 LD="${LD-ld} -m elf64_sparc"
12220 ;;
12221 esac
12222 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12223 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12224 LD="${LD-ld}_sol2"
12225 fi
12226 ;;
cristy73bd4a52010-10-05 11:24:23 +000012227 *)
12228 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12229 LD="${LD-ld} -64"
12230 fi
12231 ;;
12232 esac
12233 ;;
12234 esac
12235 fi
12236 rm -rf conftest*
12237 ;;
12238esac
12239
12240need_locks="$enable_libtool_lock"
12241
cristyda16f162011-02-19 23:52:17 +000012242if test -n "$ac_tool_prefix"; then
12243 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12244set dummy ${ac_tool_prefix}mt; ac_word=$2
12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246$as_echo_n "checking for $ac_word... " >&6; }
12247if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249else
12250 if test -n "$MANIFEST_TOOL"; then
12251 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12252else
12253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254for as_dir in $PATH
12255do
12256 IFS=$as_save_IFS
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 break 2
12263 fi
12264done
12265 done
12266IFS=$as_save_IFS
12267
12268fi
12269fi
12270MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12271if test -n "$MANIFEST_TOOL"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12273$as_echo "$MANIFEST_TOOL" >&6; }
12274else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
12277fi
12278
12279
12280fi
12281if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12282 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12283 # Extract the first word of "mt", so it can be a program name with args.
12284set dummy mt; ac_word=$2
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286$as_echo_n "checking for $ac_word... " >&6; }
12287if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289else
12290 if test -n "$ac_ct_MANIFEST_TOOL"; then
12291 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12292else
12293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294for as_dir in $PATH
12295do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304done
12305 done
12306IFS=$as_save_IFS
12307
12308fi
12309fi
12310ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12311if test -n "$ac_ct_MANIFEST_TOOL"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12313$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12314else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316$as_echo "no" >&6; }
12317fi
12318
12319 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12320 MANIFEST_TOOL=":"
12321 else
12322 case $cross_compiling:$ac_tool_warned in
12323yes:)
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12326ac_tool_warned=yes ;;
12327esac
12328 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12329 fi
12330else
12331 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12332fi
12333
12334test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12336$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12337if ${lt_cv_path_mainfest_tool+:} false; then :
12338 $as_echo_n "(cached) " >&6
12339else
12340 lt_cv_path_mainfest_tool=no
12341 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12342 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12343 cat conftest.err >&5
12344 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12345 lt_cv_path_mainfest_tool=yes
12346 fi
12347 rm -f conftest*
12348fi
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12350$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12351if test "x$lt_cv_path_mainfest_tool" != xyes; then
12352 MANIFEST_TOOL=:
12353fi
12354
12355
12356
12357
12358
cristy73bd4a52010-10-05 11:24:23 +000012359
12360 case $host_os in
12361 rhapsody* | darwin*)
12362 if test -n "$ac_tool_prefix"; then
12363 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12364set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012367if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012368 $as_echo_n "(cached) " >&6
12369else
12370 if test -n "$DSYMUTIL"; then
12371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384done
12385 done
12386IFS=$as_save_IFS
12387
12388fi
12389fi
12390DSYMUTIL=$ac_cv_prog_DSYMUTIL
12391if test -n "$DSYMUTIL"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12393$as_echo "$DSYMUTIL" >&6; }
12394else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398
12399
12400fi
12401if test -z "$ac_cv_prog_DSYMUTIL"; then
12402 ac_ct_DSYMUTIL=$DSYMUTIL
12403 # Extract the first word of "dsymutil", so it can be a program name with args.
12404set dummy dsymutil; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012407if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012408 $as_echo_n "(cached) " >&6
12409else
12410 if test -n "$ac_ct_DSYMUTIL"; then
12411 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424done
12425 done
12426IFS=$as_save_IFS
12427
12428fi
12429fi
12430ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12431if test -n "$ac_ct_DSYMUTIL"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12433$as_echo "$ac_ct_DSYMUTIL" >&6; }
12434else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437fi
12438
12439 if test "x$ac_ct_DSYMUTIL" = x; then
12440 DSYMUTIL=":"
12441 else
12442 case $cross_compiling:$ac_tool_warned in
12443yes:)
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446ac_tool_warned=yes ;;
12447esac
12448 DSYMUTIL=$ac_ct_DSYMUTIL
12449 fi
12450else
12451 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12452fi
12453
12454 if test -n "$ac_tool_prefix"; then
12455 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12456set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012459if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$NMEDIT"; then
12463 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482NMEDIT=$ac_cv_prog_NMEDIT
12483if test -n "$NMEDIT"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12485$as_echo "$NMEDIT" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492fi
12493if test -z "$ac_cv_prog_NMEDIT"; then
12494 ac_ct_NMEDIT=$NMEDIT
12495 # Extract the first word of "nmedit", so it can be a program name with args.
12496set dummy nmedit; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012499if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012500 $as_echo_n "(cached) " >&6
12501else
12502 if test -n "$ac_ct_NMEDIT"; then
12503 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516done
12517 done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12523if test -n "$ac_ct_NMEDIT"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12525$as_echo "$ac_ct_NMEDIT" >&6; }
12526else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531 if test "x$ac_ct_NMEDIT" = x; then
12532 NMEDIT=":"
12533 else
12534 case $cross_compiling:$ac_tool_warned in
12535yes:)
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12538ac_tool_warned=yes ;;
12539esac
12540 NMEDIT=$ac_ct_NMEDIT
12541 fi
12542else
12543 NMEDIT="$ac_cv_prog_NMEDIT"
12544fi
12545
12546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12548set dummy ${ac_tool_prefix}lipo; 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; }
cristyda16f162011-02-19 23:52:17 +000012551if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012552 $as_echo_n "(cached) " >&6
12553else
12554 if test -n "$LIPO"; then
12555 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12556else
12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $PATH
12559do
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_LIPO="${ac_tool_prefix}lipo"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572fi
12573fi
12574LIPO=$ac_cv_prog_LIPO
12575if test -n "$LIPO"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12577$as_echo "$LIPO" >&6; }
12578else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581fi
12582
12583
12584fi
12585if test -z "$ac_cv_prog_LIPO"; then
12586 ac_ct_LIPO=$LIPO
12587 # Extract the first word of "lipo", so it can be a program name with args.
12588set dummy lipo; 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; }
cristyda16f162011-02-19 23:52:17 +000012591if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012592 $as_echo_n "(cached) " >&6
12593else
12594 if test -n "$ac_ct_LIPO"; then
12595 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
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_LIPO="lipo"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608done
12609 done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12615if test -n "$ac_ct_LIPO"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12617$as_echo "$ac_ct_LIPO" >&6; }
12618else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623 if test "x$ac_ct_LIPO" = x; then
12624 LIPO=":"
12625 else
12626 case $cross_compiling:$ac_tool_warned in
12627yes:)
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;}
12630ac_tool_warned=yes ;;
12631esac
12632 LIPO=$ac_ct_LIPO
12633 fi
12634else
12635 LIPO="$ac_cv_prog_LIPO"
12636fi
12637
12638 if test -n "$ac_tool_prefix"; then
12639 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12640set dummy ${ac_tool_prefix}otool; 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; }
cristyda16f162011-02-19 23:52:17 +000012643if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012644 $as_echo_n "(cached) " >&6
12645else
12646 if test -n "$OTOOL"; then
12647 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12648else
12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12650for as_dir in $PATH
12651do
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_OTOOL="${ac_tool_prefix}otool"
12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658 break 2
12659 fi
12660done
12661 done
12662IFS=$as_save_IFS
12663
12664fi
12665fi
12666OTOOL=$ac_cv_prog_OTOOL
12667if test -n "$OTOOL"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12669$as_echo "$OTOOL" >&6; }
12670else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672$as_echo "no" >&6; }
12673fi
12674
12675
12676fi
12677if test -z "$ac_cv_prog_OTOOL"; then
12678 ac_ct_OTOOL=$OTOOL
12679 # Extract the first word of "otool", so it can be a program name with args.
12680set dummy otool; 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; }
cristyda16f162011-02-19 23:52:17 +000012683if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686 if test -n "$ac_ct_OTOOL"; then
12687 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
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_OTOOL="otool"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700done
12701 done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12707if test -n "$ac_ct_OTOOL"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12709$as_echo "$ac_ct_OTOOL" >&6; }
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715 if test "x$ac_ct_OTOOL" = x; then
12716 OTOOL=":"
12717 else
12718 case $cross_compiling:$ac_tool_warned in
12719yes:)
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;}
12722ac_tool_warned=yes ;;
12723esac
12724 OTOOL=$ac_ct_OTOOL
12725 fi
12726else
12727 OTOOL="$ac_cv_prog_OTOOL"
12728fi
12729
12730 if test -n "$ac_tool_prefix"; then
12731 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12732set dummy ${ac_tool_prefix}otool64; 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; }
cristyda16f162011-02-19 23:52:17 +000012735if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012736 $as_echo_n "(cached) " >&6
12737else
12738 if test -n "$OTOOL64"; then
12739 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12740else
12741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
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_OTOOL64="${ac_tool_prefix}otool64"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752done
12753 done
12754IFS=$as_save_IFS
12755
12756fi
12757fi
12758OTOOL64=$ac_cv_prog_OTOOL64
12759if test -n "$OTOOL64"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12761$as_echo "$OTOOL64" >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767
12768fi
12769if test -z "$ac_cv_prog_OTOOL64"; then
12770 ac_ct_OTOOL64=$OTOOL64
12771 # Extract the first word of "otool64", so it can be a program name with args.
12772set dummy otool64; 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; }
cristyda16f162011-02-19 23:52:17 +000012775if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$ac_ct_OTOOL64"; then
12779 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
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_OTOOL64="otool64"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12799if test -n "$ac_ct_OTOOL64"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12801$as_echo "$ac_ct_OTOOL64" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807 if test "x$ac_ct_OTOOL64" = x; then
12808 OTOOL64=":"
12809 else
12810 case $cross_compiling:$ac_tool_warned in
12811yes:)
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;}
12814ac_tool_warned=yes ;;
12815esac
12816 OTOOL64=$ac_ct_OTOOL64
12817 fi
12818else
12819 OTOOL64="$ac_cv_prog_OTOOL64"
12820fi
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12849$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012850if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012851 $as_echo_n "(cached) " >&6
12852else
12853 lt_cv_apple_cc_single_mod=no
12854 if test -z "${LT_MULTI_MODULE}"; then
12855 # By default we will add the -single_module flag. You can override
12856 # by either setting the environment variable LT_MULTI_MODULE
12857 # non-empty at configure time, or by adding -multi_module to the
12858 # link flags.
12859 rm -rf libconftest.dylib*
12860 echo "int foo(void){return 1;}" > conftest.c
12861 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12862-dynamiclib -Wl,-single_module conftest.c" >&5
12863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12864 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12865 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012866 # If there is a non-empty error log, and "single_module"
12867 # appears in it, assume the flag caused a linker warning
12868 if test -s conftest.err && $GREP single_module conftest.err; then
12869 cat conftest.err >&5
12870 # Otherwise, if the output was created with a 0 exit code from
12871 # the compiler, it worked.
12872 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012873 lt_cv_apple_cc_single_mod=yes
12874 else
12875 cat conftest.err >&5
12876 fi
12877 rm -rf libconftest.dylib*
12878 rm -f conftest.*
12879 fi
12880fi
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12882$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012883
cristy73bd4a52010-10-05 11:24:23 +000012884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12885$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012886if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012887 $as_echo_n "(cached) " >&6
12888else
12889 lt_cv_ld_exported_symbols_list=no
12890 save_LDFLAGS=$LDFLAGS
12891 echo "_main" > conftest.sym
12892 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894/* end confdefs.h. */
12895
12896int
12897main ()
12898{
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904if ac_fn_c_try_link "$LINENO"; then :
12905 lt_cv_ld_exported_symbols_list=yes
12906else
12907 lt_cv_ld_exported_symbols_list=no
12908fi
12909rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LDFLAGS="$save_LDFLAGS"
12912
12913fi
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12915$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012916
cristy0c60a692010-11-04 01:09:47 +000012917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12918$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012919if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012920 $as_echo_n "(cached) " >&6
12921else
12922 lt_cv_ld_force_load=no
12923 cat > conftest.c << _LT_EOF
12924int forced_loaded() { return 2;}
12925_LT_EOF
12926 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12927 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12928 echo "$AR cru libconftest.a conftest.o" >&5
12929 $AR cru libconftest.a conftest.o 2>&5
12930 echo "$RANLIB libconftest.a" >&5
12931 $RANLIB libconftest.a 2>&5
12932 cat > conftest.c << _LT_EOF
12933int main() { return 0;}
12934_LT_EOF
12935 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12936 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12937 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012938 if test -s conftest.err && $GREP force_load conftest.err; then
12939 cat conftest.err >&5
12940 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012941 lt_cv_ld_force_load=yes
12942 else
12943 cat conftest.err >&5
12944 fi
12945 rm -f conftest.err libconftest.a conftest conftest.c
12946 rm -rf conftest.dSYM
12947
12948fi
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12950$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012951 case $host_os in
12952 rhapsody* | darwin1.[012])
12953 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12954 darwin1.*)
12955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12956 darwin*) # darwin 5.x on
12957 # if running on 10.5 or later, the deployment target defaults
12958 # to the OS version, if on x86, and 10.4, the deployment
12959 # target defaults to 10.4. Don't you love it?
12960 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12961 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12962 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12963 10.[012]*)
12964 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12965 10.*)
12966 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12967 esac
12968 ;;
12969 esac
12970 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12971 _lt_dar_single_mod='$single_module'
12972 fi
12973 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12974 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12975 else
12976 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12977 fi
cristy0c60a692010-11-04 01:09:47 +000012978 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012979 _lt_dsymutil='~$DSYMUTIL $lib || :'
12980 else
12981 _lt_dsymutil=
12982 fi
12983 ;;
12984 esac
12985
12986for ac_header in dlfcn.h
12987do :
12988 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12989"
cristyda16f162011-02-19 23:52:17 +000012990if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012991 cat >>confdefs.h <<_ACEOF
12992#define HAVE_DLFCN_H 1
12993_ACEOF
12994
12995fi
12996
12997done
12998
12999
13000
cristy73bd4a52010-10-05 11:24:23 +000013001
cristyda16f162011-02-19 23:52:17 +000013002func_stripname_cnf ()
13003{
13004 case ${2} in
13005 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13006 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13007 esac
13008} # func_stripname_cnf
13009
13010
13011
cristy73bd4a52010-10-05 11:24:23 +000013012
13013
13014# Set options
13015enable_win32_dll=yes
13016
13017case $host in
cristy0c60a692010-11-04 01:09:47 +000013018*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013019 if test -n "$ac_tool_prefix"; then
13020 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13021set dummy ${ac_tool_prefix}as; ac_word=$2
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013024if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013025 $as_echo_n "(cached) " >&6
13026else
13027 if test -n "$AS"; then
13028 ac_cv_prog_AS="$AS" # Let the user override the test.
13029else
13030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031for as_dir in $PATH
13032do
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_AS="${ac_tool_prefix}as"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13040 fi
13041done
13042 done
13043IFS=$as_save_IFS
13044
13045fi
13046fi
13047AS=$ac_cv_prog_AS
13048if test -n "$AS"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13050$as_echo "$AS" >&6; }
13051else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
13054fi
13055
13056
13057fi
13058if test -z "$ac_cv_prog_AS"; then
13059 ac_ct_AS=$AS
13060 # Extract the first word of "as", so it can be a program name with args.
13061set dummy as; ac_word=$2
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013064if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013065 $as_echo_n "(cached) " >&6
13066else
13067 if test -n "$ac_ct_AS"; then
13068 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13069else
13070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071for as_dir in $PATH
13072do
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13077 ac_cv_prog_ac_ct_AS="as"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13080 fi
13081done
13082 done
13083IFS=$as_save_IFS
13084
13085fi
13086fi
13087ac_ct_AS=$ac_cv_prog_ac_ct_AS
13088if test -n "$ac_ct_AS"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13090$as_echo "$ac_ct_AS" >&6; }
13091else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
13094fi
13095
13096 if test "x$ac_ct_AS" = x; then
13097 AS="false"
13098 else
13099 case $cross_compiling:$ac_tool_warned in
13100yes:)
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13103ac_tool_warned=yes ;;
13104esac
13105 AS=$ac_ct_AS
13106 fi
13107else
13108 AS="$ac_cv_prog_AS"
13109fi
13110
13111 if test -n "$ac_tool_prefix"; then
13112 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13113set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013116if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013117 $as_echo_n "(cached) " >&6
13118else
13119 if test -n "$DLLTOOL"; then
13120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13121else
13122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $PATH
13124do
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 break 2
13132 fi
13133done
13134 done
13135IFS=$as_save_IFS
13136
13137fi
13138fi
13139DLLTOOL=$ac_cv_prog_DLLTOOL
13140if test -n "$DLLTOOL"; then
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13142$as_echo "$DLLTOOL" >&6; }
13143else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
13146fi
13147
13148
13149fi
13150if test -z "$ac_cv_prog_DLLTOOL"; then
13151 ac_ct_DLLTOOL=$DLLTOOL
13152 # Extract the first word of "dlltool", so it can be a program name with args.
13153set dummy dlltool; ac_word=$2
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013156if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013157 $as_echo_n "(cached) " >&6
13158else
13159 if test -n "$ac_ct_DLLTOOL"; then
13160 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13169 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13172 fi
13173done
13174 done
13175IFS=$as_save_IFS
13176
13177fi
13178fi
13179ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13180if test -n "$ac_ct_DLLTOOL"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13182$as_echo "$ac_ct_DLLTOOL" >&6; }
13183else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185$as_echo "no" >&6; }
13186fi
13187
13188 if test "x$ac_ct_DLLTOOL" = x; then
13189 DLLTOOL="false"
13190 else
13191 case $cross_compiling:$ac_tool_warned in
13192yes:)
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13195ac_tool_warned=yes ;;
13196esac
13197 DLLTOOL=$ac_ct_DLLTOOL
13198 fi
13199else
13200 DLLTOOL="$ac_cv_prog_DLLTOOL"
13201fi
13202
13203 if test -n "$ac_tool_prefix"; then
13204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13205set dummy ${ac_tool_prefix}objdump; ac_word=$2
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013208if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013209 $as_echo_n "(cached) " >&6
13210else
13211 if test -n "$OBJDUMP"; then
13212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13213else
13214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $PATH
13216do
13217 IFS=$as_save_IFS
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 break 2
13224 fi
13225done
13226 done
13227IFS=$as_save_IFS
13228
13229fi
13230fi
13231OBJDUMP=$ac_cv_prog_OBJDUMP
13232if test -n "$OBJDUMP"; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13234$as_echo "$OBJDUMP" >&6; }
13235else
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
13238fi
13239
13240
13241fi
13242if test -z "$ac_cv_prog_OBJDUMP"; then
13243 ac_ct_OBJDUMP=$OBJDUMP
13244 # Extract the first word of "objdump", so it can be a program name with args.
13245set dummy objdump; ac_word=$2
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013248if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013249 $as_echo_n "(cached) " >&6
13250else
13251 if test -n "$ac_ct_OBJDUMP"; then
13252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265done
13266 done
13267IFS=$as_save_IFS
13268
13269fi
13270fi
13271ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13272if test -n "$ac_ct_OBJDUMP"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13274$as_echo "$ac_ct_OBJDUMP" >&6; }
13275else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
13280 if test "x$ac_ct_OBJDUMP" = x; then
13281 OBJDUMP="false"
13282 else
13283 case $cross_compiling:$ac_tool_warned in
13284yes:)
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13287ac_tool_warned=yes ;;
13288esac
13289 OBJDUMP=$ac_ct_OBJDUMP
13290 fi
13291else
13292 OBJDUMP="$ac_cv_prog_OBJDUMP"
13293fi
13294
13295 ;;
13296esac
13297
13298test -z "$AS" && AS=as
13299
13300
13301
13302
13303
13304test -z "$DLLTOOL" && DLLTOOL=dlltool
13305
13306
13307
13308
13309
13310test -z "$OBJDUMP" && OBJDUMP=objdump
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320 # Check whether --enable-shared was given.
13321if test "${enable_shared+set}" = set; then :
13322 enableval=$enable_shared; p=${PACKAGE-default}
13323 case $enableval in
13324 yes) enable_shared=yes ;;
13325 no) enable_shared=no ;;
13326 *)
13327 enable_shared=no
13328 # Look at the argument we got. We use all the common list separators.
13329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13330 for pkg in $enableval; do
13331 IFS="$lt_save_ifs"
13332 if test "X$pkg" = "X$p"; then
13333 enable_shared=yes
13334 fi
13335 done
13336 IFS="$lt_save_ifs"
13337 ;;
13338 esac
13339else
13340 enable_shared=yes
13341fi
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351 # Check whether --enable-static was given.
13352if test "${enable_static+set}" = set; then :
13353 enableval=$enable_static; p=${PACKAGE-default}
13354 case $enableval in
13355 yes) enable_static=yes ;;
13356 no) enable_static=no ;;
13357 *)
13358 enable_static=no
13359 # Look at the argument we got. We use all the common list separators.
13360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13361 for pkg in $enableval; do
13362 IFS="$lt_save_ifs"
13363 if test "X$pkg" = "X$p"; then
13364 enable_static=yes
13365 fi
13366 done
13367 IFS="$lt_save_ifs"
13368 ;;
13369 esac
13370else
13371 enable_static=yes
13372fi
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383# Check whether --with-pic was given.
13384if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013385 withval=$with_pic; lt_p=${PACKAGE-default}
13386 case $withval in
13387 yes|no) pic_mode=$withval ;;
13388 *)
13389 pic_mode=default
13390 # Look at the argument we got. We use all the common list separators.
13391 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13392 for lt_pkg in $withval; do
13393 IFS="$lt_save_ifs"
13394 if test "X$lt_pkg" = "X$lt_p"; then
13395 pic_mode=yes
13396 fi
13397 done
13398 IFS="$lt_save_ifs"
13399 ;;
13400 esac
cristy73bd4a52010-10-05 11:24:23 +000013401else
13402 pic_mode=default
13403fi
13404
13405
13406test -z "$pic_mode" && pic_mode=default
13407
13408
13409
13410
13411
13412
13413
13414 # Check whether --enable-fast-install was given.
13415if test "${enable_fast_install+set}" = set; then :
13416 enableval=$enable_fast_install; p=${PACKAGE-default}
13417 case $enableval in
13418 yes) enable_fast_install=yes ;;
13419 no) enable_fast_install=no ;;
13420 *)
13421 enable_fast_install=no
13422 # Look at the argument we got. We use all the common list separators.
13423 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13424 for pkg in $enableval; do
13425 IFS="$lt_save_ifs"
13426 if test "X$pkg" = "X$p"; then
13427 enable_fast_install=yes
13428 fi
13429 done
13430 IFS="$lt_save_ifs"
13431 ;;
13432 esac
13433else
13434 enable_fast_install=yes
13435fi
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447# This can be used to rebuild libtool when needed
13448LIBTOOL_DEPS="$ltmain"
13449
13450# Always use our own libtool.
13451LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
cristy0c60a692010-11-04 01:09:47 +000013477
cristy99bd5232011-12-07 14:38:20 +000013478
13479
13480
13481
cristy73bd4a52010-10-05 11:24:23 +000013482test -z "$LN_S" && LN_S="ln -s"
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497if test -n "${ZSH_VERSION+set}" ; then
13498 setopt NO_GLOB_SUBST
13499fi
13500
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13502$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013503if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013504 $as_echo_n "(cached) " >&6
13505else
13506 rm -f .libs 2>/dev/null
13507mkdir .libs 2>/dev/null
13508if test -d .libs; then
13509 lt_cv_objdir=.libs
13510else
13511 # MS-DOS does not allow filenames that begin with a dot.
13512 lt_cv_objdir=_libs
13513fi
13514rmdir .libs 2>/dev/null
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13517$as_echo "$lt_cv_objdir" >&6; }
13518objdir=$lt_cv_objdir
13519
13520
13521
13522
13523
13524cat >>confdefs.h <<_ACEOF
13525#define LT_OBJDIR "$lt_cv_objdir/"
13526_ACEOF
13527
13528
13529
13530
cristy73bd4a52010-10-05 11:24:23 +000013531case $host_os in
13532aix3*)
13533 # AIX sometimes has problems with the GCC collect2 program. For some
13534 # reason, if we set the COLLECT_NAMES environment variable, the problems
13535 # vanish in a puff of smoke.
13536 if test "X${COLLECT_NAMES+set}" != Xset; then
13537 COLLECT_NAMES=
13538 export COLLECT_NAMES
13539 fi
13540 ;;
13541esac
13542
cristy73bd4a52010-10-05 11:24:23 +000013543# Global variables:
13544ofile=libtool
13545can_build_shared=yes
13546
13547# All known linkers require a `.a' archive for static linking (except MSVC,
13548# which needs '.lib').
13549libext=a
13550
13551with_gnu_ld="$lt_cv_prog_gnu_ld"
13552
13553old_CC="$CC"
13554old_CFLAGS="$CFLAGS"
13555
13556# Set sane defaults for various variables
13557test -z "$CC" && CC=cc
13558test -z "$LTCC" && LTCC=$CC
13559test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13560test -z "$LD" && LD=ld
13561test -z "$ac_objext" && ac_objext=o
13562
13563for cc_temp in $compiler""; do
13564 case $cc_temp in
13565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13567 \-*) ;;
13568 *) break;;
13569 esac
13570done
cristy0c60a692010-11-04 01:09:47 +000013571cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013572
13573
13574# Only perform the check for file, if the check method requires it
13575test -z "$MAGIC_CMD" && MAGIC_CMD=file
13576case $deplibs_check_method in
13577file_magic*)
13578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13580$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013581if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013582 $as_echo_n "(cached) " >&6
13583else
13584 case $MAGIC_CMD in
13585[\\/*] | ?:[\\/]*)
13586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13587 ;;
13588*)
13589 lt_save_MAGIC_CMD="$MAGIC_CMD"
13590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13592 for ac_dir in $ac_dummy; do
13593 IFS="$lt_save_ifs"
13594 test -z "$ac_dir" && ac_dir=.
13595 if test -f $ac_dir/${ac_tool_prefix}file; then
13596 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13597 if test -n "$file_magic_test_file"; then
13598 case $deplibs_check_method in
13599 "file_magic "*)
13600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13603 $EGREP "$file_magic_regex" > /dev/null; then
13604 :
13605 else
13606 cat <<_LT_EOF 1>&2
13607
13608*** Warning: the command libtool uses to detect shared libraries,
13609*** $file_magic_cmd, produces output that libtool cannot recognize.
13610*** The result is that libtool may fail to recognize shared libraries
13611*** as such. This will affect the creation of libtool libraries that
13612*** depend on shared libraries, but programs linked with such libtool
13613*** libraries will work regardless of this problem. Nevertheless, you
13614*** may want to report the problem to your system manager and/or to
13615*** bug-libtool@gnu.org
13616
13617_LT_EOF
13618 fi ;;
13619 esac
13620 fi
13621 break
13622 fi
13623 done
13624 IFS="$lt_save_ifs"
13625 MAGIC_CMD="$lt_save_MAGIC_CMD"
13626 ;;
13627esac
13628fi
13629
13630MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13631if test -n "$MAGIC_CMD"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13633$as_echo "$MAGIC_CMD" >&6; }
13634else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
13637fi
13638
13639
13640
13641
13642
13643if test -z "$lt_cv_path_MAGIC_CMD"; then
13644 if test -n "$ac_tool_prefix"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13646$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013647if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013648 $as_echo_n "(cached) " >&6
13649else
13650 case $MAGIC_CMD in
13651[\\/*] | ?:[\\/]*)
13652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13653 ;;
13654*)
13655 lt_save_MAGIC_CMD="$MAGIC_CMD"
13656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13658 for ac_dir in $ac_dummy; do
13659 IFS="$lt_save_ifs"
13660 test -z "$ac_dir" && ac_dir=.
13661 if test -f $ac_dir/file; then
13662 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13663 if test -n "$file_magic_test_file"; then
13664 case $deplibs_check_method in
13665 "file_magic "*)
13666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13669 $EGREP "$file_magic_regex" > /dev/null; then
13670 :
13671 else
13672 cat <<_LT_EOF 1>&2
13673
13674*** Warning: the command libtool uses to detect shared libraries,
13675*** $file_magic_cmd, produces output that libtool cannot recognize.
13676*** The result is that libtool may fail to recognize shared libraries
13677*** as such. This will affect the creation of libtool libraries that
13678*** depend on shared libraries, but programs linked with such libtool
13679*** libraries will work regardless of this problem. Nevertheless, you
13680*** may want to report the problem to your system manager and/or to
13681*** bug-libtool@gnu.org
13682
13683_LT_EOF
13684 fi ;;
13685 esac
13686 fi
13687 break
13688 fi
13689 done
13690 IFS="$lt_save_ifs"
13691 MAGIC_CMD="$lt_save_MAGIC_CMD"
13692 ;;
13693esac
13694fi
13695
13696MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13697if test -n "$MAGIC_CMD"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13699$as_echo "$MAGIC_CMD" >&6; }
13700else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703fi
13704
13705
13706 else
13707 MAGIC_CMD=:
13708 fi
13709fi
13710
13711 fi
13712 ;;
13713esac
13714
13715# Use C for the default configuration in the libtool script
13716
13717lt_save_CC="$CC"
13718ac_ext=c
13719ac_cpp='$CPP $CPPFLAGS'
13720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722ac_compiler_gnu=$ac_cv_c_compiler_gnu
13723
13724
13725# Source file extension for C test sources.
13726ac_ext=c
13727
13728# Object file extension for compiled C test sources.
13729objext=o
13730objext=$objext
13731
13732# Code to be used in simple compile tests
13733lt_simple_compile_test_code="int some_variable = 0;"
13734
13735# Code to be used in simple link tests
13736lt_simple_link_test_code='int main(){return(0);}'
13737
13738
13739
13740
13741
13742
13743
13744# If no C compiler was specified, use CC.
13745LTCC=${LTCC-"$CC"}
13746
13747# If no C compiler flags were specified, use CFLAGS.
13748LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13749
13750# Allow CC to be a program name with arguments.
13751compiler=$CC
13752
13753# Save the default compiler, since it gets overwritten when the other
13754# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13755compiler_DEFAULT=$CC
13756
13757# save warnings/boilerplate of simple test code
13758ac_outfile=conftest.$ac_objext
13759echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13761_lt_compiler_boilerplate=`cat conftest.err`
13762$RM conftest*
13763
13764ac_outfile=conftest.$ac_objext
13765echo "$lt_simple_link_test_code" >conftest.$ac_ext
13766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13767_lt_linker_boilerplate=`cat conftest.err`
13768$RM -r conftest*
13769
13770
13771## CAVEAT EMPTOR:
13772## There is no encapsulation within the following macros, do not change
13773## the running order or otherwise move them around unless you know exactly
13774## what you are doing...
13775if test -n "$compiler"; then
13776
13777lt_prog_compiler_no_builtin_flag=
13778
13779if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013780 case $cc_basename in
13781 nvcc*)
13782 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13783 *)
13784 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13785 esac
cristy73bd4a52010-10-05 11:24:23 +000013786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13788$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013789if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013790 $as_echo_n "(cached) " >&6
13791else
13792 lt_cv_prog_compiler_rtti_exceptions=no
13793 ac_outfile=conftest.$ac_objext
13794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13795 lt_compiler_flag="-fno-rtti -fno-exceptions"
13796 # Insert the option either (1) after the last *FLAGS variable, or
13797 # (2) before a word containing "conftest.", or (3) at the end.
13798 # Note that $ac_compile itself does not contain backslashes and begins
13799 # with a dollar sign (not a hyphen), so the echo should work correctly.
13800 # The option is referenced via a variable to avoid confusing sed.
13801 lt_compile=`echo "$ac_compile" | $SED \
13802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13804 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013806 (eval "$lt_compile" 2>conftest.err)
13807 ac_status=$?
13808 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013810 if (exit $ac_status) && test -s "$ac_outfile"; then
13811 # The compiler can only warn and ignore the option if not recognized
13812 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13816 lt_cv_prog_compiler_rtti_exceptions=yes
13817 fi
13818 fi
13819 $RM conftest*
13820
13821fi
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13823$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13824
13825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13827else
13828 :
13829fi
13830
13831fi
13832
13833
13834
13835
13836
13837
13838 lt_prog_compiler_wl=
13839lt_prog_compiler_pic=
13840lt_prog_compiler_static=
13841
cristy73bd4a52010-10-05 11:24:23 +000013842
13843 if test "$GCC" = yes; then
13844 lt_prog_compiler_wl='-Wl,'
13845 lt_prog_compiler_static='-static'
13846
13847 case $host_os in
13848 aix*)
13849 # All AIX code is PIC.
13850 if test "$host_cpu" = ia64; then
13851 # AIX 5 now supports IA64 processor
13852 lt_prog_compiler_static='-Bstatic'
13853 fi
13854 ;;
13855
13856 amigaos*)
13857 case $host_cpu in
13858 powerpc)
13859 # see comment about AmigaOS4 .so support
13860 lt_prog_compiler_pic='-fPIC'
13861 ;;
13862 m68k)
13863 # FIXME: we need at least 68020 code to build shared libraries, but
13864 # adding the `-m68020' flag to GCC prevents building anything better,
13865 # like `-m68040'.
13866 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13867 ;;
13868 esac
13869 ;;
13870
13871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13872 # PIC is the default for these OSes.
13873 ;;
13874
13875 mingw* | cygwin* | pw32* | os2* | cegcc*)
13876 # This hack is so that the source file can tell whether it is being
13877 # built for inclusion in a dll (and should export symbols for example).
13878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13879 # (--disable-auto-import) libraries
13880 lt_prog_compiler_pic='-DDLL_EXPORT'
13881 ;;
13882
13883 darwin* | rhapsody*)
13884 # PIC is the default on this platform
13885 # Common symbols not allowed in MH_DYLIB files
13886 lt_prog_compiler_pic='-fno-common'
13887 ;;
13888
cristy0c60a692010-11-04 01:09:47 +000013889 haiku*)
13890 # PIC is the default for Haiku.
13891 # The "-static" flag exists, but is broken.
13892 lt_prog_compiler_static=
13893 ;;
13894
cristy73bd4a52010-10-05 11:24:23 +000013895 hpux*)
13896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13898 # sets the default TLS model and affects inlining.
13899 case $host_cpu in
13900 hppa*64*)
13901 # +Z the default
13902 ;;
13903 *)
13904 lt_prog_compiler_pic='-fPIC'
13905 ;;
13906 esac
13907 ;;
13908
13909 interix[3-9]*)
13910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13911 # Instead, we relocate shared libraries at runtime.
13912 ;;
13913
13914 msdosdjgpp*)
13915 # Just because we use GCC doesn't mean we suddenly get shared libraries
13916 # on systems that don't support them.
13917 lt_prog_compiler_can_build_shared=no
13918 enable_shared=no
13919 ;;
13920
13921 *nto* | *qnx*)
13922 # QNX uses GNU C++, but need to define -shared option too, otherwise
13923 # it will coredump.
13924 lt_prog_compiler_pic='-fPIC -shared'
13925 ;;
13926
13927 sysv4*MP*)
13928 if test -d /usr/nec; then
13929 lt_prog_compiler_pic=-Kconform_pic
13930 fi
13931 ;;
13932
13933 *)
13934 lt_prog_compiler_pic='-fPIC'
13935 ;;
13936 esac
cristy0c60a692010-11-04 01:09:47 +000013937
13938 case $cc_basename in
13939 nvcc*) # Cuda Compiler Driver 2.2
13940 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013941 if test -n "$lt_prog_compiler_pic"; then
13942 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13943 fi
cristy0c60a692010-11-04 01:09:47 +000013944 ;;
13945 esac
cristy73bd4a52010-10-05 11:24:23 +000013946 else
13947 # PORTME Check for flag to pass linker flags through the system compiler.
13948 case $host_os in
13949 aix*)
13950 lt_prog_compiler_wl='-Wl,'
13951 if test "$host_cpu" = ia64; then
13952 # AIX 5 now supports IA64 processor
13953 lt_prog_compiler_static='-Bstatic'
13954 else
13955 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13956 fi
13957 ;;
13958
13959 mingw* | cygwin* | pw32* | os2* | cegcc*)
13960 # This hack is so that the source file can tell whether it is being
13961 # built for inclusion in a dll (and should export symbols for example).
13962 lt_prog_compiler_pic='-DDLL_EXPORT'
13963 ;;
13964
13965 hpux9* | hpux10* | hpux11*)
13966 lt_prog_compiler_wl='-Wl,'
13967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13968 # not for PA HP-UX.
13969 case $host_cpu in
13970 hppa*64*|ia64*)
13971 # +Z the default
13972 ;;
13973 *)
13974 lt_prog_compiler_pic='+Z'
13975 ;;
13976 esac
13977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13978 lt_prog_compiler_static='${wl}-a ${wl}archive'
13979 ;;
13980
13981 irix5* | irix6* | nonstopux*)
13982 lt_prog_compiler_wl='-Wl,'
13983 # PIC (with -KPIC) is the default.
13984 lt_prog_compiler_static='-non_shared'
13985 ;;
13986
cristy0c60a692010-11-04 01:09:47 +000013987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013988 case $cc_basename in
13989 # old Intel for x86_64 which still supported -KPIC.
13990 ecc*)
13991 lt_prog_compiler_wl='-Wl,'
13992 lt_prog_compiler_pic='-KPIC'
13993 lt_prog_compiler_static='-static'
13994 ;;
13995 # icc used to be incompatible with GCC.
13996 # ICC 10 doesn't accept -KPIC any more.
13997 icc* | ifort*)
13998 lt_prog_compiler_wl='-Wl,'
13999 lt_prog_compiler_pic='-fPIC'
14000 lt_prog_compiler_static='-static'
14001 ;;
14002 # Lahey Fortran 8.1.
14003 lf95*)
14004 lt_prog_compiler_wl='-Wl,'
14005 lt_prog_compiler_pic='--shared'
14006 lt_prog_compiler_static='--static'
14007 ;;
cristyda16f162011-02-19 23:52:17 +000014008 nagfor*)
14009 # NAG Fortran compiler
14010 lt_prog_compiler_wl='-Wl,-Wl,,'
14011 lt_prog_compiler_pic='-PIC'
14012 lt_prog_compiler_static='-Bstatic'
14013 ;;
cristy0c60a692010-11-04 01:09:47 +000014014 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014015 # Portland Group compilers (*not* the Pentium gcc compiler,
14016 # which looks to be a dead project)
14017 lt_prog_compiler_wl='-Wl,'
14018 lt_prog_compiler_pic='-fpic'
14019 lt_prog_compiler_static='-Bstatic'
14020 ;;
14021 ccc*)
14022 lt_prog_compiler_wl='-Wl,'
14023 # All Alpha code is PIC.
14024 lt_prog_compiler_static='-non_shared'
14025 ;;
cristy0c60a692010-11-04 01:09:47 +000014026 xl* | bgxl* | bgf* | mpixl*)
14027 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014028 lt_prog_compiler_wl='-Wl,'
14029 lt_prog_compiler_pic='-qpic'
14030 lt_prog_compiler_static='-qstaticlink'
14031 ;;
14032 *)
14033 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014034 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014035 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14036 lt_prog_compiler_pic='-KPIC'
14037 lt_prog_compiler_static='-Bstatic'
14038 lt_prog_compiler_wl=''
14039 ;;
cristy99bd5232011-12-07 14:38:20 +000014040 *Sun\ F* | *Sun*Fortran*)
14041 lt_prog_compiler_pic='-KPIC'
14042 lt_prog_compiler_static='-Bstatic'
14043 lt_prog_compiler_wl='-Qoption ld '
14044 ;;
cristy73bd4a52010-10-05 11:24:23 +000014045 *Sun\ C*)
14046 # Sun C 5.9
14047 lt_prog_compiler_pic='-KPIC'
14048 lt_prog_compiler_static='-Bstatic'
14049 lt_prog_compiler_wl='-Wl,'
14050 ;;
cristy99bd5232011-12-07 14:38:20 +000014051 *Intel*\ [CF]*Compiler*)
14052 lt_prog_compiler_wl='-Wl,'
14053 lt_prog_compiler_pic='-fPIC'
14054 lt_prog_compiler_static='-static'
14055 ;;
14056 *Portland\ Group*)
14057 lt_prog_compiler_wl='-Wl,'
14058 lt_prog_compiler_pic='-fpic'
14059 lt_prog_compiler_static='-Bstatic'
14060 ;;
cristy73bd4a52010-10-05 11:24:23 +000014061 esac
14062 ;;
14063 esac
14064 ;;
14065
14066 newsos6)
14067 lt_prog_compiler_pic='-KPIC'
14068 lt_prog_compiler_static='-Bstatic'
14069 ;;
14070
14071 *nto* | *qnx*)
14072 # QNX uses GNU C++, but need to define -shared option too, otherwise
14073 # it will coredump.
14074 lt_prog_compiler_pic='-fPIC -shared'
14075 ;;
14076
14077 osf3* | osf4* | osf5*)
14078 lt_prog_compiler_wl='-Wl,'
14079 # All OSF/1 code is PIC.
14080 lt_prog_compiler_static='-non_shared'
14081 ;;
14082
14083 rdos*)
14084 lt_prog_compiler_static='-non_shared'
14085 ;;
14086
14087 solaris*)
14088 lt_prog_compiler_pic='-KPIC'
14089 lt_prog_compiler_static='-Bstatic'
14090 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014091 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014092 lt_prog_compiler_wl='-Qoption ld ';;
14093 *)
14094 lt_prog_compiler_wl='-Wl,';;
14095 esac
14096 ;;
14097
14098 sunos4*)
14099 lt_prog_compiler_wl='-Qoption ld '
14100 lt_prog_compiler_pic='-PIC'
14101 lt_prog_compiler_static='-Bstatic'
14102 ;;
14103
14104 sysv4 | sysv4.2uw2* | sysv4.3*)
14105 lt_prog_compiler_wl='-Wl,'
14106 lt_prog_compiler_pic='-KPIC'
14107 lt_prog_compiler_static='-Bstatic'
14108 ;;
14109
14110 sysv4*MP*)
14111 if test -d /usr/nec ;then
14112 lt_prog_compiler_pic='-Kconform_pic'
14113 lt_prog_compiler_static='-Bstatic'
14114 fi
14115 ;;
14116
14117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14118 lt_prog_compiler_wl='-Wl,'
14119 lt_prog_compiler_pic='-KPIC'
14120 lt_prog_compiler_static='-Bstatic'
14121 ;;
14122
14123 unicos*)
14124 lt_prog_compiler_wl='-Wl,'
14125 lt_prog_compiler_can_build_shared=no
14126 ;;
14127
14128 uts4*)
14129 lt_prog_compiler_pic='-pic'
14130 lt_prog_compiler_static='-Bstatic'
14131 ;;
14132
14133 *)
14134 lt_prog_compiler_can_build_shared=no
14135 ;;
14136 esac
14137 fi
14138
14139case $host_os in
14140 # For platforms which do not support PIC, -DPIC is meaningless:
14141 *djgpp*)
14142 lt_prog_compiler_pic=
14143 ;;
14144 *)
14145 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14146 ;;
14147esac
cristy73bd4a52010-10-05 11:24:23 +000014148
cristyda16f162011-02-19 23:52:17 +000014149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14150$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14151if ${lt_cv_prog_compiler_pic+:} false; then :
14152 $as_echo_n "(cached) " >&6
14153else
14154 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14155fi
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14157$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14158lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014159
14160#
14161# Check to make sure the PIC flag actually works.
14162#
14163if test -n "$lt_prog_compiler_pic"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14165$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014166if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014167 $as_echo_n "(cached) " >&6
14168else
14169 lt_cv_prog_compiler_pic_works=no
14170 ac_outfile=conftest.$ac_objext
14171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14172 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14173 # Insert the option either (1) after the last *FLAGS variable, or
14174 # (2) before a word containing "conftest.", or (3) at the end.
14175 # Note that $ac_compile itself does not contain backslashes and begins
14176 # with a dollar sign (not a hyphen), so the echo should work correctly.
14177 # The option is referenced via a variable to avoid confusing sed.
14178 lt_compile=`echo "$ac_compile" | $SED \
14179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014183 (eval "$lt_compile" 2>conftest.err)
14184 ac_status=$?
14185 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014187 if (exit $ac_status) && test -s "$ac_outfile"; then
14188 # The compiler can only warn and ignore the option if not recognized
14189 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14193 lt_cv_prog_compiler_pic_works=yes
14194 fi
14195 fi
14196 $RM conftest*
14197
14198fi
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14200$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14201
14202if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14203 case $lt_prog_compiler_pic in
14204 "" | " "*) ;;
14205 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14206 esac
14207else
14208 lt_prog_compiler_pic=
14209 lt_prog_compiler_can_build_shared=no
14210fi
14211
14212fi
14213
14214
14215
14216
14217
14218
cristyda16f162011-02-19 23:52:17 +000014219
14220
14221
14222
14223
cristy73bd4a52010-10-05 11:24:23 +000014224#
14225# Check to make sure the static flag actually works.
14226#
14227wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14229$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014230if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014231 $as_echo_n "(cached) " >&6
14232else
14233 lt_cv_prog_compiler_static_works=no
14234 save_LDFLAGS="$LDFLAGS"
14235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14236 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14238 # The linker can only warn and ignore the option if not recognized
14239 # So say no if there are warnings
14240 if test -s conftest.err; then
14241 # Append any errors to the config.log.
14242 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14245 if diff conftest.exp conftest.er2 >/dev/null; then
14246 lt_cv_prog_compiler_static_works=yes
14247 fi
14248 else
14249 lt_cv_prog_compiler_static_works=yes
14250 fi
14251 fi
14252 $RM -r conftest*
14253 LDFLAGS="$save_LDFLAGS"
14254
14255fi
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14257$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14258
14259if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14260 :
14261else
14262 lt_prog_compiler_static=
14263fi
14264
14265
14266
14267
14268
14269
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014273if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014274 $as_echo_n "(cached) " >&6
14275else
14276 lt_cv_prog_compiler_c_o=no
14277 $RM -r conftest 2>/dev/null
14278 mkdir conftest
14279 cd conftest
14280 mkdir out
14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14282
14283 lt_compiler_flag="-o out/conftest2.$ac_objext"
14284 # Insert the option either (1) after the last *FLAGS variable, or
14285 # (2) before a word containing "conftest.", or (3) at the end.
14286 # Note that $ac_compile itself does not contain backslashes and begins
14287 # with a dollar sign (not a hyphen), so the echo should work correctly.
14288 lt_compile=`echo "$ac_compile" | $SED \
14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14291 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014293 (eval "$lt_compile" 2>out/conftest.err)
14294 ac_status=$?
14295 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14298 then
14299 # The compiler can only warn and ignore the option if not recognized
14300 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14304 lt_cv_prog_compiler_c_o=yes
14305 fi
14306 fi
14307 chmod u+w . 2>&5
14308 $RM conftest*
14309 # SGI C++ compiler will create directory out/ii_files/ for
14310 # template instantiation
14311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14312 $RM out/* && rmdir out
14313 cd ..
14314 $RM -r conftest
14315 $RM conftest*
14316
14317fi
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14319$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14320
14321
14322
14323
14324
14325
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014328if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014329 $as_echo_n "(cached) " >&6
14330else
14331 lt_cv_prog_compiler_c_o=no
14332 $RM -r conftest 2>/dev/null
14333 mkdir conftest
14334 cd conftest
14335 mkdir out
14336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14337
14338 lt_compiler_flag="-o out/conftest2.$ac_objext"
14339 # Insert the option either (1) after the last *FLAGS variable, or
14340 # (2) before a word containing "conftest.", or (3) at the end.
14341 # Note that $ac_compile itself does not contain backslashes and begins
14342 # with a dollar sign (not a hyphen), so the echo should work correctly.
14343 lt_compile=`echo "$ac_compile" | $SED \
14344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14346 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014348 (eval "$lt_compile" 2>out/conftest.err)
14349 ac_status=$?
14350 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14353 then
14354 # The compiler can only warn and ignore the option if not recognized
14355 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14359 lt_cv_prog_compiler_c_o=yes
14360 fi
14361 fi
14362 chmod u+w . 2>&5
14363 $RM conftest*
14364 # SGI C++ compiler will create directory out/ii_files/ for
14365 # template instantiation
14366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14367 $RM out/* && rmdir out
14368 cd ..
14369 $RM -r conftest
14370 $RM conftest*
14371
14372fi
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14374$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14375
14376
14377
14378
14379hard_links="nottested"
14380if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14381 # do not overwrite the value of need_locks provided by the user
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14383$as_echo_n "checking if we can lock with hard links... " >&6; }
14384 hard_links=yes
14385 $RM conftest*
14386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14387 touch conftest.a
14388 ln conftest.a conftest.b 2>&5 || hard_links=no
14389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14391$as_echo "$hard_links" >&6; }
14392 if test "$hard_links" = no; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14394$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14395 need_locks=warn
14396 fi
14397else
14398 need_locks=no
14399fi
14400
14401
14402
14403
14404
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14407$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14408
14409 runpath_var=
14410 allow_undefined_flag=
14411 always_export_symbols=no
14412 archive_cmds=
14413 archive_expsym_cmds=
14414 compiler_needs_object=no
14415 enable_shared_with_static_runtimes=no
14416 export_dynamic_flag_spec=
14417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14418 hardcode_automatic=no
14419 hardcode_direct=no
14420 hardcode_direct_absolute=no
14421 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014422 hardcode_libdir_separator=
14423 hardcode_minus_L=no
14424 hardcode_shlibpath_var=unsupported
14425 inherit_rpath=no
14426 link_all_deplibs=unknown
14427 module_cmds=
14428 module_expsym_cmds=
14429 old_archive_from_new_cmds=
14430 old_archive_from_expsyms_cmds=
14431 thread_safe_flag_spec=
14432 whole_archive_flag_spec=
14433 # include_expsyms should be a list of space-separated symbols to be *always*
14434 # included in the symbol list
14435 include_expsyms=
14436 # exclude_expsyms can be an extended regexp of symbols to exclude
14437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14439 # as well as any symbol that contains `d'.
14440 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14442 # platforms (ab)use it in PIC code, but their linkers get confused if
14443 # the symbol is explicitly referenced. Since portable code cannot
14444 # rely on this symbol name, it's probably fine to never include it in
14445 # preloaded symbol tables.
14446 # Exclude shared library initialization/finalization symbols.
14447 extract_expsyms_cmds=
14448
14449 case $host_os in
14450 cygwin* | mingw* | pw32* | cegcc*)
14451 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14452 # When not using gcc, we currently assume that we are using
14453 # Microsoft Visual C++.
14454 if test "$GCC" != yes; then
14455 with_gnu_ld=no
14456 fi
14457 ;;
14458 interix*)
14459 # we just hope/assume this is gcc and not c89 (= MSVC++)
14460 with_gnu_ld=yes
14461 ;;
14462 openbsd*)
14463 with_gnu_ld=no
14464 ;;
14465 esac
14466
14467 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014468
14469 # On some targets, GNU ld is compatible enough with the native linker
14470 # that we're better off using the native interface for both.
14471 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014472 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014473 case $host_os in
14474 aix*)
14475 # The AIX port of GNU ld has always aspired to compatibility
14476 # with the native linker. However, as the warning in the GNU ld
14477 # block says, versions before 2.19.5* couldn't really create working
14478 # shared libraries, regardless of the interface used.
14479 case `$LD -v 2>&1` in
14480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14482 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14483 *)
14484 lt_use_gnu_ld_interface=yes
14485 ;;
14486 esac
14487 ;;
14488 *)
14489 lt_use_gnu_ld_interface=yes
14490 ;;
14491 esac
14492 fi
14493
14494 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014495 # If archive_cmds runs LD, not CC, wlarc should be empty
14496 wlarc='${wl}'
14497
14498 # Set some defaults for GNU ld with shared library support. These
14499 # are reset later if shared libraries are not supported. Putting them
14500 # here allows them to be overridden if necessary.
14501 runpath_var=LD_RUN_PATH
14502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14503 export_dynamic_flag_spec='${wl}--export-dynamic'
14504 # ancient GNU ld didn't support --whole-archive et. al.
14505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14507 else
14508 whole_archive_flag_spec=
14509 fi
14510 supports_anon_versioning=no
14511 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014512 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14516 *\ 2.11.*) ;; # other 2.11 versions
14517 *) supports_anon_versioning=yes ;;
14518 esac
14519
14520 # See if GNU ld supports shared libraries.
14521 case $host_os in
14522 aix[3-9]*)
14523 # On AIX/PPC, the GNU linker is very broken
14524 if test "$host_cpu" != ia64; then
14525 ld_shlibs=no
14526 cat <<_LT_EOF 1>&2
14527
cristy0c60a692010-11-04 01:09:47 +000014528*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014529*** to be unable to reliably create shared libraries on AIX.
14530*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014531*** really care for shared libraries, you may want to install binutils
14532*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14533*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014534
14535_LT_EOF
14536 fi
14537 ;;
14538
14539 amigaos*)
14540 case $host_cpu in
14541 powerpc)
14542 # see comment about AmigaOS4 .so support
14543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14544 archive_expsym_cmds=''
14545 ;;
14546 m68k)
14547 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)'
14548 hardcode_libdir_flag_spec='-L$libdir'
14549 hardcode_minus_L=yes
14550 ;;
14551 esac
14552 ;;
14553
14554 beos*)
14555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14556 allow_undefined_flag=unsupported
14557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14558 # support --undefined. This deserves some investigation. FIXME
14559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14560 else
14561 ld_shlibs=no
14562 fi
14563 ;;
14564
14565 cygwin* | mingw* | pw32* | cegcc*)
14566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14567 # as there is no search path for DLLs.
14568 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014569 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014570 allow_undefined_flag=unsupported
14571 always_export_symbols=no
14572 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014573 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'
14574 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000014575
14576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14578 # If the export-symbols file already is a .def file (1st line
14579 # is EXPORTS), use it as is; otherwise, prepend...
14580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14581 cp $export_symbols $output_objdir/$soname.def;
14582 else
14583 echo EXPORTS > $output_objdir/$soname.def;
14584 cat $export_symbols >> $output_objdir/$soname.def;
14585 fi~
14586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14587 else
14588 ld_shlibs=no
14589 fi
14590 ;;
14591
cristy0c60a692010-11-04 01:09:47 +000014592 haiku*)
14593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14594 link_all_deplibs=yes
14595 ;;
14596
cristy73bd4a52010-10-05 11:24:23 +000014597 interix[3-9]*)
14598 hardcode_direct=no
14599 hardcode_shlibpath_var=no
14600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14601 export_dynamic_flag_spec='${wl}-E'
14602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14603 # Instead, shared libraries are loaded at an image base (0x10000000 by
14604 # default) and relocated if they conflict, which is a slow very memory
14605 # consuming and fragmenting process. To avoid this, we pick a random,
14606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14609 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'
14610 ;;
14611
cristy0c60a692010-11-04 01:09:47 +000014612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014613 tmp_diet=no
14614 if test "$host_os" = linux-dietlibc; then
14615 case $cc_basename in
14616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14617 esac
14618 fi
14619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14620 && test "$tmp_diet" = no
14621 then
cristyda16f162011-02-19 23:52:17 +000014622 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014623 tmp_sharedflag='-shared'
14624 case $cc_basename,$host_cpu in
14625 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014626 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'
cristy73bd4a52010-10-05 11:24:23 +000014627 tmp_addflag=' $pic_flag'
14628 ;;
cristy0c60a692010-11-04 01:09:47 +000014629 pgf77* | pgf90* | pgf95* | pgfortran*)
14630 # Portland Group f77 and f90 compilers
14631 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'
cristy73bd4a52010-10-05 11:24:23 +000014632 tmp_addflag=' $pic_flag -Mnomain' ;;
14633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14634 tmp_addflag=' -i_dynamic' ;;
14635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14636 tmp_addflag=' -i_dynamic -nofor_main' ;;
14637 ifc* | ifort*) # Intel Fortran compiler
14638 tmp_addflag=' -nofor_main' ;;
14639 lf95*) # Lahey Fortran 8.1
14640 whole_archive_flag_spec=
14641 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014643 tmp_sharedflag='-qmkshrobj'
14644 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014645 nvcc*) # Cuda Compiler Driver 2.2
14646 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'
14647 compiler_needs_object=yes
14648 ;;
cristy73bd4a52010-10-05 11:24:23 +000014649 esac
14650 case `$CC -V 2>&1 | sed 5q` in
14651 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014652 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'
cristy73bd4a52010-10-05 11:24:23 +000014653 compiler_needs_object=yes
14654 tmp_sharedflag='-G' ;;
14655 *Sun\ F*) # Sun Fortran 8.3
14656 tmp_sharedflag='-G' ;;
14657 esac
14658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659
14660 if test "x$supports_anon_versioning" = xyes; then
14661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14663 echo "local: *; };" >> $output_objdir/$libname.ver~
14664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14665 fi
14666
14667 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014668 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014673 if test "x$supports_anon_versioning" = xyes; then
14674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14676 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014678 fi
14679 ;;
14680 esac
14681 else
14682 ld_shlibs=no
14683 fi
14684 ;;
14685
14686 netbsd*)
14687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14688 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14689 wlarc=
14690 else
cristyda16f162011-02-19 23:52:17 +000014691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014693 fi
14694 ;;
14695
14696 solaris*)
14697 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14698 ld_shlibs=no
14699 cat <<_LT_EOF 1>&2
14700
14701*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14702*** create shared libraries on Solaris systems. Therefore, libtool
14703*** is disabling shared libraries support. We urge you to upgrade GNU
14704*** binutils to release 2.9.1 or newer. Another option is to modify
14705*** your PATH or compiler configuration so that the native linker is
14706*** used, and then restart.
14707
14708_LT_EOF
14709 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014712 else
14713 ld_shlibs=no
14714 fi
14715 ;;
14716
14717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14718 case `$LD -v 2>&1` in
14719 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14720 ld_shlibs=no
14721 cat <<_LT_EOF 1>&2
14722
14723*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14724*** reliably create shared libraries on SCO systems. Therefore, libtool
14725*** is disabling shared libraries support. We urge you to upgrade GNU
14726*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14727*** your PATH or compiler configuration so that the native linker is
14728*** used, and then restart.
14729
14730_LT_EOF
14731 ;;
14732 *)
14733 # For security reasons, it is highly recommended that you always
14734 # use absolute paths for naming shared libraries, and exclude the
14735 # DT_RUNPATH tag from executables and libraries. But doing so
14736 # requires that you compile everything twice, which is a pain.
14737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14741 else
14742 ld_shlibs=no
14743 fi
14744 ;;
14745 esac
14746 ;;
14747
14748 sunos4*)
14749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14750 wlarc=
14751 hardcode_direct=yes
14752 hardcode_shlibpath_var=no
14753 ;;
14754
14755 *)
14756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014759 else
14760 ld_shlibs=no
14761 fi
14762 ;;
14763 esac
14764
14765 if test "$ld_shlibs" = no; then
14766 runpath_var=
14767 hardcode_libdir_flag_spec=
14768 export_dynamic_flag_spec=
14769 whole_archive_flag_spec=
14770 fi
14771 else
14772 # PORTME fill in a description of your system's linker (not GNU ld)
14773 case $host_os in
14774 aix3*)
14775 allow_undefined_flag=unsupported
14776 always_export_symbols=yes
14777 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'
14778 # Note: this linker hardcodes the directories in LIBPATH if there
14779 # are no directories specified by -L.
14780 hardcode_minus_L=yes
14781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14782 # Neither direct hardcoding nor static linking is supported with a
14783 # broken collect2.
14784 hardcode_direct=unsupported
14785 fi
14786 ;;
14787
14788 aix[4-9]*)
14789 if test "$host_cpu" = ia64; then
14790 # On IA64, the linker does run time linking by default, so we don't
14791 # have to do anything special.
14792 aix_use_runtimelinking=no
14793 exp_sym_flag='-Bexport'
14794 no_entry_flag=""
14795 else
14796 # If we're using GNU nm, then we don't want the "-C" option.
14797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014798 # Also, AIX nm treats weak defined symbols like other global
14799 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014801 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'
cristy73bd4a52010-10-05 11:24:23 +000014802 else
14803 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'
14804 fi
14805 aix_use_runtimelinking=no
14806
14807 # Test if we are trying to use run time linking or normal
14808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14809 # need to do runtime linking.
14810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14811 for ld_flag in $LDFLAGS; do
14812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14813 aix_use_runtimelinking=yes
14814 break
14815 fi
14816 done
14817 ;;
14818 esac
14819
14820 exp_sym_flag='-bexport'
14821 no_entry_flag='-bnoentry'
14822 fi
14823
14824 # When large executables or shared objects are built, AIX ld can
14825 # have problems creating the table of contents. If linking a library
14826 # or program results in "error TOC overflow" add -mminimal-toc to
14827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14829
14830 archive_cmds=''
14831 hardcode_direct=yes
14832 hardcode_direct_absolute=yes
14833 hardcode_libdir_separator=':'
14834 link_all_deplibs=yes
14835 file_list_spec='${wl}-f,'
14836
14837 if test "$GCC" = yes; then
14838 case $host_os in aix4.[012]|aix4.[012].*)
14839 # We only want to do this on AIX 4.2 and lower, the check
14840 # below for broken collect2 doesn't work under 4.3+
14841 collect2name=`${CC} -print-prog-name=collect2`
14842 if test -f "$collect2name" &&
14843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14844 then
14845 # We have reworked collect2
14846 :
14847 else
14848 # We have old collect2
14849 hardcode_direct=unsupported
14850 # It fails to find uninstalled libraries when the uninstalled
14851 # path is not listed in the libpath. Setting hardcode_minus_L
14852 # to unsupported forces relinking
14853 hardcode_minus_L=yes
14854 hardcode_libdir_flag_spec='-L$libdir'
14855 hardcode_libdir_separator=
14856 fi
14857 ;;
14858 esac
14859 shared_flag='-shared'
14860 if test "$aix_use_runtimelinking" = yes; then
14861 shared_flag="$shared_flag "'${wl}-G'
14862 fi
14863 else
14864 # not using gcc
14865 if test "$host_cpu" = ia64; then
14866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14867 # chokes on -Wl,-G. The following line is correct:
14868 shared_flag='-G'
14869 else
14870 if test "$aix_use_runtimelinking" = yes; then
14871 shared_flag='${wl}-G'
14872 else
14873 shared_flag='${wl}-bM:SRE'
14874 fi
14875 fi
14876 fi
14877
14878 export_dynamic_flag_spec='${wl}-bexpall'
14879 # It seems that -bexpall does not export symbols beginning with
14880 # underscore (_), so it is better to generate a list of symbols to export.
14881 always_export_symbols=yes
14882 if test "$aix_use_runtimelinking" = yes; then
14883 # Warning - without using the other runtime loading flags (-brtl),
14884 # -berok will link without error, but may produce a broken library.
14885 allow_undefined_flag='-berok'
14886 # Determine the default libpath from the value encoded in an
14887 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014888 if test "${lt_cv_aix_libpath+set}" = set; then
14889 aix_libpath=$lt_cv_aix_libpath
14890else
14891 if ${lt_cv_aix_libpath_+:} false; then :
14892 $as_echo_n "(cached) " >&6
14893else
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014895/* end confdefs.h. */
14896
14897int
14898main ()
14899{
14900
14901 ;
14902 return 0;
14903}
14904_ACEOF
14905if ac_fn_c_try_link "$LINENO"; then :
14906
cristyda16f162011-02-19 23:52:17 +000014907 lt_aix_libpath_sed='
14908 /Import File Strings/,/^$/ {
14909 /^0/ {
14910 s/^0 *\([^ ]*\) *$/\1/
14911 p
14912 }
14913 }'
14914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14915 # Check for a 64-bit object if we didn't find anything.
14916 if test -z "$lt_cv_aix_libpath_"; then
14917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14918 fi
cristy73bd4a52010-10-05 11:24:23 +000014919fi
14920rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014922 if test -z "$lt_cv_aix_libpath_"; then
14923 lt_cv_aix_libpath_="/usr/lib:/lib"
14924 fi
14925
14926fi
14927
14928 aix_libpath=$lt_cv_aix_libpath_
14929fi
cristy73bd4a52010-10-05 11:24:23 +000014930
14931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014932 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"
cristy73bd4a52010-10-05 11:24:23 +000014933 else
14934 if test "$host_cpu" = ia64; then
14935 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14936 allow_undefined_flag="-z nodefs"
14937 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"
14938 else
14939 # Determine the default libpath from the value encoded in an
14940 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014941 if test "${lt_cv_aix_libpath+set}" = set; then
14942 aix_libpath=$lt_cv_aix_libpath
14943else
14944 if ${lt_cv_aix_libpath_+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946else
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014948/* end confdefs.h. */
14949
14950int
14951main ()
14952{
14953
14954 ;
14955 return 0;
14956}
14957_ACEOF
14958if ac_fn_c_try_link "$LINENO"; then :
14959
cristyda16f162011-02-19 23:52:17 +000014960 lt_aix_libpath_sed='
14961 /Import File Strings/,/^$/ {
14962 /^0/ {
14963 s/^0 *\([^ ]*\) *$/\1/
14964 p
14965 }
14966 }'
14967 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14968 # Check for a 64-bit object if we didn't find anything.
14969 if test -z "$lt_cv_aix_libpath_"; then
14970 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14971 fi
cristy73bd4a52010-10-05 11:24:23 +000014972fi
14973rm -f core conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014975 if test -z "$lt_cv_aix_libpath_"; then
14976 lt_cv_aix_libpath_="/usr/lib:/lib"
14977 fi
14978
14979fi
14980
14981 aix_libpath=$lt_cv_aix_libpath_
14982fi
cristy73bd4a52010-10-05 11:24:23 +000014983
14984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14985 # Warning - without using the other run time loading flags,
14986 # -berok will link without error, but may produce a broken library.
14987 no_undefined_flag=' ${wl}-bernotok'
14988 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014989 if test "$with_gnu_ld" = yes; then
14990 # We only use this code for GNU lds that support --whole-archive.
14991 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14992 else
14993 # Exported symbols can be pulled into shared objects from archives
14994 whole_archive_flag_spec='$convenience'
14995 fi
cristy73bd4a52010-10-05 11:24:23 +000014996 archive_cmds_need_lc=yes
14997 # This is similar to how AIX traditionally builds its shared libraries.
14998 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'
14999 fi
15000 fi
15001 ;;
15002
15003 amigaos*)
15004 case $host_cpu in
15005 powerpc)
15006 # see comment about AmigaOS4 .so support
15007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15008 archive_expsym_cmds=''
15009 ;;
15010 m68k)
15011 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)'
15012 hardcode_libdir_flag_spec='-L$libdir'
15013 hardcode_minus_L=yes
15014 ;;
15015 esac
15016 ;;
15017
15018 bsdi[45]*)
15019 export_dynamic_flag_spec=-rdynamic
15020 ;;
15021
15022 cygwin* | mingw* | pw32* | cegcc*)
15023 # When not using gcc, we currently assume that we are using
15024 # Microsoft Visual C++.
15025 # hardcode_libdir_flag_spec is actually meaningless, as there is
15026 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015027 case $cc_basename in
15028 cl*)
15029 # Native MSVC
15030 hardcode_libdir_flag_spec=' '
15031 allow_undefined_flag=unsupported
15032 always_export_symbols=yes
15033 file_list_spec='@'
15034 # Tell ltmain to make .lib files, not .a files.
15035 libext=lib
15036 # Tell ltmain to make .dll files, not .so files.
15037 shrext_cmds=".dll"
15038 # FIXME: Setting linknames here is a bad hack.
15039 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15041 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15042 else
15043 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15044 fi~
15045 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15046 linknames='
15047 # The linker will not automatically build a static lib if we build a DLL.
15048 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15049 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015050 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015051 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15052 # Don't use ranlib
15053 old_postinstall_cmds='chmod 644 $oldlib'
15054 postlink_cmds='lt_outputfile="@OUTPUT@"~
15055 lt_tool_outputfile="@TOOL_OUTPUT@"~
15056 case $lt_outputfile in
15057 *.exe|*.EXE) ;;
15058 *)
15059 lt_outputfile="$lt_outputfile.exe"
15060 lt_tool_outputfile="$lt_tool_outputfile.exe"
15061 ;;
15062 esac~
15063 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15064 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15065 $RM "$lt_outputfile.manifest";
15066 fi'
15067 ;;
15068 *)
15069 # Assume MSVC wrapper
15070 hardcode_libdir_flag_spec=' '
15071 allow_undefined_flag=unsupported
15072 # Tell ltmain to make .lib files, not .a files.
15073 libext=lib
15074 # Tell ltmain to make .dll files, not .so files.
15075 shrext_cmds=".dll"
15076 # FIXME: Setting linknames here is a bad hack.
15077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15078 # The linker will automatically build a .lib file if we build a DLL.
15079 old_archive_from_new_cmds='true'
15080 # FIXME: Should let the user specify the lib program.
15081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15082 enable_shared_with_static_runtimes=yes
15083 ;;
15084 esac
cristy73bd4a52010-10-05 11:24:23 +000015085 ;;
15086
15087 darwin* | rhapsody*)
15088
15089
15090 archive_cmds_need_lc=no
15091 hardcode_direct=no
15092 hardcode_automatic=yes
15093 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015094 if test "$lt_cv_ld_force_load" = "yes"; then
15095 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\"`'
cristy99bd5232011-12-07 14:38:20 +000015096
cristy0c60a692010-11-04 01:09:47 +000015097 else
15098 whole_archive_flag_spec=''
15099 fi
cristy73bd4a52010-10-05 11:24:23 +000015100 link_all_deplibs=yes
15101 allow_undefined_flag="$_lt_dar_allow_undefined"
15102 case $cc_basename in
15103 ifort*) _lt_dar_can_shared=yes ;;
15104 *) _lt_dar_can_shared=$GCC ;;
15105 esac
15106 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015107 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15110 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}"
15111 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}"
15112
15113 else
15114 ld_shlibs=no
15115 fi
15116
15117 ;;
15118
15119 dgux*)
15120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_libdir_flag_spec='-L$libdir'
15122 hardcode_shlibpath_var=no
15123 ;;
15124
cristy73bd4a52010-10-05 11:24:23 +000015125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15126 # support. Future versions do this automatically, but an explicit c++rt0.o
15127 # does not break anything, and helps significantly (at the cost of a little
15128 # extra space).
15129 freebsd2.2*)
15130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15131 hardcode_libdir_flag_spec='-R$libdir'
15132 hardcode_direct=yes
15133 hardcode_shlibpath_var=no
15134 ;;
15135
15136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015137 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15139 hardcode_direct=yes
15140 hardcode_minus_L=yes
15141 hardcode_shlibpath_var=no
15142 ;;
15143
15144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15145 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015147 hardcode_libdir_flag_spec='-R$libdir'
15148 hardcode_direct=yes
15149 hardcode_shlibpath_var=no
15150 ;;
15151
15152 hpux9*)
15153 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015154 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'
cristy73bd4a52010-10-05 11:24:23 +000015155 else
15156 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'
15157 fi
15158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15159 hardcode_libdir_separator=:
15160 hardcode_direct=yes
15161
15162 # hardcode_minus_L: Not really in the search PATH,
15163 # but as the default location of the library.
15164 hardcode_minus_L=yes
15165 export_dynamic_flag_spec='${wl}-E'
15166 ;;
15167
15168 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015170 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015171 else
15172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15173 fi
15174 if test "$with_gnu_ld" = no; then
15175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015176 hardcode_libdir_separator=:
15177 hardcode_direct=yes
15178 hardcode_direct_absolute=yes
15179 export_dynamic_flag_spec='${wl}-E'
15180 # hardcode_minus_L: Not really in the search PATH,
15181 # but as the default location of the library.
15182 hardcode_minus_L=yes
15183 fi
15184 ;;
15185
15186 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015188 case $host_cpu in
15189 hppa*64*)
15190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191 ;;
15192 ia64*)
cristyda16f162011-02-19 23:52:17 +000015193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015194 ;;
15195 *)
cristyda16f162011-02-19 23:52:17 +000015196 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015197 ;;
15198 esac
15199 else
15200 case $host_cpu in
15201 hppa*64*)
15202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15203 ;;
15204 ia64*)
15205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15206 ;;
15207 *)
cristy0c60a692010-11-04 01:09:47 +000015208
15209 # Older versions of the 11.00 compiler do not understand -b yet
15210 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15212$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015213if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015214 $as_echo_n "(cached) " >&6
15215else
15216 lt_cv_prog_compiler__b=no
15217 save_LDFLAGS="$LDFLAGS"
15218 LDFLAGS="$LDFLAGS -b"
15219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15221 # The linker can only warn and ignore the option if not recognized
15222 # So say no if there are warnings
15223 if test -s conftest.err; then
15224 # Append any errors to the config.log.
15225 cat conftest.err 1>&5
15226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15228 if diff conftest.exp conftest.er2 >/dev/null; then
15229 lt_cv_prog_compiler__b=yes
15230 fi
15231 else
15232 lt_cv_prog_compiler__b=yes
15233 fi
15234 fi
15235 $RM -r conftest*
15236 LDFLAGS="$save_LDFLAGS"
15237
15238fi
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15240$as_echo "$lt_cv_prog_compiler__b" >&6; }
15241
15242if test x"$lt_cv_prog_compiler__b" = xyes; then
15243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15244else
15245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15246fi
15247
cristy73bd4a52010-10-05 11:24:23 +000015248 ;;
15249 esac
15250 fi
15251 if test "$with_gnu_ld" = no; then
15252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15253 hardcode_libdir_separator=:
15254
15255 case $host_cpu in
15256 hppa*64*|ia64*)
15257 hardcode_direct=no
15258 hardcode_shlibpath_var=no
15259 ;;
15260 *)
15261 hardcode_direct=yes
15262 hardcode_direct_absolute=yes
15263 export_dynamic_flag_spec='${wl}-E'
15264
15265 # hardcode_minus_L: Not really in the search PATH,
15266 # but as the default location of the library.
15267 hardcode_minus_L=yes
15268 ;;
15269 esac
15270 fi
15271 ;;
15272
15273 irix5* | irix6* | nonstopux*)
15274 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015275 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'
cristy73bd4a52010-10-05 11:24:23 +000015276 # Try to use the -exported_symbol ld option, if it does not
15277 # work, assume that -exports_file does not work either and
15278 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015279 # This should be the same for all languages, so no per-tag cache variable.
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15281$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15282if ${lt_cv_irix_exported_symbol+:} false; then :
15283 $as_echo_n "(cached) " >&6
15284else
15285 save_LDFLAGS="$LDFLAGS"
15286 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015288/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015289int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015290_ACEOF
15291if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015292 lt_cv_irix_exported_symbol=yes
15293else
15294 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015295fi
15296rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015298 LDFLAGS="$save_LDFLAGS"
15299fi
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15301$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15302 if test "$lt_cv_irix_exported_symbol" = yes; then
15303 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'
15304 fi
cristy73bd4a52010-10-05 11:24:23 +000015305 else
cristy0c60a692010-11-04 01:09:47 +000015306 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'
15307 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'
cristy73bd4a52010-10-05 11:24:23 +000015308 fi
15309 archive_cmds_need_lc='no'
15310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15311 hardcode_libdir_separator=:
15312 inherit_rpath=yes
15313 link_all_deplibs=yes
15314 ;;
15315
15316 netbsd*)
15317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15319 else
15320 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15321 fi
15322 hardcode_libdir_flag_spec='-R$libdir'
15323 hardcode_direct=yes
15324 hardcode_shlibpath_var=no
15325 ;;
15326
15327 newsos6)
15328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15329 hardcode_direct=yes
15330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15331 hardcode_libdir_separator=:
15332 hardcode_shlibpath_var=no
15333 ;;
15334
15335 *nto* | *qnx*)
15336 ;;
15337
15338 openbsd*)
15339 if test -f /usr/libexec/ld.so; then
15340 hardcode_direct=yes
15341 hardcode_shlibpath_var=no
15342 hardcode_direct_absolute=yes
15343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15345 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15347 export_dynamic_flag_spec='${wl}-E'
15348 else
15349 case $host_os in
15350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15352 hardcode_libdir_flag_spec='-R$libdir'
15353 ;;
15354 *)
15355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15357 ;;
15358 esac
15359 fi
15360 else
15361 ld_shlibs=no
15362 fi
15363 ;;
15364
15365 os2*)
15366 hardcode_libdir_flag_spec='-L$libdir'
15367 hardcode_minus_L=yes
15368 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015369 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'
cristy73bd4a52010-10-05 11:24:23 +000015370 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15371 ;;
15372
15373 osf3*)
15374 if test "$GCC" = yes; then
15375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015376 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'
cristy73bd4a52010-10-05 11:24:23 +000015377 else
15378 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015379 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'
cristy73bd4a52010-10-05 11:24:23 +000015380 fi
15381 archive_cmds_need_lc='no'
15382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15383 hardcode_libdir_separator=:
15384 ;;
15385
15386 osf4* | osf5*) # as osf3* with the addition of -msym flag
15387 if test "$GCC" = yes; then
15388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015389 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'
cristy73bd4a52010-10-05 11:24:23 +000015390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15391 else
15392 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015393 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'
cristy73bd4a52010-10-05 11:24:23 +000015394 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~
cristy0c60a692010-11-04 01:09:47 +000015395 $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'
cristy73bd4a52010-10-05 11:24:23 +000015396
15397 # Both c and cxx compiler support -rpath directly
15398 hardcode_libdir_flag_spec='-rpath $libdir'
15399 fi
15400 archive_cmds_need_lc='no'
15401 hardcode_libdir_separator=:
15402 ;;
15403
15404 solaris*)
15405 no_undefined_flag=' -z defs'
15406 if test "$GCC" = yes; then
15407 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015408 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000015410 $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'
cristy73bd4a52010-10-05 11:24:23 +000015411 else
15412 case `$CC -V 2>&1` in
15413 *"Compilers 5.0"*)
15414 wlarc=''
15415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15418 ;;
15419 *)
15420 wlarc='${wl}'
15421 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15423 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15424 ;;
15425 esac
15426 fi
15427 hardcode_libdir_flag_spec='-R$libdir'
15428 hardcode_shlibpath_var=no
15429 case $host_os in
15430 solaris2.[0-5] | solaris2.[0-5].*) ;;
15431 *)
15432 # The compiler driver will combine and reorder linker options,
15433 # but understands `-z linker_flag'. GCC discards it without `$wl',
15434 # but is careful enough not to reorder.
15435 # Supported since Solaris 2.6 (maybe 2.5.1?)
15436 if test "$GCC" = yes; then
15437 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15438 else
15439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15440 fi
15441 ;;
15442 esac
15443 link_all_deplibs=yes
15444 ;;
15445
15446 sunos4*)
15447 if test "x$host_vendor" = xsequent; then
15448 # Use $CC to link under sequent, because it throws in some extra .o
15449 # files that make .init and .fini sections work.
15450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15451 else
15452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15453 fi
15454 hardcode_libdir_flag_spec='-L$libdir'
15455 hardcode_direct=yes
15456 hardcode_minus_L=yes
15457 hardcode_shlibpath_var=no
15458 ;;
15459
15460 sysv4)
15461 case $host_vendor in
15462 sni)
15463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15464 hardcode_direct=yes # is this really true???
15465 ;;
15466 siemens)
15467 ## LD is ld it makes a PLAMLIB
15468 ## CC just makes a GrossModule.
15469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15470 reload_cmds='$CC -r -o $output$reload_objs'
15471 hardcode_direct=no
15472 ;;
15473 motorola)
15474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15476 ;;
15477 esac
15478 runpath_var='LD_RUN_PATH'
15479 hardcode_shlibpath_var=no
15480 ;;
15481
15482 sysv4.3*)
15483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_shlibpath_var=no
15485 export_dynamic_flag_spec='-Bexport'
15486 ;;
15487
15488 sysv4*MP*)
15489 if test -d /usr/nec; then
15490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15491 hardcode_shlibpath_var=no
15492 runpath_var=LD_RUN_PATH
15493 hardcode_runpath_var=yes
15494 ld_shlibs=yes
15495 fi
15496 ;;
15497
15498 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15499 no_undefined_flag='${wl}-z,text'
15500 archive_cmds_need_lc=no
15501 hardcode_shlibpath_var=no
15502 runpath_var='LD_RUN_PATH'
15503
15504 if test "$GCC" = yes; then
15505 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 else
15508 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15509 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15510 fi
15511 ;;
15512
15513 sysv5* | sco3.2v5* | sco5v6*)
15514 # Note: We can NOT use -z defs as we might desire, because we do not
15515 # link with -lc, and that would cause any symbols used from libc to
15516 # always be unresolved, which means just about no library would
15517 # ever link correctly. If we're not using GNU ld we use -z text
15518 # though, which does catch some bad symbols but isn't as heavy-handed
15519 # as -z defs.
15520 no_undefined_flag='${wl}-z,text'
15521 allow_undefined_flag='${wl}-z,nodefs'
15522 archive_cmds_need_lc=no
15523 hardcode_shlibpath_var=no
15524 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15525 hardcode_libdir_separator=':'
15526 link_all_deplibs=yes
15527 export_dynamic_flag_spec='${wl}-Bexport'
15528 runpath_var='LD_RUN_PATH'
15529
15530 if test "$GCC" = yes; then
15531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 else
15534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15536 fi
15537 ;;
15538
15539 uts4*)
15540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_libdir_flag_spec='-L$libdir'
15542 hardcode_shlibpath_var=no
15543 ;;
15544
15545 *)
15546 ld_shlibs=no
15547 ;;
15548 esac
15549
15550 if test x$host_vendor = xsni; then
15551 case $host in
15552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15553 export_dynamic_flag_spec='${wl}-Blargedynsym'
15554 ;;
15555 esac
15556 fi
15557 fi
15558
15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15560$as_echo "$ld_shlibs" >&6; }
15561test "$ld_shlibs" = no && can_build_shared=no
15562
15563with_gnu_ld=$with_gnu_ld
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579#
15580# Do we need to explicitly link libc?
15581#
15582case "x$archive_cmds_need_lc" in
15583x|xyes)
15584 # Assume -lc should be added
15585 archive_cmds_need_lc=yes
15586
15587 if test "$enable_shared" = yes && test "$GCC" = yes; then
15588 case $archive_cmds in
15589 *'~'*)
15590 # FIXME: we may have to deal with multi-command sequences.
15591 ;;
15592 '$CC '*)
15593 # Test whether the compiler implicitly links with -lc since on some
15594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15595 # to ld, don't add -lc before -lgcc.
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15597$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015598if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015599 $as_echo_n "(cached) " >&6
15600else
15601 $RM conftest*
15602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015603
cristy0c60a692010-11-04 01:09:47 +000015604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015605 (eval $ac_compile) 2>&5
15606 ac_status=$?
15607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15608 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015609 soname=conftest
15610 lib=conftest
15611 libobjs=conftest.$ac_objext
15612 deplibs=
15613 wl=$lt_prog_compiler_wl
15614 pic_flag=$lt_prog_compiler_pic
15615 compiler_flags=-v
15616 linker_flags=-v
15617 verstring=
15618 output_objdir=.
15619 libname=conftest
15620 lt_save_allow_undefined_flag=$allow_undefined_flag
15621 allow_undefined_flag=
15622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15624 ac_status=$?
15625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15626 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015627 then
15628 lt_cv_archive_cmds_need_lc=no
15629 else
15630 lt_cv_archive_cmds_need_lc=yes
15631 fi
15632 allow_undefined_flag=$lt_save_allow_undefined_flag
15633 else
15634 cat conftest.err 1>&5
15635 fi
15636 $RM conftest*
15637
15638fi
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15640$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15641 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015642 ;;
15643 esac
15644 fi
15645 ;;
15646esac
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
cristy73bd4a52010-10-05 11:24:23 +000015799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15800$as_echo_n "checking dynamic linker characteristics... " >&6; }
15801
15802if test "$GCC" = yes; then
15803 case $host_os in
15804 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15805 *) lt_awk_arg="/^libraries:/" ;;
15806 esac
cristy0c60a692010-11-04 01:09:47 +000015807 case $host_os in
15808 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15809 *) lt_sed_strip_eq="s,=/,/,g" ;;
15810 esac
15811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15812 case $lt_search_path_spec in
15813 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015814 # if the path contains ";" then we assume it to be the separator
15815 # otherwise default to the standard path separator (i.e. ":") - it is
15816 # assumed that no part of a normal pathname contains ";" but that should
15817 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15819 ;;
15820 *)
15821 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15822 ;;
15823 esac
cristy73bd4a52010-10-05 11:24:23 +000015824 # Ok, now we have the path, separated by spaces, we can step through it
15825 # and add multilib dir if necessary.
15826 lt_tmp_lt_search_path_spec=
15827 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15828 for lt_sys_path in $lt_search_path_spec; do
15829 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15831 else
15832 test -d "$lt_sys_path" && \
15833 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15834 fi
15835 done
cristy0c60a692010-11-04 01:09:47 +000015836 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015837BEGIN {RS=" "; FS="/|\n";} {
15838 lt_foo="";
15839 lt_count=0;
15840 for (lt_i = NF; lt_i > 0; lt_i--) {
15841 if ($lt_i != "" && $lt_i != ".") {
15842 if ($lt_i == "..") {
15843 lt_count++;
15844 } else {
15845 if (lt_count == 0) {
15846 lt_foo="/" $lt_i lt_foo;
15847 } else {
15848 lt_count--;
15849 }
15850 }
15851 }
15852 }
15853 if (lt_foo != "") { lt_freq[lt_foo]++; }
15854 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15855}'`
cristy0c60a692010-11-04 01:09:47 +000015856 # AWK program above erroneously prepends '/' to C:/dos/paths
15857 # for these hosts.
15858 case $host_os in
15859 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15860 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15861 esac
15862 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015863else
15864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15865fi
15866library_names_spec=
15867libname_spec='lib$name'
15868soname_spec=
15869shrext_cmds=".so"
15870postinstall_cmds=
15871postuninstall_cmds=
15872finish_cmds=
15873finish_eval=
15874shlibpath_var=
15875shlibpath_overrides_runpath=unknown
15876version_type=none
15877dynamic_linker="$host_os ld.so"
15878sys_lib_dlsearch_path_spec="/lib /usr/lib"
15879need_lib_prefix=unknown
15880hardcode_into_libs=no
15881
15882# when you set need_version to no, make sure it does not cause -set_version
15883# flags to be left without arguments
15884need_version=unknown
15885
15886case $host_os in
15887aix3*)
cristy99bd5232011-12-07 14:38:20 +000015888 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15890 shlibpath_var=LIBPATH
15891
15892 # AIX 3 has no versioning support, so we append a major version to the name.
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 ;;
15895
15896aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015897 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015898 need_lib_prefix=no
15899 need_version=no
15900 hardcode_into_libs=yes
15901 if test "$host_cpu" = ia64; then
15902 # AIX 5 supports IA64
15903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15904 shlibpath_var=LD_LIBRARY_PATH
15905 else
15906 # With GCC up to 2.95.x, collect2 would create an import file
15907 # for dependence libraries. The import file would start with
15908 # the line `#! .'. This would cause the generated library to
15909 # depend on `.', always an invalid library. This was fixed in
15910 # development snapshots of GCC prior to 3.0.
15911 case $host_os in
15912 aix4 | aix4.[01] | aix4.[01].*)
15913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15914 echo ' yes '
15915 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15916 :
15917 else
15918 can_build_shared=no
15919 fi
15920 ;;
15921 esac
15922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15923 # soname into executable. Probably we can add versioning support to
15924 # collect2, so additional links can be useful in future.
15925 if test "$aix_use_runtimelinking" = yes; then
15926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15927 # instead of lib<name>.a to let people know that these are not
15928 # typical AIX shared libraries.
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930 else
15931 # We preserve .a as extension for shared libraries through AIX4.2
15932 # and later when we are not doing run time linking.
15933 library_names_spec='${libname}${release}.a $libname.a'
15934 soname_spec='${libname}${release}${shared_ext}$major'
15935 fi
15936 shlibpath_var=LIBPATH
15937 fi
15938 ;;
15939
15940amigaos*)
15941 case $host_cpu in
15942 powerpc)
15943 # Since July 2007 AmigaOS4 officially supports .so libraries.
15944 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 ;;
15947 m68k)
15948 library_names_spec='$libname.ixlibrary $libname.a'
15949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015950 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'
cristy73bd4a52010-10-05 11:24:23 +000015951 ;;
15952 esac
15953 ;;
15954
15955beos*)
15956 library_names_spec='${libname}${shared_ext}'
15957 dynamic_linker="$host_os ld.so"
15958 shlibpath_var=LIBRARY_PATH
15959 ;;
15960
15961bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015962 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015963 need_version=no
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15970 # the default ld.so.conf also contains /usr/contrib/lib and
15971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15972 # libtool to hard-code these into programs
15973 ;;
15974
15975cygwin* | mingw* | pw32* | cegcc*)
15976 version_type=windows
15977 shrext_cmds=".dll"
15978 need_version=no
15979 need_lib_prefix=no
15980
cristyda16f162011-02-19 23:52:17 +000015981 case $GCC,$cc_basename in
15982 yes,*)
15983 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015984 library_names_spec='$libname.dll.a'
15985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15986 postinstall_cmds='base_file=`basename \${file}`~
15987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15988 dldir=$destdir/`dirname \$dlpath`~
15989 test -d \$dldir || mkdir -p \$dldir~
15990 $install_prog $dir/$dlname \$dldir/$dlname~
15991 chmod a+x \$dldir/$dlname~
15992 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15993 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15994 fi'
15995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15996 dlpath=$dir/\$dldll~
15997 $RM \$dlpath'
15998 shlibpath_overrides_runpath=yes
15999
16000 case $host_os in
16001 cygwin*)
16002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016004
16005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016006 ;;
16007 mingw* | cegcc*)
16008 # MinGW DLLs use traditional 'lib' prefix
16009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016010 ;;
16011 pw32*)
16012 # pw32 DLLs use 'pw' prefix rather than 'lib'
16013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16014 ;;
16015 esac
cristyda16f162011-02-19 23:52:17 +000016016 dynamic_linker='Win32 ld.exe'
16017 ;;
16018
16019 *,cl*)
16020 # Native MSVC
16021 libname_spec='$name'
16022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16023 library_names_spec='${libname}.dll.lib'
16024
16025 case $build_os in
16026 mingw*)
16027 sys_lib_search_path_spec=
16028 lt_save_ifs=$IFS
16029 IFS=';'
16030 for lt_path in $LIB
16031 do
16032 IFS=$lt_save_ifs
16033 # Let DOS variable expansion print the short 8.3 style file name.
16034 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16035 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16036 done
16037 IFS=$lt_save_ifs
16038 # Convert to MSYS style.
16039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16040 ;;
16041 cygwin*)
16042 # Convert to unix form, then to dos form, then back to unix form
16043 # but this time dos style (no spaces!) so that the unix form looks
16044 # like /cygdrive/c/PROGRA~1:/cygdr...
16045 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16046 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16047 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16048 ;;
16049 *)
16050 sys_lib_search_path_spec="$LIB"
16051 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16052 # It is most probably a Windows format PATH.
16053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16054 else
16055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16056 fi
16057 # FIXME: find the short name or the path components, as spaces are
16058 # common. (e.g. "Program Files" -> "PROGRA~1")
16059 ;;
16060 esac
16061
16062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16063 postinstall_cmds='base_file=`basename \${file}`~
16064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16065 dldir=$destdir/`dirname \$dlpath`~
16066 test -d \$dldir || mkdir -p \$dldir~
16067 $install_prog $dir/$dlname \$dldir/$dlname'
16068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069 dlpath=$dir/\$dldll~
16070 $RM \$dlpath'
16071 shlibpath_overrides_runpath=yes
16072 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016073 ;;
16074
16075 *)
cristyda16f162011-02-19 23:52:17 +000016076 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016077 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016078 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016079 ;;
16080 esac
cristy73bd4a52010-10-05 11:24:23 +000016081 # FIXME: first we should search . and the directory the executable is in
16082 shlibpath_var=PATH
16083 ;;
16084
16085darwin* | rhapsody*)
16086 dynamic_linker="$host_os dyld"
16087 version_type=darwin
16088 need_lib_prefix=no
16089 need_version=no
16090 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16091 soname_spec='${libname}${release}${major}$shared_ext'
16092 shlibpath_overrides_runpath=yes
16093 shlibpath_var=DYLD_LIBRARY_PATH
16094 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16095
16096 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16098 ;;
16099
16100dgux*)
cristy99bd5232011-12-07 14:38:20 +000016101 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016102 need_lib_prefix=no
16103 need_version=no
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16105 soname_spec='${libname}${release}${shared_ext}$major'
16106 shlibpath_var=LD_LIBRARY_PATH
16107 ;;
16108
cristy73bd4a52010-10-05 11:24:23 +000016109freebsd* | dragonfly*)
16110 # DragonFly does not have aout. When/if they implement a new
16111 # versioning mechanism, adjust this.
16112 if test -x /usr/bin/objformat; then
16113 objformat=`/usr/bin/objformat`
16114 else
16115 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016116 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016117 *) objformat=elf ;;
16118 esac
16119 fi
16120 version_type=freebsd-$objformat
16121 case $version_type in
16122 freebsd-elf*)
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16124 need_version=no
16125 need_lib_prefix=no
16126 ;;
16127 freebsd-*)
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16129 need_version=yes
16130 ;;
16131 esac
16132 shlibpath_var=LD_LIBRARY_PATH
16133 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016134 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016135 shlibpath_overrides_runpath=yes
16136 ;;
16137 freebsd3.[01]* | freebsdelf3.[01]*)
16138 shlibpath_overrides_runpath=yes
16139 hardcode_into_libs=yes
16140 ;;
16141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16143 shlibpath_overrides_runpath=no
16144 hardcode_into_libs=yes
16145 ;;
16146 *) # from 4.6 on, and DragonFly
16147 shlibpath_overrides_runpath=yes
16148 hardcode_into_libs=yes
16149 ;;
16150 esac
16151 ;;
16152
16153gnu*)
cristy99bd5232011-12-07 14:38:20 +000016154 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016155 need_lib_prefix=no
16156 need_version=no
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016160 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016161 hardcode_into_libs=yes
16162 ;;
16163
cristy0c60a692010-11-04 01:09:47 +000016164haiku*)
cristy99bd5232011-12-07 14:38:20 +000016165 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016166 need_lib_prefix=no
16167 need_version=no
16168 dynamic_linker="$host_os runtime_loader"
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 shlibpath_var=LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16174 hardcode_into_libs=yes
16175 ;;
16176
cristy73bd4a52010-10-05 11:24:23 +000016177hpux9* | hpux10* | hpux11*)
16178 # Give a soname corresponding to the major version so that dld.sl refuses to
16179 # link against other versions.
16180 version_type=sunos
16181 need_lib_prefix=no
16182 need_version=no
16183 case $host_cpu in
16184 ia64*)
16185 shrext_cmds='.so'
16186 hardcode_into_libs=yes
16187 dynamic_linker="$host_os dld.so"
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191 soname_spec='${libname}${release}${shared_ext}$major'
16192 if test "X$HPUX_IA64_MODE" = X32; then
16193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16194 else
16195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16196 fi
16197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16198 ;;
16199 hppa*64*)
16200 shrext_cmds='.sl'
16201 hardcode_into_libs=yes
16202 dynamic_linker="$host_os dld.sl"
16203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16209 ;;
16210 *)
16211 shrext_cmds='.sl'
16212 dynamic_linker="$host_os dld.sl"
16213 shlibpath_var=SHLIB_PATH
16214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 ;;
16218 esac
cristy0c60a692010-11-04 01:09:47 +000016219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016220 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016221 # or fails outright, so override atomically:
16222 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016223 ;;
16224
16225interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016226 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016227 need_lib_prefix=no
16228 need_version=no
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=no
16234 hardcode_into_libs=yes
16235 ;;
16236
16237irix5* | irix6* | nonstopux*)
16238 case $host_os in
16239 nonstopux*) version_type=nonstopux ;;
16240 *)
16241 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016242 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016243 else
16244 version_type=irix
16245 fi ;;
16246 esac
16247 need_lib_prefix=no
16248 need_version=no
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16251 case $host_os in
16252 irix5* | nonstopux*)
16253 libsuff= shlibsuff=
16254 ;;
16255 *)
16256 case $LD in # libtool.m4 will add one of these switches to LD
16257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16258 libsuff= shlibsuff= libmagic=32-bit;;
16259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16260 libsuff=32 shlibsuff=N32 libmagic=N32;;
16261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16263 *) libsuff= shlibsuff= libmagic=never-match;;
16264 esac
16265 ;;
16266 esac
16267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16268 shlibpath_overrides_runpath=no
16269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16271 hardcode_into_libs=yes
16272 ;;
16273
16274# No shared lib support for Linux oldld, aout, or coff.
16275linux*oldld* | linux*aout* | linux*coff*)
16276 dynamic_linker=no
16277 ;;
16278
cristy99bd5232011-12-07 14:38:20 +000016279# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016280linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016281 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016282 need_lib_prefix=no
16283 need_version=no
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16287 shlibpath_var=LD_LIBRARY_PATH
16288 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016289
cristy73bd4a52010-10-05 11:24:23 +000016290 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016292 $as_echo_n "(cached) " >&6
16293else
16294 lt_cv_shlibpath_overrides_runpath=no
16295 save_LDFLAGS=$LDFLAGS
16296 save_libdir=$libdir
16297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016300/* end confdefs.h. */
16301
16302int
16303main ()
16304{
16305
16306 ;
16307 return 0;
16308}
16309_ACEOF
16310if ac_fn_c_try_link "$LINENO"; then :
16311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016312 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016313fi
16314fi
16315rm -f core conftest.err conftest.$ac_objext \
16316 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016317 LDFLAGS=$save_LDFLAGS
16318 libdir=$save_libdir
16319
16320fi
16321
16322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016323
16324 # This implies no fast_install, which is unacceptable.
16325 # Some rework will be needed to allow for fast_install
16326 # before this can be enabled.
16327 hardcode_into_libs=yes
16328
16329 # Add ABI-specific directories to the system library path.
16330 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16331
16332 # Append ld.so.conf contents to the search path
16333 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016334 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000016335 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016336
cristy73bd4a52010-10-05 11:24:23 +000016337 fi
16338
16339 # We used to test for /lib/ld.so.1 and disable shared libraries on
16340 # powerpc, because MkLinux only supported shared libraries with the
16341 # GNU dynamic linker. Since this was broken with cross compilers,
16342 # most powerpc-linux boxes support dynamic linking these days and
16343 # people can always --disable-shared, the test was removed, and we
16344 # assume the GNU/Linux dynamic linker is in use.
16345 dynamic_linker='GNU/Linux ld.so'
16346 ;;
16347
16348netbsd*)
16349 version_type=sunos
16350 need_lib_prefix=no
16351 need_version=no
16352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16355 dynamic_linker='NetBSD (a.out) ld.so'
16356 else
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 dynamic_linker='NetBSD ld.elf_so'
16360 fi
16361 shlibpath_var=LD_LIBRARY_PATH
16362 shlibpath_overrides_runpath=yes
16363 hardcode_into_libs=yes
16364 ;;
16365
16366newsos6)
cristy99bd5232011-12-07 14:38:20 +000016367 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 shlibpath_overrides_runpath=yes
16371 ;;
16372
16373*nto* | *qnx*)
16374 version_type=qnx
16375 need_lib_prefix=no
16376 need_version=no
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=no
16381 hardcode_into_libs=yes
16382 dynamic_linker='ldqnx.so'
16383 ;;
16384
16385openbsd*)
16386 version_type=sunos
16387 sys_lib_dlsearch_path_spec="/usr/lib"
16388 need_lib_prefix=no
16389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16390 case $host_os in
16391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16392 *) need_version=no ;;
16393 esac
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16398 case $host_os in
16399 openbsd2.[89] | openbsd2.[89].*)
16400 shlibpath_overrides_runpath=no
16401 ;;
16402 *)
16403 shlibpath_overrides_runpath=yes
16404 ;;
16405 esac
16406 else
16407 shlibpath_overrides_runpath=yes
16408 fi
16409 ;;
16410
16411os2*)
16412 libname_spec='$name'
16413 shrext_cmds=".dll"
16414 need_lib_prefix=no
16415 library_names_spec='$libname${shared_ext} $libname.a'
16416 dynamic_linker='OS/2 ld.exe'
16417 shlibpath_var=LIBPATH
16418 ;;
16419
16420osf3* | osf4* | osf5*)
16421 version_type=osf
16422 need_lib_prefix=no
16423 need_version=no
16424 soname_spec='${libname}${release}${shared_ext}$major'
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 shlibpath_var=LD_LIBRARY_PATH
16427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16429 ;;
16430
16431rdos*)
16432 dynamic_linker=no
16433 ;;
16434
16435solaris*)
cristy99bd5232011-12-07 14:38:20 +000016436 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016437 need_lib_prefix=no
16438 need_version=no
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes
16443 hardcode_into_libs=yes
16444 # ldd complains unless libraries are executable
16445 postinstall_cmds='chmod +x $lib'
16446 ;;
16447
16448sunos4*)
16449 version_type=sunos
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16454 if test "$with_gnu_ld" = yes; then
16455 need_lib_prefix=no
16456 fi
16457 need_version=yes
16458 ;;
16459
16460sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 case $host_vendor in
16466 sni)
16467 shlibpath_overrides_runpath=no
16468 need_lib_prefix=no
16469 runpath_var=LD_RUN_PATH
16470 ;;
16471 siemens)
16472 need_lib_prefix=no
16473 ;;
16474 motorola)
16475 need_lib_prefix=no
16476 need_version=no
16477 shlibpath_overrides_runpath=no
16478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16479 ;;
16480 esac
16481 ;;
16482
16483sysv4*MP*)
16484 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016485 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16487 soname_spec='$libname${shared_ext}.$major'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 fi
16490 ;;
16491
16492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16493 version_type=freebsd-elf
16494 need_lib_prefix=no
16495 need_version=no
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16501 if test "$with_gnu_ld" = yes; then
16502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16503 else
16504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16505 case $host_os in
16506 sco3.2v5*)
16507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16508 ;;
16509 esac
16510 fi
16511 sys_lib_dlsearch_path_spec='/usr/lib'
16512 ;;
16513
16514tpf*)
16515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016516 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016517 need_lib_prefix=no
16518 need_version=no
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 shlibpath_overrides_runpath=no
16522 hardcode_into_libs=yes
16523 ;;
16524
16525uts4*)
cristy99bd5232011-12-07 14:38:20 +000016526 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 ;;
16531
16532*)
16533 dynamic_linker=no
16534 ;;
16535esac
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16537$as_echo "$dynamic_linker" >&6; }
16538test "$dynamic_linker" = no && can_build_shared=no
16539
16540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16541if test "$GCC" = yes; then
16542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16543fi
16544
16545if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16547fi
16548if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16550fi
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
cristy0c60a692010-11-04 01:09:47 +000016638
16639
16640
16641
16642
cristy73bd4a52010-10-05 11:24:23 +000016643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16644$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16645hardcode_action=
16646if test -n "$hardcode_libdir_flag_spec" ||
16647 test -n "$runpath_var" ||
16648 test "X$hardcode_automatic" = "Xyes" ; then
16649
16650 # We can hardcode non-existent directories.
16651 if test "$hardcode_direct" != no &&
16652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16653 # have to relink, otherwise we might link with an installed library
16654 # when we should be linking with a yet-to-be-installed one
16655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16656 test "$hardcode_minus_L" != no; then
16657 # Linking always hardcodes the temporary library directory.
16658 hardcode_action=relink
16659 else
16660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16661 hardcode_action=immediate
16662 fi
16663else
16664 # We cannot hardcode anything, or else we can only hardcode existing
16665 # directories.
16666 hardcode_action=unsupported
16667fi
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16669$as_echo "$hardcode_action" >&6; }
16670
16671if test "$hardcode_action" = relink ||
16672 test "$inherit_rpath" = yes; then
16673 # Fast installation is not supported
16674 enable_fast_install=no
16675elif test "$shlibpath_overrides_runpath" = yes ||
16676 test "$enable_shared" = no; then
16677 # Fast installation is not necessary
16678 enable_fast_install=needless
16679fi
16680
16681
16682
16683
16684
16685
16686 if test "x$enable_dlopen" != xyes; then
16687 enable_dlopen=unknown
16688 enable_dlopen_self=unknown
16689 enable_dlopen_self_static=unknown
16690else
16691 lt_cv_dlopen=no
16692 lt_cv_dlopen_libs=
16693
16694 case $host_os in
16695 beos*)
16696 lt_cv_dlopen="load_add_on"
16697 lt_cv_dlopen_libs=
16698 lt_cv_dlopen_self=yes
16699 ;;
16700
16701 mingw* | pw32* | cegcc*)
16702 lt_cv_dlopen="LoadLibrary"
16703 lt_cv_dlopen_libs=
16704 ;;
16705
16706 cygwin*)
16707 lt_cv_dlopen="dlopen"
16708 lt_cv_dlopen_libs=
16709 ;;
16710
16711 darwin*)
16712 # if libdl is installed we need to link against it
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16714$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016715if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016716 $as_echo_n "(cached) " >&6
16717else
16718 ac_check_lib_save_LIBS=$LIBS
16719LIBS="-ldl $LIBS"
16720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h. */
16722
16723/* Override any GCC internal prototype to avoid an error.
16724 Use char because int might match the return type of a GCC
16725 builtin and then its argument prototype would still apply. */
16726#ifdef __cplusplus
16727extern "C"
16728#endif
16729char dlopen ();
16730int
16731main ()
16732{
16733return dlopen ();
16734 ;
16735 return 0;
16736}
16737_ACEOF
16738if ac_fn_c_try_link "$LINENO"; then :
16739 ac_cv_lib_dl_dlopen=yes
16740else
16741 ac_cv_lib_dl_dlopen=no
16742fi
16743rm -f core conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745LIBS=$ac_check_lib_save_LIBS
16746fi
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016749if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16751else
16752
16753 lt_cv_dlopen="dyld"
16754 lt_cv_dlopen_libs=
16755 lt_cv_dlopen_self=yes
16756
16757fi
16758
16759 ;;
16760
16761 *)
16762 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016763if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016764 lt_cv_dlopen="shl_load"
16765else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16767$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016768if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016769 $as_echo_n "(cached) " >&6
16770else
16771 ac_check_lib_save_LIBS=$LIBS
16772LIBS="-ldld $LIBS"
16773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774/* end confdefs.h. */
16775
16776/* Override any GCC internal prototype to avoid an error.
16777 Use char because int might match the return type of a GCC
16778 builtin and then its argument prototype would still apply. */
16779#ifdef __cplusplus
16780extern "C"
16781#endif
16782char shl_load ();
16783int
16784main ()
16785{
16786return shl_load ();
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791if ac_fn_c_try_link "$LINENO"; then :
16792 ac_cv_lib_dld_shl_load=yes
16793else
16794 ac_cv_lib_dld_shl_load=no
16795fi
16796rm -f core conftest.err conftest.$ac_objext \
16797 conftest$ac_exeext conftest.$ac_ext
16798LIBS=$ac_check_lib_save_LIBS
16799fi
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16801$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016802if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16804else
16805 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016806if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016807 lt_cv_dlopen="dlopen"
16808else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16810$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016811if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016812 $as_echo_n "(cached) " >&6
16813else
16814 ac_check_lib_save_LIBS=$LIBS
16815LIBS="-ldl $LIBS"
16816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817/* end confdefs.h. */
16818
16819/* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16822#ifdef __cplusplus
16823extern "C"
16824#endif
16825char dlopen ();
16826int
16827main ()
16828{
16829return dlopen ();
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834if ac_fn_c_try_link "$LINENO"; then :
16835 ac_cv_lib_dl_dlopen=yes
16836else
16837 ac_cv_lib_dl_dlopen=no
16838fi
16839rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841LIBS=$ac_check_lib_save_LIBS
16842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16844$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016845if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16847else
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16849$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016850if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016851 $as_echo_n "(cached) " >&6
16852else
16853 ac_check_lib_save_LIBS=$LIBS
16854LIBS="-lsvld $LIBS"
16855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h. */
16857
16858/* Override any GCC internal prototype to avoid an error.
16859 Use char because int might match the return type of a GCC
16860 builtin and then its argument prototype would still apply. */
16861#ifdef __cplusplus
16862extern "C"
16863#endif
16864char dlopen ();
16865int
16866main ()
16867{
16868return dlopen ();
16869 ;
16870 return 0;
16871}
16872_ACEOF
16873if ac_fn_c_try_link "$LINENO"; then :
16874 ac_cv_lib_svld_dlopen=yes
16875else
16876 ac_cv_lib_svld_dlopen=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880LIBS=$ac_check_lib_save_LIBS
16881fi
16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16883$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016884if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16886else
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16888$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016889if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016890 $as_echo_n "(cached) " >&6
16891else
16892 ac_check_lib_save_LIBS=$LIBS
16893LIBS="-ldld $LIBS"
16894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h. */
16896
16897/* Override any GCC internal prototype to avoid an error.
16898 Use char because int might match the return type of a GCC
16899 builtin and then its argument prototype would still apply. */
16900#ifdef __cplusplus
16901extern "C"
16902#endif
16903char dld_link ();
16904int
16905main ()
16906{
16907return dld_link ();
16908 ;
16909 return 0;
16910}
16911_ACEOF
16912if ac_fn_c_try_link "$LINENO"; then :
16913 ac_cv_lib_dld_dld_link=yes
16914else
16915 ac_cv_lib_dld_dld_link=no
16916fi
16917rm -f core conftest.err conftest.$ac_objext \
16918 conftest$ac_exeext conftest.$ac_ext
16919LIBS=$ac_check_lib_save_LIBS
16920fi
16921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16922$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016923if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16925fi
16926
16927
16928fi
16929
16930
16931fi
16932
16933
16934fi
16935
16936
16937fi
16938
16939
16940fi
16941
16942 ;;
16943 esac
16944
16945 if test "x$lt_cv_dlopen" != xno; then
16946 enable_dlopen=yes
16947 else
16948 enable_dlopen=no
16949 fi
16950
16951 case $lt_cv_dlopen in
16952 dlopen)
16953 save_CPPFLAGS="$CPPFLAGS"
16954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16955
16956 save_LDFLAGS="$LDFLAGS"
16957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16958
16959 save_LIBS="$LIBS"
16960 LIBS="$lt_cv_dlopen_libs $LIBS"
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16963$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016964if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016965 $as_echo_n "(cached) " >&6
16966else
16967 if test "$cross_compiling" = yes; then :
16968 lt_cv_dlopen_self=cross
16969else
16970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16971 lt_status=$lt_dlunknown
16972 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016973#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016974#include "confdefs.h"
16975
16976#if HAVE_DLFCN_H
16977#include <dlfcn.h>
16978#endif
16979
16980#include <stdio.h>
16981
16982#ifdef RTLD_GLOBAL
16983# define LT_DLGLOBAL RTLD_GLOBAL
16984#else
16985# ifdef DL_GLOBAL
16986# define LT_DLGLOBAL DL_GLOBAL
16987# else
16988# define LT_DLGLOBAL 0
16989# endif
16990#endif
16991
16992/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16993 find out it does not work in some platform. */
16994#ifndef LT_DLLAZY_OR_NOW
16995# ifdef RTLD_LAZY
16996# define LT_DLLAZY_OR_NOW RTLD_LAZY
16997# else
16998# ifdef DL_LAZY
16999# define LT_DLLAZY_OR_NOW DL_LAZY
17000# else
17001# ifdef RTLD_NOW
17002# define LT_DLLAZY_OR_NOW RTLD_NOW
17003# else
17004# ifdef DL_NOW
17005# define LT_DLLAZY_OR_NOW DL_NOW
17006# else
17007# define LT_DLLAZY_OR_NOW 0
17008# endif
17009# endif
17010# endif
17011# endif
17012#endif
17013
cristy0c60a692010-11-04 01:09:47 +000017014/* When -fvisbility=hidden is used, assume the code has been annotated
17015 correspondingly for the symbols needed. */
17016#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017017int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017018#endif
17019
cristyda16f162011-02-19 23:52:17 +000017020int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017021int main ()
17022{
17023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17024 int status = $lt_dlunknown;
17025
17026 if (self)
17027 {
17028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017029 else
17030 {
17031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17032 else puts (dlerror ());
17033 }
cristy73bd4a52010-10-05 11:24:23 +000017034 /* dlclose (self); */
17035 }
17036 else
17037 puts (dlerror ());
17038
17039 return status;
17040}
17041_LT_EOF
17042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17043 (eval $ac_link) 2>&5
17044 ac_status=$?
17045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17047 (./conftest; exit; ) >&5 2>/dev/null
17048 lt_status=$?
17049 case x$lt_status in
17050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17052 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17053 esac
17054 else :
17055 # compilation failed
17056 lt_cv_dlopen_self=no
17057 fi
17058fi
17059rm -fr conftest*
17060
17061
17062fi
17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17064$as_echo "$lt_cv_dlopen_self" >&6; }
17065
17066 if test "x$lt_cv_dlopen_self" = xyes; then
17067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17069$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017070if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017071 $as_echo_n "(cached) " >&6
17072else
17073 if test "$cross_compiling" = yes; then :
17074 lt_cv_dlopen_self_static=cross
17075else
17076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17077 lt_status=$lt_dlunknown
17078 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017079#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017080#include "confdefs.h"
17081
17082#if HAVE_DLFCN_H
17083#include <dlfcn.h>
17084#endif
17085
17086#include <stdio.h>
17087
17088#ifdef RTLD_GLOBAL
17089# define LT_DLGLOBAL RTLD_GLOBAL
17090#else
17091# ifdef DL_GLOBAL
17092# define LT_DLGLOBAL DL_GLOBAL
17093# else
17094# define LT_DLGLOBAL 0
17095# endif
17096#endif
17097
17098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17099 find out it does not work in some platform. */
17100#ifndef LT_DLLAZY_OR_NOW
17101# ifdef RTLD_LAZY
17102# define LT_DLLAZY_OR_NOW RTLD_LAZY
17103# else
17104# ifdef DL_LAZY
17105# define LT_DLLAZY_OR_NOW DL_LAZY
17106# else
17107# ifdef RTLD_NOW
17108# define LT_DLLAZY_OR_NOW RTLD_NOW
17109# else
17110# ifdef DL_NOW
17111# define LT_DLLAZY_OR_NOW DL_NOW
17112# else
17113# define LT_DLLAZY_OR_NOW 0
17114# endif
17115# endif
17116# endif
17117# endif
17118#endif
17119
cristy0c60a692010-11-04 01:09:47 +000017120/* When -fvisbility=hidden is used, assume the code has been annotated
17121 correspondingly for the symbols needed. */
17122#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017123int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017124#endif
17125
cristyda16f162011-02-19 23:52:17 +000017126int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017127int main ()
17128{
17129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17130 int status = $lt_dlunknown;
17131
17132 if (self)
17133 {
17134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017135 else
17136 {
17137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17138 else puts (dlerror ());
17139 }
cristy73bd4a52010-10-05 11:24:23 +000017140 /* dlclose (self); */
17141 }
17142 else
17143 puts (dlerror ());
17144
17145 return status;
17146}
17147_LT_EOF
17148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17149 (eval $ac_link) 2>&5
17150 ac_status=$?
17151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17153 (./conftest; exit; ) >&5 2>/dev/null
17154 lt_status=$?
17155 case x$lt_status in
17156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17159 esac
17160 else :
17161 # compilation failed
17162 lt_cv_dlopen_self_static=no
17163 fi
17164fi
17165rm -fr conftest*
17166
17167
17168fi
17169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17170$as_echo "$lt_cv_dlopen_self_static" >&6; }
17171 fi
17172
17173 CPPFLAGS="$save_CPPFLAGS"
17174 LDFLAGS="$save_LDFLAGS"
17175 LIBS="$save_LIBS"
17176 ;;
17177 esac
17178
17179 case $lt_cv_dlopen_self in
17180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17181 *) enable_dlopen_self=unknown ;;
17182 esac
17183
17184 case $lt_cv_dlopen_self_static in
17185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17186 *) enable_dlopen_self_static=unknown ;;
17187 esac
17188fi
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206striplib=
17207old_striplib=
17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17209$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17210if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17214$as_echo "yes" >&6; }
17215else
17216# FIXME - insert some real tests, host_os isn't really good enough
17217 case $host_os in
17218 darwin*)
17219 if test -n "$STRIP" ; then
17220 striplib="$STRIP -x"
17221 old_striplib="$STRIP -S"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17223$as_echo "yes" >&6; }
17224 else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226$as_echo "no" >&6; }
17227 fi
17228 ;;
17229 *)
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231$as_echo "no" >&6; }
17232 ;;
17233 esac
17234fi
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247 # Report which library types will actually be built
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17249$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17251$as_echo "$can_build_shared" >&6; }
17252
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17254$as_echo_n "checking whether to build shared libraries... " >&6; }
17255 test "$can_build_shared" = "no" && enable_shared=no
17256
17257 # On AIX, shared libraries and static libraries use the same namespace, and
17258 # are all built from PIC.
17259 case $host_os in
17260 aix3*)
17261 test "$enable_shared" = yes && enable_static=no
17262 if test -n "$RANLIB"; then
17263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17264 postinstall_cmds='$RANLIB $lib'
17265 fi
17266 ;;
17267
17268 aix[4-9]*)
17269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17270 test "$enable_shared" = yes && enable_static=no
17271 fi
17272 ;;
17273 esac
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17275$as_echo "$enable_shared" >&6; }
17276
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17278$as_echo_n "checking whether to build static libraries... " >&6; }
17279 # Make sure either enable_shared or enable_static is yes.
17280 test "$enable_shared" = yes || enable_static=yes
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17282$as_echo "$enable_static" >&6; }
17283
17284
17285
17286
17287fi
17288ac_ext=c
17289ac_cpp='$CPP $CPPFLAGS'
17290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292ac_compiler_gnu=$ac_cv_c_compiler_gnu
17293
17294CC="$lt_save_CC"
17295
cristy0c60a692010-11-04 01:09:47 +000017296 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17297 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17298 (test "X$CXX" != "Xg++"))) ; then
17299 ac_ext=cpp
17300ac_cpp='$CXXCPP $CPPFLAGS'
17301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17305$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17306if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017307 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017308 $as_echo_n "(cached) " >&6
17309else
17310 # Double quotes because CXXCPP needs to be expanded
17311 for CXXCPP in "$CXX -E" "/lib/cpp"
17312 do
17313 ac_preproc_ok=false
17314for ac_cxx_preproc_warn_flag in '' yes
17315do
17316 # Use a header file that comes with gcc, so configuring glibc
17317 # with a fresh cross-compiler works.
17318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 # <limits.h> exists even on freestanding compilers.
17320 # On the NeXT, cc -E runs the code through the compiler's parser,
17321 # not just through cpp. "Syntax error" is here to catch this case.
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h. */
17324#ifdef __STDC__
17325# include <limits.h>
17326#else
17327# include <assert.h>
17328#endif
17329 Syntax error
17330_ACEOF
17331if ac_fn_cxx_try_cpp "$LINENO"; then :
17332
17333else
17334 # Broken: fails on valid input.
17335continue
17336fi
cristyda16f162011-02-19 23:52:17 +000017337rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017338
17339 # OK, works on sane cases. Now check whether nonexistent headers
17340 # can be detected and how.
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342/* end confdefs.h. */
17343#include <ac_nonexistent.h>
17344_ACEOF
17345if ac_fn_cxx_try_cpp "$LINENO"; then :
17346 # Broken: success on invalid input.
17347continue
17348else
17349 # Passes both tests.
17350ac_preproc_ok=:
17351break
17352fi
cristyda16f162011-02-19 23:52:17 +000017353rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017354
17355done
17356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017357rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017358if $ac_preproc_ok; then :
17359 break
17360fi
17361
17362 done
17363 ac_cv_prog_CXXCPP=$CXXCPP
17364
17365fi
17366 CXXCPP=$ac_cv_prog_CXXCPP
17367else
17368 ac_cv_prog_CXXCPP=$CXXCPP
17369fi
17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17371$as_echo "$CXXCPP" >&6; }
17372ac_preproc_ok=false
17373for ac_cxx_preproc_warn_flag in '' yes
17374do
17375 # Use a header file that comes with gcc, so configuring glibc
17376 # with a fresh cross-compiler works.
17377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 # <limits.h> exists even on freestanding compilers.
17379 # On the NeXT, cc -E runs the code through the compiler's parser,
17380 # not just through cpp. "Syntax error" is here to catch this case.
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382/* end confdefs.h. */
17383#ifdef __STDC__
17384# include <limits.h>
17385#else
17386# include <assert.h>
17387#endif
17388 Syntax error
17389_ACEOF
17390if ac_fn_cxx_try_cpp "$LINENO"; then :
17391
17392else
17393 # Broken: fails on valid input.
17394continue
17395fi
cristyda16f162011-02-19 23:52:17 +000017396rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017397
17398 # OK, works on sane cases. Now check whether nonexistent headers
17399 # can be detected and how.
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401/* end confdefs.h. */
17402#include <ac_nonexistent.h>
17403_ACEOF
17404if ac_fn_cxx_try_cpp "$LINENO"; then :
17405 # Broken: success on invalid input.
17406continue
17407else
17408 # Passes both tests.
17409ac_preproc_ok=:
17410break
17411fi
cristyda16f162011-02-19 23:52:17 +000017412rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017413
17414done
17415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017416rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017417if $ac_preproc_ok; then :
17418
17419else
17420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17422as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17423See \`config.log' for more details" "$LINENO" 5; }
17424fi
17425
17426ac_ext=c
17427ac_cpp='$CPP $CPPFLAGS'
17428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431
17432else
17433 _lt_caught_CXX_error=yes
17434fi
cristy73bd4a52010-10-05 11:24:23 +000017435
17436ac_ext=cpp
17437ac_cpp='$CXXCPP $CPPFLAGS'
17438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17441
17442archive_cmds_need_lc_CXX=no
17443allow_undefined_flag_CXX=
17444always_export_symbols_CXX=no
17445archive_expsym_cmds_CXX=
17446compiler_needs_object_CXX=no
17447export_dynamic_flag_spec_CXX=
17448hardcode_direct_CXX=no
17449hardcode_direct_absolute_CXX=no
17450hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017451hardcode_libdir_separator_CXX=
17452hardcode_minus_L_CXX=no
17453hardcode_shlibpath_var_CXX=unsupported
17454hardcode_automatic_CXX=no
17455inherit_rpath_CXX=no
17456module_cmds_CXX=
17457module_expsym_cmds_CXX=
17458link_all_deplibs_CXX=unknown
17459old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017460reload_flag_CXX=$reload_flag
17461reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017462no_undefined_flag_CXX=
17463whole_archive_flag_spec_CXX=
17464enable_shared_with_static_runtimes_CXX=no
17465
17466# Source file extension for C++ test sources.
17467ac_ext=cpp
17468
17469# Object file extension for compiled C++ test sources.
17470objext=o
17471objext_CXX=$objext
17472
17473# No sense in running all these tests if we already determined that
17474# the CXX compiler isn't working. Some variables (like enable_shared)
17475# are currently assumed to apply to all compilers on this platform,
17476# and will be corrupted by setting them based on a non-working compiler.
17477if test "$_lt_caught_CXX_error" != yes; then
17478 # Code to be used in simple compile tests
17479 lt_simple_compile_test_code="int some_variable = 0;"
17480
17481 # Code to be used in simple link tests
17482 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17483
17484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17485
17486
17487
17488
17489
17490
17491# If no C compiler was specified, use CC.
17492LTCC=${LTCC-"$CC"}
17493
17494# If no C compiler flags were specified, use CFLAGS.
17495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17496
17497# Allow CC to be a program name with arguments.
17498compiler=$CC
17499
17500
17501 # save warnings/boilerplate of simple test code
17502 ac_outfile=conftest.$ac_objext
17503echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17505_lt_compiler_boilerplate=`cat conftest.err`
17506$RM conftest*
17507
17508 ac_outfile=conftest.$ac_objext
17509echo "$lt_simple_link_test_code" >conftest.$ac_ext
17510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17511_lt_linker_boilerplate=`cat conftest.err`
17512$RM -r conftest*
17513
17514
17515 # Allow CC to be a program name with arguments.
17516 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017517 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017518 lt_save_LD=$LD
17519 lt_save_GCC=$GCC
17520 GCC=$GXX
17521 lt_save_with_gnu_ld=$with_gnu_ld
17522 lt_save_path_LD=$lt_cv_path_LD
17523 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17524 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17525 else
17526 $as_unset lt_cv_prog_gnu_ld
17527 fi
17528 if test -n "${lt_cv_path_LDCXX+set}"; then
17529 lt_cv_path_LD=$lt_cv_path_LDCXX
17530 else
17531 $as_unset lt_cv_path_LD
17532 fi
17533 test -z "${LDCXX+set}" || LD=$LDCXX
17534 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017535 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017536 compiler=$CC
17537 compiler_CXX=$CC
17538 for cc_temp in $compiler""; do
17539 case $cc_temp in
17540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17542 \-*) ;;
17543 *) break;;
17544 esac
17545done
cristy0c60a692010-11-04 01:09:47 +000017546cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017547
17548
17549 if test -n "$compiler"; then
17550 # We don't want -fno-exception when compiling C++ code, so set the
17551 # no_builtin_flag separately
17552 if test "$GXX" = yes; then
17553 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17554 else
17555 lt_prog_compiler_no_builtin_flag_CXX=
17556 fi
17557
17558 if test "$GXX" = yes; then
17559 # Set up default GNU C++ configuration
17560
17561
17562
17563# Check whether --with-gnu-ld was given.
17564if test "${with_gnu_ld+set}" = set; then :
17565 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17566else
17567 with_gnu_ld=no
17568fi
17569
17570ac_prog=ld
17571if test "$GCC" = yes; then
17572 # Check if gcc -print-prog-name=ld gives a path.
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17574$as_echo_n "checking for ld used by $CC... " >&6; }
17575 case $host in
17576 *-*-mingw*)
17577 # gcc leaves a trailing carriage return which upsets mingw
17578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17579 *)
17580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17581 esac
17582 case $ac_prog in
17583 # Accept absolute paths.
17584 [\\/]* | ?:[\\/]*)
17585 re_direlt='/[^/][^/]*/\.\./'
17586 # Canonicalize the pathname of ld
17587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17590 done
17591 test -z "$LD" && LD="$ac_prog"
17592 ;;
17593 "")
17594 # If it fails, then pretend we aren't using GCC.
17595 ac_prog=ld
17596 ;;
17597 *)
17598 # If it is relative, then search for the first ld in PATH.
17599 with_gnu_ld=unknown
17600 ;;
17601 esac
17602elif test "$with_gnu_ld" = yes; then
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17604$as_echo_n "checking for GNU ld... " >&6; }
17605else
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17607$as_echo_n "checking for non-GNU ld... " >&6; }
17608fi
cristyda16f162011-02-19 23:52:17 +000017609if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017610 $as_echo_n "(cached) " >&6
17611else
17612 if test -z "$LD"; then
17613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17614 for ac_dir in $PATH; do
17615 IFS="$lt_save_ifs"
17616 test -z "$ac_dir" && ac_dir=.
17617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17618 lt_cv_path_LD="$ac_dir/$ac_prog"
17619 # Check to see if the program is GNU ld. I'd rather use --version,
17620 # but apparently some variants of GNU ld only accept -v.
17621 # Break only if it was the GNU/non-GNU ld that we prefer.
17622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17623 *GNU* | *'with BFD'*)
17624 test "$with_gnu_ld" != no && break
17625 ;;
17626 *)
17627 test "$with_gnu_ld" != yes && break
17628 ;;
17629 esac
17630 fi
17631 done
17632 IFS="$lt_save_ifs"
17633else
17634 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17635fi
17636fi
17637
17638LD="$lt_cv_path_LD"
17639if test -n "$LD"; then
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17641$as_echo "$LD" >&6; }
17642else
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17644$as_echo "no" >&6; }
17645fi
cristy98dddb52010-11-04 00:30:15 +000017646test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17648$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017649if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017650 $as_echo_n "(cached) " >&6
17651else
17652 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17653case `$LD -v 2>&1 </dev/null` in
17654*GNU* | *'with BFD'*)
17655 lt_cv_prog_gnu_ld=yes
17656 ;;
17657*)
17658 lt_cv_prog_gnu_ld=no
17659 ;;
17660esac
17661fi
17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17663$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17664with_gnu_ld=$lt_cv_prog_gnu_ld
17665
17666
17667
17668
17669
17670
17671
17672 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17673 # archiving commands below assume that GNU ld is being used.
17674 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017675 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17676 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'
cristy73bd4a52010-10-05 11:24:23 +000017677
17678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17680
17681 # If archive_cmds runs LD, not CC, wlarc should be empty
17682 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17683 # investigate it a little bit more. (MM)
17684 wlarc='${wl}'
17685
17686 # ancient GNU ld didn't support --whole-archive et. al.
17687 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17688 $GREP 'no-whole-archive' > /dev/null; then
17689 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17690 else
17691 whole_archive_flag_spec_CXX=
17692 fi
17693 else
17694 with_gnu_ld=no
17695 wlarc=
17696
17697 # A generic and very simple default shared library creation
17698 # command for GNU C++ for the case where it uses the native
17699 # linker, instead of GNU ld. If possible, this setting should
17700 # overridden to take advantage of the native linker features on
17701 # the platform it is being used on.
17702 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17703 fi
17704
17705 # Commands to make compiler produce verbose output that lists
17706 # what "hidden" libraries, object files and flags are used when
17707 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017708 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017709
17710 else
17711 GXX=no
17712 with_gnu_ld=no
17713 wlarc=
17714 fi
17715
17716 # PORTME: fill in a description of your system's C++ link characteristics
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17718$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17719 ld_shlibs_CXX=yes
17720 case $host_os in
17721 aix3*)
17722 # FIXME: insert proper C++ library support
17723 ld_shlibs_CXX=no
17724 ;;
17725 aix[4-9]*)
17726 if test "$host_cpu" = ia64; then
17727 # On IA64, the linker does run time linking by default, so we don't
17728 # have to do anything special.
17729 aix_use_runtimelinking=no
17730 exp_sym_flag='-Bexport'
17731 no_entry_flag=""
17732 else
17733 aix_use_runtimelinking=no
17734
17735 # Test if we are trying to use run time linking or normal
17736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17737 # need to do runtime linking.
17738 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17739 for ld_flag in $LDFLAGS; do
17740 case $ld_flag in
17741 *-brtl*)
17742 aix_use_runtimelinking=yes
17743 break
17744 ;;
17745 esac
17746 done
17747 ;;
17748 esac
17749
17750 exp_sym_flag='-bexport'
17751 no_entry_flag='-bnoentry'
17752 fi
17753
17754 # When large executables or shared objects are built, AIX ld can
17755 # have problems creating the table of contents. If linking a library
17756 # or program results in "error TOC overflow" add -mminimal-toc to
17757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17759
17760 archive_cmds_CXX=''
17761 hardcode_direct_CXX=yes
17762 hardcode_direct_absolute_CXX=yes
17763 hardcode_libdir_separator_CXX=':'
17764 link_all_deplibs_CXX=yes
17765 file_list_spec_CXX='${wl}-f,'
17766
17767 if test "$GXX" = yes; then
17768 case $host_os in aix4.[012]|aix4.[012].*)
17769 # We only want to do this on AIX 4.2 and lower, the check
17770 # below for broken collect2 doesn't work under 4.3+
17771 collect2name=`${CC} -print-prog-name=collect2`
17772 if test -f "$collect2name" &&
17773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17774 then
17775 # We have reworked collect2
17776 :
17777 else
17778 # We have old collect2
17779 hardcode_direct_CXX=unsupported
17780 # It fails to find uninstalled libraries when the uninstalled
17781 # path is not listed in the libpath. Setting hardcode_minus_L
17782 # to unsupported forces relinking
17783 hardcode_minus_L_CXX=yes
17784 hardcode_libdir_flag_spec_CXX='-L$libdir'
17785 hardcode_libdir_separator_CXX=
17786 fi
17787 esac
17788 shared_flag='-shared'
17789 if test "$aix_use_runtimelinking" = yes; then
17790 shared_flag="$shared_flag "'${wl}-G'
17791 fi
17792 else
17793 # not using gcc
17794 if test "$host_cpu" = ia64; then
17795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17796 # chokes on -Wl,-G. The following line is correct:
17797 shared_flag='-G'
17798 else
17799 if test "$aix_use_runtimelinking" = yes; then
17800 shared_flag='${wl}-G'
17801 else
17802 shared_flag='${wl}-bM:SRE'
17803 fi
17804 fi
17805 fi
17806
17807 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17808 # It seems that -bexpall does not export symbols beginning with
17809 # underscore (_), so it is better to generate a list of symbols to
17810 # export.
17811 always_export_symbols_CXX=yes
17812 if test "$aix_use_runtimelinking" = yes; then
17813 # Warning - without using the other runtime loading flags (-brtl),
17814 # -berok will link without error, but may produce a broken library.
17815 allow_undefined_flag_CXX='-berok'
17816 # Determine the default libpath from the value encoded in an empty
17817 # executable.
cristyda16f162011-02-19 23:52:17 +000017818 if test "${lt_cv_aix_libpath+set}" = set; then
17819 aix_libpath=$lt_cv_aix_libpath
17820else
17821 if ${lt_cv_aix_libpath__CXX+:} false; then :
17822 $as_echo_n "(cached) " >&6
17823else
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017825/* end confdefs.h. */
17826
17827int
17828main ()
17829{
17830
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835if ac_fn_cxx_try_link "$LINENO"; then :
17836
cristyda16f162011-02-19 23:52:17 +000017837 lt_aix_libpath_sed='
17838 /Import File Strings/,/^$/ {
17839 /^0/ {
17840 s/^0 *\([^ ]*\) *$/\1/
17841 p
17842 }
17843 }'
17844 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17845 # Check for a 64-bit object if we didn't find anything.
17846 if test -z "$lt_cv_aix_libpath__CXX"; then
17847 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17848 fi
cristy73bd4a52010-10-05 11:24:23 +000017849fi
17850rm -f core conftest.err conftest.$ac_objext \
17851 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017852 if test -z "$lt_cv_aix_libpath__CXX"; then
17853 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17854 fi
17855
17856fi
17857
17858 aix_libpath=$lt_cv_aix_libpath__CXX
17859fi
cristy73bd4a52010-10-05 11:24:23 +000017860
17861 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17862
cristy0c60a692010-11-04 01:09:47 +000017863 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"
cristy73bd4a52010-10-05 11:24:23 +000017864 else
17865 if test "$host_cpu" = ia64; then
17866 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17867 allow_undefined_flag_CXX="-z nodefs"
17868 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"
17869 else
17870 # Determine the default libpath from the value encoded in an
17871 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017872 if test "${lt_cv_aix_libpath+set}" = set; then
17873 aix_libpath=$lt_cv_aix_libpath
17874else
17875 if ${lt_cv_aix_libpath__CXX+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877else
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017879/* end confdefs.h. */
17880
17881int
17882main ()
17883{
17884
17885 ;
17886 return 0;
17887}
17888_ACEOF
17889if ac_fn_cxx_try_link "$LINENO"; then :
17890
cristyda16f162011-02-19 23:52:17 +000017891 lt_aix_libpath_sed='
17892 /Import File Strings/,/^$/ {
17893 /^0/ {
17894 s/^0 *\([^ ]*\) *$/\1/
17895 p
17896 }
17897 }'
17898 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$lt_cv_aix_libpath__CXX"; then
17901 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17902 fi
cristy73bd4a52010-10-05 11:24:23 +000017903fi
17904rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017906 if test -z "$lt_cv_aix_libpath__CXX"; then
17907 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17908 fi
17909
17910fi
17911
17912 aix_libpath=$lt_cv_aix_libpath__CXX
17913fi
cristy73bd4a52010-10-05 11:24:23 +000017914
17915 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17916 # Warning - without using the other run time loading flags,
17917 # -berok will link without error, but may produce a broken library.
17918 no_undefined_flag_CXX=' ${wl}-bernotok'
17919 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017920 if test "$with_gnu_ld" = yes; then
17921 # We only use this code for GNU lds that support --whole-archive.
17922 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17923 else
17924 # Exported symbols can be pulled into shared objects from archives
17925 whole_archive_flag_spec_CXX='$convenience'
17926 fi
cristy73bd4a52010-10-05 11:24:23 +000017927 archive_cmds_need_lc_CXX=yes
17928 # This is similar to how AIX traditionally builds its shared
17929 # libraries.
17930 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'
17931 fi
17932 fi
17933 ;;
17934
17935 beos*)
17936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17937 allow_undefined_flag_CXX=unsupported
17938 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17939 # support --undefined. This deserves some investigation. FIXME
17940 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17941 else
17942 ld_shlibs_CXX=no
17943 fi
17944 ;;
17945
17946 chorus*)
17947 case $cc_basename in
17948 *)
17949 # FIXME: insert proper C++ library support
17950 ld_shlibs_CXX=no
17951 ;;
17952 esac
17953 ;;
17954
17955 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017956 case $GXX,$cc_basename in
17957 ,cl* | no,cl*)
17958 # Native MSVC
17959 # hardcode_libdir_flag_spec is actually meaningless, as there is
17960 # no search path for DLLs.
17961 hardcode_libdir_flag_spec_CXX=' '
17962 allow_undefined_flag_CXX=unsupported
17963 always_export_symbols_CXX=yes
17964 file_list_spec_CXX='@'
17965 # Tell ltmain to make .lib files, not .a files.
17966 libext=lib
17967 # Tell ltmain to make .dll files, not .so files.
17968 shrext_cmds=".dll"
17969 # FIXME: Setting linknames here is a bad hack.
17970 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17971 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17972 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17973 else
17974 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17975 fi~
17976 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17977 linknames='
17978 # The linker will not automatically build a static lib if we build a DLL.
17979 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17980 enable_shared_with_static_runtimes_CXX=yes
17981 # Don't use ranlib
17982 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17983 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17984 lt_tool_outputfile="@TOOL_OUTPUT@"~
17985 case $lt_outputfile in
17986 *.exe|*.EXE) ;;
17987 *)
17988 lt_outputfile="$lt_outputfile.exe"
17989 lt_tool_outputfile="$lt_tool_outputfile.exe"
17990 ;;
17991 esac~
17992 func_to_tool_file "$lt_outputfile"~
17993 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17994 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17995 $RM "$lt_outputfile.manifest";
17996 fi'
17997 ;;
17998 *)
17999 # g++
18000 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18001 # as there is no search path for DLLs.
18002 hardcode_libdir_flag_spec_CXX='-L$libdir'
18003 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18004 allow_undefined_flag_CXX=unsupported
18005 always_export_symbols_CXX=no
18006 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018007
cristyda16f162011-02-19 23:52:17 +000018008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18009 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'
18010 # If the export-symbols file already is a .def file (1st line
18011 # is EXPORTS), use it as is; otherwise, prepend...
18012 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18013 cp $export_symbols $output_objdir/$soname.def;
18014 else
18015 echo EXPORTS > $output_objdir/$soname.def;
18016 cat $export_symbols >> $output_objdir/$soname.def;
18017 fi~
18018 $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'
18019 else
18020 ld_shlibs_CXX=no
18021 fi
18022 ;;
18023 esac
18024 ;;
cristy73bd4a52010-10-05 11:24:23 +000018025 darwin* | rhapsody*)
18026
18027
18028 archive_cmds_need_lc_CXX=no
18029 hardcode_direct_CXX=no
18030 hardcode_automatic_CXX=yes
18031 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018032 if test "$lt_cv_ld_force_load" = "yes"; then
18033 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\"`'
cristy99bd5232011-12-07 14:38:20 +000018034
cristy0c60a692010-11-04 01:09:47 +000018035 else
18036 whole_archive_flag_spec_CXX=''
18037 fi
cristy73bd4a52010-10-05 11:24:23 +000018038 link_all_deplibs_CXX=yes
18039 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18040 case $cc_basename in
18041 ifort*) _lt_dar_can_shared=yes ;;
18042 *) _lt_dar_can_shared=$GCC ;;
18043 esac
18044 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018045 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018046 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}"
18047 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18048 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}"
18049 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}"
18050 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18051 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}"
18052 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}"
18053 fi
18054
18055 else
18056 ld_shlibs_CXX=no
18057 fi
18058
18059 ;;
18060
18061 dgux*)
18062 case $cc_basename in
18063 ec++*)
18064 # FIXME: insert proper C++ library support
18065 ld_shlibs_CXX=no
18066 ;;
18067 ghcx*)
18068 # Green Hills C++ Compiler
18069 # FIXME: insert proper C++ library support
18070 ld_shlibs_CXX=no
18071 ;;
18072 *)
18073 # FIXME: insert proper C++ library support
18074 ld_shlibs_CXX=no
18075 ;;
18076 esac
18077 ;;
18078
cristy99bd5232011-12-07 14:38:20 +000018079 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018080 # C++ shared libraries reported to be fairly broken before
18081 # switch to ELF
18082 ld_shlibs_CXX=no
18083 ;;
18084
18085 freebsd-elf*)
18086 archive_cmds_need_lc_CXX=no
18087 ;;
18088
18089 freebsd* | dragonfly*)
18090 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18091 # conventions
18092 ld_shlibs_CXX=yes
18093 ;;
18094
18095 gnu*)
18096 ;;
18097
cristy0c60a692010-11-04 01:09:47 +000018098 haiku*)
18099 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18100 link_all_deplibs_CXX=yes
18101 ;;
18102
cristy73bd4a52010-10-05 11:24:23 +000018103 hpux9*)
18104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18105 hardcode_libdir_separator_CXX=:
18106 export_dynamic_flag_spec_CXX='${wl}-E'
18107 hardcode_direct_CXX=yes
18108 hardcode_minus_L_CXX=yes # Not in the search PATH,
18109 # but as the default
18110 # location of the library.
18111
18112 case $cc_basename in
18113 CC*)
18114 # FIXME: insert proper C++ library support
18115 ld_shlibs_CXX=no
18116 ;;
18117 aCC*)
18118 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'
18119 # Commands to make compiler produce verbose output that lists
18120 # what "hidden" libraries, object files and flags are used when
18121 # linking a shared library.
18122 #
18123 # There doesn't appear to be a way to prevent this compiler from
18124 # explicitly linking system object files so we need to strip them
18125 # from the output so that they don't get included in the library
18126 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018127 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"'
cristy73bd4a52010-10-05 11:24:23 +000018128 ;;
18129 *)
18130 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018131 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'
cristy73bd4a52010-10-05 11:24:23 +000018132 else
18133 # FIXME: insert proper C++ library support
18134 ld_shlibs_CXX=no
18135 fi
18136 ;;
18137 esac
18138 ;;
18139
18140 hpux10*|hpux11*)
18141 if test $with_gnu_ld = no; then
18142 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18143 hardcode_libdir_separator_CXX=:
18144
18145 case $host_cpu in
18146 hppa*64*|ia64*)
18147 ;;
18148 *)
18149 export_dynamic_flag_spec_CXX='${wl}-E'
18150 ;;
18151 esac
18152 fi
18153 case $host_cpu in
18154 hppa*64*|ia64*)
18155 hardcode_direct_CXX=no
18156 hardcode_shlibpath_var_CXX=no
18157 ;;
18158 *)
18159 hardcode_direct_CXX=yes
18160 hardcode_direct_absolute_CXX=yes
18161 hardcode_minus_L_CXX=yes # Not in the search PATH,
18162 # but as the default
18163 # location of the library.
18164 ;;
18165 esac
18166
18167 case $cc_basename in
18168 CC*)
18169 # FIXME: insert proper C++ library support
18170 ld_shlibs_CXX=no
18171 ;;
18172 aCC*)
18173 case $host_cpu in
18174 hppa*64*)
18175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18176 ;;
18177 ia64*)
18178 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18179 ;;
18180 *)
18181 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18182 ;;
18183 esac
18184 # Commands to make compiler produce verbose output that lists
18185 # what "hidden" libraries, object files and flags are used when
18186 # linking a shared library.
18187 #
18188 # There doesn't appear to be a way to prevent this compiler from
18189 # explicitly linking system object files so we need to strip them
18190 # from the output so that they don't get included in the library
18191 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018192 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"'
cristy73bd4a52010-10-05 11:24:23 +000018193 ;;
18194 *)
18195 if test "$GXX" = yes; then
18196 if test $with_gnu_ld = no; then
18197 case $host_cpu in
18198 hppa*64*)
18199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18200 ;;
18201 ia64*)
cristyda16f162011-02-19 23:52:17 +000018202 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018203 ;;
18204 *)
cristyda16f162011-02-19 23:52:17 +000018205 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'
cristy73bd4a52010-10-05 11:24:23 +000018206 ;;
18207 esac
18208 fi
18209 else
18210 # FIXME: insert proper C++ library support
18211 ld_shlibs_CXX=no
18212 fi
18213 ;;
18214 esac
18215 ;;
18216
18217 interix[3-9]*)
18218 hardcode_direct_CXX=no
18219 hardcode_shlibpath_var_CXX=no
18220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18221 export_dynamic_flag_spec_CXX='${wl}-E'
18222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18223 # Instead, shared libraries are loaded at an image base (0x10000000 by
18224 # default) and relocated if they conflict, which is a slow very memory
18225 # consuming and fragmenting process. To avoid this, we pick a random,
18226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18227 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18228 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'
18229 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'
18230 ;;
18231 irix5* | irix6*)
18232 case $cc_basename in
18233 CC*)
18234 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018235 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'
cristy73bd4a52010-10-05 11:24:23 +000018236
18237 # Archives containing C++ object files must be created using
18238 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18239 # necessary to make sure instantiated templates are included
18240 # in the archive.
18241 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18242 ;;
18243 *)
18244 if test "$GXX" = yes; then
18245 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018246 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'
cristy73bd4a52010-10-05 11:24:23 +000018247 else
cristyda16f162011-02-19 23:52:17 +000018248 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'
cristy73bd4a52010-10-05 11:24:23 +000018249 fi
18250 fi
18251 link_all_deplibs_CXX=yes
18252 ;;
18253 esac
18254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18255 hardcode_libdir_separator_CXX=:
18256 inherit_rpath_CXX=yes
18257 ;;
18258
cristy0c60a692010-11-04 01:09:47 +000018259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018260 case $cc_basename in
18261 KCC*)
18262 # Kuck and Associates, Inc. (KAI) C++ Compiler
18263
18264 # KCC will only create a shared library if the output file
18265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18266 # to its proper name (with version) after linking.
18267 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'
18268 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'
18269 # Commands to make compiler produce verbose output that lists
18270 # what "hidden" libraries, object files and flags are used when
18271 # linking a shared library.
18272 #
18273 # There doesn't appear to be a way to prevent this compiler from
18274 # explicitly linking system object files so we need to strip them
18275 # from the output so that they don't get included in the library
18276 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018277 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"'
cristy73bd4a52010-10-05 11:24:23 +000018278
18279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18281
18282 # Archives containing C++ object files must be created using
18283 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18284 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18285 ;;
18286 icpc* | ecpc* )
18287 # Intel C++
18288 with_gnu_ld=yes
18289 # version 8.0 and above of icpc choke on multiply defined symbols
18290 # if we add $predep_objects and $postdep_objects, however 7.1 and
18291 # earlier do not add the objects themselves.
18292 case `$CC -V 2>&1` in
18293 *"Version 7."*)
18294 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18295 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'
18296 ;;
18297 *) # Version 8.0 or newer
18298 tmp_idyn=
18299 case $host_cpu in
18300 ia64*) tmp_idyn=' -i_dynamic';;
18301 esac
18302 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18303 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'
18304 ;;
18305 esac
18306 archive_cmds_need_lc_CXX=no
18307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18309 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18310 ;;
18311 pgCC* | pgcpp*)
18312 # Portland Group C++ compiler
18313 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018314 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018315 prelink_cmds_CXX='tpldir=Template.dir~
18316 rm -rf $tpldir~
18317 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018318 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018319 old_archive_cmds_CXX='tpldir=Template.dir~
18320 rm -rf $tpldir~
18321 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018322 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018323 $RANLIB $oldlib'
18324 archive_cmds_CXX='tpldir=Template.dir~
18325 rm -rf $tpldir~
18326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018328 archive_expsym_cmds_CXX='tpldir=Template.dir~
18329 rm -rf $tpldir~
18330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018331 $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'
cristy73bd4a52010-10-05 11:24:23 +000018332 ;;
cristy0c60a692010-11-04 01:09:47 +000018333 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18335 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'
18336 ;;
18337 esac
18338
18339 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018341 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'
cristy73bd4a52010-10-05 11:24:23 +000018342 ;;
18343 cxx*)
18344 # Compaq C++
18345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18346 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'
18347
18348 runpath_var=LD_RUN_PATH
18349 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18350 hardcode_libdir_separator_CXX=:
18351
18352 # Commands to make compiler produce verbose output that lists
18353 # what "hidden" libraries, object files and flags are used when
18354 # linking a shared library.
18355 #
18356 # There doesn't appear to be a way to prevent this compiler from
18357 # explicitly linking system object files so we need to strip them
18358 # from the output so that they don't get included in the library
18359 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018360 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'
cristy73bd4a52010-10-05 11:24:23 +000018361 ;;
cristy0c60a692010-11-04 01:09:47 +000018362 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018363 # IBM XL 8.0 on PPC, with GNU ld
18364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18366 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18367 if test "x$supports_anon_versioning" = xyes; then
18368 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18370 echo "local: *; };" >> $output_objdir/$libname.ver~
18371 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18372 fi
18373 ;;
18374 *)
18375 case `$CC -V 2>&1 | sed 5q` in
18376 *Sun\ C*)
18377 # Sun C++ 5.9
18378 no_undefined_flag_CXX=' -zdefs'
18379 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18380 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'
18381 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018382 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'
cristy73bd4a52010-10-05 11:24:23 +000018383 compiler_needs_object_CXX=yes
18384
18385 # Not sure whether something based on
18386 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18387 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018388 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018389
18390 # Archives containing C++ object files must be created using
18391 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18392 # necessary to make sure instantiated templates are included
18393 # in the archive.
18394 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18395 ;;
18396 esac
18397 ;;
18398 esac
18399 ;;
18400
18401 lynxos*)
18402 # FIXME: insert proper C++ library support
18403 ld_shlibs_CXX=no
18404 ;;
18405
18406 m88k*)
18407 # FIXME: insert proper C++ library support
18408 ld_shlibs_CXX=no
18409 ;;
18410
18411 mvs*)
18412 case $cc_basename in
18413 cxx*)
18414 # FIXME: insert proper C++ library support
18415 ld_shlibs_CXX=no
18416 ;;
18417 *)
18418 # FIXME: insert proper C++ library support
18419 ld_shlibs_CXX=no
18420 ;;
18421 esac
18422 ;;
18423
18424 netbsd*)
18425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18426 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18427 wlarc=
18428 hardcode_libdir_flag_spec_CXX='-R$libdir'
18429 hardcode_direct_CXX=yes
18430 hardcode_shlibpath_var_CXX=no
18431 fi
18432 # Workaround some broken pre-1.5 toolchains
18433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18434 ;;
18435
18436 *nto* | *qnx*)
18437 ld_shlibs_CXX=yes
18438 ;;
18439
18440 openbsd2*)
18441 # C++ shared libraries are fairly broken
18442 ld_shlibs_CXX=no
18443 ;;
18444
18445 openbsd*)
18446 if test -f /usr/libexec/ld.so; then
18447 hardcode_direct_CXX=yes
18448 hardcode_shlibpath_var_CXX=no
18449 hardcode_direct_absolute_CXX=yes
18450 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18453 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18454 export_dynamic_flag_spec_CXX='${wl}-E'
18455 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18456 fi
cristy0c60a692010-11-04 01:09:47 +000018457 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018458 else
18459 ld_shlibs_CXX=no
18460 fi
18461 ;;
18462
18463 osf3* | osf4* | osf5*)
18464 case $cc_basename in
18465 KCC*)
18466 # Kuck and Associates, Inc. (KAI) C++ Compiler
18467
18468 # KCC will only create a shared library if the output file
18469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18470 # to its proper name (with version) after linking.
18471 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'
18472
18473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18474 hardcode_libdir_separator_CXX=:
18475
18476 # Archives containing C++ object files must be created using
18477 # the KAI C++ compiler.
18478 case $host in
18479 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18480 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18481 esac
18482 ;;
18483 RCC*)
18484 # Rational C++ 2.4.1
18485 # FIXME: insert proper C++ library support
18486 ld_shlibs_CXX=no
18487 ;;
18488 cxx*)
18489 case $host in
18490 osf3*)
18491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018492 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'
cristy73bd4a52010-10-05 11:24:23 +000018493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18494 ;;
18495 *)
18496 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018497 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'
cristy73bd4a52010-10-05 11:24:23 +000018498 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18499 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018500 $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~
cristy73bd4a52010-10-05 11:24:23 +000018501 $RM $lib.exp'
18502 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18503 ;;
18504 esac
18505
18506 hardcode_libdir_separator_CXX=:
18507
18508 # Commands to make compiler produce verbose output that lists
18509 # what "hidden" libraries, object files and flags are used when
18510 # linking a shared library.
18511 #
18512 # There doesn't appear to be a way to prevent this compiler from
18513 # explicitly linking system object files so we need to strip them
18514 # from the output so that they don't get included in the library
18515 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018516 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"'
cristy73bd4a52010-10-05 11:24:23 +000018517 ;;
18518 *)
18519 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18520 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18521 case $host in
18522 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018523 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'
cristy73bd4a52010-10-05 11:24:23 +000018524 ;;
18525 *)
cristyda16f162011-02-19 23:52:17 +000018526 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'
cristy73bd4a52010-10-05 11:24:23 +000018527 ;;
18528 esac
18529
18530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18531 hardcode_libdir_separator_CXX=:
18532
18533 # Commands to make compiler produce verbose output that lists
18534 # what "hidden" libraries, object files and flags are used when
18535 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018537
18538 else
18539 # FIXME: insert proper C++ library support
18540 ld_shlibs_CXX=no
18541 fi
18542 ;;
18543 esac
18544 ;;
18545
18546 psos*)
18547 # FIXME: insert proper C++ library support
18548 ld_shlibs_CXX=no
18549 ;;
18550
18551 sunos4*)
18552 case $cc_basename in
18553 CC*)
18554 # Sun C++ 4.x
18555 # FIXME: insert proper C++ library support
18556 ld_shlibs_CXX=no
18557 ;;
18558 lcc*)
18559 # Lucid
18560 # FIXME: insert proper C++ library support
18561 ld_shlibs_CXX=no
18562 ;;
18563 *)
18564 # FIXME: insert proper C++ library support
18565 ld_shlibs_CXX=no
18566 ;;
18567 esac
18568 ;;
18569
18570 solaris*)
18571 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018572 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018573 # Sun C++ 4.2, 5.x and Centerline C++
18574 archive_cmds_need_lc_CXX=yes
18575 no_undefined_flag_CXX=' -zdefs'
18576 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18577 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18578 $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'
18579
18580 hardcode_libdir_flag_spec_CXX='-R$libdir'
18581 hardcode_shlibpath_var_CXX=no
18582 case $host_os in
18583 solaris2.[0-5] | solaris2.[0-5].*) ;;
18584 *)
18585 # The compiler driver will combine and reorder linker options,
18586 # but understands `-z linker_flag'.
18587 # Supported since Solaris 2.6 (maybe 2.5.1?)
18588 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18589 ;;
18590 esac
18591 link_all_deplibs_CXX=yes
18592
cristy0c60a692010-11-04 01:09:47 +000018593 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018594
18595 # Archives containing C++ object files must be created using
18596 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18597 # necessary to make sure instantiated templates are included
18598 # in the archive.
18599 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18600 ;;
18601 gcx*)
18602 # Green Hills C++ Compiler
18603 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18604
18605 # The C++ compiler must be used to create the archive.
18606 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18607 ;;
18608 *)
18609 # GNU C++ compiler with Solaris linker
18610 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18611 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18612 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018613 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000018615 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000018616
18617 # Commands to make compiler produce verbose output that lists
18618 # what "hidden" libraries, object files and flags are used when
18619 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018621 else
18622 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18623 # platform.
18624 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18625 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18626 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18627
18628 # Commands to make compiler produce verbose output that lists
18629 # what "hidden" libraries, object files and flags are used when
18630 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018631 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018632 fi
18633
18634 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18635 case $host_os in
18636 solaris2.[0-5] | solaris2.[0-5].*) ;;
18637 *)
18638 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18639 ;;
18640 esac
18641 fi
18642 ;;
18643 esac
18644 ;;
18645
18646 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18647 no_undefined_flag_CXX='${wl}-z,text'
18648 archive_cmds_need_lc_CXX=no
18649 hardcode_shlibpath_var_CXX=no
18650 runpath_var='LD_RUN_PATH'
18651
18652 case $cc_basename in
18653 CC*)
18654 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18655 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 ;;
18657 *)
18658 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18659 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 ;;
18661 esac
18662 ;;
18663
18664 sysv5* | sco3.2v5* | sco5v6*)
18665 # Note: We can NOT use -z defs as we might desire, because we do not
18666 # link with -lc, and that would cause any symbols used from libc to
18667 # always be unresolved, which means just about no library would
18668 # ever link correctly. If we're not using GNU ld we use -z text
18669 # though, which does catch some bad symbols but isn't as heavy-handed
18670 # as -z defs.
18671 no_undefined_flag_CXX='${wl}-z,text'
18672 allow_undefined_flag_CXX='${wl}-z,nodefs'
18673 archive_cmds_need_lc_CXX=no
18674 hardcode_shlibpath_var_CXX=no
18675 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18676 hardcode_libdir_separator_CXX=':'
18677 link_all_deplibs_CXX=yes
18678 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18679 runpath_var='LD_RUN_PATH'
18680
18681 case $cc_basename in
18682 CC*)
18683 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18684 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000018685 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18686 '"$old_archive_cmds_CXX"
18687 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18688 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018689 ;;
18690 *)
18691 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18693 ;;
18694 esac
18695 ;;
18696
18697 tandem*)
18698 case $cc_basename in
18699 NCC*)
18700 # NonStop-UX NCC 3.20
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 *)
18705 # FIXME: insert proper C++ library support
18706 ld_shlibs_CXX=no
18707 ;;
18708 esac
18709 ;;
18710
18711 vxworks*)
18712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18714 ;;
18715
18716 *)
18717 # FIXME: insert proper C++ library support
18718 ld_shlibs_CXX=no
18719 ;;
18720 esac
18721
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18723$as_echo "$ld_shlibs_CXX" >&6; }
18724 test "$ld_shlibs_CXX" = no && can_build_shared=no
18725
18726 GCC_CXX="$GXX"
18727 LD_CXX="$LD"
18728
18729 ## CAVEAT EMPTOR:
18730 ## There is no encapsulation within the following macros, do not change
18731 ## the running order or otherwise move them around unless you know exactly
18732 ## what you are doing...
18733 # Dependencies to place before and after the object being linked:
18734predep_objects_CXX=
18735postdep_objects_CXX=
18736predeps_CXX=
18737postdeps_CXX=
18738compiler_lib_search_path_CXX=
18739
18740cat > conftest.$ac_ext <<_LT_EOF
18741class Foo
18742{
18743public:
18744 Foo (void) { a = 0; }
18745private:
18746 int a;
18747};
18748_LT_EOF
18749
cristyda16f162011-02-19 23:52:17 +000018750
18751_lt_libdeps_save_CFLAGS=$CFLAGS
18752case "$CC $CFLAGS " in #(
18753*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18754*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018755*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018756esac
18757
cristy73bd4a52010-10-05 11:24:23 +000018758if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18759 (eval $ac_compile) 2>&5
18760 ac_status=$?
18761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762 test $ac_status = 0; }; then
18763 # Parse the compiler output and extract the necessary
18764 # objects, libraries and library flags.
18765
18766 # Sentinel used to keep track of whether or not we are before
18767 # the conftest object file.
18768 pre_test_object_deps_done=no
18769
18770 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018771 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018772
18773 -L* | -R* | -l*)
18774 # Some compilers place space between "-{L,R}" and the path.
18775 # Remove the space.
18776 if test $p = "-L" ||
18777 test $p = "-R"; then
18778 prev=$p
18779 continue
cristy73bd4a52010-10-05 11:24:23 +000018780 fi
18781
cristyda16f162011-02-19 23:52:17 +000018782 # Expand the sysroot to ease extracting the directories later.
18783 if test -z "$prev"; then
18784 case $p in
18785 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18786 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18787 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18788 esac
18789 fi
18790 case $p in
18791 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18792 esac
cristy73bd4a52010-10-05 11:24:23 +000018793 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018794 case ${prev} in
18795 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018796 # Internal compiler library paths should come after those
18797 # provided the user. The postdeps already come after the
18798 # user supplied libs so there is no need to process them.
18799 if test -z "$compiler_lib_search_path_CXX"; then
18800 compiler_lib_search_path_CXX="${prev}${p}"
18801 else
18802 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18803 fi
18804 ;;
18805 # The "-l" case would never come before the object being
18806 # linked, so don't bother handling this case.
18807 esac
18808 else
18809 if test -z "$postdeps_CXX"; then
18810 postdeps_CXX="${prev}${p}"
18811 else
18812 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18813 fi
18814 fi
cristyda16f162011-02-19 23:52:17 +000018815 prev=
cristy73bd4a52010-10-05 11:24:23 +000018816 ;;
18817
cristyda16f162011-02-19 23:52:17 +000018818 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018819 *.$objext)
18820 # This assumes that the test object file only shows up
18821 # once in the compiler output.
18822 if test "$p" = "conftest.$objext"; then
18823 pre_test_object_deps_done=yes
18824 continue
18825 fi
18826
18827 if test "$pre_test_object_deps_done" = no; then
18828 if test -z "$predep_objects_CXX"; then
18829 predep_objects_CXX="$p"
18830 else
18831 predep_objects_CXX="$predep_objects_CXX $p"
18832 fi
18833 else
18834 if test -z "$postdep_objects_CXX"; then
18835 postdep_objects_CXX="$p"
18836 else
18837 postdep_objects_CXX="$postdep_objects_CXX $p"
18838 fi
18839 fi
18840 ;;
18841
18842 *) ;; # Ignore the rest.
18843
18844 esac
18845 done
18846
18847 # Clean up.
18848 rm -f a.out a.exe
18849else
18850 echo "libtool.m4: error: problem compiling CXX test program"
18851fi
18852
18853$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018854CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018855
18856# PORTME: override above test on systems where it is broken
18857case $host_os in
18858interix[3-9]*)
18859 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18860 # hack all around it, let's just trust "g++" to DTRT.
18861 predep_objects_CXX=
18862 postdep_objects_CXX=
18863 postdeps_CXX=
18864 ;;
18865
18866linux*)
18867 case `$CC -V 2>&1 | sed 5q` in
18868 *Sun\ C*)
18869 # Sun C++ 5.9
18870
18871 # The more standards-conforming stlport4 library is
18872 # incompatible with the Cstd library. Avoid specifying
18873 # it if it's in CXXFLAGS. Ignore libCrun as
18874 # -library=stlport4 depends on it.
18875 case " $CXX $CXXFLAGS " in
18876 *" -library=stlport4 "*)
18877 solaris_use_stlport4=yes
18878 ;;
18879 esac
18880
18881 if test "$solaris_use_stlport4" != yes; then
18882 postdeps_CXX='-library=Cstd -library=Crun'
18883 fi
18884 ;;
18885 esac
18886 ;;
18887
18888solaris*)
18889 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018890 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018891 # The more standards-conforming stlport4 library is
18892 # incompatible with the Cstd library. Avoid specifying
18893 # it if it's in CXXFLAGS. Ignore libCrun as
18894 # -library=stlport4 depends on it.
18895 case " $CXX $CXXFLAGS " in
18896 *" -library=stlport4 "*)
18897 solaris_use_stlport4=yes
18898 ;;
18899 esac
18900
18901 # Adding this requires a known-good setup of shared libraries for
18902 # Sun compiler versions before 5.6, else PIC objects from an old
18903 # archive will be linked into the output, leading to subtle bugs.
18904 if test "$solaris_use_stlport4" != yes; then
18905 postdeps_CXX='-library=Cstd -library=Crun'
18906 fi
18907 ;;
18908 esac
18909 ;;
18910esac
18911
18912
18913case " $postdeps_CXX " in
18914*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18915esac
18916 compiler_lib_search_dirs_CXX=
18917if test -n "${compiler_lib_search_path_CXX}"; then
18918 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18919fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951 lt_prog_compiler_wl_CXX=
18952lt_prog_compiler_pic_CXX=
18953lt_prog_compiler_static_CXX=
18954
cristy73bd4a52010-10-05 11:24:23 +000018955
18956 # C++ specific cases for pic, static, wl, etc.
18957 if test "$GXX" = yes; then
18958 lt_prog_compiler_wl_CXX='-Wl,'
18959 lt_prog_compiler_static_CXX='-static'
18960
18961 case $host_os in
18962 aix*)
18963 # All AIX code is PIC.
18964 if test "$host_cpu" = ia64; then
18965 # AIX 5 now supports IA64 processor
18966 lt_prog_compiler_static_CXX='-Bstatic'
18967 fi
18968 ;;
18969
18970 amigaos*)
18971 case $host_cpu in
18972 powerpc)
18973 # see comment about AmigaOS4 .so support
18974 lt_prog_compiler_pic_CXX='-fPIC'
18975 ;;
18976 m68k)
18977 # FIXME: we need at least 68020 code to build shared libraries, but
18978 # adding the `-m68020' flag to GCC prevents building anything better,
18979 # like `-m68040'.
18980 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18981 ;;
18982 esac
18983 ;;
18984
18985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18986 # PIC is the default for these OSes.
18987 ;;
18988 mingw* | cygwin* | os2* | pw32* | cegcc*)
18989 # This hack is so that the source file can tell whether it is being
18990 # built for inclusion in a dll (and should export symbols for example).
18991 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18992 # (--disable-auto-import) libraries
18993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18994 ;;
18995 darwin* | rhapsody*)
18996 # PIC is the default on this platform
18997 # Common symbols not allowed in MH_DYLIB files
18998 lt_prog_compiler_pic_CXX='-fno-common'
18999 ;;
19000 *djgpp*)
19001 # DJGPP does not support shared libraries at all
19002 lt_prog_compiler_pic_CXX=
19003 ;;
cristy0c60a692010-11-04 01:09:47 +000019004 haiku*)
19005 # PIC is the default for Haiku.
19006 # The "-static" flag exists, but is broken.
19007 lt_prog_compiler_static_CXX=
19008 ;;
cristy73bd4a52010-10-05 11:24:23 +000019009 interix[3-9]*)
19010 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19011 # Instead, we relocate shared libraries at runtime.
19012 ;;
19013 sysv4*MP*)
19014 if test -d /usr/nec; then
19015 lt_prog_compiler_pic_CXX=-Kconform_pic
19016 fi
19017 ;;
19018 hpux*)
19019 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19020 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19021 # sets the default TLS model and affects inlining.
19022 case $host_cpu in
19023 hppa*64*)
19024 ;;
19025 *)
19026 lt_prog_compiler_pic_CXX='-fPIC'
19027 ;;
19028 esac
19029 ;;
19030 *qnx* | *nto*)
19031 # QNX uses GNU C++, but need to define -shared option too, otherwise
19032 # it will coredump.
19033 lt_prog_compiler_pic_CXX='-fPIC -shared'
19034 ;;
19035 *)
19036 lt_prog_compiler_pic_CXX='-fPIC'
19037 ;;
19038 esac
19039 else
19040 case $host_os in
19041 aix[4-9]*)
19042 # All AIX code is PIC.
19043 if test "$host_cpu" = ia64; then
19044 # AIX 5 now supports IA64 processor
19045 lt_prog_compiler_static_CXX='-Bstatic'
19046 else
19047 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19048 fi
19049 ;;
19050 chorus*)
19051 case $cc_basename in
19052 cxch68*)
19053 # Green Hills C++ Compiler
19054 # _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"
19055 ;;
19056 esac
19057 ;;
cristyda16f162011-02-19 23:52:17 +000019058 mingw* | cygwin* | os2* | pw32* | cegcc*)
19059 # This hack is so that the source file can tell whether it is being
19060 # built for inclusion in a dll (and should export symbols for example).
19061 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19062 ;;
cristy73bd4a52010-10-05 11:24:23 +000019063 dgux*)
19064 case $cc_basename in
19065 ec++*)
19066 lt_prog_compiler_pic_CXX='-KPIC'
19067 ;;
19068 ghcx*)
19069 # Green Hills C++ Compiler
19070 lt_prog_compiler_pic_CXX='-pic'
19071 ;;
19072 *)
19073 ;;
19074 esac
19075 ;;
19076 freebsd* | dragonfly*)
19077 # FreeBSD uses GNU C++
19078 ;;
19079 hpux9* | hpux10* | hpux11*)
19080 case $cc_basename in
19081 CC*)
19082 lt_prog_compiler_wl_CXX='-Wl,'
19083 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19084 if test "$host_cpu" != ia64; then
19085 lt_prog_compiler_pic_CXX='+Z'
19086 fi
19087 ;;
19088 aCC*)
19089 lt_prog_compiler_wl_CXX='-Wl,'
19090 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19091 case $host_cpu in
19092 hppa*64*|ia64*)
19093 # +Z the default
19094 ;;
19095 *)
19096 lt_prog_compiler_pic_CXX='+Z'
19097 ;;
19098 esac
19099 ;;
19100 *)
19101 ;;
19102 esac
19103 ;;
19104 interix*)
19105 # This is c89, which is MS Visual C++ (no shared libs)
19106 # Anyone wants to do a port?
19107 ;;
19108 irix5* | irix6* | nonstopux*)
19109 case $cc_basename in
19110 CC*)
19111 lt_prog_compiler_wl_CXX='-Wl,'
19112 lt_prog_compiler_static_CXX='-non_shared'
19113 # CC pic flag -KPIC is the default.
19114 ;;
19115 *)
19116 ;;
19117 esac
19118 ;;
cristy0c60a692010-11-04 01:09:47 +000019119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019120 case $cc_basename in
19121 KCC*)
19122 # KAI C++ Compiler
19123 lt_prog_compiler_wl_CXX='--backend -Wl,'
19124 lt_prog_compiler_pic_CXX='-fPIC'
19125 ;;
19126 ecpc* )
19127 # old Intel C++ for x86_64 which still supported -KPIC.
19128 lt_prog_compiler_wl_CXX='-Wl,'
19129 lt_prog_compiler_pic_CXX='-KPIC'
19130 lt_prog_compiler_static_CXX='-static'
19131 ;;
19132 icpc* )
19133 # Intel C++, used to be incompatible with GCC.
19134 # ICC 10 doesn't accept -KPIC any more.
19135 lt_prog_compiler_wl_CXX='-Wl,'
19136 lt_prog_compiler_pic_CXX='-fPIC'
19137 lt_prog_compiler_static_CXX='-static'
19138 ;;
19139 pgCC* | pgcpp*)
19140 # Portland Group C++ compiler
19141 lt_prog_compiler_wl_CXX='-Wl,'
19142 lt_prog_compiler_pic_CXX='-fpic'
19143 lt_prog_compiler_static_CXX='-Bstatic'
19144 ;;
19145 cxx*)
19146 # Compaq C++
19147 # Make sure the PIC flag is empty. It appears that all Alpha
19148 # Linux and Compaq Tru64 Unix objects are PIC.
19149 lt_prog_compiler_pic_CXX=
19150 lt_prog_compiler_static_CXX='-non_shared'
19151 ;;
cristy0c60a692010-11-04 01:09:47 +000019152 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19153 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019154 lt_prog_compiler_wl_CXX='-Wl,'
19155 lt_prog_compiler_pic_CXX='-qpic'
19156 lt_prog_compiler_static_CXX='-qstaticlink'
19157 ;;
19158 *)
19159 case `$CC -V 2>&1 | sed 5q` in
19160 *Sun\ C*)
19161 # Sun C++ 5.9
19162 lt_prog_compiler_pic_CXX='-KPIC'
19163 lt_prog_compiler_static_CXX='-Bstatic'
19164 lt_prog_compiler_wl_CXX='-Qoption ld '
19165 ;;
19166 esac
19167 ;;
19168 esac
19169 ;;
19170 lynxos*)
19171 ;;
19172 m88k*)
19173 ;;
19174 mvs*)
19175 case $cc_basename in
19176 cxx*)
19177 lt_prog_compiler_pic_CXX='-W c,exportall'
19178 ;;
19179 *)
19180 ;;
19181 esac
19182 ;;
19183 netbsd*)
19184 ;;
19185 *qnx* | *nto*)
19186 # QNX uses GNU C++, but need to define -shared option too, otherwise
19187 # it will coredump.
19188 lt_prog_compiler_pic_CXX='-fPIC -shared'
19189 ;;
19190 osf3* | osf4* | osf5*)
19191 case $cc_basename in
19192 KCC*)
19193 lt_prog_compiler_wl_CXX='--backend -Wl,'
19194 ;;
19195 RCC*)
19196 # Rational C++ 2.4.1
19197 lt_prog_compiler_pic_CXX='-pic'
19198 ;;
19199 cxx*)
19200 # Digital/Compaq C++
19201 lt_prog_compiler_wl_CXX='-Wl,'
19202 # Make sure the PIC flag is empty. It appears that all Alpha
19203 # Linux and Compaq Tru64 Unix objects are PIC.
19204 lt_prog_compiler_pic_CXX=
19205 lt_prog_compiler_static_CXX='-non_shared'
19206 ;;
19207 *)
19208 ;;
19209 esac
19210 ;;
19211 psos*)
19212 ;;
19213 solaris*)
19214 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019215 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019216 # Sun C++ 4.2, 5.x and Centerline C++
19217 lt_prog_compiler_pic_CXX='-KPIC'
19218 lt_prog_compiler_static_CXX='-Bstatic'
19219 lt_prog_compiler_wl_CXX='-Qoption ld '
19220 ;;
19221 gcx*)
19222 # Green Hills C++ Compiler
19223 lt_prog_compiler_pic_CXX='-PIC'
19224 ;;
19225 *)
19226 ;;
19227 esac
19228 ;;
19229 sunos4*)
19230 case $cc_basename in
19231 CC*)
19232 # Sun C++ 4.x
19233 lt_prog_compiler_pic_CXX='-pic'
19234 lt_prog_compiler_static_CXX='-Bstatic'
19235 ;;
19236 lcc*)
19237 # Lucid
19238 lt_prog_compiler_pic_CXX='-pic'
19239 ;;
19240 *)
19241 ;;
19242 esac
19243 ;;
19244 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19245 case $cc_basename in
19246 CC*)
19247 lt_prog_compiler_wl_CXX='-Wl,'
19248 lt_prog_compiler_pic_CXX='-KPIC'
19249 lt_prog_compiler_static_CXX='-Bstatic'
19250 ;;
19251 esac
19252 ;;
19253 tandem*)
19254 case $cc_basename in
19255 NCC*)
19256 # NonStop-UX NCC 3.20
19257 lt_prog_compiler_pic_CXX='-KPIC'
19258 ;;
19259 *)
19260 ;;
19261 esac
19262 ;;
19263 vxworks*)
19264 ;;
19265 *)
19266 lt_prog_compiler_can_build_shared_CXX=no
19267 ;;
19268 esac
19269 fi
19270
19271case $host_os in
19272 # For platforms which do not support PIC, -DPIC is meaningless:
19273 *djgpp*)
19274 lt_prog_compiler_pic_CXX=
19275 ;;
19276 *)
19277 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19278 ;;
19279esac
cristy73bd4a52010-10-05 11:24:23 +000019280
cristyda16f162011-02-19 23:52:17 +000019281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19282$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19283if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19284 $as_echo_n "(cached) " >&6
19285else
19286 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19287fi
19288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19289$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19290lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019291
19292#
19293# Check to make sure the PIC flag actually works.
19294#
19295if test -n "$lt_prog_compiler_pic_CXX"; then
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19297$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019298if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019299 $as_echo_n "(cached) " >&6
19300else
19301 lt_cv_prog_compiler_pic_works_CXX=no
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19304 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19305 # Insert the option either (1) after the last *FLAGS variable, or
19306 # (2) before a word containing "conftest.", or (3) at the end.
19307 # Note that $ac_compile itself does not contain backslashes and begins
19308 # with a dollar sign (not a hyphen), so the echo should work correctly.
19309 # The option is referenced via a variable to avoid confusing sed.
19310 lt_compile=`echo "$ac_compile" | $SED \
19311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19313 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019315 (eval "$lt_compile" 2>conftest.err)
19316 ac_status=$?
19317 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019319 if (exit $ac_status) && test -s "$ac_outfile"; then
19320 # The compiler can only warn and ignore the option if not recognized
19321 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19325 lt_cv_prog_compiler_pic_works_CXX=yes
19326 fi
19327 fi
19328 $RM conftest*
19329
19330fi
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19332$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19333
19334if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19335 case $lt_prog_compiler_pic_CXX in
19336 "" | " "*) ;;
19337 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19338 esac
19339else
19340 lt_prog_compiler_pic_CXX=
19341 lt_prog_compiler_can_build_shared_CXX=no
19342fi
19343
19344fi
19345
19346
19347
cristyda16f162011-02-19 23:52:17 +000019348
19349
cristy73bd4a52010-10-05 11:24:23 +000019350#
19351# Check to make sure the static flag actually works.
19352#
19353wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19355$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019356if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019357 $as_echo_n "(cached) " >&6
19358else
19359 lt_cv_prog_compiler_static_works_CXX=no
19360 save_LDFLAGS="$LDFLAGS"
19361 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19362 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19363 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19364 # The linker can only warn and ignore the option if not recognized
19365 # So say no if there are warnings
19366 if test -s conftest.err; then
19367 # Append any errors to the config.log.
19368 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019369 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19371 if diff conftest.exp conftest.er2 >/dev/null; then
19372 lt_cv_prog_compiler_static_works_CXX=yes
19373 fi
19374 else
19375 lt_cv_prog_compiler_static_works_CXX=yes
19376 fi
19377 fi
19378 $RM -r conftest*
19379 LDFLAGS="$save_LDFLAGS"
19380
19381fi
19382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19383$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19384
19385if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19386 :
19387else
19388 lt_prog_compiler_static_CXX=
19389fi
19390
19391
19392
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019396if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019397 $as_echo_n "(cached) " >&6
19398else
19399 lt_cv_prog_compiler_c_o_CXX=no
19400 $RM -r conftest 2>/dev/null
19401 mkdir conftest
19402 cd conftest
19403 mkdir out
19404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19405
19406 lt_compiler_flag="-o out/conftest2.$ac_objext"
19407 # Insert the option either (1) after the last *FLAGS variable, or
19408 # (2) before a word containing "conftest.", or (3) at the end.
19409 # Note that $ac_compile itself does not contain backslashes and begins
19410 # with a dollar sign (not a hyphen), so the echo should work correctly.
19411 lt_compile=`echo "$ac_compile" | $SED \
19412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19414 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019416 (eval "$lt_compile" 2>out/conftest.err)
19417 ac_status=$?
19418 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19421 then
19422 # The compiler can only warn and ignore the option if not recognized
19423 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19427 lt_cv_prog_compiler_c_o_CXX=yes
19428 fi
19429 fi
19430 chmod u+w . 2>&5
19431 $RM conftest*
19432 # SGI C++ compiler will create directory out/ii_files/ for
19433 # template instantiation
19434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19435 $RM out/* && rmdir out
19436 cd ..
19437 $RM -r conftest
19438 $RM conftest*
19439
19440fi
19441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19442$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19443
19444
19445
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19447$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019448if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019449 $as_echo_n "(cached) " >&6
19450else
19451 lt_cv_prog_compiler_c_o_CXX=no
19452 $RM -r conftest 2>/dev/null
19453 mkdir conftest
19454 cd conftest
19455 mkdir out
19456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19457
19458 lt_compiler_flag="-o out/conftest2.$ac_objext"
19459 # Insert the option either (1) after the last *FLAGS variable, or
19460 # (2) before a word containing "conftest.", or (3) at the end.
19461 # Note that $ac_compile itself does not contain backslashes and begins
19462 # with a dollar sign (not a hyphen), so the echo should work correctly.
19463 lt_compile=`echo "$ac_compile" | $SED \
19464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19466 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019468 (eval "$lt_compile" 2>out/conftest.err)
19469 ac_status=$?
19470 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19473 then
19474 # The compiler can only warn and ignore the option if not recognized
19475 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19479 lt_cv_prog_compiler_c_o_CXX=yes
19480 fi
19481 fi
19482 chmod u+w . 2>&5
19483 $RM conftest*
19484 # SGI C++ compiler will create directory out/ii_files/ for
19485 # template instantiation
19486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19487 $RM out/* && rmdir out
19488 cd ..
19489 $RM -r conftest
19490 $RM conftest*
19491
19492fi
19493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19494$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19495
19496
19497
19498
19499hard_links="nottested"
19500if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19501 # do not overwrite the value of need_locks provided by the user
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19503$as_echo_n "checking if we can lock with hard links... " >&6; }
19504 hard_links=yes
19505 $RM conftest*
19506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19507 touch conftest.a
19508 ln conftest.a conftest.b 2>&5 || hard_links=no
19509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19511$as_echo "$hard_links" >&6; }
19512 if test "$hard_links" = no; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19514$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19515 need_locks=warn
19516 fi
19517else
19518 need_locks=no
19519fi
19520
19521
19522
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19524$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19525
19526 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019527 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019528 case $host_os in
19529 aix[4-9]*)
19530 # If we're using GNU nm, then we don't want the "-C" option.
19531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019532 # Also, AIX nm treats weak defined symbols like other global defined
19533 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019534 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019535 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'
cristy73bd4a52010-10-05 11:24:23 +000019536 else
19537 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'
19538 fi
19539 ;;
19540 pw32*)
19541 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019542 ;;
cristy73bd4a52010-10-05 11:24:23 +000019543 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019544 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019545 cl*)
19546 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19547 ;;
cristyda16f162011-02-19 23:52:17 +000019548 *)
19549 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'
19550 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19551 ;;
19552 esac
19553 ;;
cristy73bd4a52010-10-05 11:24:23 +000019554 *)
19555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019556 ;;
cristy73bd4a52010-10-05 11:24:23 +000019557 esac
cristy73bd4a52010-10-05 11:24:23 +000019558
19559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19560$as_echo "$ld_shlibs_CXX" >&6; }
19561test "$ld_shlibs_CXX" = no && can_build_shared=no
19562
19563with_gnu_ld_CXX=$with_gnu_ld
19564
19565
19566
19567
19568
19569
19570#
19571# Do we need to explicitly link libc?
19572#
19573case "x$archive_cmds_need_lc_CXX" in
19574x|xyes)
19575 # Assume -lc should be added
19576 archive_cmds_need_lc_CXX=yes
19577
19578 if test "$enable_shared" = yes && test "$GCC" = yes; then
19579 case $archive_cmds_CXX in
19580 *'~'*)
19581 # FIXME: we may have to deal with multi-command sequences.
19582 ;;
19583 '$CC '*)
19584 # Test whether the compiler implicitly links with -lc since on some
19585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19586 # to ld, don't add -lc before -lgcc.
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19588$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019589if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019590 $as_echo_n "(cached) " >&6
19591else
19592 $RM conftest*
19593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019594
cristy0c60a692010-11-04 01:09:47 +000019595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019596 (eval $ac_compile) 2>&5
19597 ac_status=$?
19598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19599 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019600 soname=conftest
19601 lib=conftest
19602 libobjs=conftest.$ac_objext
19603 deplibs=
19604 wl=$lt_prog_compiler_wl_CXX
19605 pic_flag=$lt_prog_compiler_pic_CXX
19606 compiler_flags=-v
19607 linker_flags=-v
19608 verstring=
19609 output_objdir=.
19610 libname=conftest
19611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19612 allow_undefined_flag_CXX=
19613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019614 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19615 ac_status=$?
19616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19617 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019618 then
19619 lt_cv_archive_cmds_need_lc_CXX=no
19620 else
19621 lt_cv_archive_cmds_need_lc_CXX=yes
19622 fi
19623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19624 else
19625 cat conftest.err 1>&5
19626 fi
19627 $RM conftest*
19628
19629fi
19630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19631$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19632 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019633 ;;
19634 esac
19635 fi
19636 ;;
19637esac
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
cristy73bd4a52010-10-05 11:24:23 +000019700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19701$as_echo_n "checking dynamic linker characteristics... " >&6; }
19702
19703library_names_spec=
19704libname_spec='lib$name'
19705soname_spec=
19706shrext_cmds=".so"
19707postinstall_cmds=
19708postuninstall_cmds=
19709finish_cmds=
19710finish_eval=
19711shlibpath_var=
19712shlibpath_overrides_runpath=unknown
19713version_type=none
19714dynamic_linker="$host_os ld.so"
19715sys_lib_dlsearch_path_spec="/lib /usr/lib"
19716need_lib_prefix=unknown
19717hardcode_into_libs=no
19718
19719# when you set need_version to no, make sure it does not cause -set_version
19720# flags to be left without arguments
19721need_version=unknown
19722
19723case $host_os in
19724aix3*)
cristy99bd5232011-12-07 14:38:20 +000019725 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19727 shlibpath_var=LIBPATH
19728
19729 # AIX 3 has no versioning support, so we append a major version to the name.
19730 soname_spec='${libname}${release}${shared_ext}$major'
19731 ;;
19732
19733aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019734 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019735 need_lib_prefix=no
19736 need_version=no
19737 hardcode_into_libs=yes
19738 if test "$host_cpu" = ia64; then
19739 # AIX 5 supports IA64
19740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19741 shlibpath_var=LD_LIBRARY_PATH
19742 else
19743 # With GCC up to 2.95.x, collect2 would create an import file
19744 # for dependence libraries. The import file would start with
19745 # the line `#! .'. This would cause the generated library to
19746 # depend on `.', always an invalid library. This was fixed in
19747 # development snapshots of GCC prior to 3.0.
19748 case $host_os in
19749 aix4 | aix4.[01] | aix4.[01].*)
19750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19751 echo ' yes '
19752 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19753 :
19754 else
19755 can_build_shared=no
19756 fi
19757 ;;
19758 esac
19759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19760 # soname into executable. Probably we can add versioning support to
19761 # collect2, so additional links can be useful in future.
19762 if test "$aix_use_runtimelinking" = yes; then
19763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19764 # instead of lib<name>.a to let people know that these are not
19765 # typical AIX shared libraries.
19766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19767 else
19768 # We preserve .a as extension for shared libraries through AIX4.2
19769 # and later when we are not doing run time linking.
19770 library_names_spec='${libname}${release}.a $libname.a'
19771 soname_spec='${libname}${release}${shared_ext}$major'
19772 fi
19773 shlibpath_var=LIBPATH
19774 fi
19775 ;;
19776
19777amigaos*)
19778 case $host_cpu in
19779 powerpc)
19780 # Since July 2007 AmigaOS4 officially supports .so libraries.
19781 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 ;;
19784 m68k)
19785 library_names_spec='$libname.ixlibrary $libname.a'
19786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019787 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'
cristy73bd4a52010-10-05 11:24:23 +000019788 ;;
19789 esac
19790 ;;
19791
19792beos*)
19793 library_names_spec='${libname}${shared_ext}'
19794 dynamic_linker="$host_os ld.so"
19795 shlibpath_var=LIBRARY_PATH
19796 ;;
19797
19798bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019799 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019800 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19804 shlibpath_var=LD_LIBRARY_PATH
19805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19807 # the default ld.so.conf also contains /usr/contrib/lib and
19808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19809 # libtool to hard-code these into programs
19810 ;;
19811
19812cygwin* | mingw* | pw32* | cegcc*)
19813 version_type=windows
19814 shrext_cmds=".dll"
19815 need_version=no
19816 need_lib_prefix=no
19817
cristyda16f162011-02-19 23:52:17 +000019818 case $GCC,$cc_basename in
19819 yes,*)
19820 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019821 library_names_spec='$libname.dll.a'
19822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19823 postinstall_cmds='base_file=`basename \${file}`~
19824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19825 dldir=$destdir/`dirname \$dlpath`~
19826 test -d \$dldir || mkdir -p \$dldir~
19827 $install_prog $dir/$dlname \$dldir/$dlname~
19828 chmod a+x \$dldir/$dlname~
19829 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19830 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19831 fi'
19832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19833 dlpath=$dir/\$dldll~
19834 $RM \$dlpath'
19835 shlibpath_overrides_runpath=yes
19836
19837 case $host_os in
19838 cygwin*)
19839 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019841
cristy73bd4a52010-10-05 11:24:23 +000019842 ;;
19843 mingw* | cegcc*)
19844 # MinGW DLLs use traditional 'lib' prefix
19845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019846 ;;
19847 pw32*)
19848 # pw32 DLLs use 'pw' prefix rather than 'lib'
19849 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19850 ;;
19851 esac
cristyda16f162011-02-19 23:52:17 +000019852 dynamic_linker='Win32 ld.exe'
19853 ;;
19854
19855 *,cl*)
19856 # Native MSVC
19857 libname_spec='$name'
19858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19859 library_names_spec='${libname}.dll.lib'
19860
19861 case $build_os in
19862 mingw*)
19863 sys_lib_search_path_spec=
19864 lt_save_ifs=$IFS
19865 IFS=';'
19866 for lt_path in $LIB
19867 do
19868 IFS=$lt_save_ifs
19869 # Let DOS variable expansion print the short 8.3 style file name.
19870 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19871 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19872 done
19873 IFS=$lt_save_ifs
19874 # Convert to MSYS style.
19875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19876 ;;
19877 cygwin*)
19878 # Convert to unix form, then to dos form, then back to unix form
19879 # but this time dos style (no spaces!) so that the unix form looks
19880 # like /cygdrive/c/PROGRA~1:/cygdr...
19881 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19882 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19883 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19884 ;;
19885 *)
19886 sys_lib_search_path_spec="$LIB"
19887 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19888 # It is most probably a Windows format PATH.
19889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19890 else
19891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19892 fi
19893 # FIXME: find the short name or the path components, as spaces are
19894 # common. (e.g. "Program Files" -> "PROGRA~1")
19895 ;;
19896 esac
19897
19898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19899 postinstall_cmds='base_file=`basename \${file}`~
19900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19901 dldir=$destdir/`dirname \$dlpath`~
19902 test -d \$dldir || mkdir -p \$dldir~
19903 $install_prog $dir/$dlname \$dldir/$dlname'
19904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19905 dlpath=$dir/\$dldll~
19906 $RM \$dlpath'
19907 shlibpath_overrides_runpath=yes
19908 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019909 ;;
19910
19911 *)
cristyda16f162011-02-19 23:52:17 +000019912 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019914 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019915 ;;
19916 esac
cristy73bd4a52010-10-05 11:24:23 +000019917 # FIXME: first we should search . and the directory the executable is in
19918 shlibpath_var=PATH
19919 ;;
19920
19921darwin* | rhapsody*)
19922 dynamic_linker="$host_os dyld"
19923 version_type=darwin
19924 need_lib_prefix=no
19925 need_version=no
19926 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19927 soname_spec='${libname}${release}${major}$shared_ext'
19928 shlibpath_overrides_runpath=yes
19929 shlibpath_var=DYLD_LIBRARY_PATH
19930 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19931
19932 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19933 ;;
19934
19935dgux*)
cristy99bd5232011-12-07 14:38:20 +000019936 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019937 need_lib_prefix=no
19938 need_version=no
19939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19940 soname_spec='${libname}${release}${shared_ext}$major'
19941 shlibpath_var=LD_LIBRARY_PATH
19942 ;;
19943
cristy73bd4a52010-10-05 11:24:23 +000019944freebsd* | dragonfly*)
19945 # DragonFly does not have aout. When/if they implement a new
19946 # versioning mechanism, adjust this.
19947 if test -x /usr/bin/objformat; then
19948 objformat=`/usr/bin/objformat`
19949 else
19950 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019951 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019952 *) objformat=elf ;;
19953 esac
19954 fi
19955 version_type=freebsd-$objformat
19956 case $version_type in
19957 freebsd-elf*)
19958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19959 need_version=no
19960 need_lib_prefix=no
19961 ;;
19962 freebsd-*)
19963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19964 need_version=yes
19965 ;;
19966 esac
19967 shlibpath_var=LD_LIBRARY_PATH
19968 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019969 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019970 shlibpath_overrides_runpath=yes
19971 ;;
19972 freebsd3.[01]* | freebsdelf3.[01]*)
19973 shlibpath_overrides_runpath=yes
19974 hardcode_into_libs=yes
19975 ;;
19976 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19977 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19978 shlibpath_overrides_runpath=no
19979 hardcode_into_libs=yes
19980 ;;
19981 *) # from 4.6 on, and DragonFly
19982 shlibpath_overrides_runpath=yes
19983 hardcode_into_libs=yes
19984 ;;
19985 esac
19986 ;;
19987
19988gnu*)
cristy99bd5232011-12-07 14:38:20 +000019989 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019990 need_lib_prefix=no
19991 need_version=no
19992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19993 soname_spec='${libname}${release}${shared_ext}$major'
19994 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019995 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019996 hardcode_into_libs=yes
19997 ;;
19998
cristy0c60a692010-11-04 01:09:47 +000019999haiku*)
cristy99bd5232011-12-07 14:38:20 +000020000 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020001 need_lib_prefix=no
20002 need_version=no
20003 dynamic_linker="$host_os runtime_loader"
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 shlibpath_var=LIBRARY_PATH
20007 shlibpath_overrides_runpath=yes
20008 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20009 hardcode_into_libs=yes
20010 ;;
20011
cristy73bd4a52010-10-05 11:24:23 +000020012hpux9* | hpux10* | hpux11*)
20013 # Give a soname corresponding to the major version so that dld.sl refuses to
20014 # link against other versions.
20015 version_type=sunos
20016 need_lib_prefix=no
20017 need_version=no
20018 case $host_cpu in
20019 ia64*)
20020 shrext_cmds='.so'
20021 hardcode_into_libs=yes
20022 dynamic_linker="$host_os dld.so"
20023 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026 soname_spec='${libname}${release}${shared_ext}$major'
20027 if test "X$HPUX_IA64_MODE" = X32; then
20028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20029 else
20030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20031 fi
20032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20033 ;;
20034 hppa*64*)
20035 shrext_cmds='.sl'
20036 hardcode_into_libs=yes
20037 dynamic_linker="$host_os dld.sl"
20038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20041 soname_spec='${libname}${release}${shared_ext}$major'
20042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20044 ;;
20045 *)
20046 shrext_cmds='.sl'
20047 dynamic_linker="$host_os dld.sl"
20048 shlibpath_var=SHLIB_PATH
20049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20051 soname_spec='${libname}${release}${shared_ext}$major'
20052 ;;
20053 esac
cristy0c60a692010-11-04 01:09:47 +000020054 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020055 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020056 # or fails outright, so override atomically:
20057 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020058 ;;
20059
20060interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020061 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020062 need_lib_prefix=no
20063 need_version=no
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20065 soname_spec='${libname}${release}${shared_ext}$major'
20066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20067 shlibpath_var=LD_LIBRARY_PATH
20068 shlibpath_overrides_runpath=no
20069 hardcode_into_libs=yes
20070 ;;
20071
20072irix5* | irix6* | nonstopux*)
20073 case $host_os in
20074 nonstopux*) version_type=nonstopux ;;
20075 *)
20076 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020077 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020078 else
20079 version_type=irix
20080 fi ;;
20081 esac
20082 need_lib_prefix=no
20083 need_version=no
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20086 case $host_os in
20087 irix5* | nonstopux*)
20088 libsuff= shlibsuff=
20089 ;;
20090 *)
20091 case $LD in # libtool.m4 will add one of these switches to LD
20092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20093 libsuff= shlibsuff= libmagic=32-bit;;
20094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20095 libsuff=32 shlibsuff=N32 libmagic=N32;;
20096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20097 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20098 *) libsuff= shlibsuff= libmagic=never-match;;
20099 esac
20100 ;;
20101 esac
20102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20103 shlibpath_overrides_runpath=no
20104 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20105 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20106 hardcode_into_libs=yes
20107 ;;
20108
20109# No shared lib support for Linux oldld, aout, or coff.
20110linux*oldld* | linux*aout* | linux*coff*)
20111 dynamic_linker=no
20112 ;;
20113
cristy99bd5232011-12-07 14:38:20 +000020114# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020115linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020116 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020117 need_lib_prefix=no
20118 need_version=no
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020124
cristy73bd4a52010-10-05 11:24:23 +000020125 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020126 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020127 $as_echo_n "(cached) " >&6
20128else
20129 lt_cv_shlibpath_overrides_runpath=no
20130 save_LDFLAGS=$LDFLAGS
20131 save_libdir=$libdir
20132 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20133 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020135/* end confdefs.h. */
20136
20137int
20138main ()
20139{
20140
20141 ;
20142 return 0;
20143}
20144_ACEOF
20145if ac_fn_cxx_try_link "$LINENO"; then :
20146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020147 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020148fi
20149fi
20150rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020152 LDFLAGS=$save_LDFLAGS
20153 libdir=$save_libdir
20154
20155fi
20156
20157 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020158
20159 # This implies no fast_install, which is unacceptable.
20160 # Some rework will be needed to allow for fast_install
20161 # before this can be enabled.
20162 hardcode_into_libs=yes
20163
20164 # Add ABI-specific directories to the system library path.
20165 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20166
20167 # Append ld.so.conf contents to the search path
20168 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020169 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000020170 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020171
cristy73bd4a52010-10-05 11:24:23 +000020172 fi
20173
20174 # We used to test for /lib/ld.so.1 and disable shared libraries on
20175 # powerpc, because MkLinux only supported shared libraries with the
20176 # GNU dynamic linker. Since this was broken with cross compilers,
20177 # most powerpc-linux boxes support dynamic linking these days and
20178 # people can always --disable-shared, the test was removed, and we
20179 # assume the GNU/Linux dynamic linker is in use.
20180 dynamic_linker='GNU/Linux ld.so'
20181 ;;
20182
20183netbsd*)
20184 version_type=sunos
20185 need_lib_prefix=no
20186 need_version=no
20187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20190 dynamic_linker='NetBSD (a.out) ld.so'
20191 else
20192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 dynamic_linker='NetBSD ld.elf_so'
20195 fi
20196 shlibpath_var=LD_LIBRARY_PATH
20197 shlibpath_overrides_runpath=yes
20198 hardcode_into_libs=yes
20199 ;;
20200
20201newsos6)
cristy99bd5232011-12-07 14:38:20 +000020202 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 shlibpath_var=LD_LIBRARY_PATH
20205 shlibpath_overrides_runpath=yes
20206 ;;
20207
20208*nto* | *qnx*)
20209 version_type=qnx
20210 need_lib_prefix=no
20211 need_version=no
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20215 shlibpath_overrides_runpath=no
20216 hardcode_into_libs=yes
20217 dynamic_linker='ldqnx.so'
20218 ;;
20219
20220openbsd*)
20221 version_type=sunos
20222 sys_lib_dlsearch_path_spec="/usr/lib"
20223 need_lib_prefix=no
20224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20225 case $host_os in
20226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20227 *) need_version=no ;;
20228 esac
20229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20231 shlibpath_var=LD_LIBRARY_PATH
20232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20233 case $host_os in
20234 openbsd2.[89] | openbsd2.[89].*)
20235 shlibpath_overrides_runpath=no
20236 ;;
20237 *)
20238 shlibpath_overrides_runpath=yes
20239 ;;
20240 esac
20241 else
20242 shlibpath_overrides_runpath=yes
20243 fi
20244 ;;
20245
20246os2*)
20247 libname_spec='$name'
20248 shrext_cmds=".dll"
20249 need_lib_prefix=no
20250 library_names_spec='$libname${shared_ext} $libname.a'
20251 dynamic_linker='OS/2 ld.exe'
20252 shlibpath_var=LIBPATH
20253 ;;
20254
20255osf3* | osf4* | osf5*)
20256 version_type=osf
20257 need_lib_prefix=no
20258 need_version=no
20259 soname_spec='${libname}${release}${shared_ext}$major'
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 shlibpath_var=LD_LIBRARY_PATH
20262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20264 ;;
20265
20266rdos*)
20267 dynamic_linker=no
20268 ;;
20269
20270solaris*)
cristy99bd5232011-12-07 14:38:20 +000020271 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020272 need_lib_prefix=no
20273 need_version=no
20274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20275 soname_spec='${libname}${release}${shared_ext}$major'
20276 shlibpath_var=LD_LIBRARY_PATH
20277 shlibpath_overrides_runpath=yes
20278 hardcode_into_libs=yes
20279 # ldd complains unless libraries are executable
20280 postinstall_cmds='chmod +x $lib'
20281 ;;
20282
20283sunos4*)
20284 version_type=sunos
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 shlibpath_overrides_runpath=yes
20289 if test "$with_gnu_ld" = yes; then
20290 need_lib_prefix=no
20291 fi
20292 need_version=yes
20293 ;;
20294
20295sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020296 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20298 soname_spec='${libname}${release}${shared_ext}$major'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 case $host_vendor in
20301 sni)
20302 shlibpath_overrides_runpath=no
20303 need_lib_prefix=no
20304 runpath_var=LD_RUN_PATH
20305 ;;
20306 siemens)
20307 need_lib_prefix=no
20308 ;;
20309 motorola)
20310 need_lib_prefix=no
20311 need_version=no
20312 shlibpath_overrides_runpath=no
20313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20314 ;;
20315 esac
20316 ;;
20317
20318sysv4*MP*)
20319 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020320 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20322 soname_spec='$libname${shared_ext}.$major'
20323 shlibpath_var=LD_LIBRARY_PATH
20324 fi
20325 ;;
20326
20327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20328 version_type=freebsd-elf
20329 need_lib_prefix=no
20330 need_version=no
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20332 soname_spec='${libname}${release}${shared_ext}$major'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 hardcode_into_libs=yes
20336 if test "$with_gnu_ld" = yes; then
20337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20338 else
20339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20340 case $host_os in
20341 sco3.2v5*)
20342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20343 ;;
20344 esac
20345 fi
20346 sys_lib_dlsearch_path_spec='/usr/lib'
20347 ;;
20348
20349tpf*)
20350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020351 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020352 need_lib_prefix=no
20353 need_version=no
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath=no
20357 hardcode_into_libs=yes
20358 ;;
20359
20360uts4*)
cristy99bd5232011-12-07 14:38:20 +000020361 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20363 soname_spec='${libname}${release}${shared_ext}$major'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 ;;
20366
20367*)
20368 dynamic_linker=no
20369 ;;
20370esac
20371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20372$as_echo "$dynamic_linker" >&6; }
20373test "$dynamic_linker" = no && can_build_shared=no
20374
20375variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20376if test "$GCC" = yes; then
20377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20378fi
20379
20380if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20381 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20382fi
20383if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20384 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20385fi
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
cristy0c60a692010-11-04 01:09:47 +000020422
20423
cristy73bd4a52010-10-05 11:24:23 +000020424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20425$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20426hardcode_action_CXX=
20427if test -n "$hardcode_libdir_flag_spec_CXX" ||
20428 test -n "$runpath_var_CXX" ||
20429 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20430
20431 # We can hardcode non-existent directories.
20432 if test "$hardcode_direct_CXX" != no &&
20433 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20434 # have to relink, otherwise we might link with an installed library
20435 # when we should be linking with a yet-to-be-installed one
20436 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20437 test "$hardcode_minus_L_CXX" != no; then
20438 # Linking always hardcodes the temporary library directory.
20439 hardcode_action_CXX=relink
20440 else
20441 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20442 hardcode_action_CXX=immediate
20443 fi
20444else
20445 # We cannot hardcode anything, or else we can only hardcode existing
20446 # directories.
20447 hardcode_action_CXX=unsupported
20448fi
20449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20450$as_echo "$hardcode_action_CXX" >&6; }
20451
20452if test "$hardcode_action_CXX" = relink ||
20453 test "$inherit_rpath_CXX" = yes; then
20454 # Fast installation is not supported
20455 enable_fast_install=no
20456elif test "$shlibpath_overrides_runpath" = yes ||
20457 test "$enable_shared" = no; then
20458 # Fast installation is not necessary
20459 enable_fast_install=needless
20460fi
20461
20462
20463
20464
20465
20466
20467
20468 fi # test -n "$compiler"
20469
20470 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020471 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020472 LDCXX=$LD
20473 LD=$lt_save_LD
20474 GCC=$lt_save_GCC
20475 with_gnu_ld=$lt_save_with_gnu_ld
20476 lt_cv_path_LDCXX=$lt_cv_path_LD
20477 lt_cv_path_LD=$lt_save_path_LD
20478 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20479 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20480fi # test "$_lt_caught_CXX_error" != yes
20481
20482ac_ext=c
20483ac_cpp='$CPP $CPPFLAGS'
20484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
cristy99bd5232011-12-07 14:38:20 +000020500
20501
cristy73bd4a52010-10-05 11:24:23 +000020502 ac_config_commands="$ac_config_commands libtool"
20503
20504
20505
20506
20507# Only expand once:
20508
20509
20510
cristy3ed852e2009-09-05 21:47:34 +000020511
20512
20513# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020514
20515
20516
20517
20518
20519
20520
cristy73bd4a52010-10-05 11:24:23 +000020521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20522$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020523if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020524 $as_echo_n "(cached) " >&6
20525else
20526
20527module=yes
20528eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020529module=no
20530eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020531
20532fi
20533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20534$as_echo "$libltdl_cv_shlibext" >&6; }
20535if test -n "$libltdl_cv_shlibext"; then
20536
20537cat >>confdefs.h <<_ACEOF
20538#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20539_ACEOF
20540
20541fi
cristy99bd5232011-12-07 14:38:20 +000020542if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20543
20544cat >>confdefs.h <<_ACEOF
20545#define LT_SHARED_EXT "$libltdl_cv_shrext"
20546_ACEOF
20547
20548fi
cristy73bd4a52010-10-05 11:24:23 +000020549
20550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20551$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020552if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020553 $as_echo_n "(cached) " >&6
20554else
20555 lt_cv_module_path_var="$shlibpath_var"
20556fi
20557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20558$as_echo "$lt_cv_module_path_var" >&6; }
20559if test -n "$lt_cv_module_path_var"; then
20560
20561cat >>confdefs.h <<_ACEOF
20562#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20563_ACEOF
20564
20565fi
20566
20567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20568$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020569if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020570 $as_echo_n "(cached) " >&6
20571else
20572 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20573fi
20574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20575$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20576if test -n "$lt_cv_sys_dlsearch_path"; then
20577 sys_dlsearch_path=
20578 for dir in $lt_cv_sys_dlsearch_path; do
20579 if test -z "$sys_dlsearch_path"; then
20580 sys_dlsearch_path="$dir"
20581 else
20582 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20583 fi
20584 done
20585
20586cat >>confdefs.h <<_ACEOF
20587#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20588_ACEOF
20589
20590fi
20591
20592
20593LT_DLLOADERS=
20594
20595
20596ac_ext=c
20597ac_cpp='$CPP $CPPFLAGS'
20598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602
20603LIBADD_DLOPEN=
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20605$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020606if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020607 $as_echo_n "(cached) " >&6
20608else
20609 ac_func_search_save_LIBS=$LIBS
20610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611/* end confdefs.h. */
20612
20613/* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply. */
20616#ifdef __cplusplus
20617extern "C"
20618#endif
20619char dlopen ();
20620int
20621main ()
20622{
20623return dlopen ();
20624 ;
20625 return 0;
20626}
20627_ACEOF
20628for ac_lib in '' dl; do
20629 if test -z "$ac_lib"; then
20630 ac_res="none required"
20631 else
20632 ac_res=-l$ac_lib
20633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20634 fi
20635 if ac_fn_c_try_link "$LINENO"; then :
20636 ac_cv_search_dlopen=$ac_res
20637fi
20638rm -f core conftest.err conftest.$ac_objext \
20639 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020640 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020641 break
20642fi
20643done
cristyda16f162011-02-19 23:52:17 +000020644if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020645
20646else
20647 ac_cv_search_dlopen=no
20648fi
20649rm conftest.$ac_ext
20650LIBS=$ac_func_search_save_LIBS
20651fi
20652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20653$as_echo "$ac_cv_search_dlopen" >&6; }
20654ac_res=$ac_cv_search_dlopen
20655if test "$ac_res" != no; then :
20656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20657
20658$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20659
20660 if test "$ac_cv_search_dlopen" != "none required" ; then
20661 LIBADD_DLOPEN="-ldl"
20662 fi
20663 libltdl_cv_lib_dl_dlopen="yes"
20664 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20665else
20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667/* end confdefs.h. */
20668#if HAVE_DLFCN_H
20669# include <dlfcn.h>
20670#endif
20671
20672int
20673main ()
20674{
20675dlopen(0, 0);
20676 ;
20677 return 0;
20678}
20679_ACEOF
20680if ac_fn_c_try_link "$LINENO"; then :
20681
20682$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20683
20684 libltdl_cv_func_dlopen="yes"
20685 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20686else
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20688$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020689if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020690 $as_echo_n "(cached) " >&6
20691else
20692 ac_check_lib_save_LIBS=$LIBS
20693LIBS="-lsvld $LIBS"
20694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695/* end confdefs.h. */
20696
20697/* Override any GCC internal prototype to avoid an error.
20698 Use char because int might match the return type of a GCC
20699 builtin and then its argument prototype would still apply. */
20700#ifdef __cplusplus
20701extern "C"
20702#endif
20703char dlopen ();
20704int
20705main ()
20706{
20707return dlopen ();
20708 ;
20709 return 0;
20710}
20711_ACEOF
20712if ac_fn_c_try_link "$LINENO"; then :
20713 ac_cv_lib_svld_dlopen=yes
20714else
20715 ac_cv_lib_svld_dlopen=no
20716fi
20717rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20719LIBS=$ac_check_lib_save_LIBS
20720fi
20721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20722$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020723if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020724
20725$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20726
20727 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20728 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20729fi
20730
20731fi
20732rm -f core conftest.err conftest.$ac_objext \
20733 conftest$ac_exeext conftest.$ac_ext
20734fi
20735
20736if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20737then
20738 lt_save_LIBS="$LIBS"
20739 LIBS="$LIBS $LIBADD_DLOPEN"
20740 for ac_func in dlerror
20741do :
20742 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020743if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020744 cat >>confdefs.h <<_ACEOF
20745#define HAVE_DLERROR 1
20746_ACEOF
20747
20748fi
20749done
20750
20751 LIBS="$lt_save_LIBS"
20752fi
20753
20754
20755LIBADD_SHL_LOAD=
20756ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020757if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020758
20759$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20760
20761 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20762else
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20764$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020765if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020766 $as_echo_n "(cached) " >&6
20767else
20768 ac_check_lib_save_LIBS=$LIBS
20769LIBS="-ldld $LIBS"
20770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771/* end confdefs.h. */
20772
20773/* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20776#ifdef __cplusplus
20777extern "C"
20778#endif
20779char shl_load ();
20780int
20781main ()
20782{
20783return shl_load ();
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788if ac_fn_c_try_link "$LINENO"; then :
20789 ac_cv_lib_dld_shl_load=yes
20790else
20791 ac_cv_lib_dld_shl_load=no
20792fi
20793rm -f core conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20795LIBS=$ac_check_lib_save_LIBS
20796fi
20797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20798$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020799if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020800
20801$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20802
20803 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20804 LIBADD_SHL_LOAD="-ldld"
20805fi
20806
20807fi
20808
20809
20810
20811case $host_os in
20812darwin[1567].*)
20813# We only want this for pre-Mac OS X 10.4.
20814 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020815if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020816
20817$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20818
20819 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20820fi
20821
20822 ;;
20823beos*)
20824 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20825 ;;
20826cygwin* | mingw* | os2* | pw32*)
20827 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20828"
cristyda16f162011-02-19 23:52:17 +000020829if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020830 ac_have_decl=1
20831else
20832 ac_have_decl=0
20833fi
20834
20835cat >>confdefs.h <<_ACEOF
20836#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20837_ACEOF
20838
20839 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20840 ;;
20841esac
20842
20843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20844$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020845if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020846 $as_echo_n "(cached) " >&6
20847else
20848 ac_check_lib_save_LIBS=$LIBS
20849LIBS="-ldld $LIBS"
20850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20851/* end confdefs.h. */
20852
20853/* Override any GCC internal prototype to avoid an error.
20854 Use char because int might match the return type of a GCC
20855 builtin and then its argument prototype would still apply. */
20856#ifdef __cplusplus
20857extern "C"
20858#endif
20859char dld_link ();
20860int
20861main ()
20862{
20863return dld_link ();
20864 ;
20865 return 0;
20866}
20867_ACEOF
20868if ac_fn_c_try_link "$LINENO"; then :
20869 ac_cv_lib_dld_dld_link=yes
20870else
20871 ac_cv_lib_dld_dld_link=no
20872fi
20873rm -f core conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20875LIBS=$ac_check_lib_save_LIBS
20876fi
20877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20878$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020879if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020880
20881$as_echo "#define HAVE_DLD 1" >>confdefs.h
20882
20883 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20884fi
20885
20886
20887
20888
20889LT_DLPREOPEN=
20890if test -n "$LT_DLLOADERS"
20891then
20892 for lt_loader in $LT_DLLOADERS; do
20893 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20894 done
20895
20896$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20897
20898fi
20899
20900
20901LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20902
20903
20904ac_ext=c
20905ac_cpp='$CPP $CPPFLAGS'
20906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908ac_compiler_gnu=$ac_cv_c_compiler_gnu
20909
20910
20911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20912$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020913if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020914 $as_echo_n "(cached) " >&6
20915else
20916 lt_cv_sys_symbol_underscore=no
20917 cat > conftest.$ac_ext <<_LT_EOF
20918void nm_test_func(){}
20919int main(){nm_test_func;return 0;}
20920_LT_EOF
20921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20922 (eval $ac_compile) 2>&5
20923 ac_status=$?
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; }; then
20926 # Now try to grab the symbols.
20927 ac_nlist=conftest.nm
20928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20929 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20930 ac_status=$?
20931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20932 test $ac_status = 0; } && test -s "$ac_nlist"; then
20933 # See whether the symbols have a leading underscore.
20934 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20935 lt_cv_sys_symbol_underscore=yes
20936 else
20937 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20938 :
20939 else
20940 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20941 fi
20942 fi
20943 else
20944 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20945 fi
20946 else
20947 echo "configure: failed program was:" >&5
20948 cat conftest.c >&5
20949 fi
20950 rm -rf conftest*
20951
20952fi
20953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20954$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20955 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20956
20957
20958if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20959 if test x"$libltdl_cv_func_dlopen" = xyes ||
20960 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20962$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020963if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020964 $as_echo_n "(cached) " >&6
20965else
20966 libltdl_cv_need_uscore=unknown
20967 save_LIBS="$LIBS"
20968 LIBS="$LIBS $LIBADD_DLOPEN"
20969 if test "$cross_compiling" = yes; then :
20970 libltdl_cv_need_uscore=cross
20971else
20972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20973 lt_status=$lt_dlunknown
20974 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020975#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020976#include "confdefs.h"
20977
20978#if HAVE_DLFCN_H
20979#include <dlfcn.h>
20980#endif
20981
20982#include <stdio.h>
20983
20984#ifdef RTLD_GLOBAL
20985# define LT_DLGLOBAL RTLD_GLOBAL
20986#else
20987# ifdef DL_GLOBAL
20988# define LT_DLGLOBAL DL_GLOBAL
20989# else
20990# define LT_DLGLOBAL 0
20991# endif
20992#endif
20993
20994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20995 find out it does not work in some platform. */
20996#ifndef LT_DLLAZY_OR_NOW
20997# ifdef RTLD_LAZY
20998# define LT_DLLAZY_OR_NOW RTLD_LAZY
20999# else
21000# ifdef DL_LAZY
21001# define LT_DLLAZY_OR_NOW DL_LAZY
21002# else
21003# ifdef RTLD_NOW
21004# define LT_DLLAZY_OR_NOW RTLD_NOW
21005# else
21006# ifdef DL_NOW
21007# define LT_DLLAZY_OR_NOW DL_NOW
21008# else
21009# define LT_DLLAZY_OR_NOW 0
21010# endif
21011# endif
21012# endif
21013# endif
21014#endif
21015
cristy0c60a692010-11-04 01:09:47 +000021016/* When -fvisbility=hidden is used, assume the code has been annotated
21017 correspondingly for the symbols needed. */
21018#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021019int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021020#endif
21021
cristyda16f162011-02-19 23:52:17 +000021022int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021023int main ()
21024{
21025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21026 int status = $lt_dlunknown;
21027
21028 if (self)
21029 {
21030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021031 else
21032 {
21033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21034 else puts (dlerror ());
21035 }
cristy73bd4a52010-10-05 11:24:23 +000021036 /* dlclose (self); */
21037 }
21038 else
21039 puts (dlerror ());
21040
21041 return status;
21042}
21043_LT_EOF
21044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21045 (eval $ac_link) 2>&5
21046 ac_status=$?
21047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21049 (./conftest; exit; ) >&5 2>/dev/null
21050 lt_status=$?
21051 case x$lt_status in
21052 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21053 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21054 x$lt_dlunknown|x*) ;;
21055 esac
21056 else :
21057 # compilation failed
21058
21059 fi
21060fi
21061rm -fr conftest*
21062
21063 LIBS="$save_LIBS"
21064
21065fi
21066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21067$as_echo "$libltdl_cv_need_uscore" >&6; }
21068 fi
21069fi
21070
21071if test x"$libltdl_cv_need_uscore" = xyes; then
21072
21073$as_echo "#define NEED_USCORE 1" >>confdefs.h
21074
21075fi
21076
21077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21078$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021079if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021080 $as_echo_n "(cached) " >&6
21081else
21082 # PORTME does your system automatically load deplibs for dlopen?
21083 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21084 # For now, we just catch OSes we know something about -- in the
21085 # future, we'll try test this programmatically.
21086 lt_cv_sys_dlopen_deplibs=unknown
21087 case $host_os in
21088 aix3*|aix4.1.*|aix4.2.*)
21089 # Unknown whether this is true for these versions of AIX, but
21090 # we want this `case' here to explicitly catch those versions.
21091 lt_cv_sys_dlopen_deplibs=unknown
21092 ;;
21093 aix[4-9]*)
21094 lt_cv_sys_dlopen_deplibs=yes
21095 ;;
21096 amigaos*)
21097 case $host_cpu in
21098 powerpc)
21099 lt_cv_sys_dlopen_deplibs=no
21100 ;;
21101 esac
21102 ;;
21103 darwin*)
21104 # Assuming the user has installed a libdl from somewhere, this is true
21105 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21106 lt_cv_sys_dlopen_deplibs=yes
21107 ;;
21108 freebsd* | dragonfly*)
21109 lt_cv_sys_dlopen_deplibs=yes
21110 ;;
cristy0c60a692010-11-04 01:09:47 +000021111 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021112 # GNU and its variants, using gnu ld.so (Glibc)
21113 lt_cv_sys_dlopen_deplibs=yes
21114 ;;
21115 hpux10*|hpux11*)
21116 lt_cv_sys_dlopen_deplibs=yes
21117 ;;
21118 interix*)
21119 lt_cv_sys_dlopen_deplibs=yes
21120 ;;
21121 irix[12345]*|irix6.[01]*)
21122 # Catch all versions of IRIX before 6.2, and indicate that we don't
21123 # know how it worked for any of those versions.
21124 lt_cv_sys_dlopen_deplibs=unknown
21125 ;;
21126 irix*)
21127 # The case above catches anything before 6.2, and it's known that
21128 # at 6.2 and later dlopen does load deplibs.
21129 lt_cv_sys_dlopen_deplibs=yes
21130 ;;
21131 netbsd*)
21132 lt_cv_sys_dlopen_deplibs=yes
21133 ;;
21134 openbsd*)
21135 lt_cv_sys_dlopen_deplibs=yes
21136 ;;
21137 osf[1234]*)
21138 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21139 # it did *not* use an RPATH in a shared library to find objects the
21140 # library depends on, so we explicitly say `no'.
21141 lt_cv_sys_dlopen_deplibs=no
21142 ;;
21143 osf5.0|osf5.0a|osf5.1)
21144 # dlopen *does* load deplibs and with the right loader patch applied
21145 # it even uses RPATH in a shared library to search for shared objects
21146 # that the library depends on, but there's no easy way to know if that
21147 # patch is installed. Since this is the case, all we can really
21148 # say is unknown -- it depends on the patch being installed. If
21149 # it is, this changes to `yes'. Without it, it would be `no'.
21150 lt_cv_sys_dlopen_deplibs=unknown
21151 ;;
21152 osf*)
21153 # the two cases above should catch all versions of osf <= 5.1. Read
21154 # the comments above for what we know about them.
21155 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21156 # is used to find them so we can finally say `yes'.
21157 lt_cv_sys_dlopen_deplibs=yes
21158 ;;
21159 qnx*)
21160 lt_cv_sys_dlopen_deplibs=yes
21161 ;;
21162 solaris*)
21163 lt_cv_sys_dlopen_deplibs=yes
21164 ;;
21165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21166 libltdl_cv_sys_dlopen_deplibs=yes
21167 ;;
21168 esac
21169
21170fi
21171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21172$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21173if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21174
21175$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21176
21177fi
21178
21179:
21180
21181for ac_header in argz.h
21182do :
21183 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21184"
cristyda16f162011-02-19 23:52:17 +000021185if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021186 cat >>confdefs.h <<_ACEOF
21187#define HAVE_ARGZ_H 1
21188_ACEOF
21189
21190fi
21191
21192done
21193
21194
21195ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21196# include <argz.h>
21197#endif
21198"
cristyda16f162011-02-19 23:52:17 +000021199if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021200
21201cat >>confdefs.h <<_ACEOF
21202#define HAVE_ERROR_T 1
21203_ACEOF
21204
21205
21206else
21207
21208$as_echo "#define error_t int" >>confdefs.h
21209
21210
21211$as_echo "#define __error_t_defined 1" >>confdefs.h
21212
21213fi
21214
21215
21216ARGZ_H=
21217for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21218 argz_next argz_stringify
21219do :
21220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21221ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021222if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021223 cat >>confdefs.h <<_ACEOF
21224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21225_ACEOF
21226
21227else
21228 ARGZ_H=argz.h;
21229
21230 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21231
21232fi
21233done
21234
21235
21236if test -z "$ARGZ_H"; then :
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21238$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021239if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021240 $as_echo_n "(cached) " >&6
21241else
21242 case $host_os in #(
21243 *cygwin*)
21244 lt_cv_sys_argz_works=no
21245 if test "$cross_compiling" != no; then
21246 lt_cv_sys_argz_works="guessing no"
21247 else
21248 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21249 save_IFS=$IFS
21250 IFS=-.
21251 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21252 IFS=$save_IFS
21253 lt_os_major=${2-0}
21254 lt_os_minor=${3-0}
21255 lt_os_micro=${4-0}
21256 if test "$lt_os_major" -gt 1 \
21257 || { test "$lt_os_major" -eq 1 \
21258 && { test "$lt_os_minor" -gt 5 \
21259 || { test "$lt_os_minor" -eq 5 \
21260 && test "$lt_os_micro" -gt 24; }; }; }; then
21261 lt_cv_sys_argz_works=yes
21262 fi
21263 fi
21264 ;; #(
21265 *) lt_cv_sys_argz_works=yes ;;
21266 esac
21267fi
21268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21269$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021270 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021271
21272$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21273
21274else
21275 ARGZ_H=argz.h
21276
21277
21278 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21279
21280fi
21281fi
21282
21283
21284
21285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21286$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021287if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021288 $as_echo_n "(cached) " >&6
21289else
21290 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21291 libltdl_cv_preloaded_symbols=yes
21292 else
21293 libltdl_cv_preloaded_symbols=no
21294 fi
21295
21296fi
21297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21298$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21299if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21300
21301$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21302
21303fi
21304
21305# Set options
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317# Check whether --with-included_ltdl was given.
21318if test "${with_included_ltdl+set}" = set; then :
21319 withval=$with_included_ltdl;
21320fi
21321
21322
21323if test "x$with_included_ltdl" != xyes; then
21324 # We are not being forced to use the included libltdl sources, so
21325 # decide whether there is a useful installed version we can use.
21326 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21327
21328"
cristyda16f162011-02-19 23:52:17 +000021329if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021330 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21331 #include <ltdl.h>
21332"
cristyda16f162011-02-19 23:52:17 +000021333if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21335$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021336if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021337 $as_echo_n "(cached) " >&6
21338else
21339 ac_check_lib_save_LIBS=$LIBS
21340LIBS="-lltdl $LIBS"
21341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342/* end confdefs.h. */
21343
21344/* Override any GCC internal prototype to avoid an error.
21345 Use char because int might match the return type of a GCC
21346 builtin and then its argument prototype would still apply. */
21347#ifdef __cplusplus
21348extern "C"
21349#endif
21350char lt_dladvise_preload ();
21351int
21352main ()
21353{
21354return lt_dladvise_preload ();
21355 ;
21356 return 0;
21357}
21358_ACEOF
21359if ac_fn_c_try_link "$LINENO"; then :
21360 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21361else
21362 ac_cv_lib_ltdl_lt_dladvise_preload=no
21363fi
21364rm -f core conftest.err conftest.$ac_objext \
21365 conftest$ac_exeext conftest.$ac_ext
21366LIBS=$ac_check_lib_save_LIBS
21367fi
21368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21369$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021370if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021371 with_included_ltdl=no
21372else
21373 with_included_ltdl=yes
21374fi
21375
21376else
21377 with_included_ltdl=yes
21378fi
21379
21380else
21381 with_included_ltdl=yes
21382fi
21383
21384
21385fi
21386
21387
21388
21389
21390# Check whether --with-ltdl_include was given.
21391if test "${with_ltdl_include+set}" = set; then :
21392 withval=$with_ltdl_include;
21393fi
21394
21395
21396if test -n "$with_ltdl_include"; then
21397 if test -f "$with_ltdl_include/ltdl.h"; then :
21398 else
cristy98dddb52010-11-04 00:30:15 +000021399 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021400 fi
21401else
21402 with_ltdl_include=no
21403fi
21404
21405
21406# Check whether --with-ltdl_lib was given.
21407if test "${with_ltdl_lib+set}" = set; then :
21408 withval=$with_ltdl_lib;
21409fi
21410
21411
21412if test -n "$with_ltdl_lib"; then
21413 if test -f "$with_ltdl_lib/libltdl.la"; then :
21414 else
cristy98dddb52010-11-04 00:30:15 +000021415 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021416 fi
21417else
21418 with_ltdl_lib=no
21419fi
21420
21421case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21422 ,yes,no,no,)
21423 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021424 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021425 "") enable_ltdl_convenience=yes
21426 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21427esac
21428LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21429LTDLDEPS=$LIBLTDL
21430LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21431
21432
21433
21434
21435
21436# For backwards non-gettext consistent compatibility...
21437INCLTDL="$LTDLINCL"
21438
21439
21440 ;;
21441 ,no,no,no,)
21442 # If the included ltdl is not to be used, then use the
21443 # preinstalled libltdl we found.
21444
21445$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21446
21447 LIBLTDL=-lltdl
21448 LTDLDEPS=
21449 LTDLINCL=
21450 ;;
21451 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021452 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021453 ;;
21454 *) with_included_ltdl=no
21455 LIBLTDL="-L$with_ltdl_lib -lltdl"
21456 LTDLDEPS=
21457 LTDLINCL="-I$with_ltdl_include"
21458 ;;
21459esac
21460INCLTDL="$LTDLINCL"
21461
21462# Report our decision...
21463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21464$as_echo_n "checking where to find libltdl headers... " >&6; }
21465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21466$as_echo "$LTDLINCL" >&6; }
21467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21468$as_echo_n "checking where to find libltdl library... " >&6; }
21469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21470$as_echo "$LIBLTDL" >&6; }
21471
21472
21473
21474# Check whether --enable-ltdl-install was given.
21475if test "${enable_ltdl_install+set}" = set; then :
21476 enableval=$enable_ltdl_install;
21477fi
21478
21479
21480case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21481 *yes*) ;;
21482 *) enable_ltdl_convenience=yes ;;
21483esac
21484
21485 if test x"${enable_ltdl_install-no}" != xno; then
21486 INSTALL_LTDL_TRUE=
21487 INSTALL_LTDL_FALSE='#'
21488else
21489 INSTALL_LTDL_TRUE='#'
21490 INSTALL_LTDL_FALSE=
21491fi
21492
21493 if test x"${enable_ltdl_convenience-no}" != xno; then
21494 CONVENIENCE_LTDL_TRUE=
21495 CONVENIENCE_LTDL_FALSE='#'
21496else
21497 CONVENIENCE_LTDL_TRUE='#'
21498 CONVENIENCE_LTDL_FALSE=
21499fi
21500
21501
21502
21503
21504
21505
cristy73bd4a52010-10-05 11:24:23 +000021506# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21507# the user used. This is so that ltdl.h can pick up the parent projects
21508# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21509# definitions required by ltdl.c.
21510# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21511
21512
21513
21514for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21515do :
21516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21517ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21518"
cristy98dddb52010-11-04 00:30:15 +000021519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021520 cat >>confdefs.h <<_ACEOF
21521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21522_ACEOF
21523
21524fi
21525
21526done
21527
21528
21529for ac_func in closedir opendir readdir
21530do :
21531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021534 cat >>confdefs.h <<_ACEOF
21535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21536_ACEOF
21537
21538else
21539
21540
21541 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21542
21543fi
21544done
21545
21546for ac_func in strlcat strlcpy
21547do :
21548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21549ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021550if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021551 cat >>confdefs.h <<_ACEOF
21552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21553_ACEOF
21554
21555else
21556
21557
21558 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21559
21560fi
21561done
21562
21563
21564
21565cat >>confdefs.h <<_ACEOF
21566#define LT_LIBEXT "$libext"
21567_ACEOF
21568
21569
cristyda16f162011-02-19 23:52:17 +000021570name=
21571eval "lt_libprefix=\"$libname_spec\""
21572
21573cat >>confdefs.h <<_ACEOF
21574#define LT_LIBPREFIX "$lt_libprefix"
21575_ACEOF
21576
21577
cristy73bd4a52010-10-05 11:24:23 +000021578name=ltdl
cristyda16f162011-02-19 23:52:17 +000021579eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021580
21581
21582
21583
21584
21585
21586
21587
21588# Only expand once:
21589
21590
cristy3ed852e2009-09-05 21:47:34 +000021591
21592# Check to see if building shared libraries
21593libtool_build_shared_libs='no'
21594if test "$enable_shared" = 'yes'; then
21595 libtool_build_shared_libs='yes'
21596fi
21597
21598# Check to see if building static libraries
21599libtool_build_static_libs='no'
21600if test "$enable_static" = 'yes'; then
21601 libtool_build_static_libs='yes'
21602fi
21603
cristy73bd4a52010-10-05 11:24:23 +000021604 if test "${libtool_build_shared_libs}" = 'yes'; then
21605 WITH_SHARED_LIBS_TRUE=
21606 WITH_SHARED_LIBS_FALSE='#'
21607else
21608 WITH_SHARED_LIBS_TRUE='#'
21609 WITH_SHARED_LIBS_FALSE=
21610fi
21611
cristy3ed852e2009-09-05 21:47:34 +000021612#
21613# Enable support for building loadable modules
21614#
21615
21616# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021617if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021618 withval=$with_modules; with_modules=$withval
21619else
cristy5a1cefd2010-01-06 20:42:35 +000021620 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021621fi
21622
21623
21624# Only allow building loadable modules if we are building shared libraries
21625if test "$with_modules" != 'no' ; then
21626 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
cristy3ed852e2009-09-05 21:47:34 +000021628$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21629 with_modules='no'
21630 fi
21631fi
21632if test "$with_modules" != 'no'; then
21633
cristy8b350f62009-11-15 23:12:43 +000021634$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021635
21636fi
cristy73bd4a52010-10-05 11:24:23 +000021637 if test "$with_modules" != 'no'; then
21638 WITH_MODULES_TRUE=
21639 WITH_MODULES_FALSE='#'
21640else
21641 WITH_MODULES_TRUE='#'
21642 WITH_MODULES_FALSE=
21643fi
21644
cristy3ed852e2009-09-05 21:47:34 +000021645
21646# Enable building/use of libltdl if we are building shared libraries regardless
21647# of whether modules are built or not.
21648with_ltdl='no'
21649if test "$libtool_build_shared_libs" != 'no'; then
21650 with_ltdl='yes'
21651fi
21652
cristy73bd4a52010-10-05 11:24:23 +000021653 if test "$with_ltdl" != 'no'; then
21654 WITH_LTDL_TRUE=
21655 WITH_LTDL_FALSE='#'
21656else
21657 WITH_LTDL_TRUE='#'
21658 WITH_LTDL_FALSE=
21659fi
21660
cristy3ed852e2009-09-05 21:47:34 +000021661if test "$with_ltdl" != 'no'; then
21662
cristy8b350f62009-11-15 23:12:43 +000021663$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021664
21665
21666 # Set DLLDFLAGS
21667 if test X"$enable_shared" = Xyes; then
21668 DLLDFLAGS=-export-dynamic
21669
21670 fi
21671fi
21672
21673# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021674# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021675# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021676if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21678else
21679 enable_delegate_build='no'
21680fi
21681
21682
21683# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021684if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 enableval=$enable_deprecated; enable_deprecated=$enableval
21686else
21687 enable_deprecated='no'
21688fi
21689
21690
21691if test "$enable_deprecated" = 'yes'; then
21692
cristy8b350f62009-11-15 23:12:43 +000021693$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021694
21695else
21696 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21697fi
21698
21699# Build a version of ImageMagick which operates uninstalled.
21700# Used to build distributions located via MAGICK_HOME / executable path
21701# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021702if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 enableval=$enable_installed; enable_installed=$enableval
21704else
21705 enable_installed='yes'
21706fi
21707
21708
21709if test "$enable_installed" = 'yes'; then
21710
cristy8b350f62009-11-15 23:12:43 +000021711$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021712
21713else
21714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21715fi
21716
21717# Permit enciphering and deciphering image pixels.
21718# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021719if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 enableval=$enable_cipher; enable_cipher=$enableval
21721else
21722 enable_cipher='yes'
21723fi
21724
21725
21726if test "$enable_cipher" = 'yes'; then
21727
cristy8b350f62009-11-15 23:12:43 +000021728$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021729
21730fi
21731
cristy6e3607c2011-09-13 13:59:17 +000021732# Build a zero-configuration version of ImageMagick.
21733# Check whether --enable-zero-configuration was given.
21734if test "${enable_zero_configuration+set}" = set; then :
21735 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021736else
cristy6e3607c2011-09-13 13:59:17 +000021737 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021738fi
21739
21740
cristy6e3607c2011-09-13 13:59:17 +000021741if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021742
cristy6e3607c2011-09-13 13:59:17 +000021743$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021744
cristy81af5702011-09-13 14:20:58 +000021745 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021746fi
21747
21748# Build a high dynamic range version of ImageMagick.
21749# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021750if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021751 enableval=$enable_hdri; enable_hdri=$enableval
21752else
21753 enable_hdri='no'
21754fi
21755
21756
21757MAGICK_HDRI=""
21758if test "$enable_hdri" = 'yes'; then
21759 MAGICK_HDRI="HDRI"
21760
cristy8b350f62009-11-15 23:12:43 +000021761$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021762
cristyfd9dcd42010-08-08 18:07:02 +000021763 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021764fi
21765
cristy3ed852e2009-09-05 21:47:34 +000021766# Build a version of ImageMagick with assert statements.
21767# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021768if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 enableval=$enable_assert; enable_assert=$enableval
21770else
21771 enable_assert='yes'
21772fi
21773
21774
21775if test "$enable_assert" = 'no'; then
21776
cristy8b350f62009-11-15 23:12:43 +000021777$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021778
21779fi
21780
cristya448bd22011-10-14 12:38:13 +000021781# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021782
21783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21784$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21785 # Check whether --enable-maintainer-mode was given.
21786if test "${enable_maintainer_mode+set}" = set; then :
21787 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21788else
21789 USE_MAINTAINER_MODE=no
21790fi
21791
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21793$as_echo "$USE_MAINTAINER_MODE" >&6; }
21794 if test $USE_MAINTAINER_MODE = yes; then
21795 MAINTAINER_MODE_TRUE=
21796 MAINTAINER_MODE_FALSE='#'
21797else
21798 MAINTAINER_MODE_TRUE='#'
21799 MAINTAINER_MODE_FALSE=
21800fi
21801
21802 MAINT=$MAINTAINER_MODE_TRUE
21803
21804
cristy3ed852e2009-09-05 21:47:34 +000021805
cristy3ed852e2009-09-05 21:47:34 +000021806# Enable ccmalloc memory debugging support
21807# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021808if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21810else
21811 enable_ccmalloc='no'
21812fi
21813
21814
21815# Enable Electric Fence memory debugging support
21816# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021817if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021818 enableval=$enable_efence; enable_efence=$enableval
21819else
21820 enable_efence='no'
21821fi
21822
21823
21824# Enable prof-based profiling support
21825# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021826if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021827 enableval=$enable_prof; enable_prof=$enableval
21828else
21829 enable_prof='no'
21830fi
21831
21832
21833# Enable gprof-based profiling support
21834# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021835if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021836 enableval=$enable_gprof; enable_gprof=$enableval
21837else
21838 enable_gprof='no'
21839fi
21840
21841
21842# Enable gcov-based profiling support
21843# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021844if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 enableval=$enable_gcov; enable_gcov=$enableval
21846else
21847 enable_gcov='no'
21848fi
21849
21850
21851enable_profiling='no'
21852if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21853 enable_profiling='yes'
21854 if test "$libtool_build_shared_libs" = 'yes'; then
21855 echo "Warning: Can not profile code using shared libraries"
21856 fi
21857fi
21858
21859# Magick API method prefix
21860
21861# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021862if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021863 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021864else
cristyfc3d0222012-02-07 15:05:57 +000021865 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021866fi
21867
21868
cristyfc3d0222012-02-07 15:05:57 +000021869if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021870
21871cat >>confdefs.h <<_ACEOF
21872#define NAMESPACE_PREFIX $with_method_prefix
21873_ACEOF
21874
cristyfc3d0222012-02-07 15:05:57 +000021875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021876fi
21877
cristy71d8c202012-03-20 17:05:01 +000021878# Enable legacy support (default no)
21879# Check whether --enable-legacy-support was given.
21880if test "${enable_legacy_support+set}" = set; then :
21881 enableval=$enable_legacy_support; with_legacy_support=$enableval
21882else
21883 with_legacy_support='no'
21884fi
21885
21886 if test "$with_legacy_support" != 'no'; then
21887 LEGACY_SUPPORT_TRUE=
21888 LEGACY_SUPPORT_FALSE='#'
21889else
21890 LEGACY_SUPPORT_TRUE='#'
21891 LEGACY_SUPPORT_FALSE=
21892fi
21893
21894
cristy3ed852e2009-09-05 21:47:34 +000021895# Number of bits in a Quantum
21896
21897# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021898if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021899 withval=$with_quantum_depth; with_quantum_depth=$withval
21900else
21901 with_quantum_depth=16
21902fi
21903
21904
21905if test "$with_quantum_depth" != '8'; then
21906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21907fi
21908
21909case "${with_quantum_depth}" in
21910 8 ) ;;
21911 16 ) ;;
21912 32 ) ;;
21913 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021914 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021915esac
21916QUANTUM_DEPTH="$with_quantum_depth"
21917
21918cat >>confdefs.h <<_ACEOF
21919#define QUANTUM_DEPTH $QUANTUM_DEPTH
21920_ACEOF
21921
21922
21923# Set pixel cache threshold
21924
21925# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021926if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 withval=$with_cache; with_cache=$withval
21928else
21929 with_cache=''
21930fi
21931
21932
21933if test "$with_cache" != ''; then
21934
21935cat >>confdefs.h <<_ACEOF
21936#define PixelCacheThreshold $with_cache
21937_ACEOF
21938
21939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21940fi
21941
21942# Disable/Enable support for full delegate paths
21943
21944# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021945if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021946 withval=$with_frozenpaths; with_frozenpaths=$withval
21947else
21948 with_frozenpaths='no'
21949fi
21950
21951
21952# Enable build/install of Magick++
21953
21954# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021955if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021956 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21957else
21958 with_magick_plus_plus='yes'
21959fi
21960
21961
21962# Disable build/install of PerlMagick.
21963
21964# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021965if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 withval=$with_perl; with_perl=$withval
21967else
cristyb5f4e2f2010-04-25 00:49:11 +000021968 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021969fi
21970
21971
21972# Options to pass when configuring PerlMagick
21973
21974# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021975if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021976 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021977fi
21978
21979
cristy3ed852e2009-09-05 21:47:34 +000021980
21981# Enable umem, object-caching memory allocation library.
21982
21983# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021984if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 withval=$with_umem; with_umem=$withval
21986else
21987 with_umem='no'
21988fi
21989
21990if test "$with_umem" != 'yes' ; then
21991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21992fi
21993
21994#
21995# Specify path to shared libstdc++ if not in normal location
21996#
21997
21998# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021999if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022000 withval=$with_libstdc; with_libstdc=$withval
22001else
22002 with_libstdc=''
22003fi
22004
22005
22006if test "$with_libstdc" != ''; then
22007 if test -d "$with_libstdc"; then
22008 LIBSTDCLDFLAGS="-L$with_libstdc"
22009 fi
22010fi
22011
22012
22013# Does gcc required -traditional?
22014if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022016$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022017if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022018 $as_echo_n "(cached) " >&6
22019else
22020 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022022/* end confdefs.h. */
22023#include <sgtty.h>
22024Autoconf TIOCGETP
22025_ACEOF
22026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022027 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 ac_cv_prog_gcc_traditional=yes
22029else
22030 ac_cv_prog_gcc_traditional=no
22031fi
22032rm -f conftest*
22033
22034
22035 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022037/* end confdefs.h. */
22038#include <termio.h>
22039Autoconf TCGETA
22040_ACEOF
22041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022042 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022043 ac_cv_prog_gcc_traditional=yes
22044fi
22045rm -f conftest*
22046
22047 fi
22048fi
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22051 if test $ac_cv_prog_gcc_traditional = yes; then
22052 CC="$CC -traditional"
22053 fi
22054fi
22055
22056
22057########
22058#
22059# Set defines required to build DLLs and modules using MinGW
22060#
22061########
22062# These options are set for multi-thread DLL module build
22063# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22064# module: _DLL
22065# executable/Magick++: _DLL _MAGICKMOD_
22066MODULE_EXTRA_CPPFLAGS=''
22067LIBRARY_EXTRA_CPPFLAGS=''
22068if test "${native_win32_build}" = 'yes'; then
22069 if test "${libtool_build_shared_libs}" = 'yes'; then
22070 CPPFLAGS="$CPPFLAGS -D_DLL"
22071 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22072 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22073 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22074 if test "$with_modules" = 'yes'; then
22075 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22076 else
22077 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22078 fi
22079 else
22080 CPPFLAGS="$CPPFLAGS -D_LIB"
22081 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22082 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22083 fi
22084 if test "$with_threads" = 'yes'; then
22085 CPPFLAGS="$CPPFLAGS -D_MT"
22086 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22087 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22088 fi
22089fi
22090
22091
22092
22093# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022096if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022097 $as_echo_n "(cached) " >&6
22098else
cristy8b350f62009-11-15 23:12:43 +000022099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022100/* end confdefs.h. */
22101#include <stdlib.h>
22102#include <stdarg.h>
22103#include <string.h>
22104#include <float.h>
22105
22106int
22107main ()
22108{
22109
22110 ;
22111 return 0;
22112}
22113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022115 ac_cv_header_stdc=yes
22116else
cristy8b350f62009-11-15 23:12:43 +000022117 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022118fi
cristy3ed852e2009-09-05 21:47:34 +000022119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120
22121if test $ac_cv_header_stdc = yes; then
22122 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022124/* end confdefs.h. */
22125#include <string.h>
22126
22127_ACEOF
22128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022129 $EGREP "memchr" >/dev/null 2>&1; then :
22130
cristy3ed852e2009-09-05 21:47:34 +000022131else
22132 ac_cv_header_stdc=no
22133fi
22134rm -f conftest*
22135
22136fi
22137
22138if test $ac_cv_header_stdc = yes; then
22139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022141/* end confdefs.h. */
22142#include <stdlib.h>
22143
22144_ACEOF
22145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022146 $EGREP "free" >/dev/null 2>&1; then :
22147
cristy3ed852e2009-09-05 21:47:34 +000022148else
22149 ac_cv_header_stdc=no
22150fi
22151rm -f conftest*
22152
22153fi
22154
22155if test $ac_cv_header_stdc = yes; then
22156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022157 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022158 :
22159else
cristy8b350f62009-11-15 23:12:43 +000022160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022161/* end confdefs.h. */
22162#include <ctype.h>
22163#include <stdlib.h>
22164#if ((' ' & 0x0FF) == 0x020)
22165# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22166# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22167#else
22168# define ISLOWER(c) \
22169 (('a' <= (c) && (c) <= 'i') \
22170 || ('j' <= (c) && (c) <= 'r') \
22171 || ('s' <= (c) && (c) <= 'z'))
22172# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22173#endif
22174
22175#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22176int
22177main ()
22178{
22179 int i;
22180 for (i = 0; i < 256; i++)
22181 if (XOR (islower (i), ISLOWER (i))
22182 || toupper (i) != TOUPPER (i))
22183 return 2;
22184 return 0;
22185}
22186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022187if ac_fn_c_try_run "$LINENO"; then :
22188
cristy3ed852e2009-09-05 21:47:34 +000022189else
cristy8b350f62009-11-15 23:12:43 +000022190 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022191fi
cristy8b350f62009-11-15 23:12:43 +000022192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22193 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022194fi
22195
cristy3ed852e2009-09-05 21:47:34 +000022196fi
22197fi
cristy8b350f62009-11-15 23:12:43 +000022198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022199$as_echo "$ac_cv_header_stdc" >&6; }
22200if test $ac_cv_header_stdc = yes; then
22201
cristy8b350f62009-11-15 23:12:43 +000022202$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022203
22204fi
22205
22206if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
cristy3ed852e2009-09-05 21:47:34 +000022208 header files. Compilation cannot proceed. Please install the ANSI C
22209 headers and rerun this script." >&5
22210$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22211 header files. Compilation cannot proceed. Please install the ANSI C
22212 headers and rerun this script." >&2;};
22213fi
cristya0b81c32010-01-22 02:54:33 +000022214
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22216$as_echo_n "checking whether to enable assertions... " >&6; }
22217 # Check whether --enable-assert was given.
22218if test "${enable_assert+set}" = set; then :
22219 enableval=$enable_assert; ac_enable_assert=$enableval
22220 if test "x$enableval" = xno; then :
22221
22222$as_echo "#define NDEBUG 1" >>confdefs.h
22223
22224elif test "x$enableval" != xyes; then :
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22226$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22227 ac_enable_assert=yes
22228fi
22229else
22230 ac_enable_assert=yes
22231fi
22232
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22234$as_echo "$ac_enable_assert" >&6; }
22235
cristy3ed852e2009-09-05 21:47:34 +000022236ac_header_dirent=no
22237for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22238 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022240$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022241if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 $as_echo_n "(cached) " >&6
22243else
cristy8b350f62009-11-15 23:12:43 +000022244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022245/* end confdefs.h. */
22246#include <sys/types.h>
22247#include <$ac_hdr>
22248
22249int
22250main ()
22251{
22252if ((DIR *) 0)
22253return 0;
22254 ;
22255 return 0;
22256}
22257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022258if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 eval "$as_ac_Header=yes"
22260else
cristy8b350f62009-11-15 23:12:43 +000022261 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022262fi
cristy3ed852e2009-09-05 21:47:34 +000022263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264fi
cristy8b350f62009-11-15 23:12:43 +000022265eval ac_res=\$$as_ac_Header
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022267$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022268if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022269 cat >>confdefs.h <<_ACEOF
22270#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22271_ACEOF
22272
22273ac_header_dirent=$ac_hdr; break
22274fi
22275
22276done
22277# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22278if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022280$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022281if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022282 $as_echo_n "(cached) " >&6
22283else
22284 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022286/* end confdefs.h. */
22287
22288/* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22291#ifdef __cplusplus
22292extern "C"
22293#endif
22294char opendir ();
22295int
22296main ()
22297{
22298return opendir ();
22299 ;
22300 return 0;
22301}
22302_ACEOF
22303for ac_lib in '' dir; do
22304 if test -z "$ac_lib"; then
22305 ac_res="none required"
22306 else
22307 ac_res=-l$ac_lib
22308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22309 fi
cristy8b350f62009-11-15 23:12:43 +000022310 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022311 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022312fi
cristy8b350f62009-11-15 23:12:43 +000022313rm -f core conftest.err conftest.$ac_objext \
22314 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022315 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 break
22317fi
22318done
cristyda16f162011-02-19 23:52:17 +000022319if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022320
cristy3ed852e2009-09-05 21:47:34 +000022321else
22322 ac_cv_search_opendir=no
22323fi
22324rm conftest.$ac_ext
22325LIBS=$ac_func_search_save_LIBS
22326fi
cristy8b350f62009-11-15 23:12:43 +000022327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022328$as_echo "$ac_cv_search_opendir" >&6; }
22329ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022330if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22332
22333fi
22334
22335else
cristy8b350f62009-11-15 23:12:43 +000022336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022337$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022338if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 $as_echo_n "(cached) " >&6
22340else
22341 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022343/* end confdefs.h. */
22344
22345/* Override any GCC internal prototype to avoid an error.
22346 Use char because int might match the return type of a GCC
22347 builtin and then its argument prototype would still apply. */
22348#ifdef __cplusplus
22349extern "C"
22350#endif
22351char opendir ();
22352int
22353main ()
22354{
22355return opendir ();
22356 ;
22357 return 0;
22358}
22359_ACEOF
22360for ac_lib in '' x; do
22361 if test -z "$ac_lib"; then
22362 ac_res="none required"
22363 else
22364 ac_res=-l$ac_lib
22365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22366 fi
cristy8b350f62009-11-15 23:12:43 +000022367 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022368 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022369fi
cristy8b350f62009-11-15 23:12:43 +000022370rm -f core conftest.err conftest.$ac_objext \
22371 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022372 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022373 break
22374fi
22375done
cristyda16f162011-02-19 23:52:17 +000022376if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022377
cristy3ed852e2009-09-05 21:47:34 +000022378else
22379 ac_cv_search_opendir=no
22380fi
22381rm conftest.$ac_ext
22382LIBS=$ac_func_search_save_LIBS
22383fi
cristy8b350f62009-11-15 23:12:43 +000022384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022385$as_echo "$ac_cv_search_opendir" >&6; }
22386ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022387if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22389
22390fi
22391
22392fi
22393
22394
22395# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022396for 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
cristy8b350f62009-11-15 23:12:43 +000022397do :
22398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22399ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022400if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022401 cat >>confdefs.h <<_ACEOF
22402#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22403_ACEOF
22404
22405fi
22406
22407done
22408
22409
22410########
22411#
22412# Checks for typedefs, structures, and compiler characteristics.
22413#
22414########
22415
cristy8b350f62009-11-15 23:12:43 +000022416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022417$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022418if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022419 $as_echo_n "(cached) " >&6
22420else
cristy8b350f62009-11-15 23:12:43 +000022421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022422/* end confdefs.h. */
22423
22424#include <stdbool.h>
22425#ifndef bool
22426 "error: bool is not defined"
22427#endif
22428#ifndef false
22429 "error: false is not defined"
22430#endif
22431#if false
22432 "error: false is not 0"
22433#endif
22434#ifndef true
22435 "error: true is not defined"
22436#endif
22437#if true != 1
22438 "error: true is not 1"
22439#endif
22440#ifndef __bool_true_false_are_defined
22441 "error: __bool_true_false_are_defined is not defined"
22442#endif
22443
22444 struct s { _Bool s: 1; _Bool t; } s;
22445
22446 char a[true == 1 ? 1 : -1];
22447 char b[false == 0 ? 1 : -1];
22448 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22449 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000022450 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000022451 char f[(_Bool) 0.0 == false ? 1 : -1];
22452 char g[true];
22453 char h[sizeof (_Bool)];
22454 char i[sizeof s.t];
22455 enum { j = false, k = true, l = false * true, m = true * 256 };
22456 /* The following fails for
22457 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22458 _Bool n[m];
22459 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22460 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000022461 /* Catch a bug in an HP-UX C compiler. See
22462 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22463 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22464 */
22465 _Bool q = true;
22466 _Bool *pq = &q;
22467
22468int
22469main ()
22470{
22471
cristyda16f162011-02-19 23:52:17 +000022472 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000022473 *pq |= q;
22474 *pq |= ! q;
22475 /* Refer to every declared value, to avoid compiler optimizations. */
22476 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22477 + !m + !n + !o + !p + !q + !pq);
22478
22479 ;
22480 return 0;
22481}
22482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022484 ac_cv_header_stdbool_h=yes
22485else
cristy8b350f62009-11-15 23:12:43 +000022486 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022487fi
cristy3ed852e2009-09-05 21:47:34 +000022488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489fi
cristy8b350f62009-11-15 23:12:43 +000022490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022491$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022492ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022493if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022494
22495cat >>confdefs.h <<_ACEOF
22496#define HAVE__BOOL 1
22497_ACEOF
22498
22499
22500fi
22501
22502if test $ac_cv_header_stdbool_h = yes; then
22503
cristy8b350f62009-11-15 23:12:43 +000022504$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022505
22506fi
22507
cristy8b350f62009-11-15 23:12:43 +000022508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022509$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022510if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 $as_echo_n "(cached) " >&6
22512else
cristy8b350f62009-11-15 23:12:43 +000022513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022514/* end confdefs.h. */
22515
22516int
22517main ()
22518{
22519
22520volatile int x;
22521int * volatile y = (int *) 0;
22522return !x && !y;
22523 ;
22524 return 0;
22525}
22526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022527if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022528 ac_cv_c_volatile=yes
22529else
cristy8b350f62009-11-15 23:12:43 +000022530 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022531fi
cristy3ed852e2009-09-05 21:47:34 +000022532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22533fi
cristy8b350f62009-11-15 23:12:43 +000022534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022535$as_echo "$ac_cv_c_volatile" >&6; }
22536if test $ac_cv_c_volatile = no; then
22537
cristy8b350f62009-11-15 23:12:43 +000022538$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022539
22540fi
22541
cristy8b350f62009-11-15 23:12:43 +000022542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022543$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022544if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022545 $as_echo_n "(cached) " >&6
22546else
cristy8b350f62009-11-15 23:12:43 +000022547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022548/* end confdefs.h. */
22549#define x(y) #y
22550
22551char *s = x(teststring);
22552_ACEOF
22553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022554 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022555 ac_cv_c_stringize=no
22556else
22557 ac_cv_c_stringize=yes
22558fi
22559rm -f conftest*
22560
22561fi
cristy8b350f62009-11-15 23:12:43 +000022562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022563$as_echo "$ac_cv_c_stringize" >&6; }
22564if test $ac_cv_c_stringize = yes; then
22565
cristy8b350f62009-11-15 23:12:43 +000022566$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022567
22568fi
22569
cristy8b350f62009-11-15 23:12:43 +000022570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022571$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022572if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 $as_echo_n "(cached) " >&6
22574else
cristy8b350f62009-11-15 23:12:43 +000022575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022576/* end confdefs.h. */
22577#include <sys/types.h>
22578#include <sys/stat.h>
22579
22580#if defined S_ISBLK && defined S_IFDIR
22581extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22582#endif
22583
22584#if defined S_ISBLK && defined S_IFCHR
22585extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22586#endif
22587
22588#if defined S_ISLNK && defined S_IFREG
22589extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22590#endif
22591
22592#if defined S_ISSOCK && defined S_IFREG
22593extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22594#endif
22595
22596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022597if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022598 ac_cv_header_stat_broken=no
22599else
cristy8b350f62009-11-15 23:12:43 +000022600 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022601fi
cristy3ed852e2009-09-05 21:47:34 +000022602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603fi
cristy8b350f62009-11-15 23:12:43 +000022604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022605$as_echo "$ac_cv_header_stat_broken" >&6; }
22606if test $ac_cv_header_stat_broken = yes; then
22607
cristy8b350f62009-11-15 23:12:43 +000022608$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022609
22610fi
22611
cristy8b350f62009-11-15 23:12:43 +000022612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022613$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022614if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022615 $as_echo_n "(cached) " >&6
22616else
cristy8b350f62009-11-15 23:12:43 +000022617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022618/* end confdefs.h. */
22619#include <sys/types.h>
22620#include <sys/time.h>
22621#include <time.h>
22622
22623int
22624main ()
22625{
22626if ((struct tm *) 0)
22627return 0;
22628 ;
22629 return 0;
22630}
22631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022632if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022633 ac_cv_header_time=yes
22634else
cristy8b350f62009-11-15 23:12:43 +000022635 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022636fi
cristy3ed852e2009-09-05 21:47:34 +000022637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638fi
cristy8b350f62009-11-15 23:12:43 +000022639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022640$as_echo "$ac_cv_header_time" >&6; }
22641if test $ac_cv_header_time = yes; then
22642
cristy8b350f62009-11-15 23:12:43 +000022643$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022644
22645fi
22646
cristy8b350f62009-11-15 23:12:43 +000022647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022648$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022649if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022650 $as_echo_n "(cached) " >&6
22651else
cristy8b350f62009-11-15 23:12:43 +000022652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022653/* end confdefs.h. */
22654#include <sys/types.h>
22655#include <time.h>
22656
22657int
22658main ()
22659{
22660struct tm tm;
22661 int *p = &tm.tm_sec;
22662 return !p;
22663 ;
22664 return 0;
22665}
22666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022667if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022668 ac_cv_struct_tm=time.h
22669else
cristy8b350f62009-11-15 23:12:43 +000022670 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022671fi
cristy3ed852e2009-09-05 21:47:34 +000022672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22673fi
cristy8b350f62009-11-15 23:12:43 +000022674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022675$as_echo "$ac_cv_struct_tm" >&6; }
22676if test $ac_cv_struct_tm = sys/time.h; then
22677
cristy8b350f62009-11-15 23:12:43 +000022678$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022679
22680fi
22681
cristy92703d82010-04-26 00:18:18 +000022682ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22683#include <$ac_cv_struct_tm>
22684
22685"
cristyda16f162011-02-19 23:52:17 +000022686if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022687
22688cat >>confdefs.h <<_ACEOF
22689#define HAVE_STRUCT_TM_TM_ZONE 1
22690_ACEOF
22691
22692
22693fi
22694
22695if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22696
22697$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22698
22699else
22700 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22701"
cristyda16f162011-02-19 23:52:17 +000022702if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022703 ac_have_decl=1
22704else
22705 ac_have_decl=0
22706fi
22707
22708cat >>confdefs.h <<_ACEOF
22709#define HAVE_DECL_TZNAME $ac_have_decl
22710_ACEOF
22711
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22713$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022714if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022715 $as_echo_n "(cached) " >&6
22716else
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718/* end confdefs.h. */
22719#include <time.h>
22720#if !HAVE_DECL_TZNAME
22721extern char *tzname[];
22722#endif
22723
22724int
22725main ()
22726{
22727return tzname[0][0];
22728 ;
22729 return 0;
22730}
22731_ACEOF
22732if ac_fn_c_try_link "$LINENO"; then :
22733 ac_cv_var_tzname=yes
22734else
22735 ac_cv_var_tzname=no
22736fi
22737rm -f core conftest.err conftest.$ac_objext \
22738 conftest$ac_exeext conftest.$ac_ext
22739fi
22740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22741$as_echo "$ac_cv_var_tzname" >&6; }
22742 if test $ac_cv_var_tzname = yes; then
22743
22744$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22745
22746 fi
22747fi
22748
cristy8b350f62009-11-15 23:12:43 +000022749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022750$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022751if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022752 $as_echo_n "(cached) " >&6
22753else
22754 echo '#! /bin/cat
22755exit 69
22756' >conftest
22757chmod u+x conftest
22758(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22759if test $? -ne 69; then
22760 ac_cv_sys_interpreter=yes
22761else
22762 ac_cv_sys_interpreter=no
22763fi
22764rm -f conftest
22765fi
cristy8b350f62009-11-15 23:12:43 +000022766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022767$as_echo "$ac_cv_sys_interpreter" >&6; }
22768interpval=$ac_cv_sys_interpreter
22769
22770
cristy3ed852e2009-09-05 21:47:34 +000022771# If the C compiler supports the keyword inline, do nothing. Otherwise
22772# define inline to __inline__ or __inline if it accepts one of those,
22773# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022775$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022776if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022777 $as_echo_n "(cached) " >&6
22778else
22779 ac_cv_c_inline=no
22780for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022782/* end confdefs.h. */
22783#ifndef __cplusplus
22784typedef int foo_t;
22785static $ac_kw foo_t static_foo () {return 0; }
22786$ac_kw foo_t foo () {return 0; }
22787#endif
22788
22789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022790if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022792fi
cristy3ed852e2009-09-05 21:47:34 +000022793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 test "$ac_cv_c_inline" != no && break
22795done
22796
22797fi
cristy8b350f62009-11-15 23:12:43 +000022798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022799$as_echo "$ac_cv_c_inline" >&6; }
22800
cristy3ed852e2009-09-05 21:47:34 +000022801case $ac_cv_c_inline in
22802 inline | yes) ;;
22803 *)
22804 case $ac_cv_c_inline in
22805 no) ac_val=;;
22806 *) ac_val=$ac_cv_c_inline;;
22807 esac
22808 cat >>confdefs.h <<_ACEOF
22809#ifndef __cplusplus
22810#define inline $ac_val
22811#endif
22812_ACEOF
22813 ;;
22814esac
22815
22816
22817# If the C compiler supports the keyword restrict, do nothing. Otherwise
22818# define restrict to __restrict__ or __restrict if it accepts one of those,
22819# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022821$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022822if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 $as_echo_n "(cached) " >&6
22824else
22825 ac_cv_c_restrict=no
22826 # The order here caters to the fact that C++ does not require restrict.
22827 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022829/* end confdefs.h. */
22830typedef int * int_ptr;
22831 int foo (int_ptr $ac_kw ip) {
22832 return ip[0];
22833 }
22834int
22835main ()
22836{
22837int s[1];
22838 int * $ac_kw t = s;
22839 t[0] = 0;
22840 return foo(t)
22841 ;
22842 return 0;
22843}
22844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022845if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022846 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022847fi
cristy3ed852e2009-09-05 21:47:34 +000022848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 test "$ac_cv_c_restrict" != no && break
22850 done
22851
22852fi
cristy8b350f62009-11-15 23:12:43 +000022853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022854$as_echo "$ac_cv_c_restrict" >&6; }
22855
cristy3ed852e2009-09-05 21:47:34 +000022856 case $ac_cv_c_restrict in
22857 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022858 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022859 ;;
22860 *) cat >>confdefs.h <<_ACEOF
22861#define restrict $ac_cv_c_restrict
22862_ACEOF
22863 ;;
22864 esac
22865
22866
22867# If words are stored with the most significant byte first (like
22868# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022871if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022872 $as_echo_n "(cached) " >&6
22873else
22874 ac_cv_c_bigendian=unknown
22875 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022877/* end confdefs.h. */
22878#ifndef __APPLE_CC__
22879 not a universal capable compiler
22880 #endif
22881 typedef int dummy;
22882
22883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022885
22886 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022887 # there are at least two -arch flags with different values.
22888 ac_arch=
22889 ac_prev=
22890 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22891 if test -n "$ac_prev"; then
22892 case $ac_word in
22893 i?86 | x86_64 | ppc | ppc64)
22894 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22895 ac_arch=$ac_word
22896 else
22897 ac_cv_c_bigendian=universal
22898 break
22899 fi
22900 ;;
22901 esac
22902 ac_prev=
22903 elif test "x$ac_word" = "x-arch"; then
22904 ac_prev=arch
22905 fi
22906 done
cristy3ed852e2009-09-05 21:47:34 +000022907fi
cristy3ed852e2009-09-05 21:47:34 +000022908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 if test $ac_cv_c_bigendian = unknown; then
22910 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022912/* end confdefs.h. */
22913#include <sys/types.h>
22914 #include <sys/param.h>
22915
22916int
22917main ()
22918{
22919#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22920 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22921 && LITTLE_ENDIAN)
22922 bogus endian macros
22923 #endif
22924
22925 ;
22926 return 0;
22927}
22928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022929if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022930 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932/* end confdefs.h. */
22933#include <sys/types.h>
22934 #include <sys/param.h>
22935
22936int
22937main ()
22938{
22939#if BYTE_ORDER != BIG_ENDIAN
22940 not big endian
22941 #endif
22942
22943 ;
22944 return 0;
22945}
22946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022947if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022948 ac_cv_c_bigendian=yes
22949else
cristy8b350f62009-11-15 23:12:43 +000022950 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022951fi
cristy3ed852e2009-09-05 21:47:34 +000022952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022953fi
cristy3ed852e2009-09-05 21:47:34 +000022954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22955 fi
22956 if test $ac_cv_c_bigendian = unknown; then
22957 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022959/* end confdefs.h. */
22960#include <limits.h>
22961
22962int
22963main ()
22964{
22965#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22966 bogus endian macros
22967 #endif
22968
22969 ;
22970 return 0;
22971}
22972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022973if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022974 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022976/* end confdefs.h. */
22977#include <limits.h>
22978
22979int
22980main ()
22981{
22982#ifndef _BIG_ENDIAN
22983 not big endian
22984 #endif
22985
22986 ;
22987 return 0;
22988}
22989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022990if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 ac_cv_c_bigendian=yes
22992else
cristy8b350f62009-11-15 23:12:43 +000022993 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022994fi
cristy3ed852e2009-09-05 21:47:34 +000022995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022996fi
cristy3ed852e2009-09-05 21:47:34 +000022997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 fi
22999 if test $ac_cv_c_bigendian = unknown; then
23000 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023001 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023002 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023004/* end confdefs.h. */
23005short int ascii_mm[] =
23006 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23007 short int ascii_ii[] =
23008 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23009 int use_ascii (int i) {
23010 return ascii_mm[i] + ascii_ii[i];
23011 }
23012 short int ebcdic_ii[] =
23013 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23014 short int ebcdic_mm[] =
23015 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23016 int use_ebcdic (int i) {
23017 return ebcdic_mm[i] + ebcdic_ii[i];
23018 }
23019 extern int foo;
23020
23021int
23022main ()
23023{
23024return use_ascii (foo) == use_ebcdic (foo);
23025 ;
23026 return 0;
23027}
23028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023029if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23031 ac_cv_c_bigendian=yes
23032 fi
23033 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23034 if test "$ac_cv_c_bigendian" = unknown; then
23035 ac_cv_c_bigendian=no
23036 else
23037 # finding both strings is unlikely to happen, but who knows?
23038 ac_cv_c_bigendian=unknown
23039 fi
23040 fi
cristy3ed852e2009-09-05 21:47:34 +000023041fi
cristy3ed852e2009-09-05 21:47:34 +000023042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043else
cristy8b350f62009-11-15 23:12:43 +000023044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023045/* end confdefs.h. */
23046$ac_includes_default
23047int
23048main ()
23049{
23050
23051 /* Are we little or big endian? From Harbison&Steele. */
23052 union
23053 {
23054 long int l;
23055 char c[sizeof (long int)];
23056 } u;
23057 u.l = 1;
23058 return u.c[sizeof (long int) - 1] == 1;
23059
23060 ;
23061 return 0;
23062}
23063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023064if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023065 ac_cv_c_bigendian=no
23066else
cristy8b350f62009-11-15 23:12:43 +000023067 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023068fi
cristy8b350f62009-11-15 23:12:43 +000023069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23070 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023071fi
23072
cristy3ed852e2009-09-05 21:47:34 +000023073 fi
23074fi
cristy8b350f62009-11-15 23:12:43 +000023075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023076$as_echo "$ac_cv_c_bigendian" >&6; }
23077 case $ac_cv_c_bigendian in #(
23078 yes)
cristy8b350f62009-11-15 23:12:43 +000023079 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023080;; #(
23081 no)
23082 ;; #(
23083 universal)
23084
cristy8b350f62009-11-15 23:12:43 +000023085$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023086
23087 ;; #(
23088 *)
cristy98dddb52010-11-04 00:30:15 +000023089 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023090 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023091 esac
23092
23093
cristy501c8042011-05-26 17:46:28 +000023094# Define to a suitable type, if standard headers do not define it.
23095ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23096case $ac_cv_c_int8_t in #(
23097 no|yes) ;; #(
23098 *)
cristy3ed852e2009-09-05 21:47:34 +000023099
23100cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023101#define int8_t $ac_cv_c_int8_t
23102_ACEOF
23103;;
23104esac
23105
23106ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23107case $ac_cv_c_int16_t in #(
23108 no|yes) ;; #(
23109 *)
23110
23111cat >>confdefs.h <<_ACEOF
23112#define int16_t $ac_cv_c_int16_t
23113_ACEOF
23114;;
23115esac
23116
23117ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23118case $ac_cv_c_int32_t in #(
23119 no|yes) ;; #(
23120 *)
23121
23122cat >>confdefs.h <<_ACEOF
23123#define int32_t $ac_cv_c_int32_t
23124_ACEOF
23125;;
23126esac
23127
23128ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23129case $ac_cv_c_int64_t in #(
23130 no|yes) ;; #(
23131 *)
23132
23133cat >>confdefs.h <<_ACEOF
23134#define int64_t $ac_cv_c_int64_t
23135_ACEOF
23136;;
23137esac
23138
23139
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23141$as_echo_n "checking for long long int... " >&6; }
23142if ${ac_cv_type_long_long_int+:} false; then :
23143 $as_echo_n "(cached) " >&6
23144else
23145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146/* end confdefs.h. */
23147
23148 /* For now, do not test the preprocessor; as of 2007 there are too many
23149 implementations with broken preprocessors. Perhaps this can
23150 be revisited in 2012. In the meantime, code should not expect
23151 #if to work with literals wider than 32 bits. */
23152 /* Test literals. */
23153 long long int ll = 9223372036854775807ll;
23154 long long int nll = -9223372036854775807LL;
23155 unsigned long long int ull = 18446744073709551615ULL;
23156 /* Test constant expressions. */
23157 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23158 ? 1 : -1)];
23159 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23160 ? 1 : -1)];
23161 int i = 63;
23162int
23163main ()
23164{
23165/* Test availability of runtime routines for shift and division. */
23166 long long int llmax = 9223372036854775807ll;
23167 unsigned long long int ullmax = 18446744073709551615ull;
23168 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23169 | (llmax / ll) | (llmax % ll)
23170 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23171 | (ullmax / ull) | (ullmax % ull));
23172 ;
23173 return 0;
23174}
23175
23176_ACEOF
23177if ac_fn_c_try_link "$LINENO"; then :
23178 if test "$cross_compiling" = yes; then :
23179 ac_cv_type_long_long_int=yes
23180else
23181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23182/* end confdefs.h. */
23183#include <limits.h>
23184 #ifndef LLONG_MAX
23185 # define HALF \
23186 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23187 # define LLONG_MAX (HALF - 1 + HALF)
23188 #endif
23189int
23190main ()
23191{
23192long long int n = 1;
23193 int i;
23194 for (i = 0; ; i++)
23195 {
23196 long long int m = n << i;
23197 if (m >> i != n)
23198 return 1;
23199 if (LLONG_MAX / 2 < m)
23200 break;
23201 }
23202 return 0;
23203 ;
23204 return 0;
23205}
23206_ACEOF
23207if ac_fn_c_try_run "$LINENO"; then :
23208 ac_cv_type_long_long_int=yes
23209else
23210 ac_cv_type_long_long_int=no
23211fi
23212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23213 conftest.$ac_objext conftest.beam conftest.$ac_ext
23214fi
23215
23216else
23217 ac_cv_type_long_long_int=no
23218fi
23219rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23221fi
23222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23223$as_echo "$ac_cv_type_long_long_int" >&6; }
23224 if test $ac_cv_type_long_long_int = yes; then
23225
23226$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23227
23228 fi
23229
23230
23231
23232 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23233if test "x$ac_cv_type_intmax_t" = xyes; then :
23234
23235$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23236
23237else
23238 test $ac_cv_type_long_long_int = yes \
23239 && ac_type='long long int' \
23240 || ac_type='long int'
23241
23242cat >>confdefs.h <<_ACEOF
23243#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023244_ACEOF
23245
23246fi
23247
23248
cristy501c8042011-05-26 17:46:28 +000023249
23250 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23251if test "x$ac_cv_type_intptr_t" = xyes; then :
23252
23253$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023254
cristy3ed852e2009-09-05 21:47:34 +000023255else
cristy501c8042011-05-26 17:46:28 +000023256 for ac_type in 'int' 'long int' 'long long int'; do
23257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23258/* end confdefs.h. */
23259$ac_includes_default
23260int
23261main ()
23262{
23263static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23264test_array [0] = 0
23265
23266 ;
23267 return 0;
23268}
23269_ACEOF
23270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023271
23272cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023273#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023274_ACEOF
23275
cristy501c8042011-05-26 17:46:28 +000023276 ac_type=
23277fi
23278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 test -z "$ac_type" && break
23280 done
cristy3ed852e2009-09-05 21:47:34 +000023281fi
23282
23283
cristy3ed852e2009-09-05 21:47:34 +000023284
cristy501c8042011-05-26 17:46:28 +000023285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23286$as_echo_n "checking for long double... " >&6; }
23287if ${ac_cv_type_long_double+:} false; then :
23288 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023289else
cristy501c8042011-05-26 17:46:28 +000023290 if test "$GCC" = yes; then
23291 ac_cv_type_long_double=yes
23292 else
23293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23294/* end confdefs.h. */
23295/* The Stardent Vistra knows sizeof (long double), but does
23296 not support it. */
23297 long double foo = 0.0L;
23298int
23299main ()
23300{
23301static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23302 sizeof (double) <= sizeof (long double))];
23303test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000023304
cristy501c8042011-05-26 17:46:28 +000023305 ;
23306 return 0;
23307}
cristy3ed852e2009-09-05 21:47:34 +000023308_ACEOF
cristy501c8042011-05-26 17:46:28 +000023309if ac_fn_c_try_compile "$LINENO"; then :
23310 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023311else
cristy501c8042011-05-26 17:46:28 +000023312 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023313fi
cristy501c8042011-05-26 17:46:28 +000023314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23315 fi
cristy3ed852e2009-09-05 21:47:34 +000023316fi
cristy501c8042011-05-26 17:46:28 +000023317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23318$as_echo "$ac_cv_type_long_double" >&6; }
23319 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023320
cristy501c8042011-05-26 17:46:28 +000023321$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023322
cristy501c8042011-05-26 17:46:28 +000023323 fi
23324
cristy3ed852e2009-09-05 21:47:34 +000023325
cristy8b350f62009-11-15 23:12:43 +000023326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
cristy3ed852e2009-09-05 21:47:34 +000023327$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023328if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023329 $as_echo_n "(cached) " >&6
23330else
cristy8b350f62009-11-15 23:12:43 +000023331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023332/* end confdefs.h. */
23333#include <float.h>
23334 long double const a[] =
23335 {
23336 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23337 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23338 };
23339 long double
23340 f (long double x)
23341 {
23342 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23343 + (x ? f (x) : 'c'));
23344 }
23345
23346int
23347main ()
23348{
23349static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23350 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23351 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23352 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23353 && (int) LDBL_EPSILON == 0
23354 )];
23355test_array [0] = 0
23356
23357 ;
23358 return 0;
23359}
23360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023361if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023362 ac_cv_type_long_double_wider=yes
23363else
cristy8b350f62009-11-15 23:12:43 +000023364 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023365fi
cristy3ed852e2009-09-05 21:47:34 +000023366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367fi
cristy8b350f62009-11-15 23:12:43 +000023368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023369$as_echo "$ac_cv_type_long_double_wider" >&6; }
23370 if test $ac_cv_type_long_double_wider = yes; then
23371
cristy8b350f62009-11-15 23:12:43 +000023372$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023373
23374 fi
23375
23376
cristy501c8042011-05-26 17:46:28 +000023377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23378$as_echo_n "checking for long long int... " >&6; }
23379if ${ac_cv_type_long_long_int+:} false; then :
23380 $as_echo_n "(cached) " >&6
23381else
23382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383/* end confdefs.h. */
23384
23385 /* For now, do not test the preprocessor; as of 2007 there are too many
23386 implementations with broken preprocessors. Perhaps this can
23387 be revisited in 2012. In the meantime, code should not expect
23388 #if to work with literals wider than 32 bits. */
23389 /* Test literals. */
23390 long long int ll = 9223372036854775807ll;
23391 long long int nll = -9223372036854775807LL;
23392 unsigned long long int ull = 18446744073709551615ULL;
23393 /* Test constant expressions. */
23394 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23395 ? 1 : -1)];
23396 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23397 ? 1 : -1)];
23398 int i = 63;
23399int
23400main ()
23401{
23402/* Test availability of runtime routines for shift and division. */
23403 long long int llmax = 9223372036854775807ll;
23404 unsigned long long int ullmax = 18446744073709551615ull;
23405 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23406 | (llmax / ll) | (llmax % ll)
23407 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23408 | (ullmax / ull) | (ullmax % ull));
23409 ;
23410 return 0;
23411}
23412
23413_ACEOF
23414if ac_fn_c_try_link "$LINENO"; then :
23415 if test "$cross_compiling" = yes; then :
23416 ac_cv_type_long_long_int=yes
23417else
23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23419/* end confdefs.h. */
23420#include <limits.h>
23421 #ifndef LLONG_MAX
23422 # define HALF \
23423 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23424 # define LLONG_MAX (HALF - 1 + HALF)
23425 #endif
23426int
23427main ()
23428{
23429long long int n = 1;
23430 int i;
23431 for (i = 0; ; i++)
23432 {
23433 long long int m = n << i;
23434 if (m >> i != n)
23435 return 1;
23436 if (LLONG_MAX / 2 < m)
23437 break;
23438 }
23439 return 0;
23440 ;
23441 return 0;
23442}
23443_ACEOF
23444if ac_fn_c_try_run "$LINENO"; then :
23445 ac_cv_type_long_long_int=yes
23446else
23447 ac_cv_type_long_long_int=no
23448fi
23449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23450 conftest.$ac_objext conftest.beam conftest.$ac_ext
23451fi
23452
23453else
23454 ac_cv_type_long_long_int=no
23455fi
23456rm -f core conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23458fi
23459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23460$as_echo "$ac_cv_type_long_long_int" >&6; }
23461 if test $ac_cv_type_long_long_int = yes; then
23462
23463$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23464
23465 fi
23466
23467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23468$as_echo_n "checking for mbstate_t... " >&6; }
23469if ${ac_cv_type_mbstate_t+:} false; then :
23470 $as_echo_n "(cached) " >&6
23471else
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473/* end confdefs.h. */
23474$ac_includes_default
23475# include <wchar.h>
23476int
23477main ()
23478{
23479mbstate_t x; return sizeof x;
23480 ;
23481 return 0;
23482}
23483_ACEOF
23484if ac_fn_c_try_compile "$LINENO"; then :
23485 ac_cv_type_mbstate_t=yes
23486else
23487 ac_cv_type_mbstate_t=no
23488fi
23489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490fi
23491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23492$as_echo "$ac_cv_type_mbstate_t" >&6; }
23493 if test $ac_cv_type_mbstate_t = yes; then
23494
23495$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23496
23497 else
23498
23499$as_echo "#define mbstate_t int" >>confdefs.h
23500
23501 fi
23502ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23503if test "x$ac_cv_type_mode_t" = xyes; then :
23504
23505else
23506
23507cat >>confdefs.h <<_ACEOF
23508#define mode_t int
23509_ACEOF
23510
23511fi
23512
23513ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23514if test "x$ac_cv_type_off_t" = xyes; then :
23515
23516else
23517
23518cat >>confdefs.h <<_ACEOF
23519#define off_t long int
23520_ACEOF
23521
23522fi
23523
23524ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23525if test "x$ac_cv_type_pid_t" = xyes; then :
23526
23527else
23528
23529cat >>confdefs.h <<_ACEOF
23530#define pid_t int
23531_ACEOF
23532
23533fi
23534
23535ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23536if test "x$ac_cv_type_size_t" = xyes; then :
23537
23538else
23539
23540cat >>confdefs.h <<_ACEOF
23541#define size_t unsigned int
23542_ACEOF
23543
23544fi
23545
23546ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23547if test "x$ac_cv_type_ssize_t" = xyes; then :
23548
23549else
23550
23551cat >>confdefs.h <<_ACEOF
23552#define ssize_t int
23553_ACEOF
23554
23555fi
23556
23557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23558$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23559if ${ac_cv_type_uid_t+:} false; then :
23560 $as_echo_n "(cached) " >&6
23561else
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563/* end confdefs.h. */
23564#include <sys/types.h>
23565
23566_ACEOF
23567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23568 $EGREP "uid_t" >/dev/null 2>&1; then :
23569 ac_cv_type_uid_t=yes
23570else
23571 ac_cv_type_uid_t=no
23572fi
23573rm -f conftest*
23574
23575fi
23576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23577$as_echo "$ac_cv_type_uid_t" >&6; }
23578if test $ac_cv_type_uid_t = no; then
23579
23580$as_echo "#define uid_t int" >>confdefs.h
23581
23582
23583$as_echo "#define gid_t int" >>confdefs.h
23584
23585fi
23586
23587ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23588case $ac_cv_c_uint8_t in #(
23589 no|yes) ;; #(
23590 *)
23591
23592$as_echo "#define _UINT8_T 1" >>confdefs.h
23593
23594
23595cat >>confdefs.h <<_ACEOF
23596#define uint8_t $ac_cv_c_uint8_t
23597_ACEOF
23598;;
23599 esac
23600
23601ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23602case $ac_cv_c_uint16_t in #(
23603 no|yes) ;; #(
23604 *)
23605
23606
23607cat >>confdefs.h <<_ACEOF
23608#define uint16_t $ac_cv_c_uint16_t
23609_ACEOF
23610;;
23611 esac
23612
23613ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23614case $ac_cv_c_uint32_t in #(
23615 no|yes) ;; #(
23616 *)
23617
23618$as_echo "#define _UINT32_T 1" >>confdefs.h
23619
23620
23621cat >>confdefs.h <<_ACEOF
23622#define uint32_t $ac_cv_c_uint32_t
23623_ACEOF
23624;;
23625 esac
23626
23627ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23628case $ac_cv_c_uint64_t in #(
23629 no|yes) ;; #(
23630 *)
23631
23632$as_echo "#define _UINT64_T 1" >>confdefs.h
23633
23634
23635cat >>confdefs.h <<_ACEOF
23636#define uint64_t $ac_cv_c_uint64_t
23637_ACEOF
23638;;
23639 esac
23640
23641
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23643$as_echo_n "checking for unsigned long long int... " >&6; }
23644if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23645 $as_echo_n "(cached) " >&6
23646else
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648/* end confdefs.h. */
23649
23650 /* For now, do not test the preprocessor; as of 2007 there are too many
23651 implementations with broken preprocessors. Perhaps this can
23652 be revisited in 2012. In the meantime, code should not expect
23653 #if to work with literals wider than 32 bits. */
23654 /* Test literals. */
23655 long long int ll = 9223372036854775807ll;
23656 long long int nll = -9223372036854775807LL;
23657 unsigned long long int ull = 18446744073709551615ULL;
23658 /* Test constant expressions. */
23659 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23660 ? 1 : -1)];
23661 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23662 ? 1 : -1)];
23663 int i = 63;
23664int
23665main ()
23666{
23667/* Test availability of runtime routines for shift and division. */
23668 long long int llmax = 9223372036854775807ll;
23669 unsigned long long int ullmax = 18446744073709551615ull;
23670 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23671 | (llmax / ll) | (llmax % ll)
23672 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23673 | (ullmax / ull) | (ullmax % ull));
23674 ;
23675 return 0;
23676}
23677
23678_ACEOF
23679if ac_fn_c_try_link "$LINENO"; then :
23680 ac_cv_type_unsigned_long_long_int=yes
23681else
23682 ac_cv_type_unsigned_long_long_int=no
23683fi
23684rm -f core conftest.err conftest.$ac_objext \
23685 conftest$ac_exeext conftest.$ac_ext
23686fi
23687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23688$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23689 if test $ac_cv_type_unsigned_long_long_int = yes; then
23690
23691$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23692
23693 fi
23694
23695
23696
23697 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23698if test "x$ac_cv_type_uintmax_t" = xyes; then :
23699
23700$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23701
23702else
23703 test $ac_cv_type_unsigned_long_long_int = yes \
23704 && ac_type='unsigned long long int' \
23705 || ac_type='unsigned long int'
23706
23707cat >>confdefs.h <<_ACEOF
23708#define uintmax_t $ac_type
23709_ACEOF
23710
23711fi
23712
23713
23714
23715 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23716if test "x$ac_cv_type_uintptr_t" = xyes; then :
23717
23718$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23719
23720else
23721 for ac_type in 'unsigned int' 'unsigned long int' \
23722 'unsigned long long int'; do
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724/* end confdefs.h. */
23725$ac_includes_default
23726int
23727main ()
23728{
23729static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23730test_array [0] = 0
23731
23732 ;
23733 return 0;
23734}
23735_ACEOF
23736if ac_fn_c_try_compile "$LINENO"; then :
23737
23738cat >>confdefs.h <<_ACEOF
23739#define uintptr_t $ac_type
23740_ACEOF
23741
23742 ac_type=
23743fi
23744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 test -z "$ac_type" && break
23746 done
23747fi
23748
23749
23750
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23752$as_echo_n "checking for unsigned long long int... " >&6; }
23753if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23754 $as_echo_n "(cached) " >&6
23755else
23756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23757/* end confdefs.h. */
23758
23759 /* For now, do not test the preprocessor; as of 2007 there are too many
23760 implementations with broken preprocessors. Perhaps this can
23761 be revisited in 2012. In the meantime, code should not expect
23762 #if to work with literals wider than 32 bits. */
23763 /* Test literals. */
23764 long long int ll = 9223372036854775807ll;
23765 long long int nll = -9223372036854775807LL;
23766 unsigned long long int ull = 18446744073709551615ULL;
23767 /* Test constant expressions. */
23768 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23769 ? 1 : -1)];
23770 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23771 ? 1 : -1)];
23772 int i = 63;
23773int
23774main ()
23775{
23776/* Test availability of runtime routines for shift and division. */
23777 long long int llmax = 9223372036854775807ll;
23778 unsigned long long int ullmax = 18446744073709551615ull;
23779 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23780 | (llmax / ll) | (llmax % ll)
23781 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23782 | (ullmax / ull) | (ullmax % ull));
23783 ;
23784 return 0;
23785}
23786
23787_ACEOF
23788if ac_fn_c_try_link "$LINENO"; then :
23789 ac_cv_type_unsigned_long_long_int=yes
23790else
23791 ac_cv_type_unsigned_long_long_int=no
23792fi
23793rm -f core conftest.err conftest.$ac_objext \
23794 conftest$ac_exeext conftest.$ac_ext
23795fi
23796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23797$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23798 if test $ac_cv_type_unsigned_long_long_int = yes; then
23799
23800$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23801
23802 fi
23803
23804
cristy3ed852e2009-09-05 21:47:34 +000023805# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23806# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023809if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023810 $as_echo_n "(cached) " >&6
23811else
cristy8b350f62009-11-15 23:12:43 +000023812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023813/* end confdefs.h. */
23814$ac_includes_default
23815int
23816main ()
23817{
23818static int test_array [1 - 2 * !(((char) -1) < 0)];
23819test_array [0] = 0
23820
23821 ;
23822 return 0;
23823}
23824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023826 ac_cv_c_char_unsigned=no
23827else
cristy8b350f62009-11-15 23:12:43 +000023828 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy3ed852e2009-09-05 21:47:34 +000023830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831fi
cristy8b350f62009-11-15 23:12:43 +000023832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023833$as_echo "$ac_cv_c_char_unsigned" >&6; }
23834if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023835 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023836
23837fi
23838
23839
23840# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23841# The cast to long int works around a bug in the HP C Compiler
23842# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23843# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23844# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023847if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023848 $as_echo_n "(cached) " >&6
23849else
cristy8b350f62009-11-15 23:12:43 +000023850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023851
cristy3ed852e2009-09-05 21:47:34 +000023852else
cristy8b350f62009-11-15 23:12:43 +000023853 if test "$ac_cv_type_signed_short" = yes; then
23854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023856as_fn_error 77 "cannot compute sizeof (signed short)
23857See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023858 else
23859 ac_cv_sizeof_signed_short=0
23860 fi
23861fi
cristy8b350f62009-11-15 23:12:43 +000023862
cristy3ed852e2009-09-05 21:47:34 +000023863fi
cristy8b350f62009-11-15 23:12:43 +000023864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023865$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23866
23867
23868
23869cat >>confdefs.h <<_ACEOF
23870#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23871_ACEOF
23872
23873
23874
23875# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23876# The cast to long int works around a bug in the HP C Compiler
23877# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23878# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23879# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023881$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023882if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023883 $as_echo_n "(cached) " >&6
23884else
cristy8b350f62009-11-15 23:12:43 +000023885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023886
cristy3ed852e2009-09-05 21:47:34 +000023887else
cristy8b350f62009-11-15 23:12:43 +000023888 if test "$ac_cv_type_unsigned_short" = yes; then
23889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023891as_fn_error 77 "cannot compute sizeof (unsigned short)
23892See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023893 else
23894 ac_cv_sizeof_unsigned_short=0
23895 fi
23896fi
cristy8b350f62009-11-15 23:12:43 +000023897
cristy3ed852e2009-09-05 21:47:34 +000023898fi
cristy8b350f62009-11-15 23:12:43 +000023899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023900$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23901
23902
23903
23904cat >>confdefs.h <<_ACEOF
23905#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23906_ACEOF
23907
23908
23909
23910# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23911# The cast to long int works around a bug in the HP C Compiler
23912# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23913# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23914# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023916$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023917if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023918 $as_echo_n "(cached) " >&6
23919else
cristy8b350f62009-11-15 23:12:43 +000023920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023921
cristy3ed852e2009-09-05 21:47:34 +000023922else
cristy8b350f62009-11-15 23:12:43 +000023923 if test "$ac_cv_type_signed_int" = yes; then
23924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023926as_fn_error 77 "cannot compute sizeof (signed int)
23927See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023928 else
23929 ac_cv_sizeof_signed_int=0
23930 fi
23931fi
cristy8b350f62009-11-15 23:12:43 +000023932
cristy3ed852e2009-09-05 21:47:34 +000023933fi
cristy8b350f62009-11-15 23:12:43 +000023934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023935$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23936
23937
23938
23939cat >>confdefs.h <<_ACEOF
23940#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23941_ACEOF
23942
23943
23944
23945# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23946# The cast to long int works around a bug in the HP C Compiler
23947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23949# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023952if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023953 $as_echo_n "(cached) " >&6
23954else
cristy8b350f62009-11-15 23:12:43 +000023955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023956
cristy3ed852e2009-09-05 21:47:34 +000023957else
cristy8b350f62009-11-15 23:12:43 +000023958 if test "$ac_cv_type_unsigned_int" = yes; then
23959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023961as_fn_error 77 "cannot compute sizeof (unsigned int)
23962See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023963 else
23964 ac_cv_sizeof_unsigned_int=0
23965 fi
23966fi
cristy8b350f62009-11-15 23:12:43 +000023967
cristy3ed852e2009-09-05 21:47:34 +000023968fi
cristy8b350f62009-11-15 23:12:43 +000023969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023970$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23971
23972
23973
23974cat >>confdefs.h <<_ACEOF
23975#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23976_ACEOF
23977
23978
23979
23980# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23981# The cast to long int works around a bug in the HP C Compiler
23982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23984# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023986$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023987if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023988 $as_echo_n "(cached) " >&6
23989else
cristy8b350f62009-11-15 23:12:43 +000023990 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023991
cristy3ed852e2009-09-05 21:47:34 +000023992else
cristy8b350f62009-11-15 23:12:43 +000023993 if test "$ac_cv_type_signed_long" = yes; then
23994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023996as_fn_error 77 "cannot compute sizeof (signed long)
23997See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023998 else
23999 ac_cv_sizeof_signed_long=0
24000 fi
24001fi
cristy8b350f62009-11-15 23:12:43 +000024002
cristy3ed852e2009-09-05 21:47:34 +000024003fi
cristy8b350f62009-11-15 23:12:43 +000024004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024005$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24006
24007
24008
24009cat >>confdefs.h <<_ACEOF
24010#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24011_ACEOF
24012
24013
24014
24015# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24016# The cast to long int works around a bug in the HP C Compiler
24017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24019# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024021$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024022if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024023 $as_echo_n "(cached) " >&6
24024else
cristy8b350f62009-11-15 23:12:43 +000024025 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024026
cristy3ed852e2009-09-05 21:47:34 +000024027else
cristy8b350f62009-11-15 23:12:43 +000024028 if test "$ac_cv_type_unsigned_long" = yes; then
24029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024031as_fn_error 77 "cannot compute sizeof (unsigned long)
24032See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024033 else
24034 ac_cv_sizeof_unsigned_long=0
24035 fi
24036fi
cristy8b350f62009-11-15 23:12:43 +000024037
cristy3ed852e2009-09-05 21:47:34 +000024038fi
cristy8b350f62009-11-15 23:12:43 +000024039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024040$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24041
24042
24043
24044cat >>confdefs.h <<_ACEOF
24045#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24046_ACEOF
24047
24048
24049
24050# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24051# 'signed long long' is not supported then the value defined is zero.
24052# The cast to long int works around a bug in the HP C Compiler
24053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24055# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024058if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 $as_echo_n "(cached) " >&6
24060else
cristy8b350f62009-11-15 23:12:43 +000024061 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024062
cristy3ed852e2009-09-05 21:47:34 +000024063else
cristy8b350f62009-11-15 23:12:43 +000024064 if test "$ac_cv_type_signed_long_long" = yes; then
24065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024067as_fn_error 77 "cannot compute sizeof (signed long long)
24068See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024069 else
24070 ac_cv_sizeof_signed_long_long=0
24071 fi
24072fi
cristy8b350f62009-11-15 23:12:43 +000024073
cristy3ed852e2009-09-05 21:47:34 +000024074fi
cristy8b350f62009-11-15 23:12:43 +000024075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24077
24078
24079
24080cat >>confdefs.h <<_ACEOF
24081#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24082_ACEOF
24083
24084
24085
24086# Obtain size of a 'unsigned long long' and define as
24087# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24088# supported then the value defined is zero.
24089# The cast to long int works around a bug in the HP C Compiler
24090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24092# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024094$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024095if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024096 $as_echo_n "(cached) " >&6
24097else
cristy8b350f62009-11-15 23:12:43 +000024098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024099
cristy3ed852e2009-09-05 21:47:34 +000024100else
cristy8b350f62009-11-15 23:12:43 +000024101 if test "$ac_cv_type_unsigned_long_long" = yes; then
24102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024104as_fn_error 77 "cannot compute sizeof (unsigned long long)
24105See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024106 else
24107 ac_cv_sizeof_unsigned_long_long=0
24108 fi
24109fi
cristy8b350f62009-11-15 23:12:43 +000024110
cristy3ed852e2009-09-05 21:47:34 +000024111fi
cristy8b350f62009-11-15 23:12:43 +000024112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024113$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24114
24115
24116
24117cat >>confdefs.h <<_ACEOF
24118#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24119_ACEOF
24120
24121
24122
24123# Obtain size of off_t and define as SIZEOF_OFF_T
24124# The cast to long int works around a bug in the HP C Compiler
24125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24127# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024129$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024130if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024131 $as_echo_n "(cached) " >&6
24132else
cristy8b350f62009-11-15 23:12:43 +000024133 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024134
cristy3ed852e2009-09-05 21:47:34 +000024135else
cristy8b350f62009-11-15 23:12:43 +000024136 if test "$ac_cv_type_off_t" = yes; then
24137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024139as_fn_error 77 "cannot compute sizeof (off_t)
24140See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024141 else
24142 ac_cv_sizeof_off_t=0
24143 fi
24144fi
cristy8b350f62009-11-15 23:12:43 +000024145
cristy3ed852e2009-09-05 21:47:34 +000024146fi
cristy8b350f62009-11-15 23:12:43 +000024147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024148$as_echo "$ac_cv_sizeof_off_t" >&6; }
24149
24150
24151
24152cat >>confdefs.h <<_ACEOF
24153#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24154_ACEOF
24155
24156
24157
24158# Obtain size of size_t and define as SIZEOF_SIZE_T
24159# The cast to long int works around a bug in the HP C Compiler
24160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24162# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024164$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024165if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024166 $as_echo_n "(cached) " >&6
24167else
cristy8b350f62009-11-15 23:12:43 +000024168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024169
cristy3ed852e2009-09-05 21:47:34 +000024170else
cristy8b350f62009-11-15 23:12:43 +000024171 if test "$ac_cv_type_size_t" = yes; then
24172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024174as_fn_error 77 "cannot compute sizeof (size_t)
24175See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024176 else
24177 ac_cv_sizeof_size_t=0
24178 fi
24179fi
cristy8b350f62009-11-15 23:12:43 +000024180
cristy3ed852e2009-09-05 21:47:34 +000024181fi
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$ac_cv_sizeof_size_t" >&6; }
24184
24185
24186
24187cat >>confdefs.h <<_ACEOF
24188#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24189_ACEOF
24190
24191
24192
cristy330e9352010-06-01 18:42:49 +000024193# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24194# The cast to long int works around a bug in the HP C Compiler
24195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24197# This bug is HP SR number 8606223364.
24198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24199$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024200if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024201 $as_echo_n "(cached) " >&6
24202else
24203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24204
24205else
24206 if test "$ac_cv_type_ssize_t" = yes; then
24207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024209as_fn_error 77 "cannot compute sizeof (ssize_t)
24210See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024211 else
24212 ac_cv_sizeof_ssize_t=0
24213 fi
24214fi
24215
24216fi
24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24218$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24219
24220
24221
24222cat >>confdefs.h <<_ACEOF
24223#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24224_ACEOF
24225
24226
24227
cristy3ed852e2009-09-05 21:47:34 +000024228# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24229# The cast to long int works around a bug in the HP C Compiler
24230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024234$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024235if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 $as_echo_n "(cached) " >&6
24237else
cristy8b350f62009-11-15 23:12:43 +000024238 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024239
cristy3ed852e2009-09-05 21:47:34 +000024240else
cristy8b350f62009-11-15 23:12:43 +000024241 if test "$ac_cv_type_unsigned_intp" = yes; then
24242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024244as_fn_error 77 "cannot compute sizeof (unsigned int*)
24245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024246 else
24247 ac_cv_sizeof_unsigned_intp=0
24248 fi
24249fi
cristy8b350f62009-11-15 23:12:43 +000024250
cristy3ed852e2009-09-05 21:47:34 +000024251fi
cristy8b350f62009-11-15 23:12:43 +000024252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024253$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24254
24255
24256
24257cat >>confdefs.h <<_ACEOF
24258#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24259_ACEOF
24260
24261
24262
24263#
24264# Compute sized types for current CPU and compiler options.
24265#
24266
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo_n "checking for signed 8-bit type... " >&6; }
24269INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24271$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024272
24273
cristy8b350f62009-11-15 23:12:43 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24276UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024277{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24278$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024279
24280
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo_n "checking for signed 16-bit type... " >&6; }
24283INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024284{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24285$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024286
24287
cristy8b350f62009-11-15 23:12:43 +000024288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24290UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024291{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24292$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024293
24294
cristy8b350f62009-11-15 23:12:43 +000024295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024296$as_echo_n "checking for signed 32-bit type... " >&6; }
24297INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024298INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024299if test $ac_cv_sizeof_signed_int -eq 4; then
24300 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024301 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024302elif test $ac_cv_sizeof_signed_long -eq 4; then
24303 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024304 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024305fi
cristy09b53e12011-10-14 12:47:22 +000024306{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24307$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024308
24309
cristy6d5e20f2011-04-25 13:48:54 +000024310
cristy8b350f62009-11-15 23:12:43 +000024311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024312$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24313UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024314UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024315if test $ac_cv_sizeof_unsigned_int -eq 4; then
24316 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024317 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024318elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24319 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024320 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024321fi
cristy09b53e12011-10-14 12:47:22 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24323$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024324
24325
cristy6d5e20f2011-04-25 13:48:54 +000024326
cristy8b350f62009-11-15 23:12:43 +000024327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo_n "checking for signed 64-bit type... " >&6; }
24329INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024330INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024331if test $ac_cv_sizeof_signed_long -eq 8; then
24332 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024333 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024334elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24335 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024336 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024337fi
cristy3a99dcf2011-12-17 01:29:40 +000024338case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024339 mingw* )
24340 INT64_F='"I64"'
24341 ;;
24342esac
cristy09b53e12011-10-14 12:47:22 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24344$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024345
24346
cristy6d5e20f2011-04-25 13:48:54 +000024347
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24350UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024351UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024352if test $ac_cv_sizeof_unsigned_long -eq 8; then
24353 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024354 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024355elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24356 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024357 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024358fi
cristy3a99dcf2011-12-17 01:29:40 +000024359case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024360 mingw* )
24361 UINT64_F='"I64"'
24362 ;;
24363esac
cristy09b53e12011-10-14 12:47:22 +000024364{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24365$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024366
24367
cristy6d5e20f2011-04-25 13:48:54 +000024368
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo_n "checking for unsigned maximum type... " >&6; }
24371UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024372UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024373if test "$UINT64_T" != 'none'; then
24374 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024375 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024376elif test "$UINT32_T" != 'none'; then
24377 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024378 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024379fi
cristy09b53e12011-10-14 12:47:22 +000024380{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24381$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024382
24383
cristy6d5e20f2011-04-25 13:48:54 +000024384
cristy8b350f62009-11-15 23:12:43 +000024385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024386$as_echo_n "checking for pointer difference type... " >&6; }
24387UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024388UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024389if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24390 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024391 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024392elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24393 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024394 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024395fi
cristy09b53e12011-10-14 12:47:22 +000024396{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24397$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024398
24399
cristy6d5e20f2011-04-25 13:48:54 +000024400
cristy8b350f62009-11-15 23:12:43 +000024401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024402$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024404/* end confdefs.h. */
24405
24406int
24407main ()
24408{
24409{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24410 ;
24411 return 0;
24412}
24413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024414if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024415 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24416$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024417else
cristy09b53e12011-10-14 12:47:22 +000024418 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24419$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024423/* end confdefs.h. */
24424
24425int
24426main ()
24427{
24428{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24429 ;
24430 return 0;
24431}
24432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024433if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024434 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24435$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024436
cristy8b350f62009-11-15 23:12:43 +000024437$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024438
24439else
cristy09b53e12011-10-14 12:47:22 +000024440 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24441$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024442
cristy8b350f62009-11-15 23:12:43 +000024443$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024444
24445fi
cristy3ed852e2009-09-05 21:47:34 +000024446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447fi
cristy3ed852e2009-09-05 21:47:34 +000024448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24449
24450########
24451#
24452# Check for functions
24453#
24454########
cristy73bd4a52010-10-05 11:24:23 +000024455for ac_header in stdlib.h unistd.h
24456do :
24457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24458ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024460 cat >>confdefs.h <<_ACEOF
24461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24462_ACEOF
24463
24464fi
24465
24466done
24467
24468for ac_func in getpagesize
24469do :
24470 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024471if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024472 cat >>confdefs.h <<_ACEOF
24473#define HAVE_GETPAGESIZE 1
24474_ACEOF
24475
24476fi
24477done
24478
24479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24480$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024481if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024482 $as_echo_n "(cached) " >&6
24483else
24484 if test "$cross_compiling" = yes; then :
24485 magick_cv_func_mmap_fileio=no
24486else
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488/* end confdefs.h. */
24489$ac_includes_default
24490/* malloc might have been renamed as rpl_malloc. */
24491#undef malloc
24492
24493/*
24494 This test is derived from GNU Autoconf's similar macro.
24495 The purpose of this test is to verify that files may be memory
24496 mapped, and that memory mapping and file I/O are coherent.
24497
24498 The test creates a test file, memory maps the file, updates
24499 the file using the memory map, and then reads the file using
24500 file I/O to verify that the file contains the updates.
24501*/
24502
24503#include <fcntl.h>
24504#include <sys/mman.h>
24505
24506#if !STDC_HEADERS && !HAVE_STDLIB_H
24507char *malloc ();
24508#endif
24509
24510/* This mess was copied from the GNU getpagesize.h. */
24511#if !HAVE_GETPAGESIZE
24512/* Assume that all systems that can run configure have sys/param.h. */
24513# if !HAVE_SYS_PARAM_H
24514# define HAVE_SYS_PARAM_H 1
24515# endif
24516
24517# ifdef _SC_PAGESIZE
24518# define getpagesize() sysconf(_SC_PAGESIZE)
24519# else /* no _SC_PAGESIZE */
24520# if HAVE_SYS_PARAM_H
24521# include <sys/param.h>
24522# ifdef EXEC_PAGESIZE
24523# define getpagesize() EXEC_PAGESIZE
24524# else /* no EXEC_PAGESIZE */
24525# ifdef NBPG
24526# define getpagesize() NBPG * CLSIZE
24527# ifndef CLSIZE
24528# define CLSIZE 1
24529# endif /* no CLSIZE */
24530# else /* no NBPG */
24531# ifdef NBPC
24532# define getpagesize() NBPC
24533# else /* no NBPC */
24534# ifdef PAGESIZE
24535# define getpagesize() PAGESIZE
24536# endif /* PAGESIZE */
24537# endif /* no NBPC */
24538# endif /* no NBPG */
24539# endif /* no EXEC_PAGESIZE */
24540# else /* no HAVE_SYS_PARAM_H */
24541# define getpagesize() 8192 /* punt totally */
24542# endif /* no HAVE_SYS_PARAM_H */
24543# endif /* no _SC_PAGESIZE */
24544
24545#endif /* no HAVE_GETPAGESIZE */
24546
24547int
24548main ()
24549{
24550 char *data, *data2, *data3;
24551 int i, pagesize;
24552 int fd;
24553
24554 pagesize = getpagesize ();
24555
24556 /* First, make a file with some known garbage in it. */
24557 data = (char *) malloc (pagesize);
24558 if (!data)
24559 exit (1);
24560 for (i = 0; i < pagesize; ++i)
24561 *(data + i) = rand ();
24562 umask (0);
24563 fd = creat ("conftest.mmap", 0600);
24564 if (fd < 0)
24565 exit (1);
24566 if (write (fd, data, pagesize) != pagesize)
24567 exit (1);
24568 close (fd);
24569
24570 /* Mmap the file as read/write/shared and verify that we see the
24571 same garbage. */
24572 fd = open ("conftest.mmap", O_RDWR);
24573 if (fd < 0)
24574 exit (1);
24575 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24576 if (data2 == 0)
24577 exit (1);
24578 for (i = 0; i < pagesize; ++i)
24579 if (*(data + i) != *(data2 + i))
24580 exit (1);
24581
24582 /* Finally, make sure that changes to the mapped area
24583 percolate back to the file as seen by read(). */
24584 for (i = 0; i < pagesize; ++i)
24585 *(data2 + i) = *(data2 + i) + 1;
24586 data3 = (char *) malloc (pagesize);
24587 if (!data3)
24588 exit (1);
24589 if (read (fd, data3, pagesize) != pagesize)
24590 exit (1);
24591 for (i = 0; i < pagesize; ++i)
24592 if (*(data2 + i) != *(data3 + i))
24593 exit (1);
24594 close (fd);
24595 exit (0);
24596}
24597_ACEOF
24598if ac_fn_c_try_run "$LINENO"; then :
24599 magick_cv_func_mmap_fileio=yes
24600else
24601 magick_cv_func_mmap_fileio=no
24602fi
24603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24604 conftest.$ac_objext conftest.beam conftest.$ac_ext
24605fi
24606
24607fi
24608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24609$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24610if test $magick_cv_func_mmap_fileio = yes; then
24611
24612$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24613
24614fi
24615rm -f conftest.mmap
24616
cristy8b350f62009-11-15 23:12:43 +000024617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024618$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024619if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024620 $as_echo_n "(cached) " >&6
24621else
cristy8b350f62009-11-15 23:12:43 +000024622 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024623 ac_cv_func_closedir_void=yes
24624else
cristy8b350f62009-11-15 23:12:43 +000024625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024626/* end confdefs.h. */
24627$ac_includes_default
24628#include <$ac_header_dirent>
24629#ifndef __cplusplus
24630int closedir ();
24631#endif
24632
24633int
24634main ()
24635{
24636return closedir (opendir (".")) != 0;
24637 ;
24638 return 0;
24639}
24640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024641if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024642 ac_cv_func_closedir_void=no
24643else
cristy8b350f62009-11-15 23:12:43 +000024644 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024645fi
cristy8b350f62009-11-15 23:12:43 +000024646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24647 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024648fi
24649
cristy3ed852e2009-09-05 21:47:34 +000024650fi
cristy8b350f62009-11-15 23:12:43 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo "$ac_cv_func_closedir_void" >&6; }
24653if test $ac_cv_func_closedir_void = yes; then
24654
cristy8b350f62009-11-15 23:12:43 +000024655$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024656
24657fi
24658
cristycd4c5312009-11-22 01:19:08 +000024659
24660
24661
24662 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024663do :
24664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024665ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24666"
cristy98dddb52010-11-04 00:30:15 +000024667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024668 cat >>confdefs.h <<_ACEOF
24669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24670_ACEOF
24671
24672fi
24673
24674done
24675
cristycd4c5312009-11-22 01:19:08 +000024676
24677
24678
24679
24680
24681
24682
cristy3ed852e2009-09-05 21:47:34 +000024683for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024684do :
24685 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024686if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024687 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024688#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024689_ACEOF
24690
24691fi
24692done
24693
cristy8b350f62009-11-15 23:12:43 +000024694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024695$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024696if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024697 $as_echo_n "(cached) " >&6
24698else
cristy8b350f62009-11-15 23:12:43 +000024699 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024700 ac_cv_func_mmap_fixed_mapped=no
24701else
cristy8b350f62009-11-15 23:12:43 +000024702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024703/* end confdefs.h. */
24704$ac_includes_default
24705/* malloc might have been renamed as rpl_malloc. */
24706#undef malloc
24707
24708/* Thanks to Mike Haertel and Jim Avera for this test.
24709 Here is a matrix of mmap possibilities:
24710 mmap private not fixed
24711 mmap private fixed at somewhere currently unmapped
24712 mmap private fixed at somewhere already mapped
24713 mmap shared not fixed
24714 mmap shared fixed at somewhere currently unmapped
24715 mmap shared fixed at somewhere already mapped
24716 For private mappings, we should verify that changes cannot be read()
24717 back from the file, nor mmap's back from the file at a different
24718 address. (There have been systems where private was not correctly
24719 implemented like the infamous i386 svr4.0, and systems where the
24720 VM page cache was not coherent with the file system buffer cache
24721 like early versions of FreeBSD and possibly contemporary NetBSD.)
24722 For shared mappings, we should conversely verify that changes get
24723 propagated back to all the places they're supposed to be.
24724
24725 Grep wants private fixed already mapped.
24726 The main things grep needs to know about mmap are:
24727 * does it exist and is it safe to write into the mmap'd area
24728 * how to use it (BSD variants) */
24729
24730#include <fcntl.h>
24731#include <sys/mman.h>
24732
24733#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24734char *malloc ();
24735#endif
24736
24737/* This mess was copied from the GNU getpagesize.h. */
24738#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024739# ifdef _SC_PAGESIZE
24740# define getpagesize() sysconf(_SC_PAGESIZE)
24741# else /* no _SC_PAGESIZE */
24742# ifdef HAVE_SYS_PARAM_H
24743# include <sys/param.h>
24744# ifdef EXEC_PAGESIZE
24745# define getpagesize() EXEC_PAGESIZE
24746# else /* no EXEC_PAGESIZE */
24747# ifdef NBPG
24748# define getpagesize() NBPG * CLSIZE
24749# ifndef CLSIZE
24750# define CLSIZE 1
24751# endif /* no CLSIZE */
24752# else /* no NBPG */
24753# ifdef NBPC
24754# define getpagesize() NBPC
24755# else /* no NBPC */
24756# ifdef PAGESIZE
24757# define getpagesize() PAGESIZE
24758# endif /* PAGESIZE */
24759# endif /* no NBPC */
24760# endif /* no NBPG */
24761# endif /* no EXEC_PAGESIZE */
24762# else /* no HAVE_SYS_PARAM_H */
24763# define getpagesize() 8192 /* punt totally */
24764# endif /* no HAVE_SYS_PARAM_H */
24765# endif /* no _SC_PAGESIZE */
24766
24767#endif /* no HAVE_GETPAGESIZE */
24768
24769int
24770main ()
24771{
24772 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024773 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024774 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024775 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024776
24777 pagesize = getpagesize ();
24778
24779 /* First, make a file with some known garbage in it. */
24780 data = (char *) malloc (pagesize);
24781 if (!data)
24782 return 1;
24783 for (i = 0; i < pagesize; ++i)
24784 *(data + i) = rand ();
24785 umask (0);
24786 fd = creat ("conftest.mmap", 0600);
24787 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024788 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024789 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024790 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024791 close (fd);
24792
cristycd4c5312009-11-22 01:19:08 +000024793 /* Next, check that the tail of a page is zero-filled. File must have
24794 non-zero length, otherwise we risk SIGBUS for entire page. */
24795 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24796 if (fd2 < 0)
24797 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024798 cdata2 = "";
24799 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024800 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024801 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024802 if (data2 == MAP_FAILED)
24803 return 6;
24804 for (i = 0; i < pagesize; ++i)
24805 if (*(data2 + i))
24806 return 7;
24807 close (fd2);
24808 if (munmap (data2, pagesize))
24809 return 8;
24810
cristy3ed852e2009-09-05 21:47:34 +000024811 /* Next, try to mmap the file at a fixed address which already has
24812 something else allocated at it. If we can, also make sure that
24813 we see the same garbage. */
24814 fd = open ("conftest.mmap", O_RDWR);
24815 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024816 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024817 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24818 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024819 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024820 for (i = 0; i < pagesize; ++i)
24821 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024822 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024823
24824 /* Finally, make sure that changes to the mapped area do not
24825 percolate back to the file as seen by read(). (This is a bug on
24826 some variants of i386 svr4.0.) */
24827 for (i = 0; i < pagesize; ++i)
24828 *(data2 + i) = *(data2 + i) + 1;
24829 data3 = (char *) malloc (pagesize);
24830 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024831 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024832 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024833 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024834 for (i = 0; i < pagesize; ++i)
24835 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024836 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024837 close (fd);
24838 return 0;
24839}
24840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024841if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 ac_cv_func_mmap_fixed_mapped=yes
24843else
cristy8b350f62009-11-15 23:12:43 +000024844 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024845fi
cristy8b350f62009-11-15 23:12:43 +000024846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24847 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024848fi
24849
cristy3ed852e2009-09-05 21:47:34 +000024850fi
cristy8b350f62009-11-15 23:12:43 +000024851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024852$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24853if test $ac_cv_func_mmap_fixed_mapped = yes; then
24854
cristy8b350f62009-11-15 23:12:43 +000024855$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024856
24857fi
cristycd4c5312009-11-22 01:19:08 +000024858rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024859
cristy3ed852e2009-09-05 21:47:34 +000024860for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024861do :
24862 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024863if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024864 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024865#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024866_ACEOF
24867
24868fi
24869
24870done
24871
cristy3ed852e2009-09-05 21:47:34 +000024872for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024873do :
24874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024877 cat >>confdefs.h <<_ACEOF
24878#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24879_ACEOF
24880
24881fi
24882done
24883
24884if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024886$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024887if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024888 $as_echo_n "(cached) " >&6
24889else
cristy8b350f62009-11-15 23:12:43 +000024890 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024891 ac_cv_func_fork_works=cross
24892else
cristy8b350f62009-11-15 23:12:43 +000024893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024894/* end confdefs.h. */
24895$ac_includes_default
24896int
24897main ()
24898{
24899
24900 /* By Ruediger Kuhlmann. */
24901 return fork () < 0;
24902
24903 ;
24904 return 0;
24905}
24906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024907if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 ac_cv_func_fork_works=yes
24909else
cristy8b350f62009-11-15 23:12:43 +000024910 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024911fi
cristy8b350f62009-11-15 23:12:43 +000024912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24913 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024914fi
24915
cristy3ed852e2009-09-05 21:47:34 +000024916fi
cristy8b350f62009-11-15 23:12:43 +000024917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024918$as_echo "$ac_cv_func_fork_works" >&6; }
24919
24920else
24921 ac_cv_func_fork_works=$ac_cv_func_fork
24922fi
24923if test "x$ac_cv_func_fork_works" = xcross; then
24924 case $host in
24925 *-*-amigaos* | *-*-msdosdjgpp*)
24926 # Override, as these systems have only a dummy fork() stub
24927 ac_cv_func_fork_works=no
24928 ;;
24929 *)
24930 ac_cv_func_fork_works=yes
24931 ;;
24932 esac
cristy8b350f62009-11-15 23:12:43 +000024933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000024934$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24935fi
24936ac_cv_func_vfork_works=$ac_cv_func_vfork
24937if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024939$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024940if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 $as_echo_n "(cached) " >&6
24942else
cristy8b350f62009-11-15 23:12:43 +000024943 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024944 ac_cv_func_vfork_works=cross
24945else
cristy8b350f62009-11-15 23:12:43 +000024946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024947/* end confdefs.h. */
24948/* Thanks to Paul Eggert for this test. */
24949$ac_includes_default
24950#include <sys/wait.h>
24951#ifdef HAVE_VFORK_H
24952# include <vfork.h>
24953#endif
24954/* On some sparc systems, changes by the child to local and incoming
24955 argument registers are propagated back to the parent. The compiler
24956 is told about this with #include <vfork.h>, but some compilers
24957 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24958 static variable whose address is put into a register that is
24959 clobbered by the vfork. */
24960static void
24961#ifdef __cplusplus
24962sparc_address_test (int arg)
24963# else
24964sparc_address_test (arg) int arg;
24965#endif
24966{
24967 static pid_t child;
24968 if (!child) {
24969 child = vfork ();
24970 if (child < 0) {
24971 perror ("vfork");
24972 _exit(2);
24973 }
24974 if (!child) {
24975 arg = getpid();
24976 write(-1, "", 0);
24977 _exit (arg);
24978 }
24979 }
24980}
24981
24982int
24983main ()
24984{
24985 pid_t parent = getpid ();
24986 pid_t child;
24987
24988 sparc_address_test (0);
24989
24990 child = vfork ();
24991
24992 if (child == 0) {
24993 /* Here is another test for sparc vfork register problems. This
24994 test uses lots of local variables, at least as many local
24995 variables as main has allocated so far including compiler
24996 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24997 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24998 reuse the register of parent for one of the local variables,
24999 since it will think that parent can't possibly be used any more
25000 in this routine. Assigning to the local variable will thus
25001 munge parent in the parent process. */
25002 pid_t
25003 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25004 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25005 /* Convince the compiler that p..p7 are live; otherwise, it might
25006 use the same hardware register for all 8 local variables. */
25007 if (p != p1 || p != p2 || p != p3 || p != p4
25008 || p != p5 || p != p6 || p != p7)
25009 _exit(1);
25010
25011 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25012 from child file descriptors. If the child closes a descriptor
25013 before it execs or exits, this munges the parent's descriptor
25014 as well. Test for this by closing stdout in the child. */
25015 _exit(close(fileno(stdout)) != 0);
25016 } else {
25017 int status;
25018 struct stat st;
25019
25020 while (wait(&status) != child)
25021 ;
25022 return (
25023 /* Was there some problem with vforking? */
25024 child < 0
25025
25026 /* Did the child fail? (This shouldn't happen.) */
25027 || status
25028
25029 /* Did the vfork/compiler bug occur? */
25030 || parent != getpid()
25031
25032 /* Did the file descriptor bug occur? */
25033 || fstat(fileno(stdout), &st) != 0
25034 );
25035 }
25036}
25037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025038if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025039 ac_cv_func_vfork_works=yes
25040else
cristy8b350f62009-11-15 23:12:43 +000025041 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025042fi
cristy8b350f62009-11-15 23:12:43 +000025043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25044 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025045fi
25046
cristy3ed852e2009-09-05 21:47:34 +000025047fi
cristy8b350f62009-11-15 23:12:43 +000025048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025049$as_echo "$ac_cv_func_vfork_works" >&6; }
25050
25051fi;
25052if test "x$ac_cv_func_fork_works" = xcross; then
25053 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
cristy3ed852e2009-09-05 21:47:34 +000025055$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25056fi
25057
25058if test "x$ac_cv_func_vfork_works" = xyes; then
25059
cristy8b350f62009-11-15 23:12:43 +000025060$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025061
25062else
25063
cristy8b350f62009-11-15 23:12:43 +000025064$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025065
25066fi
25067if test "x$ac_cv_func_fork_works" = xyes; then
25068
cristy8b350f62009-11-15 23:12:43 +000025069$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025070
25071fi
25072
cristy8b350f62009-11-15 23:12:43 +000025073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025075if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025076 $as_echo_n "(cached) " >&6
25077else
cristy8b350f62009-11-15 23:12:43 +000025078 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025079 ac_cv_func_memcmp_working=no
25080else
cristy8b350f62009-11-15 23:12:43 +000025081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025082/* end confdefs.h. */
25083$ac_includes_default
25084int
25085main ()
25086{
25087
25088 /* Some versions of memcmp are not 8-bit clean. */
25089 char c0 = '\100', c1 = '\200', c2 = '\201';
25090 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25091 return 1;
25092
25093 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25094 or more and with at least one buffer not starting on a 4-byte boundary.
25095 William Lewis provided this test program. */
25096 {
25097 char foo[21];
25098 char bar[21];
25099 int i;
25100 for (i = 0; i < 4; i++)
25101 {
25102 char *a = foo + i;
25103 char *b = bar + i;
25104 strcpy (a, "--------01111111");
25105 strcpy (b, "--------10000000");
25106 if (memcmp (a, b, 16) >= 0)
25107 return 1;
25108 }
25109 return 0;
25110 }
25111
25112 ;
25113 return 0;
25114}
25115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025116if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 ac_cv_func_memcmp_working=yes
25118else
cristy8b350f62009-11-15 23:12:43 +000025119 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025120fi
cristy8b350f62009-11-15 23:12:43 +000025121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25122 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123fi
25124
cristy3ed852e2009-09-05 21:47:34 +000025125fi
cristy8b350f62009-11-15 23:12:43 +000025126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025127$as_echo "$ac_cv_func_memcmp_working" >&6; }
25128test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25129 *" memcmp.$ac_objext "* ) ;;
25130 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25131 ;;
25132esac
25133
25134
cristy3ed852e2009-09-05 21:47:34 +000025135for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025136do :
25137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025140 cat >>confdefs.h <<_ACEOF
25141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25142_ACEOF
25143
25144fi
25145
25146done
25147
cristy8b350f62009-11-15 23:12:43 +000025148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025149$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025150if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025151 $as_echo_n "(cached) " >&6
25152else
25153 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25154 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25155 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025157/* end confdefs.h. */
25158$ac_includes_default
25159#ifdef HAVE_SYS_SELECT_H
25160# include <sys/select.h>
25161#endif
25162#ifdef HAVE_SYS_SOCKET_H
25163# include <sys/socket.h>
25164#endif
25165
25166int
25167main ()
25168{
25169extern int select ($ac_arg1,
25170 $ac_arg234, $ac_arg234, $ac_arg234,
25171 $ac_arg5);
25172 ;
25173 return 0;
25174}
25175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025176if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025177 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025178fi
cristy3ed852e2009-09-05 21:47:34 +000025179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 done
25181 done
25182done
25183# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025184: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025185
25186fi
cristy8b350f62009-11-15 23:12:43 +000025187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025188$as_echo "$ac_cv_func_select_args" >&6; }
25189ac_save_IFS=$IFS; IFS=','
25190set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25191IFS=$ac_save_IFS
25192shift
25193
25194cat >>confdefs.h <<_ACEOF
25195#define SELECT_TYPE_ARG1 $1
25196_ACEOF
25197
25198
25199cat >>confdefs.h <<_ACEOF
25200#define SELECT_TYPE_ARG234 ($2)
25201_ACEOF
25202
25203
25204cat >>confdefs.h <<_ACEOF
25205#define SELECT_TYPE_ARG5 ($3)
25206_ACEOF
25207
25208rm -f conftest*
25209
cristyda16f162011-02-19 23:52:17 +000025210if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 $as_echo_n "(cached) " >&6
25212else
25213 ac_cv_func_setvbuf_reversed=no
25214fi
25215
25216
cristy8b350f62009-11-15 23:12:43 +000025217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025218$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025219if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 $as_echo_n "(cached) " >&6
25221else
cristy8b350f62009-11-15 23:12:43 +000025222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025223/* end confdefs.h. */
25224#include <sys/types.h>
25225#include <signal.h>
25226
25227int
25228main ()
25229{
25230return *(signal (0, 0)) (0) == 1;
25231 ;
25232 return 0;
25233}
25234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025236 ac_cv_type_signal=int
25237else
cristy8b350f62009-11-15 23:12:43 +000025238 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025239fi
cristy3ed852e2009-09-05 21:47:34 +000025240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25241fi
cristy8b350f62009-11-15 23:12:43 +000025242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025243$as_echo "$ac_cv_type_signal" >&6; }
25244
25245cat >>confdefs.h <<_ACEOF
25246#define RETSIGTYPE $ac_cv_type_signal
25247_ACEOF
25248
25249
cristy8b350f62009-11-15 23:12:43 +000025250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025251$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025252if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025253 $as_echo_n "(cached) " >&6
25254else
cristy8b350f62009-11-15 23:12:43 +000025255 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 ac_cv_func_strtod=no
25257else
cristy8b350f62009-11-15 23:12:43 +000025258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025259/* end confdefs.h. */
25260
25261$ac_includes_default
25262#ifndef strtod
25263double strtod ();
25264#endif
25265int
25266main()
25267{
25268 {
25269 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25270 char *string = " +69";
25271 char *term;
25272 double value;
25273 value = strtod (string, &term);
25274 if (value != 69 || term != (string + 4))
25275 return 1;
25276 }
25277
25278 {
25279 /* Under Solaris 2.4, strtod returns the wrong value for the
25280 terminating character under some conditions. */
25281 char *string = "NaN";
25282 char *term;
25283 strtod (string, &term);
25284 if (term != string && *(term - 1) == 0)
25285 return 1;
25286 }
25287 return 0;
25288}
25289
25290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025291if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025292 ac_cv_func_strtod=yes
25293else
cristy8b350f62009-11-15 23:12:43 +000025294 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025295fi
cristy8b350f62009-11-15 23:12:43 +000025296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25297 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025298fi
25299
cristy3ed852e2009-09-05 21:47:34 +000025300fi
cristy8b350f62009-11-15 23:12:43 +000025301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025302$as_echo "$ac_cv_func_strtod" >&6; }
25303if test $ac_cv_func_strtod = no; then
25304 case " $LIBOBJS " in
25305 *" strtod.$ac_objext "* ) ;;
25306 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25307 ;;
25308esac
25309
cristy8b350f62009-11-15 23:12:43 +000025310ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025311if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025312
cristy3ed852e2009-09-05 21:47:34 +000025313fi
25314
cristy3ed852e2009-09-05 21:47:34 +000025315if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025318if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 $as_echo_n "(cached) " >&6
25320else
25321 ac_check_lib_save_LIBS=$LIBS
25322LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025324/* end confdefs.h. */
25325
25326/* Override any GCC internal prototype to avoid an error.
25327 Use char because int might match the return type of a GCC
25328 builtin and then its argument prototype would still apply. */
25329#ifdef __cplusplus
25330extern "C"
25331#endif
25332char pow ();
25333int
25334main ()
25335{
25336return pow ();
25337 ;
25338 return 0;
25339}
25340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025342 ac_cv_lib_m_pow=yes
25343else
cristy8b350f62009-11-15 23:12:43 +000025344 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025345fi
cristy8b350f62009-11-15 23:12:43 +000025346rm -f core conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025348LIBS=$ac_check_lib_save_LIBS
25349fi
cristy8b350f62009-11-15 23:12:43 +000025350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025352if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 POW_LIB=-lm
25354else
cristy8b350f62009-11-15 23:12:43 +000025355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25357fi
25358
25359fi
25360
25361fi
25362
cristy7d4a1d62011-10-13 15:54:12 +000025363ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25364if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25365 ac_have_decl=1
25366else
25367 ac_have_decl=0
25368fi
25369
25370cat >>confdefs.h <<_ACEOF
25371#define HAVE_DECL_STRERROR_R $ac_have_decl
25372_ACEOF
25373
25374for ac_func in strerror_r
25375do :
25376 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25377if test "x$ac_cv_func_strerror_r" = xyes; then :
25378 cat >>confdefs.h <<_ACEOF
25379#define HAVE_STRERROR_R 1
25380_ACEOF
25381
25382fi
25383done
25384
25385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25386$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25387if ${ac_cv_func_strerror_r_char_p+:} false; then :
25388 $as_echo_n "(cached) " >&6
25389else
25390
25391 ac_cv_func_strerror_r_char_p=no
25392 if test $ac_cv_have_decl_strerror_r = yes; then
25393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25394/* end confdefs.h. */
25395$ac_includes_default
25396int
25397main ()
25398{
25399
25400 char buf[100];
25401 char x = *strerror_r (0, buf, sizeof buf);
25402 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025403 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025404
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409if ac_fn_c_try_compile "$LINENO"; then :
25410 ac_cv_func_strerror_r_char_p=yes
25411fi
25412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413 else
25414 # strerror_r is not declared. Choose between
25415 # systems that have relatively inaccessible declarations for the
25416 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25417 # former has a strerror_r that returns char*, while the latter
25418 # has a strerror_r that returns `int'.
25419 # This test should segfault on the DEC system.
25420 if test "$cross_compiling" = yes; then :
25421 :
25422else
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424/* end confdefs.h. */
25425$ac_includes_default
25426 extern char *strerror_r ();
25427int
25428main ()
25429{
25430char buf[100];
25431 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025432 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025433 ;
25434 return 0;
25435}
25436_ACEOF
25437if ac_fn_c_try_run "$LINENO"; then :
25438 ac_cv_func_strerror_r_char_p=yes
25439fi
25440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25441 conftest.$ac_objext conftest.beam conftest.$ac_ext
25442fi
25443
25444 fi
25445
25446fi
25447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25448$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25449if test $ac_cv_func_strerror_r_char_p = yes; then
25450
25451$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25452
25453fi
25454
cristy3ed852e2009-09-05 21:47:34 +000025455for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025456do :
25457 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025458if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025460#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025461_ACEOF
25462
cristy8b350f62009-11-15 23:12:43 +000025463ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025464if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025465
cristy8b350f62009-11-15 23:12:43 +000025466$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025467
25468fi
25469
25470fi
25471done
25472
25473
25474
cristy161b9262010-03-20 19:34:32 +000025475#
25476# Find math library
25477#
25478MATH_LIBS=''
25479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25480$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025481if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025482 $as_echo_n "(cached) " >&6
25483else
25484 ac_check_lib_save_LIBS=$LIBS
25485LIBS="-lm $LIBS"
25486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25487/* end confdefs.h. */
25488
25489/* Override any GCC internal prototype to avoid an error.
25490 Use char because int might match the return type of a GCC
25491 builtin and then its argument prototype would still apply. */
25492#ifdef __cplusplus
25493extern "C"
25494#endif
25495char sqrt ();
25496int
25497main ()
25498{
25499return sqrt ();
25500 ;
25501 return 0;
25502}
25503_ACEOF
25504if ac_fn_c_try_link "$LINENO"; then :
25505 ac_cv_lib_m_sqrt=yes
25506else
25507 ac_cv_lib_m_sqrt=no
25508fi
25509rm -f core conftest.err conftest.$ac_objext \
25510 conftest$ac_exeext conftest.$ac_ext
25511LIBS=$ac_check_lib_save_LIBS
25512fi
25513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25514$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025515if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025516 MATH_LIBS="-lm"
25517fi
25518
25519LIBS="$MATH_LIBS $LIBS"
25520
25521
cristy82b20722011-11-05 21:52:36 +000025522for 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
cristy8b350f62009-11-15 23:12:43 +000025523do :
25524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25525ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025526if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 cat >>confdefs.h <<_ACEOF
25528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25529_ACEOF
25530
25531fi
25532done
25533
25534
cristye43a45e2009-09-28 14:49:00 +000025535#
25536# Check for clock_gettime().
25537#
cristy8b350f62009-11-15 23:12:43 +000025538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025539$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025540if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025541 $as_echo_n "(cached) " >&6
25542else
25543 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025545/* end confdefs.h. */
25546
25547/* Override any GCC internal prototype to avoid an error.
25548 Use char because int might match the return type of a GCC
25549 builtin and then its argument prototype would still apply. */
25550#ifdef __cplusplus
25551extern "C"
25552#endif
25553char clock_gettime ();
25554int
25555main ()
25556{
25557return clock_gettime ();
25558 ;
25559 return 0;
25560}
25561_ACEOF
25562for ac_lib in '' rt; do
25563 if test -z "$ac_lib"; then
25564 ac_res="none required"
25565 else
25566 ac_res=-l$ac_lib
25567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25568 fi
cristy8b350f62009-11-15 23:12:43 +000025569 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025570 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025571fi
cristy8b350f62009-11-15 23:12:43 +000025572rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025574 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025575 break
25576fi
25577done
cristyda16f162011-02-19 23:52:17 +000025578if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025579
cristye43a45e2009-09-28 14:49:00 +000025580else
25581 ac_cv_search_clock_gettime=no
25582fi
25583rm conftest.$ac_ext
25584LIBS=$ac_func_search_save_LIBS
25585fi
cristy8b350f62009-11-15 23:12:43 +000025586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025587$as_echo "$ac_cv_search_clock_gettime" >&6; }
25588ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025589if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25591
25592
cristy8b350f62009-11-15 23:12:43 +000025593$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025594
cristy8b350f62009-11-15 23:12:43 +000025595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025596$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025598/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025599
25600 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025601int
25602main ()
25603{
25604clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025605 ;
25606 return 0;
25607}
25608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025609if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025610
cristy09b53e12011-10-14 12:47:22 +000025611 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25612$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025613
cristy8b350f62009-11-15 23:12:43 +000025614$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025615
25616
25617else
cristy09b53e12011-10-14 12:47:22 +000025618 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25619$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025620
25621fi
cristye43a45e2009-09-28 14:49:00 +000025622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623
25624else
25625
cristy8b350f62009-11-15 23:12:43 +000025626 for ac_func in gettimeofday ftime
25627do :
25628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25629ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025630if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025631 cat >>confdefs.h <<_ACEOF
25632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25633_ACEOF
25634 break
25635fi
25636done
25637
25638
25639
25640fi
25641
25642
cristy3ed852e2009-09-05 21:47:34 +000025643########
25644#
25645# Check for function prototypes
25646#
25647########
25648
cristy8b350f62009-11-15 23:12:43 +000025649ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025650#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025651"
cristyda16f162011-02-19 23:52:17 +000025652if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025653 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025654else
cristy8b350f62009-11-15 23:12:43 +000025655 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025656fi
25657
cristy3ed852e2009-09-05 21:47:34 +000025658cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025659#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025661ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025662#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025663"
cristyda16f162011-02-19 23:52:17 +000025664if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025665 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025666else
cristy8b350f62009-11-15 23:12:43 +000025667 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025668fi
25669
cristy3ed852e2009-09-05 21:47:34 +000025670cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025671#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025672_ACEOF
25673
25674
cristy8b350f62009-11-15 23:12:43 +000025675ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025676#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025677"
cristyda16f162011-02-19 23:52:17 +000025678if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025679 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025680else
cristy8b350f62009-11-15 23:12:43 +000025681 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025682fi
25683
cristy3ed852e2009-09-05 21:47:34 +000025684cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025685#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025686_ACEOF
25687
25688
cristy8b350f62009-11-15 23:12:43 +000025689ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025690#include <stdio.h>
25691#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025692"
cristyda16f162011-02-19 23:52:17 +000025693if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025694 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025695else
cristy8b350f62009-11-15 23:12:43 +000025696 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025697fi
25698
cristy3ed852e2009-09-05 21:47:34 +000025699cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025700#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025701_ACEOF
25702
25703
cristy3ed852e2009-09-05 21:47:34 +000025704########
25705#
25706# C++ Support Tests (For Magick++)
25707#
25708########
25709have_magick_plus_plus='no'
25710if test "$with_magick_plus_plus" = 'yes'; then
25711 OLIBS="$LIBS"
25712 LIBS=''
25713 ac_ext=cpp
25714ac_cpp='$CXXCPP $CPPFLAGS'
25715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25718
25719
25720 # Full set of headers used...
25721 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25722 # functional iomanip iosfwd iostream iterator list string strstream utility
25723 ac_ext=cpp
25724ac_cpp='$CXXCPP $CPPFLAGS'
25725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25728
25729 ac_ext=cpp
25730ac_cpp='$CXXCPP $CPPFLAGS'
25731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25734if test -z "$CXX"; then
25735 if test -n "$CCC"; then
25736 CXX=$CCC
25737 else
25738 if test -n "$ac_tool_prefix"; then
25739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25740 do
25741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025745if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025746 $as_echo_n "(cached) " >&6
25747else
25748 if test -n "$CXX"; then
25749 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25750else
25751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25752for as_dir in $PATH
25753do
25754 IFS=$as_save_IFS
25755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25758 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760 break 2
25761 fi
25762done
cristy8b350f62009-11-15 23:12:43 +000025763 done
cristy3ed852e2009-09-05 21:47:34 +000025764IFS=$as_save_IFS
25765
25766fi
25767fi
25768CXX=$ac_cv_prog_CXX
25769if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025771$as_echo "$CXX" >&6; }
25772else
cristy8b350f62009-11-15 23:12:43 +000025773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025774$as_echo "no" >&6; }
25775fi
25776
25777
25778 test -n "$CXX" && break
25779 done
25780fi
25781if test -z "$CXX"; then
25782 ac_ct_CXX=$CXX
25783 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25784do
25785 # Extract the first word of "$ac_prog", so it can be a program name with args.
25786set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025789if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025790 $as_echo_n "(cached) " >&6
25791else
25792 if test -n "$ac_ct_CXX"; then
25793 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25794else
25795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25796for as_dir in $PATH
25797do
25798 IFS=$as_save_IFS
25799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25802 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804 break 2
25805 fi
25806done
cristy8b350f62009-11-15 23:12:43 +000025807 done
cristy3ed852e2009-09-05 21:47:34 +000025808IFS=$as_save_IFS
25809
25810fi
25811fi
25812ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25813if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025815$as_echo "$ac_ct_CXX" >&6; }
25816else
cristy8b350f62009-11-15 23:12:43 +000025817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025818$as_echo "no" >&6; }
25819fi
25820
25821
25822 test -n "$ac_ct_CXX" && break
25823done
25824
25825 if test "x$ac_ct_CXX" = x; then
25826 CXX="g++"
25827 else
25828 case $cross_compiling:$ac_tool_warned in
25829yes:)
cristy8b350f62009-11-15 23:12:43 +000025830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25832ac_tool_warned=yes ;;
25833esac
25834 CXX=$ac_ct_CXX
25835 fi
25836fi
25837
25838 fi
25839fi
25840# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025841$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025842set X $ac_compile
25843ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025844for ac_option in --version -v -V -qversion; do
25845 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025846case "(($ac_try" in
25847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848 *) ac_try_echo=$ac_try;;
25849esac
cristy8b350f62009-11-15 23:12:43 +000025850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25851$as_echo "$ac_try_echo"; } >&5
25852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025853 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025854 if test -s conftest.err; then
25855 sed '10a\
25856... rest of stderr output deleted ...
25857 10q' conftest.err >conftest.er1
25858 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025859 fi
cristycd4c5312009-11-22 01:19:08 +000025860 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }
25863done
cristy3ed852e2009-09-05 21:47:34 +000025864
cristy8b350f62009-11-15 23:12:43 +000025865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025866$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025867if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 $as_echo_n "(cached) " >&6
25869else
cristy8b350f62009-11-15 23:12:43 +000025870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025871/* end confdefs.h. */
25872
25873int
25874main ()
25875{
25876#ifndef __GNUC__
25877 choke me
25878#endif
25879
25880 ;
25881 return 0;
25882}
25883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025884if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025885 ac_compiler_gnu=yes
25886else
cristy8b350f62009-11-15 23:12:43 +000025887 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025888fi
cristy3ed852e2009-09-05 21:47:34 +000025889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25891
25892fi
cristy8b350f62009-11-15 23:12:43 +000025893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25895if test $ac_compiler_gnu = yes; then
25896 GXX=yes
25897else
25898 GXX=
25899fi
25900ac_test_CXXFLAGS=${CXXFLAGS+set}
25901ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025903$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025904if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025905 $as_echo_n "(cached) " >&6
25906else
25907 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25908 ac_cxx_werror_flag=yes
25909 ac_cv_prog_cxx_g=no
25910 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025912/* end confdefs.h. */
25913
25914int
25915main ()
25916{
25917
25918 ;
25919 return 0;
25920}
25921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025922if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025923 ac_cv_prog_cxx_g=yes
25924else
cristy8b350f62009-11-15 23:12:43 +000025925 CXXFLAGS=""
25926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025927/* end confdefs.h. */
25928
25929int
25930main ()
25931{
25932
25933 ;
25934 return 0;
25935}
25936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025937if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025938
cristy8b350f62009-11-15 23:12:43 +000025939else
25940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025941 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025943/* end confdefs.h. */
25944
25945int
25946main ()
25947{
25948
25949 ;
25950 return 0;
25951}
25952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025953if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025954 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025955fi
cristy3ed852e2009-09-05 21:47:34 +000025956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25957fi
cristy3ed852e2009-09-05 21:47:34 +000025958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25959fi
cristy3ed852e2009-09-05 21:47:34 +000025960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25962fi
cristy8b350f62009-11-15 23:12:43 +000025963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025964$as_echo "$ac_cv_prog_cxx_g" >&6; }
25965if test "$ac_test_CXXFLAGS" = set; then
25966 CXXFLAGS=$ac_save_CXXFLAGS
25967elif test $ac_cv_prog_cxx_g = yes; then
25968 if test "$GXX" = yes; then
25969 CXXFLAGS="-g -O2"
25970 else
25971 CXXFLAGS="-g"
25972 fi
25973else
25974 if test "$GXX" = yes; then
25975 CXXFLAGS="-O2"
25976 else
25977 CXXFLAGS=
25978 fi
25979fi
25980ac_ext=cpp
25981ac_cpp='$CXXCPP $CPPFLAGS'
25982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25985
cristy73bd4a52010-10-05 11:24:23 +000025986depcc="$CXX" am_compiler_list=
25987
25988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25989$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025990if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025991 $as_echo_n "(cached) " >&6
25992else
25993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25994 # We make a subdir and do the tests there. Otherwise we can end up
25995 # making bogus files that we don't know about and never remove. For
25996 # instance it was reported that on HP-UX the gcc test will end up
25997 # making a dummy file named `D' -- because `-MD' means `put the output
25998 # in D'.
cristy7247bba2012-02-05 16:37:27 +000025999 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026000 mkdir conftest.dir
26001 # Copy depcomp to subdir because otherwise we won't find it if we're
26002 # using a relative directory.
26003 cp "$am_depcomp" conftest.dir
26004 cd conftest.dir
26005 # We will build objects and dependencies in a subdirectory because
26006 # it helps to detect inapplicable dependency modes. For instance
26007 # both Tru64's cc and ICC support -MD to output dependencies as a
26008 # side effect of compilation, but ICC will put the dependencies in
26009 # the current directory while Tru64 will put them in the object
26010 # directory.
26011 mkdir sub
26012
26013 am_cv_CXX_dependencies_compiler_type=none
26014 if test "$am_compiler_list" = ""; then
26015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26016 fi
26017 am__universal=false
26018 case " $depcc " in #(
26019 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26020 esac
26021
26022 for depmode in $am_compiler_list; do
26023 # Setup a source with many dependencies, because some compilers
26024 # like to wrap large dependency lists on column 80 (with \), and
26025 # we should not choose a depcomp mode which is confused by this.
26026 #
26027 # We need to recreate these files for each test, as the compiler may
26028 # overwrite some of them when testing with obscure command lines.
26029 # This happens at least with the AIX C compiler.
26030 : > sub/conftest.c
26031 for i in 1 2 3 4 5 6; do
26032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
26034 # Solaris 8's {/usr,}/bin/sh.
26035 touch sub/conftst$i.h
26036 done
26037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26038
26039 # We check with `-c' and `-o' for the sake of the "dashmstdout"
26040 # mode. It turns out that the SunPro C++ compiler does not properly
26041 # handle `-M -o', and we need to detect this. Also, some Intel
26042 # versions had trouble with output in subdirs
26043 am__obj=sub/conftest.${OBJEXT-o}
26044 am__minus_obj="-o $am__obj"
26045 case $depmode in
26046 gcc)
26047 # This depmode causes a compiler race in universal mode.
26048 test "$am__universal" = false || continue
26049 ;;
26050 nosideeffect)
26051 # after this tag, mechanisms are not by side-effect, so they'll
26052 # only be used when explicitly requested
26053 if test "x$enable_dependency_tracking" = xyes; then
26054 continue
26055 else
26056 break
26057 fi
26058 ;;
cristy7247bba2012-02-05 16:37:27 +000026059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000026060 # This compiler won't grok `-c -o', but also, the minuso test has
26061 # not run yet. These depmodes are late enough in the game, and
26062 # so weak that their functioning should not be impacted.
26063 am__obj=conftest.${OBJEXT-o}
26064 am__minus_obj=
26065 ;;
26066 none) break ;;
26067 esac
26068 if depmode=$depmode \
26069 source=sub/conftest.c object=$am__obj \
26070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26071 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26072 >/dev/null 2>conftest.err &&
26073 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26074 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26075 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26076 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26077 # icc doesn't choke on unknown options, it will just issue warnings
26078 # or remarks (even with -Werror). So we grep stderr for any message
26079 # that says an option was ignored or not supported.
26080 # When given -MP, icc 7.0 and 7.1 complain thusly:
26081 # icc: Command line warning: ignoring option '-M'; no argument required
26082 # The diagnosis changed in icc 8.0:
26083 # icc: Command line remark: option '-MP' not supported
26084 if (grep 'ignoring option' conftest.err ||
26085 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26086 am_cv_CXX_dependencies_compiler_type=$depmode
26087 break
26088 fi
26089 fi
26090 done
26091
26092 cd ..
26093 rm -rf conftest.dir
26094else
26095 am_cv_CXX_dependencies_compiler_type=none
26096fi
26097
26098fi
26099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26100$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26101CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26102
26103 if
26104 test "x$enable_dependency_tracking" != xno \
26105 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26106 am__fastdepCXX_TRUE=
26107 am__fastdepCXX_FALSE='#'
26108else
26109 am__fastdepCXX_TRUE='#'
26110 am__fastdepCXX_FALSE=
26111fi
26112
26113
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26115$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026116if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026117 $as_echo_n "(cached) " >&6
26118else
26119
26120 ac_ext=cpp
26121ac_cpp='$CXXCPP $CPPFLAGS'
26122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26125
26126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26127/* end confdefs.h. */
26128
26129int f(int x){return 1;}
26130int f(char x){return 1;}
26131int f(bool x){return 1;}
26132
26133int
26134main ()
26135{
26136bool b = true; return f(b);
26137 ;
26138 return 0;
26139}
26140_ACEOF
26141if ac_fn_cxx_try_compile "$LINENO"; then :
26142 ax_cv_cxx_bool=yes
26143else
26144 ax_cv_cxx_bool=no
26145fi
26146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26147 ac_ext=cpp
26148ac_cpp='$CXXCPP $CPPFLAGS'
26149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26152
26153
26154fi
26155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26156$as_echo "$ax_cv_cxx_bool" >&6; }
26157if test "$ax_cv_cxx_bool" = yes; then
26158
26159$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26160
26161fi
26162
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26164$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026165if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026166 $as_echo_n "(cached) " >&6
26167else
26168
26169 ac_ext=cpp
26170ac_cpp='$CXXCPP $CPPFLAGS'
26171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26174
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176/* end confdefs.h. */
26177namespace Outer { namespace Inner { int i = 0; }}
26178int
26179main ()
26180{
26181using namespace Outer::Inner; return i;
26182 ;
26183 return 0;
26184}
26185_ACEOF
26186if ac_fn_cxx_try_compile "$LINENO"; then :
26187 ax_cv_cxx_namespaces=yes
26188else
26189 ax_cv_cxx_namespaces=no
26190fi
26191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 ac_ext=cpp
26193ac_cpp='$CXXCPP $CPPFLAGS'
26194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26197
26198
26199fi
26200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26201$as_echo "$ax_cv_cxx_namespaces" >&6; }
26202if test "$ax_cv_cxx_namespaces" = yes; then
26203
26204$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26205
26206fi
26207
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26210$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026211if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026212 $as_echo_n "(cached) " >&6
26213else
26214
26215 ac_ext=cpp
26216ac_cpp='$CXXCPP $CPPFLAGS'
26217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26220
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222/* end confdefs.h. */
26223#include <iostream>
26224 std::istream& is = std::cin;
26225int
26226main ()
26227{
26228
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233if ac_fn_cxx_try_compile "$LINENO"; then :
26234 ax_cv_cxx_have_std_namespace=yes
26235else
26236 ax_cv_cxx_have_std_namespace=no
26237fi
26238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26239 ac_ext=cpp
26240ac_cpp='$CXXCPP $CPPFLAGS'
26241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26244
26245
26246fi
26247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26248$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26249 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26250
26251$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26252
26253 fi
26254
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26256$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026257if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026258 $as_echo_n "(cached) " >&6
26259else
26260
26261
26262 ac_ext=cpp
26263ac_cpp='$CXXCPP $CPPFLAGS'
26264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26267
26268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26269/* end confdefs.h. */
26270#include <iostream>
26271#include <map>
26272#include <iomanip>
26273#include <cmath>
26274#ifdef HAVE_NAMESPACES
26275using namespace std;
26276#endif
26277int
26278main ()
26279{
26280return 0;
26281 ;
26282 return 0;
26283}
26284_ACEOF
26285if ac_fn_cxx_try_compile "$LINENO"; then :
26286 ac_cv_cxx_have_std_libs=yes
26287else
26288 ac_cv_cxx_have_std_libs=no
26289fi
26290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26291 ac_ext=cpp
26292ac_cpp='$CXXCPP $CPPFLAGS'
26293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26296
26297
26298fi
26299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26300$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26301if test "$ac_cv_cxx_have_std_libs" = yes; then
26302
26303$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26304
26305fi
26306
cristy3ed852e2009-09-05 21:47:34 +000026307
26308 OPENMP_CXXFLAGS=
26309 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026310if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 enableval=$enable_openmp;
26312fi
26313
26314 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26316$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026317if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026318 $as_echo_n "(cached) " >&6
26319else
cristy8b350f62009-11-15 23:12:43 +000026320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026322
26323#ifndef _OPENMP
26324 choke me
26325#endif
26326#include <omp.h>
26327int main () { return omp_get_num_threads (); }
26328
26329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026330if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026331 ac_cv_prog_cxx_openmp='none needed'
26332else
cristy8b350f62009-11-15 23:12:43 +000026333 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000026334 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
26335 ac_save_CXXFLAGS=$CXXFLAGS
26336 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026339
26340#ifndef _OPENMP
26341 choke me
26342#endif
26343#include <omp.h>
26344int main () { return omp_get_num_threads (); }
26345
26346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026347if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026349fi
cristy8b350f62009-11-15 23:12:43 +000026350rm -f core conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026352 CXXFLAGS=$ac_save_CXXFLAGS
26353 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26354 break
26355 fi
26356 done
26357fi
cristy8b350f62009-11-15 23:12:43 +000026358rm -f core conftest.err conftest.$ac_objext \
26359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026360fi
cristy8b350f62009-11-15 23:12:43 +000026361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26363 case $ac_cv_prog_cxx_openmp in #(
26364 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026365 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026366 *)
cristy8b350f62009-11-15 23:12:43 +000026367 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026368 esac
26369 fi
26370
26371
26372 ac_ext=c
26373ac_cpp='$CPP $CPPFLAGS'
26374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26376ac_compiler_gnu=$ac_cv_c_compiler_gnu
26377
26378
cristy8b350f62009-11-15 23:12:43 +000026379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026380$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26381 if \
cristy964cb7f2010-04-25 23:18:00 +000026382 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026383 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026384 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026385 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026386 have_magick_plus_plus='yes'
26387 else
26388 have_magick_plus_plus='no (failed tests)'
26389 fi
cristy09b53e12011-10-14 12:47:22 +000026390 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26391$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026392 LIBS="$OLIBS"
26393fi
cristy73bd4a52010-10-05 11:24:23 +000026394 if test "$have_magick_plus_plus" = 'yes'; then
26395 WITH_MAGICK_PLUS_PLUS_TRUE=
26396 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26397else
26398 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26399 WITH_MAGICK_PLUS_PLUS_FALSE=
26400fi
26401
cristy3ed852e2009-09-05 21:47:34 +000026402
26403# Only check for delegate libraries in subdirectories if requested.
26404if test "$enable_delegate_build" != 'no'; then
26405 # Check for delegate sub-directories and add -I & -L options as required.
26406 # This presumes that delegates are installed as detailed in the ImageMagick
26407 # README. If delegates are installed in a standard location where the
26408 # compiler will automatically find them then these options should not be
26409 # required.
26410
26411 #
26412 # Most delegates have includes in the same directory as the library, but not all...
26413 #
26414 # Includes
cristy2542fc62011-12-06 17:50:25 +000026415 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
cristy3ed852e2009-09-05 21:47:34 +000026416 if test -d "$builddir/$dir"; then
26417 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26418 else
26419 if test -d "$srcdirfull/$dir"; then
26420 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26421 fi
26422 fi
26423 done
26424
26425 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026426 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
cristy3ed852e2009-09-05 21:47:34 +000026427 if test -d "$builddir/$dir/.libs"; then
26428 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26429 else
26430 if test -d "$srcdirfull/$dir/.libs"; then
26431 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26432 fi
26433 fi
26434 if test -d "$builddir/$dir"; then
26435 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26436 else
26437 if test -d "$srcdirfull/$dir"; then
26438 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26439 fi
26440 fi
26441 done
26442fi
26443
26444# Assume that delegate headers reside under same directory as ImageMagick
26445# installation prefix.
26446MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26447
26448#
26449# Find the X11 RGB database
26450#
cristy8b350f62009-11-15 23:12:43 +000026451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026453if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026454 $as_echo_n "(cached) " >&6
26455else
26456 # Look for the header file in a standard set of common directories.
26457# Check X11 before X11Rn because it is often a symlink to the current release.
26458 for ac_dir in \
26459 /lib/usr/lib/X11 \
26460 /usr/X11/lib \
26461 /usr/X11R4/lib \
26462 /usr/X11R5/lib \
26463 /usr/X11R6/lib \
26464 /usr/X11R7/lib \
26465 /usr/X386/lib \
26466 /usr/XFree86/lib/X11 \
26467 /usr/athena/lib \
26468 /usr/lib \
26469 /usr/lib/X11 \
26470 /usr/lib/X11R4 \
26471 /usr/lib/X11R5 \
26472 /usr/lib/X11R6 \
26473 /usr/lib/X11R7 \
26474 /usr/local/X11/lib \
26475 /usr/local/X11R4/lib \
26476 /usr/local/X11R5/lib \
26477 /usr/local/X11R6/lib \
26478 /usr/local/lib \
26479 /usr/local/lib/X11 \
26480 /usr/local/lib/X11R4 \
26481 /usr/local/lib/X11R5 \
26482 /usr/local/lib/X11R6 \
26483 /usr/local/lib/X11R7 \
26484 /usr/local/x11r5/lib \
26485 /usr/lpp/Xamples/lib \
26486 /usr/openwin/lib \
26487 /usr/openwin/share/lib \
26488 /usr/unsupported/lib \
26489 /usr/x386/lib \
26490 ; do
26491 if test -f "$ac_dir/X11/rgb.txt"; then
26492 im_cv_x_configure="$ac_dir/X11/"
26493 break
26494 elif test -f "$ac_dir/rgb.txt"; then
26495 im_cv_x_configure="$ac_dir/"
26496 break
26497 fi
26498
26499 done
26500fi
cristy8b350f62009-11-15 23:12:43 +000026501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo "$im_cv_x_configure" >&6; }
26503X11_CONFIGURE_PATH="$im_cv_x_configure"
26504case "${build_os}" in
26505 mingw* )
26506 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26507 ;;
26508esac
26509
26510cat >>confdefs.h <<_ACEOF
26511#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26512_ACEOF
26513
26514
26515#
26516# Find OpenMP library
26517#
26518GOMP_LIBS=''
26519if test "$enable_openmp" != 'no'; then
26520 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026521 # Open64 (passes for GCC but uses different OpenMP implementation)
26522 if test "x$GOMP_LIBS" = x ; then
26523 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26525$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26526if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26527 $as_echo_n "(cached) " >&6
26528else
26529 ac_check_lib_save_LIBS=$LIBS
26530LIBS="-lopenmp $LIBS"
26531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h. */
26533
26534/* Override any GCC internal prototype to avoid an error.
26535 Use char because int might match the return type of a GCC
26536 builtin and then its argument prototype would still apply. */
26537#ifdef __cplusplus
26538extern "C"
26539#endif
26540char omp_get_num_procs ();
26541int
26542main ()
26543{
26544return omp_get_num_procs ();
26545 ;
26546 return 0;
26547}
26548_ACEOF
26549if ac_fn_c_try_link "$LINENO"; then :
26550 ac_cv_lib_openmp_omp_get_num_procs=yes
26551else
26552 ac_cv_lib_openmp_omp_get_num_procs=no
26553fi
26554rm -f core conftest.err conftest.$ac_objext \
26555 conftest$ac_exeext conftest.$ac_ext
26556LIBS=$ac_check_lib_save_LIBS
26557fi
26558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26559$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26560if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26561 GOMP_LIBS="-lopenmp"
26562fi
26563
26564 fi
26565 fi
26566 # GCC
26567 if test "x$GOMP_LIBS" = x ; then
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026569$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026570if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026571 $as_echo_n "(cached) " >&6
26572else
26573 ac_check_lib_save_LIBS=$LIBS
26574LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026576/* end confdefs.h. */
26577
26578/* Override any GCC internal prototype to avoid an error.
26579 Use char because int might match the return type of a GCC
26580 builtin and then its argument prototype would still apply. */
26581#ifdef __cplusplus
26582extern "C"
26583#endif
26584char GOMP_parallel_start ();
26585int
26586main ()
26587{
26588return GOMP_parallel_start ();
26589 ;
26590 return 0;
26591}
26592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026593if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 ac_cv_lib_gomp_GOMP_parallel_start=yes
26595else
cristy8b350f62009-11-15 23:12:43 +000026596 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026597fi
cristy8b350f62009-11-15 23:12:43 +000026598rm -f core conftest.err conftest.$ac_objext \
26599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026600LIBS=$ac_check_lib_save_LIBS
26601fi
cristy8b350f62009-11-15 23:12:43 +000026602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026603$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026604if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 GOMP_LIBS="-lgomp"
26606fi
cristy18307f12011-12-30 01:20:16 +000026607
26608 fi
cristy3ed852e2009-09-05 21:47:34 +000026609 else
cristy18307f12011-12-30 01:20:16 +000026610 # Sun CC
26611 if test "x$GOMP_LIBS" = x ; then
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026614if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 $as_echo_n "(cached) " >&6
26616else
26617 ac_check_lib_save_LIBS=$LIBS
26618LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026620/* end confdefs.h. */
26621
26622/* Override any GCC internal prototype to avoid an error.
26623 Use char because int might match the return type of a GCC
26624 builtin and then its argument prototype would still apply. */
26625#ifdef __cplusplus
26626extern "C"
26627#endif
26628char sunw_mp_register_warn ();
26629int
26630main ()
26631{
26632return sunw_mp_register_warn ();
26633 ;
26634 return 0;
26635}
26636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026637if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026638 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26639else
cristy8b350f62009-11-15 23:12:43 +000026640 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026641fi
cristy8b350f62009-11-15 23:12:43 +000026642rm -f core conftest.err conftest.$ac_objext \
26643 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026644LIBS=$ac_check_lib_save_LIBS
26645fi
cristy8b350f62009-11-15 23:12:43 +000026646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 GOMP_LIBS="-lmtsk"
26650fi
cristy18307f12011-12-30 01:20:16 +000026651
26652 fi
26653 # AIX xlc
26654 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026657if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026658 $as_echo_n "(cached) " >&6
26659else
26660 ac_check_lib_save_LIBS=$LIBS
26661LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026663/* end confdefs.h. */
26664
26665/* Override any GCC internal prototype to avoid an error.
26666 Use char because int might match the return type of a GCC
26667 builtin and then its argument prototype would still apply. */
26668#ifdef __cplusplus
26669extern "C"
26670#endif
26671char _xlsmpFlush ();
26672int
26673main ()
26674{
26675return _xlsmpFlush ();
26676 ;
26677 return 0;
26678}
26679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026681 ac_cv_lib_xlsmp__xlsmpFlush=yes
26682else
cristy8b350f62009-11-15 23:12:43 +000026683 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026684fi
cristy8b350f62009-11-15 23:12:43 +000026685rm -f core conftest.err conftest.$ac_objext \
26686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026687LIBS=$ac_check_lib_save_LIBS
26688fi
cristy8b350f62009-11-15 23:12:43 +000026689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026691if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 GOMP_LIBS="-lxlsmp"
26693fi
cristy18307f12011-12-30 01:20:16 +000026694
26695 fi
26696 # SGI IRIX 6.5 MIPSpro C/C++
26697 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026700if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706/* end confdefs.h. */
26707
26708/* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711#ifdef __cplusplus
26712extern "C"
26713#endif
26714char mp_destroy ();
26715int
26716main ()
26717{
26718return mp_destroy ();
26719 ;
26720 return 0;
26721}
26722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 ac_cv_lib_mp_mp_destroy=yes
26725else
cristy8b350f62009-11-15 23:12:43 +000026726 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730LIBS=$ac_check_lib_save_LIBS
26731fi
cristy8b350f62009-11-15 23:12:43 +000026732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026734if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 GOMP_LIBS="-lmp"
26736fi
cristy18307f12011-12-30 01:20:16 +000026737
26738 fi
cristy3ed852e2009-09-05 21:47:34 +000026739 fi
26740 LIBS="$GOMP_LIBS $LIBS"
26741fi
26742
26743
26744#
26745# Find Posix threads library
26746#
26747THREAD_LIBS=''
26748if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26749
26750 if test "x$PTHREAD_LIBS" = "x"; then
26751 case "${host_cpu}-${host_os}" in
26752 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026753
26754
26755
26756ac_ext=c
26757ac_cpp='$CPP $CPPFLAGS'
26758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26760ac_compiler_gnu=$ac_cv_c_compiler_gnu
26761
26762magick_pthread_lib_ok=no
26763
26764LIB=-lc_r
26765save_LIBS="$LIBS"
26766LIBS="$LIBS $LIB"
26767
26768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26769$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26771/* end confdefs.h. */
26772#include <pthread.h>
26773int
26774main ()
26775{
26776 pthread_t th;
26777 pthread_join(th, 0);
26778 pthread_attr_init(0);
26779 pthread_cleanup_push(0, 0);
26780 pthread_create(0,0,0,0);
26781 pthread_cleanup_pop(0);
26782 ;
26783 return 0;
26784}
26785_ACEOF
26786if ac_fn_c_try_link "$LINENO"; then :
26787 magick_pthread_lib_ok=yes
26788fi
26789rm -f core conftest.err conftest.$ac_objext \
26790 conftest$ac_exeext conftest.$ac_ext
26791
26792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26793$as_echo "${magick_pthread_lib_ok}" >&6; }
26794if test "$magick_pthread_lib_ok" = yes
26795then
26796 PTHREAD_LIBS=-lc_r
26797 :
26798else
26799
26800 :
26801fi
26802
26803LIBS="$save_LIBS"
26804
26805ac_ext=c
26806ac_cpp='$CPP $CPPFLAGS'
26807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26809ac_compiler_gnu=$ac_cv_c_compiler_gnu
26810
26811 ;;
cristy3ed852e2009-09-05 21:47:34 +000026812 esac
26813 fi
26814
26815 for lib in pthread pthreads; do
26816 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026817
26818
26819
26820ac_ext=c
26821ac_cpp='$CPP $CPPFLAGS'
26822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26824ac_compiler_gnu=$ac_cv_c_compiler_gnu
26825
26826magick_pthread_lib_ok=no
26827
26828LIB=-l$lib
26829save_LIBS="$LIBS"
26830LIBS="$LIBS $LIB"
26831
26832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26833$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835/* end confdefs.h. */
26836#include <pthread.h>
26837int
26838main ()
26839{
26840 pthread_t th;
26841 pthread_join(th, 0);
26842 pthread_attr_init(0);
26843 pthread_cleanup_push(0, 0);
26844 pthread_create(0,0,0,0);
26845 pthread_cleanup_pop(0);
26846 ;
26847 return 0;
26848}
26849_ACEOF
26850if ac_fn_c_try_link "$LINENO"; then :
26851 magick_pthread_lib_ok=yes
26852fi
26853rm -f core conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
26855
26856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26857$as_echo "${magick_pthread_lib_ok}" >&6; }
26858if test "$magick_pthread_lib_ok" = yes
26859then
26860 PTHREAD_LIBS=-l$lib
26861 :
26862else
26863
26864 :
26865fi
26866
26867LIBS="$save_LIBS"
26868
26869ac_ext=c
26870ac_cpp='$CPP $CPPFLAGS'
26871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26873ac_compiler_gnu=$ac_cv_c_compiler_gnu
26874
26875
cristy3ed852e2009-09-05 21:47:34 +000026876 fi
26877 done
26878
26879 THREAD_LIBS="$PTHREAD_LIBS"
26880 LIBS="$LIBS $THREAD_LIBS"
26881fi
26882
26883
26884#
26885# Check for umem.
26886#
26887have_umem='no'
26888UMEM_LIBS=''
26889if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026891$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026892 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26893$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026894 failed=0
26895 passed=0
cristy8b350f62009-11-15 23:12:43 +000026896 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026897if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026898 passed=`expr $passed + 1`
26899else
26900 failed=`expr $failed + 1`
26901fi
26902
26903
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 $as_echo_n "(cached) " >&6
26908else
26909 ac_check_lib_save_LIBS=$LIBS
26910LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026912/* end confdefs.h. */
26913
26914/* Override any GCC internal prototype to avoid an error.
26915 Use char because int might match the return type of a GCC
26916 builtin and then its argument prototype would still apply. */
26917#ifdef __cplusplus
26918extern "C"
26919#endif
26920char umem_alloc ();
26921int
26922main ()
26923{
26924return umem_alloc ();
26925 ;
26926 return 0;
26927}
26928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 ac_cv_lib_umem_umem_alloc=yes
26931else
cristy8b350f62009-11-15 23:12:43 +000026932 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026933fi
cristy8b350f62009-11-15 23:12:43 +000026934rm -f core conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026936LIBS=$ac_check_lib_save_LIBS
26937fi
cristy8b350f62009-11-15 23:12:43 +000026938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026940if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026941 passed=`expr $passed + 1`
26942else
26943 failed=`expr $failed + 1`
26944fi
26945
cristy8b350f62009-11-15 23:12:43 +000026946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026947$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026948if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026949 $as_echo_n "(cached) " >&6
26950else
26951 ac_check_lib_save_LIBS=$LIBS
26952LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026954/* end confdefs.h. */
26955
26956/* Override any GCC internal prototype to avoid an error.
26957 Use char because int might match the return type of a GCC
26958 builtin and then its argument prototype would still apply. */
26959#ifdef __cplusplus
26960extern "C"
26961#endif
26962char umem_free ();
26963int
26964main ()
26965{
26966return umem_free ();
26967 ;
26968 return 0;
26969}
26970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026971if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026972 ac_cv_lib_umem_umem_free=yes
26973else
cristy8b350f62009-11-15 23:12:43 +000026974 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026975fi
cristy8b350f62009-11-15 23:12:43 +000026976rm -f core conftest.err conftest.$ac_objext \
26977 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026978LIBS=$ac_check_lib_save_LIBS
26979fi
cristy8b350f62009-11-15 23:12:43 +000026980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026982if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026983 passed=`expr $passed + 1`
26984else
26985 failed=`expr $failed + 1`
26986fi
26987
cristy8b350f62009-11-15 23:12:43 +000026988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026989$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26990 if test $passed -gt 0; then
26991 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026992 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26993$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026994 have_umem='no (failed tests)'
26995 else
26996 UMEM_LIBS='-lumem'
26997 LIBS="$UMEM_LIBS $LIBS"
26998
cristy8b350f62009-11-15 23:12:43 +000026999$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027000
cristy09b53e12011-10-14 12:47:22 +000027001 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27002$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027003 have_umem='yes'
27004 fi
27005 else
cristy09b53e12011-10-14 12:47:22 +000027006 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27007$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027008 fi
27009fi
cristy73bd4a52010-10-05 11:24:23 +000027010 if test "$have_umem" = 'yes'; then
27011 HasUMEM_TRUE=
27012 HasUMEM_FALSE='#'
27013else
27014 HasUMEM_TRUE='#'
27015 HasUMEM_FALSE=
27016fi
27017
cristy3ed852e2009-09-05 21:47:34 +000027018
27019
27020#
27021# Add support for ccmalloc memory debugging library if requested
27022#
27023have_ccmalloc='no'
27024CCMALLOC_LIBS=''
27025if test "$enable_ccmalloc" = 'yes'; then
27026 # Extract the first word of "ccmalloc", so it can be a program name with args.
27027set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027030if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027031 $as_echo_n "(cached) " >&6
27032else
27033 case $CCMALLOCDelegate in
27034 [\\/]* | ?:[\\/]*)
27035 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27036 ;;
27037 *)
27038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27039for as_dir in $PATH
27040do
27041 IFS=$as_save_IFS
27042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27045 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047 break 2
27048 fi
27049done
cristy8b350f62009-11-15 23:12:43 +000027050 done
cristy3ed852e2009-09-05 21:47:34 +000027051IFS=$as_save_IFS
27052
27053 ;;
27054esac
27055fi
27056CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27057if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027059$as_echo "$CCMALLOCDelegate" >&6; }
27060else
cristy8b350f62009-11-15 23:12:43 +000027061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027062$as_echo "no" >&6; }
27063fi
27064
27065
27066 if test -n "$CCMALLOCDelegate"; then
27067 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27068 OLIBS="$LIBS"
27069 # Assume that gcc is used with ccmalloc.
27070 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027073if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027074 $as_echo_n "(cached) " >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027079/* end confdefs.h. */
27080
27081/* Override any GCC internal prototype to avoid an error.
27082 Use char because int might match the return type of a GCC
27083 builtin and then its argument prototype would still apply. */
27084#ifdef __cplusplus
27085extern "C"
27086#endif
27087char ccmalloc_malloc ();
27088int
27089main ()
27090{
27091return ccmalloc_malloc ();
27092 ;
27093 return 0;
27094}
27095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27098else
cristy8b350f62009-11-15 23:12:43 +000027099 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027100fi
cristy8b350f62009-11-15 23:12:43 +000027101rm -f core conftest.err conftest.$ac_objext \
27102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027103LIBS=$ac_check_lib_save_LIBS
27104fi
cristy8b350f62009-11-15 23:12:43 +000027105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027106$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027107if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27109fi
27110
27111 if test -n "$CCMALLOC_LIBS"; then
27112 LIBS="$OLIBS"
27113 LIBS="$LIBS $CCMALLOC_LIBS"
27114 have_ccmalloc='yes'
27115 else
27116 LIBS="$OLIBS"
27117 fi
27118 fi
27119fi
27120
27121#
27122# Add support for efence memory debugging library if requested
27123#
27124if test "$enable_efence" = 'yes'; then
27125 EFENCE_LIBS='-lefence'
27126 LIBS="$EFENCE_LIBS $LIBS"
27127fi
27128
cristy3ed852e2009-09-05 21:47:34 +000027129
27130#
27131# Check for BZLIB
27132#
27133
27134
27135# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027136if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027137 withval=$with_bzlib; with_bzlib=$withval
27138else
27139 with_bzlib='yes'
27140fi
27141
27142
27143if test "$with_bzlib" != 'yes'; then
27144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27145fi
27146
27147have_bzlib='no'
27148if test "$with_bzlib" != 'no'; then
27149 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27151$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027153$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027154 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27155$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027156 failed=0
27157 passed=0
27158 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027159 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027160if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 passed=`expr $passed + 1`
27162else
27163 failed=`expr $failed + 1`
27164fi
27165
27166
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027169if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 $as_echo_n "(cached) " >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027175/* end confdefs.h. */
27176
27177/* Override any GCC internal prototype to avoid an error.
27178 Use char because int might match the return type of a GCC
27179 builtin and then its argument prototype would still apply. */
27180#ifdef __cplusplus
27181extern "C"
27182#endif
27183char BZ2_bzDecompress ();
27184int
27185main ()
27186{
27187return BZ2_bzDecompress ();
27188 ;
27189 return 0;
27190}
27191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27194else
cristy8b350f62009-11-15 23:12:43 +000027195 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027196fi
cristy8b350f62009-11-15 23:12:43 +000027197rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199LIBS=$ac_check_lib_save_LIBS
27200fi
cristy8b350f62009-11-15 23:12:43 +000027201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027203if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 found_libbz=`expr $found_libbz + 1`
27205fi
27206
27207 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027210if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 $as_echo_n "(cached) " >&6
27212else
27213 ac_check_lib_save_LIBS=$LIBS
27214LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216/* end confdefs.h. */
27217
27218/* Override any GCC internal prototype to avoid an error.
27219 Use char because int might match the return type of a GCC
27220 builtin and then its argument prototype would still apply. */
27221#ifdef __cplusplus
27222extern "C"
27223#endif
27224char _imp__BZ2_decompress ();
27225int
27226main ()
27227{
27228return _imp__BZ2_decompress ();
27229 ;
27230 return 0;
27231}
27232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27235else
cristy8b350f62009-11-15 23:12:43 +000027236 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027237fi
cristy8b350f62009-11-15 23:12:43 +000027238rm -f core conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240LIBS=$ac_check_lib_save_LIBS
27241fi
cristy8b350f62009-11-15 23:12:43 +000027242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027244if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 found_libbz=`expr $found_libbz + 1`
27246fi
27247
27248 fi
27249 if test $found_libbz -gt 0; then
27250 passed=`expr $passed + 1`
27251 else
27252 failed=`expr $failed + 1`
27253 fi
cristy8b350f62009-11-15 23:12:43 +000027254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo_n "checking if BZLIB package is complete... " >&6; }
27256 if test $passed -gt 0; then
27257 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027258 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27259$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027260 have_bzlib='no (failed tests)'
27261 else
27262 BZLIB_LIBS='-lbz2'
27263 LIBS="$BZLIB_LIBS $LIBS"
27264
cristy8b350f62009-11-15 23:12:43 +000027265$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027266
cristy09b53e12011-10-14 12:47:22 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27268$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027269 have_bzlib='yes'
27270 fi
27271 else
cristy09b53e12011-10-14 12:47:22 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27273$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027274 fi
27275fi
cristy73bd4a52010-10-05 11:24:23 +000027276 if test "$have_bzlib" = 'yes'; then
27277 BZLIB_DELEGATE_TRUE=
27278 BZLIB_DELEGATE_FALSE='#'
27279else
27280 BZLIB_DELEGATE_TRUE='#'
27281 BZLIB_DELEGATE_FALSE=
27282fi
27283
cristy3ed852e2009-09-05 21:47:34 +000027284
27285
27286#
27287# Find the X11 include and library directories.
27288#
27289IPC_LIBS=''
27290X11_LIBS=''
27291XEXT_LIBS=''
27292XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027294$as_echo_n "checking for X... " >&6; }
27295
27296
27297# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027298if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027299 withval=$with_x;
27300fi
27301
27302# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27303if test "x$with_x" = xno; then
27304 # The user explicitly disabled X.
27305 have_x=disabled
27306else
27307 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027308 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027309 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027310 $as_echo_n "(cached) " >&6
27311else
27312 # One or both of the vars are not set, and there is no cached value.
27313ac_x_includes=no ac_x_libraries=no
27314rm -f -r conftest.dir
27315if mkdir conftest.dir; then
27316 cd conftest.dir
27317 cat >Imakefile <<'_ACEOF'
27318incroot:
27319 @echo incroot='${INCROOT}'
27320usrlibdir:
27321 @echo usrlibdir='${USRLIBDIR}'
27322libdir:
27323 @echo libdir='${LIBDIR}'
27324_ACEOF
27325 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027326 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027327 for ac_var in incroot usrlibdir libdir; do
27328 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27329 done
27330 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27331 for ac_extension in a so sl dylib la dll; do
27332 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27333 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27334 ac_im_usrlibdir=$ac_im_libdir; break
27335 fi
27336 done
27337 # Screen out bogus values from the imake configuration. They are
27338 # bogus both because they are the default anyway, and because
27339 # using them would break gcc on systems where it needs fixed includes.
27340 case $ac_im_incroot in
27341 /usr/include) ac_x_includes= ;;
27342 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27343 esac
27344 case $ac_im_usrlibdir in
27345 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27346 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27347 esac
27348 fi
27349 cd ..
27350 rm -f -r conftest.dir
27351fi
27352
27353# Standard set of common directories for X headers.
27354# Check X11 before X11Rn because it is often a symlink to the current release.
27355ac_x_header_dirs='
27356/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027357/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027358/usr/X11R6/include
27359/usr/X11R5/include
27360/usr/X11R4/include
27361
27362/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027363/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027364/usr/include/X11R6
27365/usr/include/X11R5
27366/usr/include/X11R4
27367
27368/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027369/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027370/usr/local/X11R6/include
27371/usr/local/X11R5/include
27372/usr/local/X11R4/include
27373
27374/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027375/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027376/usr/local/include/X11R6
27377/usr/local/include/X11R5
27378/usr/local/include/X11R4
27379
27380/usr/X386/include
27381/usr/x386/include
27382/usr/XFree86/include/X11
27383
27384/usr/include
27385/usr/local/include
27386/usr/unsupported/include
27387/usr/athena/include
27388/usr/local/x11r5/include
27389/usr/lpp/Xamples/include
27390
27391/usr/openwin/include
27392/usr/openwin/share/include'
27393
27394if test "$ac_x_includes" = no; then
27395 # Guess where to find include files, by looking for Xlib.h.
27396 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027398/* end confdefs.h. */
27399#include <X11/Xlib.h>
27400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027401if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027402 # We can compile using X headers with no special include directory.
27403ac_x_includes=
27404else
cristyc7083c12009-10-14 03:16:55 +000027405 for ac_dir in $ac_x_header_dirs; do
27406 if test -r "$ac_dir/X11/Xlib.h"; then
27407 ac_x_includes=$ac_dir
27408 break
27409 fi
27410done
27411fi
cristyda16f162011-02-19 23:52:17 +000027412rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027413fi # $ac_x_includes = no
27414
27415if test "$ac_x_libraries" = no; then
27416 # Check for the libraries.
27417 # See if we find them without any special options.
27418 # Don't add to $LIBS permanently.
27419 ac_save_LIBS=$LIBS
27420 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027422/* end confdefs.h. */
27423#include <X11/Xlib.h>
27424int
27425main ()
27426{
27427XrmInitialize ()
27428 ;
27429 return 0;
27430}
27431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027432if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027433 LIBS=$ac_save_LIBS
27434# We can link X programs with no special library path.
27435ac_x_libraries=
27436else
cristy8b350f62009-11-15 23:12:43 +000027437 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027438for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27439do
27440 # Don't even attempt the hair of trying to link an X program!
27441 for ac_extension in a so sl dylib la dll; do
27442 if test -r "$ac_dir/libX11.$ac_extension"; then
27443 ac_x_libraries=$ac_dir
27444 break 2
27445 fi
27446 done
27447done
27448fi
cristy8b350f62009-11-15 23:12:43 +000027449rm -f core conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027451fi # $ac_x_libraries = no
27452
27453case $ac_x_includes,$ac_x_libraries in #(
27454 no,* | *,no | *\'*)
27455 # Didn't find X, or a directory has "'" in its name.
27456 ac_cv_have_x="have_x=no";; #(
27457 *)
27458 # Record where we found X for the cache.
27459 ac_cv_have_x="have_x=yes\
27460 ac_x_includes='$ac_x_includes'\
27461 ac_x_libraries='$ac_x_libraries'"
27462esac
27463fi
27464;; #(
27465 *) have_x=yes;;
27466 esac
27467 eval "$ac_cv_have_x"
27468fi # $with_x != no
27469
27470if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027472$as_echo "$have_x" >&6; }
27473 no_x=yes
27474else
27475 # If each of the values was on the command line, it overrides each guess.
27476 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27477 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27478 # Update the cache value to reflect the command line values.
27479 ac_cv_have_x="have_x=yes\
27480 ac_x_includes='$x_includes'\
27481 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027483$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27484fi
27485
cristy3ed852e2009-09-05 21:47:34 +000027486if test "$no_x" = yes; then
27487 # Not all programs may use this symbol, but it does not hurt to define it.
27488
cristy8b350f62009-11-15 23:12:43 +000027489$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027490
27491 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27492else
27493 if test -n "$x_includes"; then
27494 X_CFLAGS="$X_CFLAGS -I$x_includes"
27495 fi
27496
27497 # It would also be nice to do this for all -L options, not just this one.
27498 if test -n "$x_libraries"; then
27499 X_LIBS="$X_LIBS -L$x_libraries"
27500 # For Solaris; some versions of Sun CC require a space after -R and
27501 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027503$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27504 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27505 ac_xsave_c_werror_flag=$ac_c_werror_flag
27506 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027508/* end confdefs.h. */
27509
27510int
27511main ()
27512{
27513
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "no" >&6; }
27521 X_LIBS="$X_LIBS -R$x_libraries"
27522else
cristy8b350f62009-11-15 23:12:43 +000027523 LIBS="$ac_xsave_LIBS -R $x_libraries"
27524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525/* end confdefs.h. */
27526
27527int
27528main ()
27529{
27530
27531 ;
27532 return 0;
27533}
27534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027535if ac_fn_c_try_link "$LINENO"; then :
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo "yes" >&6; }
27538 X_LIBS="$X_LIBS -R $x_libraries"
27539else
cristy8b350f62009-11-15 23:12:43 +000027540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027541$as_echo "neither works" >&6; }
27542fi
cristy8b350f62009-11-15 23:12:43 +000027543rm -f core conftest.err conftest.$ac_objext \
27544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027545fi
cristy8b350f62009-11-15 23:12:43 +000027546rm -f core conftest.err conftest.$ac_objext \
27547 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027548 ac_c_werror_flag=$ac_xsave_c_werror_flag
27549 LIBS=$ac_xsave_LIBS
27550 fi
27551
27552 # Check for system-dependent libraries X programs must link with.
27553 # Do this before checking for the system-independent R6 libraries
27554 # (-lICE), since we may need -lsocket or whatever for X linking.
27555
27556 if test "$ISC" = yes; then
27557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27558 else
27559 # Martyn Johnson says this is needed for Ultrix, if the X
27560 # libraries were built with DECnet support. And Karl Berry says
27561 # the Alpha needs dnet_stub (dnet does not exist).
27562 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027564/* end confdefs.h. */
27565
27566/* Override any GCC internal prototype to avoid an error.
27567 Use char because int might match the return type of a GCC
27568 builtin and then its argument prototype would still apply. */
27569#ifdef __cplusplus
27570extern "C"
27571#endif
27572char XOpenDisplay ();
27573int
27574main ()
27575{
27576return XOpenDisplay ();
27577 ;
27578 return 0;
27579}
27580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027582
cristy8b350f62009-11-15 23:12:43 +000027583else
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027586if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 $as_echo_n "(cached) " >&6
27588else
27589 ac_check_lib_save_LIBS=$LIBS
27590LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027592/* end confdefs.h. */
27593
27594/* Override any GCC internal prototype to avoid an error.
27595 Use char because int might match the return type of a GCC
27596 builtin and then its argument prototype would still apply. */
27597#ifdef __cplusplus
27598extern "C"
27599#endif
27600char dnet_ntoa ();
27601int
27602main ()
27603{
27604return dnet_ntoa ();
27605 ;
27606 return 0;
27607}
27608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 ac_cv_lib_dnet_dnet_ntoa=yes
27611else
cristy8b350f62009-11-15 23:12:43 +000027612 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027613fi
cristy8b350f62009-11-15 23:12:43 +000027614rm -f core conftest.err conftest.$ac_objext \
27615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027616LIBS=$ac_check_lib_save_LIBS
27617fi
cristy8b350f62009-11-15 23:12:43 +000027618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027620if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027621 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27622fi
27623
27624 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027627if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 $as_echo_n "(cached) " >&6
27629else
27630 ac_check_lib_save_LIBS=$LIBS
27631LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027633/* end confdefs.h. */
27634
27635/* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27638#ifdef __cplusplus
27639extern "C"
27640#endif
27641char dnet_ntoa ();
27642int
27643main ()
27644{
27645return dnet_ntoa ();
27646 ;
27647 return 0;
27648}
27649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27652else
cristy8b350f62009-11-15 23:12:43 +000027653 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027654fi
cristy8b350f62009-11-15 23:12:43 +000027655rm -f core conftest.err conftest.$ac_objext \
27656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027657LIBS=$ac_check_lib_save_LIBS
27658fi
cristy8b350f62009-11-15 23:12:43 +000027659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027661if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27663fi
27664
27665 fi
27666fi
cristy8b350f62009-11-15 23:12:43 +000027667rm -f core conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027669 LIBS="$ac_xsave_LIBS"
27670
27671 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27672 # to get the SysV transport functions.
27673 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27674 # needs -lnsl.
27675 # The nsl library prevents programs from opening the X display
27676 # on Irix 5.2, according to T.E. Dickey.
27677 # The functions gethostbyname, getservbyname, and inet_addr are
27678 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027679 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027680if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027681
cristy3ed852e2009-09-05 21:47:34 +000027682fi
27683
cristy3ed852e2009-09-05 21:47:34 +000027684 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027687if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 $as_echo_n "(cached) " >&6
27689else
27690 ac_check_lib_save_LIBS=$LIBS
27691LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027693/* end confdefs.h. */
27694
27695/* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27698#ifdef __cplusplus
27699extern "C"
27700#endif
27701char gethostbyname ();
27702int
27703main ()
27704{
27705return gethostbyname ();
27706 ;
27707 return 0;
27708}
27709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 ac_cv_lib_nsl_gethostbyname=yes
27712else
cristy8b350f62009-11-15 23:12:43 +000027713 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027714fi
cristy8b350f62009-11-15 23:12:43 +000027715rm -f core conftest.err conftest.$ac_objext \
27716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027717LIBS=$ac_check_lib_save_LIBS
27718fi
cristy8b350f62009-11-15 23:12:43 +000027719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027721if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27723fi
27724
27725 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 $as_echo_n "(cached) " >&6
27730else
27731 ac_check_lib_save_LIBS=$LIBS
27732LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char gethostbyname ();
27743int
27744main ()
27745{
27746return gethostbyname ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 ac_cv_lib_bsd_gethostbyname=yes
27753else
cristy8b350f62009-11-15 23:12:43 +000027754 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027755fi
cristy8b350f62009-11-15 23:12:43 +000027756rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758LIBS=$ac_check_lib_save_LIBS
27759fi
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27764fi
27765
27766 fi
27767 fi
27768
27769 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27770 # socket/setsockopt and other routines are undefined under SCO ODT
27771 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27772 # on later versions), says Simon Leinen: it contains gethostby*
27773 # variants that don't use the name server (or something). -lsocket
27774 # must be given before -lnsl if both are needed. We assume that
27775 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027776 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027777if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027778
cristy3ed852e2009-09-05 21:47:34 +000027779fi
27780
cristy3ed852e2009-09-05 21:47:34 +000027781 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027784if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 $as_echo_n "(cached) " >&6
27786else
27787 ac_check_lib_save_LIBS=$LIBS
27788LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027790/* end confdefs.h. */
27791
27792/* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27795#ifdef __cplusplus
27796extern "C"
27797#endif
27798char connect ();
27799int
27800main ()
27801{
27802return connect ();
27803 ;
27804 return 0;
27805}
27806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027808 ac_cv_lib_socket_connect=yes
27809else
cristy8b350f62009-11-15 23:12:43 +000027810 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027811fi
cristy8b350f62009-11-15 23:12:43 +000027812rm -f core conftest.err conftest.$ac_objext \
27813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027814LIBS=$ac_check_lib_save_LIBS
27815fi
cristy8b350f62009-11-15 23:12:43 +000027816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027817$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027818if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027819 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27820fi
27821
27822 fi
27823
27824 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027825 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027826if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027827
cristy3ed852e2009-09-05 21:47:34 +000027828fi
27829
cristy3ed852e2009-09-05 21:47:34 +000027830 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027832$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027833if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027834 $as_echo_n "(cached) " >&6
27835else
27836 ac_check_lib_save_LIBS=$LIBS
27837LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027839/* end confdefs.h. */
27840
27841/* Override any GCC internal prototype to avoid an error.
27842 Use char because int might match the return type of a GCC
27843 builtin and then its argument prototype would still apply. */
27844#ifdef __cplusplus
27845extern "C"
27846#endif
27847char remove ();
27848int
27849main ()
27850{
27851return remove ();
27852 ;
27853 return 0;
27854}
27855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027857 ac_cv_lib_posix_remove=yes
27858else
cristy8b350f62009-11-15 23:12:43 +000027859 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027860fi
cristy8b350f62009-11-15 23:12:43 +000027861rm -f core conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027863LIBS=$ac_check_lib_save_LIBS
27864fi
cristy8b350f62009-11-15 23:12:43 +000027865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027866$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027867if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27869fi
27870
27871 fi
27872
27873 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027874 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027875if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027876
cristy3ed852e2009-09-05 21:47:34 +000027877fi
27878
cristy3ed852e2009-09-05 21:47:34 +000027879 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027882if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 $as_echo_n "(cached) " >&6
27884else
27885 ac_check_lib_save_LIBS=$LIBS
27886LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027888/* end confdefs.h. */
27889
27890/* Override any GCC internal prototype to avoid an error.
27891 Use char because int might match the return type of a GCC
27892 builtin and then its argument prototype would still apply. */
27893#ifdef __cplusplus
27894extern "C"
27895#endif
27896char shmat ();
27897int
27898main ()
27899{
27900return shmat ();
27901 ;
27902 return 0;
27903}
27904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 ac_cv_lib_ipc_shmat=yes
27907else
cristy8b350f62009-11-15 23:12:43 +000027908 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027909fi
cristy8b350f62009-11-15 23:12:43 +000027910rm -f core conftest.err conftest.$ac_objext \
27911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027912LIBS=$ac_check_lib_save_LIBS
27913fi
cristy8b350f62009-11-15 23:12:43 +000027914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27918fi
27919
27920 fi
27921 fi
27922
27923 # Check for libraries that X11R6 Xt/Xaw programs need.
27924 ac_save_LDFLAGS=$LDFLAGS
27925 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27927 # check for ICE first), but we must link in the order -lSM -lICE or
27928 # we get undefined symbols. So assume we have SM if we have ICE.
27929 # These have to be linked with before -lX11, unlike the other
27930 # libraries we check for below, so use a different variable.
27931 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027933$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027934if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027935 $as_echo_n "(cached) " >&6
27936else
27937 ac_check_lib_save_LIBS=$LIBS
27938LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027940/* end confdefs.h. */
27941
27942/* Override any GCC internal prototype to avoid an error.
27943 Use char because int might match the return type of a GCC
27944 builtin and then its argument prototype would still apply. */
27945#ifdef __cplusplus
27946extern "C"
27947#endif
27948char IceConnectionNumber ();
27949int
27950main ()
27951{
27952return IceConnectionNumber ();
27953 ;
27954 return 0;
27955}
27956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027958 ac_cv_lib_ICE_IceConnectionNumber=yes
27959else
cristy8b350f62009-11-15 23:12:43 +000027960 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027961fi
cristy8b350f62009-11-15 23:12:43 +000027962rm -f core conftest.err conftest.$ac_objext \
27963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964LIBS=$ac_check_lib_save_LIBS
27965fi
cristy8b350f62009-11-15 23:12:43 +000027966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027968if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027969 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27970fi
27971
27972 LDFLAGS=$ac_save_LDFLAGS
27973
27974fi
27975
27976if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27978$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027980$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027981 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27982$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027983 LDFLAGS="$LDFLAGS $X_LIBS"
27984 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27985 LIBS="$X11_LIBS $LIBS"
27986 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27987
27988
cristy8b350f62009-11-15 23:12:43 +000027989$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027990
27991 #
27992 # Check for X11 shared memory extension
27993 #
27994 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027995 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027996if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 have_shmctl='yes'
27998fi
27999
28000 if test "$have_shmctl" != 'yes'; then
28001 PERSIST_LIBS=$LIBS
28002 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028004/* end confdefs.h. */
28005
28006/* Override any GCC internal prototype to avoid an error.
28007 Use char because int might match the return type of a GCC
28008 builtin and then its argument prototype would still apply. */
28009#ifdef __cplusplus
28010extern "C"
28011#endif
28012char shmctl ();
28013int
28014main ()
28015{
28016return shmctl ();
28017 ;
28018 return 0;
28019}
28020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028023fi
cristy8b350f62009-11-15 23:12:43 +000028024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028026 LIBS=$PERSIST_LIBS
28027 fi
28028
28029 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028031$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028032if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028033 $as_echo_n "(cached) " >&6
28034else
28035 ac_check_lib_save_LIBS=$LIBS
28036LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028038/* end confdefs.h. */
28039
28040/* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28043#ifdef __cplusplus
28044extern "C"
28045#endif
28046char XShmAttach ();
28047int
28048main ()
28049{
28050return XShmAttach ();
28051 ;
28052 return 0;
28053}
28054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028055if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028056 ac_cv_lib_Xext_XShmAttach=yes
28057else
cristy8b350f62009-11-15 23:12:43 +000028058 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028059fi
cristy8b350f62009-11-15 23:12:43 +000028060rm -f core conftest.err conftest.$ac_objext \
28061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028062LIBS=$ac_check_lib_save_LIBS
28063fi
cristy8b350f62009-11-15 23:12:43 +000028064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028065$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028066if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028067 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028068$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028069
28070fi
28071
28072 fi
28073
28074 #
28075 # Check for X11 shape extension
28076 #
cristy8b350f62009-11-15 23:12:43 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028079if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 $as_echo_n "(cached) " >&6
28081else
28082 ac_check_lib_save_LIBS=$LIBS
28083LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028085/* end confdefs.h. */
28086
28087/* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28090#ifdef __cplusplus
28091extern "C"
28092#endif
28093char XShapeCombineMask ();
28094int
28095main ()
28096{
28097return XShapeCombineMask ();
28098 ;
28099 return 0;
28100}
28101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 ac_cv_lib_Xext_XShapeCombineMask=yes
28104else
cristy8b350f62009-11-15 23:12:43 +000028105 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028106fi
cristy8b350f62009-11-15 23:12:43 +000028107rm -f core conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109LIBS=$ac_check_lib_save_LIBS
28110fi
cristy8b350f62009-11-15 23:12:43 +000028111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028113if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028115$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028116
28117fi
28118
cristy8b350f62009-11-15 23:12:43 +000028119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028120$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028121if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028122 $as_echo_n "(cached) " >&6
28123else
28124 ac_check_lib_save_LIBS=$LIBS
28125LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028127/* end confdefs.h. */
28128
28129/* Override any GCC internal prototype to avoid an error.
28130 Use char because int might match the return type of a GCC
28131 builtin and then its argument prototype would still apply. */
28132#ifdef __cplusplus
28133extern "C"
28134#endif
28135char XtSetEventDispatcher ();
28136int
28137main ()
28138{
28139return XtSetEventDispatcher ();
28140 ;
28141 return 0;
28142}
28143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28146else
cristy8b350f62009-11-15 23:12:43 +000028147 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028148fi
cristy8b350f62009-11-15 23:12:43 +000028149rm -f core conftest.err conftest.$ac_objext \
28150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028151LIBS=$ac_check_lib_save_LIBS
28152fi
cristy8b350f62009-11-15 23:12:43 +000028153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028154$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028155if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 XT_LIBS='-lXt'
28157fi
28158
28159 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28160fi
28161if test "$no_x" != 'yes'; then
28162 have_x='yes'
28163else
28164 have_x='no'
28165fi
cristy73bd4a52010-10-05 11:24:23 +000028166 if test "$have_x" = 'yes'; then
28167 X11_DELEGATE_TRUE=
28168 X11_DELEGATE_FALSE='#'
28169else
28170 X11_DELEGATE_TRUE='#'
28171 X11_DELEGATE_FALSE=
28172fi
28173
cristy3ed852e2009-09-05 21:47:34 +000028174
28175
28176
28177
28178#
28179# Check for ZLIB
28180#
28181
28182# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028183if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028184 withval=$with_zlib; with_zlib=$withval
28185else
28186 with_zlib='yes'
28187fi
28188
28189
28190if test "$with_zlib" != 'yes'; then
28191 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28192fi
28193
28194have_zlib='no'
28195ZLIB_LIBS=''
28196if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28198$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028200$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28202$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028203 ZLIB_LIBS=''
28204 failed=0
28205 passed=0
cristy8b350f62009-11-15 23:12:43 +000028206 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028207if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028208 passed=`expr $passed + 1`
28209else
28210 failed=`expr $failed + 1`
28211fi
28212
28213
cristy8b350f62009-11-15 23:12:43 +000028214 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028215if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028216 passed=`expr $passed + 1`
28217else
28218 failed=`expr $failed + 1`
28219fi
28220
28221
cristy8b350f62009-11-15 23:12:43 +000028222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028223$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028224if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028225 $as_echo_n "(cached) " >&6
28226else
28227 ac_check_lib_save_LIBS=$LIBS
28228LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028230/* end confdefs.h. */
28231
28232/* Override any GCC internal prototype to avoid an error.
28233 Use char because int might match the return type of a GCC
28234 builtin and then its argument prototype would still apply. */
28235#ifdef __cplusplus
28236extern "C"
28237#endif
28238char compress ();
28239int
28240main ()
28241{
28242return compress ();
28243 ;
28244 return 0;
28245}
28246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028248 ac_cv_lib_z_compress=yes
28249else
cristy8b350f62009-11-15 23:12:43 +000028250 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028251fi
cristy8b350f62009-11-15 23:12:43 +000028252rm -f core conftest.err conftest.$ac_objext \
28253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028254LIBS=$ac_check_lib_save_LIBS
28255fi
cristy8b350f62009-11-15 23:12:43 +000028256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028257$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028258if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028259 passed=`expr $passed + 1`
28260else
28261 failed=`expr $failed + 1`
28262fi
28263
cristy8b350f62009-11-15 23:12:43 +000028264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028265$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028266if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028267 $as_echo_n "(cached) " >&6
28268else
28269 ac_check_lib_save_LIBS=$LIBS
28270LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028272/* end confdefs.h. */
28273
28274/* Override any GCC internal prototype to avoid an error.
28275 Use char because int might match the return type of a GCC
28276 builtin and then its argument prototype would still apply. */
28277#ifdef __cplusplus
28278extern "C"
28279#endif
28280char uncompress ();
28281int
28282main ()
28283{
28284return uncompress ();
28285 ;
28286 return 0;
28287}
28288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028290 ac_cv_lib_z_uncompress=yes
28291else
cristy8b350f62009-11-15 23:12:43 +000028292 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028293fi
cristy8b350f62009-11-15 23:12:43 +000028294rm -f core conftest.err conftest.$ac_objext \
28295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028296LIBS=$ac_check_lib_save_LIBS
28297fi
cristy8b350f62009-11-15 23:12:43 +000028298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028299$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028300if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 passed=`expr $passed + 1`
28302else
28303 failed=`expr $failed + 1`
28304fi
28305
cristy8b350f62009-11-15 23:12:43 +000028306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028307$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028308if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 $as_echo_n "(cached) " >&6
28310else
28311 ac_check_lib_save_LIBS=$LIBS
28312LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028314/* end confdefs.h. */
28315
28316/* Override any GCC internal prototype to avoid an error.
28317 Use char because int might match the return type of a GCC
28318 builtin and then its argument prototype would still apply. */
28319#ifdef __cplusplus
28320extern "C"
28321#endif
28322char deflate ();
28323int
28324main ()
28325{
28326return deflate ();
28327 ;
28328 return 0;
28329}
28330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028331if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028332 ac_cv_lib_z_deflate=yes
28333else
cristy8b350f62009-11-15 23:12:43 +000028334 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028335fi
cristy8b350f62009-11-15 23:12:43 +000028336rm -f core conftest.err conftest.$ac_objext \
28337 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028338LIBS=$ac_check_lib_save_LIBS
28339fi
cristy8b350f62009-11-15 23:12:43 +000028340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028342if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028343 passed=`expr $passed + 1`
28344else
28345 failed=`expr $failed + 1`
28346fi
28347
cristy8b350f62009-11-15 23:12:43 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028350if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028351 $as_echo_n "(cached) " >&6
28352else
28353 ac_check_lib_save_LIBS=$LIBS
28354LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028356/* end confdefs.h. */
28357
28358/* Override any GCC internal prototype to avoid an error.
28359 Use char because int might match the return type of a GCC
28360 builtin and then its argument prototype would still apply. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364char inflate ();
28365int
28366main ()
28367{
28368return inflate ();
28369 ;
28370 return 0;
28371}
28372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 ac_cv_lib_z_inflate=yes
28375else
cristy8b350f62009-11-15 23:12:43 +000028376 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028377fi
cristy8b350f62009-11-15 23:12:43 +000028378rm -f core conftest.err conftest.$ac_objext \
28379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028380LIBS=$ac_check_lib_save_LIBS
28381fi
cristy8b350f62009-11-15 23:12:43 +000028382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028384if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028385 passed=`expr $passed + 1`
28386else
28387 failed=`expr $failed + 1`
28388fi
28389
cristy8b350f62009-11-15 23:12:43 +000028390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028391$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028392if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028393 $as_echo_n "(cached) " >&6
28394else
28395 ac_check_lib_save_LIBS=$LIBS
28396LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028398/* end confdefs.h. */
28399
28400/* Override any GCC internal prototype to avoid an error.
28401 Use char because int might match the return type of a GCC
28402 builtin and then its argument prototype would still apply. */
28403#ifdef __cplusplus
28404extern "C"
28405#endif
28406char gzseek ();
28407int
28408main ()
28409{
28410return gzseek ();
28411 ;
28412 return 0;
28413}
28414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 ac_cv_lib_z_gzseek=yes
28417else
cristy8b350f62009-11-15 23:12:43 +000028418 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028419fi
cristy8b350f62009-11-15 23:12:43 +000028420rm -f core conftest.err conftest.$ac_objext \
28421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028422LIBS=$ac_check_lib_save_LIBS
28423fi
cristy8b350f62009-11-15 23:12:43 +000028424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028425$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028426if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028427 passed=`expr $passed + 1`
28428else
28429 failed=`expr $failed + 1`
28430fi
28431
cristy8b350f62009-11-15 23:12:43 +000028432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028433$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028434if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028435 $as_echo_n "(cached) " >&6
28436else
28437 ac_check_lib_save_LIBS=$LIBS
28438LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028440/* end confdefs.h. */
28441
28442/* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28445#ifdef __cplusplus
28446extern "C"
28447#endif
28448char gztell ();
28449int
28450main ()
28451{
28452return gztell ();
28453 ;
28454 return 0;
28455}
28456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028457if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028458 ac_cv_lib_z_gztell=yes
28459else
cristy8b350f62009-11-15 23:12:43 +000028460 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028461fi
cristy8b350f62009-11-15 23:12:43 +000028462rm -f core conftest.err conftest.$ac_objext \
28463 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028464LIBS=$ac_check_lib_save_LIBS
28465fi
cristy8b350f62009-11-15 23:12:43 +000028466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028467$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028468if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028469 passed=`expr $passed + 1`
28470else
28471 failed=`expr $failed + 1`
28472fi
28473
cristy8b350f62009-11-15 23:12:43 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo_n "checking if ZLIB package is complete... " >&6; }
28476 if test $passed -gt 0; then
28477 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28479$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028480 have_zlib='no (failed tests)'
28481 else
28482 ZLIB_LIBS='-lz'
28483 LIBS="$ZLIB_LIBS $LIBS"
28484
cristy8b350f62009-11-15 23:12:43 +000028485$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028486
cristy09b53e12011-10-14 12:47:22 +000028487 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28488$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028489 have_zlib='yes'
28490 fi
28491 else
cristy09b53e12011-10-14 12:47:22 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28493$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028494 fi
28495fi
cristy73bd4a52010-10-05 11:24:23 +000028496 if test "$have_zlib" = 'yes'; then
28497 ZLIB_DELEGATE_TRUE=
28498 ZLIB_DELEGATE_FALSE='#'
28499else
28500 ZLIB_DELEGATE_TRUE='#'
28501 ZLIB_DELEGATE_FALSE=
28502fi
28503
cristy3ed852e2009-09-05 21:47:34 +000028504
28505
28506#
28507# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28508#
28509LIB_DL=''
28510if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028512$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028513if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028514 $as_echo_n "(cached) " >&6
28515else
28516 ac_check_lib_save_LIBS=$LIBS
28517LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028519/* end confdefs.h. */
28520
28521/* Override any GCC internal prototype to avoid an error.
28522 Use char because int might match the return type of a GCC
28523 builtin and then its argument prototype would still apply. */
28524#ifdef __cplusplus
28525extern "C"
28526#endif
28527char dlopen ();
28528int
28529main ()
28530{
28531return dlopen ();
28532 ;
28533 return 0;
28534}
28535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028536if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 ac_cv_lib_dl_dlopen=yes
28538else
cristy8b350f62009-11-15 23:12:43 +000028539 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028540fi
cristy8b350f62009-11-15 23:12:43 +000028541rm -f core conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028543LIBS=$ac_check_lib_save_LIBS
28544fi
cristy8b350f62009-11-15 23:12:43 +000028545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028547if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 LIB_DL='-ldl'
28549fi
28550
28551 LIBS="$LIB_DL $LIBS"
28552fi
28553
28554
28555
28556#
28557# Check for Autotrace delegate library.
28558#
28559
28560# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028561if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028562 withval=$with_autotrace; with_autotrace=$withval
28563else
28564 with_autotrace='no'
28565fi
28566
28567
28568if test "$with_autotrace" != 'yes'; then
28569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28570fi
28571
28572have_autotrace='no'
28573AUTOTRACE_CFLAGS=""
28574AUTOTRACE_LIBS=""
28575AUTOTRACE_PKG=""
28576if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028577 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28578$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028579
28580pkg_failed=no
28581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28582$as_echo_n "checking for AUTOTRACE... " >&6; }
28583
28584if test -n "$AUTOTRACE_CFLAGS"; then
28585 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28586 elif test -n "$PKG_CONFIG"; then
28587 if test -n "$PKG_CONFIG" && \
28588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28589 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28590 ac_status=$?
28591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28592 test $ac_status = 0; }; then
28593 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28594else
28595 pkg_failed=yes
28596fi
28597 else
28598 pkg_failed=untried
28599fi
28600if test -n "$AUTOTRACE_LIBS"; then
28601 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28602 elif test -n "$PKG_CONFIG"; then
28603 if test -n "$PKG_CONFIG" && \
28604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28605 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28606 ac_status=$?
28607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28608 test $ac_status = 0; }; then
28609 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28610else
28611 pkg_failed=yes
28612fi
28613 else
28614 pkg_failed=untried
28615fi
28616
28617
28618
28619if test $pkg_failed = yes; then
28620
28621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28622 _pkg_short_errors_supported=yes
28623else
28624 _pkg_short_errors_supported=no
28625fi
28626 if test $_pkg_short_errors_supported = yes; then
28627 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28628 else
28629 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28630 fi
28631 # Put the nasty error message in config.log where it belongs
28632 echo "$AUTOTRACE_PKG_ERRORS" >&5
28633
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28635$as_echo "no" >&6; }
28636 have_autotrace=no
28637elif test $pkg_failed = untried; then
28638 have_autotrace=no
28639else
28640 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28641 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28643$as_echo "yes" >&6; }
28644 have_autotrace=yes
28645fi
cristy09b53e12011-10-14 12:47:22 +000028646 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28647$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028648fi
28649
28650if test "$have_autotrace" = 'yes'; then
28651 failed=0
28652
cristy8b350f62009-11-15 23:12:43 +000028653$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028654
28655 if test "$with_modules" = 'no'; then
28656 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28657 fi
28658fi
28659
cristy73bd4a52010-10-05 11:24:23 +000028660 if test "$have_autotrace" = 'yes'; then
28661 AUTOTRACE_DELEGATE_TRUE=
28662 AUTOTRACE_DELEGATE_FALSE='#'
28663else
28664 AUTOTRACE_DELEGATE_TRUE='#'
28665 AUTOTRACE_DELEGATE_FALSE=
28666fi
28667
cristy3ed852e2009-09-05 21:47:34 +000028668
28669
28670
28671
28672#
28673# Check for Display Postscript delegate library.
28674#
28675
28676# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028677if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028678 withval=$with_dps; with_dps=$withval
28679else
28680 with_dps='yes'
28681fi
28682
28683
28684if test "$with_dps" != 'yes'; then
28685 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28686fi
28687
28688have_dps='no'
28689DPS_LIBS=''
28690if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28692$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028694$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28696$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028697 failed=0
28698 passed=0
28699 PERSIST_CPPFLAGS="$CPPFLAGS"
28700 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028701 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028702if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028703 passed=`expr $passed + 1`
28704else
28705 failed=`expr $failed + 1`
28706fi
28707
28708
28709 # DPS issues:
28710 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28711 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28712 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28713 # ImageMagick itself doesn't use -lXt.
28714 have_libdps='no'
28715 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028717$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028718if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028719 $as_echo_n "(cached) " >&6
28720else
28721 ac_check_lib_save_LIBS=$LIBS
28722LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028724/* end confdefs.h. */
28725
28726/* Override any GCC internal prototype to avoid an error.
28727 Use char because int might match the return type of a GCC
28728 builtin and then its argument prototype would still apply. */
28729#ifdef __cplusplus
28730extern "C"
28731#endif
28732char DPSInitialize ();
28733int
28734main ()
28735{
28736return DPSInitialize ();
28737 ;
28738 return 0;
28739}
28740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028742 ac_cv_lib_dps_DPSInitialize=yes
28743else
cristy8b350f62009-11-15 23:12:43 +000028744 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028745fi
cristy8b350f62009-11-15 23:12:43 +000028746rm -f core conftest.err conftest.$ac_objext \
28747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028748LIBS=$ac_check_lib_save_LIBS
28749fi
cristy8b350f62009-11-15 23:12:43 +000028750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028751$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028752if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028753 have_libdps='yes'
28754else
28755 have_libdps='no'
28756fi
28757
28758 if test "$have_libdps" != 'yes'; then
28759 # Unset cache variable so we can try again.
28760 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028762$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028763if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028764 $as_echo_n "(cached) " >&6
28765else
28766 ac_check_lib_save_LIBS=$LIBS
28767LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028769/* end confdefs.h. */
28770
28771/* Override any GCC internal prototype to avoid an error.
28772 Use char because int might match the return type of a GCC
28773 builtin and then its argument prototype would still apply. */
28774#ifdef __cplusplus
28775extern "C"
28776#endif
28777char DPSInitialize ();
28778int
28779main ()
28780{
28781return DPSInitialize ();
28782 ;
28783 return 0;
28784}
28785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028787 ac_cv_lib_dps_DPSInitialize=yes
28788else
cristy8b350f62009-11-15 23:12:43 +000028789 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028790fi
cristy8b350f62009-11-15 23:12:43 +000028791rm -f core conftest.err conftest.$ac_objext \
28792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028793LIBS=$ac_check_lib_save_LIBS
28794fi
cristy8b350f62009-11-15 23:12:43 +000028795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028796$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028797if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028798 have_libdps='yes'
28799else
28800 have_libdps='no'
28801fi
28802
28803 if test "$have_libdps" = 'yes'; then
28804 LIBDPS_XT='-lXt'
28805 fi
28806 fi
28807 if test "$have_libdps" = 'yes'; then
28808 passed=`expr $passed + 1`
28809 else
28810 failed=`expr $failed + 1`
28811 fi
cristy8b350f62009-11-15 23:12:43 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028813$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028814if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028815 $as_echo_n "(cached) " >&6
28816else
28817 ac_check_lib_save_LIBS=$LIBS
28818LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028820/* end confdefs.h. */
28821
28822/* Override any GCC internal prototype to avoid an error.
28823 Use char because int might match the return type of a GCC
28824 builtin and then its argument prototype would still apply. */
28825#ifdef __cplusplus
28826extern "C"
28827#endif
28828char XDPSPixelsPerPoint ();
28829int
28830main ()
28831{
28832return XDPSPixelsPerPoint ();
28833 ;
28834 return 0;
28835}
28836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028838 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28839else
cristy8b350f62009-11-15 23:12:43 +000028840 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028841fi
cristy8b350f62009-11-15 23:12:43 +000028842rm -f core conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028844LIBS=$ac_check_lib_save_LIBS
28845fi
cristy8b350f62009-11-15 23:12:43 +000028846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028847$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028848if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028849 passed=`expr $passed + 1`
28850else
28851 failed=`expr $failed + 1`
28852fi
28853
cristy8b350f62009-11-15 23:12:43 +000028854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028855$as_echo_n "checking if DPS package is complete... " >&6; }
28856 if test $passed -gt 0; then
28857 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28859$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028860 have_dps='no (failed tests)'
28861 CPPFLAGS="$PERSIST_CPPFLAGS"
28862 else
28863 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28864 LIBS="$DPS_LIBS $LIBS"
28865
cristy8b350f62009-11-15 23:12:43 +000028866$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028867
cristy09b53e12011-10-14 12:47:22 +000028868 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28869$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028870 have_dps='yes'
28871 fi
28872 else
cristy09b53e12011-10-14 12:47:22 +000028873 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28874$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028875 CPPFLAGS=$PERSIST_CPPFLAGS
28876 fi
28877fi
cristy73bd4a52010-10-05 11:24:23 +000028878 if test "$have_dps" = 'yes'; then
28879 DPS_DELEGATE_TRUE=
28880 DPS_DELEGATE_FALSE='#'
28881else
28882 DPS_DELEGATE_TRUE='#'
28883 DPS_DELEGATE_FALSE=
28884fi
28885
cristy3ed852e2009-09-05 21:47:34 +000028886
28887
28888
28889#
28890# Check for DJVU delegate library.
28891#
28892
28893# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028894if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 withval=$with_djvu; with_djvu=$withval
28896else
28897 with_djvu='yes'
28898fi
28899
28900
28901if test "$with_djvu" != 'yes'; then
28902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28903fi
28904
28905have_djvu='no'
28906DJVU_LIBS=''
28907if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28909$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028911$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028912 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28913$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028914 failed=0
28915 passed=0
cristy8b350f62009-11-15 23:12:43 +000028916 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028917if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028918 passed=`expr $passed + 1`
28919else
28920 failed=`expr $failed + 1`
28921fi
28922
28923
cristy8b350f62009-11-15 23:12:43 +000028924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028925$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028926if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028927 $as_echo_n "(cached) " >&6
28928else
28929 ac_check_lib_save_LIBS=$LIBS
28930LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028932/* end confdefs.h. */
28933
28934/* Override any GCC internal prototype to avoid an error.
28935 Use char because int might match the return type of a GCC
28936 builtin and then its argument prototype would still apply. */
28937#ifdef __cplusplus
28938extern "C"
28939#endif
28940char ddjvu_context_create ();
28941int
28942main ()
28943{
28944return ddjvu_context_create ();
28945 ;
28946 return 0;
28947}
28948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28951else
cristy8b350f62009-11-15 23:12:43 +000028952 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028953fi
cristy8b350f62009-11-15 23:12:43 +000028954rm -f core conftest.err conftest.$ac_objext \
28955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028956LIBS=$ac_check_lib_save_LIBS
28957fi
cristy8b350f62009-11-15 23:12:43 +000028958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028960if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028961 passed=`expr $passed + 1`
28962else
28963 failed=`expr $failed + 1`
28964fi
28965
cristy8b350f62009-11-15 23:12:43 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo_n "checking if DJVU package is complete... " >&6; }
28968 if test $passed -gt 0; then
28969 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28971$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028972 have_djvu='no (failed tests)'
28973 else
28974 DJVU_LIBS='-ldjvulibre'
28975 LIBS="$DJVU_LIBS $LIBS"
28976
cristy8b350f62009-11-15 23:12:43 +000028977$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028978
cristy09b53e12011-10-14 12:47:22 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28980$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028981 have_djvu='yes'
28982 fi
28983 else
cristy09b53e12011-10-14 12:47:22 +000028984 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28985$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028986 fi
28987fi
cristy73bd4a52010-10-05 11:24:23 +000028988 if test "$have_djvu" = 'yes'; then
28989 DJVU_DELEGATE_TRUE=
28990 DJVU_DELEGATE_FALSE='#'
28991else
28992 DJVU_DELEGATE_TRUE='#'
28993 DJVU_DELEGATE_FALSE=
28994fi
28995
cristy3ed852e2009-09-05 21:47:34 +000028996
28997
28998
28999#
cristy430a7312010-01-21 20:44:04 +000029000# Set DejaVu font directory.
29001#
29002
29003# Check whether --with-dejavu-font-dir was given.
29004if test "${with_dejavu_font_dir+set}" = set; then :
29005 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29006else
29007 with_dejavu_font_dir='default'
29008fi
29009
29010
29011if test "$with_dejavu_font_dir" != 'default'; then
29012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29013fi
29014
29015
29016#
cristy3ed852e2009-09-05 21:47:34 +000029017# Check for FFTW delegate library.
29018#
29019
29020# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029021if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029022 withval=$with_fftw; with_fftw=$withval
29023else
29024 with_fftw='yes'
29025fi
29026
29027
29028if test "$with_fftw" != 'yes'; then
29029 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29030fi
29031
cristy81beccd2011-10-03 18:17:24 +000029032have_fftw='no'
29033FFTW_LIBS=''
29034if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029035 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29036$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29038$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29040$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029041 failed=0
29042 passed=0
29043 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29044if test "x$ac_cv_header_fftw3_h" = xyes; then :
29045 passed=`expr $passed + 1`
29046else
29047 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029048fi
29049
cristy81beccd2011-10-03 18:17:24 +000029050
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29052$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29053if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29054 $as_echo_n "(cached) " >&6
29055else
29056 ac_check_lib_save_LIBS=$LIBS
29057LIBS="-lfftw3 $LIBS"
29058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29059/* end confdefs.h. */
29060
29061/* Override any GCC internal prototype to avoid an error.
29062 Use char because int might match the return type of a GCC
29063 builtin and then its argument prototype would still apply. */
29064#ifdef __cplusplus
29065extern "C"
29066#endif
29067char fftw_execute ();
29068int
29069main ()
29070{
29071return fftw_execute ();
29072 ;
29073 return 0;
29074}
29075_ACEOF
29076if ac_fn_c_try_link "$LINENO"; then :
29077 ac_cv_lib_fftw3_fftw_execute=yes
29078else
29079 ac_cv_lib_fftw3_fftw_execute=no
29080fi
29081rm -f core conftest.err conftest.$ac_objext \
29082 conftest$ac_exeext conftest.$ac_ext
29083LIBS=$ac_check_lib_save_LIBS
29084fi
29085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29086$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29087if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29088 passed=`expr $passed + 1`
29089else
29090 failed=`expr $failed + 1`
29091fi
29092
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29094$as_echo_n "checking if FFTW package is complete... " >&6; }
29095 if test $passed -gt 0; then
29096 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029097 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29098$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029099 have_fftw='no (failed tests)'
29100 else
29101 FFTW_LIBS='-lfftw3'
29102 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029103
cristy8b350f62009-11-15 23:12:43 +000029104$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029105
cristy09b53e12011-10-14 12:47:22 +000029106 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29107$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029108 have_fftw='yes'
29109 fi
29110 else
cristy09b53e12011-10-14 12:47:22 +000029111 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29112$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029113 fi
29114fi
cristy73bd4a52010-10-05 11:24:23 +000029115 if test "$have_fftw" = 'yes'; then
29116 FFTW_DELEGATE_TRUE=
29117 FFTW_DELEGATE_FALSE='#'
29118else
29119 FFTW_DELEGATE_TRUE='#'
29120 FFTW_DELEGATE_FALSE=
29121fi
29122
cristy3ed852e2009-09-05 21:47:34 +000029123
29124
29125
29126#
29127# Check for FlashPIX delegate library.
29128#
29129
29130# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029131if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029132 withval=$with_fpx; with_fpx=$withval
29133else
29134 with_fpx='yes'
29135fi
29136
29137
29138if test "$with_fpx" != 'yes'; then
29139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29140fi
29141
29142have_fpx='no'
29143FPX_LIBS=''
29144if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29146$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029148$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29150$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029151 failed=0
29152 passed=0
29153 ac_ext=cpp
29154ac_cpp='$CXXCPP $CPPFLAGS'
29155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29158
29159
cristy8b350f62009-11-15 23:12:43 +000029160ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029161if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029162 passed=`expr $passed + 1`
29163else
29164 failed=`expr $failed + 1`
29165fi
29166
29167
cristy8b350f62009-11-15 23:12:43 +000029168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029169$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029170if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029171 $as_echo_n "(cached) " >&6
29172else
29173 ac_check_lib_save_LIBS=$LIBS
29174LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029176/* end confdefs.h. */
29177
29178/* Override any GCC internal prototype to avoid an error.
29179 Use char because int might match the return type of a GCC
29180 builtin and then its argument prototype would still apply. */
29181#ifdef __cplusplus
29182extern "C"
29183#endif
29184char FPX_OpenImageByFilename ();
29185int
29186main ()
29187{
29188return FPX_OpenImageByFilename ();
29189 ;
29190 return 0;
29191}
29192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029193if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029194 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29195else
cristy8b350f62009-11-15 23:12:43 +000029196 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029197fi
cristy8b350f62009-11-15 23:12:43 +000029198rm -f core conftest.err conftest.$ac_objext \
29199 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029200LIBS=$ac_check_lib_save_LIBS
29201fi
cristy8b350f62009-11-15 23:12:43 +000029202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029204if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029205 passed=`expr $passed + 1`
29206else
29207 failed=`expr $failed + 1`
29208fi
29209
29210 ac_ext=c
29211ac_cpp='$CPP $CPPFLAGS'
29212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29214ac_compiler_gnu=$ac_cv_c_compiler_gnu
29215
cristy8b350f62009-11-15 23:12:43 +000029216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029217$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29218 if test $passed -gt 0; then
29219 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029220 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29221$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029222 have_fpx='no (failed tests)'
29223 else
29224 FPX_LIBS='-lfpx'
29225
cristy8b350f62009-11-15 23:12:43 +000029226$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029227
cristy09b53e12011-10-14 12:47:22 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29229$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029230 have_fpx='yes'
29231 PERLMAINCC="$CXX"
29232 fi
29233 else
cristy09b53e12011-10-14 12:47:22 +000029234 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29235$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029236 fi
29237fi
cristy73bd4a52010-10-05 11:24:23 +000029238 if test "$have_fpx" = 'yes'; then
29239 FPX_DELEGATE_TRUE=
29240 FPX_DELEGATE_FALSE='#'
29241else
29242 FPX_DELEGATE_TRUE='#'
29243 FPX_DELEGATE_FALSE=
29244fi
29245
cristy3ed852e2009-09-05 21:47:34 +000029246
29247
29248
29249#
29250# Check for fontconfig delegate library.
29251#
29252
29253# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029254if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029255 withval=$with_fontconfig; with_fontconfig=$withval
29256else
cristyfc3d0222012-02-07 15:05:57 +000029257 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029258fi
29259
29260
29261if test "$with_fontconfig" != 'yes'; then
29262 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29263fi
29264
29265have_fontconfig='no'
29266FONTCONFIG_CFLAGS=""
29267FONTCONFIG_LIBS=""
29268FONTCONFIG_PKG=""
29269if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29271$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029272
29273pkg_failed=no
29274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29275$as_echo_n "checking for FONTCONFIG... " >&6; }
29276
29277if test -n "$FONTCONFIG_CFLAGS"; then
29278 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29279 elif test -n "$PKG_CONFIG"; then
29280 if test -n "$PKG_CONFIG" && \
29281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29282 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29283 ac_status=$?
29284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29285 test $ac_status = 0; }; then
29286 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29287else
29288 pkg_failed=yes
29289fi
29290 else
29291 pkg_failed=untried
29292fi
29293if test -n "$FONTCONFIG_LIBS"; then
29294 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29295 elif test -n "$PKG_CONFIG"; then
29296 if test -n "$PKG_CONFIG" && \
29297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29298 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29299 ac_status=$?
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; then
29302 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29303else
29304 pkg_failed=yes
29305fi
29306 else
29307 pkg_failed=untried
29308fi
29309
29310
29311
29312if test $pkg_failed = yes; then
29313
29314if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29315 _pkg_short_errors_supported=yes
29316else
29317 _pkg_short_errors_supported=no
29318fi
29319 if test $_pkg_short_errors_supported = yes; then
29320 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29321 else
29322 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29323 fi
29324 # Put the nasty error message in config.log where it belongs
29325 echo "$FONTCONFIG_PKG_ERRORS" >&5
29326
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29328$as_echo "no" >&6; }
29329 have_fontconfig=no
29330elif test $pkg_failed = untried; then
29331 have_fontconfig=no
29332else
29333 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29334 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29336$as_echo "yes" >&6; }
29337 have_fontconfig=yes
29338fi
cristy09b53e12011-10-14 12:47:22 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29340$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029341fi
29342
29343if test "$have_fontconfig" = 'yes'; then
29344
cristy8b350f62009-11-15 23:12:43 +000029345$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029346
cristyd09bcf92010-03-25 03:04:45 +000029347 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029348 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029349 fi
cristy3ed852e2009-09-05 21:47:34 +000029350fi
29351
cristy73bd4a52010-10-05 11:24:23 +000029352 if test "$have_fontconfig" = 'yes'; then
29353 FONTCONFIG_DELEGATE_TRUE=
29354 FONTCONFIG_DELEGATE_FALSE='#'
29355else
29356 FONTCONFIG_DELEGATE_TRUE='#'
29357 FONTCONFIG_DELEGATE_FALSE=
29358fi
29359
cristy3ed852e2009-09-05 21:47:34 +000029360
29361
29362
29363
29364#
cristy81beccd2011-10-03 18:17:24 +000029365# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029366#
29367
29368# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029369if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029370 withval=$with_freetype; with_freetype=$withval
29371else
29372 with_freetype='yes'
29373fi
29374
29375
cristy81beccd2011-10-03 18:17:24 +000029376
cristy3ed852e2009-09-05 21:47:34 +000029377if test "$with_freetype" != 'yes'; then
29378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29379fi
29380
cristy81beccd2011-10-03 18:17:24 +000029381have_freetype='no'
29382FREETYPE_LIBS=''
29383if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029384 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29385$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29387$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29389$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029390 failed=0
29391 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029392 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029393 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029394 freetype_config=''
29395 # Allow the user to specify the location of freetype.
29396 if test "$with_freetype" != 'yes'; then
29397 if test -x "${with_freetype}/bin/freetype-config"; then
29398 freetype_config="${with_freetype}/bin/freetype-config"
29399 elif test -x "${with_freetype}"; then
29400 freetype_config=${with_freetype}
29401 fi
29402 fi
29403 if test -z "$freetype_config"; then
29404 # Extract the first word of "freetype-config", so it can be a program name with args.
29405set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29407$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029408if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029409 $as_echo_n "(cached) " >&6
29410else
cristy98ca0f52011-10-08 23:19:10 +000029411 case $freetype_config in
29412 [\\/]* | ?:[\\/]*)
29413 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29414 ;;
29415 *)
29416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029417for as_dir in $PATH
29418do
29419 IFS=$as_save_IFS
29420 test -z "$as_dir" && as_dir=.
29421 for ac_exec_ext in '' $ac_executable_extensions; do
29422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000029423 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29425 break 2
29426 fi
29427done
29428 done
29429IFS=$as_save_IFS
29430
cristy98ca0f52011-10-08 23:19:10 +000029431 ;;
29432esac
cristy81beccd2011-10-03 18:17:24 +000029433fi
cristy98ca0f52011-10-08 23:19:10 +000029434freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029435if test -n "$freetype_config"; then
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29437$as_echo "$freetype_config" >&6; }
29438else
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29440$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029441fi
29442
cristy98ca0f52011-10-08 23:19:10 +000029443 fi
29444 if test -n "$freetype_config"; then
29445 freetype_prefix=`${freetype_config} --prefix`
29446 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29447 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29448 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029449 fi
29450
29451 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029453$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29454if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29455 $as_echo_n "(cached) " >&6
29456else
29457 ac_check_lib_save_LIBS=$LIBS
29458LIBS="-lfreetype $LIBS"
29459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29460/* end confdefs.h. */
29461
29462/* Override any GCC internal prototype to avoid an error.
29463 Use char because int might match the return type of a GCC
29464 builtin and then its argument prototype would still apply. */
29465#ifdef __cplusplus
29466extern "C"
29467#endif
29468char FT_Init_FreeType ();
29469int
29470main ()
29471{
29472return FT_Init_FreeType ();
29473 ;
29474 return 0;
29475}
29476_ACEOF
29477if ac_fn_c_try_link "$LINENO"; then :
29478 ac_cv_lib_freetype_FT_Init_FreeType=yes
29479else
29480 ac_cv_lib_freetype_FT_Init_FreeType=no
29481fi
29482rm -f core conftest.err conftest.$ac_objext \
29483 conftest$ac_exeext conftest.$ac_ext
29484LIBS=$ac_check_lib_save_LIBS
29485fi
29486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29487$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29488if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29489 FREETYPE_LIBS='-lfreetype'
29490fi
29491
cristy98ca0f52011-10-08 23:19:10 +000029492 if test "$FREETYPE_LIBS" != ''; then
29493 passed=`expr $passed + 1`
29494 else
29495 failed=`expr $failed + 1`
29496 LDFLAGS="$PERSIST_LDFLAGS"
29497 fi
cristy81beccd2011-10-03 18:17:24 +000029498 fi
29499
29500 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29501if test "x$ac_cv_header_ft2build_h" = xyes; then :
29502 FT2BUILD_H='#include <ft2build.h>'
29503else
29504 ft2build=''
29505fi
29506
29507
29508 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29509"
29510if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29511 have_freetype_h='yes'
29512else
29513 have_freetype_h='no'
29514fi
29515
29516
cristy98ca0f52011-10-08 23:19:10 +000029517 if test "$have_freetype_h" = 'yes'; then
29518 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029519 else
cristy98ca0f52011-10-08 23:19:10 +000029520 failed=`expr $failed + 1`
29521 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029522 fi
29523
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29525$as_echo_n "checking if FreeType package is complete... " >&6; }
29526 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029527 if test $failed -gt 0; then
29528 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29530$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029531 have_freetype='no (failed tests)'
29532 else
29533 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029534
cristy8b350f62009-11-15 23:12:43 +000029535$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029536
cristy98ca0f52011-10-08 23:19:10 +000029537 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029538
29539$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29540
cristy81beccd2011-10-03 18:17:24 +000029541 fi
cristy09b53e12011-10-14 12:47:22 +000029542 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29543$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029544 have_freetype='yes'
29545 fi
cristy81beccd2011-10-03 18:17:24 +000029546 else
cristy09b53e12011-10-14 12:47:22 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29548$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029549 fi
29550fi
cristy73bd4a52010-10-05 11:24:23 +000029551 if test "$have_freetype" = 'yes'; then
29552 FREETYPE_DELEGATE_TRUE=
29553 FREETYPE_DELEGATE_FALSE='#'
29554else
29555 FREETYPE_DELEGATE_TRUE='#'
29556 FREETYPE_DELEGATE_FALSE=
29557fi
29558
cristy3ed852e2009-09-05 21:47:34 +000029559
29560
29561
cristy3ed852e2009-09-05 21:47:34 +000029562#
29563# Check for Ghostscript library or framework.
29564#
29565# Test for iapi.h & test for gsapi_new_instance in -lgs
29566# or -framework Ghostscript
29567
29568
29569# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029570if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029571 withval=$with_gslib; with_gslib=$withval
29572else
29573 with_gslib='no'
29574fi
29575
29576
cristyb7931f12009-09-25 10:22:21 +000029577gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029578if test "$with_gslib" != 'yes'; then
29579 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29580fi
29581
29582have_gslib='no'
29583GS_LIBS=''
29584if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29586$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29590$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029591 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029592 failed=0
29593 passed=0
cristy8b350f62009-11-15 23:12:43 +000029594 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029595if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029596 passed=`expr $passed + 1`
29597else
29598 failed=`expr $failed + 1`
29599fi
29600
29601
cristy8b350f62009-11-15 23:12:43 +000029602 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029603if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029604 passed=`expr $passed + 1`
29605else
29606 failed=`expr $failed + 1`
29607fi
29608
29609
cristy73bd4a52010-10-05 11:24:23 +000029610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29611$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029612if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029613 $as_echo_n "(cached) " >&6
29614else
29615 ac_check_framework_save_LIBS=$LIBS
29616LIBS="-framework Ghostscript $LIBS"
29617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618/* end confdefs.h. */
29619
29620/* Override any GCC internal prototype to avoid an error.
29621 Use char because int might match the return type of a GCC
29622 builtin and then its argument prototype would still apply. */
29623#ifdef __cplusplus
29624extern "C"
29625#endif
29626char gsapi_new_instance ();
29627int
29628main ()
29629{
29630return gsapi_new_instance ();
29631 ;
29632 return 0;
29633}
29634_ACEOF
29635if ac_fn_c_try_link "$LINENO"; then :
29636 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29637else
29638 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29639fi
29640rm -f core conftest.err conftest.$ac_objext \
29641 conftest$ac_exeext conftest.$ac_ext
29642LIBS=$ac_check_framework_save_LIBS
29643fi
29644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29645$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29646if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29647 framework=`expr $framework + 1`
29648else
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029650$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029651if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029652 $as_echo_n "(cached) " >&6
29653else
29654 ac_check_lib_save_LIBS=$LIBS
29655LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029657/* end confdefs.h. */
29658
29659/* Override any GCC internal prototype to avoid an error.
29660 Use char because int might match the return type of a GCC
29661 builtin and then its argument prototype would still apply. */
29662#ifdef __cplusplus
29663extern "C"
29664#endif
29665char gsapi_new_instance ();
29666int
29667main ()
29668{
29669return gsapi_new_instance ();
29670 ;
29671 return 0;
29672}
29673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029675 ac_cv_lib_gs_gsapi_new_instance=yes
29676else
cristy8b350f62009-11-15 23:12:43 +000029677 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029678fi
cristy8b350f62009-11-15 23:12:43 +000029679rm -f core conftest.err conftest.$ac_objext \
29680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029681LIBS=$ac_check_lib_save_LIBS
29682fi
cristy8b350f62009-11-15 23:12:43 +000029683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029685if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029686 passed=`expr $passed + 1`
29687else
29688 failed=`expr $failed + 1`
29689fi
cristy73bd4a52010-10-05 11:24:23 +000029690
29691fi
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29694 if test $passed -gt 0; then
29695 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29697$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029698 have_gslib='no (failed tests)'
29699 else
29700 if test $framework -gt 0; then
29701 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029702 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29704$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029705 else
cristy09b53e12011-10-14 12:47:22 +000029706 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29707$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029708 GS_LIBS='-lgs'
29709 fi
29710 LIBS="$GS_LIBS $LIBS"
29711
cristy8b350f62009-11-15 23:12:43 +000029712$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029713
29714 have_gslib='yes'
29715 fi
29716 else
cristy09b53e12011-10-14 12:47:22 +000029717 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29718$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029719 fi
29720fi
cristy73bd4a52010-10-05 11:24:23 +000029721 if test "$have_gslib" = 'yes'; then
29722 GS_DELEGATE_TRUE=
29723 GS_DELEGATE_FALSE='#'
29724else
29725 GS_DELEGATE_TRUE='#'
29726 GS_DELEGATE_FALSE=
29727fi
29728
cristy3ed852e2009-09-05 21:47:34 +000029729
29730
29731# Set default font search path
29732
29733# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029734if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029735 withval=$with_fontpath; with_fontpath=$withval
29736else
29737 with_fontpath=''
29738fi
29739
29740
29741if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29742 with_fontpath=''
29743else
29744
29745cat >>confdefs.h <<_ACEOF
29746#define MAGICK_FONT_PATH "$with_fontpath"
29747_ACEOF
29748
29749fi
29750if test "$with_fontpath=" != ''; then
29751 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29752fi
29753
29754# Set Ghostscript font directory
29755
29756# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029757if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029758 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29759else
29760 with_gs_font_dir='default'
29761fi
29762
29763
29764if test "$with_gs_font_dir" != 'default'; then
29765 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29766fi
29767
29768
29769#
29770# Check for GVC delegate library.
29771#
29772
29773# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029774if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029775 withval=$with_gvc; with_gvc=$withval
29776else
29777 with_gvc='yes'
29778fi
29779
29780
29781if test "$with_gvc" != 'yes'; then
29782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29783fi
29784
29785GVC_PKG=""
29786if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029787 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29788$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029789
29790pkg_failed=no
29791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29792$as_echo_n "checking for GVC... " >&6; }
29793
29794if test -n "$GVC_CFLAGS"; then
29795 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29796 elif test -n "$PKG_CONFIG"; then
29797 if test -n "$PKG_CONFIG" && \
29798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29799 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29800 ac_status=$?
29801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29802 test $ac_status = 0; }; then
29803 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29804else
29805 pkg_failed=yes
29806fi
29807 else
29808 pkg_failed=untried
29809fi
29810if test -n "$GVC_LIBS"; then
29811 pkg_cv_GVC_LIBS="$GVC_LIBS"
29812 elif test -n "$PKG_CONFIG"; then
29813 if test -n "$PKG_CONFIG" && \
29814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29815 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29816 ac_status=$?
29817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29818 test $ac_status = 0; }; then
29819 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29820else
29821 pkg_failed=yes
29822fi
29823 else
29824 pkg_failed=untried
29825fi
29826
29827
29828
29829if test $pkg_failed = yes; then
29830
29831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29832 _pkg_short_errors_supported=yes
29833else
29834 _pkg_short_errors_supported=no
29835fi
29836 if test $_pkg_short_errors_supported = yes; then
29837 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29838 else
29839 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29840 fi
29841 # Put the nasty error message in config.log where it belongs
29842 echo "$GVC_PKG_ERRORS" >&5
29843
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29845$as_echo "no" >&6; }
29846 have_gvc=no
29847elif test $pkg_failed = untried; then
29848 have_gvc=no
29849else
29850 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29851 GVC_LIBS=$pkg_cv_GVC_LIBS
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29853$as_echo "yes" >&6; }
29854 have_gvc=yes
29855fi
cristy09b53e12011-10-14 12:47:22 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29857$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029858fi
29859
29860if test "$have_gvc" = 'yes'; then
29861
cristy8b350f62009-11-15 23:12:43 +000029862$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029863
29864 if test "$with_modules" = 'no'; then
29865 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29866 fi
29867fi
29868
cristy73bd4a52010-10-05 11:24:23 +000029869 if test "$have_gvc" = 'yes'; then
29870 GVC_DELEGATE_TRUE=
29871 GVC_DELEGATE_FALSE='#'
29872else
29873 GVC_DELEGATE_TRUE='#'
29874 GVC_DELEGATE_FALSE=
29875fi
29876
cristy3ed852e2009-09-05 21:47:34 +000029877
29878
29879
29880
29881#
29882# Check for JBIG delegate library.
29883#
29884
29885
29886# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029887if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029888 withval=$with_jbig; with_jbig=$withval
29889else
29890 with_jbig='yes'
29891fi
29892
29893
29894have_jbig='no'
29895JBIG_LIBS=''
29896if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29898$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29902$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029903 failed=0
29904 passed=0
cristy8b350f62009-11-15 23:12:43 +000029905 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029906if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029907 passed=`expr $passed + 1`
29908else
29909 failed=`expr $failed + 1`
29910fi
29911
29912
cristy8b350f62009-11-15 23:12:43 +000029913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029914$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029915if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029916 $as_echo_n "(cached) " >&6
29917else
29918 ac_check_lib_save_LIBS=$LIBS
29919LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029921/* end confdefs.h. */
29922
29923/* Override any GCC internal prototype to avoid an error.
29924 Use char because int might match the return type of a GCC
29925 builtin and then its argument prototype would still apply. */
29926#ifdef __cplusplus
29927extern "C"
29928#endif
29929char jbg_dec_init ();
29930int
29931main ()
29932{
29933return jbg_dec_init ();
29934 ;
29935 return 0;
29936}
29937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029939 ac_cv_lib_jbig_jbg_dec_init=yes
29940else
cristy8b350f62009-11-15 23:12:43 +000029941 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029942fi
cristy8b350f62009-11-15 23:12:43 +000029943rm -f core conftest.err conftest.$ac_objext \
29944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029945LIBS=$ac_check_lib_save_LIBS
29946fi
cristy8b350f62009-11-15 23:12:43 +000029947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029948$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029949if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029950 passed=`expr $passed + 1`
29951else
29952 failed=`expr $failed + 1`
29953fi
29954
cristy8b350f62009-11-15 23:12:43 +000029955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029956$as_echo_n "checking if JBIG package is complete... " >&6; }
29957 if test $passed -gt 0; then
29958 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29960$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029961 have_jbig='no (failed tests)'
29962 else
29963 JBIG_LIBS='-ljbig'
29964 LIBS="$JBIG_LIBS $LIBS"
29965
cristy8b350f62009-11-15 23:12:43 +000029966$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029967
cristy09b53e12011-10-14 12:47:22 +000029968 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29969$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029970 have_jbig='yes'
29971 fi
29972 else
cristy09b53e12011-10-14 12:47:22 +000029973 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29974$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029975 fi
29976fi
cristy73bd4a52010-10-05 11:24:23 +000029977 if test "$have_jbig" = 'yes'; then
29978 JBIG_DELEGATE_TRUE=
29979 JBIG_DELEGATE_FALSE='#'
29980else
29981 JBIG_DELEGATE_TRUE='#'
29982 JBIG_DELEGATE_FALSE=
29983fi
29984
cristy3ed852e2009-09-05 21:47:34 +000029985
29986
29987
29988#
29989# Check for JPEG delegate library.
29990#
29991
29992# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029993if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 withval=$with_jpeg; with_jpeg=$withval
29995else
29996 with_jpeg='yes'
29997fi
29998
29999
30000if test "$with_jpeg" != 'yes'; then
30001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30002fi
30003
30004have_jpeg='no'
30005JPEG_LIBS=''
30006if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30008$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030011 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30012$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030013 failed=0
30014 passed=0
cristy8b350f62009-11-15 23:12:43 +000030015 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030016if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030017 passed=`expr $passed + 1`
30018else
30019 failed=`expr $failed + 1`
30020fi
30021
30022
cristy8b350f62009-11-15 23:12:43 +000030023 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030024if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030025 passed=`expr $passed + 1`
30026else
30027 failed=`expr $failed + 1`
30028fi
30029
30030
cristy8b350f62009-11-15 23:12:43 +000030031 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030032if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030033 passed=`expr $passed + 1`
30034else
30035 failed=`expr $failed + 1`
30036fi
30037
30038
cristy8b350f62009-11-15 23:12:43 +000030039 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030040if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030041 passed=`expr $passed + 1`
30042else
30043 failed=`expr $failed + 1`
30044fi
30045
30046
cristy8b350f62009-11-15 23:12:43 +000030047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030048$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030049if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030050 $as_echo_n "(cached) " >&6
30051else
30052 ac_check_lib_save_LIBS=$LIBS
30053LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030055/* end confdefs.h. */
30056
30057/* Override any GCC internal prototype to avoid an error.
30058 Use char because int might match the return type of a GCC
30059 builtin and then its argument prototype would still apply. */
30060#ifdef __cplusplus
30061extern "C"
30062#endif
30063char jpeg_read_header ();
30064int
30065main ()
30066{
30067return jpeg_read_header ();
30068 ;
30069 return 0;
30070}
30071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030073 ac_cv_lib_jpeg_jpeg_read_header=yes
30074else
cristy8b350f62009-11-15 23:12:43 +000030075 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030076fi
cristy8b350f62009-11-15 23:12:43 +000030077rm -f core conftest.err conftest.$ac_objext \
30078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030079LIBS=$ac_check_lib_save_LIBS
30080fi
cristy8b350f62009-11-15 23:12:43 +000030081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030083if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030084 passed=`expr $passed + 1`
30085else
30086 failed=`expr $failed + 1`
30087fi
30088
30089
30090# Test for compatible JPEG library
30091if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030093$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030094if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030095 $as_echo_n "(cached) " >&6
30096else
cristy8b350f62009-11-15 23:12:43 +000030097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030098/* end confdefs.h. */
30099#include <stdio.h>
30100#include <stdlib.h>
30101#include <jpeglib.h>
30102
30103int
30104main ()
30105{
30106
30107#if JPEG_LIB_VERSION < 62
30108#error IJG JPEG library must be version 6b or newer!
30109#endif
30110return 0;
30111
30112 ;
30113 return 0;
30114}
30115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030117 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30118else
cristy8b350f62009-11-15 23:12:43 +000030119 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030120fi
cristy3ed852e2009-09-05 21:47:34 +000030121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30122fi
cristy8b350f62009-11-15 23:12:43 +000030123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030124$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30125fi
cristy8b350f62009-11-15 23:12:43 +000030126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127$as_echo_n "checking if JPEG package is complete... " >&6; }
30128 if test $passed -gt 0; then
30129 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30131$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030132 have_jpeg='no (failed tests)'
30133 else
30134 JPEG_LIBS='-ljpeg'
30135 LIBS="$JPEG_LIBS $LIBS"
30136
cristy8b350f62009-11-15 23:12:43 +000030137$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030138
cristy09b53e12011-10-14 12:47:22 +000030139 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30140$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030141 have_jpeg='yes'
30142 fi
30143 else
cristy09b53e12011-10-14 12:47:22 +000030144 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30145$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030146 fi
30147fi
cristy73bd4a52010-10-05 11:24:23 +000030148 if test "$have_jpeg" = 'yes'; then
30149 JPEG_DELEGATE_TRUE=
30150 JPEG_DELEGATE_FALSE='#'
30151else
30152 JPEG_DELEGATE_TRUE='#'
30153 JPEG_DELEGATE_FALSE=
30154fi
30155
cristy3ed852e2009-09-05 21:47:34 +000030156
30157
30158
30159#
30160# Check for JPEG Version 2 delegate library.
30161#
30162
30163# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030164if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030165 withval=$with_jp2; with_jp2=$withval
30166else
30167 with_jp2='yes'
30168fi
30169
30170
30171if test "$with_jp2" != 'yes'; then
30172 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30173fi
30174
30175have_jp2='no'
30176JP2_LIBS=''
30177if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30179$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30183$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030184 failed=0
30185 passed=0
cristy8b350f62009-11-15 23:12:43 +000030186 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030187if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030188 passed=`expr $passed + 1`
30189else
30190 failed=`expr $failed + 1`
30191fi
30192
30193
cristy8b350f62009-11-15 23:12:43 +000030194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030195$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030196if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030197 $as_echo_n "(cached) " >&6
30198else
30199 ac_check_lib_save_LIBS=$LIBS
30200LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030202/* end confdefs.h. */
30203
30204/* Override any GCC internal prototype to avoid an error.
30205 Use char because int might match the return type of a GCC
30206 builtin and then its argument prototype would still apply. */
30207#ifdef __cplusplus
30208extern "C"
30209#endif
30210char jas_stream_fopen ();
30211int
30212main ()
30213{
30214return jas_stream_fopen ();
30215 ;
30216 return 0;
30217}
30218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030219if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030220 ac_cv_lib_jasper_jas_stream_fopen=yes
30221else
cristy8b350f62009-11-15 23:12:43 +000030222 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030223fi
cristy8b350f62009-11-15 23:12:43 +000030224rm -f core conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030226LIBS=$ac_check_lib_save_LIBS
30227fi
cristy8b350f62009-11-15 23:12:43 +000030228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030230if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030231 passed=`expr $passed + 1`
30232else
30233 failed=`expr $failed + 1`
30234fi
30235
cristy8b350f62009-11-15 23:12:43 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30238 if test $passed -gt 0; then
30239 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030240 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30241$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030242 have_jp2='no (failed tests)'
30243 else
30244 JP2_LIBS='-ljasper'
30245 LIBS="$JP2_LIBS $LIBS"
30246
cristy8b350f62009-11-15 23:12:43 +000030247$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030248
cristy09b53e12011-10-14 12:47:22 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30250$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030251 have_jp2='yes'
30252 fi
30253 else
cristy09b53e12011-10-14 12:47:22 +000030254 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30255$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030256 fi
30257fi
cristy73bd4a52010-10-05 11:24:23 +000030258 if test "$have_jp2" = 'yes'; then
30259 JP2_DELEGATE_TRUE=
30260 JP2_DELEGATE_FALSE='#'
30261else
30262 JP2_DELEGATE_TRUE='#'
30263 JP2_DELEGATE_FALSE=
30264fi
30265
cristy3ed852e2009-09-05 21:47:34 +000030266
30267
30268
30269#
30270# Check for LCMS delegate library.
30271#
cristy71203402010-06-18 13:12:03 +000030272# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030273
30274# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030275if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 withval=$with_lcms; with_lcms=$withval
30277else
30278 with_lcms='yes'
30279fi
30280
cristy71203402010-06-18 13:12:03 +000030281if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30283fi
30284
cristy71203402010-06-18 13:12:03 +000030285# Disable LCMS2.
30286
30287# Check whether --with-lcms2 was given.
30288if test "${with_lcms2+set}" = set; then :
30289 withval=$with_lcms2; with_lcms2=$withval
30290else
30291 with_lcms2='yes'
30292fi
30293
30294if test "$with_lcms2" != 'yes' ; then
30295 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30296fi
30297
30298have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030299LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030300if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30302$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30304$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30306$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030307 failed=0
30308 passed=0
30309 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030310
30311 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030312 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030313if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030314 have_lcms_header='yes'
30315fi
30316
30317
30318 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030319
30320$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30321
cristy71203402010-06-18 13:12:03 +000030322 passed=`expr $passed + 1`
30323 fi
30324
30325 # Check for <lcms2/lcms2.h)
30326 if test "$have_lcms_header" != 'yes'; then
30327 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030328if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030329 have_lcms_header='yes'
30330fi
30331
30332
cristy71203402010-06-18 13:12:03 +000030333 if test "$have_lcms_header" = 'yes'; then
30334 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030335
cristy71203402010-06-18 13:12:03 +000030336$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030337
cristy71203402010-06-18 13:12:03 +000030338 fi
cristyd09bcf92010-03-25 03:04:45 +000030339 fi
cristy71203402010-06-18 13:12:03 +000030340
30341 # Failed to find lcms header?
30342 if test "$have_lcms_header" != 'yes'; then
30343 failed=`expr $failed + 1`
30344 fi
30345
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30347$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030348if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030349 $as_echo_n "(cached) " >&6
30350else
30351 ac_check_lib_save_LIBS=$LIBS
30352LIBS="-llcms2 $LIBS"
30353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30354/* end confdefs.h. */
30355
30356/* Override any GCC internal prototype to avoid an error.
30357 Use char because int might match the return type of a GCC
30358 builtin and then its argument prototype would still apply. */
30359#ifdef __cplusplus
30360extern "C"
30361#endif
cristy71203402010-06-18 13:12:03 +000030362char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030363int
30364main ()
30365{
cristy71203402010-06-18 13:12:03 +000030366return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030367 ;
30368 return 0;
30369}
30370_ACEOF
30371if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030372 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030373else
cristy71203402010-06-18 13:12:03 +000030374 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030375fi
30376rm -f core conftest.err conftest.$ac_objext \
30377 conftest$ac_exeext conftest.$ac_ext
30378LIBS=$ac_check_lib_save_LIBS
30379fi
cristy71203402010-06-18 13:12:03 +000030380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30381$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030382if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030383 passed=`expr $passed + 1`
30384else
30385 failed=`expr $failed + 1`
30386fi
30387
cristy71203402010-06-18 13:12:03 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30389$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030390 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030391 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30393$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030394 have_lcms2='no (failed tests)'
30395 else
30396 LCMS_LIBS='-llcms2'
30397 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30399$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030400 have_lcms2='yes'
30401 fi
cristyd09bcf92010-03-25 03:04:45 +000030402 else
cristy09b53e12011-10-14 12:47:22 +000030403 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30404$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030405 fi
30406fi
30407
cristy71203402010-06-18 13:12:03 +000030408#
30409# Check for LCMS v1 (1.11 or later)
30410#
30411if test $have_lcms2 = 'yes'; then
30412 with_lcms='no'
30413fi
30414
30415have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030416if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030417 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30418$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30420$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30422$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030423 failed=0
30424 passed=0
30425 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030426
30427 # Check for <lcms.h>
30428 if test "$have_lcms_header" != 'yes'; then
30429 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030430if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030431 have_lcms_header='yes'
30432fi
30433
30434
cristy71203402010-06-18 13:12:03 +000030435 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030436 passed=`expr $passed + 1`
30437
cristy8b350f62009-11-15 23:12:43 +000030438$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030439
cristy71203402010-06-18 13:12:03 +000030440 fi
30441 fi
30442
30443 # Check for <lcms/lcms.h>
30444 if test "$have_lcms_header" != 'yes'; then
30445 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030446if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030447 have_lcms_header='yes'
30448fi
30449
30450
cristy71203402010-06-18 13:12:03 +000030451 if test "$have_lcms_header" = 'yes'; then
30452 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030453
cristy8b350f62009-11-15 23:12:43 +000030454$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030455
cristy71203402010-06-18 13:12:03 +000030456 fi
cristy3ed852e2009-09-05 21:47:34 +000030457 fi
cristy71203402010-06-18 13:12:03 +000030458
30459 # Failed to find lcms header?
30460 if test "$have_lcms_header" != 'yes'; then
30461 failed=`expr $failed + 1`
30462 fi
30463
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30465$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030466if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030467 $as_echo_n "(cached) " >&6
30468else
30469 ac_check_lib_save_LIBS=$LIBS
30470LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030472/* end confdefs.h. */
30473
30474/* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30477#ifdef __cplusplus
30478extern "C"
30479#endif
cristy71203402010-06-18 13:12:03 +000030480char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030481int
30482main ()
30483{
cristy71203402010-06-18 13:12:03 +000030484return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030485 ;
30486 return 0;
30487}
30488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030489if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030490 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030491else
cristy71203402010-06-18 13:12:03 +000030492 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030493fi
cristy8b350f62009-11-15 23:12:43 +000030494rm -f core conftest.err conftest.$ac_objext \
30495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030496LIBS=$ac_check_lib_save_LIBS
30497fi
cristy71203402010-06-18 13:12:03 +000030498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30499$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030500if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030501 passed=`expr $passed + 1`
30502else
30503 failed=`expr $failed + 1`
30504fi
30505
cristy8b350f62009-11-15 23:12:43 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030507$as_echo_n "checking if LCMS package is complete... " >&6; }
30508 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030509 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30511$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030512 have_lcms='no (failed tests)'
30513 else
30514 LCMS_LIBS='-llcms'
30515 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30517$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030518 have_lcms='yes'
30519 fi
cristy3ed852e2009-09-05 21:47:34 +000030520 else
cristy09b53e12011-10-14 12:47:22 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30522$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030523 fi
30524fi
cristy71203402010-06-18 13:12:03 +000030525
cristy73bd4a52010-10-05 11:24:23 +000030526 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30527 LCMS_DELEGATE_TRUE=
30528 LCMS_DELEGATE_FALSE='#'
30529else
30530 LCMS_DELEGATE_TRUE='#'
30531 LCMS_DELEGATE_FALSE=
30532fi
30533
cristy71203402010-06-18 13:12:03 +000030534if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30535
30536$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30537
30538fi
30539
cristy3ed852e2009-09-05 21:47:34 +000030540
30541
30542
30543#
30544# Check for the LQR (Liquid Rescale) delegate library.
30545#
30546
30547# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030548if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030549 withval=$with_lqr; with_lqr=$withval
30550else
30551 with_lqr='yes'
30552fi
30553
30554
30555if test "$with_lqr" != 'yes'; then
30556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30557fi
30558
30559have_lqr='no'
30560LQR_CFLAGS=""
30561LQR_LIBS=""
30562LQR_PKG=""
30563if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030564 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30565$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030566
30567pkg_failed=no
30568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30569$as_echo_n "checking for LQR... " >&6; }
30570
30571if test -n "$LQR_CFLAGS"; then
30572 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30573 elif test -n "$PKG_CONFIG"; then
30574 if test -n "$PKG_CONFIG" && \
30575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30576 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30577 ac_status=$?
30578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30579 test $ac_status = 0; }; then
30580 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30581else
30582 pkg_failed=yes
30583fi
30584 else
30585 pkg_failed=untried
30586fi
30587if test -n "$LQR_LIBS"; then
30588 pkg_cv_LQR_LIBS="$LQR_LIBS"
30589 elif test -n "$PKG_CONFIG"; then
30590 if test -n "$PKG_CONFIG" && \
30591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30592 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30593 ac_status=$?
30594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30595 test $ac_status = 0; }; then
30596 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30597else
30598 pkg_failed=yes
30599fi
30600 else
30601 pkg_failed=untried
30602fi
30603
30604
30605
30606if test $pkg_failed = yes; then
30607
30608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30609 _pkg_short_errors_supported=yes
30610else
30611 _pkg_short_errors_supported=no
30612fi
30613 if test $_pkg_short_errors_supported = yes; then
30614 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30615 else
30616 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30617 fi
30618 # Put the nasty error message in config.log where it belongs
30619 echo "$LQR_PKG_ERRORS" >&5
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622$as_echo "no" >&6; }
30623 have_lqr=no
30624elif test $pkg_failed = untried; then
30625 have_lqr=no
30626else
30627 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30628 LQR_LIBS=$pkg_cv_LQR_LIBS
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30630$as_echo "yes" >&6; }
30631 have_lqr=yes
30632fi
cristy09b53e12011-10-14 12:47:22 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30634$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030635fi
30636
30637if test "$have_lqr" = 'yes'; then
30638
cristy8b350f62009-11-15 23:12:43 +000030639$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030640
30641 CFLAGS="$LQR_CFLAGS $CFLAGS"
30642fi
30643
cristy73bd4a52010-10-05 11:24:23 +000030644 if test "$have_lqr" = 'yes'; then
30645 LQR_DELEGATE_TRUE=
30646 LQR_DELEGATE_FALSE='#'
30647else
30648 LQR_DELEGATE_TRUE='#'
30649 LQR_DELEGATE_FALSE=
30650fi
30651
cristy3ed852e2009-09-05 21:47:34 +000030652
30653
30654
30655
cristy81beccd2011-10-03 18:17:24 +000030656# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030657
30658# Check whether --with-lzma was given.
30659if test "${with_lzma+set}" = set; then :
30660 withval=$with_lzma; with_lzma=$withval
30661else
30662 with_lzma='yes'
30663fi
30664
cristy81beccd2011-10-03 18:17:24 +000030665if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030666 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30667fi
30668
cristyb94e5002011-11-14 13:20:10 +000030669LZMA_PKG=""
30670if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030671 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30672$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030673
30674pkg_failed=no
30675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030676$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030677
30678if test -n "$LZMA_CFLAGS"; then
30679 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30680 elif test -n "$PKG_CONFIG"; then
30681 if test -n "$PKG_CONFIG" && \
30682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30683 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30684 ac_status=$?
30685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30686 test $ac_status = 0; }; then
30687 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30688else
30689 pkg_failed=yes
30690fi
30691 else
30692 pkg_failed=untried
30693fi
30694if test -n "$LZMA_LIBS"; then
30695 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30696 elif test -n "$PKG_CONFIG"; then
30697 if test -n "$PKG_CONFIG" && \
30698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30699 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30700 ac_status=$?
30701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30702 test $ac_status = 0; }; then
30703 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30704else
30705 pkg_failed=yes
30706fi
30707 else
30708 pkg_failed=untried
30709fi
30710
30711
30712
30713if test $pkg_failed = yes; then
30714
30715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30716 _pkg_short_errors_supported=yes
30717else
30718 _pkg_short_errors_supported=no
30719fi
30720 if test $_pkg_short_errors_supported = yes; then
30721 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30722 else
30723 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30724 fi
30725 # Put the nasty error message in config.log where it belongs
30726 echo "$LZMA_PKG_ERRORS" >&5
30727
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30729$as_echo "no" >&6; }
30730 have_lzma=no
30731elif test $pkg_failed = untried; then
30732 have_lzma=no
30733else
30734 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30735 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30737$as_echo "yes" >&6; }
30738 have_lzma=yes
30739fi
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030741$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030742fi
30743
cristyb94e5002011-11-14 13:20:10 +000030744if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030745
30746$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30747
cristyb94e5002011-11-14 13:20:10 +000030748 if test "$with_modules" = 'no'; then
30749 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030750 fi
cristyfbb0ef02010-12-19 02:32:11 +000030751fi
cristyb94e5002011-11-14 13:20:10 +000030752
cristyfbb0ef02010-12-19 02:32:11 +000030753 if test "$have_lzma" = 'yes'; then
30754 LZMA_DELEGATE_TRUE=
30755 LZMA_DELEGATE_FALSE='#'
30756else
30757 LZMA_DELEGATE_TRUE='#'
30758 LZMA_DELEGATE_FALSE=
30759fi
30760
30761
30762
30763
cristyb94e5002011-11-14 13:20:10 +000030764
cristy3ed852e2009-09-05 21:47:34 +000030765#
30766# Check for the OpenEXR delegate library.
30767#
30768
30769# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030770if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030771 withval=$with_openexr; with_openexr=$withval
30772else
30773 with_openexr='yes'
30774fi
30775
30776
30777if test "$with_openexr" != 'yes'; then
30778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30779fi
30780
30781have_openexr='no'
30782OPENEXR_CFLAGS=""
30783OPENEXR_LIBS=""
30784OPENEXR_PKG=""
30785if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030786 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30787$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030788
30789pkg_failed=no
30790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30791$as_echo_n "checking for OPENEXR... " >&6; }
30792
30793if test -n "$OPENEXR_CFLAGS"; then
30794 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30795 elif test -n "$PKG_CONFIG"; then
30796 if test -n "$PKG_CONFIG" && \
30797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30798 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30799 ac_status=$?
30800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30801 test $ac_status = 0; }; then
30802 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30803else
30804 pkg_failed=yes
30805fi
30806 else
30807 pkg_failed=untried
30808fi
30809if test -n "$OPENEXR_LIBS"; then
30810 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30811 elif test -n "$PKG_CONFIG"; then
30812 if test -n "$PKG_CONFIG" && \
30813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30814 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30815 ac_status=$?
30816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30817 test $ac_status = 0; }; then
30818 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30819else
30820 pkg_failed=yes
30821fi
30822 else
30823 pkg_failed=untried
30824fi
30825
30826
30827
30828if test $pkg_failed = yes; then
30829
30830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30831 _pkg_short_errors_supported=yes
30832else
30833 _pkg_short_errors_supported=no
30834fi
30835 if test $_pkg_short_errors_supported = yes; then
30836 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30837 else
30838 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30839 fi
30840 # Put the nasty error message in config.log where it belongs
30841 echo "$OPENEXR_PKG_ERRORS" >&5
30842
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30844$as_echo "no" >&6; }
30845 have_openexr=no
30846elif test $pkg_failed = untried; then
30847 have_openexr=no
30848else
30849 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30850 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30852$as_echo "yes" >&6; }
30853 have_openexr=yes
30854fi
cristy09b53e12011-10-14 12:47:22 +000030855 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30856$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030857fi
30858
30859if test "$have_openexr" = 'yes'; then
30860
cristy8b350f62009-11-15 23:12:43 +000030861$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030862
30863 if test "$with_modules" = 'no'; then
30864 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30865 fi
30866fi
30867
cristy73bd4a52010-10-05 11:24:23 +000030868 if test "$have_openexr" = 'yes'; then
30869 OPENEXR_DELEGATE_TRUE=
30870 OPENEXR_DELEGATE_FALSE='#'
30871else
30872 OPENEXR_DELEGATE_TRUE='#'
30873 OPENEXR_DELEGATE_FALSE=
30874fi
30875
cristy3ed852e2009-09-05 21:47:34 +000030876
30877
30878
30879
30880#
cristy41cbe8a2011-10-27 01:35:18 +000030881# Check for PANGO delegate library.
30882#
30883
30884# Check whether --with-pango was given.
30885if test "${with_pango+set}" = set; then :
30886 withval=$with_pango; with_pango=$withval
30887else
cristyfc3d0222012-02-07 15:05:57 +000030888 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030889fi
30890
30891
30892if test "$with_pango" != 'yes'; then
30893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30894fi
30895
30896have_pango='no'
30897have_pangoft2='no'
30898PANGO_CFLAGS=""
30899PANGO_LIBS=""
30900PANGO_PKG=""
30901if test "x$with_pango" = "xyes"; then
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30903$as_echo "-------------------------------------------------------------" >&6; }
30904
30905pkg_failed=no
30906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30907$as_echo_n "checking for PANGO... " >&6; }
30908
30909if test -n "$PANGO_CFLAGS"; then
30910 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30911 elif test -n "$PKG_CONFIG"; then
30912 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030913 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30914 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030915 ac_status=$?
30916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30917 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030918 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030919else
30920 pkg_failed=yes
30921fi
30922 else
30923 pkg_failed=untried
30924fi
30925if test -n "$PANGO_LIBS"; then
30926 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30927 elif test -n "$PKG_CONFIG"; then
30928 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30930 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030931 ac_status=$?
30932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30933 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030934 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030935else
30936 pkg_failed=yes
30937fi
30938 else
30939 pkg_failed=untried
30940fi
30941
30942
30943
30944if test $pkg_failed = yes; then
30945
30946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30947 _pkg_short_errors_supported=yes
30948else
30949 _pkg_short_errors_supported=no
30950fi
30951 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030952 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030953 else
cristy2542fc62011-12-06 17:50:25 +000030954 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030955 fi
30956 # Put the nasty error message in config.log where it belongs
30957 echo "$PANGO_PKG_ERRORS" >&5
30958
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960$as_echo "no" >&6; }
30961 have_pangoft2=no
30962elif test $pkg_failed = untried; then
30963 have_pangoft2=no
30964else
30965 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30966 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30968$as_echo "yes" >&6; }
30969 have_pangoft2=yes
30970fi
30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30972$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030973
30974pkg_failed=no
30975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30976$as_echo_n "checking for PANGO... " >&6; }
30977
30978if test -n "$PANGO_CFLAGS"; then
30979 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30980 elif test -n "$PKG_CONFIG"; then
30981 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30983 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030984 ac_status=$?
30985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30986 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030987 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030988else
30989 pkg_failed=yes
30990fi
30991 else
30992 pkg_failed=untried
30993fi
30994if test -n "$PANGO_LIBS"; then
30995 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30996 elif test -n "$PKG_CONFIG"; then
30997 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30999 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031000 ac_status=$?
31001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31002 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031003 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031004else
31005 pkg_failed=yes
31006fi
31007 else
31008 pkg_failed=untried
31009fi
31010
31011
31012
31013if test $pkg_failed = yes; then
31014
31015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31016 _pkg_short_errors_supported=yes
31017else
31018 _pkg_short_errors_supported=no
31019fi
31020 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031021 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031022 else
cristy2542fc62011-12-06 17:50:25 +000031023 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031024 fi
31025 # Put the nasty error message in config.log where it belongs
31026 echo "$PANGO_PKG_ERRORS" >&5
31027
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31029$as_echo "no" >&6; }
31030 have_pango=no
31031elif test $pkg_failed = untried; then
31032 have_pango=no
31033else
31034 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31035 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31037$as_echo "yes" >&6; }
31038 have_pango=yes
31039fi
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31041$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031042fi
31043
31044if test "$have_pango" = 'yes'; then
31045
31046$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31047
31048 if test "$with_modules" = 'no'; then
31049 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31050 fi
31051fi
31052
31053if test "$have_pangoft2" = 'yes'; then
31054
31055$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
31056
31057 if test "$with_modules" = 'no'; then
31058 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
31059 fi
31060fi
31061
31062 if test "$have_pango" = 'yes'; then
31063 PANGO_DELEGATE_TRUE=
31064 PANGO_DELEGATE_FALSE='#'
31065else
31066 PANGO_DELEGATE_TRUE='#'
31067 PANGO_DELEGATE_FALSE=
31068fi
31069
31070 if test "$have_pangoft2" = 'yes'; then
31071 PANGOFT2_DELEGATE_TRUE=
31072 PANGOFT2_DELEGATE_FALSE='#'
31073else
31074 PANGOFT2_DELEGATE_TRUE='#'
31075 PANGOFT2_DELEGATE_FALSE=
31076fi
31077
31078
31079
31080
31081
31082#
cristy3ed852e2009-09-05 21:47:34 +000031083# Check for PNG delegate library.
31084#
31085
31086# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031087if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031088 withval=$with_png; with_png=$withval
31089else
31090 with_png='yes'
31091fi
31092
31093
31094if test "$with_png" != 'yes'; then
31095 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31096fi
31097
cristy81beccd2011-10-03 18:17:24 +000031098have_png='no'
31099PNG_LIBS=''
31100
31101if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31103$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31105$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031106 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31107$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031108 failed=0
31109 passed=0
31110 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31111if test "x$ac_cv_header_png_h" = xyes; then :
31112 passed=`expr $passed + 1`
31113else
31114 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031115fi
31116
cristy81beccd2011-10-03 18:17:24 +000031117
31118
31119 if test $passed -gt 0; then
31120 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031121 if test "$have_png" = 'no' ; then
31122 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031123 pnglib='png'
31124 else
31125 pnglib="png1${var}"
31126 fi
31127
31128# Test for compatible LIBPNG library
31129 failed=0
31130 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031131 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031132 if test "${pnglib}" != 'png' ; then
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31134$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31136/* end confdefs.h. */
31137#include <stdio.h>
31138#include <stdlib.h>
31139#include <png.h>
31140
31141int
31142main ()
31143{
31144
31145#if PNG_LIBPNG_VER_MINOR != ${var}
31146#error LIBPNG library must be version 1${var}!
31147Kaboom, Kaboom
31148#endif
31149return 0;
31150
31151 ;
31152 return 0;
31153}
31154_ACEOF
31155if ac_fn_c_try_compile "$LINENO"; then :
31156 ac_cv_libpng_ok='yes'
31157else
31158 ac_cv_libpng_ok='no'
31159fi
31160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31161 if test "$ac_cv_libpng_ok" = 'yes' ; then
31162 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031163 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31164$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031165 else
31166 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31168$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031169 fi
31170 else
31171 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31173$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031174 fi
31175 fi
31176
31177 if test $passed -gt 0 -a $failed -le 0; then
31178 if test "1${var}" = '15' ; then
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31180$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31181if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31182 $as_echo_n "(cached) " >&6
31183else
31184 ac_check_lib_save_LIBS=$LIBS
31185LIBS="-lpng15 $LIBS"
31186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31187/* end confdefs.h. */
31188
31189/* Override any GCC internal prototype to avoid an error.
31190 Use char because int might match the return type of a GCC
31191 builtin and then its argument prototype would still apply. */
31192#ifdef __cplusplus
31193extern "C"
31194#endif
31195char png_get_io_ptr ();
31196int
31197main ()
31198{
31199return png_get_io_ptr ();
31200 ;
31201 return 0;
31202}
31203_ACEOF
31204if ac_fn_c_try_link "$LINENO"; then :
31205 ac_cv_lib_png15_png_get_io_ptr=yes
31206else
31207 ac_cv_lib_png15_png_get_io_ptr=no
31208fi
31209rm -f core conftest.err conftest.$ac_objext \
31210 conftest$ac_exeext conftest.$ac_ext
31211LIBS=$ac_check_lib_save_LIBS
31212fi
31213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31214$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31215if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31216 passed=`expr $passed + 1`
31217else
31218 failed=`expr $failed + 1`
31219fi
31220
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31222$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31223if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31224 $as_echo_n "(cached) " >&6
31225else
31226 ac_check_lib_save_LIBS=$LIBS
31227LIBS="-lpng15 $LIBS"
31228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31229/* end confdefs.h. */
31230
31231/* Override any GCC internal prototype to avoid an error.
31232 Use char because int might match the return type of a GCC
31233 builtin and then its argument prototype would still apply. */
31234#ifdef __cplusplus
31235extern "C"
31236#endif
31237char png_longjmp ();
31238int
31239main ()
31240{
31241return png_longjmp ();
31242 ;
31243 return 0;
31244}
31245_ACEOF
31246if ac_fn_c_try_link "$LINENO"; then :
31247 ac_cv_lib_png15_png_longjmp=yes
31248else
31249 ac_cv_lib_png15_png_longjmp=no
31250fi
31251rm -f core conftest.err conftest.$ac_objext \
31252 conftest$ac_exeext conftest.$ac_ext
31253LIBS=$ac_check_lib_save_LIBS
31254fi
31255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31256$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31257if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31258 passed=`expr $passed + 1`
31259else
31260 failed=`expr $failed + 1`
31261fi
31262
31263 fi
31264 if test "1${var}" = '14' ; then
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31266$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31267if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31268 $as_echo_n "(cached) " >&6
31269else
31270 ac_check_lib_save_LIBS=$LIBS
31271LIBS="-lpng14 $LIBS"
31272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31273/* end confdefs.h. */
31274
31275/* Override any GCC internal prototype to avoid an error.
31276 Use char because int might match the return type of a GCC
31277 builtin and then its argument prototype would still apply. */
31278#ifdef __cplusplus
31279extern "C"
31280#endif
31281char png_get_io_ptr ();
31282int
31283main ()
31284{
31285return png_get_io_ptr ();
31286 ;
31287 return 0;
31288}
31289_ACEOF
31290if ac_fn_c_try_link "$LINENO"; then :
31291 ac_cv_lib_png14_png_get_io_ptr=yes
31292else
31293 ac_cv_lib_png14_png_get_io_ptr=no
31294fi
31295rm -f core conftest.err conftest.$ac_objext \
31296 conftest$ac_exeext conftest.$ac_ext
31297LIBS=$ac_check_lib_save_LIBS
31298fi
31299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31300$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31301if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31302 passed=`expr $passed + 1`
31303else
31304 failed=`expr $failed + 1`
31305fi
31306
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31308$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31309if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31310 $as_echo_n "(cached) " >&6
31311else
31312 ac_check_lib_save_LIBS=$LIBS
31313LIBS="-lpng14 $LIBS"
31314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31315/* end confdefs.h. */
31316
31317/* Override any GCC internal prototype to avoid an error.
31318 Use char because int might match the return type of a GCC
31319 builtin and then its argument prototype would still apply. */
31320#ifdef __cplusplus
31321extern "C"
31322#endif
31323char png_get_io_state ();
31324int
31325main ()
31326{
31327return png_get_io_state ();
31328 ;
31329 return 0;
31330}
31331_ACEOF
31332if ac_fn_c_try_link "$LINENO"; then :
31333 ac_cv_lib_png14_png_get_io_state=yes
31334else
31335 ac_cv_lib_png14_png_get_io_state=no
31336fi
31337rm -f core conftest.err conftest.$ac_objext \
31338 conftest$ac_exeext conftest.$ac_ext
31339LIBS=$ac_check_lib_save_LIBS
31340fi
31341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31342$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31343if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31344 passed=`expr $passed + 1`
31345else
31346 failed=`expr $failed + 1`
31347fi
31348
31349 fi
31350 if test "1${var}" = '12' ; then
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31352$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31353if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31354 $as_echo_n "(cached) " >&6
31355else
31356 ac_check_lib_save_LIBS=$LIBS
31357LIBS="-lpng12 $LIBS"
31358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31359/* end confdefs.h. */
31360
31361/* Override any GCC internal prototype to avoid an error.
31362 Use char because int might match the return type of a GCC
31363 builtin and then its argument prototype would still apply. */
31364#ifdef __cplusplus
31365extern "C"
31366#endif
31367char png_get_io_ptr ();
31368int
31369main ()
31370{
31371return png_get_io_ptr ();
31372 ;
31373 return 0;
31374}
31375_ACEOF
31376if ac_fn_c_try_link "$LINENO"; then :
31377 ac_cv_lib_png12_png_get_io_ptr=yes
31378else
31379 ac_cv_lib_png12_png_get_io_ptr=no
31380fi
31381rm -f core conftest.err conftest.$ac_objext \
31382 conftest$ac_exeext conftest.$ac_ext
31383LIBS=$ac_check_lib_save_LIBS
31384fi
31385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31386$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31387if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31388 passed=`expr $passed + 1`
31389else
31390 failed=`expr $failed + 1`
31391fi
31392
31393 fi
31394 if test "1${var}" = '1' ; then
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31396$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31397if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31398 $as_echo_n "(cached) " >&6
31399else
31400 ac_check_lib_save_LIBS=$LIBS
31401LIBS="-lpng $LIBS"
31402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31403/* end confdefs.h. */
31404
31405/* Override any GCC internal prototype to avoid an error.
31406 Use char because int might match the return type of a GCC
31407 builtin and then its argument prototype would still apply. */
31408#ifdef __cplusplus
31409extern "C"
31410#endif
31411char png_get_io_ptr ();
31412int
31413main ()
31414{
31415return png_get_io_ptr ();
31416 ;
31417 return 0;
31418}
31419_ACEOF
31420if ac_fn_c_try_link "$LINENO"; then :
31421 ac_cv_lib_png_png_get_io_ptr=yes
31422else
31423 ac_cv_lib_png_png_get_io_ptr=no
31424fi
31425rm -f core conftest.err conftest.$ac_objext \
31426 conftest$ac_exeext conftest.$ac_ext
31427LIBS=$ac_check_lib_save_LIBS
31428fi
31429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31430$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31431if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31432 passed=`expr $passed + 1`
31433else
31434 failed=`expr $failed + 1`
31435fi
31436
31437 fi
31438 if test $passed -gt 0 -a $failed -le 0 ; then
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31440$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31441 if test $passed -gt 0 ; then
31442 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031443 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31444$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031445 have_png='no (failed tests)'
31446 else
31447 PNG_LIBS="-l${pnglib}"
31448 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031449
cristy8b350f62009-11-15 23:12:43 +000031450$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031451
cristy09b53e12011-10-14 12:47:22 +000031452 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31453$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031454 have_png='yes'
31455 fi
31456 fi
31457 fi
31458 fi
31459 fi
31460 done
31461 fi
cristy3ed852e2009-09-05 21:47:34 +000031462fi
cristy64877302011-08-23 19:10:31 +000031463
cristy73bd4a52010-10-05 11:24:23 +000031464 if test "$have_png" = 'yes'; then
31465 PNG_DELEGATE_TRUE=
31466 PNG_DELEGATE_FALSE='#'
31467else
31468 PNG_DELEGATE_TRUE='#'
31469 PNG_DELEGATE_FALSE=
31470fi
31471
cristy3ed852e2009-09-05 21:47:34 +000031472
cristy50d3f5c2011-09-10 20:09:06 +000031473
cristy3ed852e2009-09-05 21:47:34 +000031474
31475
31476#
31477# Check for RSVG delegate library.
31478#
31479
31480# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031481if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031482 withval=$with_rsvg; with_rsvg=$withval
31483else
cristyfc3d0222012-02-07 15:05:57 +000031484 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031485fi
31486
31487
31488if test "$with_rsvg" != 'yes'; then
31489 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31490fi
31491
31492have_rsvg='no'
31493have_cairo='no'
31494RSVG_CFLAGS=""
31495RSVG_LIBS=""
31496RSVG_PKG=""
31497if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031498 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31499$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031500
31501pkg_failed=no
31502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31503$as_echo_n "checking for RSVG... " >&6; }
31504
31505if test -n "$RSVG_CFLAGS"; then
31506 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31507 elif test -n "$PKG_CONFIG"; then
31508 if test -n "$PKG_CONFIG" && \
31509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31510 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31511 ac_status=$?
31512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31513 test $ac_status = 0; }; then
31514 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31515else
31516 pkg_failed=yes
31517fi
31518 else
31519 pkg_failed=untried
31520fi
31521if test -n "$RSVG_LIBS"; then
31522 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31523 elif test -n "$PKG_CONFIG"; then
31524 if test -n "$PKG_CONFIG" && \
31525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31526 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31527 ac_status=$?
31528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31529 test $ac_status = 0; }; then
31530 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31531else
31532 pkg_failed=yes
31533fi
31534 else
31535 pkg_failed=untried
31536fi
31537
31538
31539
31540if test $pkg_failed = yes; then
31541
31542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31543 _pkg_short_errors_supported=yes
31544else
31545 _pkg_short_errors_supported=no
31546fi
31547 if test $_pkg_short_errors_supported = yes; then
31548 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31549 else
31550 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31551 fi
31552 # Put the nasty error message in config.log where it belongs
31553 echo "$RSVG_PKG_ERRORS" >&5
31554
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31556$as_echo "no" >&6; }
31557 have_rsvg=no
31558elif test $pkg_failed = untried; then
31559 have_rsvg=no
31560else
31561 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31562 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31564$as_echo "yes" >&6; }
31565 have_rsvg=yes
31566fi
cristy09b53e12011-10-14 12:47:22 +000031567 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31568$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031569
31570pkg_failed=no
31571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31572$as_echo_n "checking for CAIRO_SVG... " >&6; }
31573
31574if test -n "$CAIRO_SVG_CFLAGS"; then
31575 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31576 elif test -n "$PKG_CONFIG"; then
31577 if test -n "$PKG_CONFIG" && \
31578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31579 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31580 ac_status=$?
31581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31582 test $ac_status = 0; }; then
31583 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31584else
31585 pkg_failed=yes
31586fi
31587 else
31588 pkg_failed=untried
31589fi
31590if test -n "$CAIRO_SVG_LIBS"; then
31591 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31592 elif test -n "$PKG_CONFIG"; then
31593 if test -n "$PKG_CONFIG" && \
31594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31595 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31596 ac_status=$?
31597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31598 test $ac_status = 0; }; then
31599 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31600else
31601 pkg_failed=yes
31602fi
31603 else
31604 pkg_failed=untried
31605fi
31606
31607
31608
31609if test $pkg_failed = yes; then
31610
31611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31612 _pkg_short_errors_supported=yes
31613else
31614 _pkg_short_errors_supported=no
31615fi
31616 if test $_pkg_short_errors_supported = yes; then
31617 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31618 else
31619 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31620 fi
31621 # Put the nasty error message in config.log where it belongs
31622 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31623
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31625$as_echo "no" >&6; }
31626 have_cairo=no
31627elif test $pkg_failed = untried; then
31628 have_cairo=no
31629else
31630 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31631 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31633$as_echo "yes" >&6; }
31634 have_cairo=yes
31635fi
cristy09b53e12011-10-14 12:47:22 +000031636 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31637$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031638fi
31639
31640if test "$have_rsvg" = 'yes'; then
31641
cristy8b350f62009-11-15 23:12:43 +000031642$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031643
31644 if test "$with_modules" = 'no'; then
31645 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31646 fi
31647fi
31648
31649if test "$have_cairo" = 'yes'; then
31650
cristy8b350f62009-11-15 23:12:43 +000031651$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031652
31653 if test "$with_modules" = 'no'; then
31654 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31655 fi
31656fi
31657
cristy73bd4a52010-10-05 11:24:23 +000031658 if test "$have_rsvg" = 'yes'; then
31659 RSVG_DELEGATE_TRUE=
31660 RSVG_DELEGATE_FALSE='#'
31661else
31662 RSVG_DELEGATE_TRUE='#'
31663 RSVG_DELEGATE_FALSE=
31664fi
31665
31666 if test "$have_cairo" = 'yes'; then
31667 CAIRO_DELEGATE_TRUE=
31668 CAIRO_DELEGATE_FALSE='#'
31669else
31670 CAIRO_DELEGATE_TRUE='#'
31671 CAIRO_DELEGATE_FALSE=
31672fi
31673
cristy3ed852e2009-09-05 21:47:34 +000031674
31675
31676
31677
31678#
31679# Check for TIFF delegate library.
31680#
31681
31682# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031683if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031684 withval=$with_tiff; with_tiff=$withval
31685else
31686 with_tiff='yes'
31687fi
31688
31689
31690if test "$with_tiff" != 'yes'; then
31691 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31692fi
31693
31694have_tiff='no'
31695TIFF_LIBS=''
31696if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031697 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31698$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031701 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31702$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031703 failed=0
31704 passed=0
cristy8b350f62009-11-15 23:12:43 +000031705 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031706if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031707 passed=`expr $passed + 1`
31708else
31709 failed=`expr $failed + 1`
31710fi
31711
31712
cristy8b350f62009-11-15 23:12:43 +000031713 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031714if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031715 passed=`expr $passed + 1`
31716else
31717 failed=`expr $failed + 1`
31718fi
31719
31720
cristy8b350f62009-11-15 23:12:43 +000031721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031722$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031723if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031724 $as_echo_n "(cached) " >&6
31725else
31726 ac_check_lib_save_LIBS=$LIBS
31727LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031729/* end confdefs.h. */
31730
31731/* Override any GCC internal prototype to avoid an error.
31732 Use char because int might match the return type of a GCC
31733 builtin and then its argument prototype would still apply. */
31734#ifdef __cplusplus
31735extern "C"
31736#endif
31737char TIFFOpen ();
31738int
31739main ()
31740{
31741return TIFFOpen ();
31742 ;
31743 return 0;
31744}
31745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031746if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031747 ac_cv_lib_tiff_TIFFOpen=yes
31748else
cristy8b350f62009-11-15 23:12:43 +000031749 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031750fi
cristy8b350f62009-11-15 23:12:43 +000031751rm -f core conftest.err conftest.$ac_objext \
31752 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031753LIBS=$ac_check_lib_save_LIBS
31754fi
cristy8b350f62009-11-15 23:12:43 +000031755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031756$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031757if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031758 passed=`expr $passed + 1`
31759else
31760 failed=`expr $failed + 1`
31761fi
31762
cristy8b350f62009-11-15 23:12:43 +000031763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031764$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031765if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031766 $as_echo_n "(cached) " >&6
31767else
31768 ac_check_lib_save_LIBS=$LIBS
31769LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031771/* end confdefs.h. */
31772
31773/* Override any GCC internal prototype to avoid an error.
31774 Use char because int might match the return type of a GCC
31775 builtin and then its argument prototype would still apply. */
31776#ifdef __cplusplus
31777extern "C"
31778#endif
31779char TIFFClientOpen ();
31780int
31781main ()
31782{
31783return TIFFClientOpen ();
31784 ;
31785 return 0;
31786}
31787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031789 ac_cv_lib_tiff_TIFFClientOpen=yes
31790else
cristy8b350f62009-11-15 23:12:43 +000031791 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031792fi
cristy8b350f62009-11-15 23:12:43 +000031793rm -f core conftest.err conftest.$ac_objext \
31794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031795LIBS=$ac_check_lib_save_LIBS
31796fi
cristy8b350f62009-11-15 23:12:43 +000031797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031799if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 passed=`expr $passed + 1`
31801else
31802 failed=`expr $failed + 1`
31803fi
31804
cristy8b350f62009-11-15 23:12:43 +000031805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031806$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031807if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031808 $as_echo_n "(cached) " >&6
31809else
31810 ac_check_lib_save_LIBS=$LIBS
31811LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031813/* end confdefs.h. */
31814
31815/* Override any GCC internal prototype to avoid an error.
31816 Use char because int might match the return type of a GCC
31817 builtin and then its argument prototype would still apply. */
31818#ifdef __cplusplus
31819extern "C"
31820#endif
31821char TIFFIsByteSwapped ();
31822int
31823main ()
31824{
31825return TIFFIsByteSwapped ();
31826 ;
31827 return 0;
31828}
31829_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031830if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031831 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31832else
cristy8b350f62009-11-15 23:12:43 +000031833 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031834fi
cristy8b350f62009-11-15 23:12:43 +000031835rm -f core conftest.err conftest.$ac_objext \
31836 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031837LIBS=$ac_check_lib_save_LIBS
31838fi
cristy8b350f62009-11-15 23:12:43 +000031839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031841if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031842 passed=`expr $passed + 1`
31843else
31844 failed=`expr $failed + 1`
31845fi
31846
cristy8b350f62009-11-15 23:12:43 +000031847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031848$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031849if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031850 $as_echo_n "(cached) " >&6
31851else
31852 ac_check_lib_save_LIBS=$LIBS
31853LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031855/* end confdefs.h. */
31856
31857/* Override any GCC internal prototype to avoid an error.
31858 Use char because int might match the return type of a GCC
31859 builtin and then its argument prototype would still apply. */
31860#ifdef __cplusplus
31861extern "C"
31862#endif
31863char TIFFReadRGBATile ();
31864int
31865main ()
31866{
31867return TIFFReadRGBATile ();
31868 ;
31869 return 0;
31870}
31871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031873 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31874else
cristy8b350f62009-11-15 23:12:43 +000031875 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031876fi
cristy8b350f62009-11-15 23:12:43 +000031877rm -f core conftest.err conftest.$ac_objext \
31878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031879LIBS=$ac_check_lib_save_LIBS
31880fi
cristy8b350f62009-11-15 23:12:43 +000031881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031883if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 passed=`expr $passed + 1`
31885else
31886 failed=`expr $failed + 1`
31887fi
31888
cristy8b350f62009-11-15 23:12:43 +000031889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031890$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031891if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031892 $as_echo_n "(cached) " >&6
31893else
31894 ac_check_lib_save_LIBS=$LIBS
31895LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031897/* end confdefs.h. */
31898
31899/* Override any GCC internal prototype to avoid an error.
31900 Use char because int might match the return type of a GCC
31901 builtin and then its argument prototype would still apply. */
31902#ifdef __cplusplus
31903extern "C"
31904#endif
31905char TIFFReadRGBAStrip ();
31906int
31907main ()
31908{
31909return TIFFReadRGBAStrip ();
31910 ;
31911 return 0;
31912}
31913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031915 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31916else
cristy8b350f62009-11-15 23:12:43 +000031917 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031918fi
cristy8b350f62009-11-15 23:12:43 +000031919rm -f core conftest.err conftest.$ac_objext \
31920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031921LIBS=$ac_check_lib_save_LIBS
31922fi
cristy8b350f62009-11-15 23:12:43 +000031923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031925if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031926 passed=`expr $passed + 1`
31927else
31928 failed=`expr $failed + 1`
31929fi
31930
cristy8b350f62009-11-15 23:12:43 +000031931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031932$as_echo_n "checking if TIFF package is complete... " >&6; }
31933 if test $passed -gt 0; then
31934 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31936$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031937 have_tiff='no (failed tests)'
31938 else
31939 TIFF_LIBS='-ltiff'
31940 LIBS="$TIFF_LIBS $LIBS"
31941
cristy8b350f62009-11-15 23:12:43 +000031942$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031943
cristy09b53e12011-10-14 12:47:22 +000031944 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31945$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031946 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031947 for ac_header in tiffconf.h
31948do :
31949 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031950if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031951 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031952#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031953_ACEOF
31954
31955fi
31956
31957done
31958
cristy8b350f62009-11-15 23:12:43 +000031959 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031960 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31961 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31962 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031963do :
31964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31965ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031966if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031967 cat >>confdefs.h <<_ACEOF
31968#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31969_ACEOF
31970
31971fi
31972done
31973
31974 fi
31975 else
cristy09b53e12011-10-14 12:47:22 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31977$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031978 fi
31979fi
cristy73bd4a52010-10-05 11:24:23 +000031980 if test "$have_tiff" = 'yes'; then
31981 TIFF_DELEGATE_TRUE=
31982 TIFF_DELEGATE_FALSE='#'
31983else
31984 TIFF_DELEGATE_TRUE='#'
31985 TIFF_DELEGATE_FALSE=
31986fi
31987
cristy3ed852e2009-09-05 21:47:34 +000031988
31989
31990
31991#
cristyb1860752011-03-14 00:27:46 +000031992# Check for WEBP delegate library.
31993#
31994
31995# Check whether --with-webp was given.
31996if test "${with_webp+set}" = set; then :
31997 withval=$with_webp; with_webp=$withval
31998else
31999 with_webp='yes'
32000fi
32001
32002
32003if test "$with_webp" != 'yes'; then
32004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32005fi
32006
32007have_webp='no'
32008WEBP_LIBS=''
32009if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032010 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32011$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32013$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032014 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32015$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032016 failed=0
32017 passed=0
32018 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32019if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32020 passed=`expr $passed + 1`
32021else
32022 failed=`expr $failed + 1`
32023fi
32024
32025
32026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32027$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32028if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32029 $as_echo_n "(cached) " >&6
32030else
32031 ac_check_lib_save_LIBS=$LIBS
32032LIBS="-lwebp $LIBS"
32033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32034/* end confdefs.h. */
32035
32036/* Override any GCC internal prototype to avoid an error.
32037 Use char because int might match the return type of a GCC
32038 builtin and then its argument prototype would still apply. */
32039#ifdef __cplusplus
32040extern "C"
32041#endif
32042char WebPDecodeRGB ();
32043int
32044main ()
32045{
32046return WebPDecodeRGB ();
32047 ;
32048 return 0;
32049}
32050_ACEOF
32051if ac_fn_c_try_link "$LINENO"; then :
32052 ac_cv_lib_webp_WebPDecodeRGB=yes
32053else
32054 ac_cv_lib_webp_WebPDecodeRGB=no
32055fi
32056rm -f core conftest.err conftest.$ac_objext \
32057 conftest$ac_exeext conftest.$ac_ext
32058LIBS=$ac_check_lib_save_LIBS
32059fi
32060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32061$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32062if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32063 passed=`expr $passed + 1`
32064else
32065 failed=`expr $failed + 1`
32066fi
32067
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32069$as_echo_n "checking if WEBP package is complete... " >&6; }
32070 if test $passed -gt 0; then
32071 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32073$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032074 have_webp='no (failed tests)'
32075 else
32076 WEBP_LIBS='-lwebp'
32077 LIBS="$WEBP_LIBS $LIBS"
32078
32079$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32080
cristy09b53e12011-10-14 12:47:22 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32082$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032083 have_webp='yes'
32084 fi
32085 else
cristy09b53e12011-10-14 12:47:22 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32087$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032088 fi
32089fi
32090 if test "$have_webp" = 'yes'; then
32091 WEBP_DELEGATE_TRUE=
32092 WEBP_DELEGATE_FALSE='#'
32093else
32094 WEBP_DELEGATE_TRUE='#'
32095 WEBP_DELEGATE_FALSE=
32096fi
32097
32098
32099
32100
32101#
cristy3ed852e2009-09-05 21:47:34 +000032102# Set Windows font directory.
32103#
32104
32105# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032106if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032107 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32108else
32109 with_windows_font_dir=''
32110fi
32111
32112if test "$with_windows_font_dir" != '' ; then
32113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32114fi
32115
32116
32117#
32118# Check for WMF delegate library.
32119#
32120
32121# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032122if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032123 withval=$with_wmf; with_wmf=$withval
32124else
cristyfc3d0222012-02-07 15:05:57 +000032125 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032126fi
32127
32128
32129if test "$with_wmf" != 'yes'; then
32130 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32131fi
32132
32133have_wmf='no'
32134WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032135WMF_LIBS_DEPS=''
32136OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032137if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32139$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32143$as_echo "" >&6; }
32144 have_libwmf='no'
32145 have_libwmflite='no'
32146 have_libwmf_ipa_h='no'
32147
32148 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32149"
32150if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32151 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032152fi
32153
32154
cristy03f7cf92011-12-15 01:40:41 +000032155 if test "$have_libwmf_ipa_h" = 'yes'; then
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32157$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32158if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032159 $as_echo_n "(cached) " >&6
32160else
32161 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032162LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032164/* end confdefs.h. */
32165
32166/* Override any GCC internal prototype to avoid an error.
32167 Use char because int might match the return type of a GCC
32168 builtin and then its argument prototype would still apply. */
32169#ifdef __cplusplus
32170extern "C"
32171#endif
cristy03f7cf92011-12-15 01:40:41 +000032172char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032173int
32174main ()
32175{
cristy03f7cf92011-12-15 01:40:41 +000032176return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032177 ;
32178 return 0;
32179}
32180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032181if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032182 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032183else
cristy03f7cf92011-12-15 01:40:41 +000032184 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032185fi
cristy8b350f62009-11-15 23:12:43 +000032186rm -f core conftest.err conftest.$ac_objext \
32187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032188LIBS=$ac_check_lib_save_LIBS
32189fi
cristy03f7cf92011-12-15 01:40:41 +000032190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32191$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32192if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32193 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032194fi
32195
cristy03f7cf92011-12-15 01:40:41 +000032196 if test "$have_libwmflite" = 'yes'; then
32197
32198$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32199
32200 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032201 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032202 have_wmf='yes'
32203 else
32204 WMF_LIBS_DEPS=''
32205 WMF_CONFIG_LIBS=`libwmf-config --libs`
32206 for lib in xml2 expat freetype jpeg png z; do
32207 testlib="-l${lib}"
32208 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32209 done
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32211$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32212if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32213 $as_echo_n "(cached) " >&6
32214else
32215 ac_check_lib_save_LIBS=$LIBS
32216LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32218/* end confdefs.h. */
32219
32220/* Override any GCC internal prototype to avoid an error.
32221 Use char because int might match the return type of a GCC
32222 builtin and then its argument prototype would still apply. */
32223#ifdef __cplusplus
32224extern "C"
32225#endif
32226char wmf_api_create ();
32227int
32228main ()
32229{
32230return wmf_api_create ();
32231 ;
32232 return 0;
32233}
32234_ACEOF
32235if ac_fn_c_try_link "$LINENO"; then :
32236 ac_cv_lib_wmf_wmf_api_create=yes
32237else
32238 ac_cv_lib_wmf_wmf_api_create=no
32239fi
32240rm -f core conftest.err conftest.$ac_objext \
32241 conftest$ac_exeext conftest.$ac_ext
32242LIBS=$ac_check_lib_save_LIBS
32243fi
32244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32245$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32246if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32247 have_libwmf='yes'
32248fi
32249
32250 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032251
cristy8b350f62009-11-15 23:12:43 +000032252$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032253
cristy03f7cf92011-12-15 01:40:41 +000032254 WMF_LIBS='-lwmf'
32255 LIBS="$WMF_LIBS $LIBS"
32256 have_wmf='yes'
32257 else
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32259$as_echo "no -- some components failed test" >&6; }
32260 have_wmf='no (failed tests)'
32261 have_wmflite='no (failed tests)'
32262 LIBS="$OLIBS"
32263 WMF_LIBS=''
32264 fi
glennrp33e524b2011-08-24 17:41:57 +000032265 fi
cristy03f7cf92011-12-15 01:40:41 +000032266 fi
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32268$as_echo_n "checking if WMF package is complete... " >&6; }
32269 if test "$have_wmf" = 'yes'; then
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32271$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032272 else
cristy03f7cf92011-12-15 01:40:41 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32274$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032275 fi
cristy3ed852e2009-09-05 21:47:34 +000032276fi
cristy73bd4a52010-10-05 11:24:23 +000032277 if test "$have_wmf" = 'yes'; then
32278 WMF_DELEGATE_TRUE=
32279 WMF_DELEGATE_FALSE='#'
32280else
32281 WMF_DELEGATE_TRUE='#'
32282 WMF_DELEGATE_FALSE=
32283fi
32284
cristy3ed852e2009-09-05 21:47:34 +000032285
32286
32287
cristy81beccd2011-10-03 18:17:24 +000032288
32289
cristy3ed852e2009-09-05 21:47:34 +000032290#
32291# Check for XML delegate library.
32292#
32293
32294# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032295if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032296 withval=$with_xml; with_xml=$withval
32297else
cristyfc3d0222012-02-07 15:05:57 +000032298 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032299fi
32300
32301
cristy81beccd2011-10-03 18:17:24 +000032302if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032303 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32304fi
32305
cristy81beccd2011-10-03 18:17:24 +000032306have_xml='no'
32307XML_LIBS=''
32308if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032309 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32310$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32312$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032313 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32314$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032315 PERSIST_LDFLAGS=$LDFLAGS
32316 PERSIST_CPPFLAGS=$CPPFLAGS
32317 xml2_config=''
32318 # Extract the first word of "xml2-config", so it can be a program name with args.
32319set dummy xml2-config; ac_word=$2
32320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32321$as_echo_n "checking for $ac_word... " >&6; }
32322if ${ac_cv_path_xml2_config+:} false; then :
32323 $as_echo_n "(cached) " >&6
32324else
32325 case $xml2_config in
32326 [\\/]* | ?:[\\/]*)
32327 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32328 ;;
32329 *)
32330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32331for as_dir in $PATH
32332do
32333 IFS=$as_save_IFS
32334 test -z "$as_dir" && as_dir=.
32335 for ac_exec_ext in '' $ac_executable_extensions; do
32336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32337 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32339 break 2
32340 fi
32341done
32342 done
32343IFS=$as_save_IFS
32344
32345 ;;
32346esac
32347fi
32348xml2_config=$ac_cv_path_xml2_config
32349if test -n "$xml2_config"; then
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32351$as_echo "$xml2_config" >&6; }
32352else
32353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32354$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032355fi
32356
cristy81beccd2011-10-03 18:17:24 +000032357 if test -n "$xml2_config"; then
32358 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32359 # the shared library installed under /usr/lib, whereas the package
32360 # installs itself under $prefix/libxml and $prefix/lib.
32361 xml2_prefix=`xml2-config --prefix`
32362 if test -d "${xml2_prefix}/include/libxml2"; then
32363 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32364 fi
32365 if test "${xml2_prefix}" != '/usr'; then
32366 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32367 fi
32368 fi
32369 failed=0
32370 passed=0
32371 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32372if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32373 passed=`expr $passed + 1`
32374else
32375 failed=`expr $failed + 1`
32376fi
32377
32378
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32380$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32381if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32382 $as_echo_n "(cached) " >&6
32383else
32384 ac_check_lib_save_LIBS=$LIBS
32385LIBS="-lxml2 $LIBS"
32386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32387/* end confdefs.h. */
32388
32389/* Override any GCC internal prototype to avoid an error.
32390 Use char because int might match the return type of a GCC
32391 builtin and then its argument prototype would still apply. */
32392#ifdef __cplusplus
32393extern "C"
32394#endif
32395char xmlSAXVersion ();
32396int
32397main ()
32398{
32399return xmlSAXVersion ();
32400 ;
32401 return 0;
32402}
32403_ACEOF
32404if ac_fn_c_try_link "$LINENO"; then :
32405 ac_cv_lib_xml2_xmlSAXVersion=yes
32406else
32407 ac_cv_lib_xml2_xmlSAXVersion=no
32408fi
32409rm -f core conftest.err conftest.$ac_objext \
32410 conftest$ac_exeext conftest.$ac_ext
32411LIBS=$ac_check_lib_save_LIBS
32412fi
32413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32414$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32415if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32416 passed=`expr $passed + 1`
32417else
32418 failed=`expr $failed + 1`
32419fi
32420
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32422$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32423if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32424 $as_echo_n "(cached) " >&6
32425else
32426 ac_check_lib_save_LIBS=$LIBS
32427LIBS="-lxml2 $LIBS"
32428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32429/* end confdefs.h. */
32430
32431/* Override any GCC internal prototype to avoid an error.
32432 Use char because int might match the return type of a GCC
32433 builtin and then its argument prototype would still apply. */
32434#ifdef __cplusplus
32435extern "C"
32436#endif
32437char xmlParseChunk ();
32438int
32439main ()
32440{
32441return xmlParseChunk ();
32442 ;
32443 return 0;
32444}
32445_ACEOF
32446if ac_fn_c_try_link "$LINENO"; then :
32447 ac_cv_lib_xml2_xmlParseChunk=yes
32448else
32449 ac_cv_lib_xml2_xmlParseChunk=no
32450fi
32451rm -f core conftest.err conftest.$ac_objext \
32452 conftest$ac_exeext conftest.$ac_ext
32453LIBS=$ac_check_lib_save_LIBS
32454fi
32455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32456$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32457if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32458 passed=`expr $passed + 1`
32459else
32460 failed=`expr $failed + 1`
32461fi
32462
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32464$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32465if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32466 $as_echo_n "(cached) " >&6
32467else
32468 ac_check_lib_save_LIBS=$LIBS
32469LIBS="-lxml2 $LIBS"
32470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32471/* end confdefs.h. */
32472
32473/* Override any GCC internal prototype to avoid an error.
32474 Use char because int might match the return type of a GCC
32475 builtin and then its argument prototype would still apply. */
32476#ifdef __cplusplus
32477extern "C"
32478#endif
32479char xmlCreatePushParserCtxt ();
32480int
32481main ()
32482{
32483return xmlCreatePushParserCtxt ();
32484 ;
32485 return 0;
32486}
32487_ACEOF
32488if ac_fn_c_try_link "$LINENO"; then :
32489 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32490else
32491 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32492fi
32493rm -f core conftest.err conftest.$ac_objext \
32494 conftest$ac_exeext conftest.$ac_ext
32495LIBS=$ac_check_lib_save_LIBS
32496fi
32497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32498$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32499if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32500 passed=`expr $passed + 1`
32501else
32502 failed=`expr $failed + 1`
32503fi
32504
32505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32506$as_echo_n "checking if XML package is complete... " >&6; }
32507 if test $passed -gt 0; then
32508 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032509 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32510$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032511 have_xml='no (failed tests)'
32512 LDFLAGS="$PERSIST_LDFLAGS"
32513 CPPFLAGS="$PERSIST_CPPFLAGS"
32514 else
32515 XML_LIBS='-lxml2'
32516 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032517
cristy8b350f62009-11-15 23:12:43 +000032518$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032519
cristy09b53e12011-10-14 12:47:22 +000032520 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32521$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032522 have_xml='yes'
32523 fi
32524 else
cristy09b53e12011-10-14 12:47:22 +000032525 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32526$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032527 fi
32528fi
cristy73bd4a52010-10-05 11:24:23 +000032529 if test "$have_xml" = 'yes'; then
32530 XML_DELEGATE_TRUE=
32531 XML_DELEGATE_FALSE='#'
32532else
32533 XML_DELEGATE_TRUE='#'
32534 XML_DELEGATE_FALSE=
32535fi
32536
cristy3ed852e2009-09-05 21:47:34 +000032537
32538
32539
32540# Substitute compiler name to build/link PerlMagick
32541#
32542
32543
32544#
32545# Configure install Paths
32546#
cristy7def36a2011-10-28 19:04:41 +000032547
cristy2a11bef2011-10-28 18:33:11 +000032548# Path to ImageMagick header files
32549INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032550INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32551DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032552case "${build_os}" in
32553 mingw* )
32554 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32555 ;;
32556esac
32557
32558cat >>confdefs.h <<_ACEOF
32559#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32560_ACEOF
32561
32562
cristy3ed852e2009-09-05 21:47:34 +000032563
32564# Subdirectory under lib to place ImageMagick lib files
32565LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32566
32567cat >>confdefs.h <<_ACEOF
32568#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32569_ACEOF
32570
32571
32572# Path to ImageMagick bin directory
32573EXECUTABLE_PATH="${BIN_DIR}"
32574DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32575case "${build_os}" in
32576 mingw* )
32577 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32578 ;;
32579esac
32580
32581cat >>confdefs.h <<_ACEOF
32582#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32583_ACEOF
32584
32585
32586
32587# Path to ImageMagick lib
32588LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32589DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32590case "${build_os}" in
32591 mingw* )
32592 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32593 ;;
32594esac
32595
32596cat >>confdefs.h <<_ACEOF
32597#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32598_ACEOF
32599
32600
32601
cristy3ed852e2009-09-05 21:47:34 +000032602#
32603# Subdirectory under lib to place ImageMagick coder module files
32604CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32605
32606cat >>confdefs.h <<_ACEOF
32607#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32608_ACEOF
32609
32610CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32611DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32612case "${build_os}" in
32613 mingw* )
32614 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32615 ;;
32616esac
32617
32618cat >>confdefs.h <<_ACEOF
32619#define CODER_PATH "$DEFINE_CODER_PATH"
32620_ACEOF
32621
32622
32623
32624#
32625# Subdirectory under lib to place ImageMagick filter module files
32626FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32627
32628cat >>confdefs.h <<_ACEOF
32629#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32630_ACEOF
32631
32632FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32633DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32634case "${build_os}" in
32635 mingw* )
32636 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32637 ;;
32638esac
32639
32640cat >>confdefs.h <<_ACEOF
32641#define FILTER_PATH "$DEFINE_FILTER_PATH"
32642_ACEOF
32643
32644
32645
32646#
32647# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032648DOCUMENTATION_RELATIVE_PATH=""
32649DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32650DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032651case "${build_os}" in
32652 mingw* )
32653 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32654 ;;
32655esac
32656
32657cat >>confdefs.h <<_ACEOF
32658#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32659_ACEOF
32660
32661
32662
cristy2a11bef2011-10-28 18:33:11 +000032663# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032664CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032665
32666cat >>confdefs.h <<_ACEOF
32667#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32668_ACEOF
32669
cristy7def36a2011-10-28 19:04:41 +000032670CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032671DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32672case "${build_os}" in
32673 mingw* )
32674 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32675 ;;
32676esac
32677
32678cat >>confdefs.h <<_ACEOF
32679#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32680_ACEOF
32681
32682
32683
cristy2a11bef2011-10-28 18:33:11 +000032684# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032685SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032686
32687cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032688#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032689_ACEOF
32690
cristy670aa3c2011-11-03 00:54:00 +000032691SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032692DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032693case "${build_os}" in
32694 mingw* )
cristy4f820712011-04-01 12:35:43 +000032695 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032696 ;;
32697esac
32698
32699cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032700#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032701_ACEOF
32702
32703
32704
cristy408ebcd2011-11-14 01:36:57 +000032705# Subdirectory to place architecture-dependent configuration files
32706SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032707
32708cat >>confdefs.h <<_ACEOF
32709#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32710_ACEOF
32711
cristy408ebcd2011-11-14 01:36:57 +000032712SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32713DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032714case "${build_os}" in
32715 mingw* )
32716 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32717 ;;
32718esac
32719
32720cat >>confdefs.h <<_ACEOF
32721#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32722_ACEOF
32723
32724
32725
cristy3ed852e2009-09-05 21:47:34 +000032726#
32727# program_transform_name is formed for use in a Makefile, so create a
32728# modified version for use in a shell script.
32729configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32730
32731# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032732{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32733$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032736{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32737$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032738AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032739BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032740BZIPDelegateDefault='bzip2'
32741BrowseDelegateDefault='xdg-open'
32742CGMDecodeDelegateDefault='ralcgm'
32743CatDelegateDefault='cat'
32744DNGDecodeDelegateDefault='ufraw-batch'
32745GVCDecodeDelegateDefault='dot'
32746DVIDecodeDelegateDefault='dvips'
32747EchoDelegateDefault='echo'
32748EditorDelegateDefault='xterm'
32749FIGDecodeDelegateDefault='fig2dev'
32750ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32751DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32752MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32753GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032754HPGLDecodeDelegateDefault='hp2xx'
32755HTMLDecodeDelegateDefault='html2ps'
32756ILBMDecodeDelegateDefault='ilbmtoppm'
32757ILBMEncodeDelegateDefault='ppmtoilbm'
32758LPDelegateDefault='lp'
32759LPRDelegateDefault='lpr'
32760LZWDecodeDelegateDefault='uncompress'
32761LZWEncodeDelegateDefault='compress'
32762LaunchDelegateDefault='gimp'
32763MANDelegateDefault='groff'
32764MPEGDecodeDelegateDefault='ffmpeg'
32765MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032766MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032767MVDelegateDefault='mv'
32768PCLDelegateDefault='pcl6'
32769PGPDecodeDelegateDefault='pgpv'
32770POVDelegateDefault='povray'
32771if test "$native_win32_build" = 'yes'; then
32772 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032773elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032774 PSDelegateDefault='gsc'
32775else
32776 PSDelegateDefault='gs'
32777fi
32778RLEEncodeDelegateDefault='rawtorle'
32779RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032780RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032781SCANDecodeDelegateDefault='scanimage'
32782TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032783UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032784WMFDecodeDelegateDefault='wmf2eps'
32785WWWDecodeDelegateDefault='curl'
32786XPSDelegateDefault='gxps'
32787ZipDelegateDefault='gzip'
32788
32789# Search for delegates
32790# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32791set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032794if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032795 $as_echo_n "(cached) " >&6
32796else
32797 case $AutotraceDecodeDelegate in
32798 [\\/]* | ?:[\\/]*)
32799 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32800 ;;
32801 *)
32802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32803for as_dir in $PATH
32804do
32805 IFS=$as_save_IFS
32806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32809 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032811 break 2
32812 fi
32813done
cristy8b350f62009-11-15 23:12:43 +000032814 done
cristy3ed852e2009-09-05 21:47:34 +000032815IFS=$as_save_IFS
32816
32817 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32818 ;;
32819esac
32820fi
32821AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32822if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032824$as_echo "$AutotraceDecodeDelegate" >&6; }
32825else
cristy8b350f62009-11-15 23:12:43 +000032826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032827$as_echo "no" >&6; }
32828fi
32829
32830
cristy3ed852e2009-09-05 21:47:34 +000032831# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32832set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032835if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032836 $as_echo_n "(cached) " >&6
32837else
32838 case $BlenderDecodeDelegate in
32839 [\\/]* | ?:[\\/]*)
32840 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32841 ;;
32842 *)
32843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32844for as_dir in $PATH
32845do
32846 IFS=$as_save_IFS
32847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32850 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032852 break 2
32853 fi
32854done
cristy8b350f62009-11-15 23:12:43 +000032855 done
cristy3ed852e2009-09-05 21:47:34 +000032856IFS=$as_save_IFS
32857
32858 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32859 ;;
32860esac
32861fi
32862BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32863if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "$BlenderDecodeDelegate" >&6; }
32866else
cristy8b350f62009-11-15 23:12:43 +000032867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032868$as_echo "no" >&6; }
32869fi
32870
32871
32872# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32873set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032876if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032877 $as_echo_n "(cached) " >&6
32878else
32879 case $BZIPDelegate in
32880 [\\/]* | ?:[\\/]*)
32881 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32882 ;;
32883 *)
32884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32885for as_dir in $PATH
32886do
32887 IFS=$as_save_IFS
32888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32891 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032893 break 2
32894 fi
32895done
cristy8b350f62009-11-15 23:12:43 +000032896 done
cristy3ed852e2009-09-05 21:47:34 +000032897IFS=$as_save_IFS
32898
32899 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32900 ;;
32901esac
32902fi
32903BZIPDelegate=$ac_cv_path_BZIPDelegate
32904if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906$as_echo "$BZIPDelegate" >&6; }
32907else
cristy8b350f62009-11-15 23:12:43 +000032908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo "no" >&6; }
32910fi
32911
32912
32913# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32914set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032917if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032918 $as_echo_n "(cached) " >&6
32919else
32920 case $BrowseDelegate in
32921 [\\/]* | ?:[\\/]*)
32922 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32923 ;;
32924 *)
32925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32926for as_dir in $PATH
32927do
32928 IFS=$as_save_IFS
32929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32932 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934 break 2
32935 fi
32936done
cristy8b350f62009-11-15 23:12:43 +000032937 done
cristy3ed852e2009-09-05 21:47:34 +000032938IFS=$as_save_IFS
32939
32940 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32941 ;;
32942esac
32943fi
32944BrowseDelegate=$ac_cv_path_BrowseDelegate
32945if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947$as_echo "$BrowseDelegate" >&6; }
32948else
cristy8b350f62009-11-15 23:12:43 +000032949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032950$as_echo "no" >&6; }
32951fi
32952
32953
32954# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32955set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032958if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032959 $as_echo_n "(cached) " >&6
32960else
32961 case $CGMDecodeDelegate in
32962 [\\/]* | ?:[\\/]*)
32963 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32964 ;;
32965 *)
32966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32967for as_dir in $PATH
32968do
32969 IFS=$as_save_IFS
32970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32973 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975 break 2
32976 fi
32977done
cristy8b350f62009-11-15 23:12:43 +000032978 done
cristy3ed852e2009-09-05 21:47:34 +000032979IFS=$as_save_IFS
32980
32981 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32982 ;;
32983esac
32984fi
32985CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32986if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "$CGMDecodeDelegate" >&6; }
32989else
cristy8b350f62009-11-15 23:12:43 +000032990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032991$as_echo "no" >&6; }
32992fi
32993
32994
32995# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32996set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032999if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033000 $as_echo_n "(cached) " >&6
33001else
33002 case $CatDelegate in
33003 [\\/]* | ?:[\\/]*)
33004 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33005 ;;
33006 *)
33007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33008for as_dir in $PATH
33009do
33010 IFS=$as_save_IFS
33011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33014 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016 break 2
33017 fi
33018done
cristy8b350f62009-11-15 23:12:43 +000033019 done
cristy3ed852e2009-09-05 21:47:34 +000033020IFS=$as_save_IFS
33021
33022 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33023 ;;
33024esac
33025fi
33026CatDelegate=$ac_cv_path_CatDelegate
33027if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033029$as_echo "$CatDelegate" >&6; }
33030else
cristy8b350f62009-11-15 23:12:43 +000033031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033032$as_echo "no" >&6; }
33033fi
33034
33035
33036# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33037set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033040if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033041 $as_echo_n "(cached) " >&6
33042else
33043 case $DNGDecodeDelegate in
33044 [\\/]* | ?:[\\/]*)
33045 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33046 ;;
33047 *)
33048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33049for as_dir in $PATH
33050do
33051 IFS=$as_save_IFS
33052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33055 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033057 break 2
33058 fi
33059done
cristy8b350f62009-11-15 23:12:43 +000033060 done
cristy3ed852e2009-09-05 21:47:34 +000033061IFS=$as_save_IFS
33062
33063 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33064 ;;
33065esac
33066fi
33067DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33068if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "$DNGDecodeDelegate" >&6; }
33071else
cristy8b350f62009-11-15 23:12:43 +000033072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo "no" >&6; }
33074fi
33075
33076
33077# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33078set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033081if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033082 $as_echo_n "(cached) " >&6
33083else
33084 case $GVCDecodeDelegate in
33085 [\\/]* | ?:[\\/]*)
33086 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33087 ;;
33088 *)
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33096 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098 break 2
33099 fi
33100done
cristy8b350f62009-11-15 23:12:43 +000033101 done
cristy3ed852e2009-09-05 21:47:34 +000033102IFS=$as_save_IFS
33103
33104 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33105 ;;
33106esac
33107fi
33108GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33109if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "$GVCDecodeDelegate" >&6; }
33112else
cristy8b350f62009-11-15 23:12:43 +000033113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo "no" >&6; }
33115fi
33116
33117
33118# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33119set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033122if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033123 $as_echo_n "(cached) " >&6
33124else
33125 case $DVIDecodeDelegate in
33126 [\\/]* | ?:[\\/]*)
33127 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33128 ;;
33129 *)
33130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33131for as_dir in $PATH
33132do
33133 IFS=$as_save_IFS
33134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33137 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139 break 2
33140 fi
33141done
cristy8b350f62009-11-15 23:12:43 +000033142 done
cristy3ed852e2009-09-05 21:47:34 +000033143IFS=$as_save_IFS
33144
33145 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33146 ;;
33147esac
33148fi
33149DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33150if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo "$DVIDecodeDelegate" >&6; }
33153else
cristy8b350f62009-11-15 23:12:43 +000033154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155$as_echo "no" >&6; }
33156fi
33157
33158
33159# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33160set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033163if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033164 $as_echo_n "(cached) " >&6
33165else
33166 case $EchoDelegate in
33167 [\\/]* | ?:[\\/]*)
33168 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33169 ;;
33170 *)
33171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33172for as_dir in $PATH
33173do
33174 IFS=$as_save_IFS
33175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33178 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180 break 2
33181 fi
33182done
cristy8b350f62009-11-15 23:12:43 +000033183 done
cristy3ed852e2009-09-05 21:47:34 +000033184IFS=$as_save_IFS
33185
33186 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33187 ;;
33188esac
33189fi
33190EchoDelegate=$ac_cv_path_EchoDelegate
33191if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo "$EchoDelegate" >&6; }
33194else
cristy8b350f62009-11-15 23:12:43 +000033195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo "no" >&6; }
33197fi
33198
33199
33200# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33201set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033204if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033205 $as_echo_n "(cached) " >&6
33206else
33207 case $EditorDelegate in
33208 [\\/]* | ?:[\\/]*)
33209 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33210 ;;
33211 *)
33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33213for as_dir in $PATH
33214do
33215 IFS=$as_save_IFS
33216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33219 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221 break 2
33222 fi
33223done
cristy8b350f62009-11-15 23:12:43 +000033224 done
cristy3ed852e2009-09-05 21:47:34 +000033225IFS=$as_save_IFS
33226
33227 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33228 ;;
33229esac
33230fi
33231EditorDelegate=$ac_cv_path_EditorDelegate
33232if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "$EditorDelegate" >&6; }
33235else
cristy8b350f62009-11-15 23:12:43 +000033236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo "no" >&6; }
33238fi
33239
33240
33241# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33242set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033245if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033246 $as_echo_n "(cached) " >&6
33247else
33248 case $FIGDecodeDelegate in
33249 [\\/]* | ?:[\\/]*)
33250 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33251 ;;
33252 *)
33253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33254for as_dir in $PATH
33255do
33256 IFS=$as_save_IFS
33257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33260 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262 break 2
33263 fi
33264done
cristy8b350f62009-11-15 23:12:43 +000033265 done
cristy3ed852e2009-09-05 21:47:34 +000033266IFS=$as_save_IFS
33267
33268 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33269 ;;
33270esac
33271fi
33272FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33273if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo "$FIGDecodeDelegate" >&6; }
33276else
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "no" >&6; }
33279fi
33280
33281
33282# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33283set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033286if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033287 $as_echo_n "(cached) " >&6
33288else
33289 case $ConvertDelegate in
33290 [\\/]* | ?:[\\/]*)
33291 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33292 ;;
33293 *)
33294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33295for as_dir in $PATH
33296do
33297 IFS=$as_save_IFS
33298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33301 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303 break 2
33304 fi
33305done
cristy8b350f62009-11-15 23:12:43 +000033306 done
cristy3ed852e2009-09-05 21:47:34 +000033307IFS=$as_save_IFS
33308
33309 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33310 ;;
33311esac
33312fi
33313ConvertDelegate=$ac_cv_path_ConvertDelegate
33314if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo "$ConvertDelegate" >&6; }
33317else
cristy8b350f62009-11-15 23:12:43 +000033318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo "no" >&6; }
33320fi
33321
33322
33323# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33324set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033327if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033328 $as_echo_n "(cached) " >&6
33329else
33330 case $DisplayDelegate in
33331 [\\/]* | ?:[\\/]*)
33332 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33333 ;;
33334 *)
33335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33336for as_dir in $PATH
33337do
33338 IFS=$as_save_IFS
33339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33342 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344 break 2
33345 fi
33346done
cristy8b350f62009-11-15 23:12:43 +000033347 done
cristy3ed852e2009-09-05 21:47:34 +000033348IFS=$as_save_IFS
33349
33350 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33351 ;;
33352esac
33353fi
33354DisplayDelegate=$ac_cv_path_DisplayDelegate
33355if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo "$DisplayDelegate" >&6; }
33358else
cristy8b350f62009-11-15 23:12:43 +000033359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360$as_echo "no" >&6; }
33361fi
33362
33363
33364# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33365set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033368if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033369 $as_echo_n "(cached) " >&6
33370else
33371 case $MogrifyDelegate in
33372 [\\/]* | ?:[\\/]*)
33373 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33374 ;;
33375 *)
33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377for as_dir in $PATH
33378do
33379 IFS=$as_save_IFS
33380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33383 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385 break 2
33386 fi
33387done
cristy8b350f62009-11-15 23:12:43 +000033388 done
cristy3ed852e2009-09-05 21:47:34 +000033389IFS=$as_save_IFS
33390
33391 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33392 ;;
33393esac
33394fi
33395MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33396if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "$MogrifyDelegate" >&6; }
33399else
cristy8b350f62009-11-15 23:12:43 +000033400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo "no" >&6; }
33402fi
33403
33404
33405# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33406set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033409if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033410 $as_echo_n "(cached) " >&6
33411else
33412 case $GnuplotDecodeDelegate in
33413 [\\/]* | ?:[\\/]*)
33414 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33415 ;;
33416 *)
33417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33418for as_dir in $PATH
33419do
33420 IFS=$as_save_IFS
33421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33424 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426 break 2
33427 fi
33428done
cristy8b350f62009-11-15 23:12:43 +000033429 done
cristy3ed852e2009-09-05 21:47:34 +000033430IFS=$as_save_IFS
33431
33432 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33433 ;;
33434esac
33435fi
33436GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33437if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439$as_echo "$GnuplotDecodeDelegate" >&6; }
33440else
cristy8b350f62009-11-15 23:12:43 +000033441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo "no" >&6; }
33443fi
33444
33445
cristy3ed852e2009-09-05 21:47:34 +000033446# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33447set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033450if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033451 $as_echo_n "(cached) " >&6
33452else
33453 case $HPGLDecodeDelegate in
33454 [\\/]* | ?:[\\/]*)
33455 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33456 ;;
33457 *)
33458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33459for as_dir in $PATH
33460do
33461 IFS=$as_save_IFS
33462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33465 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033467 break 2
33468 fi
33469done
cristy8b350f62009-11-15 23:12:43 +000033470 done
cristy3ed852e2009-09-05 21:47:34 +000033471IFS=$as_save_IFS
33472
33473 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33474 ;;
33475esac
33476fi
33477HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33478if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033480$as_echo "$HPGLDecodeDelegate" >&6; }
33481else
cristy8b350f62009-11-15 23:12:43 +000033482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo "no" >&6; }
33484fi
33485
33486
33487# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33488set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033491if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033492 $as_echo_n "(cached) " >&6
33493else
33494 case $HTMLDecodeDelegate in
33495 [\\/]* | ?:[\\/]*)
33496 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33497 ;;
33498 *)
33499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33500for as_dir in $PATH
33501do
33502 IFS=$as_save_IFS
33503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33506 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508 break 2
33509 fi
33510done
cristy8b350f62009-11-15 23:12:43 +000033511 done
cristy3ed852e2009-09-05 21:47:34 +000033512IFS=$as_save_IFS
33513
33514 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33515 ;;
33516esac
33517fi
33518HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33519if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "$HTMLDecodeDelegate" >&6; }
33522else
cristy8b350f62009-11-15 23:12:43 +000033523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo "no" >&6; }
33525fi
33526
33527
33528# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33529set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033532if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033533 $as_echo_n "(cached) " >&6
33534else
33535 case $ILBMDecodeDelegate in
33536 [\\/]* | ?:[\\/]*)
33537 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33538 ;;
33539 *)
33540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33541for as_dir in $PATH
33542do
33543 IFS=$as_save_IFS
33544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33547 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549 break 2
33550 fi
33551done
cristy8b350f62009-11-15 23:12:43 +000033552 done
cristy3ed852e2009-09-05 21:47:34 +000033553IFS=$as_save_IFS
33554
33555 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33556 ;;
33557esac
33558fi
33559ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33560if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "$ILBMDecodeDelegate" >&6; }
33563else
cristy8b350f62009-11-15 23:12:43 +000033564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo "no" >&6; }
33566fi
33567
33568
33569# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33570set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033573if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033574 $as_echo_n "(cached) " >&6
33575else
33576 case $ILBMEncodeDelegate in
33577 [\\/]* | ?:[\\/]*)
33578 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33579 ;;
33580 *)
33581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33582for as_dir in $PATH
33583do
33584 IFS=$as_save_IFS
33585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33588 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590 break 2
33591 fi
33592done
cristy8b350f62009-11-15 23:12:43 +000033593 done
cristy3ed852e2009-09-05 21:47:34 +000033594IFS=$as_save_IFS
33595
33596 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33597 ;;
33598esac
33599fi
33600ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33601if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "$ILBMEncodeDelegate" >&6; }
33604else
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "no" >&6; }
33607fi
33608
33609
33610# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33611set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033614if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033615 $as_echo_n "(cached) " >&6
33616else
33617 case $LPDelegate in
33618 [\\/]* | ?:[\\/]*)
33619 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33620 ;;
33621 *)
33622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33623for as_dir in $PATH
33624do
33625 IFS=$as_save_IFS
33626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33629 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631 break 2
33632 fi
33633done
cristy8b350f62009-11-15 23:12:43 +000033634 done
cristy3ed852e2009-09-05 21:47:34 +000033635IFS=$as_save_IFS
33636
33637 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33638 ;;
33639esac
33640fi
33641LPDelegate=$ac_cv_path_LPDelegate
33642if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo "$LPDelegate" >&6; }
33645else
cristy8b350f62009-11-15 23:12:43 +000033646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647$as_echo "no" >&6; }
33648fi
33649
33650
33651# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33652set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033655if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033656 $as_echo_n "(cached) " >&6
33657else
33658 case $LPRDelegate in
33659 [\\/]* | ?:[\\/]*)
33660 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33661 ;;
33662 *)
33663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33664for as_dir in $PATH
33665do
33666 IFS=$as_save_IFS
33667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33670 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033672 break 2
33673 fi
33674done
cristy8b350f62009-11-15 23:12:43 +000033675 done
cristy3ed852e2009-09-05 21:47:34 +000033676IFS=$as_save_IFS
33677
33678 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33679 ;;
33680esac
33681fi
33682LPRDelegate=$ac_cv_path_LPRDelegate
33683if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "$LPRDelegate" >&6; }
33686else
cristy8b350f62009-11-15 23:12:43 +000033687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033688$as_echo "no" >&6; }
33689fi
33690
33691
33692# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33693set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033696if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033697 $as_echo_n "(cached) " >&6
33698else
33699 case $LZWDecodeDelegate in
33700 [\\/]* | ?:[\\/]*)
33701 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33702 ;;
33703 *)
33704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33705for as_dir in $PATH
33706do
33707 IFS=$as_save_IFS
33708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33711 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033713 break 2
33714 fi
33715done
cristy8b350f62009-11-15 23:12:43 +000033716 done
cristy3ed852e2009-09-05 21:47:34 +000033717IFS=$as_save_IFS
33718
33719 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33720 ;;
33721esac
33722fi
33723LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33724if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo "$LZWDecodeDelegate" >&6; }
33727else
cristy8b350f62009-11-15 23:12:43 +000033728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033729$as_echo "no" >&6; }
33730fi
33731
33732
33733# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33734set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033737if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033738 $as_echo_n "(cached) " >&6
33739else
33740 case $LZWEncodeDelegate in
33741 [\\/]* | ?:[\\/]*)
33742 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33743 ;;
33744 *)
33745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746for as_dir in $PATH
33747do
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33752 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754 break 2
33755 fi
33756done
cristy8b350f62009-11-15 23:12:43 +000033757 done
cristy3ed852e2009-09-05 21:47:34 +000033758IFS=$as_save_IFS
33759
33760 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33761 ;;
33762esac
33763fi
33764LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33765if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "$LZWEncodeDelegate" >&6; }
33768else
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "no" >&6; }
33771fi
33772
33773
33774# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33775set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033778if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033779 $as_echo_n "(cached) " >&6
33780else
33781 case $LaunchDelegate in
33782 [\\/]* | ?:[\\/]*)
33783 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33784 ;;
33785 *)
33786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33793 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795 break 2
33796 fi
33797done
cristy8b350f62009-11-15 23:12:43 +000033798 done
cristy3ed852e2009-09-05 21:47:34 +000033799IFS=$as_save_IFS
33800
33801 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33802 ;;
33803esac
33804fi
33805LaunchDelegate=$ac_cv_path_LaunchDelegate
33806if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "$LaunchDelegate" >&6; }
33809else
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "no" >&6; }
33812fi
33813
33814
33815# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33816set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033819if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033820 $as_echo_n "(cached) " >&6
33821else
33822 case $MANDelegate in
33823 [\\/]* | ?:[\\/]*)
33824 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33825 ;;
33826 *)
33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33828for as_dir in $PATH
33829do
33830 IFS=$as_save_IFS
33831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33834 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836 break 2
33837 fi
33838done
cristy8b350f62009-11-15 23:12:43 +000033839 done
cristy3ed852e2009-09-05 21:47:34 +000033840IFS=$as_save_IFS
33841
33842 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33843 ;;
33844esac
33845fi
33846MANDelegate=$ac_cv_path_MANDelegate
33847if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$MANDelegate" >&6; }
33850else
cristy8b350f62009-11-15 23:12:43 +000033851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo "no" >&6; }
33853fi
33854
33855
33856# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33857set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 $as_echo_n "(cached) " >&6
33862else
33863 case $MPEGDecodeDelegate in
33864 [\\/]* | ?:[\\/]*)
33865 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33866 ;;
33867 *)
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869for as_dir in $PATH
33870do
33871 IFS=$as_save_IFS
33872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33875 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877 break 2
33878 fi
33879done
cristy8b350f62009-11-15 23:12:43 +000033880 done
cristy3ed852e2009-09-05 21:47:34 +000033881IFS=$as_save_IFS
33882
33883 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33884 ;;
33885esac
33886fi
33887MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33888if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "$MPEGDecodeDelegate" >&6; }
33891else
cristy8b350f62009-11-15 23:12:43 +000033892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "no" >&6; }
33894fi
33895
33896
33897# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33898set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033901if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033902 $as_echo_n "(cached) " >&6
33903else
33904 case $MPEGEncodeDelegate in
33905 [\\/]* | ?:[\\/]*)
33906 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33907 ;;
33908 *)
33909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33910for as_dir in $PATH
33911do
33912 IFS=$as_save_IFS
33913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33916 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918 break 2
33919 fi
33920done
cristy8b350f62009-11-15 23:12:43 +000033921 done
cristy3ed852e2009-09-05 21:47:34 +000033922IFS=$as_save_IFS
33923
33924 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33925 ;;
33926esac
33927fi
33928MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33929if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "$MPEGEncodeDelegate" >&6; }
33932else
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "no" >&6; }
33935fi
33936
33937
cristy935c86e2010-06-05 23:50:07 +000033938# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33939set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033942if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033943 $as_echo_n "(cached) " >&6
33944else
33945 case $MrSIDDecodeDelegate in
33946 [\\/]* | ?:[\\/]*)
33947 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33948 ;;
33949 *)
33950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33951for as_dir in $PATH
33952do
33953 IFS=$as_save_IFS
33954 test -z "$as_dir" && as_dir=.
33955 for ac_exec_ext in '' $ac_executable_extensions; do
33956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33957 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33959 break 2
33960 fi
33961done
33962 done
33963IFS=$as_save_IFS
33964
33965 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33966 ;;
33967esac
33968fi
33969MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33970if test -n "$MrSIDDecodeDelegate"; then
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33972$as_echo "$MrSIDDecodeDelegate" >&6; }
33973else
33974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33975$as_echo "no" >&6; }
33976fi
33977
33978
cristy3ed852e2009-09-05 21:47:34 +000033979# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33980set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033983if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033984 $as_echo_n "(cached) " >&6
33985else
33986 case $MVDelegate in
33987 [\\/]* | ?:[\\/]*)
33988 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33989 ;;
33990 *)
33991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33992for as_dir in $PATH
33993do
33994 IFS=$as_save_IFS
33995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33998 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034000 break 2
34001 fi
34002done
cristy8b350f62009-11-15 23:12:43 +000034003 done
cristy3ed852e2009-09-05 21:47:34 +000034004IFS=$as_save_IFS
34005
34006 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34007 ;;
34008esac
34009fi
34010MVDelegate=$ac_cv_path_MVDelegate
34011if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034013$as_echo "$MVDelegate" >&6; }
34014else
cristy8b350f62009-11-15 23:12:43 +000034015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo "no" >&6; }
34017fi
34018
34019
34020# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34021set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034024if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034025 $as_echo_n "(cached) " >&6
34026else
34027 case $PCLDelegate in
34028 [\\/]* | ?:[\\/]*)
34029 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34030 ;;
34031 *)
34032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34033for as_dir in $PATH
34034do
34035 IFS=$as_save_IFS
34036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34039 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034041 break 2
34042 fi
34043done
cristy8b350f62009-11-15 23:12:43 +000034044 done
cristy3ed852e2009-09-05 21:47:34 +000034045IFS=$as_save_IFS
34046
34047 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34048 ;;
34049esac
34050fi
34051PCLDelegate=$ac_cv_path_PCLDelegate
34052if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054$as_echo "$PCLDelegate" >&6; }
34055else
cristy8b350f62009-11-15 23:12:43 +000034056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034057$as_echo "no" >&6; }
34058fi
34059
34060
34061# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34062set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034065if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034066 $as_echo_n "(cached) " >&6
34067else
34068 case $PGPDecodeDelegate in
34069 [\\/]* | ?:[\\/]*)
34070 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34071 ;;
34072 *)
34073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34074for as_dir in $PATH
34075do
34076 IFS=$as_save_IFS
34077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34080 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034082 break 2
34083 fi
34084done
cristy8b350f62009-11-15 23:12:43 +000034085 done
cristy3ed852e2009-09-05 21:47:34 +000034086IFS=$as_save_IFS
34087
34088 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34089 ;;
34090esac
34091fi
34092PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34093if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034095$as_echo "$PGPDecodeDelegate" >&6; }
34096else
cristy8b350f62009-11-15 23:12:43 +000034097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034098$as_echo "no" >&6; }
34099fi
34100
34101
34102# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34103set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034106if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034107 $as_echo_n "(cached) " >&6
34108else
34109 case $POVDelegate in
34110 [\\/]* | ?:[\\/]*)
34111 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34112 ;;
34113 *)
34114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34115for as_dir in $PATH
34116do
34117 IFS=$as_save_IFS
34118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34121 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123 break 2
34124 fi
34125done
cristy8b350f62009-11-15 23:12:43 +000034126 done
cristy3ed852e2009-09-05 21:47:34 +000034127IFS=$as_save_IFS
34128
34129 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34130 ;;
34131esac
34132fi
34133POVDelegate=$ac_cv_path_POVDelegate
34134if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136$as_echo "$POVDelegate" >&6; }
34137else
cristy8b350f62009-11-15 23:12:43 +000034138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139$as_echo "no" >&6; }
34140fi
34141
34142
34143for ac_prog in gsx gsc "$PSDelegateDefault"
34144do
34145 # Extract the first word of "$ac_prog", so it can be a program name with args.
34146set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034148$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034149if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034150 $as_echo_n "(cached) " >&6
34151else
34152 case $PSDelegate in
34153 [\\/]* | ?:[\\/]*)
34154 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34155 ;;
34156 *)
34157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34158for as_dir in $PATH
34159do
34160 IFS=$as_save_IFS
34161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34164 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034166 break 2
34167 fi
34168done
cristy8b350f62009-11-15 23:12:43 +000034169 done
cristy3ed852e2009-09-05 21:47:34 +000034170IFS=$as_save_IFS
34171
34172 ;;
34173esac
34174fi
34175PSDelegate=$ac_cv_path_PSDelegate
34176if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034178$as_echo "$PSDelegate" >&6; }
34179else
cristy8b350f62009-11-15 23:12:43 +000034180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181$as_echo "no" >&6; }
34182fi
34183
34184
34185 test -n "$PSDelegate" && break
34186done
34187test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34188
34189# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34190set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034193if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034194 $as_echo_n "(cached) " >&6
34195else
34196 case $RLEEncodeDelegate in
34197 [\\/]* | ?:[\\/]*)
34198 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34199 ;;
34200 *)
34201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34202for as_dir in $PATH
34203do
34204 IFS=$as_save_IFS
34205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34208 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034210 break 2
34211 fi
34212done
cristy8b350f62009-11-15 23:12:43 +000034213 done
cristy3ed852e2009-09-05 21:47:34 +000034214IFS=$as_save_IFS
34215
34216 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34217 ;;
34218esac
34219fi
34220RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34221if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223$as_echo "$RLEEncodeDelegate" >&6; }
34224else
cristy8b350f62009-11-15 23:12:43 +000034225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo "no" >&6; }
34227fi
34228
34229
34230# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34231set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034234if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034235 $as_echo_n "(cached) " >&6
34236else
34237 case $RMDelegate in
34238 [\\/]* | ?:[\\/]*)
34239 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34240 ;;
34241 *)
34242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34243for as_dir in $PATH
34244do
34245 IFS=$as_save_IFS
34246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34249 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034251 break 2
34252 fi
34253done
cristy8b350f62009-11-15 23:12:43 +000034254 done
cristy3ed852e2009-09-05 21:47:34 +000034255IFS=$as_save_IFS
34256
34257 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34258 ;;
34259esac
34260fi
34261RMDelegate=$ac_cv_path_RMDelegate
34262if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264$as_echo "$RMDelegate" >&6; }
34265else
cristy8b350f62009-11-15 23:12:43 +000034266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo "no" >&6; }
34268fi
34269
34270
cristy4689cf02010-02-17 21:15:45 +000034271# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34272set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034275if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034276 $as_echo_n "(cached) " >&6
34277else
34278 case $RSVGDecodeDelegate in
34279 [\\/]* | ?:[\\/]*)
34280 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34281 ;;
34282 *)
34283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34284for as_dir in $PATH
34285do
34286 IFS=$as_save_IFS
34287 test -z "$as_dir" && as_dir=.
34288 for ac_exec_ext in '' $ac_executable_extensions; do
34289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34290 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34292 break 2
34293 fi
34294done
34295 done
34296IFS=$as_save_IFS
34297
34298 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34299 ;;
34300esac
34301fi
34302RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34303if test -n "$RSVGDecodeDelegate"; then
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34305$as_echo "$RSVGDecodeDelegate" >&6; }
34306else
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34308$as_echo "no" >&6; }
34309fi
34310
34311
cristy3ed852e2009-09-05 21:47:34 +000034312# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34313set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034316if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034317 $as_echo_n "(cached) " >&6
34318else
34319 case $SCANDecodeDelegate in
34320 [\\/]* | ?:[\\/]*)
34321 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34322 ;;
34323 *)
34324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34325for as_dir in $PATH
34326do
34327 IFS=$as_save_IFS
34328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34331 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333 break 2
34334 fi
34335done
cristy8b350f62009-11-15 23:12:43 +000034336 done
cristy3ed852e2009-09-05 21:47:34 +000034337IFS=$as_save_IFS
34338
34339 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34340 ;;
34341esac
34342fi
34343SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34344if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034346$as_echo "$SCANDecodeDelegate" >&6; }
34347else
cristy8b350f62009-11-15 23:12:43 +000034348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034349$as_echo "no" >&6; }
34350fi
34351
34352
34353# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34354set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034357if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034358 $as_echo_n "(cached) " >&6
34359else
34360 case $TXTDelegate in
34361 [\\/]* | ?:[\\/]*)
34362 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34363 ;;
34364 *)
34365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34366for as_dir in $PATH
34367do
34368 IFS=$as_save_IFS
34369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34372 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034374 break 2
34375 fi
34376done
cristy8b350f62009-11-15 23:12:43 +000034377 done
cristy3ed852e2009-09-05 21:47:34 +000034378IFS=$as_save_IFS
34379
34380 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34381 ;;
34382esac
34383fi
34384TXTDelegate=$ac_cv_path_TXTDelegate
34385if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo "$TXTDelegate" >&6; }
34388else
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo "no" >&6; }
34391fi
34392
34393
cristy5ac9ac82010-07-29 13:24:24 +000034394# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34395set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034398if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034399 $as_echo_n "(cached) " >&6
34400else
34401 case $UniconvertorDelegate in
34402 [\\/]* | ?:[\\/]*)
34403 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34404 ;;
34405 *)
34406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34407for as_dir in $PATH
34408do
34409 IFS=$as_save_IFS
34410 test -z "$as_dir" && as_dir=.
34411 for ac_exec_ext in '' $ac_executable_extensions; do
34412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34413 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34415 break 2
34416 fi
34417done
34418 done
34419IFS=$as_save_IFS
34420
34421 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34422 ;;
34423esac
34424fi
34425UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34426if test -n "$UniconvertorDelegate"; then
34427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34428$as_echo "$UniconvertorDelegate" >&6; }
34429else
34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34431$as_echo "no" >&6; }
34432fi
34433
34434
cristy3ed852e2009-09-05 21:47:34 +000034435# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34436set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034439if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034440 $as_echo_n "(cached) " >&6
34441else
34442 case $WMFDecodeDelegate in
34443 [\\/]* | ?:[\\/]*)
34444 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34445 ;;
34446 *)
34447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34448for as_dir in $PATH
34449do
34450 IFS=$as_save_IFS
34451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34454 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456 break 2
34457 fi
34458done
cristy8b350f62009-11-15 23:12:43 +000034459 done
cristy3ed852e2009-09-05 21:47:34 +000034460IFS=$as_save_IFS
34461
34462 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34463 ;;
34464esac
34465fi
34466WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34467if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034469$as_echo "$WMFDecodeDelegate" >&6; }
34470else
cristy8b350f62009-11-15 23:12:43 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472$as_echo "no" >&6; }
34473fi
34474
34475
34476# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34477set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034480if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034481 $as_echo_n "(cached) " >&6
34482else
34483 case $WWWDecodeDelegate in
34484 [\\/]* | ?:[\\/]*)
34485 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34486 ;;
34487 *)
34488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34489for as_dir in $PATH
34490do
34491 IFS=$as_save_IFS
34492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34495 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497 break 2
34498 fi
34499done
cristy8b350f62009-11-15 23:12:43 +000034500 done
cristy3ed852e2009-09-05 21:47:34 +000034501IFS=$as_save_IFS
34502
34503 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34504 ;;
34505esac
34506fi
34507WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34508if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo "$WWWDecodeDelegate" >&6; }
34511else
cristy8b350f62009-11-15 23:12:43 +000034512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034513$as_echo "no" >&6; }
34514fi
34515
34516
34517# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34518set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034521if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034522 $as_echo_n "(cached) " >&6
34523else
34524 case $XPSDelegate in
34525 [\\/]* | ?:[\\/]*)
34526 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34527 ;;
34528 *)
34529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34530for as_dir in $PATH
34531do
34532 IFS=$as_save_IFS
34533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34536 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538 break 2
34539 fi
34540done
cristy8b350f62009-11-15 23:12:43 +000034541 done
cristy3ed852e2009-09-05 21:47:34 +000034542IFS=$as_save_IFS
34543
34544 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34545 ;;
34546esac
34547fi
34548XPSDelegate=$ac_cv_path_XPSDelegate
34549if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034551$as_echo "$XPSDelegate" >&6; }
34552else
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo "no" >&6; }
34555fi
34556
34557
34558# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34559set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034562if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034563 $as_echo_n "(cached) " >&6
34564else
34565 case $ZipDelegate in
34566 [\\/]* | ?:[\\/]*)
34567 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34568 ;;
34569 *)
34570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34571for as_dir in $PATH
34572do
34573 IFS=$as_save_IFS
34574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34577 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579 break 2
34580 fi
34581done
cristy8b350f62009-11-15 23:12:43 +000034582 done
cristy3ed852e2009-09-05 21:47:34 +000034583IFS=$as_save_IFS
34584
34585 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34586 ;;
34587esac
34588fi
34589ZipDelegate=$ac_cv_path_ZipDelegate
34590if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo "$ZipDelegate" >&6; }
34593else
cristy8b350f62009-11-15 23:12:43 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034595$as_echo "no" >&6; }
34596fi
34597
34598
34599
34600# Prefer lpr to lp; lp needs options tacked on.
34601if test "$LPRDelegate" != no; then
34602 PrintDelegate="$LPRDelegate"
34603else
34604 PrintDelegate="$LPDelegate -c -s"
34605fi
34606
34607
34608# Installed ImageMagick utiltity paths
34609ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34610DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34611MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34612
34613# Set delegate booleans
34614have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34615have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34616have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34617have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34618have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034619have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034620have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34621have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034622have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34623have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34624
34625#
34626# Test for font directories
34627#
34628type_include_files=''
34629
cristy430a7312010-01-21 20:44:04 +000034630# Dejavu fonts.
34631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34632$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34633dejavu_font_dir=''
34634if test "${with_dejavu_font_dir}" != 'default'; then
34635 dejavu_font_dir="${with_dejavu_font_dir}/"
34636else
34637 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34638 if test -f "${font_dir}DejaVuSerif.ttf"; then
34639 dejavu_font_dir="${font_dir}"
34640 break 1
34641 fi
34642 done
34643fi
34644if test "${dejavu_font_dir}x" != 'x'; then
34645 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34647$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034648else
cristy09b53e12011-10-14 12:47:22 +000034649 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34650$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034651fi
34652
34653
cristy3ed852e2009-09-05 21:47:34 +000034654# Windows
34655windows_font_dir=''
34656if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34657 windows_font_dir="${with_windows_font_dir}/"
34658fi
cristy430a7312010-01-21 20:44:04 +000034659if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034660 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34661 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34662 fi
34663 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34664 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34665 fi
34666 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34667 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34668 fi
34669fi
cristy430a7312010-01-21 20:44:04 +000034670if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034671 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34672fi
34673
34674
34675# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034677$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34678ghostscript_font_dir=''
34679if test "${with_gs_font_dir}" != 'default'; then
34680 ghostscript_font_dir="${with_gs_font_dir}/"
34681else
34682 if test "${native_win32_build}" = 'yes'; then
34683 # Native Windows Build
34684 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34685 if test -f "${font_dir}a010013l.pfb"; then
34686 ghostscript_font_dir="$font_dir"
34687 break 1
34688 fi
34689 done
34690 if test "${PSDelegate}" != 'gswin32c'; then
34691 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34692 fi
34693 else
34694 # Linux / Mac OS X / Unix Build
34695 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
34696 if test -f "${font_dir}a010013l.pfb"; then
34697 ghostscript_font_dir="${font_dir}"
34698 break 1
34699 fi
34700 done
34701 if test "${ghostscript_font_dir}x" = 'x'; then
34702 if test "$PSDelegate" != 'gs'; then
34703 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34704 fi
34705 fi
34706 fi
34707fi
34708if test "${ghostscript_font_dir}x" != 'x'; then
34709 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34711$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034712else
cristy09b53e12011-10-14 12:47:22 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34714$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034715fi
34716
34717case "${build_os}" in
34718 mingw* )
34719 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34720 ;;
34721esac
34722
34723
34724
34725#
34726# Handle case where user doesn't want frozen paths
34727#
34728if test "$with_frozenpaths" != 'yes'; then
34729 # Re-set delegate definitions to default (no paths)
34730 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034731 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34732 BZIPDelegate="$BZIPDelegateDefault"
34733 BrowseDelegate="$BrowseDelegateDefault"
34734 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34735 CatDelegate="$CatDelegateDefault"
34736 ConvertDelegate="$ConvertDelegateDefault"
34737 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34738 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34739 EchoDelegate="$EchoDelegateDefault"
34740 EditorDelegate="$EditorDelegateDefault"
34741 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34742 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34743 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34744 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34745 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34746 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34747 LPDelegate="$LPDelegateDefault"
34748 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34749 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34750 LaunchDelegate="$LaunchDelegateDefault"
34751 MANDelegate="$MANDelegateDefault"
34752 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34753 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034754 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034755 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34756 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034757 PCLDelegate="$PCLDelegateDefault"
34758 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34759 POVDelegate="$POVDelegateDefault"
34760 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034761 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34762 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034763 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034764 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34765 ShowImageDelegate="$ShowImageDelegateDefault"
34766 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034767 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034768 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34769 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34770 XPSDelegate="$XPSDelegateDefault"
34771 ZipDelegate="$ZipDelegateDefault"
34772fi
34773
34774# Delegate substitutions
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817#
34818# RPM support.
34819#
34820RPM=''
34821for ac_prog in gnutar gtar tar
34822do
34823 # Extract the first word of "$ac_prog", so it can be a program name with args.
34824set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034827if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034828 $as_echo_n "(cached) " >&6
34829else
34830 if test -n "$TAR"; then
34831 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34832else
34833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34834for as_dir in $PATH
34835do
34836 IFS=$as_save_IFS
34837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34840 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842 break 2
34843 fi
34844done
cristy8b350f62009-11-15 23:12:43 +000034845 done
cristy3ed852e2009-09-05 21:47:34 +000034846IFS=$as_save_IFS
34847
34848fi
34849fi
34850TAR=$ac_cv_prog_TAR
34851if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo "$TAR" >&6; }
34854else
cristy8b350f62009-11-15 23:12:43 +000034855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856$as_echo "no" >&6; }
34857fi
34858
34859
34860 test -n "$TAR" && break
34861done
34862
34863for ac_prog in perl
34864do
34865 # Extract the first word of "$ac_prog", so it can be a program name with args.
34866set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034868$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034869if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034870 $as_echo_n "(cached) " >&6
34871else
34872 if test -n "$PERL"; then
34873 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34874else
34875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34876for as_dir in $PATH
34877do
34878 IFS=$as_save_IFS
34879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34882 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034884 break 2
34885 fi
34886done
cristy8b350f62009-11-15 23:12:43 +000034887 done
cristy3ed852e2009-09-05 21:47:34 +000034888IFS=$as_save_IFS
34889
34890fi
34891fi
34892PERL=$ac_cv_prog_PERL
34893if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895$as_echo "$PERL" >&6; }
34896else
cristy8b350f62009-11-15 23:12:43 +000034897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034898$as_echo "no" >&6; }
34899fi
34900
34901
34902 test -n "$PERL" && break
34903done
34904
34905for ac_prog in rpmbuild rpm
34906do
34907 # Extract the first word of "$ac_prog", so it can be a program name with args.
34908set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034911if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034912 $as_echo_n "(cached) " >&6
34913else
34914 if test -n "$RPM"; then
34915 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34916else
34917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34918for as_dir in $PATH
34919do
34920 IFS=$as_save_IFS
34921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34924 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926 break 2
34927 fi
34928done
cristy8b350f62009-11-15 23:12:43 +000034929 done
cristy3ed852e2009-09-05 21:47:34 +000034930IFS=$as_save_IFS
34931
34932fi
34933fi
34934RPM=$ac_cv_prog_RPM
34935if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034937$as_echo "$RPM" >&6; }
34938else
cristy8b350f62009-11-15 23:12:43 +000034939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034940$as_echo "no" >&6; }
34941fi
34942
34943
34944 test -n "$RPM" && break
34945done
34946
34947
cristy73bd4a52010-10-05 11:24:23 +000034948ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34949
34950
34951AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34952
34953
34954AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34955
34956
34957AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34958
34959
34960 if test "x$RPM" != "x" ; then
34961 RPM_DELEGATE_TRUE=
34962 RPM_DELEGATE_FALSE='#'
34963else
34964 RPM_DELEGATE_TRUE='#'
34965 RPM_DELEGATE_FALSE=
34966fi
34967
cristy3ed852e2009-09-05 21:47:34 +000034968
34969#
34970# 7ZIP support (http://p7zip.sourceforge.net/)
34971#
34972P7ZIP=''
34973for ac_prog in 7za
34974do
34975 # Extract the first word of "$ac_prog", so it can be a program name with args.
34976set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034979if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034980 $as_echo_n "(cached) " >&6
34981else
34982 if test -n "$P7ZIP"; then
34983 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34984else
34985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34986for as_dir in $PATH
34987do
34988 IFS=$as_save_IFS
34989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34992 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034994 break 2
34995 fi
34996done
cristy8b350f62009-11-15 23:12:43 +000034997 done
cristy3ed852e2009-09-05 21:47:34 +000034998IFS=$as_save_IFS
34999
35000fi
35001fi
35002P7ZIP=$ac_cv_prog_P7ZIP
35003if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035005$as_echo "$P7ZIP" >&6; }
35006else
cristy8b350f62009-11-15 23:12:43 +000035007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035008$as_echo "no" >&6; }
35009fi
35010
35011
35012 test -n "$P7ZIP" && break
35013done
35014
35015
cristy73bd4a52010-10-05 11:24:23 +000035016 if test "x$P7ZIP" != "x" ; then
35017 P7ZIP_DELEGATE_TRUE=
35018 P7ZIP_DELEGATE_FALSE='#'
35019else
35020 P7ZIP_DELEGATE_TRUE='#'
35021 P7ZIP_DELEGATE_FALSE=
35022fi
35023
cristy3ed852e2009-09-05 21:47:34 +000035024
35025#
35026# ZIP support (http://www.info-zip.org/Zip.html)
35027#
35028ZIP=''
35029for ac_prog in zip
35030do
35031 # Extract the first word of "$ac_prog", so it can be a program name with args.
35032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035035if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035036 $as_echo_n "(cached) " >&6
35037else
35038 if test -n "$ZIP"; then
35039 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35040else
35041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35042for as_dir in $PATH
35043do
35044 IFS=$as_save_IFS
35045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35048 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035050 break 2
35051 fi
35052done
cristy8b350f62009-11-15 23:12:43 +000035053 done
cristy3ed852e2009-09-05 21:47:34 +000035054IFS=$as_save_IFS
35055
35056fi
35057fi
35058ZIP=$ac_cv_prog_ZIP
35059if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035061$as_echo "$ZIP" >&6; }
35062else
cristy8b350f62009-11-15 23:12:43 +000035063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035064$as_echo "no" >&6; }
35065fi
35066
35067
35068 test -n "$ZIP" && break
35069done
35070
35071
cristy73bd4a52010-10-05 11:24:23 +000035072 if test "x$ZIP" != "x" ; then
35073 ZIP_DELEGATE_TRUE=
35074 ZIP_DELEGATE_FALSE='#'
35075else
35076 ZIP_DELEGATE_TRUE='#'
35077 ZIP_DELEGATE_FALSE=
35078fi
35079
cristy3ed852e2009-09-05 21:47:34 +000035080
35081#
35082# GhostPCL related configuration.
35083#
35084PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035085PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035086PCLMonoDevice=pbmraw
35087if test -z "$PCLVersion"; then
35088 PCLVersion='unknown'
35089fi
35090if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035091 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35092$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035094$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35096$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035097 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo_n "checking for pcl color device... " >&6; }
35100 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35101 :
35102 else
35103 PCLColorDevice=ppmraw
35104 fi
cristy09b53e12011-10-14 12:47:22 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35106$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035107
35108 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035110$as_echo_n "checking for pcl CMYK device... " >&6; }
35111 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35112 :
35113 else
35114 PCLCMYKDevice=$PCLColorDevice
35115 fi
cristy09b53e12011-10-14 12:47:22 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35117$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035118
35119 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035121$as_echo_n "checking for pcl mono device... " >&6; }
35122 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35123 :
35124 else
35125 PCLMonoDevice=$PCLColorDevice
35126 fi
cristy09b53e12011-10-14 12:47:22 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35128$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035129fi
35130
35131
35132
35133
35134
35135
35136#
35137# GhostXPS related configuration.
35138#
35139XPSColorDevice=ppmraw
35140XPSCMYKDevice=bmpsep8
35141XPSMonoDevice=pbmraw
35142if test -z "$XPSVersion"; then
35143 XPSVersion='unknown'
35144fi
35145if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035146 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35147$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35151$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035152 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035154$as_echo_n "checking for xps color device... " >&6; }
35155 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35156 :
35157 else
35158 XPSColorDevice=ppmraw
35159 fi
cristy09b53e12011-10-14 12:47:22 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35161$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035162
35163 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035165$as_echo_n "checking for xps CMYK device... " >&6; }
35166 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35167 :
35168 else
35169 XPSCMYKDevice=$XPSColorDevice
35170 fi
cristy09b53e12011-10-14 12:47:22 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35172$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035173
35174 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035176$as_echo_n "checking for xps mono device... " >&6; }
35177 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35178 :
35179 else
35180 XPSMonoDevice=$XPSColorDevice
35181 fi
cristy09b53e12011-10-14 12:47:22 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35183$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035184fi
35185
35186
35187
35188
35189
35190
35191#
35192# Ghostscript related configuration.
35193#
cristya97426c2011-02-04 01:41:27 +000035194GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035195GSColorDevice=pnmraw
35196GSCMYKDevice=pam
35197GSMonoDevice=pbmraw
35198GSPDFDevice=pdfwrite
35199GSPSDevice=pswrite
35200GSEPSDevice=epswrite
35201GSVersion='unknown'
35202if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035203 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35204$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035206$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035207 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35208$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035210$as_echo_n "checking for Ghostscript version... " >&6; }
35211 if GSVersion=`$PSDelegate --version`; then
35212 :
35213 else
35214 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35215 fi
cristy09b53e12011-10-14 12:47:22 +000035216 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35217$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035218
35219 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035221$as_echo_n "checking for gs alpha device... " >&6; }
35222 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35223 :
35224 else
35225 GSAlphaDevice=pnmraw
35226 fi
cristy09b53e12011-10-14 12:47:22 +000035227 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35228$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035229
35230 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035232$as_echo_n "checking for gs color device... " >&6; }
35233 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35234 :
35235 else
35236 GSColorDevice=pnmraw
35237 fi
cristy09b53e12011-10-14 12:47:22 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35239$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035240
35241 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo_n "checking for gs CMYK device... " >&6; }
35244 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35245 :
35246 else
35247 GSCMYKDevice=bmpsep8
35248 fi
cristy09b53e12011-10-14 12:47:22 +000035249 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35250$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035251
35252 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035254$as_echo_n "checking for gs mono device... " >&6; }
35255 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35256 :
35257 else
35258 GSMonoDevice=$GSColorDevice
35259 fi
cristy09b53e12011-10-14 12:47:22 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35261$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035262
35263 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo_n "checking for gs PDF writing device... " >&6; }
35266 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35267 :
35268 else
35269 GSPDFDevice=nodevice
35270 fi
cristy09b53e12011-10-14 12:47:22 +000035271 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35272$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035273
35274 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035276$as_echo_n "checking for gs PS writing device... " >&6; }
35277 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35278 :
35279 else
35280 GSPSDevice=nodevice
35281 fi
cristy09b53e12011-10-14 12:47:22 +000035282 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35283$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035284
35285 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035287$as_echo_n "checking for gs EPS writing device... " >&6; }
35288 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35289 :
35290 else
35291 GSEPSDevice=nodevice
35292 fi
cristy09b53e12011-10-14 12:47:22 +000035293 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35294$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035295fi
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306#
35307# PerlMagick-related configuration
35308#
35309
35310# Look for PERL if PerlMagick requested
35311# If name/path of desired PERL interpreter is specified, look for that one first
35312have_perl='no'
35313if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035314 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35315$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035318 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35319$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035320 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035322$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035323if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035324 $as_echo_n "(cached) " >&6
35325else
35326 ac_cv_path_PERL="$with_perl"
35327fi
cristy8b350f62009-11-15 23:12:43 +000035328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo "$ac_cv_path_PERL" >&6; };
35330 PERL=$ac_cv_path_PERL
35331 have_perl="$ac_cv_path_PERL"
35332 else
35333 for ac_prog in perl perl5
35334do
35335 # Extract the first word of "$ac_prog", so it can be a program name with args.
35336set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035339if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035340 $as_echo_n "(cached) " >&6
35341else
35342 case $PERL in
35343 [\\/]* | ?:[\\/]*)
35344 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35345 ;;
35346 *)
35347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35348for as_dir in $PATH
35349do
35350 IFS=$as_save_IFS
35351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35354 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356 break 2
35357 fi
35358done
cristy8b350f62009-11-15 23:12:43 +000035359 done
cristy3ed852e2009-09-05 21:47:34 +000035360IFS=$as_save_IFS
35361
35362 ;;
35363esac
35364fi
35365PERL=$ac_cv_path_PERL
35366if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035368$as_echo "$PERL" >&6; }
35369else
cristy8b350f62009-11-15 23:12:43 +000035370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035371$as_echo "no" >&6; }
35372fi
35373
35374
35375 test -n "$PERL" && break
35376done
35377 if test "$ac_cv_path_PERL"; then
35378 have_perl="$ac_cv_path_PERL"
35379 fi
35380 fi
35381fi
35382
cristy949301e2010-01-06 01:38:40 +000035383if test "$with_perl" != 'yes' ; then
35384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35385fi
35386
35387PERL_SUPPORTS_DESTDIR='no'
35388
cristy3ed852e2009-09-05 21:47:34 +000035389with_perl_static='no'
35390with_perl_dynamic='no'
35391if test "$have_perl" != 'no'; then
35392 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35393 with_perl_static='yes'
35394 fi
35395 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35396 with_perl_dynamic='yes'
35397 fi
35398 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035399
35400
35401
35402
35403 if test -n "$PERL"; then :
35404
35405 ax_perl_version="5.8.1"
35406
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35408$as_echo_n "checking for perl version... " >&6; }
35409
35410 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35411
35412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35413$as_echo "$perl_version" >&6; }
35414
35415 PERL_VERSION=$perl_version
35416
35417
35418
35419
35420
35421 # Used to indicate true or false condition
35422 ax_compare_version=false
35423
35424 # Convert the two version strings to be compared into a format that
35425 # allows a simple string comparison. The end result is that a version
35426 # string of the form 1.12.5-r617 will be converted to the form
35427 # 0001001200050617. In other words, each number is zero padded to four
35428 # digits, and non digits are removed.
35429
35430 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35431 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35432 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35433 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35434 -e 's/[^0-9]//g'`
35435
35436
35437 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35438 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35439 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35440 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35441 -e 's/[^0-9]//g'`
35442
35443
35444 ax_compare_version=`echo "x$ax_compare_version_A
35445x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35446
35447
35448
35449 if test "$ax_compare_version" = "true" ; then
35450
35451 :
35452 PERL_SUPPORTS_DESTDIR='yes'
35453
35454 else
35455 :
35456 PERL_SUPPORTS_DESTDIR='no'
35457
35458 fi
35459
35460
35461else
35462
35463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35464$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35465 PERL_SUPPORTS_DESTDIR='no'
35466
cristy3ed852e2009-09-05 21:47:34 +000035467fi
cristy73bd4a52010-10-05 11:24:23 +000035468
35469fi
35470 if test "$have_perl" != 'no'; then
35471 WITH_PERL_TRUE=
35472 WITH_PERL_FALSE='#'
35473else
35474 WITH_PERL_TRUE='#'
35475 WITH_PERL_FALSE=
35476fi
35477
35478 if test $with_perl_static = 'yes'; then
35479 WITH_PERL_STATIC_TRUE=
35480 WITH_PERL_STATIC_FALSE='#'
35481else
35482 WITH_PERL_STATIC_TRUE='#'
35483 WITH_PERL_STATIC_FALSE=
35484fi
35485
35486 if test $with_perl_dynamic = 'yes'; then
35487 WITH_PERL_DYNAMIC_TRUE=
35488 WITH_PERL_DYNAMIC_FALSE='#'
35489else
35490 WITH_PERL_DYNAMIC_TRUE='#'
35491 WITH_PERL_DYNAMIC_FALSE=
35492fi
35493
cristy3ed852e2009-09-05 21:47:34 +000035494
35495
35496# Determine path to pick up MagickCore library from for use with building PerlMagick
35497MAGICKCORE_PATH="${LIB_DIR}"
35498if test $with_perl_static = 'yes'; then
35499 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35500 libtool_objdir=$objdir
35501
35502 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035503 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035504fi
35505
35506
35507# Create a simple string containing format names for all delegate libraries
35508DELEGATES=''
35509if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35510if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35511if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35512if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35513if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35514if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35515if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35516if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35517if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35518if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35519if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35520if test "$have_jpeg" = 'yes'; then
35521 DELEGATES="$DELEGATES jpeg";
35522 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35523fi
35524if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035525if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035526if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35527if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035528if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035529if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35530if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35531if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35532if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35533if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35534if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35535if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35536if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35537if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35538
35539
35540
35541#
35542# Handle special compiler flags
35543#
35544
35545# Add '-p' if prof source profiling support enabled
35546if test "$enable_prof" = 'yes'; then
35547 CFLAGS="-p $CFLAGS"
35548 CXXFLAGS="-p $CXXFLAGS"
35549 LDFLAGS="-p $LDFLAGS"
35550fi
35551
35552# Add '-pg' if gprof source profiling support enabled
35553if test "$enable_gprof" = 'yes'; then
35554 CFLAGS="-pg $CFLAGS"
35555 CXXFLAGS="-pg $CXXFLAGS"
35556 LDFLAGS="-pg $LDFLAGS"
35557fi
35558
35559# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35560# This is a gcc-specific feature
35561if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035563$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035564if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035565 $as_echo_n "(cached) " >&6
35566else
35567 ac_check_lib_save_LIBS=$LIBS
35568LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035570/* end confdefs.h. */
35571
35572/* Override any GCC internal prototype to avoid an error.
35573 Use char because int might match the return type of a GCC
35574 builtin and then its argument prototype would still apply. */
35575#ifdef __cplusplus
35576extern "C"
35577#endif
35578char _gcov_init ();
35579int
35580main ()
35581{
35582return _gcov_init ();
35583 ;
35584 return 0;
35585}
35586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035588 ac_cv_lib_gcov__gcov_init=yes
35589else
cristy8b350f62009-11-15 23:12:43 +000035590 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035591fi
cristy8b350f62009-11-15 23:12:43 +000035592rm -f core conftest.err conftest.$ac_objext \
35593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035594LIBS=$ac_check_lib_save_LIBS
35595fi
cristy8b350f62009-11-15 23:12:43 +000035596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035597$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035598if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035599 cat >>confdefs.h <<_ACEOF
35600#define HAVE_LIBGCOV 1
35601_ACEOF
35602
35603 LIBS="-lgcov $LIBS"
35604
35605fi
35606
cristy8b350f62009-11-15 23:12:43 +000035607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035608$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035609if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035610 $as_echo_n "(cached) " >&6
35611else
35612 ac_check_lib_save_LIBS=$LIBS
35613LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035615/* end confdefs.h. */
35616
35617/* Override any GCC internal prototype to avoid an error.
35618 Use char because int might match the return type of a GCC
35619 builtin and then its argument prototype would still apply. */
35620#ifdef __cplusplus
35621extern "C"
35622#endif
35623char __gcov_init ();
35624int
35625main ()
35626{
35627return __gcov_init ();
35628 ;
35629 return 0;
35630}
35631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035633 ac_cv_lib_gcov___gcov_init=yes
35634else
cristy8b350f62009-11-15 23:12:43 +000035635 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035636fi
cristy8b350f62009-11-15 23:12:43 +000035637rm -f core conftest.err conftest.$ac_objext \
35638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035639LIBS=$ac_check_lib_save_LIBS
35640fi
cristy8b350f62009-11-15 23:12:43 +000035641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035642$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035643if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035644 cat >>confdefs.h <<_ACEOF
35645#define HAVE_LIBGCOV 1
35646_ACEOF
35647
35648 LIBS="-lgcov $LIBS"
35649
35650fi
35651
35652 case "$target_os" in
35653 darwin*)
35654 OSX_GCOV_LDFLAG="-Wl,-single_module"
35655 ;;
35656 *)
35657 OSX_GCOV_LDFLAG=""
35658 ;;
35659 esac
35660
35661 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35662 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35663 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35664fi
35665
35666#
35667# Build library dependency list for libMagickCore
35668#
35669
35670MAGICK_LIBLTDL='' # Libltdl for build
35671MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35672MAGICK_LTDLDEPS='' # extra libltdl dependencies
35673if test "$with_ltdl" != 'no'
35674then
35675 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35676 MAGICK_API_LIBLTDL='-lltdl'
35677 fi
35678 MAGICK_LIBLTDL=${LIBLTDL}
35679 MAGICK_LTDLDEPS=${LTDLDEPS}
35680fi
35681
35682
35683
35684if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035685 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"
cristy3ed852e2009-09-05 21:47:34 +000035686else
cristy41cbe8a2011-10-27 01:35:18 +000035687 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"
cristy3ed852e2009-09-05 21:47:34 +000035688fi
35689
35690
35691#
35692# Remove extraneous spaces from output variables (asthetic)
35693#
35694X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35695X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35696X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35697X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35698
35699CC=`echo $CC | sed -e 's/ */ /g'`
35700CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35701CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35702CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35703DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35704DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35705LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35706TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35707MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35708#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35709
35710# Pass only user-provided LIBS as "global" libraries
35711LIBS=$USER_LIBS
35712
35713#AC_SUBST(CPPFLAGS)
35714
35715#AC_SUBST(LDFLAGS)
35716#AC_SUBST(X_PRE_LIBS)
35717#AC_SUBST(X_LIBS)
35718#AC_SUBST(X_EXTRA_LIBS)
35719
35720MAGICK_CFLAGS=$CFLAGS
35721MAGICK_CXXFLAGS="$CXXFLAGS"
35722MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35723MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35724MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35725MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35726
35727
35728
35729
35730
35731
35732
35733
cristyfd9dcd42010-08-08 18:07:02 +000035734
cristy3ed852e2009-09-05 21:47:34 +000035735# Set configured scripts to executable.
35736ac_config_commands="$ac_config_commands default"
35737
35738ac_config_commands="$ac_config_commands MagickCore-config.in"
35739
cristy3ed852e2009-09-05 21:47:34 +000035740ac_config_commands="$ac_config_commands MagickWand-config.in"
35741
cristy3ed852e2009-09-05 21:47:34 +000035742ac_config_commands="$ac_config_commands Magick++-config.in"
35743
35744ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35745
35746
cristy09b53e12011-10-14 12:47:22 +000035747{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35748$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35749{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35750$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035751cat >confcache <<\_ACEOF
35752# This file is a shell script that caches the results of configure
35753# tests run on this system so they can be shared between configure
35754# scripts and configure runs, see configure's option --config-cache.
35755# It is not useful on other systems. If it contains results you don't
35756# want to keep, you may remove or edit it.
35757#
35758# config.status only pays attention to the cache file if you give it
35759# the --recheck option to rerun configure.
35760#
35761# `ac_cv_env_foo' variables (set or unset) will be overridden when
35762# loading this file, other *unset* `ac_cv_foo' will be assigned the
35763# following values.
35764
35765_ACEOF
35766
35767# The following way of writing the cache mishandles newlines in values,
35768# but we know of no workaround that is simple, portable, and efficient.
35769# So, we kill variables containing newlines.
35770# Ultrix sh set writes to stderr and can't be redirected directly,
35771# and sets the high bit in the cache file unless we assign to the vars.
35772(
35773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35774 eval ac_val=\$$ac_var
35775 case $ac_val in #(
35776 *${as_nl}*)
35777 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35780 esac
35781 case $ac_var in #(
35782 _ | IFS | as_nl) ;; #(
35783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035784 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035785 esac ;;
35786 esac
35787 done
35788
35789 (set) 2>&1 |
35790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35791 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035792 # `set' does not quote correctly, so add quotes: double-quote
35793 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035794 sed -n \
35795 "s/'/'\\\\''/g;
35796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35797 ;; #(
35798 *)
35799 # `set' quotes correctly as required by POSIX, so do not add quotes.
35800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35801 ;;
35802 esac |
35803 sort
35804) |
35805 sed '
35806 /^ac_cv_env_/b end
35807 t clear
35808 :clear
35809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35810 t end
35811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35812 :end' >>confcache
35813if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35814 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035815 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035817$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035818 if test ! -f "$cache_file" || test -h "$cache_file"; then
35819 cat confcache >"$cache_file"
35820 else
35821 case $cache_file in #(
35822 */* | ?:*)
35823 mv -f confcache "$cache_file"$$ &&
35824 mv -f "$cache_file"$$ "$cache_file" ;; #(
35825 *)
35826 mv -f confcache "$cache_file" ;;
35827 esac
35828 fi
35829 fi
cristy3ed852e2009-09-05 21:47:34 +000035830 else
cristy8b350f62009-11-15 23:12:43 +000035831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035832$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35833 fi
35834fi
35835rm -f confcache
35836
35837test "x$prefix" = xNONE && prefix=$ac_default_prefix
35838# Let make expand exec_prefix.
35839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35840
35841DEFS=-DHAVE_CONFIG_H
35842
35843ac_libobjs=
35844ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035845U=
cristy3ed852e2009-09-05 21:47:34 +000035846for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35847 # 1. Remove the extension, and $U if already installed.
35848 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35851 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035852 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35853 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035854done
35855LIBOBJS=$ac_libobjs
35856
35857LTLIBOBJS=$ac_ltlibobjs
35858
35859
cristy73bd4a52010-10-05 11:24:23 +000035860 if test -n "$EXEEXT"; then
35861 am__EXEEXT_TRUE=
35862 am__EXEEXT_FALSE='#'
35863else
35864 am__EXEEXT_TRUE='#'
35865 am__EXEEXT_FALSE=
35866fi
cristy3ed852e2009-09-05 21:47:34 +000035867
cristy73bd4a52010-10-05 11:24:23 +000035868if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035869 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035870Usually this means the macro was only invoked conditionally." "$LINENO" 5
35871fi
35872if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035874Usually this means the macro was only invoked conditionally." "$LINENO" 5
35875fi
35876if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035877 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035878Usually this means the macro was only invoked conditionally." "$LINENO" 5
35879fi
35880if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035881 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035882Usually this means the macro was only invoked conditionally." "$LINENO" 5
35883fi
35884if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035885 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035886Usually this means the macro was only invoked conditionally." "$LINENO" 5
35887fi
35888if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035889 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035890Usually this means the macro was only invoked conditionally." "$LINENO" 5
35891fi
35892if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035893 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035894Usually this means the macro was only invoked conditionally." "$LINENO" 5
35895fi
35896if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035897 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035898Usually this means the macro was only invoked conditionally." "$LINENO" 5
35899fi
cristy73bd4a52010-10-05 11:24:23 +000035900if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035901 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035902Usually this means the macro was only invoked conditionally." "$LINENO" 5
35903fi
35904if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035905 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035906Usually this means the macro was only invoked conditionally." "$LINENO" 5
35907fi
35908LT_CONFIG_H=config/config.h
35909
35910 _ltdl_libobjs=
35911 _ltdl_ltlibobjs=
35912 if test -n "$_LT_LIBOBJS"; then
35913 # Remove the extension.
35914 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35915 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35916 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35917 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35918 done
35919 fi
35920 ltdl_LIBOBJS=$_ltdl_libobjs
35921
35922 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35923
35924
35925if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035926 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035927Usually this means the macro was only invoked conditionally." "$LINENO" 5
35928fi
35929if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035930 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035931Usually this means the macro was only invoked conditionally." "$LINENO" 5
35932fi
35933if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035934 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035935Usually this means the macro was only invoked conditionally." "$LINENO" 5
35936fi
35937if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035938 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035939Usually this means the macro was only invoked conditionally." "$LINENO" 5
35940fi
cristy71d8c202012-03-20 17:05:01 +000035941if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35942 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35943Usually this means the macro was only invoked conditionally." "$LINENO" 5
35944fi
cristy73bd4a52010-10-05 11:24:23 +000035945
35946if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035947 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035948Usually this means the macro was only invoked conditionally." "$LINENO" 5
35949fi
35950if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035951 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035952Usually this means the macro was only invoked conditionally." "$LINENO" 5
35953fi
35954if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035955 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035956Usually this means the macro was only invoked conditionally." "$LINENO" 5
35957fi
35958if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035959 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035960Usually this means the macro was only invoked conditionally." "$LINENO" 5
35961fi
35962if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035963 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035964Usually this means the macro was only invoked conditionally." "$LINENO" 5
35965fi
35966if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035967 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035968Usually this means the macro was only invoked conditionally." "$LINENO" 5
35969fi
35970if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035971 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035972Usually this means the macro was only invoked conditionally." "$LINENO" 5
35973fi
35974if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035975 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035976Usually this means the macro was only invoked conditionally." "$LINENO" 5
35977fi
35978if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035979 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035980Usually this means the macro was only invoked conditionally." "$LINENO" 5
35981fi
35982if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035983 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035984Usually this means the macro was only invoked conditionally." "$LINENO" 5
35985fi
35986if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035988Usually this means the macro was only invoked conditionally." "$LINENO" 5
35989fi
35990if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035991 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035992Usually this means the macro was only invoked conditionally." "$LINENO" 5
35993fi
35994if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035995 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035996Usually this means the macro was only invoked conditionally." "$LINENO" 5
35997fi
35998if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
36002if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036003 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036007 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
36010if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036011 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036012Usually this means the macro was only invoked conditionally." "$LINENO" 5
36013fi
36014if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036015 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036016Usually this means the macro was only invoked conditionally." "$LINENO" 5
36017fi
36018if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036019 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
36022if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036023 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
cristyfbb0ef02010-12-19 02:32:11 +000036026if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36027 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36028Usually this means the macro was only invoked conditionally." "$LINENO" 5
36029fi
cristy73bd4a52010-10-05 11:24:23 +000036030if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
cristy41cbe8a2011-10-27 01:35:18 +000036034if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36035 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
36039 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
36040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
cristy73bd4a52010-10-05 11:24:23 +000036042if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
cristyb1860752011-03-14 00:27:46 +000036058if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36059 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
cristy73bd4a52010-10-05 11:24:23 +000036062if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036071 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
36074if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036075 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036083 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
36086if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036087 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
36090if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036091 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
cristy3ed852e2009-09-05 21:47:34 +000036094
cristyda16f162011-02-19 23:52:17 +000036095: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036096ac_write_fail=0
36097ac_clean_files_save=$ac_clean_files
36098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036099{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036100$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036101as_write_fail=0
36102cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036103#! $SHELL
36104# Generated by $as_me.
36105# Run this file to recreate the current configuration.
36106# Compiler output produced by configure, useful for debugging
36107# configure, is in config.log if it exists.
36108
36109debug=false
36110ac_cs_recheck=false
36111ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036112
cristy8b350f62009-11-15 23:12:43 +000036113SHELL=\${CONFIG_SHELL-$SHELL}
36114export SHELL
36115_ASEOF
36116cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36117## -------------------- ##
36118## M4sh Initialization. ##
36119## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036120
36121# Be more Bourne compatible
36122DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036124 emulate sh
36125 NULLCMD=:
36126 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36127 # is contrary to our usage. Disable this feature.
36128 alias -g '${1+"$@"}'='"$@"'
36129 setopt NO_GLOB_SUBST
36130else
cristy8b350f62009-11-15 23:12:43 +000036131 case `(set -o) 2>/dev/null` in #(
36132 *posix*) :
36133 set -o posix ;; #(
36134 *) :
36135 ;;
cristy3ed852e2009-09-05 21:47:34 +000036136esac
cristy3ed852e2009-09-05 21:47:34 +000036137fi
36138
36139
cristy3ed852e2009-09-05 21:47:34 +000036140as_nl='
36141'
36142export as_nl
36143# Printing a long string crashes Solaris 7 /usr/bin/printf.
36144as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36146as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036147# Prefer a ksh shell builtin over an external printf program on Solaris,
36148# but without wasting forks for bash or zsh.
36149if test -z "$BASH_VERSION$ZSH_VERSION" \
36150 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36151 as_echo='print -r --'
36152 as_echo_n='print -rn --'
36153elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036154 as_echo='printf %s\n'
36155 as_echo_n='printf %s'
36156else
36157 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36158 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36159 as_echo_n='/usr/ucb/echo -n'
36160 else
36161 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36162 as_echo_n_body='eval
36163 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036164 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036165 *"$as_nl"*)
36166 expr "X$arg" : "X\\(.*\\)$as_nl";
36167 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36168 esac;
36169 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36170 '
36171 export as_echo_n_body
36172 as_echo_n='sh -c $as_echo_n_body as_echo'
36173 fi
36174 export as_echo_body
36175 as_echo='sh -c $as_echo_body as_echo'
36176fi
36177
36178# The user is always right.
36179if test "${PATH_SEPARATOR+set}" != set; then
36180 PATH_SEPARATOR=:
36181 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36182 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36183 PATH_SEPARATOR=';'
36184 }
36185fi
36186
cristy3ed852e2009-09-05 21:47:34 +000036187
36188# IFS
36189# We need space, tab and new line, in precisely that order. Quoting is
36190# there to prevent editors from complaining about space-tab.
36191# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36192# splitting by setting IFS to empty value.)
36193IFS=" "" $as_nl"
36194
36195# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036196as_myself=
cristy8b350f62009-11-15 23:12:43 +000036197case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036198 *[\\/]* ) as_myself=$0 ;;
36199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36200for as_dir in $PATH
36201do
36202 IFS=$as_save_IFS
36203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36205 done
cristy3ed852e2009-09-05 21:47:34 +000036206IFS=$as_save_IFS
36207
36208 ;;
36209esac
36210# We did not find ourselves, most probably we were run as `sh COMMAND'
36211# in which case we are not to be found in the path.
36212if test "x$as_myself" = x; then
36213 as_myself=$0
36214fi
36215if test ! -f "$as_myself"; then
36216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036217 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036218fi
36219
cristy8b350f62009-11-15 23:12:43 +000036220# Unset variables that we do not need and which cause bugs (e.g. in
36221# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36222# suppresses any "Segmentation fault" message there. '((' could
36223# trigger a bug in pdksh 5.2.14.
36224for as_var in BASH_ENV ENV MAIL MAILPATH
36225do eval test x\${$as_var+set} = xset \
36226 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036227done
36228PS1='$ '
36229PS2='> '
36230PS4='+ '
36231
36232# NLS nuisances.
36233LC_ALL=C
36234export LC_ALL
36235LANGUAGE=C
36236export LANGUAGE
36237
cristy8b350f62009-11-15 23:12:43 +000036238# CDPATH.
36239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36240
36241
cristy98dddb52010-11-04 00:30:15 +000036242# as_fn_error STATUS ERROR [LINENO LOG_FD]
36243# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036244# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36245# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036246# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036247as_fn_error ()
36248{
cristy98dddb52010-11-04 00:30:15 +000036249 as_status=$1; test $as_status -eq 0 && as_status=1
36250 if test "$4"; then
36251 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36252 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036253 fi
cristy98dddb52010-11-04 00:30:15 +000036254 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036255 as_fn_exit $as_status
36256} # as_fn_error
36257
36258
36259# as_fn_set_status STATUS
36260# -----------------------
36261# Set $? to STATUS, without forking.
36262as_fn_set_status ()
36263{
36264 return $1
36265} # as_fn_set_status
36266
36267# as_fn_exit STATUS
36268# -----------------
36269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36270as_fn_exit ()
36271{
36272 set +e
36273 as_fn_set_status $1
36274 exit $1
36275} # as_fn_exit
36276
36277# as_fn_unset VAR
36278# ---------------
36279# Portably unset VAR.
36280as_fn_unset ()
36281{
36282 { eval $1=; unset $1;}
36283}
36284as_unset=as_fn_unset
36285# as_fn_append VAR VALUE
36286# ----------------------
36287# Append the text in VALUE to the end of the definition contained in VAR. Take
36288# advantage of any shell optimizations that allow amortized linear growth over
36289# repeated appends, instead of the typical quadratic growth present in naive
36290# implementations.
36291if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36292 eval 'as_fn_append ()
36293 {
36294 eval $1+=\$2
36295 }'
36296else
36297 as_fn_append ()
36298 {
36299 eval $1=\$$1\$2
36300 }
36301fi # as_fn_append
36302
36303# as_fn_arith ARG...
36304# ------------------
36305# Perform arithmetic evaluation on the ARGs, and store the result in the
36306# global $as_val. Take advantage of shells that can avoid forks. The arguments
36307# must be portable across $(()) and expr.
36308if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36309 eval 'as_fn_arith ()
36310 {
36311 as_val=$(( $* ))
36312 }'
36313else
36314 as_fn_arith ()
36315 {
36316 as_val=`expr "$@" || test $? -eq 1`
36317 }
36318fi # as_fn_arith
36319
36320
cristy3ed852e2009-09-05 21:47:34 +000036321if expr a : '\(a\)' >/dev/null 2>&1 &&
36322 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36323 as_expr=expr
36324else
36325 as_expr=false
36326fi
36327
36328if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36329 as_basename=basename
36330else
36331 as_basename=false
36332fi
36333
cristy8b350f62009-11-15 23:12:43 +000036334if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36335 as_dirname=dirname
36336else
36337 as_dirname=false
36338fi
cristy3ed852e2009-09-05 21:47:34 +000036339
cristy3ed852e2009-09-05 21:47:34 +000036340as_me=`$as_basename -- "$0" ||
36341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36342 X"$0" : 'X\(//\)$' \| \
36343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36344$as_echo X/"$0" |
36345 sed '/^.*\/\([^/][^/]*\)\/*$/{
36346 s//\1/
36347 q
36348 }
36349 /^X\/\(\/\/\)$/{
36350 s//\1/
36351 q
36352 }
36353 /^X\/\(\/\).*/{
36354 s//\1/
36355 q
36356 }
36357 s/.*/./; q'`
36358
cristy8b350f62009-11-15 23:12:43 +000036359# Avoid depending upon Character Ranges.
36360as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36361as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36362as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36363as_cr_digits='0123456789'
36364as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036365
36366ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036367case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036368-n*)
cristy8b350f62009-11-15 23:12:43 +000036369 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036371 xy) ECHO_C='\c';;
36372 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36373 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036374 esac;;
36375*)
36376 ECHO_N='-n';;
36377esac
cristy3ed852e2009-09-05 21:47:34 +000036378
36379rm -f conf$$ conf$$.exe conf$$.file
36380if test -d conf$$.dir; then
36381 rm -f conf$$.dir/conf$$.file
36382else
36383 rm -f conf$$.dir
36384 mkdir conf$$.dir 2>/dev/null
36385fi
36386if (echo >conf$$.file) 2>/dev/null; then
36387 if ln -s conf$$.file conf$$ 2>/dev/null; then
36388 as_ln_s='ln -s'
36389 # ... but there are two gotchas:
36390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36392 # In both cases, we have to default to `cp -p'.
36393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36394 as_ln_s='cp -p'
36395 elif ln conf$$.file conf$$ 2>/dev/null; then
36396 as_ln_s=ln
36397 else
36398 as_ln_s='cp -p'
36399 fi
36400else
36401 as_ln_s='cp -p'
36402fi
36403rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36404rmdir conf$$.dir 2>/dev/null
36405
cristy8b350f62009-11-15 23:12:43 +000036406
36407# as_fn_mkdir_p
36408# -------------
36409# Create "$as_dir" as a directory, including parents if necessary.
36410as_fn_mkdir_p ()
36411{
36412
36413 case $as_dir in #(
36414 -*) as_dir=./$as_dir;;
36415 esac
36416 test -d "$as_dir" || eval $as_mkdir_p || {
36417 as_dirs=
36418 while :; do
36419 case $as_dir in #(
36420 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36421 *) as_qdir=$as_dir;;
36422 esac
36423 as_dirs="'$as_qdir' $as_dirs"
36424 as_dir=`$as_dirname -- "$as_dir" ||
36425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36426 X"$as_dir" : 'X\(//\)[^/]' \| \
36427 X"$as_dir" : 'X\(//\)$' \| \
36428 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36429$as_echo X"$as_dir" |
36430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36431 s//\1/
36432 q
36433 }
36434 /^X\(\/\/\)[^/].*/{
36435 s//\1/
36436 q
36437 }
36438 /^X\(\/\/\)$/{
36439 s//\1/
36440 q
36441 }
36442 /^X\(\/\).*/{
36443 s//\1/
36444 q
36445 }
36446 s/.*/./; q'`
36447 test -d "$as_dir" && break
36448 done
36449 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036450 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036451
36452
36453} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036454if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036455 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036456else
36457 test -d ./-p && rmdir ./-p
36458 as_mkdir_p=false
36459fi
36460
36461if test -x / >/dev/null 2>&1; then
36462 as_test_x='test -x'
36463else
36464 if ls -dL / >/dev/null 2>&1; then
36465 as_ls_L_option=L
36466 else
36467 as_ls_L_option=
36468 fi
36469 as_test_x='
36470 eval sh -c '\''
36471 if test -d "$1"; then
36472 test -d "$1/.";
36473 else
cristy8b350f62009-11-15 23:12:43 +000036474 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000036475 -*)set "./$1";;
36476 esac;
cristy8b350f62009-11-15 23:12:43 +000036477 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000036478 ???[sx]*):;;*)false;;esac;fi
36479 '\'' sh
36480 '
36481fi
36482as_executable_p=$as_test_x
36483
36484# Sed expression to map a string onto a valid CPP name.
36485as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36486
36487# Sed expression to map a string onto a valid variable name.
36488as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36489
36490
36491exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036492## ----------------------------------- ##
36493## Main body of $CONFIG_STATUS script. ##
36494## ----------------------------------- ##
36495_ASEOF
36496test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036497
cristy8b350f62009-11-15 23:12:43 +000036498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36499# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036500# report actual input values of CONFIG_FILES etc. instead of their
36501# values after options handling.
36502ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036503This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036504generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036505
36506 CONFIG_FILES = $CONFIG_FILES
36507 CONFIG_HEADERS = $CONFIG_HEADERS
36508 CONFIG_LINKS = $CONFIG_LINKS
36509 CONFIG_COMMANDS = $CONFIG_COMMANDS
36510 $ $0 $@
36511
36512on `(hostname || uname -n) 2>/dev/null | sed 1q`
36513"
36514
36515_ACEOF
36516
36517case $ac_config_files in *"
36518"*) set x $ac_config_files; shift; ac_config_files=$*;;
36519esac
36520
36521case $ac_config_headers in *"
36522"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36523esac
36524
36525
36526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36527# Files that config.status was made for.
36528config_files="$ac_config_files"
36529config_headers="$ac_config_headers"
36530config_commands="$ac_config_commands"
36531
36532_ACEOF
36533
36534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36535ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036536\`$as_me' instantiates files and other configuration actions
36537from templates according to the current configuration. Unless the files
36538and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036539
cristy8b350f62009-11-15 23:12:43 +000036540Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036541
36542 -h, --help print this help, then exit
36543 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036544 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036545 -q, --quiet, --silent
36546 do not print progress messages
36547 -d, --debug don't remove temporary files
36548 --recheck update $as_me by reconfiguring in the same conditions
36549 --file=FILE[:TEMPLATE]
36550 instantiate the configuration file FILE
36551 --header=FILE[:TEMPLATE]
36552 instantiate the configuration header FILE
36553
36554Configuration files:
36555$config_files
36556
36557Configuration headers:
36558$config_headers
36559
36560Configuration commands:
36561$config_commands
36562
cristy8b350f62009-11-15 23:12:43 +000036563Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036564
36565_ACEOF
36566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036567ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036568ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036569ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036570configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036571 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036572
cristy98dddb52010-11-04 00:30:15 +000036573Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036574This config.status script is free software; the Free Software Foundation
36575gives unlimited permission to copy, distribute and modify it."
36576
36577ac_pwd='$ac_pwd'
36578srcdir='$srcdir'
36579INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036580MKDIR_P='$MKDIR_P'
36581AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036582test -n "\$AWK" || AWK=awk
36583_ACEOF
36584
36585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36586# The default lists apply if the user does not specify any file.
36587ac_need_defaults=:
36588while test $# != 0
36589do
36590 case $1 in
cristyda16f162011-02-19 23:52:17 +000036591 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36593 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36594 ac_shift=:
36595 ;;
cristyda16f162011-02-19 23:52:17 +000036596 --*=)
36597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36598 ac_optarg=
36599 ac_shift=:
36600 ;;
cristy3ed852e2009-09-05 21:47:34 +000036601 *)
36602 ac_option=$1
36603 ac_optarg=$2
36604 ac_shift=shift
36605 ;;
36606 esac
36607
36608 case $ac_option in
36609 # Handling of the options.
36610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36611 ac_cs_recheck=: ;;
36612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36613 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036614 --config | --confi | --conf | --con | --co | --c )
36615 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036616 --debug | --debu | --deb | --de | --d | -d )
36617 debug=: ;;
36618 --file | --fil | --fi | --f )
36619 $ac_shift
36620 case $ac_optarg in
36621 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036622 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036623 esac
cristy8b350f62009-11-15 23:12:43 +000036624 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036625 ac_need_defaults=false;;
36626 --header | --heade | --head | --hea )
36627 $ac_shift
36628 case $ac_optarg in
36629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36630 esac
cristy8b350f62009-11-15 23:12:43 +000036631 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036632 ac_need_defaults=false;;
36633 --he | --h)
36634 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036635 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036636Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036637 --help | --hel | -h )
36638 $as_echo "$ac_cs_usage"; exit ;;
36639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36640 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36641 ac_cs_silent=: ;;
36642
36643 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036644 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036645Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036646
cristy8b350f62009-11-15 23:12:43 +000036647 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036648 ac_need_defaults=false ;;
36649
36650 esac
36651 shift
36652done
36653
36654ac_configure_extra_args=
36655
36656if $ac_cs_silent; then
36657 exec 6>/dev/null
36658 ac_configure_extra_args="$ac_configure_extra_args --silent"
36659fi
36660
36661_ACEOF
36662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36663if \$ac_cs_recheck; then
36664 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36665 shift
36666 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36667 CONFIG_SHELL='$SHELL'
36668 export CONFIG_SHELL
36669 exec "\$@"
36670fi
36671
36672_ACEOF
36673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36674exec 5>>config.log
36675{
36676 echo
36677 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36678## Running $as_me. ##
36679_ASBOX
36680 $as_echo "$ac_log"
36681} >&5
36682
36683_ACEOF
36684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036685#
36686# INIT-COMMANDS
36687#
36688PACKAGE="$PACKAGE"
36689AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36690
36691
36692# The HP-UX ksh and POSIX shell print the target directory to stdout
36693# if CDPATH is set.
36694(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36695
36696sed_quote_subst='$sed_quote_subst'
36697double_quote_subst='$double_quote_subst'
36698delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036699SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36700Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36701GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36702EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36703FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36704SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36705ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36706LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36707macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36708macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36709AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36710DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36711OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36712enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36713enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36714pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36715enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036716PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036717host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36718host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36719host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36720build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36721build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36722build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36723NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36724LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36725max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36726ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36727exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36728lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36729lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36730lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036731lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36732lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036733reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36734reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36735deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36736file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036737file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36738want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36739sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036740AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36741AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036742archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036743STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36744RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36745old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36746old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36747old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36748lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36749CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36750CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36751compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36752GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36753lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36754lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36755lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36756lt_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"`'
cristyda16f162011-02-19 23:52:17 +000036757nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36758lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036759objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36760MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36761lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036762lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036763lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036764lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36765lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36766need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036767MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036768DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36769NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36770LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36771OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36772OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36773libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36774shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36775extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36776archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36777enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36778export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36779whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36780compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36781old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36782old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36783archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36784archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36785module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36786module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36787with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36788allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36789no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36790hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036791hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36792hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36793hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36794hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36795hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36796hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36797inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36798link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036799always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36800export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36801exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36802include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36803prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036804postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036805file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36806variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36807need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36808need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36809version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36810runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36811shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36812shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36813libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36814library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36815soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36816install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36817postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36818postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36819finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36820finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36821hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36822sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36823sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36824hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36825enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36826enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36827enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36828old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36829striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36830compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36831predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36832postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36833predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36834postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36835compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36836LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36837reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36838reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36839old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36840compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36841GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36842lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036843lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036844lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036845lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36846lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36847archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36848enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36849export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36850whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36851compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36852old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36853old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36854archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36855archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36856module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36857module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36858with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36859allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36860no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36861hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036862hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36863hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36864hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36865hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36866hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36867hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36868inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36869link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036870always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36871export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36872exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36873include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36874prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036875postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036876file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36877hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36878compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36879predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36880postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36881predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36882postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36883compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036884
36885LTCC='$LTCC'
36886LTCFLAGS='$LTCFLAGS'
36887compiler='$compiler_DEFAULT'
36888
cristy0c60a692010-11-04 01:09:47 +000036889# A function that is used when there is no print builtin or printf.
36890func_fallback_echo ()
36891{
36892 eval 'cat <<_LTECHO_EOF
36893\$1
36894_LTECHO_EOF'
36895}
36896
cristy73bd4a52010-10-05 11:24:23 +000036897# Quote evaled strings.
36898for var in SED \
36899GREP \
36900EGREP \
36901FGREP \
cristy0c60a692010-11-04 01:09:47 +000036902SHELL \
36903ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036904LD \
cristy0c60a692010-11-04 01:09:47 +000036905AS \
36906DLLTOOL \
36907OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036908PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036909NM \
36910LN_S \
36911lt_SP2NL \
36912lt_NL2SP \
36913reload_flag \
36914deplibs_check_method \
36915file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036916file_magic_glob \
36917want_nocaseglob \
36918sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036919AR \
36920AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036921archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036922STRIP \
36923RANLIB \
36924CC \
36925CFLAGS \
36926compiler \
36927lt_cv_sys_global_symbol_pipe \
36928lt_cv_sys_global_symbol_to_cdecl \
36929lt_cv_sys_global_symbol_to_c_name_address \
36930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036931nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036932lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036933lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036934lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036935lt_prog_compiler_static \
36936lt_cv_prog_compiler_c_o \
36937need_locks \
cristyda16f162011-02-19 23:52:17 +000036938MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036939DSYMUTIL \
36940NMEDIT \
36941LIPO \
36942OTOOL \
36943OTOOL64 \
36944shrext_cmds \
36945export_dynamic_flag_spec \
36946whole_archive_flag_spec \
36947compiler_needs_object \
36948with_gnu_ld \
36949allow_undefined_flag \
36950no_undefined_flag \
36951hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036952hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036953exclude_expsyms \
36954include_expsyms \
36955file_list_spec \
36956variables_saved_for_relink \
36957libname_spec \
36958library_names_spec \
36959soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036960install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036961finish_eval \
36962old_striplib \
36963striplib \
36964compiler_lib_search_dirs \
36965predep_objects \
36966postdep_objects \
36967predeps \
36968postdeps \
36969compiler_lib_search_path \
36970LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036971reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036972compiler_CXX \
36973lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036974lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036975lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036976lt_prog_compiler_static_CXX \
36977lt_cv_prog_compiler_c_o_CXX \
36978export_dynamic_flag_spec_CXX \
36979whole_archive_flag_spec_CXX \
36980compiler_needs_object_CXX \
36981with_gnu_ld_CXX \
36982allow_undefined_flag_CXX \
36983no_undefined_flag_CXX \
36984hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036985hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036986exclude_expsyms_CXX \
36987include_expsyms_CXX \
36988file_list_spec_CXX \
36989compiler_lib_search_dirs_CXX \
36990predep_objects_CXX \
36991postdep_objects_CXX \
36992predeps_CXX \
36993postdeps_CXX \
36994compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036996 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036998 ;;
36999 *)
37000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37001 ;;
37002 esac
37003done
37004
37005# Double-quote double-evaled strings.
37006for var in reload_cmds \
37007old_postinstall_cmds \
37008old_postuninstall_cmds \
37009old_archive_cmds \
37010extract_expsyms_cmds \
37011old_archive_from_new_cmds \
37012old_archive_from_expsyms_cmds \
37013archive_cmds \
37014archive_expsym_cmds \
37015module_cmds \
37016module_expsym_cmds \
37017export_symbols_cmds \
37018prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037019postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037020postinstall_cmds \
37021postuninstall_cmds \
37022finish_cmds \
37023sys_lib_search_path_spec \
37024sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037025reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037026old_archive_cmds_CXX \
37027old_archive_from_new_cmds_CXX \
37028old_archive_from_expsyms_cmds_CXX \
37029archive_cmds_CXX \
37030archive_expsym_cmds_CXX \
37031module_cmds_CXX \
37032module_expsym_cmds_CXX \
37033export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037034prelink_cmds_CXX \
37035postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037037 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037039 ;;
37040 *)
37041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37042 ;;
37043 esac
37044done
37045
cristy73bd4a52010-10-05 11:24:23 +000037046ac_aux_dir='$ac_aux_dir'
37047xsi_shell='$xsi_shell'
37048lt_shell_append='$lt_shell_append'
37049
37050# See if we are running on zsh, and set the options which allow our
37051# commands through without removal of \ escapes INIT.
37052if test -n "\${ZSH_VERSION+set}" ; then
37053 setopt NO_GLOB_SUBST
37054fi
37055
37056
37057 PACKAGE='$PACKAGE'
37058 VERSION='$VERSION'
37059 TIMESTAMP='$TIMESTAMP'
37060 RM='$RM'
37061 ofile='$ofile'
37062
37063
37064
37065
37066
37067
cristy3ed852e2009-09-05 21:47:34 +000037068_ACEOF
37069
37070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37071
37072# Handling of arguments.
37073for ac_config_target in $ac_config_targets
37074do
37075 case $ac_config_target in
37076 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037077 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037078 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37079 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37080 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37081 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37082 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037083 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037084 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37085 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37086 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37087 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37088 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037089 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037090 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37091 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037092 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37093 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37094 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37096 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37097 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37098 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37099 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37100 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37101 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37102 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37103 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37104 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37105 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37106 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37107 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37108 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37109 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37110 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37111 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037112 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37113 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37115 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037116 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37117 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037118 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037119 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37120 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37121
cristy98dddb52010-11-04 00:30:15 +000037122 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037123 esac
37124done
37125
37126
37127# If the user did not use the arguments to specify the items to instantiate,
37128# then the envvar interface is used. Set only those that are not.
37129# We use the long form for the default assignment because of an extremely
37130# bizarre bug on SunOS 4.1.3.
37131if $ac_need_defaults; then
37132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37133 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37135fi
37136
37137# Have a temporary directory for convenience. Make it in the build tree
37138# simply because there is no reason against having it here, and in addition,
37139# creating and moving files from /tmp can sometimes cause problems.
37140# Hook for its removal unless debugging.
37141# Note that there is a small window in which the directory will not be cleaned:
37142# after its creation but before its name has been assigned to `$tmp'.
37143$debug ||
37144{
cristyda16f162011-02-19 23:52:17 +000037145 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037146 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037147 : "${ac_tmp:=$tmp}"
37148 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037149' 0
cristy8b350f62009-11-15 23:12:43 +000037150 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037151}
37152# Create a (secure) tmp directory for tmp files.
37153
37154{
37155 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037156 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037157} ||
37158{
37159 tmp=./conf$$-$RANDOM
37160 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037161} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037162ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037163
37164# Set up the scripts for CONFIG_FILES section.
37165# No need to generate them if there are no CONFIG_FILES.
37166# This happens for instance with `./config.status config.h'.
37167if test -n "$CONFIG_FILES"; then
37168
37169
cristy8b350f62009-11-15 23:12:43 +000037170ac_cr=`echo X | tr X '\015'`
37171# On cygwin, bash can eat \r inside `` if the user requested igncr.
37172# But we know of no other shell where ac_cr would be empty at this
37173# point, so we can use a bashism as a fallback.
37174if test "x$ac_cr" = x; then
37175 eval ac_cr=\$\'\\r\'
37176fi
cristy3ed852e2009-09-05 21:47:34 +000037177ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37178if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037179 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037180else
37181 ac_cs_awk_cr=$ac_cr
37182fi
37183
cristyda16f162011-02-19 23:52:17 +000037184echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037185_ACEOF
37186
37187
37188{
37189 echo "cat >conf$$subs.awk <<_ACEOF" &&
37190 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37191 echo "_ACEOF"
37192} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037193 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37194ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037195ac_delim='%!_!# '
37196for ac_last_try in false false false false false :; do
37197 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037199
37200 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37201 if test $ac_delim_n = $ac_delim_num; then
37202 break
37203 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037205 else
37206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37207 fi
37208done
37209rm -f conf$$subs.sh
37210
37211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037212cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037213_ACEOF
37214sed -n '
37215h
37216s/^/S["/; s/!.*/"]=/
37217p
37218g
37219s/^[^!]*!//
37220:repl
37221t repl
37222s/'"$ac_delim"'$//
37223t delim
37224:nl
37225h
cristycd4c5312009-11-22 01:19:08 +000037226s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037227t more1
37228s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37229p
37230n
37231b repl
37232:more1
37233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37234p
37235g
37236s/.\{148\}//
37237t nl
37238:delim
37239h
cristycd4c5312009-11-22 01:19:08 +000037240s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037241t more2
37242s/["\\]/\\&/g; s/^/"/; s/$/"/
37243p
37244b
37245:more2
37246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37247p
37248g
37249s/.\{148\}//
37250t delim
37251' <conf$$subs.awk | sed '
37252/^[^""]/{
37253 N
37254 s/\n//
37255}
37256' >>$CONFIG_STATUS || ac_write_fail=1
37257rm -f conf$$subs.awk
37258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37259_ACAWK
cristyda16f162011-02-19 23:52:17 +000037260cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037261 for (key in S) S_is_set[key] = 1
37262 FS = ""
37263
37264}
37265{
37266 line = $ 0
37267 nfields = split(line, field, "@")
37268 substed = 0
37269 len = length(field[1])
37270 for (i = 2; i < nfields; i++) {
37271 key = field[i]
37272 keylen = length(key)
37273 if (S_is_set[key]) {
37274 value = S[key]
37275 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37276 len += length(value) + length(field[++i])
37277 substed = 1
37278 } else
37279 len += 1 + keylen
37280 }
37281
37282 print line
37283}
37284
37285_ACAWK
37286_ACEOF
37287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37288if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37289 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37290else
37291 cat
cristyda16f162011-02-19 23:52:17 +000037292fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037293 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037294_ACEOF
37295
cristy98dddb52010-11-04 00:30:15 +000037296# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37297# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037298# trailing colons and then remove the whole line if VPATH becomes empty
37299# (actually we leave an empty line to preserve line numbers).
37300if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037301 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37302h
37303s///
37304s/^/:/
37305s/[ ]*$/:/
37306s/:\$(srcdir):/:/g
37307s/:\${srcdir}:/:/g
37308s/:@srcdir@:/:/g
37309s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037310s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037311x
37312s/\(=[ ]*\).*/\1/
37313G
37314s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037315s/^[^=]*=[ ]*$//
37316}'
37317fi
37318
37319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37320fi # test -n "$CONFIG_FILES"
37321
37322# Set up the scripts for CONFIG_HEADERS section.
37323# No need to generate them if there are no CONFIG_HEADERS.
37324# This happens for instance with `./config.status Makefile'.
37325if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037326cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037327BEGIN {
37328_ACEOF
37329
37330# Transform confdefs.h into an awk script `defines.awk', embedded as
37331# here-document in config.status, that substitutes the proper values into
37332# config.h.in to produce config.h.
37333
37334# Create a delimiter string that does not exist in confdefs.h, to ease
37335# handling of long lines.
37336ac_delim='%!_!# '
37337for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037338 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37339 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037340 break
37341 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037342 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037343 else
37344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37345 fi
37346done
37347
37348# For the awk script, D is an array of macro values keyed by name,
37349# likewise P contains macro parameters if any. Preserve backslash
37350# newline sequences.
37351
37352ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37353sed -n '
37354s/.\{148\}/&'"$ac_delim"'/g
37355t rset
37356:rset
37357s/^[ ]*#[ ]*define[ ][ ]*/ /
37358t def
37359d
37360:def
37361s/\\$//
37362t bsnl
37363s/["\\]/\\&/g
37364s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37365D["\1"]=" \3"/p
37366s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37367d
37368:bsnl
37369s/["\\]/\\&/g
37370s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37371D["\1"]=" \3\\\\\\n"\\/p
37372t cont
37373s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37374t cont
37375d
37376:cont
37377n
37378s/.\{148\}/&'"$ac_delim"'/g
37379t clear
37380:clear
37381s/\\$//
37382t bsnlc
37383s/["\\]/\\&/g; s/^/"/; s/$/"/p
37384d
37385:bsnlc
37386s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37387b cont
37388' <confdefs.h | sed '
37389s/'"$ac_delim"'/"\\\
37390"/g' >>$CONFIG_STATUS || ac_write_fail=1
37391
37392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37393 for (key in D) D_is_set[key] = 1
37394 FS = ""
37395}
37396/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37397 line = \$ 0
37398 split(line, arg, " ")
37399 if (arg[1] == "#") {
37400 defundef = arg[2]
37401 mac1 = arg[3]
37402 } else {
37403 defundef = substr(arg[1], 2)
37404 mac1 = arg[2]
37405 }
37406 split(mac1, mac2, "(") #)
37407 macro = mac2[1]
37408 prefix = substr(line, 1, index(line, defundef) - 1)
37409 if (D_is_set[macro]) {
37410 # Preserve the white space surrounding the "#".
37411 print prefix "define", macro P[macro] D[macro]
37412 next
37413 } else {
37414 # Replace #undef with comments. This is necessary, for example,
37415 # in the case of _POSIX_SOURCE, which is predefined and required
37416 # on some systems where configure will not decide to define it.
37417 if (defundef == "undef") {
37418 print "/*", prefix defundef, macro, "*/"
37419 next
37420 }
37421 }
37422}
37423{ print }
37424_ACAWK
37425_ACEOF
37426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037427 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037428fi # test -n "$CONFIG_HEADERS"
37429
37430
37431eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37432shift
37433for ac_tag
37434do
37435 case $ac_tag in
37436 :[FHLC]) ac_mode=$ac_tag; continue;;
37437 esac
37438 case $ac_mode$ac_tag in
37439 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037440 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037441 :[FH]-) ac_tag=-:-;;
37442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37443 esac
37444 ac_save_IFS=$IFS
37445 IFS=:
37446 set x $ac_tag
37447 IFS=$ac_save_IFS
37448 shift
37449 ac_file=$1
37450 shift
37451
37452 case $ac_mode in
37453 :L) ac_source=$1;;
37454 :[FH])
37455 ac_file_inputs=
37456 for ac_f
37457 do
37458 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037459 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037460 *) # Look for the file first in the build tree, then in the source tree
37461 # (if the path is not absolute). The absolute path cannot be DOS-style,
37462 # because $ac_f cannot contain `:'.
37463 test -f "$ac_f" ||
37464 case $ac_f in
37465 [\\/$]*) false;;
37466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37467 esac ||
cristy98dddb52010-11-04 00:30:15 +000037468 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037469 esac
37470 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037471 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037472 done
37473
37474 # Let's still pretend it is `configure' which instantiates (i.e., don't
37475 # use $as_me), people would be surprised to read:
37476 # /* config.h. Generated by config.status. */
37477 configure_input='Generated from '`
37478 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37479 `' by configure.'
37480 if test x"$ac_file" != x-; then
37481 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037483$as_echo "$as_me: creating $ac_file" >&6;}
37484 fi
37485 # Neutralize special characters interpreted by sed in replacement strings.
37486 case $configure_input in #(
37487 *\&* | *\|* | *\\* )
37488 ac_sed_conf_input=`$as_echo "$configure_input" |
37489 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37490 *) ac_sed_conf_input=$configure_input;;
37491 esac
37492
37493 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037494 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037496 esac
37497 ;;
37498 esac
37499
37500 ac_dir=`$as_dirname -- "$ac_file" ||
37501$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37502 X"$ac_file" : 'X\(//\)[^/]' \| \
37503 X"$ac_file" : 'X\(//\)$' \| \
37504 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37505$as_echo X"$ac_file" |
37506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37507 s//\1/
37508 q
37509 }
37510 /^X\(\/\/\)[^/].*/{
37511 s//\1/
37512 q
37513 }
37514 /^X\(\/\/\)$/{
37515 s//\1/
37516 q
37517 }
37518 /^X\(\/\).*/{
37519 s//\1/
37520 q
37521 }
37522 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037523 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037524 ac_builddir=.
37525
37526case "$ac_dir" in
37527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37528*)
37529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37530 # A ".." for each directory in $ac_dir_suffix.
37531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37532 case $ac_top_builddir_sub in
37533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37535 esac ;;
37536esac
37537ac_abs_top_builddir=$ac_pwd
37538ac_abs_builddir=$ac_pwd$ac_dir_suffix
37539# for backward compatibility:
37540ac_top_builddir=$ac_top_build_prefix
37541
37542case $srcdir in
37543 .) # We are building in place.
37544 ac_srcdir=.
37545 ac_top_srcdir=$ac_top_builddir_sub
37546 ac_abs_top_srcdir=$ac_pwd ;;
37547 [\\/]* | ?:[\\/]* ) # Absolute name.
37548 ac_srcdir=$srcdir$ac_dir_suffix;
37549 ac_top_srcdir=$srcdir
37550 ac_abs_top_srcdir=$srcdir ;;
37551 *) # Relative name.
37552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37553 ac_top_srcdir=$ac_top_build_prefix$srcdir
37554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37555esac
37556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37557
37558
37559 case $ac_mode in
37560 :F)
37561 #
37562 # CONFIG_FILE
37563 #
37564
37565 case $INSTALL in
37566 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37567 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37568 esac
cristy73bd4a52010-10-05 11:24:23 +000037569 ac_MKDIR_P=$MKDIR_P
37570 case $MKDIR_P in
37571 [\\/$]* | ?:[\\/]* ) ;;
37572 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37573 esac
cristy3ed852e2009-09-05 21:47:34 +000037574_ACEOF
37575
37576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37577# If the template does not know about datarootdir, expand it.
37578# FIXME: This hack should be removed a few years after 2.60.
37579ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037580ac_sed_dataroot='
37581/datarootdir/ {
37582 p
37583 q
37584}
37585/@datadir@/p
37586/@docdir@/p
37587/@infodir@/p
37588/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037589/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037590case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37591*datarootdir*) ac_datarootdir_seen=yes;;
37592*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037594$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37595_ACEOF
37596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37597 ac_datarootdir_hack='
37598 s&@datadir@&$datadir&g
37599 s&@docdir@&$docdir&g
37600 s&@infodir@&$infodir&g
37601 s&@localedir@&$localedir&g
37602 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037603 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037604esac
37605_ACEOF
37606
37607# Neutralize VPATH when `$srcdir' = `.'.
37608# Shell code in configure.ac might set extrasub.
37609# FIXME: do we really want to maintain this feature?
37610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37611ac_sed_extra="$ac_vpsub
37612$extrasub
37613_ACEOF
37614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37615:t
37616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37617s|@configure_input@|$ac_sed_conf_input|;t t
37618s&@top_builddir@&$ac_top_builddir_sub&;t t
37619s&@top_build_prefix@&$ac_top_build_prefix&;t t
37620s&@srcdir@&$ac_srcdir&;t t
37621s&@abs_srcdir@&$ac_abs_srcdir&;t t
37622s&@top_srcdir@&$ac_top_srcdir&;t t
37623s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37624s&@builddir@&$ac_builddir&;t t
37625s&@abs_builddir@&$ac_abs_builddir&;t t
37626s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37627s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037628s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037629$ac_datarootdir_hack
37630"
cristyda16f162011-02-19 23:52:17 +000037631eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037633
37634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037639which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037640$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037641which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037642
cristyda16f162011-02-19 23:52:17 +000037643 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037644 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037647 esac \
cristy98dddb52010-11-04 00:30:15 +000037648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037649 ;;
37650 :H)
37651 #
37652 # CONFIG_HEADER
37653 #
37654 if test x"$ac_file" != x-; then
37655 {
37656 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37658 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037660 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037661 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037662$as_echo "$as_me: $ac_file is unchanged" >&6;}
37663 else
37664 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037665 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037667 fi
37668 else
37669 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037671 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037672 fi
cristy73bd4a52010-10-05 11:24:23 +000037673# Compute "$ac_file"'s index in $config_headers.
37674_am_arg="$ac_file"
37675_am_stamp_count=1
37676for _am_header in $config_headers :; do
37677 case $_am_header in
37678 $_am_arg | $_am_arg:* )
37679 break ;;
37680 * )
37681 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37682 esac
37683done
37684echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37685$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37686 X"$_am_arg" : 'X\(//\)[^/]' \| \
37687 X"$_am_arg" : 'X\(//\)$' \| \
37688 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37689$as_echo X"$_am_arg" |
37690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37691 s//\1/
37692 q
37693 }
37694 /^X\(\/\/\)[^/].*/{
37695 s//\1/
37696 q
37697 }
37698 /^X\(\/\/\)$/{
37699 s//\1/
37700 q
37701 }
37702 /^X\(\/\).*/{
37703 s//\1/
37704 q
37705 }
37706 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037707 ;;
37708
cristy8b350f62009-11-15 23:12:43 +000037709 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037710$as_echo "$as_me: executing $ac_file commands" >&6;}
37711 ;;
37712 esac
37713
37714
37715 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037716 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037717ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37718ac_prefix_conf_PKG=`echo MagickCore`
37719ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37720ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37721ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37722if test ".$ac_prefix_conf_INP" = "."; then
37723 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37724 case "$ac_file" in
37725 *.h) ac_prefix_conf_INP=$ac_file ;;
37726 *)
37727 esac
37728 test ".$ac_prefix_conf_INP" != "." && break
37729 done
37730fi
37731if test ".$ac_prefix_conf_INP" = "."; then
37732 case "$ac_prefix_conf_OUT" in
37733 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37734 ;;
37735 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37736 ;;
37737 *) ac_prefix_conf_INP=config.h
37738 ;;
37739 esac
37740fi
37741if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037742 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037743else
37744 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37745 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37746 fi fi
37747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37748$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37749 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037750 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37751 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37752 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37753 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37754 $as_echo "#endif/" >> conftest.prefix
37755 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37756 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37757 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037758 # now executing _script on _DEF input to create _OUT output file
37759 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37760 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37761 echo ' ' >>$tmp/pconfig.h
37762 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37763
37764 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37765 echo ' ' >>$tmp/pconfig.h
37766 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37767 echo "#endif" >>$tmp/pconfig.h
37768 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37770$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37771 else
37772 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37773$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37774 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37775 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37776 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37777$as_echo X"$ac_prefix_conf_OUT" |
37778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37779 s//\1/
37780 q
37781 }
37782 /^X\(\/\/\)[^/].*/{
37783 s//\1/
37784 q
37785 }
37786 /^X\(\/\/\)$/{
37787 s//\1/
37788 q
37789 }
37790 /^X\(\/\).*/{
37791 s//\1/
37792 q
37793 }
37794 s/.*/./; q'`
37795 as_dir="$ac_dir"; as_fn_mkdir_p
37796 rm -f "$ac_prefix_conf_OUT"
37797 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37798 fi
37799 cp conftest.prefix _configs.sed
37800 else
cristy98dddb52010-11-04 00:30:15 +000037801 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037802 fi
37803 rm -f conftest.*
37804fi
37805 ;;
37806 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37807 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37808 # are listed without --file. Let's play safe and only enable the eval
37809 # if we detect the quoting.
37810 case $CONFIG_FILES in
37811 *\'*) eval set x "$CONFIG_FILES" ;;
37812 *) set x $CONFIG_FILES ;;
37813 esac
37814 shift
37815 for mf
37816 do
37817 # Strip MF so we end up with the name of the file.
37818 mf=`echo "$mf" | sed -e 's/:.*$//'`
37819 # Check whether this is an Automake generated Makefile or not.
37820 # We used to match only the files named `Makefile.in', but
37821 # some people rename them; so instead we look at the file content.
37822 # Grep'ing the first line is not enough: some people post-process
37823 # each Makefile.in and add a new line on top of each file to say so.
37824 # Grep'ing the whole file is not good either: AIX grep has a line
37825 # limit of 2048, but all sed's we know have understand at least 4000.
37826 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37827 dirpart=`$as_dirname -- "$mf" ||
37828$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37829 X"$mf" : 'X\(//\)[^/]' \| \
37830 X"$mf" : 'X\(//\)$' \| \
37831 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37832$as_echo X"$mf" |
37833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37834 s//\1/
37835 q
37836 }
37837 /^X\(\/\/\)[^/].*/{
37838 s//\1/
37839 q
37840 }
37841 /^X\(\/\/\)$/{
37842 s//\1/
37843 q
37844 }
37845 /^X\(\/\).*/{
37846 s//\1/
37847 q
37848 }
37849 s/.*/./; q'`
37850 else
37851 continue
37852 fi
37853 # Extract the definition of DEPDIR, am__include, and am__quote
37854 # from the Makefile without running `make'.
37855 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37856 test -z "$DEPDIR" && continue
37857 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37858 test -z "am__include" && continue
37859 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37860 # When using ansi2knr, U may be empty or an underscore; expand it
37861 U=`sed -n 's/^U = //p' < "$mf"`
37862 # Find all dependency output files, they are included files with
37863 # $(DEPDIR) in their names. We invoke sed twice because it is the
37864 # simplest approach to changing $(DEPDIR) to its actual value in the
37865 # expansion.
37866 for file in `sed -n "
37867 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37868 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37869 # Make sure the directory exists.
37870 test -f "$dirpart/$file" && continue
37871 fdir=`$as_dirname -- "$file" ||
37872$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37873 X"$file" : 'X\(//\)[^/]' \| \
37874 X"$file" : 'X\(//\)$' \| \
37875 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37876$as_echo X"$file" |
37877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37878 s//\1/
37879 q
37880 }
37881 /^X\(\/\/\)[^/].*/{
37882 s//\1/
37883 q
37884 }
37885 /^X\(\/\/\)$/{
37886 s//\1/
37887 q
37888 }
37889 /^X\(\/\).*/{
37890 s//\1/
37891 q
37892 }
37893 s/.*/./; q'`
37894 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37895 # echo "creating $dirpart/$file"
37896 echo '# dummy' > "$dirpart/$file"
37897 done
37898 done
37899}
37900 ;;
37901 "libtool":C)
37902
37903 # See if we are running on zsh, and set the options which allow our
37904 # commands through without removal of \ escapes.
37905 if test -n "${ZSH_VERSION+set}" ; then
37906 setopt NO_GLOB_SUBST
37907 fi
37908
37909 cfgfile="${ofile}T"
37910 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37911 $RM "$cfgfile"
37912
37913 cat <<_LT_EOF >> "$cfgfile"
37914#! $SHELL
37915
37916# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37917# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37918# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37919# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37920#
37921# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037922# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37923# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037924# Written by Gordon Matzigkeit, 1996
37925#
37926# This file is part of GNU Libtool.
37927#
37928# GNU Libtool is free software; you can redistribute it and/or
37929# modify it under the terms of the GNU General Public License as
37930# published by the Free Software Foundation; either version 2 of
37931# the License, or (at your option) any later version.
37932#
37933# As a special exception to the GNU General Public License,
37934# if you distribute this file as part of a program or library that
37935# is built using GNU Libtool, you may include this file under the
37936# same distribution terms that you use for the rest of that program.
37937#
37938# GNU Libtool is distributed in the hope that it will be useful,
37939# but WITHOUT ANY WARRANTY; without even the implied warranty of
37940# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37941# GNU General Public License for more details.
37942#
37943# You should have received a copy of the GNU General Public License
37944# along with GNU Libtool; see the file COPYING. If not, a copy
37945# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37946# obtained by writing to the Free Software Foundation, Inc.,
37947# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37948
37949
37950# The names of the tagged configurations supported by this script.
37951available_tags="CXX "
37952
37953# ### BEGIN LIBTOOL CONFIG
37954
37955# A sed program that does not truncate output.
37956SED=$lt_SED
37957
37958# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37959Xsed="\$SED -e 1s/^X//"
37960
37961# A grep program that handles long lines.
37962GREP=$lt_GREP
37963
37964# An ERE matcher.
37965EGREP=$lt_EGREP
37966
37967# A literal string matcher.
37968FGREP=$lt_FGREP
37969
cristy0c60a692010-11-04 01:09:47 +000037970# Shell to use when invoking shell scripts.
37971SHELL=$lt_SHELL
37972
37973# An echo program that protects backslashes.
37974ECHO=$lt_ECHO
37975
cristy73bd4a52010-10-05 11:24:23 +000037976# Which release of libtool.m4 was used?
37977macro_version=$macro_version
37978macro_revision=$macro_revision
37979
37980# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037981AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037982
37983# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037984DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037985
37986# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037987OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037988
37989# Whether or not to build shared libraries.
37990build_libtool_libs=$enable_shared
37991
37992# Whether or not to build static libraries.
37993build_old_libs=$enable_static
37994
37995# What type of objects to build.
37996pic_mode=$pic_mode
37997
37998# Whether or not to optimize for fast installation.
37999fast_install=$enable_fast_install
38000
cristy99bd5232011-12-07 14:38:20 +000038001# The PATH separator for the build system.
38002PATH_SEPARATOR=$lt_PATH_SEPARATOR
38003
cristy73bd4a52010-10-05 11:24:23 +000038004# The host system.
38005host_alias=$host_alias
38006host=$host
38007host_os=$host_os
38008
38009# The build system.
38010build_alias=$build_alias
38011build=$build
38012build_os=$build_os
38013
38014# A BSD- or MS-compatible name lister.
38015NM=$lt_NM
38016
38017# Whether we need soft or hard links.
38018LN_S=$lt_LN_S
38019
38020# What is the maximum length of a command?
38021max_cmd_len=$max_cmd_len
38022
38023# Object file suffix (normally "o").
38024objext=$ac_objext
38025
38026# Executable file suffix (normally "").
38027exeext=$exeext
38028
38029# whether the shell understands "unset".
38030lt_unset=$lt_unset
38031
38032# turn spaces into newlines.
38033SP2NL=$lt_lt_SP2NL
38034
38035# turn newlines into spaces.
38036NL2SP=$lt_lt_NL2SP
38037
cristyda16f162011-02-19 23:52:17 +000038038# convert \$build file names to \$host format.
38039to_host_file_cmd=$lt_cv_to_host_file_cmd
38040
38041# convert \$build files to toolchain format.
38042to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38043
cristy73bd4a52010-10-05 11:24:23 +000038044# Method to check whether dependent libraries are shared objects.
38045deplibs_check_method=$lt_deplibs_check_method
38046
cristyda16f162011-02-19 23:52:17 +000038047# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038048file_magic_cmd=$lt_file_magic_cmd
38049
cristyda16f162011-02-19 23:52:17 +000038050# How to find potential files when deplibs_check_method = "file_magic".
38051file_magic_glob=$lt_file_magic_glob
38052
38053# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38054want_nocaseglob=$lt_want_nocaseglob
38055
38056# Command to associate shared and link libraries.
38057sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38058
cristy73bd4a52010-10-05 11:24:23 +000038059# The archiver.
38060AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038061
38062# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038063AR_FLAGS=$lt_AR_FLAGS
38064
cristyda16f162011-02-19 23:52:17 +000038065# How to feed a file listing to the archiver.
38066archiver_list_spec=$lt_archiver_list_spec
38067
cristy73bd4a52010-10-05 11:24:23 +000038068# A symbol stripping program.
38069STRIP=$lt_STRIP
38070
38071# Commands used to install an old-style archive.
38072RANLIB=$lt_RANLIB
38073old_postinstall_cmds=$lt_old_postinstall_cmds
38074old_postuninstall_cmds=$lt_old_postuninstall_cmds
38075
cristy0c60a692010-11-04 01:09:47 +000038076# Whether to use a lock for old archive extraction.
38077lock_old_archive_extraction=$lock_old_archive_extraction
38078
cristy73bd4a52010-10-05 11:24:23 +000038079# A C compiler.
38080LTCC=$lt_CC
38081
38082# LTCC compiler flags.
38083LTCFLAGS=$lt_CFLAGS
38084
38085# Take the output of nm and produce a listing of raw symbols and C names.
38086global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38087
38088# Transform the output of nm in a proper C declaration.
38089global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38090
38091# Transform the output of nm in a C name address pair.
38092global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38093
38094# Transform the output of nm in a C name address pair when lib prefix is needed.
38095global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38096
cristyda16f162011-02-19 23:52:17 +000038097# Specify filename containing input files for \$NM.
38098nm_file_list_spec=$lt_nm_file_list_spec
38099
38100# The root where to search for dependent libraries,and in which our libraries should be installed.
38101lt_sysroot=$lt_sysroot
38102
cristy73bd4a52010-10-05 11:24:23 +000038103# The name of the directory that contains temporary libtool files.
38104objdir=$objdir
38105
cristy73bd4a52010-10-05 11:24:23 +000038106# Used to examine libraries when file_magic_cmd begins with "file".
38107MAGIC_CMD=$MAGIC_CMD
38108
38109# Must we lock files when doing compilation?
38110need_locks=$lt_need_locks
38111
cristyda16f162011-02-19 23:52:17 +000038112# Manifest tool.
38113MANIFEST_TOOL=$lt_MANIFEST_TOOL
38114
cristy73bd4a52010-10-05 11:24:23 +000038115# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38116DSYMUTIL=$lt_DSYMUTIL
38117
38118# Tool to change global to local symbols on Mac OS X.
38119NMEDIT=$lt_NMEDIT
38120
38121# Tool to manipulate fat objects and archives on Mac OS X.
38122LIPO=$lt_LIPO
38123
38124# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38125OTOOL=$lt_OTOOL
38126
38127# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38128OTOOL64=$lt_OTOOL64
38129
38130# Old archive suffix (normally "a").
38131libext=$libext
38132
38133# Shared library suffix (normally ".so").
38134shrext_cmds=$lt_shrext_cmds
38135
38136# The commands to extract the exported symbol list from a shared archive.
38137extract_expsyms_cmds=$lt_extract_expsyms_cmds
38138
38139# Variables whose values should be saved in libtool wrapper scripts and
38140# restored at link time.
38141variables_saved_for_relink=$lt_variables_saved_for_relink
38142
38143# Do we need the "lib" prefix for modules?
38144need_lib_prefix=$need_lib_prefix
38145
38146# Do we need a version for libraries?
38147need_version=$need_version
38148
38149# Library versioning type.
38150version_type=$version_type
38151
38152# Shared library runtime path variable.
38153runpath_var=$runpath_var
38154
38155# Shared library path variable.
38156shlibpath_var=$shlibpath_var
38157
38158# Is shlibpath searched before the hard-coded library search path?
38159shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38160
38161# Format of library name prefix.
38162libname_spec=$lt_libname_spec
38163
38164# List of archive names. First name is the real one, the rest are links.
38165# The last name is the one that the linker finds with -lNAME
38166library_names_spec=$lt_library_names_spec
38167
38168# The coded name of the library, if different from the real name.
38169soname_spec=$lt_soname_spec
38170
cristy0c60a692010-11-04 01:09:47 +000038171# Permission mode override for installation of shared libraries.
38172install_override_mode=$lt_install_override_mode
38173
cristy73bd4a52010-10-05 11:24:23 +000038174# Command to use after installation of a shared archive.
38175postinstall_cmds=$lt_postinstall_cmds
38176
38177# Command to use after uninstallation of a shared archive.
38178postuninstall_cmds=$lt_postuninstall_cmds
38179
38180# Commands used to finish a libtool library installation in a directory.
38181finish_cmds=$lt_finish_cmds
38182
38183# As "finish_cmds", except a single script fragment to be evaled but
38184# not shown.
38185finish_eval=$lt_finish_eval
38186
38187# Whether we should hardcode library paths into libraries.
38188hardcode_into_libs=$hardcode_into_libs
38189
38190# Compile-time system search path for libraries.
38191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38192
38193# Run-time system search path for libraries.
38194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38195
38196# Whether dlopen is supported.
38197dlopen_support=$enable_dlopen
38198
38199# Whether dlopen of programs is supported.
38200dlopen_self=$enable_dlopen_self
38201
38202# Whether dlopen of statically linked programs is supported.
38203dlopen_self_static=$enable_dlopen_self_static
38204
38205# Commands to strip libraries.
38206old_striplib=$lt_old_striplib
38207striplib=$lt_striplib
38208
38209
38210# The linker used to build libraries.
38211LD=$lt_LD
38212
cristy0c60a692010-11-04 01:09:47 +000038213# How to create reloadable object files.
38214reload_flag=$lt_reload_flag
38215reload_cmds=$lt_reload_cmds
38216
cristy73bd4a52010-10-05 11:24:23 +000038217# Commands used to build an old-style archive.
38218old_archive_cmds=$lt_old_archive_cmds
38219
38220# A language specific compiler.
38221CC=$lt_compiler
38222
38223# Is the compiler the GNU compiler?
38224with_gcc=$GCC
38225
38226# Compiler flag to turn off builtin functions.
38227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38228
cristy73bd4a52010-10-05 11:24:23 +000038229# Additional compiler flags for building library objects.
38230pic_flag=$lt_lt_prog_compiler_pic
38231
cristyda16f162011-02-19 23:52:17 +000038232# How to pass a linker flag through the compiler.
38233wl=$lt_lt_prog_compiler_wl
38234
cristy73bd4a52010-10-05 11:24:23 +000038235# Compiler flag to prevent dynamic linking.
38236link_static_flag=$lt_lt_prog_compiler_static
38237
38238# Does compiler simultaneously support -c and -o options?
38239compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38240
38241# Whether or not to add -lc for building shared libraries.
38242build_libtool_need_lc=$archive_cmds_need_lc
38243
38244# Whether or not to disallow shared libs when runtime libs are static.
38245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38246
38247# Compiler flag to allow reflexive dlopens.
38248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38249
38250# Compiler flag to generate shared objects directly from archives.
38251whole_archive_flag_spec=$lt_whole_archive_flag_spec
38252
38253# Whether the compiler copes with passing no objects directly.
38254compiler_needs_object=$lt_compiler_needs_object
38255
38256# Create an old-style archive from a shared archive.
38257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38258
38259# Create a temporary old-style archive to link instead of a shared archive.
38260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38261
38262# Commands used to build a shared archive.
38263archive_cmds=$lt_archive_cmds
38264archive_expsym_cmds=$lt_archive_expsym_cmds
38265
38266# Commands used to build a loadable module if different from building
38267# a shared archive.
38268module_cmds=$lt_module_cmds
38269module_expsym_cmds=$lt_module_expsym_cmds
38270
38271# Whether we are building with GNU ld or not.
38272with_gnu_ld=$lt_with_gnu_ld
38273
38274# Flag that allows shared libraries with undefined symbols to be built.
38275allow_undefined_flag=$lt_allow_undefined_flag
38276
38277# Flag that enforces no undefined symbols.
38278no_undefined_flag=$lt_no_undefined_flag
38279
38280# Flag to hardcode \$libdir into a binary during linking.
38281# This must work even if \$libdir does not exist
38282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38283
cristy73bd4a52010-10-05 11:24:23 +000038284# Whether we need a single "-rpath" flag with a separated argument.
38285hardcode_libdir_separator=$lt_hardcode_libdir_separator
38286
38287# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38288# DIR into the resulting binary.
38289hardcode_direct=$hardcode_direct
38290
38291# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38292# DIR into the resulting binary and the resulting library dependency is
38293# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38294# library is relocated.
38295hardcode_direct_absolute=$hardcode_direct_absolute
38296
38297# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38298# into the resulting binary.
38299hardcode_minus_L=$hardcode_minus_L
38300
38301# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38302# into the resulting binary.
38303hardcode_shlibpath_var=$hardcode_shlibpath_var
38304
38305# Set to "yes" if building a shared library automatically hardcodes DIR
38306# into the library and all subsequent libraries and executables linked
38307# against it.
38308hardcode_automatic=$hardcode_automatic
38309
38310# Set to yes if linker adds runtime paths of dependent libraries
38311# to runtime path list.
38312inherit_rpath=$inherit_rpath
38313
38314# Whether libtool must link a program against all its dependency libraries.
38315link_all_deplibs=$link_all_deplibs
38316
cristy73bd4a52010-10-05 11:24:23 +000038317# Set to "yes" if exported symbols are required.
38318always_export_symbols=$always_export_symbols
38319
38320# The commands to list exported symbols.
38321export_symbols_cmds=$lt_export_symbols_cmds
38322
38323# Symbols that should not be listed in the preloaded symbols.
38324exclude_expsyms=$lt_exclude_expsyms
38325
38326# Symbols that must always be exported.
38327include_expsyms=$lt_include_expsyms
38328
38329# Commands necessary for linking programs (against libraries) with templates.
38330prelink_cmds=$lt_prelink_cmds
38331
cristyda16f162011-02-19 23:52:17 +000038332# Commands necessary for finishing linking programs.
38333postlink_cmds=$lt_postlink_cmds
38334
cristy73bd4a52010-10-05 11:24:23 +000038335# Specify filename containing input files.
38336file_list_spec=$lt_file_list_spec
38337
38338# How to hardcode a shared library path into an executable.
38339hardcode_action=$hardcode_action
38340
38341# The directories searched by this compiler when creating a shared library.
38342compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38343
38344# Dependencies to place before and after the objects being linked to
38345# create a shared library.
38346predep_objects=$lt_predep_objects
38347postdep_objects=$lt_postdep_objects
38348predeps=$lt_predeps
38349postdeps=$lt_postdeps
38350
38351# The library search path used internally by the compiler when linking
38352# a shared library.
38353compiler_lib_search_path=$lt_compiler_lib_search_path
38354
38355# ### END LIBTOOL CONFIG
38356
38357_LT_EOF
38358
38359 case $host_os in
38360 aix3*)
38361 cat <<\_LT_EOF >> "$cfgfile"
38362# AIX sometimes has problems with the GCC collect2 program. For some
38363# reason, if we set the COLLECT_NAMES environment variable, the problems
38364# vanish in a puff of smoke.
38365if test "X${COLLECT_NAMES+set}" != Xset; then
38366 COLLECT_NAMES=
38367 export COLLECT_NAMES
38368fi
38369_LT_EOF
38370 ;;
38371 esac
38372
38373
38374ltmain="$ac_aux_dir/ltmain.sh"
38375
38376
38377 # We use sed instead of cat because bash on DJGPP gets confused if
38378 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38379 # text mode, it properly converts lines to CR/LF. This bash problem
38380 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038381 sed '$q' "$ltmain" >> "$cfgfile" \
38382 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038383
cristyda16f162011-02-19 23:52:17 +000038384 if test x"$xsi_shell" = xyes; then
38385 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38386func_dirname ()\
38387{\
38388\ case ${1} in\
38389\ */*) func_dirname_result="${1%/*}${2}" ;;\
38390\ * ) func_dirname_result="${3}" ;;\
38391\ esac\
38392} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38393 && mv -f "$cfgfile.tmp" "$cfgfile" \
38394 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38395test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038396
38397
cristyda16f162011-02-19 23:52:17 +000038398 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38399func_basename ()\
38400{\
38401\ func_basename_result="${1##*/}"\
38402} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38403 && mv -f "$cfgfile.tmp" "$cfgfile" \
38404 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38405test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038406
38407
cristyda16f162011-02-19 23:52:17 +000038408 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38409func_dirname_and_basename ()\
38410{\
38411\ case ${1} in\
38412\ */*) func_dirname_result="${1%/*}${2}" ;;\
38413\ * ) func_dirname_result="${3}" ;;\
38414\ esac\
38415\ func_basename_result="${1##*/}"\
38416} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38417 && mv -f "$cfgfile.tmp" "$cfgfile" \
38418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38419test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038420
cristyda16f162011-02-19 23:52:17 +000038421
38422 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38423func_stripname ()\
38424{\
38425\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38426\ # positional parameters, so assign one to ordinary parameter first.\
38427\ func_stripname_result=${3}\
38428\ func_stripname_result=${func_stripname_result#"${1}"}\
38429\ func_stripname_result=${func_stripname_result%"${2}"}\
38430} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38431 && mv -f "$cfgfile.tmp" "$cfgfile" \
38432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38433test 0 -eq $? || _lt_function_replace_fail=:
38434
38435
38436 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38437func_split_long_opt ()\
38438{\
38439\ func_split_long_opt_name=${1%%=*}\
38440\ func_split_long_opt_arg=${1#*=}\
38441} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38442 && mv -f "$cfgfile.tmp" "$cfgfile" \
38443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38444test 0 -eq $? || _lt_function_replace_fail=:
38445
38446
38447 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38448func_split_short_opt ()\
38449{\
38450\ func_split_short_opt_arg=${1#??}\
38451\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38452} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38453 && mv -f "$cfgfile.tmp" "$cfgfile" \
38454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38455test 0 -eq $? || _lt_function_replace_fail=:
38456
38457
38458 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38459func_lo2o ()\
38460{\
38461\ case ${1} in\
38462\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38463\ *) func_lo2o_result=${1} ;;\
38464\ esac\
38465} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38466 && mv -f "$cfgfile.tmp" "$cfgfile" \
38467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38468test 0 -eq $? || _lt_function_replace_fail=:
38469
38470
38471 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38472func_xform ()\
38473{\
38474 func_xform_result=${1%.*}.lo\
38475} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38476 && mv -f "$cfgfile.tmp" "$cfgfile" \
38477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38478test 0 -eq $? || _lt_function_replace_fail=:
38479
38480
38481 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38482func_arith ()\
38483{\
38484 func_arith_result=$(( $* ))\
38485} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38486 && mv -f "$cfgfile.tmp" "$cfgfile" \
38487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38488test 0 -eq $? || _lt_function_replace_fail=:
38489
38490
38491 sed -e '/^func_len ()$/,/^} # func_len /c\
38492func_len ()\
38493{\
38494 func_len_result=${#1}\
38495} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38496 && mv -f "$cfgfile.tmp" "$cfgfile" \
38497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38498test 0 -eq $? || _lt_function_replace_fail=:
38499
38500fi
38501
38502if test x"$lt_shell_append" = xyes; then
38503 sed -e '/^func_append ()$/,/^} # func_append /c\
38504func_append ()\
38505{\
38506 eval "${1}+=\\${2}"\
38507} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38508 && mv -f "$cfgfile.tmp" "$cfgfile" \
38509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38510test 0 -eq $? || _lt_function_replace_fail=:
38511
38512
38513 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38514func_append_quoted ()\
38515{\
38516\ func_quote_for_eval "${2}"\
38517\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38518} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38519 && mv -f "$cfgfile.tmp" "$cfgfile" \
38520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38521test 0 -eq $? || _lt_function_replace_fail=:
38522
38523
38524 # Save a `func_append' function call where possible by direct use of '+='
38525 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38526 && mv -f "$cfgfile.tmp" "$cfgfile" \
38527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38528 test 0 -eq $? || _lt_function_replace_fail=:
38529else
38530 # Save a `func_append' function call even when '+=' is not available
38531 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38532 && mv -f "$cfgfile.tmp" "$cfgfile" \
38533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38534 test 0 -eq $? || _lt_function_replace_fail=:
38535fi
38536
38537if test x"$_lt_function_replace_fail" = x":"; then
38538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38539$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38540fi
38541
38542
38543 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038544 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38545 chmod +x "$ofile"
38546
38547
38548 cat <<_LT_EOF >> "$ofile"
38549
38550# ### BEGIN LIBTOOL TAG CONFIG: CXX
38551
38552# The linker used to build libraries.
38553LD=$lt_LD_CXX
38554
cristy0c60a692010-11-04 01:09:47 +000038555# How to create reloadable object files.
38556reload_flag=$lt_reload_flag_CXX
38557reload_cmds=$lt_reload_cmds_CXX
38558
cristy73bd4a52010-10-05 11:24:23 +000038559# Commands used to build an old-style archive.
38560old_archive_cmds=$lt_old_archive_cmds_CXX
38561
38562# A language specific compiler.
38563CC=$lt_compiler_CXX
38564
38565# Is the compiler the GNU compiler?
38566with_gcc=$GCC_CXX
38567
38568# Compiler flag to turn off builtin functions.
38569no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38570
cristy73bd4a52010-10-05 11:24:23 +000038571# Additional compiler flags for building library objects.
38572pic_flag=$lt_lt_prog_compiler_pic_CXX
38573
cristyda16f162011-02-19 23:52:17 +000038574# How to pass a linker flag through the compiler.
38575wl=$lt_lt_prog_compiler_wl_CXX
38576
cristy73bd4a52010-10-05 11:24:23 +000038577# Compiler flag to prevent dynamic linking.
38578link_static_flag=$lt_lt_prog_compiler_static_CXX
38579
38580# Does compiler simultaneously support -c and -o options?
38581compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38582
38583# Whether or not to add -lc for building shared libraries.
38584build_libtool_need_lc=$archive_cmds_need_lc_CXX
38585
38586# Whether or not to disallow shared libs when runtime libs are static.
38587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38588
38589# Compiler flag to allow reflexive dlopens.
38590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38591
38592# Compiler flag to generate shared objects directly from archives.
38593whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38594
38595# Whether the compiler copes with passing no objects directly.
38596compiler_needs_object=$lt_compiler_needs_object_CXX
38597
38598# Create an old-style archive from a shared archive.
38599old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38600
38601# Create a temporary old-style archive to link instead of a shared archive.
38602old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38603
38604# Commands used to build a shared archive.
38605archive_cmds=$lt_archive_cmds_CXX
38606archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38607
38608# Commands used to build a loadable module if different from building
38609# a shared archive.
38610module_cmds=$lt_module_cmds_CXX
38611module_expsym_cmds=$lt_module_expsym_cmds_CXX
38612
38613# Whether we are building with GNU ld or not.
38614with_gnu_ld=$lt_with_gnu_ld_CXX
38615
38616# Flag that allows shared libraries with undefined symbols to be built.
38617allow_undefined_flag=$lt_allow_undefined_flag_CXX
38618
38619# Flag that enforces no undefined symbols.
38620no_undefined_flag=$lt_no_undefined_flag_CXX
38621
38622# Flag to hardcode \$libdir into a binary during linking.
38623# This must work even if \$libdir does not exist
38624hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38625
cristy73bd4a52010-10-05 11:24:23 +000038626# Whether we need a single "-rpath" flag with a separated argument.
38627hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38628
38629# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38630# DIR into the resulting binary.
38631hardcode_direct=$hardcode_direct_CXX
38632
38633# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38634# DIR into the resulting binary and the resulting library dependency is
38635# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38636# library is relocated.
38637hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38638
38639# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38640# into the resulting binary.
38641hardcode_minus_L=$hardcode_minus_L_CXX
38642
38643# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38644# into the resulting binary.
38645hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38646
38647# Set to "yes" if building a shared library automatically hardcodes DIR
38648# into the library and all subsequent libraries and executables linked
38649# against it.
38650hardcode_automatic=$hardcode_automatic_CXX
38651
38652# Set to yes if linker adds runtime paths of dependent libraries
38653# to runtime path list.
38654inherit_rpath=$inherit_rpath_CXX
38655
38656# Whether libtool must link a program against all its dependency libraries.
38657link_all_deplibs=$link_all_deplibs_CXX
38658
cristy73bd4a52010-10-05 11:24:23 +000038659# Set to "yes" if exported symbols are required.
38660always_export_symbols=$always_export_symbols_CXX
38661
38662# The commands to list exported symbols.
38663export_symbols_cmds=$lt_export_symbols_cmds_CXX
38664
38665# Symbols that should not be listed in the preloaded symbols.
38666exclude_expsyms=$lt_exclude_expsyms_CXX
38667
38668# Symbols that must always be exported.
38669include_expsyms=$lt_include_expsyms_CXX
38670
38671# Commands necessary for linking programs (against libraries) with templates.
38672prelink_cmds=$lt_prelink_cmds_CXX
38673
cristyda16f162011-02-19 23:52:17 +000038674# Commands necessary for finishing linking programs.
38675postlink_cmds=$lt_postlink_cmds_CXX
38676
cristy73bd4a52010-10-05 11:24:23 +000038677# Specify filename containing input files.
38678file_list_spec=$lt_file_list_spec_CXX
38679
38680# How to hardcode a shared library path into an executable.
38681hardcode_action=$hardcode_action_CXX
38682
38683# The directories searched by this compiler when creating a shared library.
38684compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38685
38686# Dependencies to place before and after the objects being linked to
38687# create a shared library.
38688predep_objects=$lt_predep_objects_CXX
38689postdep_objects=$lt_postdep_objects_CXX
38690predeps=$lt_predeps_CXX
38691postdeps=$lt_postdeps_CXX
38692
38693# The library search path used internally by the compiler when linking
38694# a shared library.
38695compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38696
38697# ### END LIBTOOL TAG CONFIG: CXX
38698_LT_EOF
38699
38700 ;;
cristy4c08aed2011-07-01 19:47:50 +000038701 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038702 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038703 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38704 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38705
38706 esac
38707done # for ac_tag
38708
38709
cristy8b350f62009-11-15 23:12:43 +000038710as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038711_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038712ac_clean_files=$ac_clean_files_save
38713
38714test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038715 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038716
38717
38718# configure is writing to config.log, and then calls config.status.
38719# config.status does its own redirection, appending to config.log.
38720# Unfortunately, on DOS this fails, as config.log is still kept open
38721# by configure, so config.status won't be able to write to it; its
38722# output is simply discarded. So we exec the FD to /dev/null,
38723# effectively closing config.log, so it can be properly (re)opened and
38724# appended to by config.status. When coming back to configure, we
38725# need to make the FD available again.
38726if test "$no_create" != yes; then
38727 ac_cs_success=:
38728 ac_config_status_args=
38729 test "$silent" = yes &&
38730 ac_config_status_args="$ac_config_status_args --quiet"
38731 exec 5>/dev/null
38732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38733 exec 5>>config.log
38734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38735 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038736 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038737fi
38738if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038740$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38741fi
38742
38743
38744rm -f magick-version
38745
cristy430a7312010-01-21 20:44:04 +000038746result_dejavu_font_dir='none'
38747if test "${dejavu_font_dir}x" != 'x'; then
38748 result_dejavu_font_dir=$dejavu_font_dir
38749fi
38750
cristy3ed852e2009-09-05 21:47:34 +000038751result_ghostscript_font_dir='none'
38752if test "${ghostscript_font_dir}x" != 'x'; then
38753 result_ghostscript_font_dir=$ghostscript_font_dir
38754fi
38755
38756result_windows_font_dir='none'
38757if test "${windows_font_dir}x" != 'x'; then
38758 result_windows_font_dir=${windows_font_dir}
38759fi
38760
cristy09b53e12011-10-14 12:47:22 +000038761{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038762ImageMagick is configured as follows. Please verify that this configuration
38763matches your expectations.
38764
38765Host system type: $host
38766Build system type: $build
38767
38768 Option Value
38769-------------------------------------------------------------------------------
38770Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38771Static libraries --enable-static=$enable_static $libtool_build_static_libs
38772Module support --with-modules=$with_modules $with_modules
38773GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38774Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38775High Dynamic Range Imagery
38776 --enable-hdri=$enable_hdri $enable_hdri
38777
38778Delegate Configuration:
38779BZLIB --with-bzlib=$with_bzlib $have_bzlib
38780Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038781Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038782DJVU --with-djvu=$with_djvu $have_djvu
38783DPS --with-dps=$with_dps $have_dps
38784FFTW --with-fftw=$with_fftw $have_fftw
38785FlashPIX --with-fpx=$with_fpx $have_fpx
38786FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38787FreeType --with-freetype=$with_freetype $have_freetype
38788GhostPCL None $PCLDelegate ($PCLVersion)
38789GhostXPS None $XPSDelegate ($XPSVersion)
38790Ghostscript None $PSDelegate ($GSVersion)
38791Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38792Ghostscript lib --with-gslib=$with_gslib $have_gslib
38793Graphviz --with-gvc=$with_gvc $have_gvc
38794JBIG --with-jbig=$with_jbig $have_jbig
38795JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38796JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038797LCMS v1 --with-lcms=$with_lcms $have_lcms
38798LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038799LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038800LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038801Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38802OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038803PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038804PERL --with-perl=$with_perl $have_perl
38805PNG --with-png=$with_png $have_png
38806RSVG --with-rsvg=$with_rsvg $have_rsvg
38807TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038808WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038809Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38810WMF --with-wmf=$with_wmf $have_wmf
38811X11 --with-x=$with_x $have_x
38812XML --with-xml=$with_xml $have_xml
38813ZLIB --with-zlib=$with_zlib $have_zlib
38814
38815X11 Configuration:
38816 X_CFLAGS = $X_CFLAGS
38817 X_PRE_LIBS = $X_PRE_LIBS
38818 X_LIBS = $X_LIBS
38819 X_EXTRA_LIBS = $X_EXTRA_LIBS
38820
38821Options used to compile and link:
38822 PREFIX = $PREFIX_DIR
38823 EXEC-PREFIX = $EXEC_PREFIX_DIR
38824 VERSION = $PACKAGE_VERSION
38825 CC = $CC
38826 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038827 CPPFLAGS = $MAGICK_CPPFLAGS
38828 PCFLAGS = $MAGICK_PCFLAGS
38829 DEFS = $DEFS
38830 LDFLAGS = $LDFLAGS
38831 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38832 LIBS = $MAGICK_LIBS
38833 CXX = $CXX
38834 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038835 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038836" >&5
cristy09b53e12011-10-14 12:47:22 +000038837$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038838ImageMagick is configured as follows. Please verify that this configuration
38839matches your expectations.
38840
38841Host system type: $host
38842Build system type: $build
38843
38844 Option Value
38845-------------------------------------------------------------------------------
38846Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38847Static libraries --enable-static=$enable_static $libtool_build_static_libs
38848Module support --with-modules=$with_modules $with_modules
38849GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38850Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38851High Dynamic Range Imagery
38852 --enable-hdri=$enable_hdri $enable_hdri
38853
38854Delegate Configuration:
38855BZLIB --with-bzlib=$with_bzlib $have_bzlib
38856Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038857Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038858DJVU --with-djvu=$with_djvu $have_djvu
38859DPS --with-dps=$with_dps $have_dps
38860FFTW --with-fftw=$with_fftw $have_fftw
38861FlashPIX --with-fpx=$with_fpx $have_fpx
38862FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38863FreeType --with-freetype=$with_freetype $have_freetype
38864GhostPCL None $PCLDelegate ($PCLVersion)
38865GhostXPS None $XPSDelegate ($XPSVersion)
38866Ghostscript None $PSDelegate ($GSVersion)
38867Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38868Ghostscript lib --with-gslib=$with_gslib $have_gslib
38869Graphviz --with-gvc=$with_gvc $have_gvc
38870JBIG --with-jbig=$with_jbig $have_jbig
38871JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38872JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038873LCMS v1 --with-lcms=$with_lcms $have_lcms
38874LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038875LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038876LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038877Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38878OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038879PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038880PERL --with-perl=$with_perl $have_perl
38881PNG --with-png=$with_png $have_png
38882RSVG --with-rsvg=$with_rsvg $have_rsvg
38883TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038884WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038885Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38886WMF --with-wmf=$with_wmf $have_wmf
38887X11 --with-x=$with_x $have_x
38888XML --with-xml=$with_xml $have_xml
38889ZLIB --with-zlib=$with_zlib $have_zlib
38890
38891X11 Configuration:
38892 X_CFLAGS = $X_CFLAGS
38893 X_PRE_LIBS = $X_PRE_LIBS
38894 X_LIBS = $X_LIBS
38895 X_EXTRA_LIBS = $X_EXTRA_LIBS
38896
38897Options used to compile and link:
38898 PREFIX = $PREFIX_DIR
38899 EXEC-PREFIX = $EXEC_PREFIX_DIR
38900 VERSION = $PACKAGE_VERSION
38901 CC = $CC
38902 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038903 CPPFLAGS = $MAGICK_CPPFLAGS
38904 PCFLAGS = $MAGICK_PCFLAGS
38905 DEFS = $DEFS
38906 LDFLAGS = $LDFLAGS
38907 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38908 LIBS = $MAGICK_LIBS
38909 CXX = $CXX
38910 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038911 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038912" >&6;}